(()=>{var e,t,n={4766:(e,t,n)=>{(t=n(7553)(!1)).push([e.id,"[vw] [vw-access-button]{display:none;flex-direction:row-reverse;width:40px;height:40px;cursor:pointer;overflow:hidden;position:absolute;border-radius:8px;transition:all 0.5s ease;right:0;left:auto}[vw] [vw-access-button] img{max-height:40px;transition:all 0.5s ease;border-radius:8px;opacity:1 !important;visibility:visible !important}[vw] [vw-access-button] .vp-access-button{width:40px;height:40px;z-index:1}[vw] [vw-access-button] .vp-pop-up{position:absolute;height:40px;min-width:150px;z-index:0;left:0;right:auto}[vw] [vw-access-button]:hover{width:200px}[vw] [vw-access-button].isLeft{flex-direction:row;left:0;right:auto}[vw] [vw-access-button].isLeft .vp-pop-up{left:auto;right:0}[vw] [vw-access-button].isTopOrBottom:hover{bottom:-20px;top:0;margin-right:-80px}[vw] [vw-access-button].active{display:flex}\n",""]),e.exports=t},3248:(e,t,n)=>{(t=n(7553)(!1)).push([e.id,"[vw].left [vw-plugin-wrapper]{float:left}[vw] [vw-plugin-wrapper]{position:relative;display:none;width:300px;height:100%;float:right;background:white;-webkit-box-shadow:0px 0px 15px rgba(0,0,0,0.2);-moz-box-shadow:0px 0px 15px rgba(0,0,0,0.2);box-shadow:0px 0px 15px rgba(0,0,0,0.2);border-radius:12px;-moz-border-radius:12px;-webkit-border-radius:12px}[vw] [vw-plugin-wrapper].active{display:-webkit-flex;display:flex;flex-direction:column;-webkit-flex-direction:column;height:450px;max-width:100%;min-height:100%}\n",""]),e.exports=t},8819:(e,t,n)=>{(t=n(7553)(!1)).push([e.id,"div[vw]{position:fixed;max-width:95vw;min-height:40px;min-width:40px;z-index:2147483645 !important;display:none;margin:10px !important}div[vw].enabled{display:block}div[vw].active{margin-top:-285px}div[vw].left{left:0;right:initial}\n",""]),e.exports=t},7553:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",i=e[3];if(!i)return n;if(t&&"function"==typeof btoa){var o=(a=i,s=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),l="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(l," */")),r=i.sources.map((function(e){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(e," */")}));return[n].concat(r).concat([o]).join("\n")}var a,s,l;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,i){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(i)for(var r=0;r{"use strict";n.d(t,{A:()=>i});const i='\r\n\r\n'},4456:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});const i="
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n
\r\n"},8601:(e,t,n)=>{var i=n(5464),o=n(4766);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var r={insert:"head",singleton:!1};i(o,r);e.exports=o.locals||{}},9197:(e,t,n)=>{var i=n(5464),o=n(3248);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var r={insert:"head",singleton:!1};i(o,r);e.exports=o.locals||{}},4394:(e,t,n)=>{var i=n(5464),o=n(8819);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.id,o,""]]);var r={insert:"head",singleton:!1};i(o,r);e.exports=o.locals||{}},5464:(e,t,n)=>{"use strict";var i,o=function(){return void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i},r=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function s(e){for(var t=-1,n=0;n{e.exports={ROOT_PATH:"https://www.vlibras.gov.br/app/",DICTIONARY_URL:"https://dicionario2.vlibras.gov.br/signs?version=2018.3.1",REVIEW_URL:"https://traducao2.vlibras.gov.br/review",SIGNS_URL:"https://dicionario2.vlibras.gov.br/bundles"}},7395:(e,t,n)=>{"use strict";n.r(t),n.d(t,{$:()=>d,$$:()=>p,$0:()=>u,_off:()=>C,_on:()=>T,_vwOff:()=>E,_vwOn:()=>k,addClass:()=>h,addClickBlocker:()=>b,canTranslate:()=>y,disableControlsButton:()=>L,formatGloss:()=>s,getAvatar:()=>r,getDocumentDim:()=>w,getRect:()=>m,getWidget:()=>l,getWidgetPosition:()=>a,hasClass:()=>v,isFullscreen:()=>i,isPlaying:()=>o,removeClass:()=>g,setWidgetPosition:()=>c,toggleClass:()=>f,toggleUnityMainLoop:()=>x});const i=()=>v(document.body,"vpw-fullscreen"),o=()=>v(d("div[vp-controls]"),"vpw-playing"),r=()=>window.plugin.player.avatar,a=()=>window.plugin?window.plugin.position:void 0,s=e=>-1!=e.indexOf("&")?e.replace("&","(")+")":e,l=()=>d("[vp]").closest("[vw]"),c=e=>{window.dispatchEvent(new CustomEvent("vp-widget-wrapper-set-side",{detail:e}))},d=(e,t=null)=>t?t.querySelector(e):d(e,document),p=(e,t=null)=>t?t.querySelectorAll(e):p(e,document),u=document.body,v=(e,t)=>e?e.classList.contains(t):void 0,h=(e,t)=>{e.classList.add(t)},w=()=>{const{clientWidth:e,clientHeight:t}=document.documentElement;return{w:e,h:t}},g=(e,t)=>{e.classList.remove(t)},f=(e,t,n=void 0)=>{e.classList.toggle(t,n)},m=e=>e.getBoundingClientRect(),b=e=>{f(d(".vpw-skip-welcome-message"),"vp-disabled",e),f(d("[vp-click-blocker]"),"vp-enabled",e)},y=()=>v(d("[vp-controls]"),"vpw-controls")&&!v(d(".vp-guide-container"),"vp-enabled")&&v(d("[vw-plugin-wrapper]"),"active"),x=e=>{e?window.plugin.player.player.Module.resumeMainLoop():window.plugin.player.player.Module.pauseMainLoop()},L=(e=!0)=>{e?d("[vp-controls] .vpw-controls-button").setAttribute("disabled",!0):d("[vp-controls] .vpw-controls-button").removeAttribute("disabled")},T=(e,t,n)=>{e.addEventListener(t,n)},C=(e,t,n)=>{e.removeEventListener(t,n)},k=(e,t,n)=>{e.addListener(t,n)},E=(e,t,n)=>{e.removeListener(t,n)}},9927:(e,t,n)=>{const i=n(4087),o=n(6829);n(4394);const{$:r,$$:a,addClass:s,toggleUnityMainLoop:l,removeClass:c,getWidget:d}=n(7395),{ROOT_PATH:p}=n(9517),u=["TL","T","TR","L","R","BL","B","BR"],v=["icaro","hosana","guga","random"];e.exports=function(...e){const t="object"==typeof e[0]&&e[0],n=t?t.personalization:e[1];let h=t?t.rootPath:e[0],w=t?t.position:e[3],g=t?t.opacity:e[2],f=t.avatar;void 0===h?h=p:h&&!h.endsWith("/")&&(h+="/"),(isNaN(g)||g<0||g>1)&&(g=1),u.includes(w)||(w="R"),v.includes(f)||(f="icaro");const m=new o,b=new i({rootPath:h,pluginWrapper:m,personalization:n,opacity:g,position:w,avatar:f});let y;window.onload&&(y=window.onload),window.onload=()=>{a("[vw]").forEach((e=>{r("[vp]"),e||(e.removeAttribute("vw"),location.hostname.includes("correios.com.br")&&c(e,"enabled"))})),y&&y(),this.element=r("[vw-plugin-wrapper]").closest("[vw]");const e=r("[vw-plugin-wrapper]"),t=r("[vw-access-button]");b.load(r("[vw-access-button]"),this.element),m.load(r("[vw-plugin-wrapper]")),window.addEventListener("vp-widget-wrapper-set-side",(e=>{const t=e.detail;if(!t||!u.includes(t))return;this.element=d(),this.element.style.left=t.includes("L")?"0":["T","B"].includes(t)?"50%":"initial",this.element.style.right=t.includes("R")?"0":"initial",this.element.style.top=t.includes("T")?"0":["L","R"].includes(t)?"50%":"initial",this.element.style.bottom=t.includes("B")?"0":"initial",this.element.style.transform=["L","R"].includes(t)?"translateY(calc(-50% - 10px))":["T","B"].includes(t)?"translateX(calc(-50% - 10px))":"initial";const n=r("[vw-access-button]");n.classList.toggle("isLeft",t.includes("L")),n.classList.toggle("isTopOrBottom","TB".includes(t)),window.plugin&&(window.plugin.position=t)})),a("img[data-src]",this.element).forEach((e=>{const t=e.attributes["data-src"].value;e.src=h?h+"/"+t:t})),window.addEventListener("vp-widget-close",(n=>{t.classList.toggle("active"),e.classList.toggle("active"),s(r("div[vp-change-avatar]"),"active"),s(r("div[vp-aux-controls]"),"vp-enabled"),c(r("div[vp-controls]"),"vpw-selectText"),l(!1)})),window.addEventListener("vw-change-opacity",(t=>{e.style.background=`rgba(235,235,235, ${t.detail})`})),u.includes(w)&&window.dispatchEvent(new CustomEvent("vp-widget-wrapper-set-side",{detail:w})),setTimeout((()=>{const e=b.element.style.width;b.element.style.width="200px",setTimeout((()=>b.element.style.width=e),3e3)}),2e3)}}},4087:(e,t,n)=>{const i=n(4392).A;n(8601);const{canTranslate:o,toggleUnityMainLoop:r}=n(7395);function a(e){this.personalization=e.personalization,this.rootPath=e.rootPath,this.enableWelcome=e.enableWelcome,this.pluginWrapper=e.pluginWrapper,this.opacity=e.opacity,this.position=e.position,this.avatar=e.avatar,this.vw_links=null,this.currentElement=null,this.currentSpanElement=null,this.ready=!1}a.prototype.load=function(e,t){this.element=e,this.element.innerHTML=i,this.element.addEventListener("click",(async()=>{this.element.classList.toggle("active"),this.pluginWrapper.element.classList.toggle("active"),this.ready&&r(!0);const{Plugin:e}=await n.e(7).then(n.bind(n,6785)),{loadTextCaptureScript:t}=await n.e(7).then(n.bind(n,1335));window.VLibras.Plugin=e;const i={enableMoveWindow:!0,enableWelcome:!0,personalization:this.personalization,wrapper:this.pluginWrapper.element,position:this.position,rootPath:this.rootPath,opacity:this.opacity,avatar:this.avatar};if(window.plugin||(window.plugin=new window.VLibras.Plugin(i)),this.ready)t();else{const e=setInterval((()=>{o()&&(t(),this.ready=!0,clearInterval(e))}),1e3)}}))},e.exports=a},6829:(e,t,n)=>{const i=n(4456).A;function o(){}n(9197),o.prototype.load=function(e){this.element=e,this.element.innerHTML=i},e.exports=o},9074:e=>{"use strict";e.exports=window.window}},i={};function o(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={id:e,exports:{}};return n[e].call(r.exports,r,r.exports,o),r.exports}o.m=n,o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,n)=>(o.f[n](e,t),t)),[])),o.u=e=>"vlibras-plugin.chunk.js",o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="VLibras:",o.l=(n,i,r,a)=>{if(e[n])e[n].push(i);else{var s,l;if(void 0!==r)for(var c=document.getElementsByTagName("script"),d=0;d{s.onerror=s.onload=null,clearTimeout(v);var o=e[n];if(delete e[n],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(i))),t)return t(i)},v=setTimeout(u.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=u.bind(null,s.onerror),s.onload=u.bind(null,s.onload),l&&document.head.appendChild(s)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.p="https://www.vlibras.gov.br/app/",(()=>{var e={303:0};o.f.j=(t,n)=>{var i=o.o(e,t)?e[t]:void 0;if(0!==i)if(i)n.push(i[2]);else{var r=new Promise(((n,o)=>i=e[t]=[n,o]));n.push(i[2]=r);var a=o.p+o.u(t),s=new Error;o.l(a,(n=>{if(o.o(e,t)&&(0!==(i=e[t])&&(e[t]=void 0),i)){var r=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+r+": "+a+")",s.name="ChunkLoadError",s.type=r,s.request=a,i[1](s)}}),"chunk-"+t,t)}};var t=(t,n)=>{var i,r,[a,s,l]=n,c=0;if(a.some((t=>0!==e[t]))){for(i in s)o.o(s,i)&&(o.m[i]=s[i]);if(l)l(o)}for(t&&t(n);c{"use strict";o.r(r),o.d(r,{Widget:()=>e});const e=o(9927)})(),window.VLibras=r})();