text: !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).ackeeTracker=e()}}((function(){return function e(t,r,n){function i(a,l){if(!r[a]){if(!t[a]){var s="function"==typeof require&&require;if(!l&&s)return s(a,!0);if(o)return o(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var c=r[a]={exports:{}};t[a][0].call(c.exports,(function(e){return i(t[a][1][e]||e)}),c,c.exports,e,t,r,n)}return r[a].exports}for(var o="function"==typeof require&&require,a=0;a<n.length;a++)i(n[a]);return i}({1:[function(e,t,r){(function(e){(function(){"use strict";var n={function:!0,object:!0},i=n[typeof window]&&window||this,o=n[typeof r]&&r,a=n[typeof t]&&t&&!t.nodeType&&t,l=o&&a&&"object"==typeof e&&e;!l||l.global!==l&&l.window!==l&&l.self!==l||(i=l);var s=Math.pow(2,53)-1,u=/\bOpera/,c=Object.prototype,b=c.hasOwnProperty,d=c.toString;function p(e){return(e=String(e)).charAt(0).toUpperCase()+e.slice(1)}function f(e){return e=x(e),/^(?:webOS|i(?:OS|P))/.test(e)?e:p(e)}function h(e,t){for(var r in e)b.call(e,r)&&t(e[r],r,e)}function S(e){return null==e?p(e):d.call(e).slice(8,-1)}function m(e){return String(e).replace(/([ -])(?!$)/g,"$1?")}function g(e,t){var r=null;return function(e,t){var r=-1,n=e?e.length:0;if("number"==typeof n&&n>-1&&n<=s)for(;++r<n;)t(e[r],r,e);else h(e,t)}(e,(function(n,i){r=t(r,n,i,e)})),r}function x(e){return String(e).replace(/^ +| +$/g,"")}var y=function e(t){var r=i,n=t&&"object"==typeof t&&"String"!=S(t);n&&(r=t,t=null);var o=r.navigator||{},a=o.userAgent||"";t||(t=a);var l,s,c,b,p,y=n?!!o.likeChrome:/\bChrome\b/.test(t)&&!/internal|\n/i.test(d.toString()),v=n?"Object":"ScriptBridgingProxyObject",O=n?"Object":"Environment",w=n&&r.java?"JavaPackage":S(r.java),M=n?"Object":"RuntimeObject",P=/\bJava/.test(w)&&r.java,E=P&&S(r.environment)==O,k=P?"a":"α",C=P?"b":"β",W=r.document||{},A=r.operamini||r.opera,T=u.test(T=n&&A?A["[[Class]]"]:S(A))?T:A=null,B=t,I=[],j=null,R=t==a,F=R&&A&&"function"==typeof A.version&&A.version(),G=g([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"],(function(e,r){return e||RegExp("\\b"+(r.pattern||m(r))+"\\b","i").exec(t)&&(r.label||r)})),$=function(e){return g(e,(function(e,r){return e||RegExp("\\b"+(r.pattern||m(r))+"\\b","i").exec(t)&&(r.label||r)}))}(["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"},"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"]),N=K([{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"]),X=function(e){return g(e,(function(e,r,n){return e||(r[N]||r[/^[a-z]+(?: +[a-z]+\b)*/i.exec(N)]||RegExp("\\b"+m(n)+"(?:\\b|\\w*\\d)","i").exec(t))&&n}))}({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=function(e){return g(e,(function(e,r){var n=r.pattern||m(r);return!e&&(e=RegExp("\\b"+n+"(?:/[\\d.]+|[ \\w.]*)","i").exec(t))&&(e=function(e,t,r){var n={"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&&r&&/^Win/i.test(e)&&!/^Windows Phone /i.test(e)&&(n=n[/[\d.]+$/.exec(e)])&&(e="Windows "+n),e=String(e),t&&r&&(e=e.replace(RegExp(t,"i"),r)),e=f(e.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])}(e,n,r.label||r)),e}))}(["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 "]);function K(e){return g(e,(function(e,r){var n=r.pattern||m(r);return!e&&(e=RegExp("\\b"+n+" *\\d+[.\\w_]*","i").exec(t)||RegExp("\\b"+n+" *\\w+-[\\w]*","i").exec(t)||RegExp("\\b"+n+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(t))&&((e=String(r.label&&!RegExp(n,"i").test(r.label)?r.label:e).split("/"))[1]&&!/[\d.]+/.test(e[0])&&(e[0]+=" "+e[1]),r=r.label||r,e=f(e[0].replace(RegExp(n,"i"),r).replace(RegExp("; *(?:"+r+"[_-])?","i")," ").replace(RegExp("("+r+")[-_.]?(\\w)","i"),"$1 $2"))),e}))}if(G&&(G=[G]),X&&!N&&(N=K([X])),(l=/\bGoogle TV\b/.exec(N))&&(N=l[0]),/\bSimulator\b/i.test(t)&&(N=(N?N+" ":"")+"Simulator"),"Opera Mini"==$&&/\bOPiOS\b/.test(t)&&I.push("running in Turbo/Uncompressed mode"),"IE"==$&&/\blike iPhone OS\b/.test(t)?(X=(l=e(t.replace(/like iPhone OS/,""))).manufacturer,N=l.product):/^iP/.test(N)?($||($="Safari"),L="iOS"+((l=/ OS ([\d_]+)/i.exec(t))?" "+l[1].replace(/_/g,"."):"")):"Konqueror"!=$||/buntu/i.test(L)?X&&"Google"!=X&&(/Chrome/.test($)&&!/\bMobile Safari\b/i.test(t)||/\bVita\b/.test(N))||/\bAndroid\b/.test(L)&&/^Chrome/.test($)&&/\bVersion\//i.test(t)?($="Android Browser",L=/\bAndroid\b/.test(L)?L:"Android"):"Silk"==$?(/\bMobi/i.test(t)||(L="Android",I.unshift("desktop mode")),/Accelerated *= *true/i.test(t)&&I.unshift("accelerated")):"PaleMoon"==$&&(l=/\bFirefox\/([\d.]+)\b/.exec(t))?I.push("identifying as Firefox "+l[1]):"Firefox"==$&&(l=/\b(Mobile|Tablet|TV)\b/i.exec(t))?(L||(L="Firefox OS"),N||(N=l[1])):!$||(l=!/\bMinefield\b/i.test(t)&&/\b(?:Firefox|Safari)\b/.exec($))?($&&!N&&/[\/,]|^[^(]+?\)/.test(t.slice(t.indexOf(l+"/")+8))&&($=null),(l=N||X||L)&&(N||X||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(L))&&($=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(L)?L:l)+" Browser")):"Electron"==$&&(l=(/\bChrome\/([\d.]+)\b/.exec(t)||0)[1])&&I.push("Chromium "+l):L="Kubuntu",F||(F=g(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",m($),"(?:Firefox|Minefield|NetFront)"],(function(e,r){return e||(RegExp(r+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(t)||0)[1]||null}))),(l=("iCab"==G&&parseFloat(F)>3?"WebKit":/\bOpera\b/.test($)&&(/\bOPR\b/.test(t)?"Blink":"Presto"))||/\b(?:Midori|Nook|Safari)\b/i.test(t)&&!/^(?:Trident|EdgeHTML)$/.test(G)&&"WebKit"||!G&&/\bMSIE\b/i.test(t)&&("Mac OS"==L?"Tasman":"Trident")||"WebKit"==G&&/\bPlayStation\b(?! Vita\b)/i.test($)&&"NetFront")&&(G=[l]),"IE"==$&&(l=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(t)||0)[1])?($+=" Mobile",L="Windows Phone "+(/\+$/.test(l)?l:l+".x"),I.unshift("desktop mode")):/\bWPDesktop\b/i.test(t)?($="IE Mobile",L="Windows Phone 8.x",I.unshift("desktop mode"),F||(F=(/\brv:([\d.]+)/.exec(t)||0)[1])):"IE"!=$&&"Trident"==G&&(l=/\brv:([\d.]+)/.exec(t))&&($&&I.push("identifying as "+$+(F?" "+F:"")),$="IE",F=l[1]),R){if(b="global",p=null!=(c=r)?typeof c[b]:"number",/^(?:boolean|number|string|undefined)$/.test(p)||"object"==p&&!c[b])S(l=r.runtime)==v?($="Adobe AIR",L=l.flash.system.Capabilities.os):S(l=r.phantom)==M?($="PhantomJS",F=(l=l.version||null)&&l.major+"."+l.minor+"."+l.patch):"number"==typeof W.documentMode&&(l=/\bTrident\/(\d+)/i.exec(t))?(F=[F,W.documentMode],(l=+l[1]+4)!=F[1]&&(I.push("IE "+F[1]+" mode"),G&&(G[1]=""),F[1]=l),F="IE"==$?String(F[1].toFixed(1)):F[0]):"number"==typeof W.documentMode&&/^(?:Chrome|Firefox)\b/.test($)&&(I.push("masking as "+$+" "+F),$="IE",F="11.0",G=["Trident"],L="Windows");else if(P&&(B=(l=P.lang.System).getProperty("os.arch"),L=L||l.getProperty("os.name")+" "+l.getProperty("os.version")),E){try{F=r.require("ringo/engine").version.join("."),$="RingoJS"}catch(e){(l=r.system)&&l.global.system==r.system&&($="Narwhal",L||(L=l[0].os||null))}$||($="Rhino")}else"object"==typeof r.process&&!r.process.browser&&(l=r.process)&&("object"==typeof l.versions&&("string"==typeof l.versions.electron?(I.push("Node "+l.versions.node),$="Electron",F=l.versions.electron):"string"==typeof l.versions.nw&&(I.push("Chromium "+F,"Node "+l.versions.node),$="NW.js",F=l.versions.nw)),$||($="Node.js",B=l.arch,L=l.platform,F=(F=/[\d.]+/.exec(l.version))?F[0]:null));L=L&&f(L)}if(F&&(l=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(F)||/(?:alpha|beta)(?: ?\d)?/i.exec(t+";"+(R&&o.appMinorVersion))||/\bMinefield\b/i.test(t)&&"a")&&(j=/b/i.test(l)?"beta":"alpha",F=F.replace(RegExp(l+"\\+?$"),"")+("beta"==j?C:k)+(/\d+\+?/.exec(l)||"")),"Fennec"==$||"Firefox"==$&&/\b(?:Android|Firefox OS)\b/.test(L))$="Firefox Mobile";else if("Maxthon"==$&&F)F=F.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(N))"Xbox 360"==N&&(L=null),"Xbox 360"==N&&/\bIEMobile\b/.test(t)&&I.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test($)&&(!$||N||/Browser|Mobi/.test($))||"Windows CE"!=L&&!/Mobi/i.test(t))if("IE"==$&&R)try{null===r.external&&I.unshift("platform preview")}catch(e){I.unshift("embedded")}else(/\bBlackBerry\b/.test(N)||/\bBB10\b/.test(t))&&(l=(RegExp(N.replace(/ +/g," *")+"/([.\\d]+)","i").exec(t)||0)[1]||F)?(L=((l=[l,/BB10/.test(t)])[1]?(N=null,X="BlackBerry"):"Device Software")+" "+l[0],F=null):this!=h&&"Wii"!=N&&(R&&A||/Opera/.test($)&&/\b(?:MSIE|Firefox)\b/i.test(t)||"Firefox"==$&&/\bOS X (?:\d+\.){2,}/.test(L)||"IE"==$&&(L&&!/^Win/.test(L)&&F>5.5||/\bWindows XP\b/.test(L)&&F>8||8==F&&!/\bTrident\b/.test(t)))&&!u.test(l=e.call(h,t.replace(u,"")+";"))&&l.name&&(l="ing as "+l.name+((l=l.version)?" "+l:""),u.test($)?(/\bIE\b/.test(l)&&"Mac OS"==L&&(L=null),l="identify"+l):(l="mask"+l,$=T?f(T.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(l)&&(L=null),R||(F=null)),G=["Presto"],I.push(l));else $+=" Mobile";(l=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(t)||0)[1])&&(l=[parseFloat(l.replace(/\.(\d)$/,".0$1")),l],"Safari"==$&&"+"==l[1].slice(-1)?($="WebKit Nightly",j="alpha",F=l[1].slice(0,-1)):F!=l[1]&&F!=(l[2]=(/\bSafari\/([\d.]+\+?)/i.exec(t)||0)[1])||(F=null),l[1]=(/\bChrome\/([\d.]+)/i.exec(t)||0)[1],537.36==l[0]&&537.36==l[2]&&parseFloat(l[1])>=28&&"WebKit"==G&&(G=["Blink"]),R&&(y||l[1])?(G&&(G[1]="like Chrome"),l=l[1]||((l=l[0])<530?1:l<532?2:l<532.05?3:l<533?4:l<534.03?5:l<534.07?6:l<534.1?7:l<534.13?8:l<534.16?9:l<534.24?10:l<534.3?11:l<535.01?12:l<535.02?"13+":l<535.07?15:l<535.11?16:l<535.19?17:l<536.05?18:l<536.1?19:l<537.01?20:l<537.11?"21+":l<537.13?23:l<537.18?24:l<537.24?25:l<537.36?26:"Blink"!=G?"27":"28")):(G&&(G[1]="like Safari"),l=(l=l[0])<400?1:l<500?2:l<526?3:l<533?4:l<534?"4+":l<535?5:l<537?6:l<538?7:l<601?8:"8"),G&&(G[1]+=" "+(l+="number"==typeof l?".x":/[.+]/.test(l)?"":"+")),"Safari"==$&&(!F||parseInt(F)>45)&&(F=l)),"Opera"==$&&(l=/\bzbov|zvav$/.exec(L))?($+=" ",I.unshift("desktop mode"),"zvav"==l?($+="Mini",F=null):$+="Mobile",L=L.replace(RegExp(" *"+l+"$"),"")):"Safari"==$&&/\bChrome\b/.exec(G&&G[1])&&(I.unshift("desktop mode"),$="Chrome Mobile",F=null,/\bOS X\b/.test(L)?(X="Apple",L="iOS 4.3+"):L=null),F&&0==F.indexOf(l=/[\d.]+$/.exec(L))&&t.indexOf("/"+l+"-")>-1&&(L=x(L.replace(l,""))),G&&!/\b(?:Avant|Nook)\b/.test($)&&(/Browser|Lunascape|Maxthon/.test($)||"Safari"!=$&&/^iOS/.test(L)&&/\bSafari\b/.test(G[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test($)&&G[1])&&(l=G[G.length-1])&&I.push(l),I.length&&(I=["("+I.join("; ")+")"]),X&&N&&N.indexOf(X)<0&&I.push("on "+X),N&&I.push((/^on /.test(I[I.length-1])?"":"on ")+N),L&&(l=/ ([\d.+]+)$/.exec(L),s=l&&"/"==L.charAt(L.length-l[0].length-1),L={architecture:32,family:l&&!s?L.replace(l[0],""):L,version:l?l[1]:null,toString:function(){var e=this.version;return this.family+(e&&!s?" "+e:"")+(64==this.architecture?" 64-bit":"")}}),(l=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(B))&&!/\bi686\b/i.test(B)?(L&&(L.architecture=64,L.family=L.family.replace(RegExp(" *"+l),"")),$&&(/\bWOW64\b/i.test(t)||R&&/\w(?:86|32)$/.test(o.cpuClass||o.platform)&&!/\bWin64; x64\b/i.test(t))&&I.unshift("32-bit")):L&&/^OS X/.test(L.family)&&"Chrome"==$&&parseFloat(F)>=39&&(L.architecture=64),t||(t=null);var _={};return _.description=t,_.layout=G&&G[0],_.manufacturer=X,_.name=$,_.prerelease=j,_.product=N,_.ua=t,_.version=$&&F,_.os=L||{architecture:null,family:null,version:null,toString:function(){return"null"}},_.parse=e,_.toString=function(){return this.description||""},_.version&&I.unshift(F),_.name&&I.unshift($),L&&$&&(L!=String(L).split(" ")[0]||L!=$.split(" ")[0]&&!N)&&I.push(N?"("+L+")":"on "+L),I.length&&(_.description=I.join(" ")),_}();o&&a?h(y,(function(e,t){o[t]=e})):i.platform=y}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.create=r.detect=r.attributes=void 0;var n,i=(n=e("platform"))&&n.__esModule?n:{default:n};function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(r,!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var s="undefined"!=typeof window,u=function(e){return Object.keys(e).reduce((function(t,r){var n=e[r];return n=""===(n=null==(n="string"==typeof n?n.trim():n)?null:n)?null:n,t[r]=n,t}),{})},c=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t={siteLocation:window.location.href,siteReferrer:document.referrer},r={siteLanguage:(navigator.language||navigator.userLanguage).substr(0,2),screenWidth:screen.width,screenHeight:screen.height,screenColorDepth:screen.colorDepth,deviceName:i.default.product,deviceManufacturer:i.default.manufacturer,osName:i.default.os.family,osVersion:i.default.os.version,browserName:i.default.name,browserVersion:i.default.version,browserWidth:document.documentElement.clientWidth||window.outerWidth,browserHeight:document.documentElement.clientHeight||window.outerHeight};return u(a({},t,{},!0===e?r:{}))};r.attributes=c;var b=function(e,t,r){return[e,"domains",t,"records",r].filter((function(e){return null!=e})).join("/")},d=function(e,t,r,n){var i=new XMLHttpRequest;i.open(e,t),i.onload=function(){if(200===i.status||201===i.status){var e=null;try{e=JSON.parse(i.responseText)}catch(e){return n(new Error("Failed to parse response from server"))}return n(null,e)}return n(new Error("Server returned with an unhandled status"))},i.setRequestHeader("Content-Type","application/json;charset=UTF-8"),i.send(null==r?null:JSON.stringify(r))},p=function(e,t,r,n,i){if(!0===n.ignoreLocalhost&&!0==(""===(o=location.hostname)||"localhost"===o||"127.0.0.1"===o||"::1"===o))return console.warn("Ackee ignores you because you are on localhost");var o;d("POST",b(e,t),r,(function(r,n){if(null!=r)return console.error(r);var o=n.data.id,a=setInterval((function(){!1!==i()?d("PATCH",b(e,t,o),null,(function(e){if(null!=e)return console.error(e)})):clearInterval(a)}),15e3)}))},f=function(){var e=document.querySelector("[data-ackee-domain-id]");if(null!=e){var t=e.getAttribute("data-ackee-server")||"",r=e.getAttribute("data-ackee-domain-id"),n=e.getAttribute("data-ackee-opts")||"{}";h({server:t,domainId:r},JSON.parse(n)).record()}};r.detect=f;var h=function(e,t){var r,n=e.server,i=e.domainId;t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={};return t.ignoreLocalhost=!1!==e.ignoreLocalhost,t.detailed=!0===e.detailed,t}(t);return{record:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c(t.detailed),o=r=Date.now(),a=function(){return o===r};p(n,i,e,t,a)}}};r.create=h,!0===s?f():console.warn("Ackee is not executing automatically because you are using it in an environment without a `window` object")},{platform:1}]},{},[2])(2)}));