@dialpad/dialtone 9.17.0 → 9.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/dialtone.css +2 -2
- package/dist/tokens/android/java/tokens-dark.kt +1 -1
- package/dist/tokens/android/java/tokens-light.kt +1 -1
- package/dist/tokens/android/res/values/colors-dark.xml +1 -1
- package/dist/tokens/android/res/values/colors-light.xml +1 -1
- package/dist/tokens/android/res/values/dimens.xml +1 -1
- package/dist/tokens/css/variables-dark.css +1 -1
- package/dist/tokens/css/variables-light.css +1 -1
- package/dist/tokens/ios/tokens-dark.swift +1 -1
- package/dist/tokens/ios/tokens-light.swift +1 -1
- package/dist/tokens/less/variables-dark.less +1 -1
- package/dist/tokens/less/variables-light.less +1 -1
- package/dist/vue2/component-documentation.json +1 -1
- package/dist/vue2/dialtone-vue.cjs +5 -5
- package/dist/vue2/dialtone-vue.js +147 -130
- package/dist/vue2/directives.cjs +1 -1
- package/dist/vue2/directives.js +1 -1
- package/dist/vue2/emoji.cjs +1 -1
- package/dist/vue2/emoji.js +4 -4
- package/dist/vue2/{emoji_picker-GfisVsYp.js → emoji_picker-oRqwDR1h.js} +2 -2
- package/dist/vue2/{emoji_picker-zi8qwHtl.cjs → emoji_picker-pzXZS6X7.cjs} +1 -1
- package/dist/vue2/{emoji_text_wrapper-JQf6BpGc.cjs → emoji_text_wrapper-6Yl5NIEJ.cjs} +1 -1
- package/dist/vue2/{emoji_text_wrapper-OrF0kZ6L.js → emoji_text_wrapper-V-Qf4XZv.js} +2 -2
- package/dist/vue2/{index-G0QxbVGe.js → index-74FmkvkN.js} +1 -1
- package/dist/vue2/{index-ihXjcrB-.cjs → index-dsfPzyLy.cjs} +1 -1
- package/dist/vue2/message_input.cjs +1 -1
- package/dist/vue2/message_input.js +4 -4
- package/dist/vue2/{rich_text_editor-trHmm1VD.js → rich_text_editor-AZuWkf9m.js} +1740 -1762
- package/dist/vue2/{rich_text_editor-MzdHNizj.cjs → rich_text_editor-TX19t44m.cjs} +20 -20
- package/dist/vue2/style.css +1 -1
- package/dist/vue2/{tooltip-AVHt9lw0.js → tooltip-mMe9F6C6.js} +474 -441
- package/dist/vue2/tooltip-sE12R_AU.cjs +21 -0
- package/dist/vue2/types/components/rich_text_editor/extensions/emoji/suggestion.d.ts.map +1 -1
- package/dist/vue2/types/components/rich_text_editor/extensions/mentions/suggestion.d.ts.map +1 -1
- package/dist/vue2/types/components/tooltip/tooltip.vue.d.ts +30 -0
- package/dist/vue2/types/components/tooltip/tooltip.vue.d.ts.map +1 -1
- package/dist/vue2/types/recipes/conversation_view/editor/editor.vue.d.ts +17 -1
- package/dist/vue2/types/recipes/conversation_view/editor/editor.vue.d.ts.map +1 -1
- package/dist/vue3/component-documentation.json +1 -1
- package/dist/vue3/dialtone-vue.cjs +5 -5
- package/dist/vue3/dialtone-vue.js +206 -189
- package/dist/vue3/directives.cjs +1 -1
- package/dist/vue3/directives.js +1 -1
- package/dist/vue3/{emoji-acqIsOA0.js → emoji-ifbDMGtx.js} +1 -1
- package/dist/vue3/{emoji-gFUvTgzf.cjs → emoji-q4ZpxDOX.cjs} +1 -1
- package/dist/vue3/emoji.cjs +1 -1
- package/dist/vue3/emoji.js +4 -4
- package/dist/vue3/{emoji_picker-7KBwg94e.js → emoji_picker-G6QLC4uN.js} +2 -2
- package/dist/vue3/{emoji_picker-XmAzvsvD.cjs → emoji_picker-i3y8jyyY.cjs} +1 -1
- package/dist/vue3/{emoji_text_wrapper-Cr15_VcH.cjs → emoji_text_wrapper-spWldgj4.cjs} +1 -1
- package/dist/vue3/{emoji_text_wrapper-TK25xXF3.js → emoji_text_wrapper-vQeoLfQ4.js} +1 -1
- package/dist/vue3/message_input.cjs +1 -1
- package/dist/vue3/message_input.js +4 -4
- package/dist/vue3/{rich_text_editor-NWAFxCaY.js → rich_text_editor-S31F6RAP.js} +773 -794
- package/dist/vue3/{rich_text_editor-2jqjuGrZ.cjs → rich_text_editor-fciM1V1t.cjs} +20 -20
- package/dist/vue3/style.css +1 -1
- package/dist/vue3/{tooltip-Od71Luh6.js → tooltip-FcHJcgMd.js} +503 -470
- package/dist/vue3/tooltip-px-Nxl4C.cjs +21 -0
- package/dist/vue3/types/components/tooltip/tooltip.vue.d.ts +30 -0
- package/dist/vue3/types/components/tooltip/tooltip.vue.d.ts.map +1 -1
- package/dist/vue3/types/recipes/conversation_view/editor/editor.vue.d.ts +18 -1
- package/dist/vue3/types/recipes/conversation_view/editor/editor.vue.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/vue2/tooltip-6msmWvq0.cjs +0 -21
- package/dist/vue3/tooltip-8utqWHHH.cjs +0 -21
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";const A=require("vue"),fe={ERROR:"error",WARNING:"warning",SUCCESS:"success"},rr={LARGE:"lg",EXTRA_LARGE:"xl"},ir={xs:"",sm:"",md:"",lg:"d-description--lg",xl:"d-description--xl"},or={xs:"d-label--xs",sm:"d-label--sm",md:"",lg:"d-label--lg",xl:"d-label--xl"},ar={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"},nn=fe.ERROR,sr="dt";let ur=0,Vt;const cr=typeof setImmediate=="function"?setImmediate:setTimeout;function Ot(e=sr){return`${e}${ur++}`}function rn(e,t){if(t){const n=lr(t);return e[Math.abs(n)%e.length]}else return e[on(e.length)]}function lr(e){let t;for(let n=0;n<e.length;n++)t=Math.imul(31,t)+e.charCodeAt(n)|0;return t}function on(e){return Math.floor(Math.random()*e)}function an(e){return e?e.map(t=>typeof t=="string"?{message:t,type:nn}:t):[]}function sn(e){const t=Tt(e);return!e||!t?[]:e.filter(n=>!!n.message&&n.type===t)}function Tt(e){return e?at(e,fe.ERROR)?fe.ERROR:at(e,fe.WARNING)?fe.WARNING:at(e,fe.SUCCESS)?fe.SUCCESS:null:null}function at(e,t){return!e||!t?!1:e.some(n=>(n==null?void 0:n.type)===t)}const fr=e=>A.h("div",{innerHTML:e.html}),pr=()=>new Promise(e=>{cr(e)});function un(e,t={}){return e?e(t).some(n=>n.type===A.Comment||Array.isArray(n.children)&&!n.children.length?!1:n.type!==A.Text||typeof n.children=="string"&&n.children.trim()!==""):!1}const dr=e=>e==null?void 0:e.toLowerCase().split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),cn=e=>{const t=Object.entries(e).filter(([n])=>n.startsWith("on"));return Object.fromEntries(t)};function vr(e,t=300){clearTimeout(Vt),Vt=setTimeout(e,t)}function ln(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 hr=/(?:(?:[^\s!@#$%^&*()_=+[\]{}\\|;:'",.<>/?]+)\.)/,mr=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)"),gr=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])"),fn=new RegExp("(?:"+[[hr.source,mr.source].join("+"),gr.source].join("|")+")"),yr=/(?:(?:[;/][^#?<>\s]*)?)/,pn=/(?:(?:\?[^#<>\s]+)?(?:#[^<>\s]+)?)/,dn=new RegExp("\\b"+[fn.source,yr.source,pn.source,"(?!\\w)"].join("+")),vn=/\b[a-z\d.-]+:\/\/[^<>\s]+/,hn=new RegExp("(?:mailto:)?[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@"+[fn.source,pn.source].join("+")+"(?!\\w)");function At(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 mn=At(),gn=new RegExp([dn.source,vn.source,hn.source,mn.source].join("|"),"gi");function br(e){var t;return!e||!["string","number"].includes(typeof e)?!1:(e=e.toString(),((t=mn.exec(e))==null?void 0:t[0])===e)}function Er(e){var t,n;return!e||typeof e!="string"?!1:((t=dn.exec(e))==null?void 0:t[0])===e||((n=vn.exec(e))==null?void 0:n[0])===e}function wr(e){var t;return!e||typeof e!="string"?!1:((t=hn.exec(e))==null?void 0:t[0])===e}function yn(e){return e.filter(t=>!!t).join(" ")}function bn(e,t="en-US"){return e.replace(new RegExp("^\\p{CWU}","u"),n=>n.toLocaleUpperCase(t))}const Or={getUniqueString:Ot,getRandomElement:rn,getRandomInt:on,formatMessages:an,filterFormattedMessages:sn,hasFormattedMessageOfType:at,getValidationState:Tt,htmlFragment:fr,flushPromises:pr,kebabCaseToPascalCase:dr,extractVueListeners:cn,debounce:vr,isOutOfViewPort:ln,getPhoneNumberRegex:At,linkRegex:gn,isEmailAddress:wr,isPhoneNumber:br,isURL:Er,safeConcatStrings:yn,capitalizeFirstLetter:bn},xt=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},Tr={name:"DtLazyShow",inheritAttrs:!1,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)}}};function Ar(e,t,n,r,o,a){return A.openBlock(),A.createBlock(A.Transition,A.mergeProps({name:n.transition,appear:n.appear},e.$attrs,{css:a.isCSSEnabled}),{default:A.withCtx(()=>[A.withDirectives(A.createElementVNode("div",A.normalizeProps(A.guardReactiveProps(e.$attrs)),[o.initialized?A.renderSlot(e.$slots,"default",{key:0}):A.createCommentVNode("",!0)],16),[[A.vShow,n.show]])]),_:3},16,["name","appear","css"])}const En=xt(Tr,[["render",Ar]]);var U="top",G="bottom",K="right",$="left",St="auto",ze=[U,G,K,$],De="start",$e="end",xr="clippingParents",wn="viewport",ke="popper",Sr="reference",Mt=ze.reduce(function(e,t){return e.concat([t+"-"+De,t+"-"+$e])},[]),On=[].concat(ze,[St]).reduce(function(e,t){return e.concat([t,t+"-"+De,t+"-"+$e])},[]),Dr="beforeRead",Pr="read",Rr="afterRead",Lr="beforeMain",Cr="main",Ir="afterMain",Nr="beforeWrite",_r="write",Vr="afterWrite",Mr=[Dr,Pr,Rr,Lr,Cr,Ir,Nr,_r,Vr];function ne(e){return e?(e.nodeName||"").toLowerCase():null}function z(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function be(e){var t=z(e).Element;return e instanceof t||e instanceof Element}function q(e){var t=z(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Dt(e){if(typeof ShadowRoot>"u")return!1;var t=z(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function kr(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},a=t.elements[n];!q(a)||!ne(a)||(Object.assign(a.style,r),Object.keys(o).forEach(function(l){var u=o[l];u===!1?a.removeAttribute(l):a.setAttribute(l,u===!0?"":u)}))})}function jr(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],a=t.attributes[r]||{},l=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),u=l.reduce(function(c,p){return c[p]="",c},{});!q(o)||!ne(o)||(Object.assign(o.style,u),Object.keys(a).forEach(function(c){o.removeAttribute(c)}))})}}const Tn={name:"applyStyles",enabled:!0,phase:"write",fn:kr,effect:jr,requires:["computeStyles"]};function te(e){return e.split("-")[0]}var ye=Math.max,ut=Math.min,Pe=Math.round;function gt(){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 An(){return!/^((?!chrome|android).)*safari/i.test(gt())}function Re(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&q(e)&&(o=e.offsetWidth>0&&Pe(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Pe(r.height)/e.offsetHeight||1);var l=be(e)?z(e):window,u=l.visualViewport,c=!An()&&n,p=(r.left+(c&&u?u.offsetLeft:0))/o,f=(r.top+(c&&u?u.offsetTop:0))/a,b=r.width/o,O=r.height/a;return{width:b,height:O,top:f,right:p+b,bottom:f+O,left:p,x:p,y:f}}function Pt(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 xn(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Dt(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ue(e){return z(e).getComputedStyle(e)}function Br(e){return["table","td","th"].indexOf(ne(e))>=0}function pe(e){return((be(e)?e.ownerDocument:e.document)||window.document).documentElement}function lt(e){return ne(e)==="html"?e:e.assignedSlot||e.parentNode||(Dt(e)?e.host:null)||pe(e)}function kt(e){return!q(e)||ue(e).position==="fixed"?null:e.offsetParent}function Ur(e){var t=/firefox/i.test(gt()),n=/Trident/i.test(gt());if(n&&q(e)){var r=ue(e);if(r.position==="fixed")return null}var o=lt(e);for(Dt(o)&&(o=o.host);q(o)&&["html","body"].indexOf(ne(o))<0;){var a=ue(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function Ye(e){for(var t=z(e),n=kt(e);n&&Br(n)&&ue(n).position==="static";)n=kt(n);return n&&(ne(n)==="html"||ne(n)==="body"&&ue(n).position==="static")?t:n||Ur(e)||t}function Rt(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function je(e,t,n){return ye(e,ut(t,n))}function $r(e,t,n){var r=je(e,t,n);return r>n?n:r}function Sn(){return{top:0,right:0,bottom:0,left:0}}function Dn(e){return Object.assign({},Sn(),e)}function Pn(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Hr=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Dn(typeof t!="number"?t:Pn(t,ze))};function Fr(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,l=n.modifiersData.popperOffsets,u=te(n.placement),c=Rt(u),p=[$,K].indexOf(u)>=0,f=p?"height":"width";if(!(!a||!l)){var b=Hr(o.padding,n),O=Pt(a),m=c==="y"?U:$,E=c==="y"?G:K,g=n.rects.reference[f]+n.rects.reference[c]-l[c]-n.rects.popper[f],y=l[c]-n.rects.reference[c],x=Ye(a),D=x?c==="y"?x.clientHeight||0:x.clientWidth||0:0,R=g/2-y/2,i=b[m],T=D-O[f]-b[E],d=D/2-O[f]/2+R,P=je(i,d,T),_=c;n.modifiersData[r]=(t={},t[_]=P,t.centerOffset=P-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)||xn(t.elements.popper,o)&&(t.elements.arrow=o))}const zr={name:"arrow",enabled:!0,phase:"main",fn:Fr,effect:Wr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Le(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:Pe(n*o)/o||0,y:Pe(r*o)/o||0}}function jt(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,l=e.offsets,u=e.position,c=e.gpuAcceleration,p=e.adaptive,f=e.roundOffsets,b=e.isFixed,O=l.x,m=O===void 0?0:O,E=l.y,g=E===void 0?0:E,y=typeof f=="function"?f({x:m,y:g}):{x:m,y:g};m=y.x,g=y.y;var x=l.hasOwnProperty("x"),D=l.hasOwnProperty("y"),R=$,i=U,T=window;if(p){var d=Ye(n),P="clientHeight",_="clientWidth";if(d===z(n)&&(d=pe(n),ue(d).position!=="static"&&u==="absolute"&&(P="scrollHeight",_="scrollWidth")),d=d,o===U||(o===$||o===K)&&a===$e){i=G;var N=b&&d===T&&T.visualViewport?T.visualViewport.height:d[P];g-=N-r.height,g*=c?1:-1}if(o===$||(o===U||o===G)&&a===$e){R=K;var C=b&&d===T&&T.visualViewport?T.visualViewport.width:d[_];m-=C-r.width,m*=c?1:-1}}var V=Object.assign({position:u},p&&Yr),I=f===!0?qr({x:m,y:g},z(n)):{x:m,y:g};if(m=I.x,g=I.y,c){var L;return Object.assign({},V,(L={},L[i]=D?"0":"",L[R]=x?"0":"",L.transform=(T.devicePixelRatio||1)<=1?"translate("+m+"px, "+g+"px)":"translate3d("+m+"px, "+g+"px, 0)",L))}return Object.assign({},V,(t={},t[i]=D?g+"px":"",t[R]=x?m+"px":"",t.transform="",t))}function Gr(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,a=n.adaptive,l=a===void 0?!0:a,u=n.roundOffsets,c=u===void 0?!0:u,p={placement:te(t.placement),variation:Le(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,jt(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,jt(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Kr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Gr,data:{}};var it={passive:!0};function Xr(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=o===void 0?!0:o,l=r.resize,u=l===void 0?!0:l,c=z(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&p.forEach(function(f){f.addEventListener("scroll",n.update,it)}),u&&c.addEventListener("resize",n.update,it),function(){a&&p.forEach(function(f){f.removeEventListener("scroll",n.update,it)}),u&&c.removeEventListener("resize",n.update,it)}}const Zr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Xr,data:{}};var Qr={left:"right",right:"left",bottom:"top",top:"bottom"};function st(e){return e.replace(/left|right|bottom|top/g,function(t){return Qr[t]})}var Jr={start:"end",end:"start"};function Bt(e){return e.replace(/start|end/g,function(t){return Jr[t]})}function Lt(e){var t=z(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Ct(e){return Re(pe(e)).left+Lt(e).scrollLeft}function ei(e,t){var n=z(e),r=pe(e),o=n.visualViewport,a=r.clientWidth,l=r.clientHeight,u=0,c=0;if(o){a=o.width,l=o.height;var p=An();(p||!p&&t==="fixed")&&(u=o.offsetLeft,c=o.offsetTop)}return{width:a,height:l,x:u+Ct(e),y:c}}function ti(e){var t,n=pe(e),r=Lt(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=ye(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=ye(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),u=-r.scrollLeft+Ct(e),c=-r.scrollTop;return ue(o||n).direction==="rtl"&&(u+=ye(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:l,x:u,y:c}}function It(e){var t=ue(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Rn(e){return["html","body","#document"].indexOf(ne(e))>=0?e.ownerDocument.body:q(e)&&It(e)?e:Rn(lt(e))}function Be(e,t){var n;t===void 0&&(t=[]);var r=Rn(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),a=z(r),l=o?[a].concat(a.visualViewport||[],It(r)?r:[]):r,u=t.concat(l);return o?u:u.concat(Be(lt(l)))}function yt(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 Ut(e,t,n){return t===wn?yt(ei(e,n)):be(t)?ni(t,n):yt(ti(pe(e)))}function ri(e){var t=Be(lt(e)),n=["absolute","fixed"].indexOf(ue(e).position)>=0,r=n&&q(e)?Ye(e):e;return be(r)?t.filter(function(o){return be(o)&&xn(o,r)&&ne(o)!=="body"}):[]}function ii(e,t,n,r){var o=t==="clippingParents"?ri(e):[].concat(t),a=[].concat(o,[n]),l=a[0],u=a.reduce(function(c,p){var f=Ut(e,p,r);return c.top=ye(f.top,c.top),c.right=ut(f.right,c.right),c.bottom=ut(f.bottom,c.bottom),c.left=ye(f.left,c.left),c},Ut(e,l,r));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function Ln(e){var t=e.reference,n=e.element,r=e.placement,o=r?te(r):null,a=r?Le(r):null,l=t.x+t.width/2-n.width/2,u=t.y+t.height/2-n.height/2,c;switch(o){case U:c={x:l,y:t.y-n.height};break;case G:c={x:l,y:t.y+t.height};break;case K:c={x:t.x+t.width,y:u};break;case $:c={x:t.x-n.width,y:u};break;default:c={x:t.x,y:t.y}}var p=o?Rt(o):null;if(p!=null){var f=p==="y"?"height":"width";switch(a){case De:c[p]=c[p]-(t[f]/2-n[f]/2);break;case $e:c[p]=c[p]+(t[f]/2-n[f]/2);break}}return c}function He(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,a=n.strategy,l=a===void 0?e.strategy:a,u=n.boundary,c=u===void 0?xr:u,p=n.rootBoundary,f=p===void 0?wn:p,b=n.elementContext,O=b===void 0?ke:b,m=n.altBoundary,E=m===void 0?!1:m,g=n.padding,y=g===void 0?0:g,x=Dn(typeof y!="number"?y:Pn(y,ze)),D=O===ke?Sr:ke,R=e.rects.popper,i=e.elements[E?D:O],T=ii(be(i)?i:i.contextElement||pe(e.elements.popper),c,f,l),d=Re(e.elements.reference),P=Ln({reference:d,element:R,strategy:"absolute",placement:o}),_=yt(Object.assign({},R,P)),N=O===ke?_:d,C={top:T.top-N.top+x.top,bottom:N.bottom-T.bottom+x.bottom,left:T.left-N.left+x.left,right:N.right-T.right+x.right},V=e.modifiersData.offset;if(O===ke&&V){var I=V[o];Object.keys(C).forEach(function(L){var H=[K,G].indexOf(L)>=0?1:-1,F=[U,G].indexOf(L)>=0?"y":"x";C[L]+=I[F]*H})}return C}function oi(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,l=n.padding,u=n.flipVariations,c=n.allowedAutoPlacements,p=c===void 0?On:c,f=Le(r),b=f?u?Mt:Mt.filter(function(E){return Le(E)===f}):ze,O=b.filter(function(E){return p.indexOf(E)>=0});O.length===0&&(O=b);var m=O.reduce(function(E,g){return E[g]=He(e,{placement:g,boundary:o,rootBoundary:a,padding:l})[te(g)],E},{});return Object.keys(m).sort(function(E,g){return m[E]-m[g]})}function ai(e){if(te(e)===St)return[];var t=st(e);return[Bt(e),t,Bt(t)]}function si(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=o===void 0?!0:o,l=n.altAxis,u=l===void 0?!0:l,c=n.fallbackPlacements,p=n.padding,f=n.boundary,b=n.rootBoundary,O=n.altBoundary,m=n.flipVariations,E=m===void 0?!0:m,g=n.allowedAutoPlacements,y=t.options.placement,x=te(y),D=x===y,R=c||(D||!E?[st(y)]:ai(y)),i=[y].concat(R).reduce(function(re,X){return re.concat(te(X)===St?oi(t,{placement:X,boundary:f,rootBoundary:b,padding:p,flipVariations:E,allowedAutoPlacements:g}):X)},[]),T=t.rects.reference,d=t.rects.popper,P=new Map,_=!0,N=i[0],C=0;C<i.length;C++){var V=i[C],I=te(V),L=Le(V)===De,H=[U,G].indexOf(I)>=0,F=H?"width":"height",k=He(t,{placement:V,boundary:f,rootBoundary:b,altBoundary:O,padding:p}),j=H?L?K:$:L?G:U;T[F]>d[F]&&(j=st(j));var M=st(j),Z=[];if(a&&Z.push(k[I]<=0),u&&Z.push(k[j]<=0,k[M]<=0),Z.every(function(re){return re})){N=V,_=!1;break}P.set(V,Z)}if(_)for(var Q=E?3:1,de=function(X){var ie=i.find(function(Ee){var oe=P.get(Ee);if(oe)return oe.slice(0,X).every(function(we){return we})});if(ie)return N=ie,"break"},J=Q;J>0;J--){var ve=de(J);if(ve==="break")break}t.placement!==N&&(t.modifiersData[r]._skip=!0,t.placement=N,t.reset=!0)}}const ui={name:"flip",enabled:!0,phase:"main",fn:si,requiresIfExists:["offset"],data:{_skip:!1}};function $t(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 Ht(e){return[U,K,G,$].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,a=t.modifiersData.preventOverflow,l=He(t,{elementContext:"reference"}),u=He(t,{altBoundary:!0}),c=$t(l,r),p=$t(u,o,a),f=Ht(c),b=Ht(p);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:p,isReferenceHidden:f,hasPopperEscaped:b},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":b})}const li={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ci};function fi(e,t,n){var r=te(e),o=[$,U].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,l=a[0],u=a[1];return l=l||0,u=(u||0)*o,[$,K].indexOf(r)>=0?{x:u,y:l}:{x:l,y:u}}function pi(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=o===void 0?[0,0]:o,l=On.reduce(function(f,b){return f[b]=fi(b,t.rects,a),f},{}),u=l[t.placement],c=u.x,p=u.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=p),t.modifiersData[r]=l}const di={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:pi};function vi(e){var t=e.state,n=e.name;t.modifiersData[n]=Ln({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,a=o===void 0?!0:o,l=n.altAxis,u=l===void 0?!1:l,c=n.boundary,p=n.rootBoundary,f=n.altBoundary,b=n.padding,O=n.tether,m=O===void 0?!0:O,E=n.tetherOffset,g=E===void 0?0:E,y=He(t,{boundary:c,rootBoundary:p,padding:b,altBoundary:f}),x=te(t.placement),D=Le(t.placement),R=!D,i=Rt(x),T=mi(i),d=t.modifiersData.popperOffsets,P=t.rects.reference,_=t.rects.popper,N=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,C=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),V=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(d){if(a){var L,H=i==="y"?U:$,F=i==="y"?G:K,k=i==="y"?"height":"width",j=d[i],M=j+y[H],Z=j-y[F],Q=m?-_[k]/2:0,de=D===De?P[k]:_[k],J=D===De?-_[k]:-P[k],ve=t.elements.arrow,re=m&&ve?Pt(ve):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Sn(),ie=X[H],Ee=X[F],oe=je(0,P[k],re[k]),we=R?P[k]/2-Q-oe-ie-C.mainAxis:de-oe-ie-C.mainAxis,ce=R?-P[k]/2+Q+oe+Ee+C.mainAxis:J+oe+Ee+C.mainAxis,Oe=t.elements.arrow&&Ye(t.elements.arrow),qe=Oe?i==="y"?Oe.clientTop||0:Oe.clientLeft||0:0,Ie=(L=V==null?void 0:V[i])!=null?L:0,Ge=j+we-Ie-qe,Ke=j+ce-Ie,Ne=je(m?ut(M,Ge):M,j,m?ye(Z,Ke):Z);d[i]=Ne,I[i]=Ne-j}if(u){var _e,Xe=i==="x"?U:$,Ze=i==="x"?G:K,ae=d[T],le=T==="y"?"height":"width",Ve=ae+y[Xe],he=ae-y[Ze],Me=[U,$].indexOf(x)!==-1,Qe=(_e=V==null?void 0:V[T])!=null?_e:0,Je=Me?Ve:ae-P[le]-_[le]-Qe+C.altAxis,et=Me?ae+P[le]+_[le]-Qe-C.altAxis:he,tt=m&&Me?$r(Je,ae,et):je(m?Je:Ve,ae,m?et:he);d[T]=tt,I[T]=tt-ae}t.modifiersData[r]=I}}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===z(e)||!q(e)?Lt(e):bi(e)}function wi(e){var t=e.getBoundingClientRect(),n=Pe(t.width)/e.offsetWidth||1,r=Pe(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Oi(e,t,n){n===void 0&&(n=!1);var r=q(t),o=q(t)&&wi(t),a=pe(t),l=Re(e,o,n),u={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((ne(t)!=="body"||It(a))&&(u=Ei(t)),q(t)?(c=Re(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=Ct(a))),{x:l.left+u.scrollLeft-c.x,y:l.top+u.scrollTop-c.y,width:l.width,height:l.height}}function Ti(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function o(a){n.add(a.name);var l=[].concat(a.requires||[],a.requiresIfExists||[]);l.forEach(function(u){if(!n.has(u)){var c=t.get(u);c&&o(c)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||o(a)}),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 Wt(){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,a=o===void 0?Ft:o;return function(u,c,p){p===void 0&&(p=a);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ft,a),modifiersData:{},elements:{reference:u,popper:c},attributes:{},styles:{}},b=[],O=!1,m={state:f,setOptions:function(x){var D=typeof x=="function"?x(f.options):x;g(),f.options=Object.assign({},a,f.options,D),f.scrollParents={reference:be(u)?Be(u):u.contextElement?Be(u.contextElement):[],popper:Be(c)};var R=Ai(Si([].concat(r,f.options.modifiers)));return f.orderedModifiers=R.filter(function(i){return i.enabled}),E(),m.update()},forceUpdate:function(){if(!O){var x=f.elements,D=x.reference,R=x.popper;if(Wt(D,R)){f.rects={reference:Oi(D,Ye(R),f.options.strategy==="fixed"),popper:Pt(R)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(C){return f.modifiersData[C.name]=Object.assign({},C.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,P=T.options,_=P===void 0?{}:P,N=T.name;typeof d=="function"&&(f=d({state:f,options:_,name:N,instance:m})||f)}}}},update:xi(function(){return new Promise(function(y){m.forceUpdate(),y(f)})}),destroy:function(){g(),O=!0}};if(!Wt(u,c))return m;m.setOptions(p).then(function(y){!O&&p.onFirstUpdate&&p.onFirstUpdate(y)});function E(){f.orderedModifiers.forEach(function(y){var x=y.name,D=y.options,R=D===void 0?{}:D,i=y.effect;if(typeof i=="function"){var T=i({state:f,name:x,instance:m,options:R}),d=function(){};b.push(T||d)}})}function g(){b.forEach(function(y){return y()}),b=[]}return m}}var Pi=[Zr,hi,Kr,Tn,di,ui,yi,zr,li],Ri=Di({defaultModifiers:Pi}),Li="tippy-box",Cn="tippy-content",Ci="tippy-backdrop",In="tippy-arrow",Nn="tippy-svg-arrow",ge={passive:!0,capture:!0},_n=function(){return document.body};function Ii(e,t){return{}.hasOwnProperty.call(e,t)}function dt(e,t,n){if(Array.isArray(e)){var r=e[t];return r??(Array.isArray(n)?n[t]:n)}return e}function Nt(e,t){var n={}.toString.call(e);return n.indexOf("[object")===0&&n.indexOf(t+"]")>-1}function Vn(e,t){return typeof e=="function"?e.apply(void 0,t):e}function zt(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function Ni(e,t){var n=Object.assign({},e);return t.forEach(function(r){delete n[r]}),n}function _i(e){return e.split(/\s+/).filter(Boolean)}function Se(e){return[].concat(e)}function Yt(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 ct(e){return[].slice.call(e)}function qt(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function Ue(){return document.createElement("div")}function Fe(e){return["Element","Fragment"].some(function(t){return Nt(e,t)})}function ki(e){return Nt(e,"NodeList")}function ji(e){return Nt(e,"MouseEvent")}function Bi(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function Ui(e){return Fe(e)?[e]:ki(e)?ct(e):Array.isArray(e)?e:ct(document.querySelectorAll(e))}function vt(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function Gt(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function $i(e){var t,n=Se(e),r=n[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function Hi(e,t){var n=t.clientX,r=t.clientY;return e.every(function(o){var a=o.popperRect,l=o.popperState,u=o.props,c=u.interactiveBorder,p=Mi(l.placement),f=l.modifiersData.offset;if(!f)return!0;var b=p==="bottom"?f.top.y:0,O=p==="top"?f.bottom.y:0,m=p==="right"?f.left.x:0,E=p==="left"?f.right.x:0,g=a.top-r+b>c,y=r-a.bottom-O>c,x=a.left-n+m>c,D=n-a.right-E>c;return g||y||x||D})}function ht(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(o){e[r](o,n)})}function Kt(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 ee={isTouch:!1},Xt=0;function Fi(){ee.isTouch||(ee.isTouch=!0,window.performance&&document.addEventListener("mousemove",Mn))}function Mn(){var e=performance.now();e-Xt<20&&(ee.isTouch=!1,document.removeEventListener("mousemove",Mn)),Xt=e}function Wi(){var e=document.activeElement;if(Bi(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function zi(){document.addEventListener("touchstart",Fi,ge),window.addEventListener("blur",Wi)}var Yi=typeof window<"u"&&typeof document<"u",qi=Yi?!!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 Zt(e){var t=/[ \t]{2,}/g,n=/^[ \t]*/gm;return e.replace(t," ").replace(n,"").trim()}function Gi(e){return Zt(`
|
|
2
|
+
%ctippy.js
|
|
3
|
+
|
|
4
|
+
%c`+Zt(e)+`
|
|
5
|
+
|
|
6
|
+
%c👷 This is a development-only message. It will be removed in production.
|
|
7
|
+
`)}function kn(e){return[Gi(e),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}var We;process.env.NODE_ENV!=="production"&&Ki();function Ki(){We=new Set}function se(e,t){if(e&&!We.has(t)){var n;We.add(t),(n=console).warn.apply(n,kn(t))}}function bt(e,t){if(e&&!We.has(t)){var n;We.add(t),(n=console).error.apply(n,kn(t))}}function Xi(e){var t=!e,n=Object.prototype.toString.call(e)==="[object Object]"&&!e.addEventListener;bt(t,["tippy() was passed","`"+String(e)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),bt(n,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}var jn={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},W=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},jn,Zi),Qi=Object.keys(W),Ji=function(t){process.env.NODE_ENV!=="production"&&Un(t,[]);var n=Object.keys(t);n.forEach(function(r){W[r]=t[r]})};function Bn(e){var t=e.plugins||[],n=t.reduce(function(r,o){var a=o.name,l=o.defaultValue;if(a){var u;r[a]=e[a]!==void 0?e[a]:(u=W[a])!=null?u:l}return r},{});return Object.assign({},e,n)}function eo(e,t){var n=t?Object.keys(Bn(Object.assign({},W,{plugins:t}))):Qi,r=n.reduce(function(o,a){var l=(e.getAttribute("data-tippy-"+a)||"").trim();if(!l)return o;if(a==="content")o[a]=l;else try{o[a]=JSON.parse(l)}catch{o[a]=l}return o},{});return r}function Qt(e,t){var n=Object.assign({},t,{content:Vn(t.content,[e])},t.ignoreAttributes?{}:eo(e,t.plugins));return n.aria=Object.assign({},W.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 Un(e,t){e===void 0&&(e={}),t===void 0&&(t=[]);var n=Object.keys(e);n.forEach(function(r){var o=Ni(W,Object.keys(jn)),a=!Ii(o,r);a&&(a=t.filter(function(l){return l.name===r}).length===0),se(a,["`"+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 Et(e,t){e[to()]=t}function Jt(e){var t=Ue();return e===!0?t.className=In:(t.className=Nn,Fe(e)?t.appendChild(e):Et(t,e)),t}function en(e,t){Fe(t.content)?(Et(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?Et(e,t.content):e.textContent=t.content)}function wt(e){var t=e.firstElementChild,n=ct(t.children);return{box:t,content:n.find(function(r){return r.classList.contains(Cn)}),arrow:n.find(function(r){return r.classList.contains(In)||r.classList.contains(Nn)}),backdrop:n.find(function(r){return r.classList.contains(Ci)})}}function $n(e){var t=Ue(),n=Ue();n.className=Li,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=Ue();r.className=Cn,r.setAttribute("data-state","hidden"),en(r,e.props),t.appendChild(n),n.appendChild(r),o(e.props,e.props);function o(a,l){var u=wt(t),c=u.box,p=u.content,f=u.arrow;l.theme?c.setAttribute("data-theme",l.theme):c.removeAttribute("data-theme"),typeof l.animation=="string"?c.setAttribute("data-animation",l.animation):c.removeAttribute("data-animation"),l.inertia?c.setAttribute("data-inertia",""):c.removeAttribute("data-inertia"),c.style.maxWidth=typeof l.maxWidth=="number"?l.maxWidth+"px":l.maxWidth,l.role?c.setAttribute("role",l.role):c.removeAttribute("role"),(a.content!==l.content||a.allowHTML!==l.allowHTML)&&en(p,e.props),l.arrow?f?a.arrow!==l.arrow&&(c.removeChild(f),c.appendChild(Jt(l.arrow))):c.appendChild(Jt(l.arrow)):f&&c.removeChild(f)}return{popper:t,onUpdate:o}}$n.$$tippy=!0;var no=1,ot=[],mt=[];function ro(e,t){var n=Qt(e,Object.assign({},W,Bn(qt(t)))),r,o,a,l=!1,u=!1,c=!1,p=!1,f,b,O,m=[],E=zt(Ge,n.interactiveDebounce),g,y=no++,x=null,D=Vi(n.plugins),R={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},i={id:y,reference:e,popper:Ue(),popperInstance:x,props:n,state:R,plugins:D,clearDelayTimeouts:Je,setProps:et,setContent:tt,show:Zn,hide:Qn,hideWithInteractivity:Jn,enable:Me,disable:Qe,unmount:er,destroy:tr};if(!n.render)return process.env.NODE_ENV!=="production"&&bt(!0,"render() function has not been supplied."),i;var T=n.render(i),d=T.popper,P=T.onUpdate;d.setAttribute("data-tippy-root",""),d.id="tippy-"+i.id,i.popper=d,e._tippy=i,d._tippy=i;var _=D.map(function(s){return s.fn(i)}),N=e.hasAttribute("aria-expanded");return Oe(),Q(),j(),M("onCreate",[i]),n.showOnCreate&&Ve(),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&&H().addEventListener("mousemove",E)}),i;function C(){var s=i.props.touch;return Array.isArray(s)?s:[s,0]}function V(){return C()[0]==="hold"}function I(){var s;return!!((s=i.props.render)!=null&&s.$$tippy)}function L(){return g||e}function H(){var s=L().parentNode;return s?$i(s):document}function F(){return wt(d)}function k(s){return i.state.isMounted&&!i.state.isVisible||ee.isTouch||f&&f.type==="focus"?0:dt(i.props.delay,s?0:1,W.delay)}function j(s){s===void 0&&(s=!1),d.style.pointerEvents=i.props.interactive&&!s?"":"none",d.style.zIndex=""+i.props.zIndex}function M(s,v,h){if(h===void 0&&(h=!0),_.forEach(function(w){w[s]&&w[s].apply(w,v)}),h){var S;(S=i.props)[s].apply(S,v)}}function Z(){var s=i.props.aria;if(s.content){var v="aria-"+s.content,h=d.id,S=Se(i.props.triggerTarget||e);S.forEach(function(w){var B=w.getAttribute(v);if(i.state.isVisible)w.setAttribute(v,B?B+" "+h:h);else{var Y=B&&B.replace(h,"").trim();Y?w.setAttribute(v,Y):w.removeAttribute(v)}})}}function Q(){if(!(N||!i.props.aria.expanded)){var s=Se(i.props.triggerTarget||e);s.forEach(function(v){i.props.interactive?v.setAttribute("aria-expanded",i.state.isVisible&&v===L()?"true":"false"):v.removeAttribute("aria-expanded")})}}function de(){H().removeEventListener("mousemove",E),ot=ot.filter(function(s){return s!==E})}function J(s){if(!(ee.isTouch&&(c||s.type==="mousedown"))){var v=s.composedPath&&s.composedPath()[0]||s.target;if(!(i.props.interactive&&Kt(d,v))){if(Se(i.props.triggerTarget||e).some(function(h){return Kt(h,v)})){if(ee.isTouch||i.state.isVisible&&i.props.trigger.indexOf("click")>=0)return}else M("onClickOutside",[i,s]);i.props.hideOnClick===!0&&(i.clearDelayTimeouts(),i.hide(),u=!0,setTimeout(function(){u=!1}),i.state.isMounted||ie())}}}function ve(){c=!0}function re(){c=!1}function X(){var s=H();s.addEventListener("mousedown",J,!0),s.addEventListener("touchend",J,ge),s.addEventListener("touchstart",re,ge),s.addEventListener("touchmove",ve,ge)}function ie(){var s=H();s.removeEventListener("mousedown",J,!0),s.removeEventListener("touchend",J,ge),s.removeEventListener("touchstart",re,ge),s.removeEventListener("touchmove",ve,ge)}function Ee(s,v){we(s,function(){!i.state.isVisible&&d.parentNode&&d.parentNode.contains(d)&&v()})}function oe(s,v){we(s,v)}function we(s,v){var h=F().box;function S(w){w.target===h&&(ht(h,"remove",S),v())}if(s===0)return v();ht(h,"remove",b),ht(h,"add",S),b=S}function ce(s,v,h){h===void 0&&(h=!1);var S=Se(i.props.triggerTarget||e);S.forEach(function(w){w.addEventListener(s,v,h),m.push({node:w,eventType:s,handler:v,options:h})})}function Oe(){V()&&(ce("touchstart",Ie,{passive:!0}),ce("touchend",Ke,{passive:!0})),_i(i.props.trigger).forEach(function(s){if(s!=="manual")switch(ce(s,Ie),s){case"mouseenter":ce("mouseleave",Ke);break;case"focus":ce(qi?"focusout":"blur",Ne);break;case"focusin":ce("focusout",Ne);break}})}function qe(){m.forEach(function(s){var v=s.node,h=s.eventType,S=s.handler,w=s.options;v.removeEventListener(h,S,w)}),m=[]}function Ie(s){var v,h=!1;if(!(!i.state.isEnabled||_e(s)||u)){var S=((v=f)==null?void 0:v.type)==="focus";f=s,g=s.currentTarget,Q(),!i.state.isVisible&&ji(s)&&ot.forEach(function(w){return w(s)}),s.type==="click"&&(i.props.trigger.indexOf("mouseenter")<0||l)&&i.props.hideOnClick!==!1&&i.state.isVisible?h=!0:Ve(s),s.type==="click"&&(l=!h),h&&!S&&he(s)}}function Ge(s){var v=s.target,h=L().contains(v)||d.contains(v);if(!(s.type==="mousemove"&&h)){var S=le().concat(d).map(function(w){var B,Y=w._tippy,Te=(B=Y.popperInstance)==null?void 0:B.state;return Te?{popperRect:w.getBoundingClientRect(),popperState:Te,props:n}:null}).filter(Boolean);Hi(S,s)&&(de(),he(s))}}function Ke(s){var v=_e(s)||i.props.trigger.indexOf("click")>=0&&l;if(!v){if(i.props.interactive){i.hideWithInteractivity(s);return}he(s)}}function Ne(s){i.props.trigger.indexOf("focusin")<0&&s.target!==L()||i.props.interactive&&s.relatedTarget&&d.contains(s.relatedTarget)||he(s)}function _e(s){return ee.isTouch?V()!==s.type.indexOf("touch")>=0:!1}function Xe(){Ze();var s=i.props,v=s.popperOptions,h=s.placement,S=s.offset,w=s.getReferenceClientRect,B=s.moveTransition,Y=I()?wt(d).arrow:null,Te=w?{getBoundingClientRect:w,contextElement:w.contextElement||L()}:e,_t={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(nt){var Ae=nt.state;if(I()){var nr=F(),pt=nr.box;["placement","reference-hidden","escaped"].forEach(function(rt){rt==="placement"?pt.setAttribute("data-placement",Ae.placement):Ae.attributes.popper["data-popper-"+rt]?pt.setAttribute("data-"+rt,""):pt.removeAttribute("data-"+rt)}),Ae.attributes.popper={}}}},me=[{name:"offset",options:{offset:S}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!B}},_t];I()&&Y&&me.push({name:"arrow",options:{element:Y,padding:3}}),me.push.apply(me,(v==null?void 0:v.modifiers)||[]),i.popperInstance=Ri(Te,d,Object.assign({},v,{placement:h,onFirstUpdate:O,modifiers:me}))}function Ze(){i.popperInstance&&(i.popperInstance.destroy(),i.popperInstance=null)}function ae(){var s=i.props.appendTo,v,h=L();i.props.interactive&&s===_n||s==="parent"?v=h.parentNode:v=Vn(s,[h]),v.contains(d)||v.appendChild(d),i.state.isMounted=!0,Xe(),process.env.NODE_ENV!=="production"&&se(i.props.interactive&&s===W.appendTo&&h.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 le(){return ct(d.querySelectorAll("[data-tippy-root]"))}function Ve(s){i.clearDelayTimeouts(),s&&M("onTrigger",[i,s]),X();var v=k(!0),h=C(),S=h[0],w=h[1];ee.isTouch&&S==="hold"&&w&&(v=w),v?r=setTimeout(function(){i.show()},v):i.show()}function he(s){if(i.clearDelayTimeouts(),M("onUntrigger",[i,s]),!i.state.isVisible){ie();return}if(!(i.props.trigger.indexOf("mouseenter")>=0&&i.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(s.type)>=0&&l)){var v=k(!1);v?o=setTimeout(function(){i.state.isVisible&&i.hide()},v):a=requestAnimationFrame(function(){i.hide()})}}function Me(){i.state.isEnabled=!0}function Qe(){i.hide(),i.state.isEnabled=!1}function Je(){clearTimeout(r),clearTimeout(o),cancelAnimationFrame(a)}function et(s){if(process.env.NODE_ENV!=="production"&&se(i.state.isDestroyed,xe("setProps")),!i.state.isDestroyed){M("onBeforeUpdate",[i,s]),qe();var v=i.props,h=Qt(e,Object.assign({},v,qt(s),{ignoreAttributes:!0}));i.props=h,Oe(),v.interactiveDebounce!==h.interactiveDebounce&&(de(),E=zt(Ge,h.interactiveDebounce)),v.triggerTarget&&!h.triggerTarget?Se(v.triggerTarget).forEach(function(S){S.removeAttribute("aria-expanded")}):h.triggerTarget&&e.removeAttribute("aria-expanded"),Q(),j(),P&&P(v,h),i.popperInstance&&(Xe(),le().forEach(function(S){requestAnimationFrame(S._tippy.popperInstance.forceUpdate)})),M("onAfterUpdate",[i,s])}}function tt(s){i.setProps({content:s})}function Zn(){process.env.NODE_ENV!=="production"&&se(i.state.isDestroyed,xe("show"));var s=i.state.isVisible,v=i.state.isDestroyed,h=!i.state.isEnabled,S=ee.isTouch&&!i.props.touch,w=dt(i.props.duration,0,W.duration);if(!(s||v||h||S)&&!L().hasAttribute("disabled")&&(M("onShow",[i],!1),i.props.onShow(i)!==!1)){if(i.state.isVisible=!0,I()&&(d.style.visibility="visible"),j(),X(),i.state.isMounted||(d.style.transition="none"),I()){var B=F(),Y=B.box,Te=B.content;vt([Y,Te],0)}O=function(){var me;if(!(!i.state.isVisible||p)){if(p=!0,d.offsetHeight,d.style.transition=i.props.moveTransition,I()&&i.props.animation){var ft=F(),nt=ft.box,Ae=ft.content;vt([nt,Ae],w),Gt([nt,Ae],"visible")}Z(),Q(),Yt(mt,i),(me=i.popperInstance)==null||me.forceUpdate(),M("onMount",[i]),i.props.animation&&I()&&oe(w,function(){i.state.isShown=!0,M("onShown",[i])})}},ae()}}function Qn(){process.env.NODE_ENV!=="production"&&se(i.state.isDestroyed,xe("hide"));var s=!i.state.isVisible,v=i.state.isDestroyed,h=!i.state.isEnabled,S=dt(i.props.duration,1,W.duration);if(!(s||v||h)&&(M("onHide",[i],!1),i.props.onHide(i)!==!1)){if(i.state.isVisible=!1,i.state.isShown=!1,p=!1,l=!1,I()&&(d.style.visibility="hidden"),de(),ie(),j(!0),I()){var w=F(),B=w.box,Y=w.content;i.props.animation&&(vt([B,Y],S),Gt([B,Y],"hidden"))}Z(),Q(),i.props.animation?I()&&Ee(S,i.unmount):i.unmount()}}function Jn(s){process.env.NODE_ENV!=="production"&&se(i.state.isDestroyed,xe("hideWithInteractivity")),H().addEventListener("mousemove",E),Yt(ot,E),E(s)}function er(){process.env.NODE_ENV!=="production"&&se(i.state.isDestroyed,xe("unmount")),i.state.isVisible&&i.hide(),i.state.isMounted&&(Ze(),le().forEach(function(s){s._tippy.unmount()}),d.parentNode&&d.parentNode.removeChild(d),mt=mt.filter(function(s){return s!==i}),i.state.isMounted=!1,M("onHidden",[i]))}function tr(){process.env.NODE_ENV!=="production"&&se(i.state.isDestroyed,xe("destroy")),!i.state.isDestroyed&&(i.clearDelayTimeouts(),i.unmount(),qe(),delete e._tippy,i.state.isDestroyed=!0,M("onDestroy",[i]))}}function Ce(e,t){t===void 0&&(t={});var n=W.plugins.concat(t.plugins||[]);process.env.NODE_ENV!=="production"&&(Xi(e),Un(t,n)),zi();var r=Object.assign({},t,{plugins:n}),o=Ui(e);if(process.env.NODE_ENV!=="production"){var a=Fe(r.content),l=o.length>1;se(a&&l,["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 u=o.reduce(function(c,p){var f=p&&ro(p,r);return f&&c.push(f),c},[]);return Fe(e)?u[0]:u}Ce.defaultProps=W;Ce.setDefaultProps=Ji;Ce.currentInput=ee;Object.assign({},Tn,{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 a(p){return t.props.sticky===!0||t.props.sticky===p}var l=null,u=null;function c(){var p=a("reference")?o().getBoundingClientRect():null,f=a("popper")?r.getBoundingClientRect():null;(p&&tn(l,p)||f&&tn(u,f))&&t.popperInstance&&t.popperInstance.update(),l=p,u=f,t.state.isMounted&&requestAnimationFrame(c)}return{onMount:function(){t.props.sticky&&c()}}}};function tn(e,t){return e&&t?e.top!==t.top||e.right!==t.right||e.bottom!==t.bottom||e.left!==t.left:!0}Ce.setDefaultProps({render:$n});const oo=e=>({name:"arrowDetected",enabled:!0,phase:"main",fn:e,requiresIfExists:["offset"]}),Hn=["bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end","top","top-start","top-end"],Fn=[!0,!1,"reference","popper"],Wn=(e,t)=>{const{contentElement:n}={...t};return delete t.contentElement,Ce(e,{...t,plugins:[io],render:()=>uo(n)})},zn=({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:a})=>{n(a.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"},fo=["dialog","menu","listbox","tree","grid"],po=["","anchor"],vo=["none","dialog","first"],Yn=["parent","body"],ho=[...Fn],mo=[...Hn],qn=[...Hn],Gn=300,Kn={hover:"d-tooltip--hover",show:"d-tooltip--show",inverted:"d-tooltip--inverted",hide:"d-tooltip--hide"},Xn=[...Fn],go=[!0,!1,"toggle"],yo={name:"DtTooltip",components:{DtLazyShow:En},props:{id:{type:String,default(){return Ot()}},fallbackPlacements:{type:Array,default:()=>["auto"]},inverted:{type:Boolean,default:!1},offset:{type:Array,default:()=>[0,-4]},placement:{type:String,default:"top",validator(e){return qn.includes(e)}},sticky:{type:[Boolean,String],default:!1,validator:e=>Xn.includes(e)},appendTo:{type:[HTMLElement,String],default:"body",validator:e=>Yn.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"},contentAppear:{type:Boolean,default:!1},delay:{type:Boolean,default:!0},externalAnchor:{type:String,default:null}},emits:["shown","update:show"],data(){return{TOOLTIP_KIND_MODIFIERS:Kn,hasSlotContent:un,tip:null,inTimer:null,isShown:!1,currentPlacement:this.placement,isTouchDevice:!1}},computed:{isVisible(){var o,a;const e=!!((o=this.message)!=null&&o.trim()),t=!!((a=this.$slots)!=null&&a.default),n=!this.isTouchDevice;return this.isShown&&this.enabled&&(e||t)&&n},tooltipListeners(){return{"after-leave":()=>{this.onLeaveTransitionComplete()},"after-enter":()=>{this.onEnterTransitionComplete()}}},tippyProps(){return{offset:this.offset,interactive:!1,trigger:"manual",placement:this.placement,sticky:this.sticky,popperOptions:zn({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=Wn(this.anchor,this.initOptions()),this.isShown&&this.tip.show()},beforeUnmount(){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),Gn):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}}},bo={"data-qa":"dt-tooltip-container"};function Eo(e,t,n,r,o,a){const l=A.resolveComponent("dt-lazy-show");return A.openBlock(),A.createElementBlock("div",bo,[n.externalAnchor?A.createCommentVNode("",!0):(A.openBlock(),A.createElementBlock("span",{key:0,ref:"anchor","data-qa":"dt-tooltip-anchor",onFocusin:t[0]||(t[0]=(...u)=>a.onEnterAnchor&&a.onEnterAnchor(...u)),onFocusout:t[1]||(t[1]=(...u)=>a.onLeaveAnchor&&a.onLeaveAnchor(...u)),onMouseenter:t[2]||(t[2]=(...u)=>a.onEnterAnchor&&a.onEnterAnchor(...u)),onMouseleave:t[3]||(t[3]=(...u)=>a.onLeaveAnchor&&a.onLeaveAnchor(...u)),onKeydown:t[4]||(t[4]=A.withKeys((...u)=>a.onLeaveAnchor&&a.onLeaveAnchor(...u),["esc"])),onTouchstart:t[5]||(t[5]=(...u)=>a.onTouchStart&&a.onTouchStart(...u))},[A.renderSlot(e.$slots,"anchor")],544)),A.createVNode(l,A.mergeProps({id:n.id,ref:"content",show:a.isVisible,role:"tooltip","aria-hidden":"false","data-qa":"dt-tooltip",appear:n.contentAppear,transition:n.transition,class:["d-tooltip",`d-tooltip__arrow-tippy--${o.currentPlacement}`,{[o.TOOLTIP_KIND_MODIFIERS.inverted]:n.inverted},n.contentClass]},A.toHandlers(a.tooltipListeners)),{default:A.withCtx(()=>[A.renderSlot(e.$slots,"default",{},()=>[A.createTextVNode(A.toDisplayString(n.message),1)])]),_:3},16,["id","show","appear","transition","class"])])}const wo=xt(yo,[["render",Eo]]);exports.DEFAULT_VALIDATION_MESSAGE_TYPE=nn;exports.DESCRIPTION_SIZE_MODIFIERS=ir;exports.DESCRIPTION_SIZE_TYPES=rr;exports.DtLazyShow=En;exports.DtTooltip=wo;exports.EVENT_KEYNAMES=ar;exports.LABEL_SIZE_MODIFIERS=or;exports.POPOVER_APPEND_TO_VALUES=Yn;exports.POPOVER_CONTENT_WIDTHS=po;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=fo;exports.POPOVER_STICKY_VALUES=ho;exports.TOOLTIP_DELAY_MS=Gn;exports.TOOLTIP_DIRECTIONS=qn;exports.TOOLTIP_HIDE_ON_CLICK_VARIANTS=go;exports.TOOLTIP_KIND_MODIFIERS=Kn;exports.TOOLTIP_STICKY_VALUES=Xn;exports.VALIDATION_MESSAGE_TYPES=fe;exports._export_sfc=xt;exports.capitalizeFirstLetter=bn;exports.createTippy=Wn;exports.extractVueListeners=cn;exports.filterFormattedMessages=sn;exports.formatMessages=an;exports.getPhoneNumberRegex=At;exports.getPopperOptions=zn;exports.getRandomElement=rn;exports.getUniqueString=Ot;exports.getValidationState=Tt;exports.hasSlotContent=un;exports.isOutOfViewPort=ln;exports.linkRegex=gn;exports.safeConcatStrings=yn;exports.tippy=Ce;exports.utils=Or;
|
|
@@ -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
|
|
@@ -262,6 +276,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
262
276
|
};
|
|
263
277
|
contentElement: any;
|
|
264
278
|
allowHTML: boolean;
|
|
279
|
+
appendTo: any;
|
|
265
280
|
zIndex: number;
|
|
266
281
|
onMount: () => void;
|
|
267
282
|
};
|
|
@@ -356,6 +371,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
356
371
|
default: boolean;
|
|
357
372
|
validator: (sticky: unknown) => boolean;
|
|
358
373
|
};
|
|
374
|
+
/**
|
|
375
|
+
* Sets the element to which the tooltip is going to append to.
|
|
376
|
+
* 'body' will append to the nearest body (supports shadow DOM).
|
|
377
|
+
* This prop is not reactive, must be set on initial render.
|
|
378
|
+
* @values 'body', 'parent', HTMLElement,
|
|
379
|
+
*/
|
|
380
|
+
appendTo: {
|
|
381
|
+
type: (StringConstructor | {
|
|
382
|
+
new (): HTMLElement;
|
|
383
|
+
prototype: HTMLElement;
|
|
384
|
+
})[];
|
|
385
|
+
default: string;
|
|
386
|
+
validator: (appendTo: unknown) => boolean;
|
|
387
|
+
};
|
|
359
388
|
/**
|
|
360
389
|
* Additional css classes for the tooltip content element.
|
|
361
390
|
* Can accept all of String, Object, and Array, i.e. has the
|
|
@@ -435,6 +464,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
435
464
|
show: boolean;
|
|
436
465
|
offset: unknown[];
|
|
437
466
|
fallbackPlacements: unknown[];
|
|
467
|
+
appendTo: string | HTMLElement;
|
|
438
468
|
delay: boolean;
|
|
439
469
|
placement: string;
|
|
440
470
|
sticky: string | boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.vue.d.ts","sourceRoot":"","sources":["../../../../components/tooltip/tooltip.vue.js"],"names":[],"mappings":";
|
|
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;;;;;IAMH;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IArLH;;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;;;;;IAMH;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;+BA1MyC,gBAAgB"}
|
|
@@ -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
|
-
}, never, import("vue").ComponentOptionsMixin, ("input" | "focus" | "blur")[], "input" | "focus" | "blur", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
303
|
+
}, never, import("vue").ComponentOptionsMixin, ("input" | "focus" | "blur" | "quick-replies-click")[], "input" | "focus" | "blur" | "quick-replies-click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, 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
|
*/
|
|
@@ -492,6 +507,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
492
507
|
onFocus?: ((...args: any[]) => any) | undefined;
|
|
493
508
|
onBlur?: ((...args: any[]) => any) | undefined;
|
|
494
509
|
onInput?: ((...args: any[]) => any) | undefined;
|
|
510
|
+
"onQuick-replies-click"?: ((...args: any[]) => any) | undefined;
|
|
495
511
|
}, {
|
|
496
512
|
value: string | Record<string, any>;
|
|
497
513
|
maxHeight: string;
|
|
@@ -516,6 +532,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
516
532
|
showAlignJustifyButton: boolean;
|
|
517
533
|
showQuoteButton: boolean;
|
|
518
534
|
showCodeBlockButton: boolean;
|
|
535
|
+
showQuickRepliesButton: boolean;
|
|
519
536
|
showAddLink: Record<string, any>;
|
|
520
537
|
}, {}>;
|
|
521
538
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor.vue.d.ts","sourceRoot":"","sources":["../../../../../recipes/conversation_view/editor/editor.vue.js"],"names":[],"mappings":";IAqCI;;;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":";IAqCI;;;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,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;
|