@dialpad/dialtone-vue 3.96.1 → 3.96.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (145) hide show
  1. package/CHANGELOG.json +1 -1
  2. package/CHANGELOG.md +7 -0
  3. package/README.md +3 -3
  4. package/dist/component-documentation.json +1 -1
  5. package/dist/dialtone-vue.cjs +5 -5
  6. package/dist/dialtone-vue.js +2503 -2601
  7. package/dist/directives.cjs +1 -1
  8. package/dist/directives.js +1 -1
  9. package/dist/{emoji-zsImd-qD.js → emoji-64scMQZS.js} +6280 -7196
  10. package/dist/emoji-zMlz3b9J.cjs +1 -0
  11. package/dist/emoji.cjs +1 -1
  12. package/dist/emoji.js +33 -113
  13. package/dist/emoji_picker-MrGLDXUn.js +921 -0
  14. package/dist/emoji_picker-gkXbSV3i.cjs +1 -0
  15. package/dist/emoji_text_wrapper-5mWcPQ4m.cjs +1 -0
  16. package/dist/emoji_text_wrapper-GCssca4o.js +86 -0
  17. package/dist/message_input.cjs +92 -1
  18. package/dist/message_input.js +13903 -5
  19. package/dist/stack-_FIkvuMY.cjs +2 -0
  20. package/dist/stack-q9VLdD1J.js +2722 -0
  21. package/dist/style.css +1 -1
  22. package/dist/tooltip-H27s49LR.js +2476 -0
  23. package/dist/tooltip-gZ2LW6l0.cjs +21 -0
  24. package/dist/types/common/constants.d.ts +31 -31
  25. package/dist/types/common/mixins/input.d.ts +38 -38
  26. package/dist/types/common/mixins/input_group.d.ts +19 -19
  27. package/dist/types/common/mixins/sr_only_close_button.d.ts +6 -6
  28. package/dist/types/components/avatar/avatar.vue.d.ts +1 -1
  29. package/dist/types/components/avatar/avatar_constants.d.ts +20 -20
  30. package/dist/types/components/badge/badge.vue.d.ts +9 -2
  31. package/dist/types/components/badge/badge.vue.d.ts.map +1 -1
  32. package/dist/types/components/badge/badge_constants.d.ts +9 -9
  33. package/dist/types/components/button/button.vue.d.ts +1 -1
  34. package/dist/types/components/button/button_constants.d.ts +21 -21
  35. package/dist/types/components/button/index.d.ts +1 -0
  36. package/dist/types/components/checkbox/checkbox.vue.d.ts +6 -1
  37. package/dist/types/components/checkbox/checkbox.vue.d.ts.map +1 -1
  38. package/dist/types/components/checkbox/checkbox_constants.d.ts +3 -3
  39. package/dist/types/components/checkbox_group/checkbox_group.vue.d.ts +9 -2
  40. package/dist/types/components/checkbox_group/checkbox_group.vue.d.ts.map +1 -1
  41. package/dist/types/components/chip/chip_constants.d.ts +10 -9
  42. package/dist/types/components/chip/index.d.ts +1 -1
  43. package/dist/types/components/combobox/combobox.vue.d.ts +16 -8
  44. package/dist/types/components/combobox/combobox.vue.d.ts.map +1 -1
  45. package/dist/types/components/combobox/combobox_constants.d.ts +9 -5
  46. package/dist/types/components/combobox/index.d.ts +1 -0
  47. package/dist/types/components/datepicker/{DtDatepicker.vue.d.ts → datepicker.vue.d.ts} +2 -2
  48. package/dist/types/components/datepicker/datepicker.vue.d.ts.map +1 -0
  49. package/dist/types/components/datepicker/formatUtils.d.ts +8 -0
  50. package/dist/types/components/datepicker/index.d.ts +1 -1
  51. package/dist/types/components/datepicker/modules/calendar.vue.d.ts +4 -1
  52. package/dist/types/components/datepicker/modules/month-year-picker.vue.d.ts +7 -1
  53. package/dist/types/components/dropdown/dropdown.vue.d.ts +27 -1
  54. package/dist/types/components/dropdown/dropdown.vue.d.ts.map +1 -1
  55. package/dist/types/components/dropdown/dropdown_constants.d.ts +7 -3
  56. package/dist/types/components/dropdown/index.d.ts +1 -0
  57. package/dist/types/components/emoji_picker/{DtEmojiPicker.vue.d.ts → emoji_picker.vue.d.ts} +2 -2
  58. package/dist/types/components/emoji_picker/emoji_picker.vue.d.ts.map +1 -0
  59. package/dist/types/components/emoji_picker/emoji_picker_constants.d.ts +22 -17
  60. package/dist/types/components/emoji_picker/index.d.ts +1 -1
  61. package/dist/types/components/emoji_picker/modules/emoji_description.vue.d.ts +1 -0
  62. package/dist/types/components/emoji_picker/modules/emoji_search.vue.d.ts +3 -1
  63. package/dist/types/components/emoji_picker/modules/emoji_search.vue.d.ts.map +1 -1
  64. package/dist/types/components/emoji_picker/modules/emoji_selector.vue.d.ts +1 -1
  65. package/dist/types/components/emoji_picker/modules/emoji_selector.vue.d.ts.map +1 -1
  66. package/dist/types/components/emoji_picker/modules/emoji_skin_selector.vue.d.ts +1 -1
  67. package/dist/types/components/emoji_picker/modules/emoji_skin_selector.vue.d.ts.map +1 -1
  68. package/dist/types/components/emoji_picker/modules/emoji_tabset.vue.d.ts +1 -1
  69. package/dist/types/components/input/input.vue.d.ts +2 -2
  70. package/dist/types/components/input/input_constants.d.ts +13 -13
  71. package/dist/types/components/input_group/input_group.vue.d.ts +3 -1
  72. package/dist/types/components/input_group/input_group.vue.d.ts.map +1 -1
  73. package/dist/types/components/link/link_constants.d.ts +11 -6
  74. package/dist/types/components/list_item/index.d.ts +1 -0
  75. package/dist/types/components/list_item/list_item.vue.d.ts +1 -1
  76. package/dist/types/components/list_item/list_item_constants.d.ts +5 -5
  77. package/dist/types/components/modal/modal_constants.d.ts +9 -9
  78. package/dist/types/components/popover/index.d.ts +1 -1
  79. package/dist/types/components/popover/popover.vue.d.ts +1 -1
  80. package/dist/types/components/popover/popover_constants.d.ts +19 -8
  81. package/dist/types/components/presence/presence_constants.d.ts +4 -4
  82. package/dist/types/components/radio/index.d.ts +1 -0
  83. package/dist/types/components/radio/radio.vue.d.ts +3 -7
  84. package/dist/types/components/radio/radio.vue.d.ts.map +1 -1
  85. package/dist/types/components/radio/radio_constants.d.ts +3 -3
  86. package/dist/types/components/radio_group/radio_group.vue.d.ts +1 -3
  87. package/dist/types/components/radio_group/radio_group.vue.d.ts.map +1 -1
  88. package/dist/types/components/rich_text_editor/extensions/emoji/EmojiComponent.vue.d.ts +2 -2
  89. package/dist/types/components/rich_text_editor/extensions/link/utils.d.ts +5 -1
  90. package/dist/types/components/rich_text_editor/extensions/link/utils.d.ts.map +1 -1
  91. package/dist/types/components/rich_text_editor/extensions/mentions/MentionComponent.vue.d.ts +2 -2
  92. package/dist/types/components/rich_text_editor/rich_text_editor.vue.d.ts +1 -1
  93. package/dist/types/components/rich_text_editor/rich_text_editor_constants.d.ts +5 -0
  94. package/dist/types/components/root_layout/root_layout_constants.d.ts +2 -2
  95. package/dist/types/components/scroller/DtScroller.vue.d.ts +11 -1
  96. package/dist/types/components/scroller/DtScroller.vue.d.ts.map +1 -1
  97. package/dist/types/components/scroller/modules/core_scroller.vue.d.ts +13 -1
  98. package/dist/types/components/scroller/modules/core_scroller.vue.d.ts.map +1 -1
  99. package/dist/types/components/select_menu/select_menu.vue.d.ts +1 -1
  100. package/dist/types/components/select_menu/select_menu_constants.d.ts +8 -8
  101. package/dist/types/components/skeleton/skeleton_constants.d.ts +8 -8
  102. package/dist/types/components/stack/index.d.ts +1 -0
  103. package/dist/types/components/stack/stack_constants.d.ts +6 -0
  104. package/dist/types/components/tabs/tabs_constants.d.ts +4 -4
  105. package/dist/types/components/toast/toast.vue.d.ts +4 -1
  106. package/dist/types/components/toast/toast.vue.d.ts.map +1 -1
  107. package/dist/types/components/toggle/index.d.ts +1 -0
  108. package/dist/types/components/toggle/toggle_constants.d.ts +3 -2
  109. package/dist/types/components/tooltip/tooltip_constants.d.ts +4 -4
  110. package/dist/types/directives/tooltip/tooltip.d.ts +1 -1
  111. package/dist/types/index.d.ts +0 -3
  112. package/dist/types/message_input.d.ts +1 -0
  113. package/dist/types/recipes/cards/ivr_node/ivr_node_constants.d.ts +22 -22
  114. package/dist/types/recipes/comboboxes/combobox_multi_select/combobox_multi_select.vue.d.ts +2 -2
  115. package/dist/types/recipes/comboboxes/combobox_multi_select/combobox_multi_select_constants.d.ts +25 -0
  116. package/dist/types/recipes/comboboxes/combobox_multi_select/combobox_multi_select_constants.d.ts.map +1 -0
  117. package/dist/types/recipes/comboboxes/combobox_multi_select/combobox_multi_select_story_constants.d.ts +0 -18
  118. package/dist/types/recipes/comboboxes/combobox_multi_select/index.d.ts +1 -1
  119. package/dist/types/recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue.d.ts +1 -1
  120. package/dist/types/recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue.d.ts.map +1 -1
  121. package/dist/types/recipes/conversation_view/feed_item_row/feed_item_row.vue.d.ts +13 -2
  122. package/dist/types/recipes/conversation_view/feed_item_row/feed_item_row.vue.d.ts.map +1 -1
  123. package/dist/types/recipes/conversation_view/feed_item_row/feed_item_row_constants.d.ts +3 -3
  124. package/dist/types/recipes/conversation_view/feed_item_row/index.d.ts +1 -0
  125. package/dist/types/recipes/conversation_view/feed_pill/feed_item_pill_constants.d.ts +3 -3
  126. package/dist/types/recipes/conversation_view/message_input/message_input.vue.d.ts +1 -1
  127. package/dist/types/recipes/leftbar/callbox/callbox_constants.d.ts +4 -4
  128. package/dist/types/recipes/leftbar/general_row/general_row.vue.d.ts +1 -1
  129. package/dist/types/recipes/leftbar/general_row/general_row_constants.d.ts +12 -12
  130. package/dist/types/recipes/leftbar/general_row/leftbar_general_row_icon.vue.d.ts +1 -1
  131. package/dist/types/recipes/list_items/contact_info/contact_info.vue.d.ts +1 -1
  132. package/package.json +51 -51
  133. package/dist/emoji-5anz0QgY.cjs +0 -1
  134. package/dist/message_input-SgLogXZ3.cjs +0 -93
  135. package/dist/message_input-zOYCybPr.js +0 -16477
  136. package/dist/tooltip-3LC0ejIh.cjs +0 -25
  137. package/dist/tooltip-laZwfd56.js +0 -2574
  138. package/dist/types/components/datepicker/DtDatepicker.vue.d.ts.map +0 -1
  139. package/dist/types/components/emoji_picker/DtEmojiPicker.vue.d.ts.map +0 -1
  140. package/dist/types/components/list_section/index.d.ts +0 -2
  141. package/dist/types/components/list_section/index.d.ts.map +0 -1
  142. package/dist/types/components/list_section/list_section.vue.d.ts +0 -71
  143. package/dist/types/components/list_section/list_section.vue.d.ts.map +0 -1
  144. package/dist/types/components/tooltip/tooltip_variants.vue.d.ts +0 -7
  145. package/dist/types/components/tooltip/tooltip_variants.vue.d.ts.map +0 -1
@@ -1,25 +0,0 @@
1
- "use strict";const A=require("vue"),fe={ERROR:"error",WARNING:"warning",SUCCESS:"success"},ar={LARGE:"lg",EXTRA_LARGE:"xl"},sr={xs:"",sm:"",md:"",lg:"d-description--lg",xl:"d-description--xl"},ur={xs:"d-label--xs",sm:"d-label--sm",md:"",lg:"d-label--lg",xl:"d-label--xl"},cr={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"},un=fe.ERROR,lr="dt";let pr=0,jt;const fr=typeof setImmediate=="function"?setImmediate:setTimeout;function St(e=lr){return`${e}${pr++}`}function cn(e,t){if(t){const n=dr(t);return e[Math.abs(n)%e.length]}else return e[ln(e.length)]}function dr(e){let t;for(let n=0;n<e.length;n++)t=Math.imul(31,t)+e.charCodeAt(n)|0;return t}function ln(e){return Math.floor(Math.random()*e)}function pn(e){return e?e.map(t=>typeof t=="string"?{message:t,type:un}:t):[]}function fn(e){const t=Dt(e);return!e||!t?[]:e.filter(n=>!!n.message&&n.type===t)}function Dt(e){return e?ut(e,fe.ERROR)?fe.ERROR:ut(e,fe.WARNING)?fe.WARNING:ut(e,fe.SUCCESS)?fe.SUCCESS:null:null}function ut(e,t){return!e||!t?!1:e.some(n=>(n==null?void 0:n.type)===t)}const vr=e=>A.h("div",{innerHTML:e.html}),hr=()=>new Promise(e=>{fr(e)});function dn(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 mr=e=>e==null?void 0:e.toLowerCase().split("-").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(""),vn=e=>{const t=Object.entries(e).filter(([n])=>n.startsWith("on"));return Object.fromEntries(t)};function gr(e,t=300){clearTimeout(jt),jt=setTimeout(e,t)}function hn(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 yr=/(?:(?:[^\s!@#$%^&*()_=+[\]{}\\|;:'",.<>/?]+)\.)/,br=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)"),wr=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])"),mn=new RegExp("(?:"+[[yr.source,br.source].join("+"),wr.source].join("|")+")"),Er=/(?:(?:[;/][^#?<>\s]*)?)/,gn=/(?:(?:\?[^#<>\s]+)?(?:#[^<>\s]+)?)/,yn=new RegExp("\\b"+[mn.source,Er.source,gn.source,"(?!\\w)"].join("+")),bn=/\b[a-z\d.-]+:\/\/[^<>\s]+/,wn=new RegExp("(?:mailto:)?[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@"+[mn.source,gn.source].join("+")+"(?!\\w)");function Lt(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 En=Lt(),On=new RegExp([yn.source,bn.source,wn.source,En.source].join("|"),"gi");function Or(e){var t;return!e||!["string","number"].includes(typeof e)?!1:(e=e.toString(),((t=En.exec(e))==null?void 0:t[0])===e)}function xr(e){var t,n;return!e||typeof e!="string"?!1:((t=yn.exec(e))==null?void 0:t[0])===e||((n=bn.exec(e))==null?void 0:n[0])===e}function Tr(e){var t;return!e||typeof e!="string"?!1:((t=wn.exec(e))==null?void 0:t[0])===e}function xn(e){return e.filter(t=>!!t).join(" ")}function Tn(e,t="en-US"){return e.replace(new RegExp("^\\p{CWU}","u"),n=>n.toLocaleUpperCase(t))}const Ar={getUniqueString:St,getRandomElement:cn,getRandomInt:ln,formatMessages:pn,filterFormattedMessages:fn,hasFormattedMessageOfType:ut,getValidationState:Dt,htmlFragment:vr,flushPromises:hr,kebabCaseToPascalCase:mr,extractVueListeners:vn,debounce:gr,isOutOfViewPort:hn,getPhoneNumberRegex:Lt,linkRegex:On,isEmailAddress:Tr,isPhoneNumber:Or,isURL:xr,safeConcatStrings:xn,capitalizeFirstLetter:Tn},Rt=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},Sr={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 Dr(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 An=Rt(Sr,[["render",Dr]]);var $="top",K="bottom",G="right",U="left",ft="auto",Ye=[$,K,G,U],Re="start",He="end",Lr="clippingParents",Sn="viewport",Be="popper",Rr="reference",Bt=Ye.reduce(function(e,t){return e.concat([t+"-"+Re,t+"-"+He])},[]),Dn=[].concat(Ye,[ft]).reduce(function(e,t){return e.concat([t,t+"-"+Re,t+"-"+He])},[]),Pr="beforeRead",Ir="read",Cr="afterRead",Nr="beforeMain",Mr="main",_r="afterMain",Vr="beforeWrite",kr="write",jr="afterWrite",wt=[Pr,Ir,Cr,Nr,Mr,_r,Vr,kr,jr];function re(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 Ee(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 Pt(e){if(typeof ShadowRoot>"u")return!1;var t=z(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Br(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)||!re(a)||(Object.assign(a.style,r),Object.keys(o).forEach(function(l){var c=o[l];c===!1?a.removeAttribute(l):a.setAttribute(l,c===!0?"":c)}))})}function $r(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]),c=l.reduce(function(u,f){return u[f]="",u},{});!q(o)||!re(o)||(Object.assign(o.style,c),Object.keys(a).forEach(function(u){o.removeAttribute(u)}))})}}const Ln={name:"applyStyles",enabled:!0,phase:"write",fn:Br,effect:$r,requires:["computeStyles"]};function Z(e){return e.split("-")[0]}var we=Math.max,lt=Math.min,Pe=Math.round;function Et(){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 Rn(){return!/^((?!chrome|android).)*safari/i.test(Et())}function Ie(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=Ee(e)?z(e):window,c=l.visualViewport,u=!Rn()&&n,f=(r.left+(u&&c?c.offsetLeft:0))/o,p=(r.top+(u&&c?c.offsetTop:0))/a,g=r.width/o,x=r.height/a;return{width:g,height:x,top:p,right:f+g,bottom:p+x,left:f,x:f,y:p}}function It(e){var t=Ie(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 Pn(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Pt(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function J(e){return z(e).getComputedStyle(e)}function Ur(e){return["table","td","th"].indexOf(re(e))>=0}function de(e){return((Ee(e)?e.ownerDocument:e.document)||window.document).documentElement}function dt(e){return re(e)==="html"?e:e.assignedSlot||e.parentNode||(Pt(e)?e.host:null)||de(e)}function $t(e){return!q(e)||J(e).position==="fixed"?null:e.offsetParent}function Fr(e){var t=/firefox/i.test(Et()),n=/Trident/i.test(Et());if(n&&q(e)){var r=J(e);if(r.position==="fixed")return null}var o=dt(e);for(Pt(o)&&(o=o.host);q(o)&&["html","body"].indexOf(re(o))<0;){var a=J(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 Ke(e){for(var t=z(e),n=$t(e);n&&Ur(n)&&J(n).position==="static";)n=$t(n);return n&&(re(n)==="html"||re(n)==="body"&&J(n).position==="static")?t:n||Fr(e)||t}function Ct(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function $e(e,t,n){return we(e,lt(t,n))}function Hr(e,t,n){var r=$e(e,t,n);return r>n?n:r}function In(){return{top:0,right:0,bottom:0,left:0}}function Cn(e){return Object.assign({},In(),e)}function Nn(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Wr=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Cn(typeof t!="number"?t:Nn(t,Ye))};function qr(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,l=n.modifiersData.popperOffsets,c=Z(n.placement),u=Ct(c),f=[U,G].indexOf(c)>=0,p=f?"height":"width";if(!(!a||!l)){var g=Wr(o.padding,n),x=It(a),m=u==="y"?$:U,w=u==="y"?K:G,y=n.rects.reference[p]+n.rects.reference[u]-l[u]-n.rects.popper[p],b=l[u]-n.rects.reference[u],S=Ke(a),R=S?u==="y"?S.clientHeight||0:S.clientWidth||0:0,I=y/2-b/2,i=g[m],E=R-x[p]-g[w],d=R/2-x[p]/2+I,L=$e(i,d,E),M=u;n.modifiersData[r]=(t={},t[M]=L,t.centerOffset=L-d,t)}}function zr(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;if(o!=null&&!(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o))){if(process.env.NODE_ENV!=="production"&&(q(o)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" "))),!Pn(t.elements.popper,o)){process.env.NODE_ENV!=="production"&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" "));return}t.elements.arrow=o}}const Yr={name:"arrow",enabled:!0,phase:"main",fn:qr,effect:zr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ce(e){return e.split("-")[1]}var Kr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Gr(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 Ut(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,l=e.offsets,c=e.position,u=e.gpuAcceleration,f=e.adaptive,p=e.roundOffsets,g=e.isFixed,x=l.x,m=x===void 0?0:x,w=l.y,y=w===void 0?0:w,b=typeof p=="function"?p({x:m,y}):{x:m,y};m=b.x,y=b.y;var S=l.hasOwnProperty("x"),R=l.hasOwnProperty("y"),I=U,i=$,E=window;if(f){var d=Ke(n),L="clientHeight",M="clientWidth";if(d===z(n)&&(d=de(n),J(d).position!=="static"&&c==="absolute"&&(L="scrollHeight",M="scrollWidth")),d=d,o===$||(o===U||o===G)&&a===He){i=K;var _=g&&d===E&&E.visualViewport?E.visualViewport.height:d[L];y-=_-r.height,y*=u?1:-1}if(o===U||(o===$||o===K)&&a===He){I=G;var C=g&&d===E&&E.visualViewport?E.visualViewport.width:d[M];m-=C-r.width,m*=u?1:-1}}var T=Object.assign({position:c},f&&Kr),P=p===!0?Gr({x:m,y},z(n)):{x:m,y};if(m=P.x,y=P.y,u){var N;return Object.assign({},T,(N={},N[i]=R?"0":"",N[I]=S?"0":"",N.transform=(E.devicePixelRatio||1)<=1?"translate("+m+"px, "+y+"px)":"translate3d("+m+"px, "+y+"px, 0)",N))}return Object.assign({},T,(t={},t[i]=R?y+"px":"",t[I]=S?m+"px":"",t.transform="",t))}function Xr(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,c=n.roundOffsets,u=c===void 0?!0:c;if(process.env.NODE_ENV!=="production"){var f=J(t.elements.popper).transitionProperty||"";l&&["transform","top","right","bottom","left"].some(function(g){return f.indexOf(g)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
2
-
3
- `,'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.",`
4
-
5
- `,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var p={placement:Z(t.placement),variation:Ce(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,Ut(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ut(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Zr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Xr,data:{}};var at={passive:!0};function Jr(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=o===void 0?!0:o,l=r.resize,c=l===void 0?!0:l,u=z(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&f.forEach(function(p){p.addEventListener("scroll",n.update,at)}),c&&u.addEventListener("resize",n.update,at),function(){a&&f.forEach(function(p){p.removeEventListener("scroll",n.update,at)}),c&&u.removeEventListener("resize",n.update,at)}}const Qr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Jr,data:{}};var ei={left:"right",right:"left",bottom:"top",top:"bottom"};function ct(e){return e.replace(/left|right|bottom|top/g,function(t){return ei[t]})}var ti={start:"end",end:"start"};function Ft(e){return e.replace(/start|end/g,function(t){return ti[t]})}function Nt(e){var t=z(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Mt(e){return Ie(de(e)).left+Nt(e).scrollLeft}function ni(e,t){var n=z(e),r=de(e),o=n.visualViewport,a=r.clientWidth,l=r.clientHeight,c=0,u=0;if(o){a=o.width,l=o.height;var f=Rn();(f||!f&&t==="fixed")&&(c=o.offsetLeft,u=o.offsetTop)}return{width:a,height:l,x:c+Mt(e),y:u}}function ri(e){var t,n=de(e),r=Nt(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=we(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=we(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),c=-r.scrollLeft+Mt(e),u=-r.scrollTop;return J(o||n).direction==="rtl"&&(c+=we(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:l,x:c,y:u}}function _t(e){var t=J(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Mn(e){return["html","body","#document"].indexOf(re(e))>=0?e.ownerDocument.body:q(e)&&_t(e)?e:Mn(dt(e))}function Ue(e,t){var n;t===void 0&&(t=[]);var r=Mn(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),a=z(r),l=o?[a].concat(a.visualViewport||[],_t(r)?r:[]):r,c=t.concat(l);return o?c:c.concat(Ue(dt(l)))}function Ot(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ii(e,t){var n=Ie(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 Ht(e,t,n){return t===Sn?Ot(ni(e,n)):Ee(t)?ii(t,n):Ot(ri(de(e)))}function oi(e){var t=Ue(dt(e)),n=["absolute","fixed"].indexOf(J(e).position)>=0,r=n&&q(e)?Ke(e):e;return Ee(r)?t.filter(function(o){return Ee(o)&&Pn(o,r)&&re(o)!=="body"}):[]}function ai(e,t,n,r){var o=t==="clippingParents"?oi(e):[].concat(t),a=[].concat(o,[n]),l=a[0],c=a.reduce(function(u,f){var p=Ht(e,f,r);return u.top=we(p.top,u.top),u.right=lt(p.right,u.right),u.bottom=lt(p.bottom,u.bottom),u.left=we(p.left,u.left),u},Ht(e,l,r));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function _n(e){var t=e.reference,n=e.element,r=e.placement,o=r?Z(r):null,a=r?Ce(r):null,l=t.x+t.width/2-n.width/2,c=t.y+t.height/2-n.height/2,u;switch(o){case $:u={x:l,y:t.y-n.height};break;case K:u={x:l,y:t.y+t.height};break;case G:u={x:t.x+t.width,y:c};break;case U:u={x:t.x-n.width,y:c};break;default:u={x:t.x,y:t.y}}var f=o?Ct(o):null;if(f!=null){var p=f==="y"?"height":"width";switch(a){case Re:u[f]=u[f]-(t[p]/2-n[p]/2);break;case He:u[f]=u[f]+(t[p]/2-n[p]/2);break}}return u}function We(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,c=n.boundary,u=c===void 0?Lr:c,f=n.rootBoundary,p=f===void 0?Sn:f,g=n.elementContext,x=g===void 0?Be:g,m=n.altBoundary,w=m===void 0?!1:m,y=n.padding,b=y===void 0?0:y,S=Cn(typeof b!="number"?b:Nn(b,Ye)),R=x===Be?Rr:Be,I=e.rects.popper,i=e.elements[w?R:x],E=ai(Ee(i)?i:i.contextElement||de(e.elements.popper),u,p,l),d=Ie(e.elements.reference),L=_n({reference:d,element:I,strategy:"absolute",placement:o}),M=Ot(Object.assign({},I,L)),_=x===Be?M:d,C={top:E.top-_.top+S.top,bottom:_.bottom-E.bottom+S.bottom,left:E.left-_.left+S.left,right:_.right-E.right+S.right},T=e.modifiersData.offset;if(x===Be&&T){var P=T[o];Object.keys(C).forEach(function(N){var F=[G,K].indexOf(N)>=0?1:-1,H=[$,K].indexOf(N)>=0?"y":"x";C[N]+=P[H]*F})}return C}function si(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,l=n.padding,c=n.flipVariations,u=n.allowedAutoPlacements,f=u===void 0?Dn:u,p=Ce(r),g=p?c?Bt:Bt.filter(function(w){return Ce(w)===p}):Ye,x=g.filter(function(w){return f.indexOf(w)>=0});x.length===0&&(x=g,process.env.NODE_ENV!=="production"&&console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var m=x.reduce(function(w,y){return w[y]=We(e,{placement:y,boundary:o,rootBoundary:a,padding:l})[Z(y)],w},{});return Object.keys(m).sort(function(w,y){return m[w]-m[y]})}function ui(e){if(Z(e)===ft)return[];var t=ct(e);return[Ft(e),t,Ft(t)]}function ci(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,c=l===void 0?!0:l,u=n.fallbackPlacements,f=n.padding,p=n.boundary,g=n.rootBoundary,x=n.altBoundary,m=n.flipVariations,w=m===void 0?!0:m,y=n.allowedAutoPlacements,b=t.options.placement,S=Z(b),R=S===b,I=u||(R||!w?[ct(b)]:ui(b)),i=[b].concat(I).reduce(function(ie,X){return ie.concat(Z(X)===ft?si(t,{placement:X,boundary:p,rootBoundary:g,padding:f,flipVariations:w,allowedAutoPlacements:y}):X)},[]),E=t.rects.reference,d=t.rects.popper,L=new Map,M=!0,_=i[0],C=0;C<i.length;C++){var T=i[C],P=Z(T),N=Ce(T)===Re,F=[$,K].indexOf(P)>=0,H=F?"width":"height",k=We(t,{placement:T,boundary:p,rootBoundary:g,altBoundary:x,padding:f}),j=F?N?G:U:N?K:$;E[H]>d[H]&&(j=ct(j));var V=ct(j),Q=[];if(a&&Q.push(k[P]<=0),c&&Q.push(k[j]<=0,k[V]<=0),Q.every(function(ie){return ie})){_=T,M=!1;break}L.set(T,Q)}if(M)for(var ee=w?3:1,ve=function(X){var oe=i.find(function(Oe){var ae=L.get(Oe);if(ae)return ae.slice(0,X).every(function(xe){return xe})});if(oe)return _=oe,"break"},te=ee;te>0;te--){var he=ve(te);if(he==="break")break}t.placement!==_&&(t.modifiersData[r]._skip=!0,t.placement=_,t.reset=!0)}}const li={name:"flip",enabled:!0,phase:"main",fn:ci,requiresIfExists:["offset"],data:{_skip:!1}};function Wt(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 qt(e){return[$,G,K,U].some(function(t){return e[t]>=0})}function pi(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,l=We(t,{elementContext:"reference"}),c=We(t,{altBoundary:!0}),u=Wt(l,r),f=Wt(c,o,a),p=qt(u),g=qt(f);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:f,isReferenceHidden:p,hasPopperEscaped:g},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":g})}const fi={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:pi};function di(e,t,n){var r=Z(e),o=[U,$].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,l=a[0],c=a[1];return l=l||0,c=(c||0)*o,[U,G].indexOf(r)>=0?{x:c,y:l}:{x:l,y:c}}function vi(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=o===void 0?[0,0]:o,l=Dn.reduce(function(p,g){return p[g]=di(g,t.rects,a),p},{}),c=l[t.placement],u=c.x,f=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=f),t.modifiersData[r]=l}const hi={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:vi};function mi(e){var t=e.state,n=e.name;t.modifiersData[n]=_n({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const gi={name:"popperOffsets",enabled:!0,phase:"read",fn:mi,data:{}};function yi(e){return e==="x"?"y":"x"}function bi(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=o===void 0?!0:o,l=n.altAxis,c=l===void 0?!1:l,u=n.boundary,f=n.rootBoundary,p=n.altBoundary,g=n.padding,x=n.tether,m=x===void 0?!0:x,w=n.tetherOffset,y=w===void 0?0:w,b=We(t,{boundary:u,rootBoundary:f,padding:g,altBoundary:p}),S=Z(t.placement),R=Ce(t.placement),I=!R,i=Ct(S),E=yi(i),d=t.modifiersData.popperOffsets,L=t.rects.reference,M=t.rects.popper,_=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,C=typeof _=="number"?{mainAxis:_,altAxis:_}:Object.assign({mainAxis:0,altAxis:0},_),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={x:0,y:0};if(d){if(a){var N,F=i==="y"?$:U,H=i==="y"?K:G,k=i==="y"?"height":"width",j=d[i],V=j+b[F],Q=j-b[H],ee=m?-M[k]/2:0,ve=R===Re?L[k]:M[k],te=R===Re?-M[k]:-L[k],he=t.elements.arrow,ie=m&&he?It(he):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:In(),oe=X[F],Oe=X[H],ae=$e(0,L[k],ie[k]),xe=I?L[k]/2-ee-ae-oe-C.mainAxis:ve-ae-oe-C.mainAxis,ce=I?-L[k]/2+ee+ae+Oe+C.mainAxis:te+ae+Oe+C.mainAxis,Te=t.elements.arrow&&Ke(t.elements.arrow),Ge=Te?i==="y"?Te.clientTop||0:Te.clientLeft||0:0,Me=(N=T==null?void 0:T[i])!=null?N:0,Xe=j+xe-Me-Ge,Ze=j+ce-Me,_e=$e(m?lt(V,Xe):V,j,m?we(Q,Ze):Q);d[i]=_e,P[i]=_e-j}if(c){var Ve,Je=i==="x"?$:U,Qe=i==="x"?K:G,se=d[E],le=E==="y"?"height":"width",ke=se+b[Je],me=se-b[Qe],je=[$,U].indexOf(S)!==-1,et=(Ve=T==null?void 0:T[E])!=null?Ve:0,tt=je?ke:se-L[le]-M[le]-et+C.altAxis,nt=je?se+L[le]+M[le]-et-C.altAxis:me,rt=m&&je?Hr(tt,se,nt):$e(m?tt:ke,se,m?nt:me);d[E]=rt,P[E]=rt-se}t.modifiersData[r]=P}}const wi={name:"preventOverflow",enabled:!0,phase:"main",fn:bi,requiresIfExists:["offset"]};function Ei(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Oi(e){return e===z(e)||!q(e)?Nt(e):Ei(e)}function xi(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 Ti(e,t,n){n===void 0&&(n=!1);var r=q(t),o=q(t)&&xi(t),a=de(t),l=Ie(e,o,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&((re(t)!=="body"||_t(a))&&(c=Oi(t)),q(t)?(u=Ie(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):a&&(u.x=Mt(a))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function Ai(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(c){if(!n.has(c)){var u=t.get(c);u&&o(u)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||o(a)}),r}function Si(e){var t=Ai(e);return wt.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Di(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function pe(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return[].concat(n).reduce(function(o,a){return o.replace(/%s/,a)},e)}var ye='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',Li='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',zt=["name","enabled","phase","fn","effect","requires","options"];function Ri(e){e.forEach(function(t){[].concat(Object.keys(t),zt).filter(function(n,r,o){return o.indexOf(n)===r}).forEach(function(n){switch(n){case"name":typeof t.name!="string"&&console.error(pe(ye,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":typeof t.enabled!="boolean"&&console.error(pe(ye,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":wt.indexOf(t.phase)<0&&console.error(pe(ye,t.name,'"phase"',"either "+wt.join(", "),'"'+String(t.phase)+'"'));break;case"fn":typeof t.fn!="function"&&console.error(pe(ye,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":t.effect!=null&&typeof t.effect!="function"&&console.error(pe(ye,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":t.requires!=null&&!Array.isArray(t.requires)&&console.error(pe(ye,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(pe(ye,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+zt.map(function(r){return'"'+r+'"'}).join(", ")+'; but "'+n+'" was provided.')}t.requires&&t.requires.forEach(function(r){e.find(function(o){return o.name===r})==null&&console.error(pe(Li,String(t.name),r,r))})})})}function Pi(e,t){var n=new Set;return e.filter(function(r){var o=t(r);if(!n.has(o))return n.add(o),!0})}function Ii(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 Yt="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",Ci="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",Kt={placement:"bottom",modifiers:[],strategy:"absolute"};function Gt(){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 Ni(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,a=o===void 0?Kt:o;return function(c,u,f){f===void 0&&(f=a);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},Kt,a),modifiersData:{},elements:{reference:c,popper:u},attributes:{},styles:{}},g=[],x=!1,m={state:p,setOptions:function(S){var R=typeof S=="function"?S(p.options):S;y(),p.options=Object.assign({},a,p.options,R),p.scrollParents={reference:Ee(c)?Ue(c):c.contextElement?Ue(c.contextElement):[],popper:Ue(u)};var I=Si(Ii([].concat(r,p.options.modifiers)));if(p.orderedModifiers=I.filter(function(T){return T.enabled}),process.env.NODE_ENV!=="production"){var i=Pi([].concat(I,p.options.modifiers),function(T){var P=T.name;return P});if(Ri(i),Z(p.options.placement)===ft){var E=p.orderedModifiers.find(function(T){var P=T.name;return P==="flip"});E||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var d=J(u),L=d.marginTop,M=d.marginRight,_=d.marginBottom,C=d.marginLeft;[L,M,_,C].some(function(T){return parseFloat(T)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return w(),m.update()},forceUpdate:function(){if(!x){var S=p.elements,R=S.reference,I=S.popper;if(!Gt(R,I)){process.env.NODE_ENV!=="production"&&console.error(Yt);return}p.rects={reference:Ti(R,Ke(I),p.options.strategy==="fixed"),popper:It(I)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(T){return p.modifiersData[T.name]=Object.assign({},T.data)});for(var i=0,E=0;E<p.orderedModifiers.length;E++){if(process.env.NODE_ENV!=="production"&&(i+=1,i>100)){console.error(Ci);break}if(p.reset===!0){p.reset=!1,E=-1;continue}var d=p.orderedModifiers[E],L=d.fn,M=d.options,_=M===void 0?{}:M,C=d.name;typeof L=="function"&&(p=L({state:p,options:_,name:C,instance:m})||p)}}},update:Di(function(){return new Promise(function(b){m.forceUpdate(),b(p)})}),destroy:function(){y(),x=!0}};if(!Gt(c,u))return process.env.NODE_ENV!=="production"&&console.error(Yt),m;m.setOptions(f).then(function(b){!x&&f.onFirstUpdate&&f.onFirstUpdate(b)});function w(){p.orderedModifiers.forEach(function(b){var S=b.name,R=b.options,I=R===void 0?{}:R,i=b.effect;if(typeof i=="function"){var E=i({state:p,name:S,instance:m,options:I}),d=function(){};g.push(E||d)}})}function y(){g.forEach(function(b){return b()}),g=[]}return m}}var Mi=[Qr,gi,Zr,Ln,hi,li,wi,Yr,fi],_i=Ni({defaultModifiers:Mi}),Vi="tippy-box",Vn="tippy-content",ki="tippy-backdrop",kn="tippy-arrow",jn="tippy-svg-arrow",be={passive:!0,capture:!0},Bn=function(){return document.body};function ji(e,t){return{}.hasOwnProperty.call(e,t)}function mt(e,t,n){if(Array.isArray(e)){var r=e[t];return r??(Array.isArray(n)?n[t]:n)}return e}function Vt(e,t){var n={}.toString.call(e);return n.indexOf("[object")===0&&n.indexOf(t+"]")>-1}function $n(e,t){return typeof e=="function"?e.apply(void 0,t):e}function Xt(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function Bi(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 Le(e){return[].concat(e)}function Zt(e,t){e.indexOf(t)===-1&&e.push(t)}function Ui(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function Fi(e){return e.split("-")[0]}function pt(e){return[].slice.call(e)}function Jt(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function Fe(){return document.createElement("div")}function qe(e){return["Element","Fragment"].some(function(t){return Vt(e,t)})}function Hi(e){return Vt(e,"NodeList")}function Wi(e){return Vt(e,"MouseEvent")}function qi(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function zi(e){return qe(e)?[e]:Hi(e)?pt(e):Array.isArray(e)?e:pt(document.querySelectorAll(e))}function gt(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 Yi(e){var t,n=Le(e),r=n[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function Ki(e,t){var n=t.clientX,r=t.clientY;return e.every(function(o){var a=o.popperRect,l=o.popperState,c=o.props,u=c.interactiveBorder,f=Fi(l.placement),p=l.modifiersData.offset;if(!p)return!0;var g=f==="bottom"?p.top.y:0,x=f==="top"?p.bottom.y:0,m=f==="right"?p.left.x:0,w=f==="left"?p.right.x:0,y=a.top-r+g>u,b=r-a.bottom-x>u,S=a.left-n+m>u,R=n-a.right-w>u;return y||b||S||R})}function yt(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(o){e[r](o,n)})}function en(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 ne={isTouch:!1},tn=0;function Gi(){ne.isTouch||(ne.isTouch=!0,window.performance&&document.addEventListener("mousemove",Un))}function Un(){var e=performance.now();e-tn<20&&(ne.isTouch=!1,document.removeEventListener("mousemove",Un)),tn=e}function Xi(){var e=document.activeElement;if(qi(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function Zi(){document.addEventListener("touchstart",Gi,be),window.addEventListener("blur",Xi)}var Ji=typeof window<"u"&&typeof document<"u",Qi=Ji?!!window.msCrypto:!1;function De(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 nn(e){var t=/[ \t]{2,}/g,n=/^[ \t]*/gm;return e.replace(t," ").replace(n,"").trim()}function eo(e){return nn(`
6
- %ctippy.js
7
-
8
- %c`+nn(e)+`
9
-
10
- %c👷‍ This is a development-only message. It will be removed in production.
11
- `)}function Fn(e){return[eo(e),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}var ze;process.env.NODE_ENV!=="production"&&to();function to(){ze=new Set}function ue(e,t){if(e&&!ze.has(t)){var n;ze.add(t),(n=console).warn.apply(n,Fn(t))}}function xt(e,t){if(e&&!ze.has(t)){var n;ze.add(t),(n=console).error.apply(n,Fn(t))}}function no(e){var t=!e,n=Object.prototype.toString.call(e)==="[object Object]"&&!e.addEventListener;xt(t,["tippy() was passed","`"+String(e)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),xt(n,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}var Hn={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},ro={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},W=Object.assign({appendTo:Bn,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},Hn,ro),io=Object.keys(W),oo=function(t){process.env.NODE_ENV!=="production"&&qn(t,[]);var n=Object.keys(t);n.forEach(function(r){W[r]=t[r]})};function Wn(e){var t=e.plugins||[],n=t.reduce(function(r,o){var a=o.name,l=o.defaultValue;if(a){var c;r[a]=e[a]!==void 0?e[a]:(c=W[a])!=null?c:l}return r},{});return Object.assign({},e,n)}function ao(e,t){var n=t?Object.keys(Wn(Object.assign({},W,{plugins:t}))):io,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 rn(e,t){var n=Object.assign({},t,{content:$n(t.content,[e])},t.ignoreAttributes?{}:ao(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 qn(e,t){e===void 0&&(e={}),t===void 0&&(t=[]);var n=Object.keys(e);n.forEach(function(r){var o=Bi(W,Object.keys(Hn)),a=!ji(o,r);a&&(a=t.filter(function(l){return l.name===r}).length===0),ue(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.",`
12
-
13
- `,`All props: https://atomiks.github.io/tippyjs/v6/all-props/
14
- `,"Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}var so=function(){return"innerHTML"};function Tt(e,t){e[so()]=t}function on(e){var t=Fe();return e===!0?t.className=kn:(t.className=jn,qe(e)?t.appendChild(e):Tt(t,e)),t}function an(e,t){qe(t.content)?(Tt(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?Tt(e,t.content):e.textContent=t.content)}function At(e){var t=e.firstElementChild,n=pt(t.children);return{box:t,content:n.find(function(r){return r.classList.contains(Vn)}),arrow:n.find(function(r){return r.classList.contains(kn)||r.classList.contains(jn)}),backdrop:n.find(function(r){return r.classList.contains(ki)})}}function zn(e){var t=Fe(),n=Fe();n.className=Vi,n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=Fe();r.className=Vn,r.setAttribute("data-state","hidden"),an(r,e.props),t.appendChild(n),n.appendChild(r),o(e.props,e.props);function o(a,l){var c=At(t),u=c.box,f=c.content,p=c.arrow;l.theme?u.setAttribute("data-theme",l.theme):u.removeAttribute("data-theme"),typeof l.animation=="string"?u.setAttribute("data-animation",l.animation):u.removeAttribute("data-animation"),l.inertia?u.setAttribute("data-inertia",""):u.removeAttribute("data-inertia"),u.style.maxWidth=typeof l.maxWidth=="number"?l.maxWidth+"px":l.maxWidth,l.role?u.setAttribute("role",l.role):u.removeAttribute("role"),(a.content!==l.content||a.allowHTML!==l.allowHTML)&&an(f,e.props),l.arrow?p?a.arrow!==l.arrow&&(u.removeChild(p),u.appendChild(on(l.arrow))):u.appendChild(on(l.arrow)):p&&u.removeChild(p)}return{popper:t,onUpdate:o}}zn.$$tippy=!0;var uo=1,st=[],bt=[];function co(e,t){var n=rn(e,Object.assign({},W,Wn(Jt(t)))),r,o,a,l=!1,c=!1,u=!1,f=!1,p,g,x,m=[],w=Xt(Xe,n.interactiveDebounce),y,b=uo++,S=null,R=Ui(n.plugins),I={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},i={id:b,reference:e,popper:Fe(),popperInstance:S,props:n,state:I,plugins:R,clearDelayTimeouts:tt,setProps:nt,setContent:rt,show:er,hide:tr,hideWithInteractivity:nr,enable:je,disable:et,unmount:rr,destroy:ir};if(!n.render)return process.env.NODE_ENV!=="production"&&xt(!0,"render() function has not been supplied."),i;var E=n.render(i),d=E.popper,L=E.onUpdate;d.setAttribute("data-tippy-root",""),d.id="tippy-"+i.id,i.popper=d,e._tippy=i,d._tippy=i;var M=R.map(function(s){return s.fn(i)}),_=e.hasAttribute("aria-expanded");return Te(),ee(),j(),V("onCreate",[i]),n.showOnCreate&&ke(),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&&F().addEventListener("mousemove",w)}),i;function C(){var s=i.props.touch;return Array.isArray(s)?s:[s,0]}function T(){return C()[0]==="hold"}function P(){var s;return!!((s=i.props.render)!=null&&s.$$tippy)}function N(){return y||e}function F(){var s=N().parentNode;return s?Yi(s):document}function H(){return At(d)}function k(s){return i.state.isMounted&&!i.state.isVisible||ne.isTouch||p&&p.type==="focus"?0:mt(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 V(s,v,h){if(h===void 0&&(h=!0),M.forEach(function(O){O[s]&&O[s].apply(O,v)}),h){var D;(D=i.props)[s].apply(D,v)}}function Q(){var s=i.props.aria;if(s.content){var v="aria-"+s.content,h=d.id,D=Le(i.props.triggerTarget||e);D.forEach(function(O){var B=O.getAttribute(v);if(i.state.isVisible)O.setAttribute(v,B?B+" "+h:h);else{var Y=B&&B.replace(h,"").trim();Y?O.setAttribute(v,Y):O.removeAttribute(v)}})}}function ee(){if(!(_||!i.props.aria.expanded)){var s=Le(i.props.triggerTarget||e);s.forEach(function(v){i.props.interactive?v.setAttribute("aria-expanded",i.state.isVisible&&v===N()?"true":"false"):v.removeAttribute("aria-expanded")})}}function ve(){F().removeEventListener("mousemove",w),st=st.filter(function(s){return s!==w})}function te(s){if(!(ne.isTouch&&(u||s.type==="mousedown"))){var v=s.composedPath&&s.composedPath()[0]||s.target;if(!(i.props.interactive&&en(d,v))){if(Le(i.props.triggerTarget||e).some(function(h){return en(h,v)})){if(ne.isTouch||i.state.isVisible&&i.props.trigger.indexOf("click")>=0)return}else V("onClickOutside",[i,s]);i.props.hideOnClick===!0&&(i.clearDelayTimeouts(),i.hide(),c=!0,setTimeout(function(){c=!1}),i.state.isMounted||oe())}}}function he(){u=!0}function ie(){u=!1}function X(){var s=F();s.addEventListener("mousedown",te,!0),s.addEventListener("touchend",te,be),s.addEventListener("touchstart",ie,be),s.addEventListener("touchmove",he,be)}function oe(){var s=F();s.removeEventListener("mousedown",te,!0),s.removeEventListener("touchend",te,be),s.removeEventListener("touchstart",ie,be),s.removeEventListener("touchmove",he,be)}function Oe(s,v){xe(s,function(){!i.state.isVisible&&d.parentNode&&d.parentNode.contains(d)&&v()})}function ae(s,v){xe(s,v)}function xe(s,v){var h=H().box;function D(O){O.target===h&&(yt(h,"remove",D),v())}if(s===0)return v();yt(h,"remove",g),yt(h,"add",D),g=D}function ce(s,v,h){h===void 0&&(h=!1);var D=Le(i.props.triggerTarget||e);D.forEach(function(O){O.addEventListener(s,v,h),m.push({node:O,eventType:s,handler:v,options:h})})}function Te(){T()&&(ce("touchstart",Me,{passive:!0}),ce("touchend",Ze,{passive:!0})),$i(i.props.trigger).forEach(function(s){if(s!=="manual")switch(ce(s,Me),s){case"mouseenter":ce("mouseleave",Ze);break;case"focus":ce(Qi?"focusout":"blur",_e);break;case"focusin":ce("focusout",_e);break}})}function Ge(){m.forEach(function(s){var v=s.node,h=s.eventType,D=s.handler,O=s.options;v.removeEventListener(h,D,O)}),m=[]}function Me(s){var v,h=!1;if(!(!i.state.isEnabled||Ve(s)||c)){var D=((v=p)==null?void 0:v.type)==="focus";p=s,y=s.currentTarget,ee(),!i.state.isVisible&&Wi(s)&&st.forEach(function(O){return O(s)}),s.type==="click"&&(i.props.trigger.indexOf("mouseenter")<0||l)&&i.props.hideOnClick!==!1&&i.state.isVisible?h=!0:ke(s),s.type==="click"&&(l=!h),h&&!D&&me(s)}}function Xe(s){var v=s.target,h=N().contains(v)||d.contains(v);if(!(s.type==="mousemove"&&h)){var D=le().concat(d).map(function(O){var B,Y=O._tippy,Ae=(B=Y.popperInstance)==null?void 0:B.state;return Ae?{popperRect:O.getBoundingClientRect(),popperState:Ae,props:n}:null}).filter(Boolean);Ki(D,s)&&(ve(),me(s))}}function Ze(s){var v=Ve(s)||i.props.trigger.indexOf("click")>=0&&l;if(!v){if(i.props.interactive){i.hideWithInteractivity(s);return}me(s)}}function _e(s){i.props.trigger.indexOf("focusin")<0&&s.target!==N()||i.props.interactive&&s.relatedTarget&&d.contains(s.relatedTarget)||me(s)}function Ve(s){return ne.isTouch?T()!==s.type.indexOf("touch")>=0:!1}function Je(){Qe();var s=i.props,v=s.popperOptions,h=s.placement,D=s.offset,O=s.getReferenceClientRect,B=s.moveTransition,Y=P()?At(d).arrow:null,Ae=O?{getBoundingClientRect:O,contextElement:O.contextElement||N()}:e,kt={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(it){var Se=it.state;if(P()){var or=H(),ht=or.box;["placement","reference-hidden","escaped"].forEach(function(ot){ot==="placement"?ht.setAttribute("data-placement",Se.placement):Se.attributes.popper["data-popper-"+ot]?ht.setAttribute("data-"+ot,""):ht.removeAttribute("data-"+ot)}),Se.attributes.popper={}}}},ge=[{name:"offset",options:{offset:D}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!B}},kt];P()&&Y&&ge.push({name:"arrow",options:{element:Y,padding:3}}),ge.push.apply(ge,(v==null?void 0:v.modifiers)||[]),i.popperInstance=_i(Ae,d,Object.assign({},v,{placement:h,onFirstUpdate:x,modifiers:ge}))}function Qe(){i.popperInstance&&(i.popperInstance.destroy(),i.popperInstance=null)}function se(){var s=i.props.appendTo,v,h=N();i.props.interactive&&s===Bn||s==="parent"?v=h.parentNode:v=$n(s,[h]),v.contains(d)||v.appendChild(d),i.state.isMounted=!0,Je(),process.env.NODE_ENV!=="production"&&ue(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.",`
15
-
16
- `,"Using a wrapper <div> or <span> tag around the reference element","solves this by creating a new parentNode context.",`
17
-
18
- `,"Specifying `appendTo: document.body` silences this warning, but it","assumes you are using a focus management solution to handle","keyboard navigation.",`
19
-
20
- `,"See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}function le(){return pt(d.querySelectorAll("[data-tippy-root]"))}function ke(s){i.clearDelayTimeouts(),s&&V("onTrigger",[i,s]),X();var v=k(!0),h=C(),D=h[0],O=h[1];ne.isTouch&&D==="hold"&&O&&(v=O),v?r=setTimeout(function(){i.show()},v):i.show()}function me(s){if(i.clearDelayTimeouts(),V("onUntrigger",[i,s]),!i.state.isVisible){oe();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 je(){i.state.isEnabled=!0}function et(){i.hide(),i.state.isEnabled=!1}function tt(){clearTimeout(r),clearTimeout(o),cancelAnimationFrame(a)}function nt(s){if(process.env.NODE_ENV!=="production"&&ue(i.state.isDestroyed,De("setProps")),!i.state.isDestroyed){V("onBeforeUpdate",[i,s]),Ge();var v=i.props,h=rn(e,Object.assign({},v,Jt(s),{ignoreAttributes:!0}));i.props=h,Te(),v.interactiveDebounce!==h.interactiveDebounce&&(ve(),w=Xt(Xe,h.interactiveDebounce)),v.triggerTarget&&!h.triggerTarget?Le(v.triggerTarget).forEach(function(D){D.removeAttribute("aria-expanded")}):h.triggerTarget&&e.removeAttribute("aria-expanded"),ee(),j(),L&&L(v,h),i.popperInstance&&(Je(),le().forEach(function(D){requestAnimationFrame(D._tippy.popperInstance.forceUpdate)})),V("onAfterUpdate",[i,s])}}function rt(s){i.setProps({content:s})}function er(){process.env.NODE_ENV!=="production"&&ue(i.state.isDestroyed,De("show"));var s=i.state.isVisible,v=i.state.isDestroyed,h=!i.state.isEnabled,D=ne.isTouch&&!i.props.touch,O=mt(i.props.duration,0,W.duration);if(!(s||v||h||D)&&!N().hasAttribute("disabled")&&(V("onShow",[i],!1),i.props.onShow(i)!==!1)){if(i.state.isVisible=!0,P()&&(d.style.visibility="visible"),j(),X(),i.state.isMounted||(d.style.transition="none"),P()){var B=H(),Y=B.box,Ae=B.content;gt([Y,Ae],0)}x=function(){var ge;if(!(!i.state.isVisible||f)){if(f=!0,d.offsetHeight,d.style.transition=i.props.moveTransition,P()&&i.props.animation){var vt=H(),it=vt.box,Se=vt.content;gt([it,Se],O),Qt([it,Se],"visible")}Q(),ee(),Zt(bt,i),(ge=i.popperInstance)==null||ge.forceUpdate(),V("onMount",[i]),i.props.animation&&P()&&ae(O,function(){i.state.isShown=!0,V("onShown",[i])})}},se()}}function tr(){process.env.NODE_ENV!=="production"&&ue(i.state.isDestroyed,De("hide"));var s=!i.state.isVisible,v=i.state.isDestroyed,h=!i.state.isEnabled,D=mt(i.props.duration,1,W.duration);if(!(s||v||h)&&(V("onHide",[i],!1),i.props.onHide(i)!==!1)){if(i.state.isVisible=!1,i.state.isShown=!1,f=!1,l=!1,P()&&(d.style.visibility="hidden"),ve(),oe(),j(!0),P()){var O=H(),B=O.box,Y=O.content;i.props.animation&&(gt([B,Y],D),Qt([B,Y],"hidden"))}Q(),ee(),i.props.animation?P()&&Oe(D,i.unmount):i.unmount()}}function nr(s){process.env.NODE_ENV!=="production"&&ue(i.state.isDestroyed,De("hideWithInteractivity")),F().addEventListener("mousemove",w),Zt(st,w),w(s)}function rr(){process.env.NODE_ENV!=="production"&&ue(i.state.isDestroyed,De("unmount")),i.state.isVisible&&i.hide(),i.state.isMounted&&(Qe(),le().forEach(function(s){s._tippy.unmount()}),d.parentNode&&d.parentNode.removeChild(d),bt=bt.filter(function(s){return s!==i}),i.state.isMounted=!1,V("onHidden",[i]))}function ir(){process.env.NODE_ENV!=="production"&&ue(i.state.isDestroyed,De("destroy")),!i.state.isDestroyed&&(i.clearDelayTimeouts(),i.unmount(),Ge(),delete e._tippy,i.state.isDestroyed=!0,V("onDestroy",[i]))}}function Ne(e,t){t===void 0&&(t={});var n=W.plugins.concat(t.plugins||[]);process.env.NODE_ENV!=="production"&&(no(e),qn(t,n)),Zi();var r=Object.assign({},t,{plugins:n}),o=zi(e);if(process.env.NODE_ENV!=="production"){var a=qe(r.content),l=o.length>1;ue(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.",`
21
-
22
- `,"Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.",`
23
-
24
- `,`1) content: element.innerHTML
25
- `,"2) content: () => element.cloneNode(true)"].join(" "))}var c=o.reduce(function(u,f){var p=f&&co(f,r);return p&&u.push(p),u},[]);return qe(e)?c[0]:c}Ne.defaultProps=W;Ne.setDefaultProps=oo;Ne.currentInput=ne;Object.assign({},Ln,{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 lo={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(f){return t.props.sticky===!0||t.props.sticky===f}var l=null,c=null;function u(){var f=a("reference")?o().getBoundingClientRect():null,p=a("popper")?r.getBoundingClientRect():null;(f&&sn(l,f)||p&&sn(c,p))&&t.popperInstance&&t.popperInstance.update(),l=f,c=p,t.state.isMounted&&requestAnimationFrame(u)}return{onMount:function(){t.props.sticky&&u()}}}};function sn(e,t){return e&&t?e.top!==t.top||e.right!==t.right||e.bottom!==t.bottom||e.left!==t.left:!0}Ne.setDefaultProps({render:zn});const po=e=>({name:"arrowDetected",enabled:!0,phase:"main",fn:e,requiresIfExists:["offset"]}),fo=["bottom","bottom-start","bottom-end","right","right-start","right-end","left","left-start","left-end","top","top-start","top-end"],Yn=[!0,!1,"reference","popper"],Kn=(e,t)=>{const{contentElement:n}={...t};return delete t.contentElement,Ne(e,{...t,plugins:[lo],render:()=>mo(n)})},Gn=({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}},po(({state:a})=>{n(a.placement)})]}),vo=e=>{const t=document.createElement("span");return t.innerText=e.innerText||"",e.innerText="",e.appendChild(t),t},ho=e=>{const t=e==null?void 0:e.children[0];return t||vo(e)},mo=e=>{const t=document.createElement("div");return t.className="tippy-box d-ps-absolute",t.appendChild(e),{popper:t}},Xn=[...fo],Zn=300,Jn={hover:"d-tooltip--hover",show:"d-tooltip--show",inverted:"d-tooltip--inverted",hide:"d-tooltip--hide"},Qn=[...Yn],go=[!0,!1,"toggle"],yo={name:"DtTooltip",components:{DtLazyShow:An},props:{id:{type:String,default(){return St()}},fallbackPlacements:{type:Array,default:()=>["auto"]},inverted:{type:Boolean,default:!1},offset:{type:Array,default:()=>[0,-4]},placement:{type:String,default:"top",validator(e){return Xn.includes(e)}},sticky:{type:[Boolean,String],default:!1,validator:e=>Qn.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"},contentAppear:{type:Boolean,default:!1},delay:{type:Boolean,default:!0},externalAnchor:{type:String,default:null}},emits:["shown","update:show"],data(){return{TOOLTIP_KIND_MODIFIERS:Jn,hasSlotContent:dn,tip:null,inTimer:null,isShown:!1,currentPlacement:this.placement}},computed:{isVisible(){return this.isShown&&this.enabled&&(!!this.message.trim()||!!this.$slots.default)},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:Gn({fallbackPlacements:this.fallbackPlacements,hasHideModifierEnabled:!0,onChangePlacement:this.onChangePlacement})}},anchor(){return this.externalAnchor?document.body.querySelector(this.externalAnchor):ho(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=Kn(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.delay?this.inTimer=setTimeout((function(t){this.triggerShow(t)}).bind(this,e),Zn):this.triggerShow(e)},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))})}}},bo={"data-qa":"dt-tooltip-container"};function wo(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]=(...c)=>a.onEnterAnchor&&a.onEnterAnchor(...c)),onFocusout:t[1]||(t[1]=(...c)=>a.onLeaveAnchor&&a.onLeaveAnchor(...c)),onMouseenter:t[2]||(t[2]=(...c)=>a.onEnterAnchor&&a.onEnterAnchor(...c)),onMouseleave:t[3]||(t[3]=(...c)=>a.onLeaveAnchor&&a.onLeaveAnchor(...c)),onKeydown:t[4]||(t[4]=A.withKeys((...c)=>a.onLeaveAnchor&&a.onLeaveAnchor(...c),["esc"]))},[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 Eo=Rt(yo,[["render",wo]]);exports.DEFAULT_VALIDATION_MESSAGE_TYPE=un;exports.DESCRIPTION_SIZE_MODIFIERS=sr;exports.DESCRIPTION_SIZE_TYPES=ar;exports.DtLazyShow=An;exports.DtTooltip=Eo;exports.EVENT_KEYNAMES=cr;exports.LABEL_SIZE_MODIFIERS=ur;exports.TIPPY_STICKY_VALUES=Yn;exports.TOOLTIP_DELAY_MS=Zn;exports.TOOLTIP_DIRECTIONS=Xn;exports.TOOLTIP_HIDE_ON_CLICK_VARIANTS=go;exports.TOOLTIP_KIND_MODIFIERS=Jn;exports.TOOLTIP_STICKY_VALUES=Qn;exports.VALIDATION_MESSAGE_TYPES=fe;exports._export_sfc=Rt;exports.capitalizeFirstLetter=Tn;exports.createTippy=Kn;exports.extractVueListeners=vn;exports.filterFormattedMessages=fn;exports.formatMessages=pn;exports.getPhoneNumberRegex=Lt;exports.getPopperOptions=Gn;exports.getRandomElement=cn;exports.getUniqueString=St;exports.getValidationState=Dt;exports.hasSlotContent=dn;exports.isOutOfViewPort=hn;exports.linkRegex=On;exports.safeConcatStrings=xn;exports.tippy=Ne;exports.utils=Ar;