!function(){var e,t;let a=JSON.parse(`{ "https://www.rnp.br/servicos/servicos-do-sistema-rnp/": { "messages": ["De conexão à internet à café, digo... CAFe! Temos de tudo ;)"], "appKey": "cm5wcm91dGVyOjUyZTNkZjU3LTUzOTAtNDcwNC1hOWQzLTRhMDQ3ZDkzMjY0Zg==", "color": "#2720fd", "icon": "https://blipmediastore.blip.ai/public-medias/Media_36a59e9d-4f87-49c2-bacb-c1a09099ebcd" }, "https://ds.cafe.rnp.br": { "messages": ["Olá! Posso ajudar?"], "appKey": "cm5wcm91dGVyOjUyZTNkZjU3LTUzOTAtNDcwNC1hOWQzLTRhMDQ3ZDkzMjY0Zg==", "color": "#2720fd", "icon": "https://blipmediastore.blip.ai/public-medias/Media_36a59e9d-4f87-49c2-bacb-c1a09099ebcd" }, "https://www.rnp.br/sobre-nos/quem-somos/": { "messages": ["Somos uma CO-MU-NI-DA-DE!"], "appKey": "cm5wcm91dGVyOjUyZTNkZjU3LTUzOTAtNDcwNC1hOWQzLTRhMDQ3ZDkzMjY0Zg==", "color": "#2720fd", "icon": "https://blipmediastore.blip.ai/public-medias/Media_36a59e9d-4f87-49c2-bacb-c1a09099ebcd" }, "http://127.0.0.1:5500/": { "messages": ["Olá! Posso ajudar?"], "appKey": "ZWR1cGxheTowZmEzYzg5Yi1mNGY4LTQ4ZTgtYmNhNy05NGMzNzk3MDc3NGY=", "color": "#2720fd", "icon": "https://blipmediastore.blip.ai/public-medias/Media_36a59e9d-4f87-49c2-bacb-c1a09099ebcd" }, "https://www.rnp.br/sistema-rnp/instituicoes-conectadas/": { "messages": ["Do Oiapoque ao Chuí, é conexão que não acaba mais!"], "appKey": "cm5wcm91dGVyOjUyZTNkZjU3LTUzOTAtNDcwNC1hOWQzLTRhMDQ3ZDkzMjY0Zg==", "color": "#2720fd", "icon": "https://blipmediastore.blip.ai/public-medias/Media_36a59e9d-4f87-49c2-bacb-c1a09099ebcd" }, "https://www.rnp.br/contato/": { "messages": ["Opa, alguma dúvida pairando no ar? Digamos que eu posso te conectar com as pessoas certas."], "appKey": "cm5wcm91dGVyOjUyZTNkZjU3LTUzOTAtNDcwNC1hOWQzLTRhMDQ3ZDkzMjY0Zg==", "color": "#2720fd", "icon": "https://blipmediastore.blip.ai/public-medias/Media_36a59e9d-4f87-49c2-bacb-c1a09099ebcd" } }`),n;(n=document.createElement("script")).type="text/javascript",n.async=!0,n.innerHTML=` (function(c,l,a,r,i,t,y){ c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)}; t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i; y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y); })(window, document, "clarity", "script", "p4n4hdcftc"); `,document.head.appendChild(n),window.blipChatInstance=null;let i=!1,r=document.createElement("link");r.href="https://fonts.googleapis.com/css2?family=Barlow:wght@400;700&display=swap",r.rel="stylesheet",document.head.appendChild(r);let o=` .message-bubble{font-family:Barlow,Helvetica,Arial,Lucida,sans-serif;display:flex;align-items:center;justify-content:space-between;font-weight:500;position:fixed;background:#2720fd;color:#fff;right:105px;bottom:43px;padding:10px 20px;border-radius:13px 13px 2px;z-index:900;line-height:1.5em;max-width:300px;min-width:75px;width:auto;opacity:1;transition:background .3s,right .3s,bottom .3s;overflow:hidden;user-select:none}.message-bubble::before{bottom:0;content:'';position:absolute;left:calc(100% - 12px);width:0;border:15px solid transparent;border-radius:4.5px}.message-bubble p{transition:opacity .3s ease-in-out;opacity:1;margin:0 5px 0 0}@keyframes toggle-bubble{from{transform:translateY(50%);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes fade-in-out{0%,100%{opacity:1}50%{opacity:0}}@media (max-width:768px){.message-bubble{right:90px;bottom:40px;max-width:250px;min-width:120px}}.blip-chat-button{z-index:1000!important}.message-bubble .close-button{background:0 0;border:none;color:#fff;font-size:16px;cursor:pointer;padding:0 5px;position:absolute;top:2px;right:5px}#blip-chat-icon{position:relative}#blip-chat-iframe{position:relative!important}`,s;function l(e){try{let t=new URL(e);return`${t.protocol}//${t.hostname}${t.port?":"+t.port:""}${t.pathname.replace(/\/+$/,"")}`}catch(a){return console.error(`URL inv\xe1lida: ${e}`,a),e}}function c(e){let t=l(e),n=Object.keys(a).filter(e=>{let a=l(e);return t.startsWith(a)});return n.length>0?(0,a[n.reduce((e,t)=>e.length>t.length?e:t)]):{messages:["Precisa de ajuda?"],appKey:"cm5wcm91dGVyOjUyZTNkZjU3LTUzOTAtNDcwNC1hOWQzLTRhMDQ3ZDkzMjY0Zg==",color:"#2720fd",icon:"https://blipmediastore.blip.ai/public-medias/Media_36a59e9d-4f87-49c2-bacb-c1a09099ebcd"}}e=o,(s=document.createElement("style")).type="text/css",s.appendChild(document.createTextNode(e)),document.head.appendChild(s);let p=window.location.href,d=c(p),h=d.messages,u=d.appKey,m=d.color,b=d.icon;function $(){h=(d=c(p)).messages,u=d.appKey,m=d.color,b=d.icon,window.messageParagraph&&!i&&(window.messageParagraph.textContent=h[0],window.currentIndex=0,window.blipChatInstance&&window.blipChatInstance.withAppKey(u).withButton({color:m,icon:b}))}function f(){let e=document.querySelector(".message-bubble");e&&(e.style.display="none",i=!0,window.messageInterval&&clearInterval(window.messageInterval))}let g;t=function e(){window.blipChatInstance=new BlipChat,window.blipChatInstance.withAppKey(u).withButton({color:m,icon:b}).withCustomCommonUrl("https://rnp.chat.blip.ai/").withEventHandler(BlipChat.LOAD_EVENT,function(){window.tt&&(window.blipChatInstance.sendMessage({type:"text/plain",content:window.tt}),window.tt=null)}),window.blipChatInstance.build(),document.addEventListener("click",function(e){let t=document.getElementById("blip-chat-close-icon");t?.contains(e.target)&&f(),("blip-chat-open-iframe"===e.target.id||"blip-chat-icon"===e.target.id)&&f()}),function e(){if(i)return;let t=document.createElement("div");t.className="message-bubble";let a=document.createElement("p");a.textContent=h[0],t.appendChild(a);let n=document.createElement("button");n.className="close-button",n.innerHTML="×",t.appendChild(n),document.body.appendChild(t),window.messageParagraph=a,window.currentIndex=0,window.messageInterval=setInterval(function e(){if(i){clearInterval(window.messageInterval);return}a.style.opacity=0,setTimeout(()=>{window.currentIndex=(window.currentIndex+1)%h.length,a.textContent=h[window.currentIndex],a.style.opacity=1},300)},3e4),n.addEventListener("click",()=>{f()})}()},(g=document.createElement("script")).src="https://unpkg.com/blip-chat-widget",g.async=!0,g.onload=t,g.onerror=function(e){console.error(`Falha ao carregar o Blip Chat Widget: ${e}`)},document.head.appendChild(g),$(),function e(t){let a=history.pushState,n=history.replaceState;history.pushState=function(){a.apply(this,arguments),t()},history.replaceState=function(){n.apply(this,arguments),t()},window.addEventListener("popstate",t),window.addEventListener("hashchange",t)}(function e(){let t=window.location.href;t!==p&&(p=t,$())})}();