@aquera/nile-elements 1.2.7-beta-1.7 → 1.2.7-beta-1.8
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/index.js +2 -2
- package/dist/nile-lite-tooltip/nile-lite-tooltip.cjs.js +1 -1
- package/dist/nile-lite-tooltip/nile-lite-tooltip.cjs.js.map +1 -1
- package/dist/nile-lite-tooltip/nile-lite-tooltip.esm.js +1 -1
- package/dist/src/nile-lite-tooltip/nile-lite-tooltip.js +2 -2
- package/dist/src/nile-lite-tooltip/nile-lite-tooltip.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/nile-lite-tooltip/nile-lite-tooltip.ts +2 -2
package/dist/index.js
CHANGED
|
@@ -14091,7 +14091,7 @@ nile-rte-toolbar-item nile-button[data-active]::part(base):hover {
|
|
|
14091
14091
|
|
|
14092
14092
|
|
|
14093
14093
|
|
|
14094
|
-
`,IS={bold:"format_bold",italic:"format_italic",underline:"format_underline",link:"link_2",left:"format_align_left",center:"format_align_middle",right:"format_align_right",justify:"format_align_justify",ul:"format_list_bulleted",ol:"format_list_numbered",clear:"format_clear"};let zS=class extends ae{constructor(){super(...arguments),this.value="",this.noStyles=!1,this.singleLineEditor=!1,this.mentions={},this.content="",this.previewEl=null,this.toolbarEl=null,this.lastRange=null,this.buttonMap=new Map,this.headingSelect=null,this.fontSelect=null,this.colorInput=null,this.bgColorInput=null,this.colorSwatchEl=null,this.bgSwatchEl=null,this.containerEl=null,this.mentionsEl=null,this.onEditorKeydown=e=>{if(this.singleLineEditor&&"Enter"===e.key&&e.shiftKey)return void e.preventDefault();if(e.ctrlKey&&"i"===e.key.toLowerCase()&&(e.preventDefault(),sS(this.editorEl,"em"),this.updateContent(),this.updateToolbarState()),this.singleLineEditor&&"Enter"===e.key)return void e.preventDefault();if("Tab"!==e.key)return;e.preventDefault(),this.focusAndRestore();const t=window.getSelection();if(!t||0===t.rangeCount)return;const i=t.getRangeAt(0);if(e.shiftKey){if(i.collapsed&&i.startContainer.nodeType===Node.TEXT_NODE){const e=i.startContainer,M=i.startOffset,n=e.data.slice(0,M),o=n.replace(/(\t|[ \u00a0]{2})$/,"");if(o.length!==n.length){e.data=o+e.data.slice(M);const i=document.createRange();i.setStart(e,o.length),i.collapse(!0),t.removeAllRanges(),t.addRange(i),this.updateContent(),this.updateToolbarState()}}return}i.deleteContents();const M=document.createTextNode("\t");i.insertNode(M);const n=document.createRange();n.setStartAfter(M),n.collapse(!0),t.removeAllRanges(),t.addRange(n),this.updateContent(),this.updateToolbarState()},this.onSelectionChange=()=>{if(!this.editorEl)return;const e=document.getSelection();if(!e||0===e.rangeCount)return;const t=e.getRangeAt(0);this.editorEl.contains(t.commonAncestorContainer)&&(this.lastRange=t.cloneRange(),this.updateToolbarState())}}createRenderRoot(){return this}injectCss(e){if(this.querySelector("style[data-rte-style]"))return;const t=document.createElement("style");t.setAttribute("data-rte-style","true"),t.textContent=e,this.insertBefore(t,this.firstChild)}connectedCallback(){super.connectedCallback(),this.injectCss(jS.cssText),this.ensureStructure(),this.value&&!this.editorEl.innerHTML.trim()&&(this.editorEl.innerHTML=this.value),this.content=this.editorEl.innerHTML,this.toolbarEl&&this.wireAuthoredToolbar(this.toolbarEl),this.mentionsEl=this.querySelector("nile-rte-mentions"),this.mentionsEl&&(this.mentionsEl.attach?.(this.editorEl,this),this.mentionsEl.setExternalConfig?.(this.mentions)),this.wireEditor(),document.addEventListener("selectionchange",this.onSelectionChange,{passive:!0}),this.updateToolbarState(),this.syncPreview()}ensureStructure(){this.toolbarEl=this.querySelector("nile-rte-toolbar"),this.previewEl=this.querySelector("nile-rte-preview"),this.containerEl=this.querySelector(".rte-container"),this.containerEl||(this.containerEl=document.createElement("div"),this.containerEl.className="rte-container",this.appendChild(this.containerEl)),this.ensureEditor(),this.toolbarEl&&this.toolbarEl.parentElement!==this.containerEl&&this.containerEl.appendChild(this.toolbarEl),this.editorEl.parentElement!==this.containerEl&&this.containerEl.appendChild(this.editorEl),this.previewEl&&(this.previewEl.parentElement!==this&&this.appendChild(this.previewEl),this.previewEl.previousElementSibling!==this.containerEl&&this.insertBefore(this.previewEl,this.containerEl.nextSibling))}updateContentWithMention(e){this.updateContent(),this.dispatchEvent(new CustomEvent("nile-change",{detail:{content:this.content,mention:e},bubbles:!0,composed:!0}))}disconnectedCallback(){document.removeEventListener("selectionchange",this.onSelectionChange),this.mentionsEl&&this.mentionsEl.detach&&this.mentionsEl.detach(),super.disconnectedCallback()}updated(e){e.has("value")&&this.editorEl&&this.value!==this.editorEl.innerHTML&&(this.editorEl.innerHTML=this.value||"<p><br></p>",this.content=this.editorEl.innerHTML,this.syncPreview()),e.has("singleLineEditor")&&(this.editorEl&&this.editorEl.classList.toggle("single-line",this.singleLineEditor),this.previewEl&&this.previewEl.classList.toggle("single-line",this.singleLineEditor))}ensureEditor(){if(this.editorEl=this.querySelector(".editor"),!this.editorEl){const e=document.createElement("article");e.className="editor",e.setAttribute("contenteditable","true"),this.editorEl=e}this.editorEl.innerHTML.trim()||(this.editorEl.innerHTML="<p><br></p>")}unwrapMention(e,t=!0){const i=e.parentNode;if(!i)return;const M=t?(e.textContent??"").replace(/\u200B/g,""):"",n=document.createTextNode(M);i.insertBefore(n,e),i.removeChild(e);const o=document.createRange();o.setStartAfter(n),o.collapse(!0);const r=window.getSelection();r?.removeAllRanges(),r?.addRange(o)}scrubBrokenMentions(){if(!this.editorEl)return;this.editorEl.querySelectorAll("span.mention").forEach((e=>{const t=e,i=t.getAttribute("data-mention-key"),M=t.getAttribute("data-mention-label"),n=t.getAttribute("data-mention-trigger")||"",o=(t.textContent??"").replace(/\u200B/g,"").trim(),r=!!i&&!!M&&o.length>0&&o.startsWith(n)&&o.includes(M);o&&r||this.unwrapMention(t,!0)}))}wireEditor(){this.editorEl.addEventListener("input",(()=>{this.ensureAtLeastOneParagraph(),this.scrubBrokenMentions(),this.updateContent(),this.updateToolbarState()})),this.editorEl.addEventListener("mouseup",(()=>{this.saveSelection(),this.updateToolbarState()})),this.editorEl.addEventListener("keyup",(e=>{this.saveSelection(),["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"].includes(e.key)&&this.updateToolbarState()})),this.editorEl.addEventListener("keydown",this.onEditorKeydown)}wireAuthoredToolbar(e){this.buttonMap.clear(),this.headingSelect=null,this.fontSelect=null,this.colorInput=null,Array.from(e.children).forEach((e=>{const t=e.tagName.toLowerCase();if("nile-rte-select"!==t||"align"!==e.getAttribute("type")){if("nile-rte-link"===t)return e.editorEl=this.editorEl,void e.addEventListener("link-changed",(()=>{this.updateContent(),this.updateToolbarState()}));if("nile-rte-toolbar-item"===t){let t=e.querySelector(":scope > nile-button");const i=e.getAttribute("name")||"",M=e.getAttribute("label")||i,n=e.getAttribute("icon"),o=e.innerHTML.trim().length>0;if(t||(t=document.createElement("nile-button"),t.variant="tertiary",t.size="small"),n)t.innerHTML=`<nile-icon name="${n}" aria-label="${M}"></nile-icon>`,e.innerHTML="";else if(o)t.innerHTML=e.innerHTML,e.innerHTML="";else{const n=IS[i];n?t.innerHTML=`<nile-icon name="${n}" size="20" color="black" aria-label="${M}"></nile-icon>`:t.textContent=M||i,e.innerHTML=""}if(!t.isConnected){const i=document.createElement("nile-tooltip");i.setAttribute("content",M),i.appendChild(t),e.appendChild(i)}t.setAttribute("aria-label",M),t.addEventListener("mousedown",(e=>e.preventDefault())),t.addEventListener("click",(()=>this.onToolbarCommand(i)));const r=this.buttonMap.get(i)??[];return r.push(t),void this.buttonMap.set(i,r)}if("nile-rte-select"!==t)"nile-rte-color"!==t||e.addEventListener("change",(e=>{this.focusAndRestore();const{mode:t,value:i}=e.detail;"backColor"===t?gS(this.editorEl,"backgroundColor",i,"data-rte-bg"):function(e,t){gS(e,"color",t,"data-rte-color")}(this.editorEl,i),this.updateContent(),this.updateToolbarState()}));else{const t=e.getAttribute("type")||"";e.addEventListener("change",(e=>{this.focusAndRestore();const i=e.detail;"heading"===t?function(e,t){const i=document.getSelection();if(!i||0===i.rangeCount)return;const M=oS(i.getRangeAt(0).startContainer,e);if(!M)return;if(M.tagName.toLowerCase()===t)return;const n=document.createElement(t);for(;M.firstChild;)n.appendChild(M.firstChild);M.replaceWith(n);const o=document.createRange();o.selectNodeContents(n),o.collapse(!0),i.removeAllRanges(),i.addRange(o)}(this.editorEl,i):"font"===t&&NS(this.editorEl,i),this.updateContent(),this.updateToolbarState()}))}}else e.addEventListener("change",(e=>{this.focusAndRestore();const t=e.detail;rS(this.editorEl,t),this.updateContent(),this.updateToolbarState()}))}))}saveSelection(){const e=window.getSelection();e&&e.rangeCount&&(this.lastRange=e.getRangeAt(0).cloneRange())}restoreSelection(){if(!this.lastRange)return;const e=document.getSelection();e&&(e.removeAllRanges(),e.addRange(this.lastRange))}focusAndRestore(){this.editorEl?.focus(),this.restoreSelection()}getCleanContent(){const e=this.editorEl.cloneNode(!0);return e.querySelectorAll("*").forEach((e=>{e.removeAttribute("style")})),e.innerHTML}insertList(e){if(this.restoreSelection(),!this.lastRange)return;const t=document.createElement(e),i=this.lastRange.extractContents(),M=document.createElement("div");M.appendChild(i),Array.from(M.childNodes).forEach((e=>{if(e.nodeType===Node.TEXT_NODE&&!e.textContent?.trim())return;const i=document.createElement("li");i.appendChild(e),t.appendChild(i)})),this.lastRange.insertNode(t),this.afterListEdit(t)}afterListEdit(e){const t=document.createRange();t.setStartAfter(e),t.collapse(!0);const i=window.getSelection();i?.removeAllRanges(),i?.addRange(t),this.saveSelection(),this.updateContent(),this.updateToolbarState()}ensureAtLeastOneParagraph(){const e=this.editorEl;if(!e)return;const t=""===(e.textContent??"").replace(/\u200B/g,"").trim();if(0===e.childNodes.length||t)return void(e.innerHTML="<p><br></p>");if(!e.querySelector("p,h1,h2,h3,h4,h5,h6,ul,ol,table,blockquote,pre")){const t=document.createElement("p");for(;e.firstChild;)t.appendChild(e.firstChild);return t.hasChildNodes()||t.appendChild(document.createElement("br")),void e.appendChild(t)}e.querySelectorAll("p").forEach((e=>{""===(e.textContent??"").replace(/\u200B/g,"")&&(e.innerHTML.toLowerCase().includes("<br")||(e.innerHTML="<br>"))}))}onToolbarCommand(e){switch(this.focusAndRestore(),e){case"bold":sS(this.editorEl,"strong");break;case"italic":sS(this.editorEl,"em");break;case"underline":sS(this.editorEl,"u");break;case"left":rS(this.editorEl,"left");break;case"center":rS(this.editorEl,"center");break;case"right":rS(this.editorEl,"right");break;case"justify":rS(this.editorEl,"justify");break;case"ul":cS(this.editorEl,"ul"),this.updateContent(),this.updateToolbarState();break;case"ol":cS(this.editorEl,"ol"),this.updateContent(),this.updateToolbarState();break;case"link":break;case"clear":const e=document.createTreeWalker(this.editorEl,NodeFilter.SHOW_ELEMENT),t=[];for(;e.nextNode();){const i=e.currentNode;i.removeAttribute("style"),["B","STRONG","I","EM","U","SPAN","FONT"].includes(i.tagName)&&t.push(i)}for(const e of t){for(;e.firstChild;)e.parentNode?.insertBefore(e.firstChild,e);e.remove()}this.ensureAtLeastOneParagraph()}this.updateContent(),this.updateToolbarState()}setBtnActive(e,t){const i=this.buttonMap.get(e);if(i)for(const e of i)e.toggleAttribute("data-active",!!t)}updateToolbarState(){if(!this.editorEl)return;const e=document.getSelection();if(!e||0===e.rangeCount)return;const t=e.getRangeAt(0);if(!this.editorEl.contains(t.commonAncestorContainer))return;const i=function(e){for(;e&&!(e instanceof HTMLElement);)e=e.parentNode;return e}(t.startContainer)||this.editorEl,M=getComputedStyle(i),n=oS(t.startContainer,this.editorEl)||this.editorEl,o=(()=>{let e=i;for(;e&&e!==this.editorEl;){if(e instanceof HTMLElement){const t=e.tagName.toLowerCase();if("strong"===t||"b"===t)return!0;const i=getComputedStyle(e).fontWeight;if(parseInt(i,10)>=600)return!0}e=e.parentNode}return!1})(),r=(()=>{let e=i;for(;e&&e!==this.editorEl;){if(e instanceof HTMLElement){const t=e.tagName.toLowerCase();if("em"===t||"i"===t)return!0;if("italic"===getComputedStyle(e).fontStyle)return!0}e=e.parentNode}return!1})(),s=(()=>{let e=i;for(;e&&e!==this.editorEl;){if(e instanceof HTMLElement){const t=getComputedStyle(e).textDecorationLine;if(t&&t.includes("underline"))return!0;if("u"===e.tagName.toLowerCase())return!0}e=e.parentNode}return!1})(),a=!!i.closest("a"),N=n.style.textAlign||getComputedStyle(n).textAlign||"start",l="start"===N?"left":N,g=!!i.closest("li")&&i.closest("ul,ol")?.tagName.toLowerCase()||"";if(this.setBtnActive("bold",o),this.setBtnActive("italic",r),this.setBtnActive("underline",s),this.setBtnActive("link",a),this.setBtnActive("left","left"===l&&!["center","right","justify"].includes(l)),this.setBtnActive("center","center"===l),this.setBtnActive("right","right"===l),this.setBtnActive("justify","justify"===l),this.setBtnActive("ul","ul"===g),this.setBtnActive("ol","ol"===g),this.headingSelect){const e=n.tagName.toLowerCase(),t=["h1","h2","h3"].includes(e)?e:"p";this.headingSelect.value!==t&&(this.headingSelect.value=t)}if(this.fontSelect){const e=(M.fontFamily||"").replace(/["']/g,"").split(",")[0].trim().toLowerCase();if(e)for(const t of Array.from(this.fontSelect.options))if(t.value.toLowerCase()===e){this.fontSelect.value=t.value;break}}if(this.colorInput){const e=aS(M.color);e&&this.colorInput.value.toLowerCase()!==e.toLowerCase()&&(this.colorInput.value=e),this.colorSwatchEl&&(this.colorSwatchEl.style.backgroundColor=this.colorInput.value)}if(this.bgColorInput){const e=getComputedStyle(i).backgroundColor;if(e&&!/transparent|rgba\(\s*0\s*,\s*0\s*,\s*0\s*,\s*0\s*\)/i.test(e)){const t=aS(e);t&&this.bgColorInput.value.toLowerCase()!==t.toLowerCase()&&(this.bgColorInput.value=t)}this.bgSwatchEl&&(this.bgSwatchEl.style.backgroundColor=this.bgColorInput.value)}}syncPreview(){this.updateContent()}updateContent(){if(!this.editorEl)return;this.ensureAtLeastOneParagraph();const e=this.editorEl.cloneNode(!0);if(this.noStyles)e.querySelectorAll("[style]").forEach((e=>e.removeAttribute("style")));else{const t=document.createTreeWalker(this.editorEl,NodeFilter.SHOW_ELEMENT),i=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT),M=["font-weight","font-style","text-decoration","color","background-color","font-size","font-family","text-align","line-height","letter-spacing","white-space","vertical-align","list-style-position","padding-inline-start"];for(;t.nextNode()&&i.nextNode();){const e=t.currentNode,n=i.currentNode,o=window.getComputedStyle(e),r=M.map((e=>`${e}:${o.getPropertyValue(e)}`)).join(";");r.trim()&&n.setAttribute("style",r)}}this.content=e.innerHTML,this.previewEl&&(this.previewEl.innerHTML=this.content),this.dispatchEvent(new CustomEvent("nile-change",{detail:{content:this.content},bubbles:!0,composed:!0}))}};e([De({type:String,attribute:!0,reflect:!0})],zS.prototype,"value",void 0),e([De({type:Boolean,attribute:!0,reflect:!0})],zS.prototype,"noStyles",void 0),e([De({type:Boolean,attribute:"singlelineeditor",reflect:!0})],zS.prototype,"singleLineEditor",void 0),e([De({attribute:"mentions",reflect:!0,converter:{fromAttribute:e=>{try{const t=JSON.parse(e),i={};for(const e of Object.keys(t)){const M=t[e];Array.isArray(M)&&(i[e]=M.filter((e=>e&&"string"==typeof e.key&&"string"==typeof e.label)).map((e=>({key:e.key,label:e.label}))))}return i}catch{return{}}},toAttribute:e=>JSON.stringify(e)}})],zS.prototype,"mentions",void 0),e([ce()],zS.prototype,"content",void 0),zS=e([le("nile-rich-text-editor")],zS);"undefined"!=typeof window&&(window.nileElementsVersion='"1.2.7-beta-1.7"',window.nileVersion="__NILE_VERSION__",window.process=window.process||{env:{NODE_ENV:"production"}},console.error=()=>{});const dS=r`
|
|
14094
|
+
`,IS={bold:"format_bold",italic:"format_italic",underline:"format_underline",link:"link_2",left:"format_align_left",center:"format_align_middle",right:"format_align_right",justify:"format_align_justify",ul:"format_list_bulleted",ol:"format_list_numbered",clear:"format_clear"};let zS=class extends ae{constructor(){super(...arguments),this.value="",this.noStyles=!1,this.singleLineEditor=!1,this.mentions={},this.content="",this.previewEl=null,this.toolbarEl=null,this.lastRange=null,this.buttonMap=new Map,this.headingSelect=null,this.fontSelect=null,this.colorInput=null,this.bgColorInput=null,this.colorSwatchEl=null,this.bgSwatchEl=null,this.containerEl=null,this.mentionsEl=null,this.onEditorKeydown=e=>{if(this.singleLineEditor&&"Enter"===e.key&&e.shiftKey)return void e.preventDefault();if(e.ctrlKey&&"i"===e.key.toLowerCase()&&(e.preventDefault(),sS(this.editorEl,"em"),this.updateContent(),this.updateToolbarState()),this.singleLineEditor&&"Enter"===e.key)return void e.preventDefault();if("Tab"!==e.key)return;e.preventDefault(),this.focusAndRestore();const t=window.getSelection();if(!t||0===t.rangeCount)return;const i=t.getRangeAt(0);if(e.shiftKey){if(i.collapsed&&i.startContainer.nodeType===Node.TEXT_NODE){const e=i.startContainer,M=i.startOffset,n=e.data.slice(0,M),o=n.replace(/(\t|[ \u00a0]{2})$/,"");if(o.length!==n.length){e.data=o+e.data.slice(M);const i=document.createRange();i.setStart(e,o.length),i.collapse(!0),t.removeAllRanges(),t.addRange(i),this.updateContent(),this.updateToolbarState()}}return}i.deleteContents();const M=document.createTextNode("\t");i.insertNode(M);const n=document.createRange();n.setStartAfter(M),n.collapse(!0),t.removeAllRanges(),t.addRange(n),this.updateContent(),this.updateToolbarState()},this.onSelectionChange=()=>{if(!this.editorEl)return;const e=document.getSelection();if(!e||0===e.rangeCount)return;const t=e.getRangeAt(0);this.editorEl.contains(t.commonAncestorContainer)&&(this.lastRange=t.cloneRange(),this.updateToolbarState())}}createRenderRoot(){return this}injectCss(e){if(this.querySelector("style[data-rte-style]"))return;const t=document.createElement("style");t.setAttribute("data-rte-style","true"),t.textContent=e,this.insertBefore(t,this.firstChild)}connectedCallback(){super.connectedCallback(),this.injectCss(jS.cssText),this.ensureStructure(),this.value&&!this.editorEl.innerHTML.trim()&&(this.editorEl.innerHTML=this.value),this.content=this.editorEl.innerHTML,this.toolbarEl&&this.wireAuthoredToolbar(this.toolbarEl),this.mentionsEl=this.querySelector("nile-rte-mentions"),this.mentionsEl&&(this.mentionsEl.attach?.(this.editorEl,this),this.mentionsEl.setExternalConfig?.(this.mentions)),this.wireEditor(),document.addEventListener("selectionchange",this.onSelectionChange,{passive:!0}),this.updateToolbarState(),this.syncPreview()}ensureStructure(){this.toolbarEl=this.querySelector("nile-rte-toolbar"),this.previewEl=this.querySelector("nile-rte-preview"),this.containerEl=this.querySelector(".rte-container"),this.containerEl||(this.containerEl=document.createElement("div"),this.containerEl.className="rte-container",this.appendChild(this.containerEl)),this.ensureEditor(),this.toolbarEl&&this.toolbarEl.parentElement!==this.containerEl&&this.containerEl.appendChild(this.toolbarEl),this.editorEl.parentElement!==this.containerEl&&this.containerEl.appendChild(this.editorEl),this.previewEl&&(this.previewEl.parentElement!==this&&this.appendChild(this.previewEl),this.previewEl.previousElementSibling!==this.containerEl&&this.insertBefore(this.previewEl,this.containerEl.nextSibling))}updateContentWithMention(e){this.updateContent(),this.dispatchEvent(new CustomEvent("nile-change",{detail:{content:this.content,mention:e},bubbles:!0,composed:!0}))}disconnectedCallback(){document.removeEventListener("selectionchange",this.onSelectionChange),this.mentionsEl&&this.mentionsEl.detach&&this.mentionsEl.detach(),super.disconnectedCallback()}updated(e){e.has("value")&&this.editorEl&&this.value!==this.editorEl.innerHTML&&(this.editorEl.innerHTML=this.value||"<p><br></p>",this.content=this.editorEl.innerHTML,this.syncPreview()),e.has("singleLineEditor")&&(this.editorEl&&this.editorEl.classList.toggle("single-line",this.singleLineEditor),this.previewEl&&this.previewEl.classList.toggle("single-line",this.singleLineEditor))}ensureEditor(){if(this.editorEl=this.querySelector(".editor"),!this.editorEl){const e=document.createElement("article");e.className="editor",e.setAttribute("contenteditable","true"),this.editorEl=e}this.editorEl.innerHTML.trim()||(this.editorEl.innerHTML="<p><br></p>")}unwrapMention(e,t=!0){const i=e.parentNode;if(!i)return;const M=t?(e.textContent??"").replace(/\u200B/g,""):"",n=document.createTextNode(M);i.insertBefore(n,e),i.removeChild(e);const o=document.createRange();o.setStartAfter(n),o.collapse(!0);const r=window.getSelection();r?.removeAllRanges(),r?.addRange(o)}scrubBrokenMentions(){if(!this.editorEl)return;this.editorEl.querySelectorAll("span.mention").forEach((e=>{const t=e,i=t.getAttribute("data-mention-key"),M=t.getAttribute("data-mention-label"),n=t.getAttribute("data-mention-trigger")||"",o=(t.textContent??"").replace(/\u200B/g,"").trim(),r=!!i&&!!M&&o.length>0&&o.startsWith(n)&&o.includes(M);o&&r||this.unwrapMention(t,!0)}))}wireEditor(){this.editorEl.addEventListener("input",(()=>{this.ensureAtLeastOneParagraph(),this.scrubBrokenMentions(),this.updateContent(),this.updateToolbarState()})),this.editorEl.addEventListener("mouseup",(()=>{this.saveSelection(),this.updateToolbarState()})),this.editorEl.addEventListener("keyup",(e=>{this.saveSelection(),["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"].includes(e.key)&&this.updateToolbarState()})),this.editorEl.addEventListener("keydown",this.onEditorKeydown)}wireAuthoredToolbar(e){this.buttonMap.clear(),this.headingSelect=null,this.fontSelect=null,this.colorInput=null,Array.from(e.children).forEach((e=>{const t=e.tagName.toLowerCase();if("nile-rte-select"!==t||"align"!==e.getAttribute("type")){if("nile-rte-link"===t)return e.editorEl=this.editorEl,void e.addEventListener("link-changed",(()=>{this.updateContent(),this.updateToolbarState()}));if("nile-rte-toolbar-item"===t){let t=e.querySelector(":scope > nile-button");const i=e.getAttribute("name")||"",M=e.getAttribute("label")||i,n=e.getAttribute("icon"),o=e.innerHTML.trim().length>0;if(t||(t=document.createElement("nile-button"),t.variant="tertiary",t.size="small"),n)t.innerHTML=`<nile-icon name="${n}" aria-label="${M}"></nile-icon>`,e.innerHTML="";else if(o)t.innerHTML=e.innerHTML,e.innerHTML="";else{const n=IS[i];n?t.innerHTML=`<nile-icon name="${n}" size="20" color="black" aria-label="${M}"></nile-icon>`:t.textContent=M||i,e.innerHTML=""}if(!t.isConnected){const i=document.createElement("nile-tooltip");i.setAttribute("content",M),i.appendChild(t),e.appendChild(i)}t.setAttribute("aria-label",M),t.addEventListener("mousedown",(e=>e.preventDefault())),t.addEventListener("click",(()=>this.onToolbarCommand(i)));const r=this.buttonMap.get(i)??[];return r.push(t),void this.buttonMap.set(i,r)}if("nile-rte-select"!==t)"nile-rte-color"!==t||e.addEventListener("change",(e=>{this.focusAndRestore();const{mode:t,value:i}=e.detail;"backColor"===t?gS(this.editorEl,"backgroundColor",i,"data-rte-bg"):function(e,t){gS(e,"color",t,"data-rte-color")}(this.editorEl,i),this.updateContent(),this.updateToolbarState()}));else{const t=e.getAttribute("type")||"";e.addEventListener("change",(e=>{this.focusAndRestore();const i=e.detail;"heading"===t?function(e,t){const i=document.getSelection();if(!i||0===i.rangeCount)return;const M=oS(i.getRangeAt(0).startContainer,e);if(!M)return;if(M.tagName.toLowerCase()===t)return;const n=document.createElement(t);for(;M.firstChild;)n.appendChild(M.firstChild);M.replaceWith(n);const o=document.createRange();o.selectNodeContents(n),o.collapse(!0),i.removeAllRanges(),i.addRange(o)}(this.editorEl,i):"font"===t&&NS(this.editorEl,i),this.updateContent(),this.updateToolbarState()}))}}else e.addEventListener("change",(e=>{this.focusAndRestore();const t=e.detail;rS(this.editorEl,t),this.updateContent(),this.updateToolbarState()}))}))}saveSelection(){const e=window.getSelection();e&&e.rangeCount&&(this.lastRange=e.getRangeAt(0).cloneRange())}restoreSelection(){if(!this.lastRange)return;const e=document.getSelection();e&&(e.removeAllRanges(),e.addRange(this.lastRange))}focusAndRestore(){this.editorEl?.focus(),this.restoreSelection()}getCleanContent(){const e=this.editorEl.cloneNode(!0);return e.querySelectorAll("*").forEach((e=>{e.removeAttribute("style")})),e.innerHTML}insertList(e){if(this.restoreSelection(),!this.lastRange)return;const t=document.createElement(e),i=this.lastRange.extractContents(),M=document.createElement("div");M.appendChild(i),Array.from(M.childNodes).forEach((e=>{if(e.nodeType===Node.TEXT_NODE&&!e.textContent?.trim())return;const i=document.createElement("li");i.appendChild(e),t.appendChild(i)})),this.lastRange.insertNode(t),this.afterListEdit(t)}afterListEdit(e){const t=document.createRange();t.setStartAfter(e),t.collapse(!0);const i=window.getSelection();i?.removeAllRanges(),i?.addRange(t),this.saveSelection(),this.updateContent(),this.updateToolbarState()}ensureAtLeastOneParagraph(){const e=this.editorEl;if(!e)return;const t=""===(e.textContent??"").replace(/\u200B/g,"").trim();if(0===e.childNodes.length||t)return void(e.innerHTML="<p><br></p>");if(!e.querySelector("p,h1,h2,h3,h4,h5,h6,ul,ol,table,blockquote,pre")){const t=document.createElement("p");for(;e.firstChild;)t.appendChild(e.firstChild);return t.hasChildNodes()||t.appendChild(document.createElement("br")),void e.appendChild(t)}e.querySelectorAll("p").forEach((e=>{""===(e.textContent??"").replace(/\u200B/g,"")&&(e.innerHTML.toLowerCase().includes("<br")||(e.innerHTML="<br>"))}))}onToolbarCommand(e){switch(this.focusAndRestore(),e){case"bold":sS(this.editorEl,"strong");break;case"italic":sS(this.editorEl,"em");break;case"underline":sS(this.editorEl,"u");break;case"left":rS(this.editorEl,"left");break;case"center":rS(this.editorEl,"center");break;case"right":rS(this.editorEl,"right");break;case"justify":rS(this.editorEl,"justify");break;case"ul":cS(this.editorEl,"ul"),this.updateContent(),this.updateToolbarState();break;case"ol":cS(this.editorEl,"ol"),this.updateContent(),this.updateToolbarState();break;case"link":break;case"clear":const e=document.createTreeWalker(this.editorEl,NodeFilter.SHOW_ELEMENT),t=[];for(;e.nextNode();){const i=e.currentNode;i.removeAttribute("style"),["B","STRONG","I","EM","U","SPAN","FONT"].includes(i.tagName)&&t.push(i)}for(const e of t){for(;e.firstChild;)e.parentNode?.insertBefore(e.firstChild,e);e.remove()}this.ensureAtLeastOneParagraph()}this.updateContent(),this.updateToolbarState()}setBtnActive(e,t){const i=this.buttonMap.get(e);if(i)for(const e of i)e.toggleAttribute("data-active",!!t)}updateToolbarState(){if(!this.editorEl)return;const e=document.getSelection();if(!e||0===e.rangeCount)return;const t=e.getRangeAt(0);if(!this.editorEl.contains(t.commonAncestorContainer))return;const i=function(e){for(;e&&!(e instanceof HTMLElement);)e=e.parentNode;return e}(t.startContainer)||this.editorEl,M=getComputedStyle(i),n=oS(t.startContainer,this.editorEl)||this.editorEl,o=(()=>{let e=i;for(;e&&e!==this.editorEl;){if(e instanceof HTMLElement){const t=e.tagName.toLowerCase();if("strong"===t||"b"===t)return!0;const i=getComputedStyle(e).fontWeight;if(parseInt(i,10)>=600)return!0}e=e.parentNode}return!1})(),r=(()=>{let e=i;for(;e&&e!==this.editorEl;){if(e instanceof HTMLElement){const t=e.tagName.toLowerCase();if("em"===t||"i"===t)return!0;if("italic"===getComputedStyle(e).fontStyle)return!0}e=e.parentNode}return!1})(),s=(()=>{let e=i;for(;e&&e!==this.editorEl;){if(e instanceof HTMLElement){const t=getComputedStyle(e).textDecorationLine;if(t&&t.includes("underline"))return!0;if("u"===e.tagName.toLowerCase())return!0}e=e.parentNode}return!1})(),a=!!i.closest("a"),N=n.style.textAlign||getComputedStyle(n).textAlign||"start",l="start"===N?"left":N,g=!!i.closest("li")&&i.closest("ul,ol")?.tagName.toLowerCase()||"";if(this.setBtnActive("bold",o),this.setBtnActive("italic",r),this.setBtnActive("underline",s),this.setBtnActive("link",a),this.setBtnActive("left","left"===l&&!["center","right","justify"].includes(l)),this.setBtnActive("center","center"===l),this.setBtnActive("right","right"===l),this.setBtnActive("justify","justify"===l),this.setBtnActive("ul","ul"===g),this.setBtnActive("ol","ol"===g),this.headingSelect){const e=n.tagName.toLowerCase(),t=["h1","h2","h3"].includes(e)?e:"p";this.headingSelect.value!==t&&(this.headingSelect.value=t)}if(this.fontSelect){const e=(M.fontFamily||"").replace(/["']/g,"").split(",")[0].trim().toLowerCase();if(e)for(const t of Array.from(this.fontSelect.options))if(t.value.toLowerCase()===e){this.fontSelect.value=t.value;break}}if(this.colorInput){const e=aS(M.color);e&&this.colorInput.value.toLowerCase()!==e.toLowerCase()&&(this.colorInput.value=e),this.colorSwatchEl&&(this.colorSwatchEl.style.backgroundColor=this.colorInput.value)}if(this.bgColorInput){const e=getComputedStyle(i).backgroundColor;if(e&&!/transparent|rgba\(\s*0\s*,\s*0\s*,\s*0\s*,\s*0\s*\)/i.test(e)){const t=aS(e);t&&this.bgColorInput.value.toLowerCase()!==t.toLowerCase()&&(this.bgColorInput.value=t)}this.bgSwatchEl&&(this.bgSwatchEl.style.backgroundColor=this.bgColorInput.value)}}syncPreview(){this.updateContent()}updateContent(){if(!this.editorEl)return;this.ensureAtLeastOneParagraph();const e=this.editorEl.cloneNode(!0);if(this.noStyles)e.querySelectorAll("[style]").forEach((e=>e.removeAttribute("style")));else{const t=document.createTreeWalker(this.editorEl,NodeFilter.SHOW_ELEMENT),i=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT),M=["font-weight","font-style","text-decoration","color","background-color","font-size","font-family","text-align","line-height","letter-spacing","white-space","vertical-align","list-style-position","padding-inline-start"];for(;t.nextNode()&&i.nextNode();){const e=t.currentNode,n=i.currentNode,o=window.getComputedStyle(e),r=M.map((e=>`${e}:${o.getPropertyValue(e)}`)).join(";");r.trim()&&n.setAttribute("style",r)}}this.content=e.innerHTML,this.previewEl&&(this.previewEl.innerHTML=this.content),this.dispatchEvent(new CustomEvent("nile-change",{detail:{content:this.content},bubbles:!0,composed:!0}))}};e([De({type:String,attribute:!0,reflect:!0})],zS.prototype,"value",void 0),e([De({type:Boolean,attribute:!0,reflect:!0})],zS.prototype,"noStyles",void 0),e([De({type:Boolean,attribute:"singlelineeditor",reflect:!0})],zS.prototype,"singleLineEditor",void 0),e([De({attribute:"mentions",reflect:!0,converter:{fromAttribute:e=>{try{const t=JSON.parse(e),i={};for(const e of Object.keys(t)){const M=t[e];Array.isArray(M)&&(i[e]=M.filter((e=>e&&"string"==typeof e.key&&"string"==typeof e.label)).map((e=>({key:e.key,label:e.label}))))}return i}catch{return{}}},toAttribute:e=>JSON.stringify(e)}})],zS.prototype,"mentions",void 0),e([ce()],zS.prototype,"content",void 0),zS=e([le("nile-rich-text-editor")],zS);"undefined"!=typeof window&&(window.nileElementsVersion='"1.2.7-beta-1.8"',window.nileVersion="__NILE_VERSION__",window.process=window.process||{env:{NODE_ENV:"production"}},console.error=()=>{});const dS=r`
|
|
14095
14095
|
:host {
|
|
14096
14096
|
--sidebar-width: 240px;
|
|
14097
14097
|
--sidebar-collapsed-width: 70px;
|
|
@@ -15271,7 +15271,7 @@ a {
|
|
|
15271
15271
|
:host {
|
|
15272
15272
|
|
|
15273
15273
|
}
|
|
15274
|
-
`;var KS="top",eE="bottom",tE="right",iE="left",ME="auto",nE=[KS,eE,tE,iE],oE="start",rE="end",sE="viewport",aE="popper",NE=nE.reduce((function(e,t){return e.concat([t+"-"+oE,t+"-"+rE])}),[]),lE=[].concat(nE,[ME]).reduce((function(e,t){return e.concat([t,t+"-"+oE,t+"-"+rE])}),[]),gE=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function uE(e){return e?(e.nodeName||"").toLowerCase():null}function DE(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function cE(e){return e instanceof DE(e).Element||e instanceof Element}function jE(e){return e instanceof DE(e).HTMLElement||e instanceof HTMLElement}function IE(e){return"undefined"!=typeof ShadowRoot&&(e instanceof DE(e).ShadowRoot||e instanceof ShadowRoot)}var zE={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var i=t.styles[e]||{},M=t.attributes[e]||{},n=t.elements[e];jE(n)&&uE(n)&&(Object.assign(n.style,i),Object.keys(M).forEach((function(e){var t=M[e];!1===t?n.removeAttribute(e):n.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach((function(e){var M=t.elements[e],n=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:i[e]).reduce((function(e,t){return e[t]="",e}),{});jE(M)&&uE(M)&&(Object.assign(M.style,o),Object.keys(n).forEach((function(e){M.removeAttribute(e)})))}))}},requires:["computeStyles"]};function dE(e){return e.split("-")[0]}var TE=Math.max,hE=Math.min,yE=Math.round;function AE(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function OE(){return!/^((?!chrome|android).)*safari/i.test(AE())}function LE(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!1);var M=e.getBoundingClientRect(),n=1,o=1;t&&jE(e)&&(n=e.offsetWidth>0&&yE(M.width)/e.offsetWidth||1,o=e.offsetHeight>0&&yE(M.height)/e.offsetHeight||1);var r=(cE(e)?DE(e):window).visualViewport,s=!OE()&&i,a=(M.left+(s&&r?r.offsetLeft:0))/n,N=(M.top+(s&&r?r.offsetTop:0))/o,l=M.width/n,g=M.height/o;return{width:l,height:g,top:N,right:a+l,bottom:N+g,left:a,x:a,y:N}}function xE(e){var t=LE(e),i=e.offsetWidth,M=e.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-M)<=1&&(M=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:M}}function pE(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&IE(i)){var M=t;do{if(M&&e.isSameNode(M))return!0;M=M.parentNode||M.host}while(M)}return!1}function SE(e){return DE(e).getComputedStyle(e)}function EE(e){return["table","td","th"].indexOf(uE(e))>=0}function mE(e){return((cE(e)?e.ownerDocument:e.document)||window.document).documentElement}function wE(e){return"html"===uE(e)?e:e.assignedSlot||e.parentNode||(IE(e)?e.host:null)||mE(e)}function QE(e){return jE(e)&&"fixed"!==SE(e).position?e.offsetParent:null}function kE(e){for(var t=DE(e),i=QE(e);i&&EE(i)&&"static"===SE(i).position;)i=QE(i);return i&&("html"===uE(i)||"body"===uE(i)&&"static"===SE(i).position)?t:i||function(e){var t=/firefox/i.test(AE());if(/Trident/i.test(AE())&&jE(e)&&"fixed"===SE(e).position)return null;var i=wE(e);for(IE(i)&&(i=i.host);jE(i)&&["html","body"].indexOf(uE(i))<0;){var M=SE(i);if("none"!==M.transform||"none"!==M.perspective||"paint"===M.contain||-1!==["transform","perspective"].indexOf(M.willChange)||t&&"filter"===M.willChange||t&&M.filter&&"none"!==M.filter)return i;i=i.parentNode}return null}(e)||t}function CE(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function bE(e,t,i){return TE(e,hE(t,i))}function fE(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function UE(e,t){return t.reduce((function(t,i){return t[i]=e,t}),{})}var vE={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,i=e.state,M=e.name,n=e.options,o=i.elements.arrow,r=i.modifiersData.popperOffsets,s=dE(i.placement),a=CE(s),N=[iE,tE].indexOf(s)>=0?"height":"width";if(o&&r){var l=function(e,t){return fE("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:UE(e,nE))}(n.padding,i),g=xE(o),u="y"===a?KS:iE,D="y"===a?eE:tE,c=i.rects.reference[N]+i.rects.reference[a]-r[a]-i.rects.popper[N],j=r[a]-i.rects.reference[a],I=kE(o),z=I?"y"===a?I.clientHeight||0:I.clientWidth||0:0,d=c/2-j/2,T=l[u],h=z-g[N]-l[D],y=z/2-g[N]/2+d,A=bE(T,y,h),O=a;i.modifiersData[M]=((t={})[O]=A,t.centerOffset=A-y,t)}},effect:function(e){var t=e.state,i=e.options.element,M=void 0===i?"[data-popper-arrow]":i;null!=M&&("string"!=typeof M||(M=t.elements.popper.querySelector(M)))&&pE(t.elements.popper,M)&&(t.elements.arrow=M)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function YE(e){return e.split("-")[1]}var ZE={top:"auto",right:"auto",bottom:"auto",left:"auto"};function VE(e){var t,i=e.popper,M=e.popperRect,n=e.placement,o=e.variation,r=e.offsets,s=e.position,a=e.gpuAcceleration,N=e.adaptive,l=e.roundOffsets,g=e.isFixed,u=r.x,D=void 0===u?0:u,c=r.y,j=void 0===c?0:c,I="function"==typeof l?l({x:D,y:j}):{x:D,y:j};D=I.x,j=I.y;var z=r.hasOwnProperty("x"),d=r.hasOwnProperty("y"),T=iE,h=KS,y=window;if(N){var A=kE(i),O="clientHeight",L="clientWidth";if(A===DE(i)&&"static"!==SE(A=mE(i)).position&&"absolute"===s&&(O="scrollHeight",L="scrollWidth"),n===KS||(n===iE||n===tE)&&o===rE)h=eE,j-=(g&&A===y&&y.visualViewport?y.visualViewport.height:A[O])-M.height,j*=a?1:-1;if(n===iE||(n===KS||n===eE)&&o===rE)T=tE,D-=(g&&A===y&&y.visualViewport?y.visualViewport.width:A[L])-M.width,D*=a?1:-1}var x,p=Object.assign({position:s},N&&ZE),S=!0===l?function(e,t){var i=e.x,M=e.y,n=t.devicePixelRatio||1;return{x:yE(i*n)/n||0,y:yE(M*n)/n||0}}({x:D,y:j},DE(i)):{x:D,y:j};return D=S.x,j=S.y,a?Object.assign({},p,((x={})[h]=d?"0":"",x[T]=z?"0":"",x.transform=(y.devicePixelRatio||1)<=1?"translate("+D+"px, "+j+"px)":"translate3d("+D+"px, "+j+"px, 0)",x)):Object.assign({},p,((t={})[h]=d?j+"px":"",t[T]=z?D+"px":"",t.transform="",t))}var WE={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,i=e.options,M=i.gpuAcceleration,n=void 0===M||M,o=i.adaptive,r=void 0===o||o,s=i.roundOffsets,a=void 0===s||s,N={placement:dE(t.placement),variation:YE(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,VE(Object.assign({},N,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:a})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,VE(Object.assign({},N,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},PE={passive:!0};var RE={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,i=e.instance,M=e.options,n=M.scroll,o=void 0===n||n,r=M.resize,s=void 0===r||r,a=DE(t.elements.popper),N=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&N.forEach((function(e){e.addEventListener("scroll",i.update,PE)})),s&&a.addEventListener("resize",i.update,PE),function(){o&&N.forEach((function(e){e.removeEventListener("scroll",i.update,PE)})),s&&a.removeEventListener("resize",i.update,PE)}},data:{}},GE={left:"right",right:"left",bottom:"top",top:"bottom"};function BE(e){return e.replace(/left|right|bottom|top/g,(function(e){return GE[e]}))}var _E={start:"end",end:"start"};function FE(e){return e.replace(/start|end/g,(function(e){return _E[e]}))}function HE(e){var t=DE(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function JE(e){return LE(mE(e)).left+HE(e).scrollLeft}function $E(e){var t=SE(e),i=t.overflow,M=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+n+M)}function XE(e){return["html","body","#document"].indexOf(uE(e))>=0?e.ownerDocument.body:jE(e)&&$E(e)?e:XE(wE(e))}function qE(e,t){var i;void 0===t&&(t=[]);var M=XE(e),n=M===(null==(i=e.ownerDocument)?void 0:i.body),o=DE(M),r=n?[o].concat(o.visualViewport||[],$E(M)?M:[]):M,s=t.concat(r);return n?s:s.concat(qE(wE(r)))}function KE(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function em(e,t,i){return t===sE?KE(function(e,t){var i=DE(e),M=mE(e),n=i.visualViewport,o=M.clientWidth,r=M.clientHeight,s=0,a=0;if(n){o=n.width,r=n.height;var N=OE();(N||!N&&"fixed"===t)&&(s=n.offsetLeft,a=n.offsetTop)}return{width:o,height:r,x:s+JE(e),y:a}}(e,i)):cE(t)?function(e,t){var i=LE(e,!1,"fixed"===t);return i.top=i.top+e.clientTop,i.left=i.left+e.clientLeft,i.bottom=i.top+e.clientHeight,i.right=i.left+e.clientWidth,i.width=e.clientWidth,i.height=e.clientHeight,i.x=i.left,i.y=i.top,i}(t,i):KE(function(e){var t,i=mE(e),M=HE(e),n=null==(t=e.ownerDocument)?void 0:t.body,o=TE(i.scrollWidth,i.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),r=TE(i.scrollHeight,i.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),s=-M.scrollLeft+JE(e),a=-M.scrollTop;return"rtl"===SE(n||i).direction&&(s+=TE(i.clientWidth,n?n.clientWidth:0)-o),{width:o,height:r,x:s,y:a}}(mE(e)))}function tm(e,t,i,M){var n="clippingParents"===t?function(e){var t=qE(wE(e)),i=["absolute","fixed"].indexOf(SE(e).position)>=0&&jE(e)?kE(e):e;return cE(i)?t.filter((function(e){return cE(e)&&pE(e,i)&&"body"!==uE(e)})):[]}(e):[].concat(t),o=[].concat(n,[i]),r=o[0],s=o.reduce((function(t,i){var n=em(e,i,M);return t.top=TE(n.top,t.top),t.right=hE(n.right,t.right),t.bottom=hE(n.bottom,t.bottom),t.left=TE(n.left,t.left),t}),em(e,r,M));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function im(e){var t,i=e.reference,M=e.element,n=e.placement,o=n?dE(n):null,r=n?YE(n):null,s=i.x+i.width/2-M.width/2,a=i.y+i.height/2-M.height/2;switch(o){case KS:t={x:s,y:i.y-M.height};break;case eE:t={x:s,y:i.y+i.height};break;case tE:t={x:i.x+i.width,y:a};break;case iE:t={x:i.x-M.width,y:a};break;default:t={x:i.x,y:i.y}}var N=o?CE(o):null;if(null!=N){var l="y"===N?"height":"width";switch(r){case oE:t[N]=t[N]-(i[l]/2-M[l]/2);break;case rE:t[N]=t[N]+(i[l]/2-M[l]/2)}}return t}function Mm(e,t){void 0===t&&(t={});var i=t,M=i.placement,n=void 0===M?e.placement:M,o=i.strategy,r=void 0===o?e.strategy:o,s=i.boundary,a=void 0===s?"clippingParents":s,N=i.rootBoundary,l=void 0===N?sE:N,g=i.elementContext,u=void 0===g?aE:g,D=i.altBoundary,c=void 0!==D&&D,j=i.padding,I=void 0===j?0:j,z=fE("number"!=typeof I?I:UE(I,nE)),d=u===aE?"reference":aE,T=e.rects.popper,h=e.elements[c?d:u],y=tm(cE(h)?h:h.contextElement||mE(e.elements.popper),a,l,r),A=LE(e.elements.reference),O=im({reference:A,element:T,strategy:"absolute",placement:n}),L=KE(Object.assign({},T,O)),x=u===aE?L:A,p={top:y.top-x.top+z.top,bottom:x.bottom-y.bottom+z.bottom,left:y.left-x.left+z.left,right:x.right-y.right+z.right},S=e.modifiersData.offset;if(u===aE&&S){var E=S[n];Object.keys(p).forEach((function(e){var t=[tE,eE].indexOf(e)>=0?1:-1,i=[KS,eE].indexOf(e)>=0?"y":"x";p[e]+=E[i]*t}))}return p}function nm(e,t){void 0===t&&(t={});var i=t,M=i.placement,n=i.boundary,o=i.rootBoundary,r=i.padding,s=i.flipVariations,a=i.allowedAutoPlacements,N=void 0===a?lE:a,l=YE(M),g=l?s?NE:NE.filter((function(e){return YE(e)===l})):nE,u=g.filter((function(e){return N.indexOf(e)>=0}));0===u.length&&(u=g);var D=u.reduce((function(t,i){return t[i]=Mm(e,{placement:i,boundary:n,rootBoundary:o,padding:r})[dE(i)],t}),{});return Object.keys(D).sort((function(e,t){return D[e]-D[t]}))}var om={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,M=e.name;if(!t.modifiersData[M]._skip){for(var n=i.mainAxis,o=void 0===n||n,r=i.altAxis,s=void 0===r||r,a=i.fallbackPlacements,N=i.padding,l=i.boundary,g=i.rootBoundary,u=i.altBoundary,D=i.flipVariations,c=void 0===D||D,j=i.allowedAutoPlacements,I=t.options.placement,z=dE(I),d=a||(z===I||!c?[BE(I)]:function(e){if(dE(e)===ME)return[];var t=BE(e);return[FE(e),t,FE(t)]}(I)),T=[I].concat(d).reduce((function(e,i){return e.concat(dE(i)===ME?nm(t,{placement:i,boundary:l,rootBoundary:g,padding:N,flipVariations:c,allowedAutoPlacements:j}):i)}),[]),h=t.rects.reference,y=t.rects.popper,A=new Map,O=!0,L=T[0],x=0;x<T.length;x++){var p=T[x],S=dE(p),E=YE(p)===oE,m=[KS,eE].indexOf(S)>=0,w=m?"width":"height",Q=Mm(t,{placement:p,boundary:l,rootBoundary:g,altBoundary:u,padding:N}),k=m?E?tE:iE:E?eE:KS;h[w]>y[w]&&(k=BE(k));var C=BE(k),b=[];if(o&&b.push(Q[S]<=0),s&&b.push(Q[k]<=0,Q[C]<=0),b.every((function(e){return e}))){L=p,O=!1;break}A.set(p,b)}if(O)for(var f=function(e){var t=T.find((function(t){var i=A.get(t);if(i)return i.slice(0,e).every((function(e){return e}))}));if(t)return L=t,"break"},U=c?3:1;U>0;U--){if("break"===f(U))break}t.placement!==L&&(t.modifiersData[M]._skip=!0,t.placement=L,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function rm(e,t,i){return void 0===i&&(i={x:0,y:0}),{top:e.top-t.height-i.y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}function sm(e){return[KS,tE,eE,iE].some((function(t){return e[t]>=0}))}var am={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,i=e.name,M=t.rects.reference,n=t.rects.popper,o=t.modifiersData.preventOverflow,r=Mm(t,{elementContext:"reference"}),s=Mm(t,{altBoundary:!0}),a=rm(r,M),N=rm(s,n,o),l=sm(a),g=sm(N);t.modifiersData[i]={referenceClippingOffsets:a,popperEscapeOffsets:N,isReferenceHidden:l,hasPopperEscaped:g},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":g})}};var Nm={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,i=e.options,M=e.name,n=i.offset,o=void 0===n?[0,0]:n,r=lE.reduce((function(e,i){return e[i]=function(e,t,i){var M=dE(e),n=[iE,KS].indexOf(M)>=0?-1:1,o="function"==typeof i?i(Object.assign({},t,{placement:e})):i,r=o[0],s=o[1];return r=r||0,s=(s||0)*n,[iE,tE].indexOf(M)>=0?{x:s,y:r}:{x:r,y:s}}(i,t.rects,o),e}),{}),s=r[t.placement],a=s.x,N=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=a,t.modifiersData.popperOffsets.y+=N),t.modifiersData[M]=r}};var lm={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,i=e.name;t.modifiersData[i]=im({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var gm={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,M=e.name,n=i.mainAxis,o=void 0===n||n,r=i.altAxis,s=void 0!==r&&r,a=i.boundary,N=i.rootBoundary,l=i.altBoundary,g=i.padding,u=i.tether,D=void 0===u||u,c=i.tetherOffset,j=void 0===c?0:c,I=Mm(t,{boundary:a,rootBoundary:N,padding:g,altBoundary:l}),z=dE(t.placement),d=YE(t.placement),T=!d,h=CE(z),y="x"===h?"y":"x",A=t.modifiersData.popperOffsets,O=t.rects.reference,L=t.rects.popper,x="function"==typeof j?j(Object.assign({},t.rects,{placement:t.placement})):j,p="number"==typeof x?{mainAxis:x,altAxis:x}:Object.assign({mainAxis:0,altAxis:0},x),S=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,E={x:0,y:0};if(A){if(o){var m,w="y"===h?KS:iE,Q="y"===h?eE:tE,k="y"===h?"height":"width",C=A[h],b=C+I[w],f=C-I[Q],U=D?-L[k]/2:0,v=d===oE?O[k]:L[k],Y=d===oE?-L[k]:-O[k],Z=t.elements.arrow,V=D&&Z?xE(Z):{width:0,height:0},W=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},P=W[w],R=W[Q],G=bE(0,O[k],V[k]),B=T?O[k]/2-U-G-P-p.mainAxis:v-G-P-p.mainAxis,_=T?-O[k]/2+U+G+R+p.mainAxis:Y+G+R+p.mainAxis,F=t.elements.arrow&&kE(t.elements.arrow),H=F?"y"===h?F.clientTop||0:F.clientLeft||0:0,J=null!=(m=null==S?void 0:S[h])?m:0,$=C+_-J,X=bE(D?hE(b,C+B-J-H):b,C,D?TE(f,$):f);A[h]=X,E[h]=X-C}if(s){var q,K="x"===h?KS:iE,ee="x"===h?eE:tE,te=A[y],ie="y"===y?"height":"width",Me=te+I[K],ne=te-I[ee],oe=-1!==[KS,iE].indexOf(z),re=null!=(q=null==S?void 0:S[y])?q:0,se=oe?Me:te-O[ie]-L[ie]-re+p.altAxis,ae=oe?te+O[ie]+L[ie]-re-p.altAxis:ne,Ne=D&&oe?function(e,t,i){var M=bE(e,t,i);return M>i?i:M}(se,te,ae):bE(D?se:Me,te,D?ae:ne);A[y]=Ne,E[y]=Ne-te}t.modifiersData[M]=E}},requiresIfExists:["offset"]};function um(e,t,i){void 0===i&&(i=!1);var M,n,o=jE(t),r=jE(t)&&function(e){var t=e.getBoundingClientRect(),i=yE(t.width)/e.offsetWidth||1,M=yE(t.height)/e.offsetHeight||1;return 1!==i||1!==M}(t),s=mE(t),a=LE(e,r,i),N={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(o||!o&&!i)&&(("body"!==uE(t)||$E(s))&&(N=(M=t)!==DE(M)&&jE(M)?{scrollLeft:(n=M).scrollLeft,scrollTop:n.scrollTop}:HE(M)),jE(t)?((l=LE(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=JE(s))),{x:a.left+N.scrollLeft-l.x,y:a.top+N.scrollTop-l.y,width:a.width,height:a.height}}function Dm(e){var t=new Map,i=new Set,M=[];function n(e){i.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!i.has(e)){var M=t.get(e);M&&n(M)}})),M.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){i.has(e.name)||n(e)})),M}var cm={placement:"bottom",modifiers:[],strategy:"absolute"};function jm(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function Im(e){void 0===e&&(e={});var t=e,i=t.defaultModifiers,M=void 0===i?[]:i,n=t.defaultOptions,o=void 0===n?cm:n;return function(e,t,i){void 0===i&&(i=o);var n,r,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},cm,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],N=!1,l={state:s,setOptions:function(i){var n="function"==typeof i?i(s.options):i;g(),s.options=Object.assign({},o,s.options,n),s.scrollParents={reference:cE(e)?qE(e):e.contextElement?qE(e.contextElement):[],popper:qE(t)};var r=function(e){var t=Dm(e);return gE.reduce((function(e,i){return e.concat(t.filter((function(e){return e.phase===i})))}),[])}(function(e){var t=e.reduce((function(e,t){var i=e[t.name];return e[t.name]=i?Object.assign({},i,t,{options:Object.assign({},i.options,t.options),data:Object.assign({},i.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(M,s.options.modifiers)));return s.orderedModifiers=r.filter((function(e){return e.enabled})),s.orderedModifiers.forEach((function(e){var t=e.name,i=e.options,M=void 0===i?{}:i,n=e.effect;if("function"==typeof n){var o=n({state:s,name:t,instance:l,options:M}),r=function(){};a.push(o||r)}})),l.update()},forceUpdate:function(){if(!N){var e=s.elements,t=e.reference,i=e.popper;if(jm(t,i)){s.rects={reference:um(t,kE(i),"fixed"===s.options.strategy),popper:xE(i)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var M=0;M<s.orderedModifiers.length;M++)if(!0!==s.reset){var n=s.orderedModifiers[M],o=n.fn,r=n.options,a=void 0===r?{}:r,g=n.name;"function"==typeof o&&(s=o({state:s,options:a,name:g,instance:l})||s)}else s.reset=!1,M=-1}}},update:(n=function(){return new Promise((function(e){l.forceUpdate(),e(s)}))},function(){return r||(r=new Promise((function(e){Promise.resolve().then((function(){r=void 0,e(n())}))}))),r}),destroy:function(){g(),N=!0}};if(!jm(e,t))return l;function g(){a.forEach((function(e){return e()})),a=[]}return l.setOptions(i).then((function(e){!N&&i.onFirstUpdate&&i.onFirstUpdate(e)})),l}}var zm=Im({defaultModifiers:[RE,lm,WE,zE,Nm,om,gm,vE,am]}),dm='<svg width="16" height="6" xmlns="http://www.w3.org/2000/svg"><path d="M0 6s1.796-.013 4.67-3.615C5.851.9 6.93.006 8 0c1.07-.006 2.148.887 3.343 2.385C14.233 6.005 16 6 16 6H0z"></svg>',Tm="tippy-content",hm="tippy-arrow",ym="tippy-svg-arrow",Am={passive:!0,capture:!0},Om=function(){return document.body};function Lm(e,t,i){if(Array.isArray(e)){var M=e[t];return null==M?Array.isArray(i)?i[t]:i:M}return e}function xm(e,t){var i={}.toString.call(e);return 0===i.indexOf("[object")&&i.indexOf(t+"]")>-1}function pm(e,t){return"function"==typeof e?e.apply(void 0,t):e}function Sm(e,t){return 0===t?e:function(M){clearTimeout(i),i=setTimeout((function(){e(M)}),t)};var i}function Em(e,t){var i=Object.assign({},e);return t.forEach((function(e){delete i[e]})),i}function mm(e){return[].concat(e)}function wm(e,t){-1===e.indexOf(t)&&e.push(t)}function Qm(e){return[].slice.call(e)}function km(e){return Object.keys(e).reduce((function(t,i){return void 0!==e[i]&&(t[i]=e[i]),t}),{})}function Cm(){return document.createElement("div")}function bm(e){return["Element","Fragment"].some((function(t){return xm(e,t)}))}function fm(e){return xm(e,"MouseEvent")}function Um(e){return bm(e)?[e]:function(e){return xm(e,"NodeList")}(e)?Qm(e):Array.isArray(e)?e:Qm(document.querySelectorAll(e))}function vm(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function Ym(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function Zm(e){var t,i=mm(e)[0];return null!=i&&null!=(t=i.ownerDocument)&&t.body?i.ownerDocument:document}function Vm(e,t,i){var M=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[M](t,i)}))}function Wm(e,t){for(var i=t;i;){var M;if(e.contains(i))return!0;i=null==i.getRootNode||null==(M=i.getRootNode())?void 0:M.host}return!1}var Pm={isTouch:!1},Rm=0;function Gm(){Pm.isTouch||(Pm.isTouch=!0,window.performance&&document.addEventListener("mousemove",Bm))}function Bm(){var e=performance.now();e-Rm<20&&(Pm.isTouch=!1,document.removeEventListener("mousemove",Bm)),Rm=e}function _m(){var e,t=document.activeElement;if((e=t)&&e._tippy&&e._tippy.reference===e){var i=t._tippy;t.blur&&!i.state.isVisible&&t.blur()}}var Fm,Hm=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;function Jm(e){return[e+"() was called on a"+("destroy"===e?"n already-":" ")+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function $m(e){return e.replace(/[ \t]{2,}/g," ").replace(/^[ \t]*/gm,"").trim()}function Xm(e){return $m("\n %ctippy.js\n\n %c"+$m(e)+"\n\n %c👷 This is a development-only message. It will be removed in production.\n ")}function qm(e){return[Xm(e),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}function Km(e,t){var i;e&&!Fm.has(t)&&(Fm.add(t),(i=console).warn.apply(i,qm(t)))}function ew(e,t){var i;e&&!Fm.has(t)&&(Fm.add(t),(i=console).error.apply(i,qm(t)))}"production"!==process.env.NODE_ENV&&(Fm=new Set);var tw={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},iw=Object.assign({appendTo:Om,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},tw,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Mw=Object.keys(iw);function nw(e){var t=(e.plugins||[]).reduce((function(t,i){var M,n=i.name,o=i.defaultValue;n&&(t[n]=void 0!==e[n]?e[n]:null!=(M=iw[n])?M:o);return t}),{});return Object.assign({},e,t)}function ow(e,t){var i=Object.assign({},t,{content:pm(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(nw(Object.assign({},iw,{plugins:t}))):Mw).reduce((function(t,i){var M=(e.getAttribute("data-tippy-"+i)||"").trim();if(!M)return t;if("content"===i)t[i]=M;else try{t[i]=JSON.parse(M)}catch(e){t[i]=M}return t}),{})}(e,t.plugins));return i.aria=Object.assign({},iw.aria,i.aria),i.aria={expanded:"auto"===i.aria.expanded?t.interactive:i.aria.expanded,content:"auto"===i.aria.content?t.interactive?null:"describedby":i.aria.content},i}function rw(e,t){void 0===e&&(e={}),void 0===t&&(t=[]),Object.keys(e).forEach((function(e){var i,M,n=Em(iw,Object.keys(tw)),o=(i=n,M=e,!{}.hasOwnProperty.call(i,M));o&&(o=0===t.filter((function(t){return t.name===e})).length),Km(o,["`"+e+"`","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.","\n\n","All props: https://atomiks.github.io/tippyjs/v6/all-props/\n","Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))}))}function sw(e,t){e.innerHTML=t}function aw(e){var t=Cm();return!0===e?t.className=hm:(t.className=ym,bm(e)?t.appendChild(e):sw(t,e)),t}function Nw(e,t){bm(t.content)?(sw(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?sw(e,t.content):e.textContent=t.content)}function lw(e){var t=e.firstElementChild,i=Qm(t.children);return{box:t,content:i.find((function(e){return e.classList.contains(Tm)})),arrow:i.find((function(e){return e.classList.contains(hm)||e.classList.contains(ym)})),backdrop:i.find((function(e){return e.classList.contains("tippy-backdrop")}))}}function gw(e){var t=Cm(),i=Cm();i.className="tippy-box",i.setAttribute("data-state","hidden"),i.setAttribute("tabindex","-1");var M=Cm();function n(i,M){var n=lw(t),o=n.box,r=n.content,s=n.arrow;M.theme?o.setAttribute("data-theme",M.theme):o.removeAttribute("data-theme"),"string"==typeof M.animation?o.setAttribute("data-animation",M.animation):o.removeAttribute("data-animation"),M.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof M.maxWidth?M.maxWidth+"px":M.maxWidth,M.role?o.setAttribute("role",M.role):o.removeAttribute("role"),i.content===M.content&&i.allowHTML===M.allowHTML||Nw(r,e.props),M.arrow?s?i.arrow!==M.arrow&&(o.removeChild(s),o.appendChild(aw(M.arrow))):o.appendChild(aw(M.arrow)):s&&o.removeChild(s)}return M.className=Tm,M.setAttribute("data-state","hidden"),Nw(M,e.props),t.appendChild(i),i.appendChild(M),n(e.props,e.props),{popper:t,onUpdate:n}}gw.$$tippy=!0;var uw=1,Dw=[],cw=[];function jw(e,t){var i,M,n,o,r,s,a,N,l=ow(e,Object.assign({},iw,nw(km(t)))),g=!1,u=!1,D=!1,c=!1,j=[],I=Sm(F,l.interactiveDebounce),z=uw++,d=(N=l.plugins).filter((function(e,t){return N.indexOf(e)===t})),T={id:z,reference:e,popper:Cm(),popperInstance:null,props:l,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:d,clearDelayTimeouts:function(){clearTimeout(i),clearTimeout(M),cancelAnimationFrame(n)},setProps:function(t){"production"!==process.env.NODE_ENV&&Km(T.state.isDestroyed,Jm("setProps"));if(T.state.isDestroyed)return;C("onBeforeUpdate",[T,t]),B();var i=T.props,M=ow(e,Object.assign({},i,km(t),{ignoreAttributes:!0}));T.props=M,G(),i.interactiveDebounce!==M.interactiveDebounce&&(U(),I=Sm(F,M.interactiveDebounce));i.triggerTarget&&!M.triggerTarget?mm(i.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):M.triggerTarget&&e.removeAttribute("aria-expanded");f(),k(),A&&A(i,M);T.popperInstance&&(X(),K().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));C("onAfterUpdate",[T,t])},setContent:function(e){T.setProps({content:e})},show:function(){"production"!==process.env.NODE_ENV&&Km(T.state.isDestroyed,Jm("show"));var e=T.state.isVisible,t=T.state.isDestroyed,i=!T.state.isEnabled,M=Pm.isTouch&&!T.props.touch,n=Lm(T.props.duration,0,iw.duration);if(e||t||i||M)return;if(E().hasAttribute("disabled"))return;if(C("onShow",[T],!1),!1===T.props.onShow(T))return;T.state.isVisible=!0,S()&&(y.style.visibility="visible");k(),V(),T.state.isMounted||(y.style.transition="none");if(S()){var o=w();vm([o.box,o.content],0)}s=function(){var e;if(T.state.isVisible&&!c){if(c=!0,y.offsetHeight,y.style.transition=T.props.moveTransition,S()&&T.props.animation){var t=w(),i=t.box,M=t.content;vm([i,M],n),Ym([i,M],"visible")}b(),f(),wm(cw,T),null==(e=T.popperInstance)||e.forceUpdate(),C("onMount",[T]),T.props.animation&&S()&&function(e,t){P(e,t)}(n,(function(){T.state.isShown=!0,C("onShown",[T])}))}},function(){var e,t=T.props.appendTo,i=E();e=T.props.interactive&&t===Om||"parent"===t?i.parentNode:pm(t,[i]);e.contains(y)||e.appendChild(y);T.state.isMounted=!0,X(),"production"!==process.env.NODE_ENV&&Km(T.props.interactive&&t===iw.appendTo&&i.nextElementSibling!==y,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.","\n\n","Using a wrapper <div> or <span> tag around the reference element","solves this by creating a new parentNode context.","\n\n","Specifying `appendTo: document.body` silences this warning, but it","assumes you are using a focus management solution to handle","keyboard navigation.","\n\n","See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}()},hide:function(){"production"!==process.env.NODE_ENV&&Km(T.state.isDestroyed,Jm("hide"));var e=!T.state.isVisible,t=T.state.isDestroyed,i=!T.state.isEnabled,M=Lm(T.props.duration,1,iw.duration);if(e||t||i)return;if(C("onHide",[T],!1),!1===T.props.onHide(T))return;T.state.isVisible=!1,T.state.isShown=!1,c=!1,g=!1,S()&&(y.style.visibility="hidden");if(U(),W(),k(!0),S()){var n=w(),o=n.box,r=n.content;T.props.animation&&(vm([o,r],M),Ym([o,r],"hidden"))}b(),f(),T.props.animation?S()&&function(e,t){P(e,(function(){!T.state.isVisible&&y.parentNode&&y.parentNode.contains(y)&&t()}))}(M,T.unmount):T.unmount()},hideWithInteractivity:function(e){"production"!==process.env.NODE_ENV&&Km(T.state.isDestroyed,Jm("hideWithInteractivity"));m().addEventListener("mousemove",I),wm(Dw,I),I(e)},enable:function(){T.state.isEnabled=!0},disable:function(){T.hide(),T.state.isEnabled=!1},unmount:function(){"production"!==process.env.NODE_ENV&&Km(T.state.isDestroyed,Jm("unmount"));T.state.isVisible&&T.hide();if(!T.state.isMounted)return;q(),K().forEach((function(e){e._tippy.unmount()})),y.parentNode&&y.parentNode.removeChild(y);cw=cw.filter((function(e){return e!==T})),T.state.isMounted=!1,C("onHidden",[T])},destroy:function(){"production"!==process.env.NODE_ENV&&Km(T.state.isDestroyed,Jm("destroy"));if(T.state.isDestroyed)return;T.clearDelayTimeouts(),T.unmount(),B(),delete e._tippy,T.state.isDestroyed=!0,C("onDestroy",[T])}};if(!l.render)return"production"!==process.env.NODE_ENV&&ew(!0,"render() function has not been supplied."),T;var h=l.render(T),y=h.popper,A=h.onUpdate;y.setAttribute("data-tippy-root",""),y.id="tippy-"+T.id,T.popper=y,e._tippy=T,y._tippy=T;var O=d.map((function(e){return e.fn(T)})),L=e.hasAttribute("aria-expanded");return G(),f(),k(),C("onCreate",[T]),l.showOnCreate&&ee(),y.addEventListener("mouseenter",(function(){T.props.interactive&&T.state.isVisible&&T.clearDelayTimeouts()})),y.addEventListener("mouseleave",(function(){T.props.interactive&&T.props.trigger.indexOf("mouseenter")>=0&&m().addEventListener("mousemove",I)})),T;function x(){var e=T.props.touch;return Array.isArray(e)?e:[e,0]}function p(){return"hold"===x()[0]}function S(){var e;return!(null==(e=T.props.render)||!e.$$tippy)}function E(){return a||e}function m(){var e=E().parentNode;return e?Zm(e):document}function w(){return lw(y)}function Q(e){return T.state.isMounted&&!T.state.isVisible||Pm.isTouch||o&&"focus"===o.type?0:Lm(T.props.delay,e?0:1,iw.delay)}function k(e){void 0===e&&(e=!1),y.style.pointerEvents=T.props.interactive&&!e?"":"none",y.style.zIndex=""+T.props.zIndex}function C(e,t,i){var M;(void 0===i&&(i=!0),O.forEach((function(i){i[e]&&i[e].apply(i,t)})),i)&&(M=T.props)[e].apply(M,t)}function b(){var t=T.props.aria;if(t.content){var i="aria-"+t.content,M=y.id;mm(T.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(i);if(T.state.isVisible)e.setAttribute(i,t?t+" "+M:M);else{var n=t&&t.replace(M,"").trim();n?e.setAttribute(i,n):e.removeAttribute(i)}}))}}function f(){!L&&T.props.aria.expanded&&mm(T.props.triggerTarget||e).forEach((function(e){T.props.interactive?e.setAttribute("aria-expanded",T.state.isVisible&&e===E()?"true":"false"):e.removeAttribute("aria-expanded")}))}function U(){m().removeEventListener("mousemove",I),Dw=Dw.filter((function(e){return e!==I}))}function v(t){if(!Pm.isTouch||!D&&"mousedown"!==t.type){var i=t.composedPath&&t.composedPath()[0]||t.target;if(!T.props.interactive||!Wm(y,i)){if(mm(T.props.triggerTarget||e).some((function(e){return Wm(e,i)}))){if(Pm.isTouch)return;if(T.state.isVisible&&T.props.trigger.indexOf("click")>=0)return}else C("onClickOutside",[T,t]);!0===T.props.hideOnClick&&(T.clearDelayTimeouts(),T.hide(),u=!0,setTimeout((function(){u=!1})),T.state.isMounted||W())}}}function Y(){D=!0}function Z(){D=!1}function V(){var e=m();e.addEventListener("mousedown",v,!0),e.addEventListener("touchend",v,Am),e.addEventListener("touchstart",Z,Am),e.addEventListener("touchmove",Y,Am)}function W(){var e=m();e.removeEventListener("mousedown",v,!0),e.removeEventListener("touchend",v,Am),e.removeEventListener("touchstart",Z,Am),e.removeEventListener("touchmove",Y,Am)}function P(e,t){var i=w().box;function M(e){e.target===i&&(Vm(i,"remove",M),t())}if(0===e)return t();Vm(i,"remove",r),Vm(i,"add",M),r=M}function R(t,i,M){void 0===M&&(M=!1),mm(T.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,i,M),j.push({node:e,eventType:t,handler:i,options:M})}))}function G(){var e;p()&&(R("touchstart",_,{passive:!0}),R("touchend",H,{passive:!0})),(e=T.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(R(e,_),e){case"mouseenter":R("mouseleave",H);break;case"focus":R(Hm?"focusout":"blur",J);break;case"focusin":R("focusout",J)}}))}function B(){j.forEach((function(e){var t=e.node,i=e.eventType,M=e.handler,n=e.options;t.removeEventListener(i,M,n)})),j=[]}function _(e){var t,i=!1;if(T.state.isEnabled&&!$(e)&&!u){var M="focus"===(null==(t=o)?void 0:t.type);o=e,a=e.currentTarget,f(),!T.state.isVisible&&fm(e)&&Dw.forEach((function(t){return t(e)})),"click"===e.type&&(T.props.trigger.indexOf("mouseenter")<0||g)&&!1!==T.props.hideOnClick&&T.state.isVisible?i=!0:ee(e),"click"===e.type&&(g=!i),i&&!M&&te(e)}}function F(e){var t=e.target,i=E().contains(t)||y.contains(t);if("mousemove"!==e.type||!i){var M=K().concat(y).map((function(e){var t,i=null==(t=e._tippy.popperInstance)?void 0:t.state;return i?{popperRect:e.getBoundingClientRect(),popperState:i,props:l}:null})).filter(Boolean);(function(e,t){var i=t.clientX,M=t.clientY;return e.every((function(e){var t=e.popperRect,n=e.popperState,o=e.props.interactiveBorder,r=n.placement.split("-")[0],s=n.modifiersData.offset;if(!s)return!0;var a="bottom"===r?s.top.y:0,N="top"===r?s.bottom.y:0,l="right"===r?s.left.x:0,g="left"===r?s.right.x:0,u=t.top-M+a>o,D=M-t.bottom-N>o,c=t.left-i+l>o,j=i-t.right-g>o;return u||D||c||j}))})(M,e)&&(U(),te(e))}}function H(e){$(e)||T.props.trigger.indexOf("click")>=0&&g||(T.props.interactive?T.hideWithInteractivity(e):te(e))}function J(e){T.props.trigger.indexOf("focusin")<0&&e.target!==E()||T.props.interactive&&e.relatedTarget&&y.contains(e.relatedTarget)||te(e)}function $(e){return!!Pm.isTouch&&p()!==e.type.indexOf("touch")>=0}function X(){q();var t=T.props,i=t.popperOptions,M=t.placement,n=t.offset,o=t.getReferenceClientRect,r=t.moveTransition,a=S()?lw(y).arrow:null,N=o?{getBoundingClientRect:o,contextElement:o.contextElement||E()}:e,l={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(S()){var i=w().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?i.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?i.setAttribute("data-"+e,""):i.removeAttribute("data-"+e)})),t.attributes.popper={}}}},g=[{name:"offset",options:{offset:n}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!r}},l];S()&&a&&g.push({name:"arrow",options:{element:a,padding:3}}),g.push.apply(g,(null==i?void 0:i.modifiers)||[]),T.popperInstance=zm(N,y,Object.assign({},i,{placement:M,onFirstUpdate:s,modifiers:g}))}function q(){T.popperInstance&&(T.popperInstance.destroy(),T.popperInstance=null)}function K(){return Qm(y.querySelectorAll("[data-tippy-root]"))}function ee(e){T.clearDelayTimeouts(),e&&C("onTrigger",[T,e]),V();var t=Q(!0),M=x(),n=M[0],o=M[1];Pm.isTouch&&"hold"===n&&o&&(t=o),t?i=setTimeout((function(){T.show()}),t):T.show()}function te(e){if(T.clearDelayTimeouts(),C("onUntrigger",[T,e]),T.state.isVisible){if(!(T.props.trigger.indexOf("mouseenter")>=0&&T.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&g)){var t=Q(!1);t?M=setTimeout((function(){T.state.isVisible&&T.hide()}),t):n=requestAnimationFrame((function(){T.hide()}))}}else W()}}function Iw(e,t){void 0===t&&(t={});var i=iw.plugins.concat(t.plugins||[]);"production"!==process.env.NODE_ENV&&(!function(e){var t=!e,i="[object Object]"===Object.prototype.toString.call(e)&&!e.addEventListener;ew(t,["tippy() was passed","`"+String(e)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),ew(i,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}(e),rw(t,i)),document.addEventListener("touchstart",Gm,Am),window.addEventListener("blur",_m);var M=Object.assign({},t,{plugins:i}),n=Um(e);if("production"!==process.env.NODE_ENV){var o=bm(M.content),r=n.length>1;Km(o&&r,["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.","\n\n","Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.","\n\n","1) content: element.innerHTML\n","2) content: () => element.cloneNode(true)"].join(" "))}var s=n.reduce((function(e,t){var i=t&&jw(t,M);return i&&e.push(i),e}),[]);return bm(e)?s[0]:s}Iw.defaultProps=iw,Iw.setDefaultProps=function(e){"production"!==process.env.NODE_ENV&&rw(e,[]),Object.keys(e).forEach((function(t){iw[t]=e[t]}))},Iw.currentInput=Pm;var zw=Object.assign({},zE,{effect:function(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow)}}),dw={clientX:0,clientY:0},Tw=[];function hw(e){var t=e.clientX,i=e.clientY;dw={clientX:t,clientY:i}}var yw={name:"followCursor",defaultValue:!1,fn:function(e){var t=e.reference,i=Zm(e.props.triggerTarget||t),M=!1,n=!1,o=!0,r=e.props;function s(){return"initial"===e.props.followCursor&&e.state.isVisible}function a(){i.addEventListener("mousemove",g)}function N(){i.removeEventListener("mousemove",g)}function l(){M=!0,e.setProps({getReferenceClientRect:null}),M=!1}function g(i){var M=!i.target||t.contains(i.target),n=e.props.followCursor,o=i.clientX,r=i.clientY,s=t.getBoundingClientRect(),a=o-s.left,N=r-s.top;!M&&e.props.interactive||e.setProps({getReferenceClientRect:function(){var e=t.getBoundingClientRect(),i=o,M=r;"initial"===n&&(i=e.left+a,M=e.top+N);var s="horizontal"===n?e.top:M,l="vertical"===n?e.right:i,g="horizontal"===n?e.bottom:M,u="vertical"===n?e.left:i;return{width:l-u,height:g-s,top:s,right:l,bottom:g,left:u}}})}function u(){e.props.followCursor&&(Tw.push({instance:e,doc:i}),function(e){e.addEventListener("mousemove",hw)}(i))}function D(){0===(Tw=Tw.filter((function(t){return t.instance!==e}))).filter((function(e){return e.doc===i})).length&&function(e){e.removeEventListener("mousemove",hw)}(i)}return{onCreate:u,onDestroy:D,onBeforeUpdate:function(){r=e.props},onAfterUpdate:function(t,i){var o=i.followCursor;M||void 0!==o&&r.followCursor!==o&&(D(),o?(u(),!e.state.isMounted||n||s()||a()):(N(),l()))},onMount:function(){e.props.followCursor&&!n&&(o&&(g(dw),o=!1),s()||a())},onTrigger:function(e,t){fm(t)&&(dw={clientX:t.clientX,clientY:t.clientY}),n="focus"===t.type},onHidden:function(){e.props.followCursor&&(l(),N(),o=!0)}}}};function Aw(e){return!0===e||"true"===e||!1!==e&&"false"!==e&&(!!["initial","horizontal","vertical"].includes(String(e))&&e)}function Ow(e){if(Array.isArray(e))return e;if("number"==typeof e)return e;if("string"==typeof e){if(e.includes(",")){const t=e.split(",").map((e=>parseInt(e.trim(),10)));return t}const t=parseInt(e,10);if(!isNaN(t))return t}return 200}Iw.setDefaultProps({render:gw});let Lw=class extends Re{static get styles(){return[qS]}createRenderRoot(){return this}constructor(){super(),this.for=null,this.content="",this.size="small",this.duration=200,this.interactive=!1,this.placement="top",this.disabled=!1,this.distance=8,this.skidding=0,this.open=!1,this.trigger="mouseenter focus",this.allowHTML=!1,this.followCursor=!1,this.arrow="default",this.singleton=!1,this.delay=0,this.maxWidth="auto",this.zIndex=9999,this.hideOnClick=!0,this.inertia=!1,this.interactiveBorder=2,this.injectTippyStyles()}injectTippyStyles(){const e="nile-lite-tooltip-styles";if(document.getElementById(e))return;const t=document.createElement("style");t.id=e,t.textContent='\n .tippy-box[data-animation=fade][data-state=hidden] { opacity: 0; }\n [data-tippy-root] { max-width: calc(100vw - 10px); }\n .tippy-box {\n position: relative;\n background-color: var(--nile-tooltip-color-background, var(--ng-colors-bg-primary-solid));\n color: var(--nile-colors-white-base, var(--ng-colors-text-white));\n border-radius: var(--nile-radius-sm, var(--ng-radius-md));\n font-size: var(--nile-tooltip-font-size-sm, var(--ng-font-size-text-xs));\n line-height: 1.4;\n white-space: normal;\n outline: 0;\n transition-property: transform, visibility, opacity;\n }\n\n /* Placement-specific arrows */\n .tippy-box[data-placement^=top] > .tippy-arrow { bottom: 0; }\n .tippy-box[data-placement^=top] > .tippy-arrow:before {\n bottom: -7px;\n border-width: 8px 8px 0;\n border-top-color: initial;\n }\n\n .tippy-box[data-placement^=bottom] > .tippy-arrow { top: 0; }\n .tippy-box[data-placement^=bottom] > .tippy-arrow:before {\n top: -7px;\n border-width: 0 8px 8px;\n border-bottom-color: initial;\n }\n\n .tippy-box[data-placement^=left] > .tippy-arrow { right: 0; }\n .tippy-box[data-placement^=left] > .tippy-arrow:before {\n right: -7px;\n border-width: 8px 0 8px 8px;\n border-left-color: initial;\n }\n\n .tippy-box[data-placement^=right] > .tippy-arrow { left: 0; }\n .tippy-box[data-placement^=right] > .tippy-arrow:before {\n left: -7px;\n border-width: 8px 8px 8px 0;\n border-right-color: initial;\n }\n\n .tippy-box[data-inertia][data-state=visible] {\n transition-timing-function: cubic-bezier(.54, 1.5, .38, 1.11);\n }\n\n .tippy-box.large { font-size: 16px; padding: 8px 12px; }\n .tippy-arrow { width: 16px; height: 16px; color: var(--nile-tooltip-color-background, var(--ng-colors-bg-primary-solid)); }\n .tippy-arrow:before {\n content: "";\n position: absolute;\n border-color: transparent;\n border-style: solid;\n }\n\n .tippy-content {\n position: relative;\n padding: 2px 6px;\n z-index: 1;\n }\n\t\t.tippy-box[data-placement^=top]>.tippy-svg-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-svg-arrow:after,.tippy-box[data-placement^=top]>.tippy-svg-arrow>svg{top:16px;transform:rotate(180deg)}.tippy-box[data-placement^=bottom]>.tippy-svg-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-svg-arrow>svg{bottom:16px}.tippy-box[data-placement^=left]>.tippy-svg-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-svg-arrow:after,.tippy-box[data-placement^=left]>.tippy-svg-arrow>svg{transform:rotate(90deg);top:calc(50% - 3px);left:11px}.tippy-box[data-placement^=right]>.tippy-svg-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-svg-arrow:after,.tippy-box[data-placement^=right]>.tippy-svg-arrow>svg{transform:rotate(-90deg);top:calc(50% - 3px);right:11px}.tippy-svg-arrow{width:16px;height:16px;fill:var(--nile-tooltip-color-background, var(--ng-colors-bg-primary-solid));;text-align:initial}.tippy-svg-arrow,.tippy-svg-arrow>svg{position:absolute}\n ',document.head.appendChild(t)}firstUpdated(){this.attachTooltip()}attachTooltip(){if(this.destroyTooltips(),this.disabled)return;const e={content:this.content||this.getAttribute("data-tippy-content")||void 0,placement:this.placement,trigger:this.trigger,offset:[this.skidding,this.distance],theme:"lite",animation:"fade",interactive:this.interactive,arrow:dm,duration:Ow(this.duration),allowHTML:this.allowHTML,delay:this.delay,maxWidth:this.maxWidth,zIndex:this.zIndex,hideOnClick:!1,inertia:this.inertia,interactiveBorder:this.interactiveBorder,appendTo:document.body,followCursor:Aw(this.followCursor),plugins:Aw(this.followCursor)?[yw]:[],onShow:e=>{this.open=!0,this.dispatchEvent(new CustomEvent("nile-show",{detail:{instance:e,target:e.reference}})),this.dispatchEvent(new CustomEvent("nile-toggle",{detail:{open:!0,instance:e,target:e.reference}}))},onHide:e=>{this.open=!1,this.dispatchEvent(new CustomEvent("nile-hide",{detail:{instance:e,target:e.reference}})),this.dispatchEvent(new CustomEvent("nile-toggle",{detail:{open:!1,instance:e,target:e.reference}}))}};if(this.for){if(this.targetEl=document.getElementById(this.for),!this.targetEl)return;this.id||(this.generatedId=`nile-tooltip-${Math.random().toString(36).slice(2,9)}`,this.id=this.generatedId),this.prevDescribedby=this.targetEl.getAttribute("aria-describedby");const t=this.prevDescribedby?`${this.prevDescribedby} ${this.id}`:this.id;return this.targetEl.setAttribute("aria-describedby",t),this.singleInstance=Iw(this.targetEl,e),this.size&&this.singleInstance.popper.querySelector(".tippy-box")?.classList.add(this.size),void(this.open&&queueMicrotask((()=>this.singleInstance?.show())))}const t=Array.from(this.querySelectorAll("*"));t.length>0&&(this.tooltipInstances=t.map((t=>{const i=t,M=i.getAttribute("content")||this.content,n=Iw(i,{...e,content:M});return n.popper.querySelector(".tippy-box")?.classList.add(this.size),n})),this.singleton&&this.tooltipInstances.length>1&&(this.singletonInstance=function(e,t){var i;void 0===t&&(t={}),"production"!==process.env.NODE_ENV&&ew(!Array.isArray(e),["The first argument passed to createSingleton() must be an array of","tippy instances. The passed value was",String(e)].join(" "));var M,n=e,o=[],r=[],s=t.overrides,a=[],N=!1;function l(){r=n.map((function(e){return mm(e.props.triggerTarget||e.reference)})).reduce((function(e,t){return e.concat(t)}),[])}function g(){o=n.map((function(e){return e.reference}))}function u(e){n.forEach((function(t){e?t.enable():t.disable()}))}function D(e){return n.map((function(t){var i=t.setProps;return t.setProps=function(n){i(n),t.reference===M&&e.setProps(n)},function(){t.setProps=i}}))}function c(e,t){var i=r.indexOf(t);if(t!==M){M=t;var a=(s||[]).concat("content").reduce((function(e,t){return e[t]=n[i].props[t],e}),{});e.setProps(Object.assign({},a,{getReferenceClientRect:"function"==typeof a.getReferenceClientRect?a.getReferenceClientRect:function(){var e;return null==(e=o[i])?void 0:e.getBoundingClientRect()}}))}}u(!1),g(),l();var j={fn:function(){return{onDestroy:function(){u(!0)},onHidden:function(){M=null},onClickOutside:function(e){e.props.showOnCreate&&!N&&(N=!0,M=null)},onShow:function(e){e.props.showOnCreate&&!N&&(N=!0,c(e,o[0]))},onTrigger:function(e,t){c(e,t.currentTarget)}}}},I=Iw(Cm(),Object.assign({},Em(t,["overrides"]),{plugins:[j].concat(t.plugins||[]),triggerTarget:r,popperOptions:Object.assign({},t.popperOptions,{modifiers:[].concat((null==(i=t.popperOptions)?void 0:i.modifiers)||[],[zw])})})),z=I.show;I.show=function(e){if(z(),!M&&null==e)return c(I,o[0]);if(!M||null!=e){if("number"==typeof e)return o[e]&&c(I,o[e]);if(n.indexOf(e)>=0){var t=e.reference;return c(I,t)}return o.indexOf(e)>=0?c(I,e):void 0}},I.showNext=function(){var e=o[0];if(!M)return I.show(0);var t=o.indexOf(M);I.show(o[t+1]||e)},I.showPrevious=function(){var e=o[o.length-1];if(!M)return I.show(e);var t=o.indexOf(M),i=o[t-1]||e;I.show(i)};var d=I.setProps;return I.setProps=function(e){s=e.overrides||s,d(e)},I.setInstances=function(e){u(!0),a.forEach((function(e){return e()})),n=e,u(!1),g(),l(),a=D(I),I.setProps({triggerTarget:r})},a=D(I),I}(this.tooltipInstances,{delay:[75,0],arrow:dm,moveTransition:"transform 0.15s ease-out"})),this.open&&(this.singletonInstance?this.singletonInstance.show():this.tooltipInstances.forEach((e=>e.show()))))}destroyTooltips(){if(this.tooltipInstances?.forEach((e=>e.destroy())),this.singleInstance?.destroy(),this.singletonInstance?.destroy(),this.tooltipInstances=void 0,this.singleInstance=void 0,this.singletonInstance=void 0,this.targetEl&&this.id){const e=this.targetEl.getAttribute("aria-describedby")?.split(" ").filter((e=>e!==this.id)).join(" ").trim();e?this.targetEl.setAttribute("aria-describedby",e):this.targetEl.removeAttribute("aria-describedby")}}disconnectedCallback(){super.disconnectedCallback(),this.destroyTooltips()}updated(e){super.updated(e),["for","content","placement","distance","skidding","trigger","disabled","hoist","size","arrow","singleton"].some((t=>e.has(t)))&&this.attachTooltip(),e.has("open")&&(this.open?(this.singleInstance?.show(),this.singletonInstance?.show(),this.tooltipInstances?.forEach((e=>e.show()))):(this.singleInstance?.hide(),this.singletonInstance?.hide(),this.tooltipInstances?.forEach((e=>e.hide()))))}};e([De({type:String,attribute:"for"})],Lw.prototype,"for",void 0),e([De({type:String,reflect:!0})],Lw.prototype,"content",void 0),e([De({type:String,reflect:!0})],Lw.prototype,"size",void 0),e([De({type:String,reflect:!0})],Lw.prototype,"duration",void 0),e([De({type:Boolean,reflect:!0})],Lw.prototype,"interactive",void 0),e([De({type:String})],Lw.prototype,"placement",void 0),e([De({type:Boolean})],Lw.prototype,"disabled",void 0),e([De({type:Number})],Lw.prototype,"distance",void 0),e([De({type:Number})],Lw.prototype,"skidding",void 0),e([De({type:Boolean,reflect:!0})],Lw.prototype,"open",void 0),e([De({type:String})],Lw.prototype,"trigger",void 0),e([De({type:Boolean,reflect:!0})],Lw.prototype,"allowHTML",void 0),e([De({type:String,reflect:!0,attribute:!0})],Lw.prototype,"followCursor",void 0),e([De({type:String,reflect:!0,attribute:!0})],Lw.prototype,"arrow",void 0),e([De({type:Boolean,reflect:!0})],Lw.prototype,"singleton",void 0),e([De({type:String,reflect:!0})],Lw.prototype,"delay",void 0),e([De({type:String,reflect:!0})],Lw.prototype,"maxWidth",void 0),e([De({type:Number})],Lw.prototype,"zIndex",void 0),e([De({type:[Boolean,String],reflect:!0})],Lw.prototype,"hideOnClick",void 0),e([De({type:Boolean,reflect:!0})],Lw.prototype,"inertia",void 0),e([De({type:Number})],Lw.prototype,"interactiveBorder",void 0),Lw=e([le("nile-lite-tooltip")],Lw);
|
|
15274
|
+
`;var KS="top",eE="bottom",tE="right",iE="left",ME="auto",nE=[KS,eE,tE,iE],oE="start",rE="end",sE="viewport",aE="popper",NE=nE.reduce((function(e,t){return e.concat([t+"-"+oE,t+"-"+rE])}),[]),lE=[].concat(nE,[ME]).reduce((function(e,t){return e.concat([t,t+"-"+oE,t+"-"+rE])}),[]),gE=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function uE(e){return e?(e.nodeName||"").toLowerCase():null}function DE(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function cE(e){return e instanceof DE(e).Element||e instanceof Element}function jE(e){return e instanceof DE(e).HTMLElement||e instanceof HTMLElement}function IE(e){return"undefined"!=typeof ShadowRoot&&(e instanceof DE(e).ShadowRoot||e instanceof ShadowRoot)}var zE={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var i=t.styles[e]||{},M=t.attributes[e]||{},n=t.elements[e];jE(n)&&uE(n)&&(Object.assign(n.style,i),Object.keys(M).forEach((function(e){var t=M[e];!1===t?n.removeAttribute(e):n.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach((function(e){var M=t.elements[e],n=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:i[e]).reduce((function(e,t){return e[t]="",e}),{});jE(M)&&uE(M)&&(Object.assign(M.style,o),Object.keys(n).forEach((function(e){M.removeAttribute(e)})))}))}},requires:["computeStyles"]};function dE(e){return e.split("-")[0]}var TE=Math.max,hE=Math.min,yE=Math.round;function AE(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function OE(){return!/^((?!chrome|android).)*safari/i.test(AE())}function LE(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!1);var M=e.getBoundingClientRect(),n=1,o=1;t&&jE(e)&&(n=e.offsetWidth>0&&yE(M.width)/e.offsetWidth||1,o=e.offsetHeight>0&&yE(M.height)/e.offsetHeight||1);var r=(cE(e)?DE(e):window).visualViewport,s=!OE()&&i,a=(M.left+(s&&r?r.offsetLeft:0))/n,N=(M.top+(s&&r?r.offsetTop:0))/o,l=M.width/n,g=M.height/o;return{width:l,height:g,top:N,right:a+l,bottom:N+g,left:a,x:a,y:N}}function xE(e){var t=LE(e),i=e.offsetWidth,M=e.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-M)<=1&&(M=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:M}}function pE(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&IE(i)){var M=t;do{if(M&&e.isSameNode(M))return!0;M=M.parentNode||M.host}while(M)}return!1}function SE(e){return DE(e).getComputedStyle(e)}function EE(e){return["table","td","th"].indexOf(uE(e))>=0}function mE(e){return((cE(e)?e.ownerDocument:e.document)||window.document).documentElement}function wE(e){return"html"===uE(e)?e:e.assignedSlot||e.parentNode||(IE(e)?e.host:null)||mE(e)}function QE(e){return jE(e)&&"fixed"!==SE(e).position?e.offsetParent:null}function kE(e){for(var t=DE(e),i=QE(e);i&&EE(i)&&"static"===SE(i).position;)i=QE(i);return i&&("html"===uE(i)||"body"===uE(i)&&"static"===SE(i).position)?t:i||function(e){var t=/firefox/i.test(AE());if(/Trident/i.test(AE())&&jE(e)&&"fixed"===SE(e).position)return null;var i=wE(e);for(IE(i)&&(i=i.host);jE(i)&&["html","body"].indexOf(uE(i))<0;){var M=SE(i);if("none"!==M.transform||"none"!==M.perspective||"paint"===M.contain||-1!==["transform","perspective"].indexOf(M.willChange)||t&&"filter"===M.willChange||t&&M.filter&&"none"!==M.filter)return i;i=i.parentNode}return null}(e)||t}function CE(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function bE(e,t,i){return TE(e,hE(t,i))}function fE(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function UE(e,t){return t.reduce((function(t,i){return t[i]=e,t}),{})}var vE={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,i=e.state,M=e.name,n=e.options,o=i.elements.arrow,r=i.modifiersData.popperOffsets,s=dE(i.placement),a=CE(s),N=[iE,tE].indexOf(s)>=0?"height":"width";if(o&&r){var l=function(e,t){return fE("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:UE(e,nE))}(n.padding,i),g=xE(o),u="y"===a?KS:iE,D="y"===a?eE:tE,c=i.rects.reference[N]+i.rects.reference[a]-r[a]-i.rects.popper[N],j=r[a]-i.rects.reference[a],I=kE(o),z=I?"y"===a?I.clientHeight||0:I.clientWidth||0:0,d=c/2-j/2,T=l[u],h=z-g[N]-l[D],y=z/2-g[N]/2+d,A=bE(T,y,h),O=a;i.modifiersData[M]=((t={})[O]=A,t.centerOffset=A-y,t)}},effect:function(e){var t=e.state,i=e.options.element,M=void 0===i?"[data-popper-arrow]":i;null!=M&&("string"!=typeof M||(M=t.elements.popper.querySelector(M)))&&pE(t.elements.popper,M)&&(t.elements.arrow=M)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function YE(e){return e.split("-")[1]}var ZE={top:"auto",right:"auto",bottom:"auto",left:"auto"};function VE(e){var t,i=e.popper,M=e.popperRect,n=e.placement,o=e.variation,r=e.offsets,s=e.position,a=e.gpuAcceleration,N=e.adaptive,l=e.roundOffsets,g=e.isFixed,u=r.x,D=void 0===u?0:u,c=r.y,j=void 0===c?0:c,I="function"==typeof l?l({x:D,y:j}):{x:D,y:j};D=I.x,j=I.y;var z=r.hasOwnProperty("x"),d=r.hasOwnProperty("y"),T=iE,h=KS,y=window;if(N){var A=kE(i),O="clientHeight",L="clientWidth";if(A===DE(i)&&"static"!==SE(A=mE(i)).position&&"absolute"===s&&(O="scrollHeight",L="scrollWidth"),n===KS||(n===iE||n===tE)&&o===rE)h=eE,j-=(g&&A===y&&y.visualViewport?y.visualViewport.height:A[O])-M.height,j*=a?1:-1;if(n===iE||(n===KS||n===eE)&&o===rE)T=tE,D-=(g&&A===y&&y.visualViewport?y.visualViewport.width:A[L])-M.width,D*=a?1:-1}var x,p=Object.assign({position:s},N&&ZE),S=!0===l?function(e,t){var i=e.x,M=e.y,n=t.devicePixelRatio||1;return{x:yE(i*n)/n||0,y:yE(M*n)/n||0}}({x:D,y:j},DE(i)):{x:D,y:j};return D=S.x,j=S.y,a?Object.assign({},p,((x={})[h]=d?"0":"",x[T]=z?"0":"",x.transform=(y.devicePixelRatio||1)<=1?"translate("+D+"px, "+j+"px)":"translate3d("+D+"px, "+j+"px, 0)",x)):Object.assign({},p,((t={})[h]=d?j+"px":"",t[T]=z?D+"px":"",t.transform="",t))}var WE={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,i=e.options,M=i.gpuAcceleration,n=void 0===M||M,o=i.adaptive,r=void 0===o||o,s=i.roundOffsets,a=void 0===s||s,N={placement:dE(t.placement),variation:YE(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,VE(Object.assign({},N,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:a})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,VE(Object.assign({},N,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},PE={passive:!0};var RE={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,i=e.instance,M=e.options,n=M.scroll,o=void 0===n||n,r=M.resize,s=void 0===r||r,a=DE(t.elements.popper),N=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&N.forEach((function(e){e.addEventListener("scroll",i.update,PE)})),s&&a.addEventListener("resize",i.update,PE),function(){o&&N.forEach((function(e){e.removeEventListener("scroll",i.update,PE)})),s&&a.removeEventListener("resize",i.update,PE)}},data:{}},GE={left:"right",right:"left",bottom:"top",top:"bottom"};function BE(e){return e.replace(/left|right|bottom|top/g,(function(e){return GE[e]}))}var _E={start:"end",end:"start"};function FE(e){return e.replace(/start|end/g,(function(e){return _E[e]}))}function HE(e){var t=DE(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function JE(e){return LE(mE(e)).left+HE(e).scrollLeft}function $E(e){var t=SE(e),i=t.overflow,M=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+n+M)}function XE(e){return["html","body","#document"].indexOf(uE(e))>=0?e.ownerDocument.body:jE(e)&&$E(e)?e:XE(wE(e))}function qE(e,t){var i;void 0===t&&(t=[]);var M=XE(e),n=M===(null==(i=e.ownerDocument)?void 0:i.body),o=DE(M),r=n?[o].concat(o.visualViewport||[],$E(M)?M:[]):M,s=t.concat(r);return n?s:s.concat(qE(wE(r)))}function KE(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function em(e,t,i){return t===sE?KE(function(e,t){var i=DE(e),M=mE(e),n=i.visualViewport,o=M.clientWidth,r=M.clientHeight,s=0,a=0;if(n){o=n.width,r=n.height;var N=OE();(N||!N&&"fixed"===t)&&(s=n.offsetLeft,a=n.offsetTop)}return{width:o,height:r,x:s+JE(e),y:a}}(e,i)):cE(t)?function(e,t){var i=LE(e,!1,"fixed"===t);return i.top=i.top+e.clientTop,i.left=i.left+e.clientLeft,i.bottom=i.top+e.clientHeight,i.right=i.left+e.clientWidth,i.width=e.clientWidth,i.height=e.clientHeight,i.x=i.left,i.y=i.top,i}(t,i):KE(function(e){var t,i=mE(e),M=HE(e),n=null==(t=e.ownerDocument)?void 0:t.body,o=TE(i.scrollWidth,i.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),r=TE(i.scrollHeight,i.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),s=-M.scrollLeft+JE(e),a=-M.scrollTop;return"rtl"===SE(n||i).direction&&(s+=TE(i.clientWidth,n?n.clientWidth:0)-o),{width:o,height:r,x:s,y:a}}(mE(e)))}function tm(e,t,i,M){var n="clippingParents"===t?function(e){var t=qE(wE(e)),i=["absolute","fixed"].indexOf(SE(e).position)>=0&&jE(e)?kE(e):e;return cE(i)?t.filter((function(e){return cE(e)&&pE(e,i)&&"body"!==uE(e)})):[]}(e):[].concat(t),o=[].concat(n,[i]),r=o[0],s=o.reduce((function(t,i){var n=em(e,i,M);return t.top=TE(n.top,t.top),t.right=hE(n.right,t.right),t.bottom=hE(n.bottom,t.bottom),t.left=TE(n.left,t.left),t}),em(e,r,M));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function im(e){var t,i=e.reference,M=e.element,n=e.placement,o=n?dE(n):null,r=n?YE(n):null,s=i.x+i.width/2-M.width/2,a=i.y+i.height/2-M.height/2;switch(o){case KS:t={x:s,y:i.y-M.height};break;case eE:t={x:s,y:i.y+i.height};break;case tE:t={x:i.x+i.width,y:a};break;case iE:t={x:i.x-M.width,y:a};break;default:t={x:i.x,y:i.y}}var N=o?CE(o):null;if(null!=N){var l="y"===N?"height":"width";switch(r){case oE:t[N]=t[N]-(i[l]/2-M[l]/2);break;case rE:t[N]=t[N]+(i[l]/2-M[l]/2)}}return t}function Mm(e,t){void 0===t&&(t={});var i=t,M=i.placement,n=void 0===M?e.placement:M,o=i.strategy,r=void 0===o?e.strategy:o,s=i.boundary,a=void 0===s?"clippingParents":s,N=i.rootBoundary,l=void 0===N?sE:N,g=i.elementContext,u=void 0===g?aE:g,D=i.altBoundary,c=void 0!==D&&D,j=i.padding,I=void 0===j?0:j,z=fE("number"!=typeof I?I:UE(I,nE)),d=u===aE?"reference":aE,T=e.rects.popper,h=e.elements[c?d:u],y=tm(cE(h)?h:h.contextElement||mE(e.elements.popper),a,l,r),A=LE(e.elements.reference),O=im({reference:A,element:T,strategy:"absolute",placement:n}),L=KE(Object.assign({},T,O)),x=u===aE?L:A,p={top:y.top-x.top+z.top,bottom:x.bottom-y.bottom+z.bottom,left:y.left-x.left+z.left,right:x.right-y.right+z.right},S=e.modifiersData.offset;if(u===aE&&S){var E=S[n];Object.keys(p).forEach((function(e){var t=[tE,eE].indexOf(e)>=0?1:-1,i=[KS,eE].indexOf(e)>=0?"y":"x";p[e]+=E[i]*t}))}return p}function nm(e,t){void 0===t&&(t={});var i=t,M=i.placement,n=i.boundary,o=i.rootBoundary,r=i.padding,s=i.flipVariations,a=i.allowedAutoPlacements,N=void 0===a?lE:a,l=YE(M),g=l?s?NE:NE.filter((function(e){return YE(e)===l})):nE,u=g.filter((function(e){return N.indexOf(e)>=0}));0===u.length&&(u=g);var D=u.reduce((function(t,i){return t[i]=Mm(e,{placement:i,boundary:n,rootBoundary:o,padding:r})[dE(i)],t}),{});return Object.keys(D).sort((function(e,t){return D[e]-D[t]}))}var om={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,M=e.name;if(!t.modifiersData[M]._skip){for(var n=i.mainAxis,o=void 0===n||n,r=i.altAxis,s=void 0===r||r,a=i.fallbackPlacements,N=i.padding,l=i.boundary,g=i.rootBoundary,u=i.altBoundary,D=i.flipVariations,c=void 0===D||D,j=i.allowedAutoPlacements,I=t.options.placement,z=dE(I),d=a||(z===I||!c?[BE(I)]:function(e){if(dE(e)===ME)return[];var t=BE(e);return[FE(e),t,FE(t)]}(I)),T=[I].concat(d).reduce((function(e,i){return e.concat(dE(i)===ME?nm(t,{placement:i,boundary:l,rootBoundary:g,padding:N,flipVariations:c,allowedAutoPlacements:j}):i)}),[]),h=t.rects.reference,y=t.rects.popper,A=new Map,O=!0,L=T[0],x=0;x<T.length;x++){var p=T[x],S=dE(p),E=YE(p)===oE,m=[KS,eE].indexOf(S)>=0,w=m?"width":"height",Q=Mm(t,{placement:p,boundary:l,rootBoundary:g,altBoundary:u,padding:N}),k=m?E?tE:iE:E?eE:KS;h[w]>y[w]&&(k=BE(k));var C=BE(k),b=[];if(o&&b.push(Q[S]<=0),s&&b.push(Q[k]<=0,Q[C]<=0),b.every((function(e){return e}))){L=p,O=!1;break}A.set(p,b)}if(O)for(var f=function(e){var t=T.find((function(t){var i=A.get(t);if(i)return i.slice(0,e).every((function(e){return e}))}));if(t)return L=t,"break"},U=c?3:1;U>0;U--){if("break"===f(U))break}t.placement!==L&&(t.modifiersData[M]._skip=!0,t.placement=L,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function rm(e,t,i){return void 0===i&&(i={x:0,y:0}),{top:e.top-t.height-i.y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}function sm(e){return[KS,tE,eE,iE].some((function(t){return e[t]>=0}))}var am={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,i=e.name,M=t.rects.reference,n=t.rects.popper,o=t.modifiersData.preventOverflow,r=Mm(t,{elementContext:"reference"}),s=Mm(t,{altBoundary:!0}),a=rm(r,M),N=rm(s,n,o),l=sm(a),g=sm(N);t.modifiersData[i]={referenceClippingOffsets:a,popperEscapeOffsets:N,isReferenceHidden:l,hasPopperEscaped:g},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":g})}};var Nm={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,i=e.options,M=e.name,n=i.offset,o=void 0===n?[0,0]:n,r=lE.reduce((function(e,i){return e[i]=function(e,t,i){var M=dE(e),n=[iE,KS].indexOf(M)>=0?-1:1,o="function"==typeof i?i(Object.assign({},t,{placement:e})):i,r=o[0],s=o[1];return r=r||0,s=(s||0)*n,[iE,tE].indexOf(M)>=0?{x:s,y:r}:{x:r,y:s}}(i,t.rects,o),e}),{}),s=r[t.placement],a=s.x,N=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=a,t.modifiersData.popperOffsets.y+=N),t.modifiersData[M]=r}};var lm={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,i=e.name;t.modifiersData[i]=im({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var gm={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,M=e.name,n=i.mainAxis,o=void 0===n||n,r=i.altAxis,s=void 0!==r&&r,a=i.boundary,N=i.rootBoundary,l=i.altBoundary,g=i.padding,u=i.tether,D=void 0===u||u,c=i.tetherOffset,j=void 0===c?0:c,I=Mm(t,{boundary:a,rootBoundary:N,padding:g,altBoundary:l}),z=dE(t.placement),d=YE(t.placement),T=!d,h=CE(z),y="x"===h?"y":"x",A=t.modifiersData.popperOffsets,O=t.rects.reference,L=t.rects.popper,x="function"==typeof j?j(Object.assign({},t.rects,{placement:t.placement})):j,p="number"==typeof x?{mainAxis:x,altAxis:x}:Object.assign({mainAxis:0,altAxis:0},x),S=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,E={x:0,y:0};if(A){if(o){var m,w="y"===h?KS:iE,Q="y"===h?eE:tE,k="y"===h?"height":"width",C=A[h],b=C+I[w],f=C-I[Q],U=D?-L[k]/2:0,v=d===oE?O[k]:L[k],Y=d===oE?-L[k]:-O[k],Z=t.elements.arrow,V=D&&Z?xE(Z):{width:0,height:0},W=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},P=W[w],R=W[Q],G=bE(0,O[k],V[k]),B=T?O[k]/2-U-G-P-p.mainAxis:v-G-P-p.mainAxis,_=T?-O[k]/2+U+G+R+p.mainAxis:Y+G+R+p.mainAxis,F=t.elements.arrow&&kE(t.elements.arrow),H=F?"y"===h?F.clientTop||0:F.clientLeft||0:0,J=null!=(m=null==S?void 0:S[h])?m:0,$=C+_-J,X=bE(D?hE(b,C+B-J-H):b,C,D?TE(f,$):f);A[h]=X,E[h]=X-C}if(s){var q,K="x"===h?KS:iE,ee="x"===h?eE:tE,te=A[y],ie="y"===y?"height":"width",Me=te+I[K],ne=te-I[ee],oe=-1!==[KS,iE].indexOf(z),re=null!=(q=null==S?void 0:S[y])?q:0,se=oe?Me:te-O[ie]-L[ie]-re+p.altAxis,ae=oe?te+O[ie]+L[ie]-re-p.altAxis:ne,Ne=D&&oe?function(e,t,i){var M=bE(e,t,i);return M>i?i:M}(se,te,ae):bE(D?se:Me,te,D?ae:ne);A[y]=Ne,E[y]=Ne-te}t.modifiersData[M]=E}},requiresIfExists:["offset"]};function um(e,t,i){void 0===i&&(i=!1);var M,n,o=jE(t),r=jE(t)&&function(e){var t=e.getBoundingClientRect(),i=yE(t.width)/e.offsetWidth||1,M=yE(t.height)/e.offsetHeight||1;return 1!==i||1!==M}(t),s=mE(t),a=LE(e,r,i),N={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(o||!o&&!i)&&(("body"!==uE(t)||$E(s))&&(N=(M=t)!==DE(M)&&jE(M)?{scrollLeft:(n=M).scrollLeft,scrollTop:n.scrollTop}:HE(M)),jE(t)?((l=LE(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=JE(s))),{x:a.left+N.scrollLeft-l.x,y:a.top+N.scrollTop-l.y,width:a.width,height:a.height}}function Dm(e){var t=new Map,i=new Set,M=[];function n(e){i.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!i.has(e)){var M=t.get(e);M&&n(M)}})),M.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){i.has(e.name)||n(e)})),M}var cm={placement:"bottom",modifiers:[],strategy:"absolute"};function jm(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function Im(e){void 0===e&&(e={});var t=e,i=t.defaultModifiers,M=void 0===i?[]:i,n=t.defaultOptions,o=void 0===n?cm:n;return function(e,t,i){void 0===i&&(i=o);var n,r,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},cm,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],N=!1,l={state:s,setOptions:function(i){var n="function"==typeof i?i(s.options):i;g(),s.options=Object.assign({},o,s.options,n),s.scrollParents={reference:cE(e)?qE(e):e.contextElement?qE(e.contextElement):[],popper:qE(t)};var r=function(e){var t=Dm(e);return gE.reduce((function(e,i){return e.concat(t.filter((function(e){return e.phase===i})))}),[])}(function(e){var t=e.reduce((function(e,t){var i=e[t.name];return e[t.name]=i?Object.assign({},i,t,{options:Object.assign({},i.options,t.options),data:Object.assign({},i.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(M,s.options.modifiers)));return s.orderedModifiers=r.filter((function(e){return e.enabled})),s.orderedModifiers.forEach((function(e){var t=e.name,i=e.options,M=void 0===i?{}:i,n=e.effect;if("function"==typeof n){var o=n({state:s,name:t,instance:l,options:M}),r=function(){};a.push(o||r)}})),l.update()},forceUpdate:function(){if(!N){var e=s.elements,t=e.reference,i=e.popper;if(jm(t,i)){s.rects={reference:um(t,kE(i),"fixed"===s.options.strategy),popper:xE(i)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var M=0;M<s.orderedModifiers.length;M++)if(!0!==s.reset){var n=s.orderedModifiers[M],o=n.fn,r=n.options,a=void 0===r?{}:r,g=n.name;"function"==typeof o&&(s=o({state:s,options:a,name:g,instance:l})||s)}else s.reset=!1,M=-1}}},update:(n=function(){return new Promise((function(e){l.forceUpdate(),e(s)}))},function(){return r||(r=new Promise((function(e){Promise.resolve().then((function(){r=void 0,e(n())}))}))),r}),destroy:function(){g(),N=!0}};if(!jm(e,t))return l;function g(){a.forEach((function(e){return e()})),a=[]}return l.setOptions(i).then((function(e){!N&&i.onFirstUpdate&&i.onFirstUpdate(e)})),l}}var zm=Im({defaultModifiers:[RE,lm,WE,zE,Nm,om,gm,vE,am]}),dm='<svg width="16" height="6" xmlns="http://www.w3.org/2000/svg"><path d="M0 6s1.796-.013 4.67-3.615C5.851.9 6.93.006 8 0c1.07-.006 2.148.887 3.343 2.385C14.233 6.005 16 6 16 6H0z"></svg>',Tm="tippy-content",hm="tippy-arrow",ym="tippy-svg-arrow",Am={passive:!0,capture:!0},Om=function(){return document.body};function Lm(e,t,i){if(Array.isArray(e)){var M=e[t];return null==M?Array.isArray(i)?i[t]:i:M}return e}function xm(e,t){var i={}.toString.call(e);return 0===i.indexOf("[object")&&i.indexOf(t+"]")>-1}function pm(e,t){return"function"==typeof e?e.apply(void 0,t):e}function Sm(e,t){return 0===t?e:function(M){clearTimeout(i),i=setTimeout((function(){e(M)}),t)};var i}function Em(e,t){var i=Object.assign({},e);return t.forEach((function(e){delete i[e]})),i}function mm(e){return[].concat(e)}function wm(e,t){-1===e.indexOf(t)&&e.push(t)}function Qm(e){return[].slice.call(e)}function km(e){return Object.keys(e).reduce((function(t,i){return void 0!==e[i]&&(t[i]=e[i]),t}),{})}function Cm(){return document.createElement("div")}function bm(e){return["Element","Fragment"].some((function(t){return xm(e,t)}))}function fm(e){return xm(e,"MouseEvent")}function Um(e){return bm(e)?[e]:function(e){return xm(e,"NodeList")}(e)?Qm(e):Array.isArray(e)?e:Qm(document.querySelectorAll(e))}function vm(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function Ym(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function Zm(e){var t,i=mm(e)[0];return null!=i&&null!=(t=i.ownerDocument)&&t.body?i.ownerDocument:document}function Vm(e,t,i){var M=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[M](t,i)}))}function Wm(e,t){for(var i=t;i;){var M;if(e.contains(i))return!0;i=null==i.getRootNode||null==(M=i.getRootNode())?void 0:M.host}return!1}var Pm={isTouch:!1},Rm=0;function Gm(){Pm.isTouch||(Pm.isTouch=!0,window.performance&&document.addEventListener("mousemove",Bm))}function Bm(){var e=performance.now();e-Rm<20&&(Pm.isTouch=!1,document.removeEventListener("mousemove",Bm)),Rm=e}function _m(){var e,t=document.activeElement;if((e=t)&&e._tippy&&e._tippy.reference===e){var i=t._tippy;t.blur&&!i.state.isVisible&&t.blur()}}var Fm,Hm=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;function Jm(e){return[e+"() was called on a"+("destroy"===e?"n already-":" ")+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function $m(e){return e.replace(/[ \t]{2,}/g," ").replace(/^[ \t]*/gm,"").trim()}function Xm(e){return $m("\n %ctippy.js\n\n %c"+$m(e)+"\n\n %c👷 This is a development-only message. It will be removed in production.\n ")}function qm(e){return[Xm(e),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}function Km(e,t){var i;e&&!Fm.has(t)&&(Fm.add(t),(i=console).warn.apply(i,qm(t)))}function ew(e,t){var i;e&&!Fm.has(t)&&(Fm.add(t),(i=console).error.apply(i,qm(t)))}"production"!==process.env.NODE_ENV&&(Fm=new Set);var tw={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},iw=Object.assign({appendTo:Om,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},tw,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Mw=Object.keys(iw);function nw(e){var t=(e.plugins||[]).reduce((function(t,i){var M,n=i.name,o=i.defaultValue;n&&(t[n]=void 0!==e[n]?e[n]:null!=(M=iw[n])?M:o);return t}),{});return Object.assign({},e,t)}function ow(e,t){var i=Object.assign({},t,{content:pm(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(nw(Object.assign({},iw,{plugins:t}))):Mw).reduce((function(t,i){var M=(e.getAttribute("data-tippy-"+i)||"").trim();if(!M)return t;if("content"===i)t[i]=M;else try{t[i]=JSON.parse(M)}catch(e){t[i]=M}return t}),{})}(e,t.plugins));return i.aria=Object.assign({},iw.aria,i.aria),i.aria={expanded:"auto"===i.aria.expanded?t.interactive:i.aria.expanded,content:"auto"===i.aria.content?t.interactive?null:"describedby":i.aria.content},i}function rw(e,t){void 0===e&&(e={}),void 0===t&&(t=[]),Object.keys(e).forEach((function(e){var i,M,n=Em(iw,Object.keys(tw)),o=(i=n,M=e,!{}.hasOwnProperty.call(i,M));o&&(o=0===t.filter((function(t){return t.name===e})).length),Km(o,["`"+e+"`","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.","\n\n","All props: https://atomiks.github.io/tippyjs/v6/all-props/\n","Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))}))}function sw(e,t){e.innerHTML=t}function aw(e){var t=Cm();return!0===e?t.className=hm:(t.className=ym,bm(e)?t.appendChild(e):sw(t,e)),t}function Nw(e,t){bm(t.content)?(sw(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?sw(e,t.content):e.textContent=t.content)}function lw(e){var t=e.firstElementChild,i=Qm(t.children);return{box:t,content:i.find((function(e){return e.classList.contains(Tm)})),arrow:i.find((function(e){return e.classList.contains(hm)||e.classList.contains(ym)})),backdrop:i.find((function(e){return e.classList.contains("tippy-backdrop")}))}}function gw(e){var t=Cm(),i=Cm();i.className="tippy-box",i.setAttribute("data-state","hidden"),i.setAttribute("tabindex","-1");var M=Cm();function n(i,M){var n=lw(t),o=n.box,r=n.content,s=n.arrow;M.theme?o.setAttribute("data-theme",M.theme):o.removeAttribute("data-theme"),"string"==typeof M.animation?o.setAttribute("data-animation",M.animation):o.removeAttribute("data-animation"),M.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof M.maxWidth?M.maxWidth+"px":M.maxWidth,M.role?o.setAttribute("role",M.role):o.removeAttribute("role"),i.content===M.content&&i.allowHTML===M.allowHTML||Nw(r,e.props),M.arrow?s?i.arrow!==M.arrow&&(o.removeChild(s),o.appendChild(aw(M.arrow))):o.appendChild(aw(M.arrow)):s&&o.removeChild(s)}return M.className=Tm,M.setAttribute("data-state","hidden"),Nw(M,e.props),t.appendChild(i),i.appendChild(M),n(e.props,e.props),{popper:t,onUpdate:n}}gw.$$tippy=!0;var uw=1,Dw=[],cw=[];function jw(e,t){var i,M,n,o,r,s,a,N,l=ow(e,Object.assign({},iw,nw(km(t)))),g=!1,u=!1,D=!1,c=!1,j=[],I=Sm(F,l.interactiveDebounce),z=uw++,d=(N=l.plugins).filter((function(e,t){return N.indexOf(e)===t})),T={id:z,reference:e,popper:Cm(),popperInstance:null,props:l,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:d,clearDelayTimeouts:function(){clearTimeout(i),clearTimeout(M),cancelAnimationFrame(n)},setProps:function(t){"production"!==process.env.NODE_ENV&&Km(T.state.isDestroyed,Jm("setProps"));if(T.state.isDestroyed)return;C("onBeforeUpdate",[T,t]),B();var i=T.props,M=ow(e,Object.assign({},i,km(t),{ignoreAttributes:!0}));T.props=M,G(),i.interactiveDebounce!==M.interactiveDebounce&&(U(),I=Sm(F,M.interactiveDebounce));i.triggerTarget&&!M.triggerTarget?mm(i.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):M.triggerTarget&&e.removeAttribute("aria-expanded");f(),k(),A&&A(i,M);T.popperInstance&&(X(),K().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));C("onAfterUpdate",[T,t])},setContent:function(e){T.setProps({content:e})},show:function(){"production"!==process.env.NODE_ENV&&Km(T.state.isDestroyed,Jm("show"));var e=T.state.isVisible,t=T.state.isDestroyed,i=!T.state.isEnabled,M=Pm.isTouch&&!T.props.touch,n=Lm(T.props.duration,0,iw.duration);if(e||t||i||M)return;if(E().hasAttribute("disabled"))return;if(C("onShow",[T],!1),!1===T.props.onShow(T))return;T.state.isVisible=!0,S()&&(y.style.visibility="visible");k(),V(),T.state.isMounted||(y.style.transition="none");if(S()){var o=w();vm([o.box,o.content],0)}s=function(){var e;if(T.state.isVisible&&!c){if(c=!0,y.offsetHeight,y.style.transition=T.props.moveTransition,S()&&T.props.animation){var t=w(),i=t.box,M=t.content;vm([i,M],n),Ym([i,M],"visible")}b(),f(),wm(cw,T),null==(e=T.popperInstance)||e.forceUpdate(),C("onMount",[T]),T.props.animation&&S()&&function(e,t){P(e,t)}(n,(function(){T.state.isShown=!0,C("onShown",[T])}))}},function(){var e,t=T.props.appendTo,i=E();e=T.props.interactive&&t===Om||"parent"===t?i.parentNode:pm(t,[i]);e.contains(y)||e.appendChild(y);T.state.isMounted=!0,X(),"production"!==process.env.NODE_ENV&&Km(T.props.interactive&&t===iw.appendTo&&i.nextElementSibling!==y,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.","\n\n","Using a wrapper <div> or <span> tag around the reference element","solves this by creating a new parentNode context.","\n\n","Specifying `appendTo: document.body` silences this warning, but it","assumes you are using a focus management solution to handle","keyboard navigation.","\n\n","See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}()},hide:function(){"production"!==process.env.NODE_ENV&&Km(T.state.isDestroyed,Jm("hide"));var e=!T.state.isVisible,t=T.state.isDestroyed,i=!T.state.isEnabled,M=Lm(T.props.duration,1,iw.duration);if(e||t||i)return;if(C("onHide",[T],!1),!1===T.props.onHide(T))return;T.state.isVisible=!1,T.state.isShown=!1,c=!1,g=!1,S()&&(y.style.visibility="hidden");if(U(),W(),k(!0),S()){var n=w(),o=n.box,r=n.content;T.props.animation&&(vm([o,r],M),Ym([o,r],"hidden"))}b(),f(),T.props.animation?S()&&function(e,t){P(e,(function(){!T.state.isVisible&&y.parentNode&&y.parentNode.contains(y)&&t()}))}(M,T.unmount):T.unmount()},hideWithInteractivity:function(e){"production"!==process.env.NODE_ENV&&Km(T.state.isDestroyed,Jm("hideWithInteractivity"));m().addEventListener("mousemove",I),wm(Dw,I),I(e)},enable:function(){T.state.isEnabled=!0},disable:function(){T.hide(),T.state.isEnabled=!1},unmount:function(){"production"!==process.env.NODE_ENV&&Km(T.state.isDestroyed,Jm("unmount"));T.state.isVisible&&T.hide();if(!T.state.isMounted)return;q(),K().forEach((function(e){e._tippy.unmount()})),y.parentNode&&y.parentNode.removeChild(y);cw=cw.filter((function(e){return e!==T})),T.state.isMounted=!1,C("onHidden",[T])},destroy:function(){"production"!==process.env.NODE_ENV&&Km(T.state.isDestroyed,Jm("destroy"));if(T.state.isDestroyed)return;T.clearDelayTimeouts(),T.unmount(),B(),delete e._tippy,T.state.isDestroyed=!0,C("onDestroy",[T])}};if(!l.render)return"production"!==process.env.NODE_ENV&&ew(!0,"render() function has not been supplied."),T;var h=l.render(T),y=h.popper,A=h.onUpdate;y.setAttribute("data-tippy-root",""),y.id="tippy-"+T.id,T.popper=y,e._tippy=T,y._tippy=T;var O=d.map((function(e){return e.fn(T)})),L=e.hasAttribute("aria-expanded");return G(),f(),k(),C("onCreate",[T]),l.showOnCreate&&ee(),y.addEventListener("mouseenter",(function(){T.props.interactive&&T.state.isVisible&&T.clearDelayTimeouts()})),y.addEventListener("mouseleave",(function(){T.props.interactive&&T.props.trigger.indexOf("mouseenter")>=0&&m().addEventListener("mousemove",I)})),T;function x(){var e=T.props.touch;return Array.isArray(e)?e:[e,0]}function p(){return"hold"===x()[0]}function S(){var e;return!(null==(e=T.props.render)||!e.$$tippy)}function E(){return a||e}function m(){var e=E().parentNode;return e?Zm(e):document}function w(){return lw(y)}function Q(e){return T.state.isMounted&&!T.state.isVisible||Pm.isTouch||o&&"focus"===o.type?0:Lm(T.props.delay,e?0:1,iw.delay)}function k(e){void 0===e&&(e=!1),y.style.pointerEvents=T.props.interactive&&!e?"":"none",y.style.zIndex=""+T.props.zIndex}function C(e,t,i){var M;(void 0===i&&(i=!0),O.forEach((function(i){i[e]&&i[e].apply(i,t)})),i)&&(M=T.props)[e].apply(M,t)}function b(){var t=T.props.aria;if(t.content){var i="aria-"+t.content,M=y.id;mm(T.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(i);if(T.state.isVisible)e.setAttribute(i,t?t+" "+M:M);else{var n=t&&t.replace(M,"").trim();n?e.setAttribute(i,n):e.removeAttribute(i)}}))}}function f(){!L&&T.props.aria.expanded&&mm(T.props.triggerTarget||e).forEach((function(e){T.props.interactive?e.setAttribute("aria-expanded",T.state.isVisible&&e===E()?"true":"false"):e.removeAttribute("aria-expanded")}))}function U(){m().removeEventListener("mousemove",I),Dw=Dw.filter((function(e){return e!==I}))}function v(t){if(!Pm.isTouch||!D&&"mousedown"!==t.type){var i=t.composedPath&&t.composedPath()[0]||t.target;if(!T.props.interactive||!Wm(y,i)){if(mm(T.props.triggerTarget||e).some((function(e){return Wm(e,i)}))){if(Pm.isTouch)return;if(T.state.isVisible&&T.props.trigger.indexOf("click")>=0)return}else C("onClickOutside",[T,t]);!0===T.props.hideOnClick&&(T.clearDelayTimeouts(),T.hide(),u=!0,setTimeout((function(){u=!1})),T.state.isMounted||W())}}}function Y(){D=!0}function Z(){D=!1}function V(){var e=m();e.addEventListener("mousedown",v,!0),e.addEventListener("touchend",v,Am),e.addEventListener("touchstart",Z,Am),e.addEventListener("touchmove",Y,Am)}function W(){var e=m();e.removeEventListener("mousedown",v,!0),e.removeEventListener("touchend",v,Am),e.removeEventListener("touchstart",Z,Am),e.removeEventListener("touchmove",Y,Am)}function P(e,t){var i=w().box;function M(e){e.target===i&&(Vm(i,"remove",M),t())}if(0===e)return t();Vm(i,"remove",r),Vm(i,"add",M),r=M}function R(t,i,M){void 0===M&&(M=!1),mm(T.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,i,M),j.push({node:e,eventType:t,handler:i,options:M})}))}function G(){var e;p()&&(R("touchstart",_,{passive:!0}),R("touchend",H,{passive:!0})),(e=T.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(R(e,_),e){case"mouseenter":R("mouseleave",H);break;case"focus":R(Hm?"focusout":"blur",J);break;case"focusin":R("focusout",J)}}))}function B(){j.forEach((function(e){var t=e.node,i=e.eventType,M=e.handler,n=e.options;t.removeEventListener(i,M,n)})),j=[]}function _(e){var t,i=!1;if(T.state.isEnabled&&!$(e)&&!u){var M="focus"===(null==(t=o)?void 0:t.type);o=e,a=e.currentTarget,f(),!T.state.isVisible&&fm(e)&&Dw.forEach((function(t){return t(e)})),"click"===e.type&&(T.props.trigger.indexOf("mouseenter")<0||g)&&!1!==T.props.hideOnClick&&T.state.isVisible?i=!0:ee(e),"click"===e.type&&(g=!i),i&&!M&&te(e)}}function F(e){var t=e.target,i=E().contains(t)||y.contains(t);if("mousemove"!==e.type||!i){var M=K().concat(y).map((function(e){var t,i=null==(t=e._tippy.popperInstance)?void 0:t.state;return i?{popperRect:e.getBoundingClientRect(),popperState:i,props:l}:null})).filter(Boolean);(function(e,t){var i=t.clientX,M=t.clientY;return e.every((function(e){var t=e.popperRect,n=e.popperState,o=e.props.interactiveBorder,r=n.placement.split("-")[0],s=n.modifiersData.offset;if(!s)return!0;var a="bottom"===r?s.top.y:0,N="top"===r?s.bottom.y:0,l="right"===r?s.left.x:0,g="left"===r?s.right.x:0,u=t.top-M+a>o,D=M-t.bottom-N>o,c=t.left-i+l>o,j=i-t.right-g>o;return u||D||c||j}))})(M,e)&&(U(),te(e))}}function H(e){$(e)||T.props.trigger.indexOf("click")>=0&&g||(T.props.interactive?T.hideWithInteractivity(e):te(e))}function J(e){T.props.trigger.indexOf("focusin")<0&&e.target!==E()||T.props.interactive&&e.relatedTarget&&y.contains(e.relatedTarget)||te(e)}function $(e){return!!Pm.isTouch&&p()!==e.type.indexOf("touch")>=0}function X(){q();var t=T.props,i=t.popperOptions,M=t.placement,n=t.offset,o=t.getReferenceClientRect,r=t.moveTransition,a=S()?lw(y).arrow:null,N=o?{getBoundingClientRect:o,contextElement:o.contextElement||E()}:e,l={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(S()){var i=w().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?i.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?i.setAttribute("data-"+e,""):i.removeAttribute("data-"+e)})),t.attributes.popper={}}}},g=[{name:"offset",options:{offset:n}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!r}},l];S()&&a&&g.push({name:"arrow",options:{element:a,padding:3}}),g.push.apply(g,(null==i?void 0:i.modifiers)||[]),T.popperInstance=zm(N,y,Object.assign({},i,{placement:M,onFirstUpdate:s,modifiers:g}))}function q(){T.popperInstance&&(T.popperInstance.destroy(),T.popperInstance=null)}function K(){return Qm(y.querySelectorAll("[data-tippy-root]"))}function ee(e){T.clearDelayTimeouts(),e&&C("onTrigger",[T,e]),V();var t=Q(!0),M=x(),n=M[0],o=M[1];Pm.isTouch&&"hold"===n&&o&&(t=o),t?i=setTimeout((function(){T.show()}),t):T.show()}function te(e){if(T.clearDelayTimeouts(),C("onUntrigger",[T,e]),T.state.isVisible){if(!(T.props.trigger.indexOf("mouseenter")>=0&&T.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&g)){var t=Q(!1);t?M=setTimeout((function(){T.state.isVisible&&T.hide()}),t):n=requestAnimationFrame((function(){T.hide()}))}}else W()}}function Iw(e,t){void 0===t&&(t={});var i=iw.plugins.concat(t.plugins||[]);"production"!==process.env.NODE_ENV&&(!function(e){var t=!e,i="[object Object]"===Object.prototype.toString.call(e)&&!e.addEventListener;ew(t,["tippy() was passed","`"+String(e)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),ew(i,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}(e),rw(t,i)),document.addEventListener("touchstart",Gm,Am),window.addEventListener("blur",_m);var M=Object.assign({},t,{plugins:i}),n=Um(e);if("production"!==process.env.NODE_ENV){var o=bm(M.content),r=n.length>1;Km(o&&r,["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.","\n\n","Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.","\n\n","1) content: element.innerHTML\n","2) content: () => element.cloneNode(true)"].join(" "))}var s=n.reduce((function(e,t){var i=t&&jw(t,M);return i&&e.push(i),e}),[]);return bm(e)?s[0]:s}Iw.defaultProps=iw,Iw.setDefaultProps=function(e){"production"!==process.env.NODE_ENV&&rw(e,[]),Object.keys(e).forEach((function(t){iw[t]=e[t]}))},Iw.currentInput=Pm;var zw=Object.assign({},zE,{effect:function(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow)}}),dw={clientX:0,clientY:0},Tw=[];function hw(e){var t=e.clientX,i=e.clientY;dw={clientX:t,clientY:i}}var yw={name:"followCursor",defaultValue:!1,fn:function(e){var t=e.reference,i=Zm(e.props.triggerTarget||t),M=!1,n=!1,o=!0,r=e.props;function s(){return"initial"===e.props.followCursor&&e.state.isVisible}function a(){i.addEventListener("mousemove",g)}function N(){i.removeEventListener("mousemove",g)}function l(){M=!0,e.setProps({getReferenceClientRect:null}),M=!1}function g(i){var M=!i.target||t.contains(i.target),n=e.props.followCursor,o=i.clientX,r=i.clientY,s=t.getBoundingClientRect(),a=o-s.left,N=r-s.top;!M&&e.props.interactive||e.setProps({getReferenceClientRect:function(){var e=t.getBoundingClientRect(),i=o,M=r;"initial"===n&&(i=e.left+a,M=e.top+N);var s="horizontal"===n?e.top:M,l="vertical"===n?e.right:i,g="horizontal"===n?e.bottom:M,u="vertical"===n?e.left:i;return{width:l-u,height:g-s,top:s,right:l,bottom:g,left:u}}})}function u(){e.props.followCursor&&(Tw.push({instance:e,doc:i}),function(e){e.addEventListener("mousemove",hw)}(i))}function D(){0===(Tw=Tw.filter((function(t){return t.instance!==e}))).filter((function(e){return e.doc===i})).length&&function(e){e.removeEventListener("mousemove",hw)}(i)}return{onCreate:u,onDestroy:D,onBeforeUpdate:function(){r=e.props},onAfterUpdate:function(t,i){var o=i.followCursor;M||void 0!==o&&r.followCursor!==o&&(D(),o?(u(),!e.state.isMounted||n||s()||a()):(N(),l()))},onMount:function(){e.props.followCursor&&!n&&(o&&(g(dw),o=!1),s()||a())},onTrigger:function(e,t){fm(t)&&(dw={clientX:t.clientX,clientY:t.clientY}),n="focus"===t.type},onHidden:function(){e.props.followCursor&&(l(),N(),o=!0)}}}};function Aw(e){return!0===e||"true"===e||!1!==e&&"false"!==e&&(!!["initial","horizontal","vertical"].includes(String(e))&&e)}function Ow(e){if(Array.isArray(e))return e;if("number"==typeof e)return e;if("string"==typeof e){if(e.includes(",")){const t=e.split(",").map((e=>parseInt(e.trim(),10)));return t}const t=parseInt(e,10);if(!isNaN(t))return t}return 200}Iw.setDefaultProps({render:gw});let Lw=class extends Re{static get styles(){return[qS]}createRenderRoot(){return this}constructor(){super(),this.for=null,this.content="",this.size="small",this.duration=200,this.interactive=!1,this.placement="top",this.disabled=!1,this.distance=8,this.skidding=0,this.open=!1,this.trigger="mouseenter focus",this.allowHTML=!1,this.followCursor=!1,this.arrow="default",this.singleton=!1,this.delay=0,this.maxWidth="auto",this.zIndex=9999,this.hideOnClick=!0,this.inertia=!1,this.interactiveBorder=2,this.injectTippyStyles()}injectTippyStyles(){const e="nile-lite-tooltip-styles";if(document.getElementById(e))return;const t=document.createElement("style");t.id=e,t.textContent='\n .tippy-box[data-animation=fade][data-state=hidden] { opacity: 0; }\n [data-tippy-root] { max-width: calc(100vw - 10px); }\n .tippy-box {\n position: relative;\n background-color: var(--nile-tooltip-color-background, var(--ng-colors-bg-primary-solid));\n color: var(--nile-colors-white-base, var(--ng-colors-text-white));\n border-radius: var(--nile-radius-sm, var(--ng-radius-md));\n font-size: var(--nile-tooltip-font-size-sm, var(--ng-font-size-text-xs));\n line-height: 1.4;\n white-space: normal;\n outline: 0;\n transition-property: transform, visibility, opacity;\n }\n\n /* Placement-specific arrows */\n .tippy-box[data-placement^=top] > .tippy-arrow { bottom: 0; }\n .tippy-box[data-placement^=top] > .tippy-arrow:before {\n bottom: -7px;\n border-width: 8px 8px 0;\n border-top-color: initial;\n }\n\n .tippy-box[data-placement^=bottom] > .tippy-arrow { top: 0; }\n .tippy-box[data-placement^=bottom] > .tippy-arrow:before {\n top: -7px;\n border-width: 0 8px 8px;\n border-bottom-color: initial;\n }\n\n .tippy-box[data-placement^=left] > .tippy-arrow { right: 0; }\n .tippy-box[data-placement^=left] > .tippy-arrow:before {\n right: -7px;\n border-width: 8px 0 8px 8px;\n border-left-color: initial;\n }\n\n .tippy-box[data-placement^=right] > .tippy-arrow { left: 0; }\n .tippy-box[data-placement^=right] > .tippy-arrow:before {\n left: -7px;\n border-width: 8px 8px 8px 0;\n border-right-color: initial;\n }\n\n .tippy-box[data-inertia][data-state=visible] {\n transition-timing-function: cubic-bezier(.54, 1.5, .38, 1.11);\n }\n\n .tippy-box.large { font-size: 16px; padding: 8px 12px; }\n .tippy-arrow { width: 16px; height: 16px; color: var(--nile-tooltip-color-background, var(--ng-colors-bg-primary-solid)); }\n .tippy-arrow:before {\n content: "";\n position: absolute;\n border-color: transparent;\n border-style: solid;\n }\n\n .tippy-content {\n position: relative;\n padding: 2px 6px;\n z-index: 1;\n }\n\t\t.tippy-box[data-placement^=top]>.tippy-svg-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-svg-arrow:after,.tippy-box[data-placement^=top]>.tippy-svg-arrow>svg{top:16px;transform:rotate(180deg)}.tippy-box[data-placement^=bottom]>.tippy-svg-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-svg-arrow>svg{bottom:16px}.tippy-box[data-placement^=left]>.tippy-svg-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-svg-arrow:after,.tippy-box[data-placement^=left]>.tippy-svg-arrow>svg{transform:rotate(90deg);top:calc(50% - 3px);left:11px}.tippy-box[data-placement^=right]>.tippy-svg-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-svg-arrow:after,.tippy-box[data-placement^=right]>.tippy-svg-arrow>svg{transform:rotate(-90deg);top:calc(50% - 3px);right:11px}.tippy-svg-arrow{width:16px;height:16px;fill:var(--nile-tooltip-color-background, var(--ng-colors-bg-primary-solid));;text-align:initial}.tippy-svg-arrow,.tippy-svg-arrow>svg{position:absolute}\n ',document.head.appendChild(t)}firstUpdated(){this.attachTooltip()}attachTooltip(){if(this.destroyTooltips(),this.disabled)return;const e={content:this.content||this.getAttribute("data-tippy-content")||void 0,placement:this.placement,trigger:this.trigger,offset:[this.skidding,this.distance],theme:"lite",animation:"fade",interactive:this.interactive,arrow:dm,duration:Ow(this.duration),allowHTML:this.allowHTML,delay:this.delay,maxWidth:this.maxWidth,zIndex:this.zIndex,hideOnClick:!1,inertia:this.inertia,interactiveBorder:this.interactiveBorder,appendTo:document.body,followCursor:Aw(this.followCursor),plugins:Aw(this.followCursor)?[yw]:[],onShow:e=>{this.open=!0,this.dispatchEvent(new CustomEvent("nile-show",{detail:{instance:e,target:e.reference}})),this.dispatchEvent(new CustomEvent("nile-toggle",{detail:{open:!0,instance:e,target:e.reference}}))},onHide:e=>{this.open=!1,this.dispatchEvent(new CustomEvent("nile-hide",{detail:{instance:e,target:e.reference}})),this.dispatchEvent(new CustomEvent("nile-toggle",{detail:{open:!1,instance:e,target:e.reference}}))}};if(this.for){if(this.targetEl=document.getElementById(this.for),!this.targetEl)return;this.id||(this.generatedId=`nile-tooltip-${Math.random().toString(36).slice(2,9)}`,this.id=this.generatedId),this.prevDescribedby=this.targetEl.getAttribute("aria-describedby");const t=this.prevDescribedby?`${this.prevDescribedby} ${this.id}`:this.id;return this.targetEl.setAttribute("aria-describedby",t),this.singleInstance=Iw(this.targetEl,e),this.size&&this.singleInstance.popper.querySelector(".tippy-box")?.classList.add(this.size),void(this.open&&queueMicrotask((()=>this.singleInstance?.show())))}const t=Array.from(this.querySelectorAll("*"));t.length>0&&(this.tooltipInstances=t.map((t=>{const i=t,M=i.getAttribute("content")||this.content,n=Iw(i,{...e,content:M});return n.popper.querySelector(".tippy-box")?.classList.add(this.size),n})),this.singleton&&this.tooltipInstances.length>1&&(this.singletonInstance=function(e,t){var i;void 0===t&&(t={}),"production"!==process.env.NODE_ENV&&ew(!Array.isArray(e),["The first argument passed to createSingleton() must be an array of","tippy instances. The passed value was",String(e)].join(" "));var M,n=e,o=[],r=[],s=t.overrides,a=[],N=!1;function l(){r=n.map((function(e){return mm(e.props.triggerTarget||e.reference)})).reduce((function(e,t){return e.concat(t)}),[])}function g(){o=n.map((function(e){return e.reference}))}function u(e){n.forEach((function(t){e?t.enable():t.disable()}))}function D(e){return n.map((function(t){var i=t.setProps;return t.setProps=function(n){i(n),t.reference===M&&e.setProps(n)},function(){t.setProps=i}}))}function c(e,t){var i=r.indexOf(t);if(t!==M){M=t;var a=(s||[]).concat("content").reduce((function(e,t){return e[t]=n[i].props[t],e}),{});e.setProps(Object.assign({},a,{getReferenceClientRect:"function"==typeof a.getReferenceClientRect?a.getReferenceClientRect:function(){var e;return null==(e=o[i])?void 0:e.getBoundingClientRect()}}))}}u(!1),g(),l();var j={fn:function(){return{onDestroy:function(){u(!0)},onHidden:function(){M=null},onClickOutside:function(e){e.props.showOnCreate&&!N&&(N=!0,M=null)},onShow:function(e){e.props.showOnCreate&&!N&&(N=!0,c(e,o[0]))},onTrigger:function(e,t){c(e,t.currentTarget)}}}},I=Iw(Cm(),Object.assign({},Em(t,["overrides"]),{plugins:[j].concat(t.plugins||[]),triggerTarget:r,popperOptions:Object.assign({},t.popperOptions,{modifiers:[].concat((null==(i=t.popperOptions)?void 0:i.modifiers)||[],[zw])})})),z=I.show;I.show=function(e){if(z(),!M&&null==e)return c(I,o[0]);if(!M||null!=e){if("number"==typeof e)return o[e]&&c(I,o[e]);if(n.indexOf(e)>=0){var t=e.reference;return c(I,t)}return o.indexOf(e)>=0?c(I,e):void 0}},I.showNext=function(){var e=o[0];if(!M)return I.show(0);var t=o.indexOf(M);I.show(o[t+1]||e)},I.showPrevious=function(){var e=o[o.length-1];if(!M)return I.show(e);var t=o.indexOf(M),i=o[t-1]||e;I.show(i)};var d=I.setProps;return I.setProps=function(e){s=e.overrides||s,d(e)},I.setInstances=function(e){u(!0),a.forEach((function(e){return e()})),n=e,u(!1),g(),l(),a=D(I),I.setProps({triggerTarget:r})},a=D(I),I}(this.tooltipInstances,{delay:[200,0],arrow:dm,moveTransition:"transform 0.25s ease-out"})),this.open&&(this.singletonInstance?this.singletonInstance.show():this.tooltipInstances.forEach((e=>e.show()))))}destroyTooltips(){if(this.tooltipInstances?.forEach((e=>e.destroy())),this.singleInstance?.destroy(),this.singletonInstance?.destroy(),this.tooltipInstances=void 0,this.singleInstance=void 0,this.singletonInstance=void 0,this.targetEl&&this.id){const e=this.targetEl.getAttribute("aria-describedby")?.split(" ").filter((e=>e!==this.id)).join(" ").trim();e?this.targetEl.setAttribute("aria-describedby",e):this.targetEl.removeAttribute("aria-describedby")}}disconnectedCallback(){super.disconnectedCallback(),this.destroyTooltips()}updated(e){super.updated(e),["for","content","placement","distance","skidding","trigger","disabled","hoist","size","arrow","singleton"].some((t=>e.has(t)))&&this.attachTooltip(),e.has("open")&&(this.open?(this.singleInstance?.show(),this.singletonInstance?.show(),this.tooltipInstances?.forEach((e=>e.show()))):(this.singleInstance?.hide(),this.singletonInstance?.hide(),this.tooltipInstances?.forEach((e=>e.hide()))))}};e([De({type:String,attribute:"for"})],Lw.prototype,"for",void 0),e([De({type:String,reflect:!0})],Lw.prototype,"content",void 0),e([De({type:String,reflect:!0})],Lw.prototype,"size",void 0),e([De({type:String,reflect:!0})],Lw.prototype,"duration",void 0),e([De({type:Boolean,reflect:!0})],Lw.prototype,"interactive",void 0),e([De({type:String})],Lw.prototype,"placement",void 0),e([De({type:Boolean})],Lw.prototype,"disabled",void 0),e([De({type:Number})],Lw.prototype,"distance",void 0),e([De({type:Number})],Lw.prototype,"skidding",void 0),e([De({type:Boolean,reflect:!0})],Lw.prototype,"open",void 0),e([De({type:String})],Lw.prototype,"trigger",void 0),e([De({type:Boolean,reflect:!0})],Lw.prototype,"allowHTML",void 0),e([De({type:String,reflect:!0,attribute:!0})],Lw.prototype,"followCursor",void 0),e([De({type:String,reflect:!0,attribute:!0})],Lw.prototype,"arrow",void 0),e([De({type:Boolean,reflect:!0})],Lw.prototype,"singleton",void 0),e([De({type:String,reflect:!0})],Lw.prototype,"delay",void 0),e([De({type:String,reflect:!0})],Lw.prototype,"maxWidth",void 0),e([De({type:Number})],Lw.prototype,"zIndex",void 0),e([De({type:[Boolean,String],reflect:!0})],Lw.prototype,"hideOnClick",void 0),e([De({type:Boolean,reflect:!0})],Lw.prototype,"inertia",void 0),e([De({type:Number})],Lw.prototype,"interactiveBorder",void 0),Lw=e([le("nile-lite-tooltip")],Lw);
|
|
15275
15275
|
/**
|
|
15276
15276
|
* @license
|
|
15277
15277
|
* Copyright 2021 Google LLC
|