'use strict';
 var __ducp_data__ = {"token":"9e827fb6-8469-4613-87bc-a168e48e49df","baseUrl":"https://www.dataunion.com.br","urlRequest":"","uid":"bf7c954b-be07-489b-bcae-7ab67b708470","sid":380147828113158144,"mod":0,"urlTagid":0,"average":160,"isDebug":false};
 (function(){"use strict";function p(n){return n=String(n),n.charAt(0).toUpperCase()+n.slice(1)}function nt(n,t,i){var r={"10.0":"10","6.4":"10 Technical Preview","6.3":"8.1","6.2":"8","6.1":"Server 2008 R2 / 7","6.0":"Server 2008 / Vista","5.2":"Server 2003 / XP 64-bit","5.1":"XP","5.01":"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return t&&i&&/^Win/i.test(n)&&!/^Windows Phone /i.test(n)&&(r=r[/[\d.]+$/.exec(n)])&&(n="Windows "+r),n=String(n),t&&i&&(n=n.replace(RegExp(t,"i"),i)),o(n.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0])}function tt(n,t){var r=-1,i=n?n.length:0;if(typeof i=="number"&&i>-1&&i<=k)while(++r<i)t(n[r],r,n);else s(n,t)}function o(n){return n=w(n),/^(?:webOS|i(?:OS|P))/.test(n)?n:p(n)}function s(n,t){for(var i in n)g.call(n,i)&&t(n[i],i,n)}function t(n){return n==null?p(n):y.call(n).slice(8,-1)}function it(n,t){var i=n!=null?typeof n[t]:"number";return!/^(?:boolean|number|string|undefined)$/.test(i)&&(i=="object"?!!n[t]:!0)}function i(n){return String(n).replace(/([ -])(?!$)/g,"$1?")}function r(n,t){var i=null;return tt(n,function(r,u){i=t(i,r,u,n)}),i}function w(n){return String(n).replace(/^ +| +$/g,"")}function h(n){function ui(t){return r(t,function(t,r){return t||RegExp("\\b"+(r.pattern||i(r))+"\\b","i").exec(n)&&(r.label||r)})}function fi(t){return r(t,function(t,r,u){return t||(r[p]||r[/^[a-z]+(?: +[a-z]+\b)*/i.exec(p)]||RegExp("\\b"+i(u)+"(?:\\b|\\w*\\d)","i").exec(n))&&u})}function ei(t){return r(t,function(t,r){return t||RegExp("\\b"+(r.pattern||i(r))+"\\b","i").exec(n)&&(r.label||r)})}function oi(t){return r(t,function(t,r){var u=r.pattern||i(r);return!t&&(t=RegExp("\\b"+u+"(?:/[\\d.]+|[ \\w.]*)","i").exec(n))&&(t=nt(t,u,r.label||r)),t})}function wt(t){return r(t,function(t,r){var u=r.pattern||i(r);return!t&&(t=RegExp("\\b"+u+" *\\d+[.\\w_]*","i").exec(n)||RegExp("\\b"+u+" *\\w+-[\\w]*","i").exec(n)||RegExp("\\b"+u+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(n))&&((t=String(r.label&&!RegExp(u,"i").test(r.label)?r.label:t).split("/"))[1]&&!/[\d.]+/.test(t[0])&&(t[0]+=" "+t[1]),r=r.label||r,t=o(t[0].replace(RegExp(u,"i"),r).replace(RegExp("; *(?:"+r+"[_-])?","i")," ").replace(RegExp("("+r+")[-_.]?(\\w)","i"),"$1 $2"))),t})}function si(t){return r(t,function(t,i){return t||(RegExp(i+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(n)||0)[1]||null})}function hi(){return this.description||""}var g=u,ut=n&&typeof n=="object"&&t(n)!="String",ot,at,tt;ut&&(g=n,n=null);ot=g.navigator||{};at=ot.userAgent||"";n||(n=at);var ci=ut||d==b,bt=ut?!!ot.likeChrome:/\bChrome\b/.test(n)&&!/internal|\n/i.test(y.toString()),vt="Object",kt=ut?vt:"ScriptBridgingProxyObject",dt=ut?vt:"Environment",gt=ut&&g.java?"JavaPackage":t(g.java),ni=ut?vt:"RuntimeObject",st=/\bJava/.test(gt)&&g.java,ti=st&&t(g.environment)==dt,ii=st?"a":"α",ri=st?"b":"β",yt=g.document||{},ft=g.operamini||g.opera,ht=e.test(ht=ut&&ft?ft["[[Class]]"]:t(ft))?ht:ft=null,f,ct=n,v=[],lt=null,et=n==at,a=et&&ft&&typeof ft.version=="function"&&ft.version(),pt,k=ui([{label:"EdgeHTML",pattern:"(?:Edge|EdgA|EdgiOS)"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),c=ei(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"(?:Edge|Edg|EdgA|EdgiOS)"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Waterfox","WebPositive","Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chrome",{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]),p=wt([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),rt=fi({Apple:{iPad:1,iPhone:1,iPod:1},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1}}),l=oi(["Windows Phone","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian","Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);if(k&&(k=[k]),rt&&!p&&(p=wt([rt])),(f=/\bGoogle TV\b/.exec(p))&&(p=f[0]),/\bSimulator\b/i.test(n)&&(p=(p?p+" ":"")+"Simulator"),c=="Opera Mini"&&/\bOPiOS\b/.test(n)&&v.push("running in Turbo/Uncompressed mode"),c=="IE"&&/\blike iPhone OS\b/.test(n)?(f=h(n.replace(/like iPhone OS/,"")),rt=f.manufacturer,p=f.product):/^iP/.test(p)?(c||(c="Safari"),l="iOS"+((f=/ OS ([\d_]+)/i.exec(n))?" "+f[1].replace(/_/g,"."):"")):c!="Konqueror"||/buntu/i.test(l)?rt&&rt!="Google"&&(/Chrome/.test(c)&&!/\bMobile Safari\b/i.test(n)||/\bVita\b/.test(p))||/\bAndroid\b/.test(l)&&/^Chrome/.test(c)&&/\bVersion\//i.test(n)?(c="Android Browser",l=/\bAndroid\b/.test(l)?l:"Android"):c=="Silk"?(/\bMobi/i.test(n)||(l="Android",v.unshift("desktop mode")),/Accelerated *= *true/i.test(n)&&v.unshift("accelerated")):c=="PaleMoon"&&(f=/\bFirefox\/([\d.]+)\b/.exec(n))?v.push("identifying as Firefox "+f[1]):c=="Firefox"&&(f=/\b(Mobile|Tablet|TV)\b/i.exec(n))?(l||(l="Firefox OS"),p||(p=f[1])):!c||(f=!/\bMinefield\b/i.test(n)&&/\b(?:Firefox|Safari)\b/.exec(c))?(c&&!p&&/[\/,]|^[^(]+?\)/.test(n.slice(n.indexOf(f+"/")+8))&&(c=null),(f=p||rt||l)&&(p||rt||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(l))&&(c=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(l)?l:f)+" Browser")):c=="Electron"&&(f=(/\bChrome\/([\d.]+)\b/.exec(n)||0)[1])&&v.push("Chromium "+f):l="Kubuntu",a||(a=si(["(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",i(c),"(?:Firefox|Minefield|NetFront)"])),(f=k=="iCab"&&parseFloat(a)>3&&"WebKit"||/\bOpera\b/.test(c)&&(/\bOPR\b/.test(n)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(n)&&!/^(?:Trident|EdgeHTML)$/.test(k)&&"WebKit"||!k&&/\bMSIE\b/i.test(n)&&(l=="Mac OS"?"Tasman":"Trident")||k=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(c)&&"NetFront")&&(k=[f]),c=="IE"&&(f=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(n)||0)[1])?(c+=" Mobile",l="Windows Phone "+(/\+$/.test(f)?f:f+".x"),v.unshift("desktop mode")):/\bWPDesktop\b/i.test(n)?(c="IE Mobile",l="Windows Phone 8.x",v.unshift("desktop mode"),a||(a=(/\brv:([\d.]+)/.exec(n)||0)[1])):c!="IE"&&k=="Trident"&&(f=/\brv:([\d.]+)/.exec(n))&&(c&&v.push("identifying as "+c+(a?" "+a:"")),c="IE",a=f[1]),et){if(it(g,"global"))if(st&&(f=st.lang.System,ct=f.getProperty("os.arch"),l=l||f.getProperty("os.name")+" "+f.getProperty("os.version")),ti){try{a=g.require("ringo/engine").version.join(".");c="RingoJS"}catch(li){(f=g.system)&&f.global.system==g.system&&(c="Narwhal",l||(l=f[0].os||null))}c||(c="Rhino")}else typeof g.process=="object"&&!g.process.browser&&(f=g.process)&&(typeof f.versions=="object"&&(typeof f.versions.electron=="string"?(v.push("Node "+f.versions.node),c="Electron",a=f.versions.electron):typeof f.versions.nw=="string"&&(v.push("Chromium "+a,"Node "+f.versions.node),c="NW.js",a=f.versions.nw)),c||(c="Node.js",ct=f.arch,l=f.platform,a=/[\d.]+/.exec(f.version),a=a?a[0]:null));else t(f=g.runtime)==kt?(c="Adobe AIR",l=f.flash.system.Capabilities.os):t(f=g.phantom)==ni?(c="PhantomJS",a=(f=f.version||null)&&f.major+"."+f.minor+"."+f.patch):typeof yt.documentMode=="number"&&(f=/\bTrident\/(\d+)/i.exec(n))?(a=[a,yt.documentMode],(f=+f[1]+4)!=a[1]&&(v.push("IE "+a[1]+" mode"),k&&(k[1]=""),a[1]=f),a=c=="IE"?String(a[1].toFixed(1)):a[0]):typeof yt.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(c)&&(v.push("masking as "+c+" "+a),c="IE",a="11.0",k=["Trident"],l="Windows");l=l&&o(l)}if(a&&(f=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(a)||/(?:alpha|beta)(?: ?\d)?/i.exec(n+";"+(et&&ot.appMinorVersion))||/\bMinefield\b/i.test(n)&&"a")&&(lt=/b/i.test(f)?"beta":"alpha",a=a.replace(RegExp(f+"\\+?$"),"")+(lt=="beta"?ri:ii)+(/\d+\+?/.exec(f)||"")),c=="Fennec"||c=="Firefox"&&/\b(?:Android|Firefox OS)\b/.test(l))c="Firefox Mobile";else if(c=="Maxthon"&&a)a=a.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(p))p=="Xbox 360"&&(l=null),p=="Xbox 360"&&/\bIEMobile\b/.test(n)&&v.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(c)||c&&!p&&!/Browser|Mobi/.test(c))&&(l=="Windows CE"||/Mobi/i.test(n)))c+=" Mobile";else if(c=="IE"&&et)try{g.external===null&&v.unshift("platform preview")}catch(li){v.unshift("embedded")}else(/\bBlackBerry\b/.test(p)||/\bBB10\b/.test(n))&&(f=(RegExp(p.replace(/ +/g," *")+"/([.\\d]+)","i").exec(n)||0)[1]||a)?(f=[f,/BB10/.test(n)],l=(f[1]?(p=null,rt="BlackBerry"):"Device Software")+" "+f[0],a=null):this!=s&&p!="Wii"&&(et&&ft||/Opera/.test(c)&&/\b(?:MSIE|Firefox)\b/i.test(n)||c=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(l)||c=="IE"&&(l&&!/^Win/.test(l)&&a>5.5||/\bWindows XP\b/.test(l)&&a>8||a==8&&!/\bTrident\b/.test(n)))&&!e.test(f=h.call(s,n.replace(e,"")+";"))&&f.name&&(f="ing as "+f.name+((f=f.version)?" "+f:""),e.test(c)?(/\bIE\b/.test(f)&&l=="Mac OS"&&(l=null),f="identify"+f):(f="mask"+f,c=ht?o(ht.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(f)&&(l=null),et||(a=null)),k=["Presto"],v.push(f));return(f=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(n)||0)[1])&&(f=[parseFloat(f.replace(/\.(\d)$/,".0$1")),f],c=="Safari"&&f[1].slice(-1)=="+"?(c="WebKit Nightly",lt="alpha",a=f[1].slice(0,-1)):(a==f[1]||a==(f[2]=(/\bSafari\/([\d.]+\+?)/i.exec(n)||0)[1]))&&(a=null),f[1]=(/\bChrome\/([\d.]+)/i.exec(n)||0)[1],f[0]==537.36&&f[2]==537.36&&parseFloat(f[1])>=28&&k=="WebKit"&&(k=["Blink"]),et&&(bt||f[1])?(k&&(k[1]="like Chrome"),f=f[1]||(f=f[0],f<530?1:f<532?2:f<532.05?3:f<533?4:f<534.03?5:f<534.07?6:f<534.1?7:f<534.13?8:f<534.16?9:f<534.24?10:f<534.3?11:f<535.01?12:f<535.02?"13+":f<535.07?15:f<535.11?16:f<535.19?17:f<536.05?18:f<536.1?19:f<537.01?20:f<537.11?"21+":f<537.13?23:f<537.18?24:f<537.24?25:f<537.36?26:k!="Blink"?"27":"28")):(k&&(k[1]="like Safari"),f=(f=f[0],f<400?1:f<500?2:f<526?3:f<533?4:f<534?"4+":f<535?5:f<537?6:f<538?7:f<601?8:"8")),k&&(k[1]+=" "+(f+=typeof f=="number"?".x":/[.+]/.test(f)?"":"+")),c=="Safari"&&(!a||parseInt(a)>45)&&(a=f)),c=="Opera"&&(f=/\bzbov|zvav$/.exec(l))?(c+=" ",v.unshift("desktop mode"),f=="zvav"?(c+="Mini",a=null):c+="Mobile",l=l.replace(RegExp(" *"+f+"$"),"")):c=="Safari"&&/\bChrome\b/.exec(k&&k[1])&&(v.unshift("desktop mode"),c="Chrome Mobile",a=null,/\bOS X\b/.test(l)?(rt="Apple",l="iOS 4.3+"):l=null),a&&a.indexOf(f=/[\d.]+$/.exec(l))==0&&n.indexOf("/"+f+"-")>-1&&(l=w(l.replace(f,""))),k&&!/\b(?:Avant|Nook)\b/.test(c)&&(/Browser|Lunascape|Maxthon/.test(c)||c!="Safari"&&/^iOS/.test(l)&&/\bSafari\b/.test(k[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(c)&&k[1])&&(f=k[k.length-1])&&v.push(f),v.length&&(v=["("+v.join("; ")+")"]),rt&&p&&p.indexOf(rt)<0&&v.push("on "+rt),p&&v.push((/^on /.test(v[v.length-1])?"":"on ")+p),l&&(f=/ ([\d.+]+)$/.exec(l),pt=f&&l.charAt(l.length-f[0].length-1)=="/",l={architecture:32,family:f&&!pt?l.replace(f[0],""):l,version:f?f[1]:null,toString:function(){var n=this.version;return this.family+(n&&!pt?" "+n:"")+(this.architecture==64?" 64-bit":"")}}),(f=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(ct))&&!/\bi686\b/i.test(ct)?(l&&(l.architecture=64,l.family=l.family.replace(RegExp(" *"+f),"")),c&&(/\bWOW64\b/i.test(n)||et&&/\w(?:86|32)$/.test(ot.cpuClass||ot.platform)&&!/\bWin64; x64\b/i.test(n))&&v.unshift("32-bit")):l&&/^OS X/.test(l.family)&&c=="Chrome"&&parseFloat(a)>=39&&(l.architecture=64),n||(n=null),tt={},tt.description=n,tt.layout=k&&k[0],tt.manufacturer=rt,tt.name=c,tt.prerelease=lt,tt.product=p,tt.ua=n,tt.version=c&&a,tt.os=l||{architecture:null,family:null,version:null,toString:function(){return"null"}},tt.parse=h,tt.toString=hi,tt.version&&v.unshift(a),tt.name&&v.unshift(c),!l||!c||l==String(l).split(" ")[0]&&(l==c.split(" ")[0]||p)||v.push(p?"("+l+")":"on "+l),v.length&&(tt.description=v.join(" ")),tt}var c={"function":!0,object:!0},u=c[typeof window]&&window||this,b=u,l=c[typeof exports]&&exports,a=c[typeof module]&&module&&!module.nodeType&&module,n=l&&a&&typeof global=="object"&&global,f;n&&(n.global===n||n.window===n||n.self===n)&&(u=n);var k=Math.pow(2,53)-1,e=/\bOpera/,d=this,v=Object.prototype,g=v.hasOwnProperty,y=v.toString;f=h();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(u.platform=f,define(function(){return f})):l&&a?s(f,function(n,t){l[t]=n}):u.platform=f}).call(this),function(n){"use strict";function f(n){try{return btoa(unescape(encodeURIComponent(n||"")))}catch(t){return""}}function k(){function nt(n){if(!n||!n.length)return!1;for(let t=0;t<n.length;t++){let i=n[t];if(i&&i.nodeType===1&&(b[i.nodeName]||i.querySelector&&i.querySelector("form,input,select,textarea")))return!0}return!1}function l(r){if(t.frames()<n.frames.length)try{n.frames[n.frames.length-1].onload=function(){let i=n.frames[n.frames.length-1].window.document.body;t.on(i,"change",s);t.on(i,"keydown",a);t.on(n.frames[n.frames.length-1].window,"beforeunload",function(){h(!1,"beforeunload")},!1);t.on(i,"click",l)}}catch(r){}let e=r.toElement||r.srcElement||{},u=(e.localName==="a"?e:tt(e,"a",10))||{};if(u.localName==="a"&&u.pathname&&u.pathname!=="void(0);"&&u.pathname!=="#"&&u.href&&u.href!=="javascrip:void(0);"&&u.href.trim().toLowerCase()!==n.location.href.trim().toLowerCase()){t.logDebug("coletando evento");let o={fingerprint:i.fingerprint,domainId:i.domainId,url:encodeURIComponent(i.url),location:encodeURIComponent(i.location),token:i.token,origin:n.location.pathname,clients:n.duToken,eventType:r.type,destiny:u.host===n.location.host?f(u.pathname):f(u.href),elementInnerHtml:e.localName==="img"?encodeURIComponent(e.src):u.innerText,elementType:u.localName,elementTitle:u.title,elementId:u.id,elementName:u.name,isExternal:u.host&&u.host!==n.location.host};e.localName==="img"&&(o.ImgTitle=e.title,o.ImgId=e.id,o.ImgName=e.name,o.ImgUrl=e.src)}}function tt(n,t,i){function r(n){return n!==null&&n.tagName!=null&&n.tagName.toUpperCase()==t.toUpperCase()?n:!1}if(r(n))return n;for(let t=0;t<(i||5);t++){if(n==null||n.parentElement==null)return null;n=n.parentElement;let t=r(n);if(t)return t}return null}function y(){t.logDebug("mapeando forms",null,!0);t.each(t.findTag("form"),function(n){v(n,!0)});let n=t.findTag("input,select,textarea");for(let t=0;t<n.length;t++)n[t].form||v(n[t],!0)}function s(n){let t=n.target;t&&["INPUT","SELECT","TEXTAREA"].indexOf(t.nodeName.toString().toUpperCase())>=0&&v(t.form?t.form:t)}function a(n){let t=null;n.target&&n.target.form&&k(n);n.keyCode===27?t="keydown:Escape":n.keyCode===116&&i.browser&&i.browser.name&&i.browser.name.toString().toUpperCase()==="FIREFOX"&&(t="keydown:F5(beforeunload)");t&&h(!0,t)}function v(n,i){function u(n){let t=e(this);n&&n.initial||(t.hasChange=!0)}function f(){let n=e(this);o(n,"submit");n.hasChange=!1}function s(){let n=p(this);n&&n.hasChange&&(o(n,"mouseleave"),n.hasChange=!1)}function h(n){t.data(this,"last-change",(new Date).getTime());n.keyCode===13&&w(this,"keydown:Enter")}function c(i){t.on(i,"click",function(){w(n,"button:click")})}if((!n||!t.data(n,"formKey"))&&(!n||!n.dataset.tagignore)){let r=t.getUniqueKey(n,"action","method","id","name");t.logDebug("monitorando formulario: "+r);i||t.data(n,"last-change",(new Date).getTime());t.data(n,"formKey",r);t.on(n,"change",u);t.on(n,"submit",f);t.on(n,"mouseleave",s);t.on(n,"keypress",h);t.each(t.query('[type="submit"]',n),c);u.call(n,{initial:i})}}function it(n){let t=(n.value!=null?String(n.value):"").toLowerCase(),i=(n.name!=null?String(n.name):"").toLowerCase();return t?i.includes("viewstate")?!0:!1:!0}function rt(){let i=n.location.href,r=document.title;return u&&u._href===i&&u._title===r?u:u={_href:i,_title:r,Url:encodeURIComponent(i),referrer:encodeURIComponent(document.referrer),urlQueryString:t.urlQueryStringToList(i),PageTitle:t.encodeString(r||"",t.limits.pageTitle)}}function p(n){let i=t.data(n,"formKey");return t.first(r,function(n){return n.FormKey===i})}function e(u,f,e){function o(){let c=t.data(u,"formKey");t.logDebug("coletando estatisticas: "+c);let o=rt(),f={Token:i.token,FormKey:c,campaign:i.campaign,Key:i.key||null,clients:n.duToken,Fingerprint:i.fingerprint,FingerprintCalc:i.fingerprintCalc,sid:i.sid,mod:i.mod,TriggerEvent:null,Headers:h(u),Url:o.Url,referrer:o.referrer,urlQueryString:o.urlQueryString,PageTitle:o.PageTitle,Method:t.attr(u,"method"),FormAction:encodeURIComponent(t.attr(u,"action")||""),Elements:s(u)},l=p(u);return l?f=t.extend(l,f):(f.wasSended=!1,f.lastTimeSended=null,r.push(f),r["form-"+r.indexOf(f)]=u),e&&e(f),f}function s(n){let i=typeof n[Symbol.iterator]=="function"&&n.tagName!="SELECT"?n:[n];return t.map(i,function(n,i){if(!n||!n.dataset.tagignore){let u=n.nodeName=="INPUT"?n.type.toUpperCase():n.nodeName;if(["SUBMIT","BUTTON","PASSWORD","HIDDEN","FILE","COLOR","IMAGE","RESET","TEXTAREA"].indexOf(u)>=0)return null;let f=u==="RADIO"||u==="CHECKBOX";if(f&&!n.checked||!f&&["SELECT","OPTION"].indexOf(u)<0&&String(n.value==null?"":n.value).trim()===""||t.isSensitiveField(n))return null;let e=t.getLabel(n),r={value:t.encodeString(n.value,t.limits.value),name:t.encodeString(t.getElementName(n,i,e),t.limits.name),type:u,title:t.encodeString(t.attr(n,"title")||t.attr(n,"placeholder"),t.limits.title),label:t.encodeString(e,t.limits.label),isGroup:!1,selected:!1};if(["SELECT","OPTION"].indexOf(r.type)>=0){let u=n.nodeName==="SELECT",i=u?t.first(t.findTag("option",n),n=>n.selected):n,f=u?n:n.parentNode;r.value=[t.encodeString(f.value||"",t.limits.value),t.encodeString(i==null||i.outerText==null?"":i.outerText,t.limits.value)].join("|")}return f&&(r.isGroup=!0,r.selected=!0,r.type==="CHECKBOX"&&(r.value=n.checked)),r}},!0)}function h(n){let i=t.findTag("h1,h2,h3,h4,h5,h6",n),r=[];for(let n=0;n<i.length&&r.length<t.limits.headers;n++)r.push(t.encodeString(i[n].nodeName)+"|"+t.encodeString(t.labelText(i[n],t.limits.header),t.limits.header));return r}if(!f)return o();setTimeout(function(){o()},100)}function h(n,i){t.nullOrUndefined(n)&&(n=!1);t.each(r,function(t,u){if(n)e(r["form-"+u]);else if(!t.hasChange)return;o(t,i);t.hasChange=!1})}function o(n,r,u){if(i.fingerprint&&i.toWatchForm){t.logDebug("enviando estatisticas");n.wasSended=!0;n.lastTimeSended=(new Date).getTime();n=t.extend({},n);n.TriggerEvent=r||"";n.Path=(i.formMapping?i.formMapping.PathUrl:null)||"";let e=((i.browser||{}).name||"").toString().toUpperCase(),o=!(r==="beforeunload"&&e==="IE"||r==="submit"&&e==="FIREFOX"),f={Ignore:!1,Name:[]};for(let t=(i.formMapping||[]).length-1;t>=0;t--)if(i.formMapping[t].FormKey==n.FormKey){f=i.formMapping[t];break}if(f.Ignore&&(n.Elements=[]),f.Name.length>1)for(let t=f.Name.length-1;t>=0;t--){let i=f.Elements[t];if(i.Ignore)for(let t=n.Elements.length-1;t>=0;t--)n.Elements[t].name==i&&n.Elements.splice(t,1)}for(let t=n.Elements.length-1;t>=0;t--)it(n.Elements[t])&&n.Elements.splice(t,1);n.Elements.length&&t.send(t.baseUrl+"home/FormRequest","form="+JSON.stringify(n,(n,t)=>{if(t!==null&&t!=="")return t}),u||function(){})}}function w(n,i){(t.hasAttr(n,"novalidate")||n.checkValidity&&n.checkValidity())&&setTimeout(function(){let t=e(n);t.hasChange&&(o(t,(i||"simulate")+"(submit)"),t.hasChange=!1)},1e3)}function ut(){for(let n=0;n<r.length;n++){let i=r["form-"+n],u=t.data(i,"last-change");if(u){t.logDebug("checagem periodica");let n=((new Date).getTime()-Number(u))/1e3;if(n>=2){let n=e(i);t.data(i,"last-change",null);(!n.lastTimeSended||n.lastTimeSended<u)&&o(n,"change")}}}}t.logDebug("registrando eventos");let r=n.forms=[];const b={FORM:1,INPUT:1,SELECT:1,TEXTAREA:1};let u=null,k=t.debounce(function(n){s(n)},1e3),d=n.frames.length;for(let i=0;i<d;i++)try{let r=n.frames[i].window.document.body;t.on(r,"change",s);t.on(r,"keydown",a);t.on(n.frames[i].window,"beforeunload",function(){h(!1,"beforeunload")},!1);t.on(r,"click",l)}catch(r){}n.ducp_mapforms=y();let c=t.findTag("body");t.frames();t.on(c,"change",s);t.on(c,"keydown",a);t.on(n,"beforeunload",function(){h(!1,"beforeunload")},!1);t.on(c,"click",l);setInterval(ut,1e3);let g=t.debounce(function(){y()},250);if(n.MutationObserver){let t=new n.MutationObserver(function(n){if(i.started)for(let t=0;t<n.length;t++)if(nt(n[t].addedNodes)){g();return}});t.observe(document.body,{attributes:!1,childList:!0,subtree:!0})}}function d(){function s(){t.logDebug("plataforma");i.browser=n.platform}function h(){let n=[],r=document.head.getElementsByTagName("meta");try{let i=0;for(let u of r){let r=u.name;r&&(r.includes("keywords")||r.includes("description")||r.includes("title"))&&(n[i++]={name:t.encodeString(u.name||""),content:t.encodeString(u.content||"")})}}catch(u){}i.meta=n}function c(){t.logDebug("cookieId");let n=r()||{};!t.isGuid(n._ducp)&&t.isGuid(i.uid)&&(n._ducp=i.uid);i.uid=i.fingerprint=i.cookie=n._ducp;i.sid=n._dusd;i.mod=n._dust;let f=n._ducppt;f!=null&&f!=""&&(i.partnersDenied=f);u(n)}async function l(){t.logDebug("load gelocation");i.ipInfo={};try{const n=await navigator.permissions.query({name:"geolocation"});if(n.state!=="granted")return;const t=await new Promise((n,t)=>navigator.geolocation.getCurrentPosition(n,t)),{latitude:r,longitude:u}=t.coords;i.ipInfo={Is_geolocated:!0,latitude:r.toFixed(7),longitude:u.toFixed(7),hotgeo:!0}}catch(n){i.ipInfo={}}}function o(){function e(r){if(t.logDebug("load client data"),!r.Success){i.toWatchForm=!1;return}const u=(n.duStarted!=null?n.duStarted:0)>3?n.duStarted:3;(i.started=n.duStarted=u,i.toWatchForm=r.Data.toWatchForm,i.formMapping=r.Data.formMapping,i.hasCookie=r.Data.hasCookie,n.duObject==null||n.duObject==undefined||n.duObject.partner!==!0)&&o(r.Data.injectScripts)}function o(i){try{if(!i||!i.length)return;n._duInjected=n._duInjected||{};let r=function(n){try{return new URL(n,document.baseURI).hostname.replace(/^www\./i,"").toLowerCase()}catch(t){return null}};for(let u=0;u<i.length;u++){let f=(i[u]||"").trim();if(f&&!n._duInjected[f]){let o=r(f),s=t.first(t.findTag("script"),function(n){return n.src?n.src===f?!0:o&&r(n.src)===o:!1});if(s){n._duInjected[f]=!0;continue}t.logDebug("inject partner script: "+f);let e=document.createElement("script");e.src=f;e.defer=!0;t.head.appendChild(e);n._duInjected[f]=!0}}}catch(r){t.log(r);t.logDebug("inject scripts",r)}}t.logDebug("load settings");let f="uid="+encodeURIComponent(i.fingerprint||"");t.nullOrUndefined(i.fingerprintCalc)||(f+="&fid="+encodeURIComponent(i.fingerprintCalc));t.isValidSid(i.sid)&&(f+="&sid="+encodeURIComponent(i.sid));t.nullOrUndefined(i.mod)||(f+="&mod="+encodeURIComponent(i.mod));t.sendJsonp(`${t.baseUrl}home/System?${f}`,function(f){if(t.logDebug("load fingerprint data"),!f||!f.Data){t.logDebug(`load failure: ${f.Message}`);return}const s=(n.duStarted!=null?n.duStarted:0)>2?n.duStarted:2;if(i.started=n.duStarted=s,t.isGuid(f.Data.fingerprint)&&t.isValidSid(f.Data.sid)){let n=r(),e=t.nullOrUndefined(f.Data.mod)?n._dust:f.Data.mod;(e>n._dust||f.Data.fingerprint!=n._ducp)&&(n._ducp=i.uid=i.fingerprint=i.cookie=f.Data.fingerprint,n._dusd=i.sid=f.Data.sid,n._dust=i.mod=e,u(n))}else t.logDebug("system: dados de identificacao invalidos, cookie preservado");f.Data.Prn&&(i.person=f.Data.Prn,u(i.person,t.cookiePerson));let o=JSON.stringify(i);o=o!=null?o:"";o.length&&t.send(t.baseUrl+"Home/SystemObject","system="+o,e)})}t.logDebug("carregando informações");try{i.url=f(n.location.href);i.referrer=encodeURIComponent(document.referrer);i.urlQueryString=t.urlQueryStringToList(n.location.href);i.location=encodeURIComponent(n.location.href);i.pageTitle=t.encodeString(t.text(t.findTag("title")[0])||"");n.duOnLoadInfo=o;let u=null,e=new Promise(async n=>{n()}),a=new Promise(async n=>{await l(),n()});const v=[e,a].map(n=>Promise.resolve(n).then(n=>({status:"fulfilled",value:n}),n=>({status:"rejected",reason:n})));Promise.all(v).then(function(){c(u);i.person=r(t.cookiePerson);i.personas=r(t.cookiePersona);s();h();o()}).catch(function(n){t.logDebug("init error",n)})}catch(e){t.log(e);t.logDebug("load info",e)}}function r(n){let u=!n||n==t.cookieName;n=n!=null?n:t.cookieName;let r=null;try{let f=n+"=",i=document.cookie.split(";"),u=i.findIndex(n=>n.trim().startsWith(f)),e=localStorage.getItem(n),t=u>=0&&!!i[u]?i[u].trim().substring(f.length):!e?null:e;try{t=!t?"{}":atob(t)}catch(o){}try{r=JSON.parse(t)}catch(o){r=null}}catch(f){t.logDebug("get cookie",f)}return u?(r=r&&typeof r=="object"?r:{},r._dufp=r._dufp!=null?r._dufp:i.fingerprintCalc,r._ducp=r._ducp!=null?r._ducp:i.uid,r._dusd=r._dusd!=null?r._dusd:i.sid,r._dust=r._dust!=null?r._dust:i.mod,r._ducppt=r._ducppt!=null?r._ducppt:"",delete r._duupd,delete r._duupdate,r):r}function g(){try{let r=localStorage.getItem("_ducp_domain");if(r!==null)return r||null;let n=location.hostname;if(!n||n==="localhost"||/^[0-9.]+$/.test(n))return localStorage.setItem("_ducp_domain",""),null;let t=n.split("."),i="_ducp_d";for(let n=2;n<=t.length;n++){let r="."+t.slice(t.length-n).join(".");document.cookie=i+"=1;domain="+r+";path=/";let u=document.cookie.indexOf(i+"=")!==-1;if(document.cookie=i+"=;expires=Thu, 01 Jan 1970 00:00:00 GMT;domain="+r+";path=/",u)return localStorage.setItem("_ducp_domain",r),r}return localStorage.setItem("_ducp_domain",""),null}catch(n){return t.logDebug("resolve cookie domain",n),null}}function u(n,i){let r=new Date,u=window.location.protocol.toLowerCase()==="https",f=7300;try{let s=!i||i==t.cookieName;i=i!=null?i:t.cookieName;let o=btoa(JSON.stringify(n));localStorage.setItem(i,o);let e=g();r.setDate(r.getDate()+f);let h=""+i+"="+o+(u?";SameSite=None;Secure=true":"")+";expires="+r.toUTCString()+(e?";domain="+e:"")+";path=/";return document.cookie=h,e&&s&&(document.cookie=i+"=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/"),n}catch(e){t.logDebug("update cookie",e)}}__ducp_data__.isDebug=__ducp_data__.isDebug||location.search.includes("debug");let e=function(n){let t="DataTag.Error"+(!n.lineno?"":" (ln:"+n.lineno+", col:"+n.colno+")")+":\n"+(n.message||n);__ducp_data__.isDebug&&console&&console.log(t);__ducp_data__.isDebugAlert&&alert(t)};n.addEventListener&&n.addEventListener("error",e);n.hasOwnProperty("localStorage")||(n.localStorage={_data:{},setItem:function(n,t){return this._data[n]=JSON.stringify(t)},getItem:function(n){return this._data.hasOwnProperty(n)?this._data[n]:undefined},removeItem:function(n){try{return delete this._data[n]}catch(t){return null}},clear:function(){return this._data={}}});/MSIE (\d+\.\d+);/.test(navigator.userAgent)&&(n.JSON=n.JSON||{parse:function(n){return eval("("+n+")")},stringify:function(){let t=Object.prototype.toString,i=Array.isArray||function(n){return t.call(n)==="[object Array]"},r={'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},u=function(n){return r[n]||"\\u"+(n.charCodeAt(0)+65536).toString(16).substr(1)},f=/[\\"\u0000-\u001F\u2028\u2029]/g;return function n(r){if(r==null)return"null";if(typeof r=="number")return isFinite(r)?r.toString():"null";if(typeof r=="boolean")return r.toString();if(typeof r=="object"){if(typeof r.toJSON=="function")return n(r.toJSON());if(i(r)){let t="[";for(let i=0;i<r.length;i++)t+=(i?", ":"")+n(r[i]);return t+"]"}if(t.call(r)==="[object Object]"){let t=[];for(let i in r)r.hasOwnProperty(i)&&t.push(n(i)+": "+n(r[i]));return"{"+t.join(", ")+"}"}}return'"'+r.toString().replace(f,u)+'"'}}()});let i={uid:__ducp_data__.uid,sid:__ducp_data__.sid,mod:__ducp_data__.mod,token:__ducp_data__.token,campaign:__ducp_data__.campaign,key:__ducp_data__.key,urlTagId:__ducp_data__.urlTagid,average:__ducp_data__.average,urlRequest:__ducp_data__.urlRequest,isDebug:__ducp_data__.isDebug,isDebugAlert:__ducp_data__.isDebugAlert,fingerprint:__ducp_data__.uid,fingerprintCalc:null,url:null,urlQueryString:[],referrer:null,pageTitle:null,browser:null,cookie:null,allowBrowserGeolocation:!1,toWatchForm:!1,formMapping:null,ipInfo:null,partnersDenied:null,documentUrl:f(document.URL),clients:[],person:{},personas:[],needChangeCookie:!1,started:n.duStarted!=null?n.duStarted:0};const o=/name/i,s=/id$/i,h=/[^\w\d\-_]/gi,c=/\s+/g,l=/[^a-z0-9]/g,a=/display\s*:\s*none|visibility\s*:\s*hidden/i,v=/^[\d\s.\-]+$/,y=/[^\d]/g,p=/(senha|password|passwd|pwd|cvv|cvc|csc|codigoseguranca|securitycode|cardnumber|numerocartao|cartaocredito|creditcard|ccnum|onetimecode|^pin$|^otp$)/,w=/^(cc-number|cc-csc|cc-exp|cc-exp-month|cc-exp-year|cc-name|current-password|new-password|one-time-code)$/;let t={cookieName:"_ducp",cookiePersona:"_ducprs",cookiePerson:"_duprn",baseUrl:__ducp_data__.baseUrl,body:document.getElementsByTagName("body")[0],head:document.getElementsByTagName("head")[0],_frames:0,_labels:null,frames:function(){return t._frames==0&&(t._frames=n.frames.length),t._frames},log:function(t){n.console&&console.log(t)},logDebug:function(t,r,u){if(i.isDebug&&(document.readyState!=="complete"&&(u=!0),console&&console[r?"error":"log"](t),i.isDebugAlert&&!u)){n._debugBox||(n._debugBox=document.createElement("div"),n._debugBox.setAttribute("style","background:black;position:fixed;display:block;color:white;width:275px;z-index:99999;padding:1px 10px;right:0px;overflow-y:scroll;bottom:0;top:61px;opacity:0.7;"),document.body[document.body.firstChild?"insertBefore":"appendChild"](n._debugBox,document.body.firstChild));let f=document.createElement("div");f.innerHTML=t+(!r?"":": "+r.toString());f.setAttribute("style","display: block;margin: 10px 0;");n._debugBox.appendChild(f);n._debugBox.scrollTop=n._debugBox.scrollHeight}},findTag:function(n,i){function u(n){return(i||document).getElementsByTagName(n)}let r=[];return n.indexOf(",")>0?t.each(n.split(","),function(n){let t=u(n.trim());for(let n=0;n<t.length;n++)r.push(t[n])}):r=u(n),r},query:function(n,t){return document.querySelectorAll?(t||document).querySelectorAll(n):[]},on:function(n,r,u){function f(n){if(n.addEventListener){if(n.addEventListener(r,u,!1),i.browser&&i.browser.name&&i.browser.name.toString().toUpperCase()==="IE")switch(r){case"beforeunload":n.addEventListener("unload",u)}}else{r="on"+r;switch(r){case"onbeforeunload":r="onunload"}let i=t.data(n,r);if(i){i.push(u);t.data(n,r,i);return}t.data(n,r,[u]);n[r]=function(){let i=this,u=arguments;t.each(t.data(n,r),function(n){n.apply(i,u)})}}}n.length&&!t.isForm(n)&&n!==window?t.each(n,function(n){f(n)}):f(n)},each:function(n,t){if(t)for(let i=0;i<n.length;i++)t(n[i],i)},map:function(n,i,r){if(!i)return null;let u=[];return t.each(n,function(n,f){let e=i(n,f);r&&t.nullOrUndefined(e)||u.push(e)}),u},first:function(n,t){if(!t||!n)return null;for(let i=0;i<n.length;i++){let r=t(n[i],i);if(r!==!1&&r!==undefined&&r!==null)return n[i]}return null},isForm:function(n){return t.ofNodeType(n,"FORM")},attr:function(n,t,i){return i&&n.setAttribute(t,i),n.getAttribute(t)},getElementName:function(n,i,r){if(!n||!n.type||!n.attributes||!n.dataset)return n&&["OPTION"].indexOf(n.nodeName)>=0?[this.getElementName(n.parentNode),n.outerText].join("|"):"unknown-"+i;if(["SUBMIT","BUTTON"].indexOf(n.nodeName)>=0)return n.outerText||n.title;if(n.dataset.tagname)return n.dataset.tagname;if(n.name)return n.name;if(n.id)return n.id;let u=null,f=null,c=n.attributes;for(let n=0;n<c.length;n++){const t=c[n];if(t.value&&typeof t.value=="string"&&(!u&&o.test(t.name)&&t.name!="classname"&&(u=t.value),!f&&s.test(t.name)&&(f=t.value),u&&f))break}if(u||f)return u!=null?u:f;if(n.getAttribute("title"))return n.getAttribute("title");let e=arguments.length>2?r:t.getLabel(n);return e!=null&&(e=e.replace(h,""),e!="")?e:n.getAttribute("placeholder")?n.getAttribute("placeholder"):"unnamed-"+i},hasAttr:function(n,t){return n.hasAttribute(t)},data:function(n,i,r){return(n.mydata=n.mydata||{},t.nullOrUndefined(i))?n.mydata:(r!==undefined&&(n.mydata[i]=r),n.mydata[i])},parent:function(n){return n==null?null:n.parentElement},ofNodeType:function(n,t){return n==null?!1:(n.nodeName||"").toString().toUpperCase()===t.toString().toUpperCase()},getIndex:function(n){let r=t.parent(n);if(r==null)return null;let i=null;return t.first(r.children,function(t,r){return t===n&&(i=r),i}),i},prev:function(n,i,r){let u=t.getIndex(n);if(!u)return null;let f=t.parent(n).children;if(i){r||(r=u);for(let n=u-1;n>=0;n--){if(r--,t.ofNodeType(f[n],i))return f[n];if(r===0)return null}return null}return f[u-1]},text:function(n,t){return t||(n||{innerText:""}).innerText},send:function(i,r,u,f,e,o,s){function l(){if(h.readyState===4){try{o&&o()}catch(n){}h.status===200?u&&h.responseText&&u(JSON.parse(h.responseText)):[401,403,404,500].indexOf(h.status)>=0&&f&&h.responseText&&f(JSON.parse(h.responseText))}}let h;h=n.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");t.logDebug("** async req");const c=e===undefined?!0:e;if(h.open("POST",i,c),h.setRequestHeader("Content-type","application/x-www-form-urlencoded"),c&&s>0)try{h.timeout=s}catch(a){}h.onreadystatechange=l;h.send(r,!0)},sendJsonp:function(i,r,u,f){u=u||function(){};f=f||1e3;t.logDebug("send callback");let e="jsonp_callback_"+Math.round(1e5*Math.random()),s=setTimeout(u,f);n[e]=function(t){n.clearTimeout(s);r(t);try{delete n[e]}catch(i){}};let o=document.createElement("script");o.src=i+(i.indexOf("?")>=0?"&":"?")+"callback="+e;o.id=e;o.async=!0;document.body.appendChild(o)},extend:function(n,t){if(t)for(let i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);return n},nullOrUndefined:function(n){return n===null||n===undefined},isGuid:function(n){return typeof n=="string"&&/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(n)},isValidSid:function(n){let t=Number(n);return isFinite(t)&&t>0},getUniqueKey:function(n){function r(n){function a(n,t){return n<<t|n>>>32-t}function o(n,t){var f,e,r,u,i;return(r=n&2147483648,u=t&2147483648,f=n&1073741824,e=t&1073741824,i=(n&1073741823)+(t&1073741823),f&e)?i^2147483648^r^u:f|e?i&1073741824?i^3221225472^r^u:i^1073741824^r^u:i^r^u}function yt(n,t,i){return n&t|~n&i}function pt(n,t,i){return n&i|t&~i}function wt(n,t,i){return n^t^i}function bt(n,t,i){return t^(n|~i)}function s(n,t,i,r,u,f,e){return n=o(n,o(o(yt(t,i,r),u),e)),o(a(n,f),t)}function h(n,t,i,r,u,f,e){return n=o(n,o(o(pt(t,i,r),u),e)),o(a(n,f),t)}function c(n,t,i,r,u,f,e){return n=o(n,o(o(wt(t,i,r),u),e)),o(a(n,f),t)}function l(n,t,i,r,u,f,e){return n=o(n,o(o(bt(t,i,r),u),e)),o(a(n,f),t)}function kt(n){for(var r,u=n.length,o=u+8,s=(o-o%64)/64,e=(s+1)*16,i=Array(e-1),f=0,t=0;t<u;)r=(t-t%4)/4,f=t%4*8,i[r]=i[r]|n.charCodeAt(t)<<f,t++;return r=(t-t%4)/4,f=t%4*8,i[r]=i[r]|128<<f,i[e-2]=u<<3,i[e-1]=u>>>29,i}function v(n){for(var i="",r="",u,t=0;t<=3;t++)u=n>>>t*8&255,r="0"+u.toString(16),i=i+r.substr(r.length-2,2);return i}function dt(n){var i,r,t;for(n=n.replace(/rn/g,"n"),i="",r=0;r<n.length;r++)t=n.charCodeAt(r),t<128?i+=String.fromCharCode(t):t>127&&t<2048?(i+=String.fromCharCode(t>>6|192),i+=String.fromCharCode(t&63|128)):(i+=String.fromCharCode(t>>12|224),i+=String.fromCharCode(t>>6&63|128),i+=String.fromCharCode(t&63|128));return i}var e=Array(),f,ht,ct,lt,at,t,i,r,u,y=7,p=12,w=17,b=22,k=5,d=9,g=14,nt=20,tt=4,it=11,rt=16,ut=23,ft=6,et=10,ot=15,st=21,vt;for(n=dt(n),e=kt(n),t=1732584193,i=4023233417,r=2562383102,u=271733878,f=0;f<e.length;f+=16)ht=t,ct=i,lt=r,at=u,t=s(t,i,r,u,e[f+0],y,3614090360),u=s(u,t,i,r,e[f+1],p,3905402710),r=s(r,u,t,i,e[f+2],w,606105819),i=s(i,r,u,t,e[f+3],b,3250441966),t=s(t,i,r,u,e[f+4],y,4118548399),u=s(u,t,i,r,e[f+5],p,1200080426),r=s(r,u,t,i,e[f+6],w,2821735955),i=s(i,r,u,t,e[f+7],b,4249261313),t=s(t,i,r,u,e[f+8],y,1770035416),u=s(u,t,i,r,e[f+9],p,2336552879),r=s(r,u,t,i,e[f+10],w,4294925233),i=s(i,r,u,t,e[f+11],b,2304563134),t=s(t,i,r,u,e[f+12],y,1804603682),u=s(u,t,i,r,e[f+13],p,4254626195),r=s(r,u,t,i,e[f+14],w,2792965006),i=s(i,r,u,t,e[f+15],b,1236535329),t=h(t,i,r,u,e[f+1],k,4129170786),u=h(u,t,i,r,e[f+6],d,3225465664),r=h(r,u,t,i,e[f+11],g,643717713),i=h(i,r,u,t,e[f+0],nt,3921069994),t=h(t,i,r,u,e[f+5],k,3593408605),u=h(u,t,i,r,e[f+10],d,38016083),r=h(r,u,t,i,e[f+15],g,3634488961),i=h(i,r,u,t,e[f+4],nt,3889429448),t=h(t,i,r,u,e[f+9],k,568446438),u=h(u,t,i,r,e[f+14],d,3275163606),r=h(r,u,t,i,e[f+3],g,4107603335),i=h(i,r,u,t,e[f+8],nt,1163531501),t=h(t,i,r,u,e[f+13],k,2850285829),u=h(u,t,i,r,e[f+2],d,4243563512),r=h(r,u,t,i,e[f+7],g,1735328473),i=h(i,r,u,t,e[f+12],nt,2368359562),t=c(t,i,r,u,e[f+5],tt,4294588738),u=c(u,t,i,r,e[f+8],it,2272392833),r=c(r,u,t,i,e[f+11],rt,1839030562),i=c(i,r,u,t,e[f+14],ut,4259657740),t=c(t,i,r,u,e[f+1],tt,2763975236),u=c(u,t,i,r,e[f+4],it,1272893353),r=c(r,u,t,i,e[f+7],rt,4139469664),i=c(i,r,u,t,e[f+10],ut,3200236656),t=c(t,i,r,u,e[f+13],tt,681279174),u=c(u,t,i,r,e[f+0],it,3936430074),r=c(r,u,t,i,e[f+3],rt,3572445317),i=c(i,r,u,t,e[f+6],ut,76029189),t=c(t,i,r,u,e[f+9],tt,3654602809),u=c(u,t,i,r,e[f+12],it,3873151461),r=c(r,u,t,i,e[f+15],rt,530742520),i=c(i,r,u,t,e[f+2],ut,3299628645),t=l(t,i,r,u,e[f+0],ft,4096336452),u=l(u,t,i,r,e[f+7],et,1126891415),r=l(r,u,t,i,e[f+14],ot,2878612391),i=l(i,r,u,t,e[f+5],st,4237533241),t=l(t,i,r,u,e[f+12],ft,1700485571),u=l(u,t,i,r,e[f+3],et,2399980690),r=l(r,u,t,i,e[f+10],ot,4293915773),i=l(i,r,u,t,e[f+1],st,2240044497),t=l(t,i,r,u,e[f+8],ft,1873313359),u=l(u,t,i,r,e[f+15],et,4264355552),r=l(r,u,t,i,e[f+6],ot,2734768916),i=l(i,r,u,t,e[f+13],st,1309151649),t=l(t,i,r,u,e[f+4],ft,4149444226),u=l(u,t,i,r,e[f+11],et,3174756917),r=l(r,u,t,i,e[f+2],ot,718787259),i=l(i,r,u,t,e[f+9],st,3951481745),t=o(t,ht),i=o(i,ct),r=o(r,lt),u=o(u,at);return vt=v(t)+v(i)+v(r)+v(u),vt.toString().toLowerCase()}let i=t.getFormNameElements(n).sort().join("|");return t.each(arguments,function(r,u){u!==0&&(i+="|"+(t.attr(n,r)||""))}),r(i)},urlQueryStringToList:function(n){let t=[];try{let i=n.includes("?")?n.split("?")[1]:null;if(i){i[i.length-1]==="&"&&(i=i.substr(0,i.length-1));let n=(i||"").split("&");for(let i=0;i<n.length;i++){let r=decodeURI(n[i]).replace(/"/g,'\\"').replace("%2f","").replace("\\","").split("=");r.length==2&&r[0]&&r[1]&&t.push(r.join("="))}}}catch(i){}return t},getFormNameElements:function(n){return t.map(n,function(n,i){return["submit","button"].indexOf(n.type)>=0?null:t.getElementName(n,i)},!0)},debounce:function(n,t,i){let r;return function(){let u=this,f=arguments,e=function(){r=null;i||n.apply(u,f)},o=i&&!r;clearTimeout(r);r=setTimeout(e,t);o&&n.apply(u,f)}},limits:{text:512,value:512,name:150,title:150,label:150,header:150,headers:30,pageTitle:512,nodes:1500},truncate:function(n,i){if(n==null||(n=String(n),i=i||t.limits.text,n.length<=i))return n;let r=n.substr(0,i),u=r.charCodeAt(r.length-1);return u>=55296&&u<=56319&&(r=r.substr(0,r.length-1)),r},textDenyTags:{SCRIPT:1,STYLE:1,NOSCRIPT:1,TEMPLATE:1,IFRAME:1},labelDenyTags:{HTML:1,HEAD:1,BODY:1,SCRIPT:1,STYLE:1,NOSCRIPT:1,TEMPLATE:1,IFRAME:1,SVG:1,FORM:1,MAIN:1,NAV:1,HEADER:1,FOOTER:1,ASIDE:1,SECTION:1,TABLE:1,TBODY:1,UL:1,OL:1},labelStopTags:{BODY:1,HTML:1,HEAD:1,TEMPLATE:1},isHiddenNode:function(n){if(n.hidden)return!0;if(!n.getAttribute)return!1;if(n.getAttribute("aria-hidden")==="true")return!0;let t=n.getAttribute("style");return!!t&&a.test(t)},isLabelCandidate:function(n){return!n||n.nodeType!==1?!1:t.labelDenyTags[String(n.nodeName).toUpperCase()]?!1:n.querySelector&&n.querySelector("input,select,textarea,button,form,script,style,iframe")?!1:!0},boundedText:function(n,i){let r="",u=!0;if(!n)return{text:r,complete:u};i=i||t.limits.label;let f=[n],e=0;while(f.length){if(r.length>=i||e++>=t.limits.nodes){u=!1;break}let n=f.pop();if(n.nodeType===3){r+=n.nodeValue;continue}if(n.nodeType===1&&!t.textDenyTags[String(n.nodeName).toUpperCase()]&&!t.isHiddenNode(n))for(let t=n.childNodes.length-1;t>=0;t--)f.push(n.childNodes[t])}return{text:r,complete:u}},labelText:function(n,i){return n?(i=i||t.limits.label,t.truncate(t.boundedText(n,i).text.replace(c," ").trim(),i)):""},prevElement:function(n){let i=t.getIndex(n);return i?t.parent(n).children[i-1]:null},siblingLabelText:function(n){let i=t.prevElement(n);if(!t.isLabelCandidate(i))return null;let r=t.labelText(i,t.limits.label);return r?r:null},luhn:function(n){let i=0,t=!1;for(let r=n.length-1;r>=0;r--){let u=n.charCodeAt(r)-48;t&&(u*=2,u>9&&(u-=9));i+=u;t=!t}return n.length>0&&i%10==0},isCnpj:function(n){if(n.length!==14)return!1;let t=function(t){let u=t===12?[5,4,3,2,9,8,7,6,5,4,3,2]:[6,5,4,3,2,9,8,7,6,5,4,3,2],i=0;for(let r=0;r<t;r++)i+=(n.charCodeAt(r)-48)*u[r];let r=i%11;return r<2?0:11-r};return t(12)===n.charCodeAt(12)-48&&t(13)===n.charCodeAt(13)-48},isCreditCard:function(n){let r=String(n==null?"":n).trim();if(!r||!v.test(r))return!1;let i=r.replace(y,"");return[13,14,15,16,19].indexOf(i.length)<0?!1:i.length===14&&t.isCnpj(i)?!1:t.luhn(i)},isSensitiveField:function(n){let r=(t.attr(n,"autocomplete")||"").toLowerCase().trim();if(r&&w.test(r))return!0;let i=[n.name,n.id,t.attr(n,"placeholder"),t.attr(n,"aria-label")];for(let n=0;n<i.length;n++)if(i[n]&&p.test(String(i[n]).toLowerCase().replace(l,"")))return!0;return t.isCreditCard(n.value)},encodeString:function(n,i){if(n==null||(n=t.truncate(String(n),i||t.limits.text),n.trim()==""))return null;try{return encodeURIComponent(n).replace(/%5C/g,"%5C%5C").replace(/%22/g,"%5C%22")}catch(r){return t.logDebug("encodeString",r,!0),null}},getLabel:function(n){let i=null,r=null;if(n.labels&&n.labels.length&&(n.id&&(i=t.first(n.labels,function(i){let r=t.attr(i,"for");return r&&r===n.id})),i||(i=n.labels[0])),!i&&n.id&&(t._labels=t._labels||document.getElementsByTagName("label"),i=t.first(t._labels,function(i){let r=t.attr(i,"for");return r&&r===n.id})),!i){let r=t.parent(n);t.ofNodeType(r,"label")&&(i=r)}if(i||(i=t.prev(n,"label",2)),i||(r=t.siblingLabelText(n)),!i&&r==null){let u=t.parent(n),f=3;while(f>0&&u&&!i&&r==null){if(u=t.parent(u),!u||t.labelStopTags[String(u.nodeName).toUpperCase()])break;t.ofNodeType(u,"label")?i=u:(i=t.prev(u,"label",2),i||(r=t.siblingLabelText(u)));f--}}return!i&&r==null?null:n.tagName==="SELECT"?(n.name||"").trim():i?t.labelText(i,t.limits.label):r},updatePersonaCookie:function(n){try{t.logDebug("update persona");t.send(t.baseUrl+"Home/SystemPersona","system="+JSON.stringify({token:i.token,fingerprint:i.fingerprint,sid:i.sid}),function(r){try{i.personas=r;n(r,t.cookiePersona)}catch(u){console.log(u)}},function(n){t.log(n);t.logDebug("update persona",n)},!0)}catch(r){t.log(r);t.logDebug("update persona",r)}}};n.log=t.log;n.logDebug=t.logDebug;n.NODEBUG=!i.isDebug;n.addEventListener&&(n.removeEventListener("error",e),i.isDebug&&n.addEventListener("error",function(n){let i="Unhandled.Error"+(!n.lineno?"":" (ln:"+n.lineno+", col:"+n.colno+")")+":\n"+(n.message||n);t.logDebug(i)}));let b=function(){function e(){if(document.readyState!=="complete"){t.stoOnLoad=setTimeout(e,10);return}t.logDebug("start tag script");i.campaign=i.campaign?i.campaign={name:i.campaign}:null;d();k();const r=(n.duStarted!=null?n.duStarted:0)>1?n.duStarted:1;i.started=n.duStarted=r}if(t.baseUrl+=t.baseUrl[t.baseUrl.length-1]=="/"?"":"/",t.stoOnLoad){t.logDebug("tag script is already loaded");return}t.logDebug("start tag setup on: "+navigator.userAgent);t.stoOnLoad=1;n.duToken==null&&(n.duToken=[]);for(let t of n.duToken)if(t.token==i.token)return;if(n.duToken.push({token:i.token,campaign:i.campaign,key:i.key}),i.clients=n.duToken,n.duToken.length>1){t.logDebug("aditional token was loaded");!i.started||n.duOnLoadInfo();return}e();let f=!1;const o=setInterval(function(n){try{if(f||!n.started||!document.hasFocus())return;f=!0;t.send(t.baseUrl+"Home/KeepAlive","system="+JSON.stringify({token:n.token,fingerprint:n.fingerprint,fingerprintCalc:n.fingerprintCalc,sid:n.sid,mod:n.mod,url:n.url,Clients:n.clients}),function(n){const e=n&&typeof n.Message=="string"?n.Message:"";if(e.indexOf("Client not found")===0||e.indexOf("Inactive domain")===0){t.logDebug("keepAlive: "+e+", timer encerrado");clearInterval(o);return}if(!n||n.Success!==!0||!t.isGuid(n.Uid)||!t.isValidSid(n.Sid)){t.logDebug("keepAlive: resposta invalida/erro, identidade local preservada");return}let f=r();(n.Mod>f._dust||n.Uid!=f._ducp)&&(f._dust=i.mod=n.Mod,f._ducp=i.uid=i.fingerprint=n.Uid,f._dusd=i.sid=n.Sid,u(f))},undefined,undefined,function(){f=!1},2e4)}catch(e){f=!1;t.logDebug("keepAlive",e)}},25e3,i)};b()}.apply({},[window]),function(n){"use strict";function i(){t.baseUrl+=t.baseUrl[t.baseUrl.length-1]=="/"?"":"/";n.du={send:t.send};n.addEventListener("mouseout",t.mouseListener);setInterval(function(){t.sendData()},7e3);t.setCampaign()}var t={baseUrl:__ducp_data__.baseUrl,dataSending:!1,params:{banner:[],category:[],hasValue:function(){return t.params.banner.length>0||t.params.category.length>0},response:[]},send:function(n,i,r){var u=t.isArray(i);if(n=n.toLowerCase(),!t.isValidMethod(n)){r({success:!1,message:"Invalid method"});return}t.setValue(n,i,u);r!==null&&r!==undefined&&t.params.response.push(r)},waitToSendData:function(){setTimeout(function(){t.sendData()},3e3)},isValidMethod:function(n){switch(n){case"banner":return!0;case"category":return!0;default:return!1}},setValue:function(n,i,r){r?t.params[n]=t.params[n].concat(i):t.params[n].push(i)},sendData:function(){if(t.params.hasValue()&&(!t.params.hasValue()||!t.dataSending)&&__ducp_data__.methodSystemCompleted){var n={category:t.params.category,banner:t.params.banner,fingerprint:__ducp_data__.fingerprint,urlReferrer:document.referrer,token:__ducp_data__.token};t.dataSending=!0;t.makeRequest(t.baseUrl+"home/systeminfo","system="+JSON.stringify(n),t.responseSuccess,t.responseError)}},sendResponse:function(n){for(let r=0;r<t.params.response.length;r++){var i=t.params.response[r];i({success:n})}t.dataSending=!1},responseSuccess:function(){t.sendResponse(!0);t.cleanData()},responseError:function(){t.sendResponse(!1)},cleanData:function(){t.params.banner=[];t.params.category=[];t.params.response=[];t.dataSending=!1},isArray:function(n){return Object.prototype.toString.call(n)==="[object Array]"},makeRequest:function(t,i,r,u,f){try{var e;e=n.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");e.open("POST",t,f===undefined?!0:f);e.setRequestHeader("Content-type","application/x-www-form-urlencoded");e.onreadystatechange=function(){e.readyState===4&&(e.status===200?r&&e.responseText&&r(JSON.parse(e.responseText)):[401,403,404,500].indexOf(e.status)>=0&&u&&e.responseText&&u(JSON.parse(e.responseText)))};e.send(i,!0)}catch(o){console.log("err send data",o);u()}},mouseListener:function(n){n.toElement===null&&t.sendData()},setCampaign:function(){if(t.hasCampaign()){var n=t.getCampaignValues();t.send("banner",n)}},hasCampaign:function(){var t=n.location.search.match(/ducp=/);return t!==null},getCampaignValues:function(){for(var u,f=n.location.search.replace("?",""),i=f.split("&"),r=[],t=0;t<i.length;t++)(u=i[t].match(/ducp=/),u!==null)&&r.push(i[t].replace("ducp=",""));return r}};i()}.apply({},[window])