t.carts.guru
Open in
urlscan Pro
18.203.105.235
Public Scan
URL:
https://t.carts.guru/bundle.js?sid=3256fc97-93c6-49fe-9291-dc4292edc978
Submission: On April 29 via api from LU — Scanned from DE
Submission: On April 29 via api from LU — Scanned from DE
Form analysis
0 forms found in the DOMText Content
!function(){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function L(){this.parse=function(e){for(var n=this.parseOptions,t=n.parser[n.strictMode?"strict":"loose"].exec(e),o={},i=14;--i;)o[n.key[i]]=t[i]||"";return o[n.q.name]={},o[n.key[12]].replace(n.q.parser,function(e,t,i){t&&(o[n.q.name][t]=i)}),o},this.parseOptions={strictMode:!1,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}},this.getParam=function(e){for(var t={},i=(e||window.location.search.substring(1)).split("&"),n=0;n<i.length;n+=1){var o,a=i[n].split("=");"undefined"==typeof t[a[0]]?t[a[0]]=a[1]:"string"==typeof t[a[0]]?(o=[t[a[0]],a[1]],t[a[0]]=o):t[a[0]].push(a[1])}return t},this.getHost=function(e){return this.parse(e).host.replace("www.","")}}var e,t,F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,t,i){return t&&a(e.prototype,t),i&&a(e,i),e};function a(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}window.Fingerprint2=function(){"use strict";var i=function i(e){if(!(this instanceof i))return new i(e);var t={swfContainerId:"fingerprintjs2",swfPath:"flash/compiled/FontList.swf",detectScreenOrientation:true,sortPluginsFor:[/palemoon/i],userDefinedFonts:[],excludeDoNotTrack:true};this.options=this.extend(e,t);this.nativeForEach=Array.prototype.forEach;this.nativeMap=Array.prototype.map};i.prototype={extend:function n(e,t){if(e==null)return t;for(var i in e)if(e[i]!=null&&t[i]!==e[i])t[i]=e[i];return t},get:function e(n){var o=this;var i={data:[],addPreprocessedComponent:function a(e){var t=e.value;if(typeof o.options.preprocessor==="function")t=o.options.preprocessor(e.key,t);i.data.push({key:e.key,value:t})}};i=this.userAgentKey(i);i=this.languageKey(i);i=this.colorDepthKey(i);i=this.deviceMemoryKey(i);i=this.pixelRatioKey(i);i=this.hardwareConcurrencyKey(i);i=this.screenResolutionKey(i);i=this.availableScreenResolutionKey(i);i=this.timezoneOffsetKey(i);i=this.sessionStorageKey(i);i=this.localStorageKey(i);i=this.indexedDbKey(i);i=this.addBehaviorKey(i);i=this.openDatabaseKey(i);i=this.cpuClassKey(i);i=this.platformKey(i);i=this.doNotTrackKey(i);i=this.pluginsKey(i);i=this.canvasKey(i);i=this.webglKey(i);i=this.webglVendorAndRendererKey(i);i=this.adBlockKey(i);i=this.hasLiedLanguagesKey(i);i=this.hasLiedResolutionKey(i);i=this.hasLiedOsKey(i);i=this.hasLiedBrowserKey(i);i=this.touchSupportKey(i);i=this.customEntropyFunction(i);this.fontsKey(i,function(e){var i=[];o.each(e.data,function(e){var t=e.value;if(t&&typeof t.join==="function")t=t.join(";");i.push(t)});var t=o.x64hash128(i.join("~~~"),31);return n(t,e.data)})},customEntropyFunction:function t(e){if(typeof this.options.customFunction==="function")e.addPreprocessedComponent({key:"custom",value:this.options.customFunction()});return e},userAgentKey:function o(e){if(!this.options.excludeUserAgent)e.addPreprocessedComponent({key:"user_agent",value:this.getUserAgent()});return e},getUserAgent:function a(){return navigator.userAgent},languageKey:function r(e){if(!this.options.excludeLanguage)e.addPreprocessedComponent({key:"language",value:navigator.language||navigator.userLanguage||navigator.browserLanguage||navigator.systemLanguage||""});return e},colorDepthKey:function s(e){if(!this.options.excludeColorDepth)e.addPreprocessedComponent({key:"color_depth",value:window.screen.colorDepth||-1});return e},deviceMemoryKey:function l(e){if(!this.options.excludeDeviceMemory)e.addPreprocessedComponent({key:"device_memory",value:this.getDeviceMemory()});return e},getDeviceMemory:function c(){return navigator.deviceMemory||-1},pixelRatioKey:function d(e){if(!this.options.excludePixelRatio)e.addPreprocessedComponent({key:"pixel_ratio",value:this.getPixelRatio()});return e},getPixelRatio:function p(){return window.devicePixelRatio||""},screenResolutionKey:function g(e){if(!this.options.excludeScreenResolution)return this.getScreenResolution(e);return e},getScreenResolution:function h(e){var t;if(this.options.detectScreenOrientation)t=window.screen.height>window.screen.width?[window.screen.height,window.screen.width]:[window.screen.width,window.screen.height];else t=[window.screen.width,window.screen.height];e.addPreprocessedComponent({key:"resolution",value:t});return e},availableScreenResolutionKey:function u(e){if(!this.options.excludeAvailableScreenResolution)return this.getAvailableScreenResolution(e);return e},getAvailableScreenResolution:function f(e){var t;if(window.screen.availWidth&&window.screen.availHeight)if(this.options.detectScreenOrientation)t=window.screen.availHeight>window.screen.availWidth?[window.screen.availHeight,window.screen.availWidth]:[window.screen.availWidth,window.screen.availHeight];else t=[window.screen.availHeight,window.screen.availWidth];if(typeof t!=="undefined")e.addPreprocessedComponent({key:"available_resolution",value:t});return e},timezoneOffsetKey:function m(e){if(!this.options.excludeTimezoneOffset)e.addPreprocessedComponent({key:"timezone_offset",value:(new Date).getTimezoneOffset()});return e},sessionStorageKey:function w(e){if(!this.options.excludeSessionStorage&&this.hasSessionStorage())e.addPreprocessedComponent({key:"session_storage",value:1});return e},localStorageKey:function b(e){if(!this.options.excludeSessionStorage&&this.hasLocalStorage())e.addPreprocessedComponent({key:"local_storage",value:1});return e},indexedDbKey:function v(e){if(!this.options.excludeIndexedDB&&this.hasIndexedDB())e.addPreprocessedComponent({key:"indexed_db",value:1});return e},addBehaviorKey:function y(e){if(!this.options.excludeAddBehavior&&document.body&&document.body.addBehavior)e.addPreprocessedComponent({key:"add_behavior",value:1});return e},openDatabaseKey:function x(e){if(!this.options.excludeOpenDatabase&&window.openDatabase)e.addPreprocessedComponent({key:"open_database",value:1});return e},cpuClassKey:function k(e){if(!this.options.excludeCpuClass)e.addPreprocessedComponent({key:"cpu_class",value:this.getNavigatorCpuClass()});return e},platformKey:function C(e){if(!this.options.excludePlatform)e.addPreprocessedComponent({key:"navigator_platform",value:this.getNavigatorPlatform()});return e},doNotTrackKey:function S(e){if(!this.options.excludeDoNotTrack)e.addPreprocessedComponent({key:"do_not_track",value:this.getDoNotTrack()});return e},canvasKey:function T(e){if(!this.options.excludeCanvas&&this.isCanvasSupported())e.addPreprocessedComponent({key:"canvas",value:this.getCanvasFp()});return e},webglKey:function E(e){if(!this.options.excludeWebGL&&this.isWebGlSupported())e.addPreprocessedComponent({key:"webgl",value:this.getWebglFp()});return e},webglVendorAndRendererKey:function B(e){if(!this.options.excludeWebGLVendorAndRenderer&&this.isWebGlSupported())e.addPreprocessedComponent({key:"webgl_vendor",value:this.getWebglVendorAndRenderer()});return e},adBlockKey:function A(e){if(!this.options.excludeAdBlock)e.addPreprocessedComponent({key:"adblock",value:this.getAdBlock()});return e},hasLiedLanguagesKey:function _(e){if(!this.options.excludeHasLiedLanguages)e.addPreprocessedComponent({key:"has_lied_languages",value:this.getHasLiedLanguages()});return e},hasLiedResolutionKey:function M(e){if(!this.options.excludeHasLiedResolution)e.addPreprocessedComponent({key:"has_lied_resolution",value:this.getHasLiedResolution()});return e},hasLiedOsKey:function I(e){if(!this.options.excludeHasLiedOs)e.addPreprocessedComponent({key:"has_lied_os",value:this.getHasLiedOs()});return e},hasLiedBrowserKey:function P(e){if(!this.options.excludeHasLiedBrowser)e.addPreprocessedComponent({key:"has_lied_browser",value:this.getHasLiedBrowser()});return e},fontsKey:function R(e,t){if(this.options.excludeJsFonts)return this.flashFontsKey(e,t);return this.jsFontsKey(e,t)},flashFontsKey:function O(t,i){if(this.options.excludeFlashFonts)return i(t);if(!this.hasSwfObjectLoaded())return i(t);if(!this.hasMinFlashInstalled())return i(t);if(typeof this.options.swfPath==="undefined")return i(t);this.loadSwfAndDetectFonts(function(e){t.addPreprocessedComponent({key:"swf_fonts",value:e.join(";")});i(t)})},jsFontsKey:function N(k,C){var S=this;return setTimeout(function(){var s=["monospace","sans-serif","serif"];var l=["Andale Mono","Arial","Arial Black","Arial Hebrew","Arial MT","Arial Narrow","Arial Rounded MT Bold","Arial Unicode MS","Bitstream Vera Sans Mono","Book Antiqua","Bookman Old Style","Calibri","Cambria","Cambria Math","Century","Century Gothic","Century Schoolbook","Comic Sans","Comic Sans MS","Consolas","Courier","Courier New","Geneva","Georgia","Helvetica","Helvetica Neue","Impact","Lucida Bright","Lucida Calligraphy","Lucida Console","Lucida Fax","LUCIDA GRANDE","Lucida Handwriting","Lucida Sans","Lucida Sans Typewriter","Lucida Sans Unicode","Microsoft Sans Serif","Monaco","Monotype Corsiva","MS Gothic","MS Outlook","MS PGothic","MS Reference Sans Serif","MS Sans Serif","MS Serif","MYRIAD","MYRIAD PRO","Palatino","Palatino Linotype","Segoe Print","Segoe Script","Segoe UI","Segoe UI Light","Segoe UI Semibold","Segoe UI Symbol","Tahoma","Times","Times New Roman","Times New Roman PS","Trebuchet MS","Verdana","Wingdings","Wingdings 2","Wingdings 3"];var e=["Abadi MT Condensed Light","Academy Engraved LET","ADOBE CASLON PRO","Adobe Garamond","ADOBE GARAMOND PRO","Agency FB","Aharoni","Albertus Extra Bold","Albertus Medium","Algerian","Amazone BT","American Typewriter","American Typewriter Condensed","AmerType Md BT","Andalus","Angsana New","AngsanaUPC","Antique Olive","Aparajita","Apple Chancery","Apple Color Emoji","Apple SD Gothic Neo","Arabic Typesetting","ARCHER","ARNO PRO","Arrus BT","Aurora Cn BT","AvantGarde Bk BT","AvantGarde Md BT","AVENIR","Ayuthaya","Bandy","Bangla Sangam MN","Bank Gothic","BankGothic Md BT","Baskerville","Baskerville Old Face","Batang","BatangChe","Bauer Bodoni","Bauhaus 93","Bazooka","Bell MT","Bembo","Benguiat Bk BT","Berlin Sans FB","Berlin Sans FB Demi","Bernard MT Condensed","BernhardFashion BT","BernhardMod BT","Big Caslon","BinnerD","Blackadder ITC","BlairMdITC TT","Bodoni 72","Bodoni 72 Oldstyle","Bodoni 72 Smallcaps","Bodoni MT","Bodoni MT Black","Bodoni MT Condensed","Bodoni MT Poster Compressed","Bookshelf Symbol 7","Boulder","Bradley Hand","Bradley Hand ITC","Bremen Bd BT","Britannic Bold","Broadway","Browallia New","BrowalliaUPC","Brush Script MT","Californian FB","Calisto MT","Calligrapher","Candara","CaslonOpnface BT","Castellar","Centaur","Cezanne","CG Omega","CG Times","Chalkboard","Chalkboard SE","Chalkduster","Charlesworth","Charter Bd BT","Charter BT","Chaucer","ChelthmITC Bk BT","Chiller","Clarendon","Clarendon Condensed","CloisterBlack BT","Cochin","Colonna MT","Constantia","Cooper Black","Copperplate","Copperplate Gothic","Copperplate Gothic Bold","Copperplate Gothic Light","CopperplGoth Bd BT","Corbel","Cordia New","CordiaUPC","Cornerstone","Coronet","Cuckoo","Curlz MT","DaunPenh","Dauphin","David","DB LCD Temp","DELICIOUS","Denmark","DFKai-SB","Didot","DilleniaUPC","DIN","DokChampa","Dotum","DotumChe","Ebrima","Edwardian Script ITC","Elephant","English 111 Vivace BT","Engravers MT","EngraversGothic BT","Eras Bold ITC","Eras Demi ITC","Eras Light ITC","Eras Medium ITC","EucrosiaUPC","Euphemia","Euphemia UCAS","EUROSTILE","Exotc350 Bd BT","FangSong","Felix Titling","Fixedsys","FONTIN","Footlight MT Light","Forte","FrankRuehl","Fransiscan","Freefrm721 Blk BT","FreesiaUPC","Freestyle Script","French Script MT","FrnkGothITC Bk BT","Fruitger","FRUTIGER","Futura","Futura Bk BT","Futura Lt BT","Futura Md BT","Futura ZBlk BT","FuturaBlack BT","Gabriola","Galliard BT","Gautami","Geeza Pro","Geometr231 BT","Geometr231 Hv BT","Geometr231 Lt BT","GeoSlab 703 Lt BT","GeoSlab 703 XBd BT","Gigi","Gill Sans","Gill Sans MT","Gill Sans MT Condensed","Gill Sans MT Ext Condensed Bold","Gill Sans Ultra Bold","Gill Sans Ultra Bold Condensed","Gisha","Gloucester MT Extra Condensed","GOTHAM","GOTHAM BOLD","Goudy Old Style","Goudy Stout","GoudyHandtooled BT","GoudyOLSt BT","Gujarati Sangam MN","Gulim","GulimChe","Gungsuh","GungsuhChe","Gurmukhi MN","Haettenschweiler","Harlow Solid Italic","Harrington","Heather","Heiti SC","Heiti TC","HELV","Herald","High Tower Text","Hiragino Kaku Gothic ProN","Hiragino Mincho ProN","Hoefler Text","Humanst 521 Cn BT","Humanst521 BT","Humanst521 Lt BT","Imprint MT Shadow","Incised901 Bd BT","Incised901 BT","Incised901 Lt BT","INCONSOLATA","Informal Roman","Informal011 BT","INTERSTATE","IrisUPC","Iskoola Pota","JasmineUPC","Jazz LET","Jenson","Jester","Jokerman","Juice ITC","Kabel Bk BT","Kabel Ult BT","Kailasa","KaiTi","Kalinga","Kannada Sangam MN","Kartika","Kaufmann Bd BT","Kaufmann BT","Khmer UI","KodchiangUPC","Kokila","Korinna BT","Kristen ITC","Krungthep","Kunstler Script","Lao UI","Latha","Leelawadee","Letter Gothic","Levenim MT","LilyUPC","Lithograph","Lithograph Light","Long Island","Lydian BT","Magneto","Maiandra GD","Malayalam Sangam MN","Malgun Gothic","Mangal","Marigold","Marion","Marker Felt","Market","Marlett","Matisse ITC","Matura MT Script Capitals","Meiryo","Meiryo UI","Microsoft Himalaya","Microsoft JhengHei","Microsoft New Tai Lue","Microsoft PhagsPa","Microsoft Tai Le","Microsoft Uighur","Microsoft YaHei","Microsoft Yi Baiti","MingLiU","MingLiU_HKSCS","MingLiU_HKSCS-ExtB","MingLiU-ExtB","Minion","Minion Pro","Miriam","Miriam Fixed","Mistral","Modern","Modern No. 20","Mona Lisa Solid ITC TT","Mongolian Baiti","MONO","MoolBoran","Mrs Eaves","MS LineDraw","MS Mincho","MS PMincho","MS Reference Specialty","MS UI Gothic","MT Extra","MUSEO","MV Boli","Nadeem","Narkisim","NEVIS","News Gothic","News GothicMT","NewsGoth BT","Niagara Engraved","Niagara Solid","Noteworthy","NSimSun","Nyala","OCR A Extended","Old Century","Old English Text MT","Onyx","Onyx BT","OPTIMA","Oriya Sangam MN","OSAKA","OzHandicraft BT","Palace Script MT","Papyrus","Parchment","Party LET","Pegasus","Perpetua","Perpetua Titling MT","PetitaBold","Pickwick","Plantagenet Cherokee","Playbill","PMingLiU","PMingLiU-ExtB","Poor Richard","Poster","PosterBodoni BT","PRINCETOWN LET","Pristina","PTBarnum BT","Pythagoras","Raavi","Rage Italic","Ravie","Ribbon131 Bd BT","Rockwell","Rockwell Condensed","Rockwell Extra Bold","Rod","Roman","Sakkal Majalla","Santa Fe LET","Savoye LET","Sceptre","Script","Script MT Bold","SCRIPTINA","Serifa","Serifa BT","Serifa Th BT","ShelleyVolante BT","Sherwood","Shonar Bangla","Showcard Gothic","Shruti","Signboard","SILKSCREEN","SimHei","Simplified Arabic","Simplified Arabic Fixed","SimSun","SimSun-ExtB","Sinhala Sangam MN","Sketch Rockwell","Skia","Small Fonts","Snap ITC","Snell Roundhand","Socket","Souvenir Lt BT","Staccato222 BT","Steamer","Stencil","Storybook","Styllo","Subway","Swis721 BlkEx BT","Swiss911 XCm BT","Sylfaen","Synchro LET","System","Tamil Sangam MN","Technical","Teletype","Telugu Sangam MN","Tempus Sans ITC","Terminal","Thonburi","Traditional Arabic","Trajan","TRAJAN PRO","Tristan","Tubular","Tunga","Tw Cen MT","Tw Cen MT Condensed","Tw Cen MT Condensed Extra Bold","TypoUpright BT","Unicorn","Univers","Univers CE 55 Medium","Univers Condensed","Utsaah","Vagabond","Vani","Vijaya","Viner Hand ITC","VisualUI","Vivaldi","Vladimir Script","Vrinda","Westminster","WHITNEY","Wide Latin","ZapfEllipt BT","ZapfHumnst BT","ZapfHumnst Dm BT","Zapfino","Zurich BlkEx BT","Zurich Ex BT","ZWAdobeF"];if(S.options.extendedJsFonts)l=l.concat(e);l=l.concat(S.options.userDefinedFonts);l=l.filter(function(e,t){return l.indexOf(e)===t});var t="mmmmmmmmmmlli";var i="72px";var n=document.getElementsByTagName("body")[0];var o=document.createElement("div");var c=document.createElement("div");var a={};var r={};var d=function d(){var e=document.createElement("span");e.style.position="absolute";e.style.left="-9999px";e.style.fontSize=i;e.style.fontStyle="normal";e.style.fontWeight="normal";e.style.letterSpacing="normal";e.style.lineBreak="auto";e.style.lineHeight="normal";e.style.texTransform="none";e.style.textAlign="left";e.style.textDecoration="none";e.style.textShadow="none";e.style.whiteSpace="normal";e.style.wordBreak="normal";e.style.wordSpacing="normal";e.innerHTML=t;return e};var p=function p(e,t){var i=d();i.style.fontFamily="'"+e+"',"+t;return i};var g=function g(){var e=[];for(var t=0,i=s.length;t<i;t++){var n=d();n.style.fontFamily=s[t];o.appendChild(n);e.push(n)}return e};var h=function h(){var e={};for(var t=0,i=l.length;t<i;t++){var n=[];for(var o=0,a=s.length;o<a;o++){var r=p(l[t],s[o]);c.appendChild(r);n.push(r)}e[l[t]]=n}return e};var u=function u(e){var t=false;for(var i=0;i<s.length;i++){t=e[i].offsetWidth!==a[s[i]]||e[i].offsetHeight!==r[s[i]];if(t)return t}return t};var f=g();n.appendChild(o);for(var m=0,w=s.length;m<w;m++){a[s[m]]=f[m].offsetWidth;r[s[m]]=f[m].offsetHeight}var b=h();n.appendChild(c);var v=[];for(var y=0,x=l.length;y<x;y++)if(u(b[l[y]]))v.push(l[y]);n.removeChild(c);n.removeChild(o);k.addPreprocessedComponent({key:"js_fonts",value:v});C(k)},1)},pluginsKey:function L(e){if(!this.options.excludePlugins)if(this.isIE()){if(!this.options.excludeIEPlugins)e.addPreprocessedComponent({key:"ie_plugins",value:this.getIEPlugins()})}else e.addPreprocessedComponent({key:"regular_plugins",value:this.getRegularPlugins()});return e},getRegularPlugins:function F(){var e=[];if(navigator.plugins)for(var t=0,i=navigator.plugins.length;t<i;t++)if(navigator.plugins[t])e.push(navigator.plugins[t]);if(this.pluginsShouldBeSorted())e=e.sort(function(e,t){if(e.name>t.name)return 1;if(e.name<t.name)return-1;return 0});return this.map(e,function(e){var t=this.map(e,function(e){return[e.type,e.suffixes].join("~")}).join(",");return[e.name,e.description,t].join("::")},this)},getIEPlugins:function D(){var e=[];if(Object.getOwnPropertyDescriptor&&Object.getOwnPropertyDescriptor(window,"ActiveXObject")||"ActiveXObject"in window){var t=["AcroPDF.PDF","Adodb.Stream","AgControl.AgControl","DevalVRXCtrl.DevalVRXCtrl.1","MacromediaFlashPaper.MacromediaFlashPaper","Msxml2.DOMDocument","Msxml2.XMLHTTP","PDF.PdfCtrl","QuickTime.QuickTime","QuickTimeCheckObject.QuickTimeCheck.1","RealPlayer","RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)","RealVideo.RealVideo(tm) ActiveX Control (32-bit)","Scripting.Dictionary","SWCtl.SWCtl","Shell.UIHelper","ShockwaveFlash.ShockwaveFlash","Skype.Detection","TDCCtl.TDCCtl","WMPlayer.OCX","rmocx.RealPlayer G2 Control","rmocx.RealPlayer G2 Control.1"];e=this.map(t,function(e){try{new window.ActiveXObject(e);return e}catch(t){return null}})}if(navigator.plugins)e=e.concat(this.getRegularPlugins());return e},pluginsShouldBeSorted:function H(){var e=false;for(var t=0,i=this.options.sortPluginsFor.length;t<i;t++){var n=this.options.sortPluginsFor[t];if(navigator.userAgent.match(n)){e=true;break}}return e},touchSupportKey:function W(e){if(!this.options.excludeTouchSupport)e.addPreprocessedComponent({key:"touch_support",value:this.getTouchSupport()});return e},hardwareConcurrencyKey:function U(e){if(!this.options.excludeHardwareConcurrency)e.addPreprocessedComponent({key:"hardware_concurrency",value:this.getHardwareConcurrency()});return e},hasSessionStorage:function z(){try{return!!window.sessionStorage}catch(e){return true}},hasLocalStorage:function G(){try{return!!window.localStorage}catch(e){return true}},hasIndexedDB:function V(){try{return!!window.indexedDB}catch(e){return true}},getHardwareConcurrency:function X(){if(navigator.hardwareConcurrency)return navigator.hardwareConcurrency;return"unknown"},getNavigatorCpuClass:function K(){if(navigator.cpuClass)return navigator.cpuClass;else return"unknown"},getNavigatorPlatform:function j(){if(navigator.platform)return navigator.platform;else return"unknown"},getDoNotTrack:function q(){if(navigator.doNotTrack)return navigator.doNotTrack;else if(navigator.msDoNotTrack)return navigator.msDoNotTrack;else if(window.doNotTrack)return window.doNotTrack;else return"unknown"},getTouchSupport:function Y(){var e=0;var t=false;if(typeof navigator.maxTouchPoints!=="undefined")e=navigator.maxTouchPoints;else if(typeof navigator.msMaxTouchPoints!=="undefined")e=navigator.msMaxTouchPoints;try{document.createEvent("TouchEvent");t=true}catch(n){}var i="ontouchstart"in window;return[e,t,i]},getCanvasFp:function J(){var e=[];var t=document.createElement("canvas");t.width=2e3;t.height=200;t.style.display="inline";var i=t.getContext("2d");i.rect(0,0,10,10);i.rect(2,2,6,6);e.push("canvas winding:"+(i.isPointInPath(5,5,"evenodd")===false?"yes":"no"));i.textBaseline="alphabetic";i.fillStyle="#f60";i.fillRect(125,1,62,20);i.fillStyle="#069";if(this.options.dontUseFakeFontInCanvas)i.font="11pt Arial";else i.font="11pt no-real-font-123";i.fillText("Cwm fjordbank glyphs vext quiz, 😃",2,15);i.fillStyle="rgba(102, 204, 0, 0.2)";i.font="18pt Arial";i.fillText("Cwm fjordbank glyphs vext quiz, 😃",4,45);i.globalCompositeOperation="multiply";i.fillStyle="rgb(255,0,255)";i.beginPath();i.arc(50,50,50,0,Math.PI*2,true);i.closePath();i.fill();i.fillStyle="rgb(0,255,255)";i.beginPath();i.arc(100,50,50,0,Math.PI*2,true);i.closePath();i.fill();i.fillStyle="rgb(255,255,0)";i.beginPath();i.arc(75,100,50,0,Math.PI*2,true);i.closePath();i.fill();i.fillStyle="rgb(255,0,255)";i.arc(75,75,75,0,Math.PI*2,true);i.arc(75,75,25,0,Math.PI*2,true);i.fill("evenodd");if(t.toDataURL)e.push("canvas fp:"+t.toDataURL());return e.join("~")},getWebglFp:function Z(){var t;var i=function i(e){t.clearColor(0,0,0,1);t.enable(t.DEPTH_TEST);t.depthFunc(t.LEQUAL);t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT);return"["+e[0]+", "+e[1]+"]"};var n=function n(e){var t=e.getExtension("EXT_texture_filter_anisotropic")||e.getExtension("WEBKIT_EXT_texture_filter_anisotropic")||e.getExtension("MOZ_EXT_texture_filter_anisotropic");if(t){var i=e.getParameter(t.MAX_TEXTURE_MAX_ANISOTROPY_EXT);if(i===0)i=2;return i}else return null};t=this.getWebglCanvas();if(!t)return null;var e=[];var o="attribute vec2 attrVertex;varying vec2 varyinTexCoordinate;uniform vec2 uniformOffset;void main(){varyinTexCoordinate=attrVertex+uniformOffset;gl_Position=vec4(attrVertex,0,1);}";var a="precision mediump float;varying vec2 varyinTexCoordinate;void main() {gl_FragColor=vec4(varyinTexCoordinate,0,1);}";var r=t.createBuffer();t.bindBuffer(t.ARRAY_BUFFER,r);var s=new Float32Array([-.2,-.9,0,.4,-.26,0,0,.732134444,0]);t.bufferData(t.ARRAY_BUFFER,s,t.STATIC_DRAW);r.itemSize=3;r.numItems=3;var l=t.createProgram();var c=t.createShader(t.VERTEX_SHADER);t.shaderSource(c,o);t.compileShader(c);var d=t.createShader(t.FRAGMENT_SHADER);t.shaderSource(d,a);t.compileShader(d);t.attachShader(l,c);t.attachShader(l,d);t.linkProgram(l);t.useProgram(l);l.vertexPosAttrib=t.getAttribLocation(l,"attrVertex");l.offsetUniform=t.getUniformLocation(l,"uniformOffset");t.enableVertexAttribArray(l.vertexPosArray);t.vertexAttribPointer(l.vertexPosAttrib,r.itemSize,t.FLOAT,!1,0,0);t.uniform2f(l.offsetUniform,1,1);t.drawArrays(t.TRIANGLE_STRIP,0,r.numItems);try{e.push(t.canvas.toDataURL())}catch(g){}e.push("extensions:"+(t.getSupportedExtensions()||[]).join(";"));e.push("webgl aliased line width range:"+i(t.getParameter(t.ALIASED_LINE_WIDTH_RANGE)));e.push("webgl aliased point size range:"+i(t.getParameter(t.ALIASED_POINT_SIZE_RANGE)));e.push("webgl alpha bits:"+t.getParameter(t.ALPHA_BITS));e.push("webgl antialiasing:"+(t.getContextAttributes().antialias?"yes":"no"));e.push("webgl blue bits:"+t.getParameter(t.BLUE_BITS));e.push("webgl depth bits:"+t.getParameter(t.DEPTH_BITS));e.push("webgl green bits:"+t.getParameter(t.GREEN_BITS));e.push("webgl max anisotropy:"+n(t));e.push("webgl max combined texture image units:"+t.getParameter(t.MAX_COMBINED_TEXTURE_IMAGE_UNITS));e.push("webgl max cube map texture size:"+t.getParameter(t.MAX_CUBE_MAP_TEXTURE_SIZE));e.push("webgl max fragment uniform vectors:"+t.getParameter(t.MAX_FRAGMENT_UNIFORM_VECTORS));e.push("webgl max render buffer size:"+t.getParameter(t.MAX_RENDERBUFFER_SIZE));e.push("webgl max texture image units:"+t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS));e.push("webgl max texture size:"+t.getParameter(t.MAX_TEXTURE_SIZE));e.push("webgl max varying vectors:"+t.getParameter(t.MAX_VARYING_VECTORS));e.push("webgl max vertex attribs:"+t.getParameter(t.MAX_VERTEX_ATTRIBS));e.push("webgl max vertex texture image units:"+t.getParameter(t.MAX_VERTEX_TEXTURE_IMAGE_UNITS));e.push("webgl max vertex uniform vectors:"+t.getParameter(t.MAX_VERTEX_UNIFORM_VECTORS));e.push("webgl max viewport dims:"+i(t.getParameter(t.MAX_VIEWPORT_DIMS)));e.push("webgl red bits:"+t.getParameter(t.RED_BITS));e.push("webgl renderer:"+t.getParameter(t.RENDERER));e.push("webgl shading language version:"+t.getParameter(t.SHADING_LANGUAGE_VERSION));e.push("webgl stencil bits:"+t.getParameter(t.STENCIL_BITS));e.push("webgl vendor:"+t.getParameter(t.VENDOR));e.push("webgl version:"+t.getParameter(t.VERSION));try{var p=t.getExtension("WEBGL_debug_renderer_info");if(p){e.push("webgl unmasked vendor:"+t.getParameter(p.UNMASKED_VENDOR_WEBGL));e.push("webgl unmasked renderer:"+t.getParameter(p.UNMASKED_RENDERER_WEBGL))}}catch(g){}if(!t.getShaderPrecisionFormat)return e.join("~");e.push("webgl vertex shader high float precision:"+t.getShaderPrecisionFormat(t.VERTEX_SHADER,t.HIGH_FLOAT).precision);e.push("webgl vertex shader high float precision rangeMin:"+t.getShaderPrecisionFormat(t.VERTEX_SHADER,t.HIGH_FLOAT).rangeMin);e.push("webgl vertex shader high float precision rangeMax:"+t.getShaderPrecisionFormat(t.VERTEX_SHADER,t.HIGH_FLOAT).rangeMax);e.push("webgl vertex shader medium float precision:"+t.getShaderPrecisionFormat(t.VERTEX_SHADER,t.MEDIUM_FLOAT).precision);e.push("webgl vertex shader medium float precision rangeMin:"+t.getShaderPrecisionFormat(t.VERTEX_SHADER,t.MEDIUM_FLOAT).rangeMin);e.push("webgl vertex shader medium float precision rangeMax:"+t.getShaderPrecisionFormat(t.VERTEX_SHADER,t.MEDIUM_FLOAT).rangeMax);e.push("webgl vertex shader low float precision:"+t.getShaderPrecisionFormat(t.VERTEX_SHADER,t.LOW_FLOAT).precision);e.push("webgl vertex shader low float precision rangeMin:"+t.getShaderPrecisionFormat(t.VERTEX_SHADER,t.LOW_FLOAT).rangeMin);e.push("webgl vertex shader low float precision rangeMax:"+t.getShaderPrecisionFormat(t.VERTEX_SHADER,t.LOW_FLOAT).rangeMax);e.push("webgl fragment shader high float precision:"+t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.HIGH_FLOAT).precision);e.push("webgl fragment shader high float precision rangeMin:"+t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.HIGH_FLOAT).rangeMin);e.push("webgl fragment shader high float precision rangeMax:"+t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.HIGH_FLOAT).rangeMax);e.push("webgl fragment shader medium float precision:"+t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.MEDIUM_FLOAT).precision);e.push("webgl fragment shader medium float precision rangeMin:"+t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.MEDIUM_FLOAT).rangeMin);e.push("webgl fragment shader medium float precision rangeMax:"+t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.MEDIUM_FLOAT).rangeMax);e.push("webgl fragment shader low float precision:"+t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.LOW_FLOAT).precision);e.push("webgl fragment shader low float precision rangeMin:"+t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.LOW_FLOAT).rangeMin);e.push("webgl fragment shader low float precision rangeMax:"+t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.LOW_FLOAT).rangeMax);e.push("webgl vertex shader high int precision:"+t.getShaderPrecisionFormat(t.VERTEX_SHADER,t.HIGH_INT).precision);e.push("webgl vertex shader high int precision rangeMin:"+t.getShaderPrecisionFormat(t.VERTEX_SHADER,t.HIGH_INT).rangeMin);e.push("webgl vertex shader high int precision rangeMax:"+t.getShaderPrecisionFormat(t.VERTEX_SHADER,t.HIGH_INT).rangeMax);e.push("webgl vertex shader medium int precision:"+t.getShaderPrecisionFormat(t.VERTEX_SHADER,t.MEDIUM_INT).precision);e.push("webgl vertex shader medium int precision rangeMin:"+t.getShaderPrecisionFormat(t.VERTEX_SHADER,t.MEDIUM_INT).rangeMin);e.push("webgl vertex shader medium int precision rangeMax:"+t.getShaderPrecisionFormat(t.VERTEX_SHADER,t.MEDIUM_INT).rangeMax);e.push("webgl vertex shader low int precision:"+t.getShaderPrecisionFormat(t.VERTEX_SHADER,t.LOW_INT).precision);e.push("webgl vertex shader low int precision rangeMin:"+t.getShaderPrecisionFormat(t.VERTEX_SHADER,t.LOW_INT).rangeMin);e.push("webgl vertex shader low int precision rangeMax:"+t.getShaderPrecisionFormat(t.VERTEX_SHADER,t.LOW_INT).rangeMax);e.push("webgl fragment shader high int precision:"+t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.HIGH_INT).precision);e.push("webgl fragment shader high int precision rangeMin:"+t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.HIGH_INT).rangeMin);e.push("webgl fragment shader high int precision rangeMax:"+t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.HIGH_INT).rangeMax);e.push("webgl fragment shader medium int precision:"+t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.MEDIUM_INT).precision);e.push("webgl fragment shader medium int precision rangeMin:"+t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.MEDIUM_INT).rangeMin);e.push("webgl fragment shader medium int precision rangeMax:"+t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.MEDIUM_INT).rangeMax);e.push("webgl fragment shader low int precision:"+t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.LOW_INT).precision);e.push("webgl fragment shader low int precision rangeMin:"+t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.LOW_INT).rangeMin);e.push("webgl fragment shader low int precision rangeMax:"+t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.LOW_INT).rangeMax);return e.join("~")},getWebglVendorAndRenderer:function Q(){try{var e=this.getWebglCanvas();var t=e.getExtension("WEBGL_debug_renderer_info");return e.getParameter(t.UNMASKED_VENDOR_WEBGL)+"~"+e.getParameter(t.UNMASKED_RENDERER_WEBGL)}catch(i){return null}},getAdBlock:function $(){var e=document.createElement("div");e.innerHTML=" ";e.className="adsbox";var t=false;try{document.body.appendChild(e);t=document.getElementsByClassName("adsbox")[0].offsetHeight===0;document.body.removeChild(e)}catch(i){t=false}return t},getHasLiedLanguages:function ee(){if(typeof navigator.languages!=="undefined")try{var e=navigator.languages[0].substr(0,2);if(e!==navigator.language.substr(0,2))return true}catch(t){return true}return false},getHasLiedResolution:function te(){if(window.screen.width<window.screen.availWidth)return true;if(window.screen.height<window.screen.availHeight)return true;return false},getHasLiedOs:function ie(){var e=navigator.userAgent.toLowerCase();var t=navigator.oscpu;var i=navigator.platform.toLowerCase();var n;if(e.indexOf("windows phone")>=0)n="Windows Phone";else if(e.indexOf("win")>=0)n="Windows";else if(e.indexOf("android")>=0)n="Android";else if(e.indexOf("linux")>=0)n="Linux";else if(e.indexOf("iphone")>=0||e.indexOf("ipad")>=0)n="iOS";else if(e.indexOf("mac")>=0)n="Mac";else n="Other";var o;if("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0)o=true;else o=false;if(o&&n!=="Windows Phone"&&n!=="Android"&&n!=="iOS"&&n!=="Other")return true;if(typeof t!=="undefined"){t=t.toLowerCase();if(t.indexOf("win")>=0&&n!=="Windows"&&n!=="Windows Phone")return true;else if(t.indexOf("linux")>=0&&n!=="Linux"&&n!=="Android")return true;else if(t.indexOf("mac")>=0&&n!=="Mac"&&n!=="iOS")return true;else if((t.indexOf("win")===-1&&t.indexOf("linux")===-1&&t.indexOf("mac")===-1)!==(n==="Other"))return true}if(i.indexOf("win")>=0&&n!=="Windows"&&n!=="Windows Phone")return true;else if((i.indexOf("linux")>=0||i.indexOf("android")>=0||i.indexOf("pike")>=0)&&n!=="Linux"&&n!=="Android")return true;else if((i.indexOf("mac")>=0||i.indexOf("ipad")>=0||i.indexOf("ipod")>=0||i.indexOf("iphone")>=0)&&n!=="Mac"&&n!=="iOS")return true;else if((i.indexOf("win")===-1&&i.indexOf("linux")===-1&&i.indexOf("mac")===-1)!==(n==="Other"))return true;if(typeof navigator.plugins==="undefined"&&n!=="Windows"&&n!=="Windows Phone")return true;return false},getHasLiedBrowser:function ne(){var e=navigator.userAgent.toLowerCase();var t=navigator.productSub;var i;if(e.indexOf("firefox")>=0)i="Firefox";else if(e.indexOf("opera")>=0||e.indexOf("opr")>=0)i="Opera";else if(e.indexOf("chrome")>=0)i="Chrome";else if(e.indexOf("safari")>=0)i="Safari";else if(e.indexOf("trident")>=0)i="Internet Explorer";else i="Other";if((i==="Chrome"||i==="Safari"||i==="Opera")&&t!=="20030107")return true;var n=eval.toString().length;if(n===37&&i!=="Safari"&&i!=="Firefox"&&i!=="Other")return true;else if(n===39&&i!=="Internet Explorer"&&i!=="Other")return true;else if(n===33&&i!=="Chrome"&&i!=="Opera"&&i!=="Other")return true;var o;try{throw"a"}catch(a){try{a.toSource();o=true}catch(r){o=false}}if(o&&i!=="Firefox"&&i!=="Other")return true;return false},isCanvasSupported:function oe(){var e=document.createElement("canvas");return!!(e.getContext&&e.getContext("2d"))},isWebGlSupported:function ae(){if(!this.isCanvasSupported())return false;var e=this.getWebglCanvas();return!!window.WebGLRenderingContext&&!!e},isIE:function re(){if(navigator.appName==="Microsoft Internet Explorer")return true;else if(navigator.appName==="Netscape"&&/Trident/.test(navigator.userAgent))return true;return false},hasSwfObjectLoaded:function se(){return typeof window.swfobject!=="undefined"},hasMinFlashInstalled:function le(){return window.swfobject.hasFlashPlayerVersion("9.0.0")},addFlashDivNode:function ce(){var e=document.createElement("div");e.setAttribute("id",this.options.swfContainerId);document.body.appendChild(e)},loadSwfAndDetectFonts:function de(t){var e="___fp_swf_loaded";window[e]=function(e){t(e)};var i=this.options.swfContainerId;this.addFlashDivNode();var n={onReady:e};var o={allowScriptAccess:"always",menu:"false"};window.swfobject.embedSWF(this.options.swfPath,i,"1","1","9.0.0",false,n,o,{})},getWebglCanvas:function pe(){var e=document.createElement("canvas");var t=null;try{t=e.getContext("webgl")||e.getContext("experimental-webgl")}catch(i){}if(!t)t=null;return t},each:function ge(e,t,i){if(e===null)return;if(this.nativeForEach&&e.forEach===this.nativeForEach)e.forEach(t,i);else if(e.length===+e.length){for(var n=0,o=e.length;n<o;n++)if(t.call(i,e[n],n,e)==={})return}else for(var a in e)if(e.hasOwnProperty(a))if(t.call(i,e[a],a,e)==={})return},map:function he(e,n,o){var a=[];if(e==null)return a;if(this.nativeMap&&e.map===this.nativeMap)return e.map(n,o);this.each(e,function(e,t,i){a[a.length]=n.call(o,e,t,i)});return a},x64Add:function ue(e,t){e=[e[0]>>>16,e[0]&65535,e[1]>>>16,e[1]&65535];t=[t[0]>>>16,t[0]&65535,t[1]>>>16,t[1]&65535];var i=[0,0,0,0];i[3]+=e[3]+t[3];i[2]+=i[3]>>>16;i[3]&=65535;i[2]+=e[2]+t[2];i[1]+=i[2]>>>16;i[2]&=65535;i[1]+=e[1]+t[1];i[0]+=i[1]>>>16;i[1]&=65535;i[0]+=e[0]+t[0];i[0]&=65535;return[i[0]<<16|i[1],i[2]<<16|i[3]]},x64Multiply:function fe(e,t){e=[e[0]>>>16,e[0]&65535,e[1]>>>16,e[1]&65535];t=[t[0]>>>16,t[0]&65535,t[1]>>>16,t[1]&65535];var i=[0,0,0,0];i[3]+=e[3]*t[3];i[2]+=i[3]>>>16;i[3]&=65535;i[2]+=e[2]*t[3];i[1]+=i[2]>>>16;i[2]&=65535;i[2]+=e[3]*t[2];i[1]+=i[2]>>>16;i[2]&=65535;i[1]+=e[1]*t[3];i[0]+=i[1]>>>16;i[1]&=65535;i[1]+=e[2]*t[2];i[0]+=i[1]>>>16;i[1]&=65535;i[1]+=e[3]*t[1];i[0]+=i[1]>>>16;i[1]&=65535;i[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0];i[0]&=65535;return[i[0]<<16|i[1],i[2]<<16|i[3]]},x64Rotl:function me(e,t){t%=64;if(t===32)return[e[1],e[0]];else if(t<32)return[e[0]<<t|e[1]>>>32-t,e[1]<<t|e[0]>>>32-t];else{t-=32;return[e[1]<<t|e[0]>>>32-t,e[0]<<t|e[1]>>>32-t]}},x64LeftShift:function we(e,t){t%=64;if(t===0)return e;else if(t<32)return[e[0]<<t|e[1]>>>32-t,e[1]<<t];else return[e[1]<<t-32,0]},x64Xor:function be(e,t){return[e[0]^t[0],e[1]^t[1]]},x64Fmix:function ve(e){e=this.x64Xor(e,[0,e[0]>>>1]);e=this.x64Multiply(e,[4283543511,3981806797]);e=this.x64Xor(e,[0,e[0]>>>1]);e=this.x64Multiply(e,[3301882366,444984403]);e=this.x64Xor(e,[0,e[0]>>>1]);return e},x64hash128:function ye(e,t){e=e||"";t=t||0;var i=e.length%16;var n=e.length-i;var o=[0,t];var a=[0,t];var r=[0,0];var s=[0,0];var l=[2277735313,289559509];var c=[1291169091,658871167];for(var d=0;d<n;d=d+16){r=[e.charCodeAt(d+4)&255|(e.charCodeAt(d+5)&255)<<8|(e.charCodeAt(d+6)&255)<<16|(e.charCodeAt(d+7)&255)<<24,e.charCodeAt(d)&255|(e.charCodeAt(d+1)&255)<<8|(e.charCodeAt(d+2)&255)<<16|(e.charCodeAt(d+3)&255)<<24];s=[e.charCodeAt(d+12)&255|(e.charCodeAt(d+13)&255)<<8|(e.charCodeAt(d+14)&255)<<16|(e.charCodeAt(d+15)&255)<<24,e.charCodeAt(d+8)&255|(e.charCodeAt(d+9)&255)<<8|(e.charCodeAt(d+10)&255)<<16|(e.charCodeAt(d+11)&255)<<24];r=this.x64Multiply(r,l);r=this.x64Rotl(r,31);r=this.x64Multiply(r,c);o=this.x64Xor(o,r);o=this.x64Rotl(o,27);o=this.x64Add(o,a);o=this.x64Add(this.x64Multiply(o,[0,5]),[0,1390208809]);s=this.x64Multiply(s,c);s=this.x64Rotl(s,33);s=this.x64Multiply(s,l);a=this.x64Xor(a,s);a=this.x64Rotl(a,31);a=this.x64Add(a,o);a=this.x64Add(this.x64Multiply(a,[0,5]),[0,944331445])}r=[0,0];s=[0,0];switch(i){case 15:s=this.x64Xor(s,this.x64LeftShift([0,e.charCodeAt(d+14)],48));case 14:s=this.x64Xor(s,this.x64LeftShift([0,e.charCodeAt(d+13)],40));case 13:s=this.x64Xor(s,this.x64LeftShift([0,e.charCodeAt(d+12)],32));case 12:s=this.x64Xor(s,this.x64LeftShift([0,e.charCodeAt(d+11)],24));case 11:s=this.x64Xor(s,this.x64LeftShift([0,e.charCodeAt(d+10)],16));case 10:s=this.x64Xor(s,this.x64LeftShift([0,e.charCodeAt(d+9)],8));case 9:s=this.x64Xor(s,[0,e.charCodeAt(d+8)]);s=this.x64Multiply(s,c);s=this.x64Rotl(s,33);s=this.x64Multiply(s,l);a=this.x64Xor(a,s);case 8:r=this.x64Xor(r,this.x64LeftShift([0,e.charCodeAt(d+7)],56));case 7:r=this.x64Xor(r,this.x64LeftShift([0,e.charCodeAt(d+6)],48));case 6:r=this.x64Xor(r,this.x64LeftShift([0,e.charCodeAt(d+5)],40));case 5:r=this.x64Xor(r,this.x64LeftShift([0,e.charCodeAt(d+4)],32));case 4:r=this.x64Xor(r,this.x64LeftShift([0,e.charCodeAt(d+3)],24));case 3:r=this.x64Xor(r,this.x64LeftShift([0,e.charCodeAt(d+2)],16));case 2:r=this.x64Xor(r,this.x64LeftShift([0,e.charCodeAt(d+1)],8));case 1:r=this.x64Xor(r,[0,e.charCodeAt(d)]);r=this.x64Multiply(r,l);r=this.x64Rotl(r,31);r=this.x64Multiply(r,c);o=this.x64Xor(o,r)}o=this.x64Xor(o,[0,e.length]);a=this.x64Xor(a,[0,e.length]);o=this.x64Add(o,a);a=this.x64Add(a,o);o=this.x64Fmix(o);a=this.x64Fmix(a);o=this.x64Add(o,a);a=this.x64Add(a,o);return("00000000"+(o[0]>>>0).toString(16)).slice(-8)+("00000000"+(o[1]>>>0).toString(16)).slice(-8)+("00000000"+(a[0]>>>0).toString(16)).slice(-8)+("00000000"+(a[1]>>>0).toString(16)).slice(-8)}};i.VERSION="1.7.0";return i}(),e=window,function(e){"use strict";function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=void 0;var t=function(){function d(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890";!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d);var n,o,a="";this.escapeRegExp=function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},this.parseInt=function(e,t){return/^(-|\+)?([0-9]+|Infinity)$/.test(e)?parseInt(e,t):NaN},this.seps="cfhistuCFHISTU",this.minLength=0<parseInt(t,10)?t:0,this.salt="string"==typeof e?e:"","string"==typeof i&&(this.alphabet=i);for(var r=0;r!==this.alphabet.length;r++)-1===a.indexOf(this.alphabet.charAt(r))&&(a+=this.alphabet.charAt(r));if(this.alphabet=a,this.alphabet.length<16)throw"error: alphabet must contain at least X unique characters".replace("X",16);if(-1!==this.alphabet.search(" "))throw"error: alphabet cannot contain spaces";for(var s=0;s!==this.seps.length;s++){var l=this.alphabet.indexOf(this.seps.charAt(s));-1===l?this.seps=this.seps.substr(0,s)+" "+this.seps.substr(s+1):this.alphabet=this.alphabet.substr(0,l)+" "+this.alphabet.substr(l+1)}this.alphabet=this.alphabet.replace(/ /g,""),this.seps=this.seps.replace(/ /g,""),this.seps=this._shuffle(this.seps,this.salt),(!this.seps.length||3.5<this.alphabet.length/this.seps.length)&&(n=Math.ceil(this.alphabet.length/3.5))>this.seps.length&&(o=n-this.seps.length,this.seps+=this.alphabet.substr(0,o),this.alphabet=this.alphabet.substr(o)),this.alphabet=this._shuffle(this.alphabet,this.salt);var c=Math.ceil(this.alphabet.length/12);this.alphabet.length<3?(this.guards=this.seps.substr(0,c),this.seps=this.seps.substr(c)):(this.guards=this.alphabet.substr(0,c),this.alphabet=this.alphabet.substr(c))}var e,t,i;return e=d,(t=[{key:"encode",value:function f(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];if(!t.length)return"";if(t[0]&&t[0].constructor===Array&&!(t=t[0]).length)return"";for(var n=0;n!==t.length;n++)if(t[n]=this.parseInt(t[n],10),!(0<=t[n]))return"";return this._encode(t)}},{key:"decode",value:function f(e){return e&&e.length&&"string"==typeof e?this._decode(e,this.alphabet):[]}},{key:"encodeHex",value:function f(e){if(e=e.toString(),!/^[0-9a-fA-F]+$/.test(e))return"";for(var t=e.match(/[\w\W]{1,12}/g),i=0;i!==t.length;i++)t[i]=parseInt("1"+t[i],16);return this.encode.apply(this,t)}},{key:"decodeHex",value:function f(e){for(var t=[],i=this.decode(e),n=0;n!==i.length;n++)t+=i[n].toString(16).substr(1);return t}},{key:"_encode",value:function f(e){for(var t,i=this.alphabet,n=0,o=0;o!==e.length;o++)n+=e[o]%(o+100);for(var a=t=i.charAt(n%i.length),r=0;r!==e.length;r++){var s=e[r],l=a+this.salt+i;i=this._shuffle(i,l.substr(0,i.length));var c=this._toAlphabet(s,i);if(t+=c,r+1<e.length){var d=(s%=c.charCodeAt(0)+r)%this.seps.length;t+=this.seps.charAt(d)}}if(t.length<this.minLength){var p=(n+t[0].charCodeAt(0))%this.guards.length,g=this.guards[p];(t=g+t).length<this.minLength&&(p=(n+t[2].charCodeAt(0))%this.guards.length,t+=g=this.guards[p])}for(var h=parseInt(i.length/2,10);t.length<this.minLength;){var u=(t=(i=this._shuffle(i,i)).substr(h)+t+i.substr(0,h)).length-this.minLength;0<u&&(t=t.substr(u/2,this.minLength))}return t}},{key:"_decode",value:function f(e,t){var i=[],n=0,o=new RegExp("[".concat(this.escapeRegExp(this.guards),"]"),"g"),a=e.replace(o," "),r=a.split(" ");if(3!==r.length&&2!==r.length||(n=1),void 0!==(a=r[n])[0]){var s=a[0];a=a.substr(1),o=new RegExp("[".concat(this.escapeRegExp(this.seps),"]"),"g"),r=(a=a.replace(o," ")).split(" ");for(var l=0;l!==r.length;l++){var c=r[l],d=s+this.salt+t;t=this._shuffle(t,d.substr(0,t.length)),i.push(this._fromAlphabet(c,t))}this.encode(i)!==e&&(i=[])}return i}},{key:"_shuffle",value:function f(e,t){var i;if(!t.length)return e;for(var n=(e=e.split("")).length-1,o=0,a=0,r=0;0<n;n--,o++){o%=t.length,a+=i=t.charCodeAt(o);var s=e[r=(i+o+a)%n];e[r]=e[n],e[n]=s}return e=e.join("")}},{key:"_toAlphabet",value:function f(e,t){for(var i="";i=t.charAt(e%t.length)+i,e=parseInt(e/t.length,10););return i}},{key:"_fromAlphabet",value:function f(e,i){return e.split("").map(function(e){return i.indexOf(e)}).reduce(function(e,t){return e*i.length+t},0)}}])&&n(e.prototype,t),i&&n(e,i),d}();e["default"]=t}(t={}),e.Hashids=t;o(s,null,[{key:"init",value:function(e){s.tracker=e}},{key:"optIn",value:function(e,t,i){var n,o=s.tracker;!o.userRef&&"singleBannerContentChannel"!==i.optinChannelType&&"singleAddToCartContentChannel"!==i.optinChannelType&&"singlePopupContentChannel"!==i.optinChannelType&&"singleWheelContentChannel"!==i.optinChannelType||("singleBannerContentChannel"!==i.optinChannelType&&"singleAddToCartContentChannel"!==i.optinChannelType&&"singlePopupContentChannel"!==i.optinChannelType&&"singleWheelContentChannel"!==i.optinChannelType&&o.setUserRef(o.userRef),(n={user_ref:o.model.user_ref,fingerprintId:o.getFingerprintId()})[e]=t,setTimeout(function(){window.CG("track",{what:e,ofType:"optIn",onTarget:document.location.pathname,withData:{eventParams:n}})},1))}},{key:"emailOptIn",value:function(e,t){this.optIn("email",e,t)}},{key:"phoneNumberOptIn",value:function(e,t){this.optIn("phoneNumber",e,t)}}]);var r=s;function s(){n(this,s)}var l="getCode",i="userExit",c="inactivity",d="cg-disabled-btn",p={roulette:1,win:2,getCode:3,lost:4},D=1,g="halloween",h="winter",u="christmas",f="widget-wheel_close_key",m="_cg_phone_number_format",w=(o(b,null,[{key:"load",value:function(e,t){var i,n,o="en_US";navigator&&navigator.language&&(o=-1!==navigator.language.indexOf("es")?"es_ES":-1!==navigator.language.indexOf("fr")?"fr_FR":-1!==navigator.language.indexOf("it")?"it_IT":"en_US"),b.tracker=e,"undefined"==typeof FB?(window.fbAsyncInit=t,e=document,i="facebook-jssdk",n=e.getElementsByTagName("script")[0],e.getElementById(i)||((e=e.createElement("script")).id=i,e.setAttribute("crossorigin","anonymous"),e.setAttribute("defer",!0),e.src="//connect.facebook.net/"+o+"/sdk.js",n.parentNode.insertBefore(e,n))):t()}},{key:"init",value:function(e){FB.init({appId:e.app_id,autoLogAppEvents:!1,version:"v9.0",xfbml:!0,cookie:!0}),FB.Event.subscribe("messenger_checkbox",function(t){var i="checkbox"===t.event&&"checked"===t.state?t.user_ref:null;b.tracker.userRef=i,x.widgets.forEach(function(e){-1!==t.user_ref.indexOf(e.userRef)&&e.handleFbEvent(t),e.fbCheckboxState&&(b.tracker.userRef=i)})})}},{key:"updateOptinDate",value:function(){S.setCookie(v.trkPrefix+"optin_experation_date",new Date((new Date).getTime()+864e5).toISOString(),30)}},{key:"optIn",value:function(e,t){var i,n,o=b.tracker;o&&o.userRef&&(o.setUserRef(o.userRef),this.updateOptinDate(),n={app_id:(i=(void 0!==O?O:o.config).fbSettings).app_id,page_id:i.page_id,ref:"fb-checkbox",user_ref:o.model.user_ref},setTimeout(function(){window.CG("track",{what:"fbm",ofType:"optIn",onTarget:document.location.pathname,withData:{eventParams:{app_id:i.app_id,page_id:i.page_id,ref:"fb-checkbox",user_ref:o.model.user_ref,fingerprintId:o.getFingerprintId()}}})},0),FB.AppEvents.logEvent("MessengerCheckboxUserConfirmation",null,n))}},{key:"addCheckBox",value:function(e,t){var i=document.createElement("div"),n=document.createElement("div"),o=S.uuid(),a=document.createElement("div");a.innerHTML=navigator&&navigator.language.includes("fr")?"Souscrire à Messenger pour recevoir les mises à jour de vos commandes!":navigator&&navigator.language.includes("es")?"¡Quiero recibir por Messenger las actualizaciones de mis pedidos!":navigator&&navigator.language.includes("it")?"Voglio ricevere gli aggiornamenti dei miei ordini tramite Messenger!":"Subscribe to Messenger to get updates on your orders!","c48455c2-d635-44bf-ab3a-ac282f5c251a"===e.siteId&&(a.innerHTML="M’alerter sur Messenger de ma commande"),x.setAttributes(n,{id:"fbm-optin-"+o,"class":"fb-messenger-checkbox",style:"margin-left: inherit;",color:"blue",allow_login:!0,origin:document.location.href,messenger_app_id:e.app_id,page_id:e.page_id,user_ref:o,size:"standard"}),x.setAttributes(a,{style:"color:black;margin-left:5px;font-size:10px;"}),t.setAttribute("user_ref",o),i.appendChild(n),i.style.minWidth="285px",i.style.width="100%",i.style.height="75px",i.style.clear="both",i.style.display="block",x.appendAfterElement(t,i),x.appendAfterElement(i,a),FB.XFBML.parse(i)}}]),b);function b(){n(this,b)}window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(e,t){t=t||window;for(var i=0;i<this.length;i+=1)e.call(t,this[i],i,this)});var v={version:"1.0.0",xhrTimeout:parseInt("5000"),trkUrl:"https://tracker.carts.guru/",trkClientUrl:"https://tracker-client.carts.guru/",trkDomain:"tracker.carts.guru",trkPrefix:"trkcg_",SOURCE_TYPE:JSON.parse('{"Ads":"ads","Direct":"direct","Organic":"organic","Referral":"referral"}'),CART_SOURCE_TYPE:JSON.parse('{"FBM":1,"CI":2}'),organicSources:JSON.parse('["aol.com","ask.com","bing.com","google.com","google.com.ua","yahoo.com","search.yahoo.com","mamma.com","naver.com","lycos.com","hotbot.com","bbc.com","eniro.se","dotdash.com","about.com","aol.com","ask.com","globososo.com","go.mail.ru","rambler.ru","tut.by"]'),ACTIVITY_TYPES:JSON.parse('{"event":1,"action":2,"fbm":3}'),ACTIVITIES:{events:["visit","quit"],actions:["click","cartAdd","cartRemove","cartUpdate","cartCheckout","cartContinue","cartPopup","OpenCartDiv","confirmOptIn"],fbm:["confirmOptIn","optIn","optOut","MessengerCheckboxUserConfirmation"],specials:["set","unset","delete"]},EVENTS:{pageView:1,productView:2,cartView:3,cartCreate:4,cartUpdate:5,checkoutView:6},PAGE_ROUTES:{root:"index",home:"home",collections:"collection",products:"product",cart:"cart",search:"search"}},y=function y(){n(this,y),this.fingerprint=null,this.fingerprintId=null,this.timezone=null,this.origin=null,this.siteId=null,this.sessionId=null,this.cartId=null,this.email=null,this.language=null,this.page={},this.params={},this.config={}},x=(o(k,null,[{key:"disableAllWidgetsBtns",value:function(t){k.widgets.forEach(function(e){e.userRef!==t.userRef&&e.disable()})}},{key:"setVariableConfig",value:function(e,t,i,n){var o;t&&((o=document.createElement("span")).innerHTML=t.text,e.innerText=o.innerText,i&&(e.style.fontFamily=i),n?e.style.backgroundColor=t.color:e.style.color=t.color)}},{key:"copyText",value:function(e,t){function i(){return navigator.userAgent.match(/ipad|iphone/i)}var n,o;e=e=e,(n=document.createElement("input")).value=e,i()&&(n.disabled=!0),t.appendChild(n),i()?((e=document.createRange()).selectNodeContents(n),(o=window.getSelection()).removeAllRanges(),o.addRange(e),n.setSelectionRange(0,999999)):n.select(),document.execCommand("copy"),t.removeChild(n)}},{key:"getAddToCartBtns",value:function(e,t){function n(e){var t=e.querySelectorAll(['button[type="submit"]','input[type="submit"]','button[class*="btn-add-to-cart"]']),i=[];if(0!==t.length){for(var n=0;n<t.length;n++)o(t[n])&&i.push(t[n]);return i[0]}}function o(e){return e.offsetHeight}function i(e){return e.form&&e.form.childElementCount||e.childElementCount}function a(e,t){return e.className.match(t)}if(t&&"prestashop"===t.platform&&document&&document.body&&"product"!==document.body.id)return[];if(document&&document.body&&!a(document.body,"category-forfaits-sans-engagement")&&document&&document.body&&(a(document.body,"catalog-category-view")||a(document.body,"template-collection")||a(document.body,"order-opc")))return[];var r=document.querySelectorAll(['form[action="commande/ajout_caddie.php"]','form[action="/cart/add"]','form[id="product_addtocart_form"] [type=button]','form[id="buy_block"]','[id*="addtocart"]','[id*="myOwnValidate"]','[id*="myOwnUnvalidate"]','[id*="AddToCart"]','[id*="add-to-cart"]','[id*="add_to_cart"]','[class*="addtocart"]','[class*="js_add_to_cart"]','[class*="ajax_add_to_cart_button"]','a[class*="add-item"]','a[class*="additem"]','button[class*="add-to-cart"]','button[class*="add_to_cart"]','button[class*="single_add_to_cart_button"]','button[class*="btn-cart"]','a[class*="add-to-cart"]','a[class*="add_to_cart"]','a[class*="btn-cesta"]','a[href*="Type=Order"]','a[href*="add-to-cart"]','[id*="Contenu_BT_AjouterPanier"]','button[id*="productAddToCart"]','[class*="cg-fb-optin"]','[class*="btn-buyalone"]',".nephritis-flat-button",'button[class*="reserver-btn"]','button[class*="product-formulas-btn"]','[class*="valider_resa"]','[class*="button booking"]','button[id*="product-addtocart-button"]'].join(",")),s=[],l=[];for(r.length||document.querySelectorAll(['form[name*="Order"]','form[name*="order"]']).forEach(function(e){e=e.querySelectorAll('*[onclick*=".submit()"]');e.length&&r.push(e[0])}),r.forEach(function(e){var t,i=e;switch(i.nodeName){case"A":case"INPUT":case"BUTTON":case"DIV":break;case"FORM":i=(t=n(e))&&o(t)?t:null;break;default:if(!(t=n(e)))return;i=t||i}i&&s.push(i)}),h=0;h<s.length;h+=1)for(var c=s[h],d=h+1;d<s.length;)c===s[d]?s.splice(d,1):d+=1;if(e&&(s=(s=s.filter(function(e){return e.form||"FORM"===e.nodeName||"A"===e.nodeName||"BUTTON"===e.nodeName})).filter(o)),e&&2<s.length){for(var p,g=[],l=s,h=0;h<l.length;h+=1){for(p=!0,d=h+1;d<l.length;)i(l[h])===i(l[d])?(p=!1,l.splice(d,1)):d+=1;p&&g.push(l[h])}g.length||g.push(s[0]),s=l=g}return s}},{key:"appendAfterElement",value:function(e,t,i){var n;e&&t&&(e.parentNode,document.createElement("div"),(n=document.getElementById("cg-optin-widget-custom-block"))?n.appendChild(t):(e=k.getAloneInParrentAndSmallHeight(e)).parentNode.insertBefore(t,i?e:e.nextSibling))}},{key:"getAloneInParrentAndSmallHeight",value:function(e){for(var t=e.parentNode,i=e;t.children&&1===t.children.length||t.offsetHeight<100;)t=(i=t).parentNode;return i}},{key:"isElementSmallerThanVal",value:function(e,t){return e.clientWidth<t}},{key:"isOptinExpired",value:function(){var e=S.getCookie(v.trkPrefix+"optin_experation_date");return!e||(new Date).getTime()>=new Date(e).getTime()}},{key:"renderFBM",value:function(e,t,i,n,o,a){-1!==["df23ff82-d651-4074-8feb-1ba005b0c1e1","dc8821ac-06c8-465c-b2c7-49d7d8bd5df4","2452e5b2-d603-48ea-a888-84b24bc79723","9c769262-ca65-4dce-a2f0-fae8c3589869","96345ec6-fb20-45e2-9b84-c82591d2a801","0857f2c4-aa76-410c-bcba-615652948f0a","4107bf6b-2909-45c2-b506-e903a84b19b7","cb0140de-9372-4f2c-9264-821167c1bfd4","feb68390-ac59-4c36-adb5-e525a6f0ded0","1c73a762-d300-4c39-8e1c-577f992b86b1"].indexOf(e.siteId)&&k.registerButtons([{type:"cartAdd",selector:['form[action="commande/ajout_caddie.php"] [type=submit]','[id*="add-to-cart-submit"]','[class*="simple-add-to-cart"]','[class*="btn-addtocart"]','[id*="validate-order"]','button[id*="productAddToCart"]','[class*="cg-fb-optin"]']}]);t=S.filterWidgetsByChannel(t,n,i);var r=S.getChannelsToOptin(t);if((!(S.isOptIned(t,n,i)&&!this.isOptinExpired()||S.isFacebookCheckboxRenderingRestricted(r))||!a)&&t.length){for(var s=0;s<t.length;s+=1){var l,c,d=t[s];0===d.typeFlag?(c=k.getAddToCartBtns(!0))&&c.length&&(c.length<H||("df23ff82-d651-4074-8feb-1ba005b0c1e1"===e.siteId||"805b8cf5-8659-4890-a10b-a78a72b05210"===e.siteId||"c0c5009c-c42e-4340-9ce8-855022cc87ae"===e.siteId)&&c.length<=H)&&(l=new U(c[0],a)):l=new U(undefined,a),l&&((c=d).fbSettings=e,c._phoneFormat=o,l.init(c,n),k.widgets.push(l))}a&&k.addFacebookCheckboxesToAddToCartBtns(e,!1)}}},{key:"addFacebookCheckboxesToAddToCartBtns",value:function(e,t){var i=k.getAddToCartBtns(!0,e);i&&i.length&&(i.forEach(function(e){e.addEventListener("click",function(){w.optIn(null,"regular")})}),t)&&w.addCheckBox(e,i[0])}},{key:"registerButtons",value:function(e){e?k.registeredButtons=e:e=k.registeredButtons;var o=function o(i,n){return function(e){var t={eventTimestamp:(new Date).getTime()};e&&e.currentTarget&&e.currentTarget.getAttribute&&e.currentTarget.getAttribute("href")&&(t.eventTarget=e.currentTarget.getAttribute("href")),window.CG("storeEvent",{what:i,ofType:n,onTarget:document.location.pathname,withData:t})}},i=function i(t){if(!(l=document.querySelectorAll(t.selector.join(","))))return"continue";l.forEach(function(e){e.addEventListener("click",o("action",t.type),{capture:!0})})},t=!0,n=!1,a=undefined;try{for(var r,s=e[Symbol.iterator]();!(t=(r=s.next()).done);t=!0){var l;i(r.value)}}catch(c){n=!0,a=c}finally{try{!t&&s["return"]&&s["return"]()}finally{if(n)throw a}}}},{key:"setAttributes",value:function(e,t){for(var i in t)t[i]&&e.setAttribute(i,t[i])}},{key:"isMobileDevice",value:function(){return/Android|webOS|iPhone|iPad|BlackBerry|Windows Phone|Opera Mini|IEMobile|Mobile/i.test(navigator.userAgent)}},{key:"setBodyScrollState",value:function(e){e?document.body.classList.remove("cg-disable-scroll"):document.body.classList.add("cg-disable-scroll")}}]),k);function k(){n(this,k)}x.registeredButtons=[],x.widgets=[];var H=2,W="CG_widget_flyout_close";function C(){n(this,C),this.uriHelper=new L}o(C,[{key:"getActiveCouponCode",value:function(e){for(var t,i=(new Date).getTime(),n=0;n<e.coupons.length;n+=1){var o=new Date(e.coupons[n].sendingStartDate).getTime(),a=new Date(e.coupons[n].sendingEndDate).getTime();o<=i&&i<=a&&(t=e.coupons[n])}return(t=t||e.coupons[e.coupons.length-1]).code}},{key:"makeActionRequest",value:function(e,t,i){e.setRequestHeader("Content-Type","application/json"),(i=this.getCookie(v.trkPrefix+"sid"))&&e.setRequestHeader("X-CG-SID",i),e.send(JSON.stringify(t))}},{key:"validatePhoneNumber",value:function(e){var n=this,o=new XMLHttpRequest,a=v.trkUrl;return new Promise(function(t,i){o.ontimeout=function(){return i((new Date).toISOString(),"Request for [",a,"] TIMED OUT.")},o.onreadystatechange=function(){if(4===o.readyState&&200===o.status){var e;if((e=JSON.parse(o.responseText.trim()).results[0]).validatePhoneNumber&&200===e.validatePhoneNumber.status)return t(!0);i(!1)}},o.open("POST",a,!0),o.timeout=v.xhrTimeout,o.withCredentials=!1,n.makeActionRequest(o,{actions:[{validatePhoneNumber:{value:e}}]})})}},{key:"makeRequest",value:function(e,t,i){var n=new XMLHttpRequest,o=v.trkUrl+e;n.ontimeout=function(){i((new Date).toISOString(),"Request for [",o,"] TIMED OUT.")},n.onreadystatechange=function(){var e;4===this.readyState&&(200===this.status?(e=JSON.parse(this.responseText.trim()),i(null,e)):i((new Date).toISOString(),"AJAX ERROR for [",o,"]:",this.status,"with message [",this.statusText,"]"))},n.open("POST",o,!0),n.timeout=v.xhrTimeout,n.withCredentials=!1,n.setRequestHeader("Content-Type","application/json"),n.send(JSON.stringify(t))}},{key:"uuid",value:function(){function e(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}},{key:"fireStoredEvents",value:function(){var e=window.localStorage,t=e.getItem("cgEventsStorage")?JSON.parse(e.getItem("cgEventsStorage")):[];if(0<(t="string"==typeof t?JSON.parse(t):t).length){for(var i=0;i<t.length;i+=1)window.CG("track",t[i]);e.removeItem("cgEventsStorage")}}},{key:"storeEvent",value:function(e){var t=window.localStorage,i=t.getItem("cgEventsStorage")?JSON.parse(t.getItem("cgEventsStorage")):[];i.push(e),t.setItem("cgEventsStorage",JSON.stringify(i))}},{key:"getCookieDomain",value:function(){return null===document.domain?"":document.domain}},{key:"getCookie",value:function(e){for(var t,i,n=document.cookie.split(";"),o=0;o<n.length;o+=1)if(t=n[o].substr(0,n[o].indexOf("=")),i=n[o].substr(n[o].indexOf("=")+1),(t=t.replace(/^\s+|\s+$/g,""))===e)return decodeURIComponent(i)}},{key:"setCookie",value:function(e,t,i,n,o){var a=new Date,i=(a.setDate(a.getDate()+i||0),a.setMinutes(a.getMinutes()+n||0),encodeURIComponent(t||"")+"; expires="+a.toUTCString()+(o?"":"; domain="+this.getCookieDomain())+"; path=/;");document.cookie=e+"="+i}},{key:"delCookie",value:function(e){document.cookie=e+"=;path=/"+(this.getCookieDomain()?";domain="+this.getCookieDomain():"")+";expires=Thu, 01 Jan 1970 00:00:01 GMT"}},{key:"getParameterByName",value:function(e,t){t=t||window.location.href,e=e.replace(/[\[\]]/g,"\\$&");e=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t);return e?e[2]?decodeURIComponent(e[2].replace(/\+/g," ")):"":null}},{key:"getPageInfo",value:function(){return{type:this.getPageType(),path:document.location.pathname,title:document.title,referrer:this.getReferrer(),referrerType:this.getReferrerType(),utm:this.getUTM(),query:this.getQueryParams()}}},{key:"getPageType",value:function(){var e=document.getElementsByTagName("body")[0];if(e){e=e.getAttribute("class");if(e)return e.split(" ")[0].replace("template-","")}return document.location.pathname}},{key:"getReferrer",value:function(){return document.referrer||""}},{key:"getReferrerHost",value:function(e){return this.uriHelper.getHost(e)}},{key:"getReferrerType",value:function(e){var t=void 0,e=e||this.getReferrer(),i=this.getReferrerHost(e),n=this.getUTM();return t=void 0===(t=(t=!(t=e?t:v.SOURCE_TYPE.Direct)&&0<v.organicSources.indexOf(i)?v.SOURCE_TYPE.Organic:t)||void 0===n||JSON.stringify({})===JSON.stringify(n)?t:v.SOURCE_TYPE.Ads)&&!0==!!e?v.SOURCE_TYPE.Referral:t}},{key:"getUTM",value:function(){var e=this.getQueryParams();return{utm_source:e.utm_source,utm_medium:e.utm_medium,utm_campaign:e.utm_campaign,utm_term:e.utm_term,utm_content:e.utm_content}}},{key:"getQueryParams",value:function(e){e=document.location.search.split("+").join(" ");for(var t,i={},n=/[?&]?([^=]+)=([^&]*)/g;t=n.exec(e);)i[decodeURIComponent(t[1])]=decodeURIComponent(t[2]);return i}},{key:"deepMerge",value:function(e,t){function c(e){return e&&"object"===(void 0===e?"undefined":F(e))&&"[object RegExp]"!==Object.prototype.toString.call(e)&&"[object Date]"!==Object.prototype.toString.call(e)}function d(e,t){return t&&!0===t.clone&&c(e)?g(Array.isArray(e)?[]:{},e,t):e}function p(i,e,n){var o=i.slice();return e.forEach(function(e,t){"undefined"==typeof o[t]?o[t]=d(e,n):c(e)?o[t]=g(i[t],e,n):-1===i.indexOf(e)&&o.push(d(e,n))}),o}function g(e,t,i){var n,o,a,r,s=Array.isArray(t),l=(i||{arrayMerge:p}).arrayMerge||p;return s?Array.isArray(e)?l(e,t,i):d(t,i):(o=t,a=i,r={},c(n=e)&&Object.keys(n).forEach(function(e){r[e]=d(n[e],a)}),Object.keys(o).forEach(function(e){c(o[e])&&n[e]?r[e]=g(n[e],o[e],a):r[e]=d(o[e],a)}),r)}return(g.all=function(e,i){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce(function(e,t){return g(e,t,i)})})(e,t)}},{key:"replaceImgBySvg",value:function(t,e,i){var n=this,o=t.getAttribute("id"),a=t.getAttribute("class"),r=new XMLHttpRequest;-1==e.indexOf("https")&&-1!==e.indexOf("cloudfront")&&e.replace("http","https"),r.onreadystatechange=function(){var e;4==r.readyState&&200==r.status&&(e=r.responseXML.getElementsByTagName("svg")[0],null!=o&&e.setAttribute("id",o),null!=a&&e.setAttribute("class",a+" replaced-svg"),e.removeAttribute("xmlns:a"),!e.hasAttribute("viewBox")&&e.hasAttribute("height")&&e.hasAttribute("width")&&e.setAttribute("viewBox","0 0 "+e.getAttribute("height")+" "+e.getAttribute("width")),i&&n.applyColorOnSvg(e,i),t.parentElement.replaceChild(e,t))},r.open("GET",e,!0),r.send(null)}},{key:"applyColorOnSvg",value:function(e,t){for(var i=e.getElementsByTagName("g"),n=0;n<i.length;n++)i[n].setAttribute("stroke",t)}},{key:"setBackground",value:function(e,t,i){t.backgroundColor&&!i?(e.style.backgroundImage="none",e.style.backgroundColor=t.backgroundColor):e.style.backgroundImage=this.getWidgetBackgroundStyle(t.backgroundImage,t.backgroundColor)}},{key:"getWidgetBackgroundStyle",value:function(e,t){return(e=t&&!e?"linear-gradient("+t+", "+t+")":e)&&e.includes("gradient")&&!e.includes("http")?e:"url('"+e+"')"}},{key:"getLotteryDiscountOnChance",value:function(e){var t,i,n,o=[],a=100,r=e.filter(function(e){return!e.id})[0]||null;for(e=e.filter(function(e){return e.id}),t=0;t<e.length;t+=1){for(i=0;i<e[t].percentage;i+=1)o.push(e[t]);a-=e[t].percentage}for(n=0;n<a;n+=1)o.push(r);return o[Math.floor(Math.random()*o.length)]}},{key:"getUserBrowser",value:function(){var e=navigator.userAgent,t=void 0,i=e.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];return/trident/i.test(i[1])?"IE "+((t=/\brv[ :]+(\d+)/g.exec(e)||[])[1]||""):"Chrome"===i[1]&&null!=(t=e.match(/\b(OPR|Edge)\/(\d+)/))?t.slice(1).join(" ").replace("OPR","Opera"):(i=i[2]?[i[1],i[2]]:[navigator.appName,navigator.appVersion,"-?"],null!=(t=e.match(/version\/(\d+)/i))&&i.splice(1,1,t[1]),i.join(" "))}},{key:"isFacebookCheckboxRenderingRestricted",value:function(e){return!1}},{key:"isFBMRestricted",value:function(){return!1}},{key:"getPhoneFormat",value:function(){var r=this;return new Promise(function(t,i){var n,e,o=window.localStorage,a=o.getItem(m);a?t(a):(n=new XMLHttpRequest,e=v.trkUrl,n.ontimeout=function(){return i((new Date).toISOString(),"Request for [",e,"] TIMED OUT.")},n.onreadystatechange=function(){if(4===n.readyState&&200===n.status){var e;if((e=JSON.parse(n.responseText.trim()).results[0]).phoneNumberFormat&&e.phoneNumberFormat.data)return o.setItem(m,e.phoneNumberFormat.data),t(e.phoneNumberFormat.data);i(!1)}},n.open("POST",e,!0),n.timeout=v.xhrTimeout,n.withCredentials=!1,r.makeActionRequest(n,{actions:[{phoneNumberFormat:{value:!0}}]}))})}},{key:"getChannelsToOptin",value:function(e){for(var t=[],i=0;i<e.length;i++)for(var n=e[i],o=0;o<n.channelOptinOrder.length;o++)t.includes(n.channelOptinOrder[o])||t.push(n.channelOptinOrder[o]);return t}},{key:"isOptIned",value:function(e,t,i){e=this.getChannelsToOptin(e);return this.isChannelsOptined(e,t,i)}},{key:"isChannelsOptined",value:function(e,t,i){for(var n=0;n<(e||[]).length;n++)switch(e[n]){case 9:if(t.user_ref||i)break;return!1;case 0:if(t.sms)break;return!1;case 7:if(t.email)break;return!1}return!0}},{key:"filterWidgetsByChannel",value:function(e,t,i){for(var n,o=0;o<e.length;o++)n=e[o],this.isChannelsOptined(n.channelOptinOrder,t,i)&&(e.splice(o,1),o--);return e}}]);var S=new C,U=(o(T,[{key:"init",value:function(e,t){var i=this;if(this.shouldBeDisplayed(e)){this.config=e,this.config.language=window.navigator.language.substring(0,2).toLowerCase(),this.userRefConfig=t,this.optinChannels=this.getOptinChannels(t);t=this.config.translations.find(function(e){return i.config.language===e.key.toLowerCase()});switch(t||(this.config.language=this.config.defaultTranslationLanguage.toLowerCase(),t=this.config.translations.find(function(e){return i.config.language===e.key.toLowerCase()})),this.config.config=S.deepMerge([this.config.config,this.prepareTranslation(t)]),this.widgetResources=new M(this.config.language),this.userRef=S.uuid()+"-"+e.typeFlag,this.appendStyle(M.STYLES.common),4!==this.config.typeFlag&&0===e.format&&(this.lottery={state:p.roulette},this.generateLottery()),this.config.typeFlag){case 2:this.updateViewOfWidget(this.config),this.setupBanner();break;case 1:case 3:this.setupAddToCartPopup();break;case 0:this.updateViewOfWidget(this.config),this.setupAddToCartMessage();break;case 4:if(!this.shouldBeDisplayed(this.config))return;this.updateViewOfWidget(this.config),this.setupWheel()}window.FB&&window.FB.XFBML.parse(),this.setBtnState(this.fbCheckboxState)}}},{key:"prepareTranslation",value:function(e){function t(e){for(var t in e={button:e.button,title:e.title,subtitle:e.subtitle})e[t]||delete e[t];for(var i in e)e[i]={text:e[i].text};return e}if(!e)return{};var i,n,o=JSON.parse(JSON.stringify(e));for(i in o={discountCode:o.discountCode,widget:o.widget,lotteryPopup:o.lotteryPopup})o[i]||delete o[i];for(n in o){var a=o[n];if("lotteryPopup"===n)for(var r in a)a[r]=t(a[r]);else a=t(a);o[n]=a}return o}},{key:"getWidgetViewLimit",value:function(e){return S.getCookie(v.trkPrefix+"widget_view_timing_"+e.typeFlag)}},{key:"setWidgetViewLimit",value:function(e){S.setCookie(v.trkPrefix+"widget_view_timing_"+e.typeFlag,new Date((new Date).getTime()+e.frequencyLimit.viewTimeLimit).toISOString(),30)}},{key:"deleteWidgetViewLimit",value:function(e){S.delCookie(v.trkPrefix+"widget_view_timing_"+e.typeFlag)}},{key:"getWidgetViewCount",value:function(e){return S.getCookie(v.trkPrefix+"widget_view_count_"+e.typeFlag)}},{key:"setWidgetViewCount",value:function(e,t){S.setCookie(v.trkPrefix+"widget_view_count_"+e.typeFlag,t,30)}},{key:"deleteWidgetViewCount",value:function(e){S.delCookie(v.trkPrefix+"widget_view_count_"+e.typeFlag)}},{key:"shouldBeDisplayed",value:function(e){var t=this.getWidgetViewLimit(e);return!t||(new Date).getTime()>=new Date(t).getTime()&&(this.deleteWidgetViewLimit(e),!0)}},{key:"updateViewOfWidget",value:function(e){var t=this.getWidgetViewCount(e),i=this.getWidgetViewLimit(e);t||i?parseInt(t)+1>=e.frequencyLimit.maxView&&!i?this.setWidgetOptInViewState():this.setWidgetViewCount(e,parseInt(t)+1):(this.setWidgetViewCount(e,1),e.frequencyLimit&&e.frequencyLimit.maxView<=1&&this.setWidgetOptInViewState())}},{key:"setWidgetOptInViewState",value:function(){var e=this.config;this.deleteWidgetViewCount(e),this.setWidgetViewLimit(e)}},{key:"appendStyle",value:function(e){var t=document.createElement("style");t.innerHTML=e,document.body.appendChild(t)}},{key:"generateLottery",value:function(){var e=document.createElement("div");document.getElementsByClassName("lottery-format-preview-steps").length||(this.appendStyle(M.STYLES.lotteryStyles),this.appendStyle(M.STYLES.modalAddToCartStyles)),this.lottery=new X(this,e),document.body.appendChild(e)}},{key:"disable",value:function(){this.disabled=!0,this.widgetResources&&this.setBtnState(!1,this.widgetResources.get("discountIsGet")),this.disableAddToCartSpeicificHandlers()}},{key:"disableAddToCartSpeicificHandlers",value:function(){}},{key:"setBtnState",value:function(e){}},{key:"setModalState",value:function(){}},{key:"onDirectDiscount",value:function(){}},{key:"onAddToCartModalClose",value:function(){}},{key:"onNoDiscountClick",value:function(){}},{key:"setBtnCopiedState",value:function(e,t){this.showTooltip(e,this.widgetResources.get("copied"),t)}},{key:"showTooltip",value:function(e,t,i){var n,o=this,a=document.createElement("div"),r=e.getBoundingClientRect(),s=!this.isTooltipBottom();this.tooltip.timeOut&&this.tooltip.rect.top===r.top&&this.tooltip.rect.left===r.left?clearTimeout(this.tooltip.timeOut):(n=document.body.offsetWidth-r.left-e.offsetWidth/2-40+"px",this.tooltip.timeOut&&(clearTimeout(this.tooltip.timeOut),document.body.removeChild(this.tooltip.domEl)),(this.tooltip.domEl=a).classList.add("cg-widget-tooltip"),a.classList.add("cg-show"),i&&(a.style.position="fixed"),a.style.right=n,a.innerText=t,this.tooltip.rect=r,a.style.visibility="hidden",document.body.appendChild(a),n=i?r.top:r.top+window.scrollY,n=s?n-a.offsetHeight-"15":n+e.offsetHeight+15,a.style.top=n+="px",s&&a.classList.add("cg-on-top"),a.style.visibility=""),this.tooltip.timeOut=setTimeout(function(e){o.hideTooltip()},2500,this)}},{key:"hideTooltip",value:function(){var e=this;e.tooltip.domEl&&(e.tooltip.timeOut&&(clearTimeout(e.tooltip.timeOut),e.tooltip.timeOut=null),document.body.removeChild(e.tooltip.domEl),e.tooltip.domEl=null)}},{key:"showLotteryModal",value:function(){this.lottery.setModalState(!0)}},{key:"setupBanner",value:function(){var e=document.createElement("div");e.classList.add("banner-widget"),0===this.config.config.position?e.classList.add("right"):e.classList.add("left"),new z(this,e);this.appendStyle(M.STYLES.bannerStyles),document.body.appendChild(e)}},{key:"setupAddToCartPopup",value:function(){var e=document.createElement("div");e.classList.add("cg-add-to-cart-popup"),new V(this,e);this.appendStyle(M.STYLES.modalAddToCartStyles),document.body.appendChild(e)}},{key:"setupWheel",value:function(){var e=document.createElement("div");e.classList.add("wheel-wrapper"),new K(this,e);this.appendStyle(M.STYLES.wheelStyles),document.body.appendChild(e)}},{key:"setupAddToCartMessage",value:function(){document.createElement("div").classList.add("add-to-cart-message-widget"),this.appendStyle(M.STYLES.addToCartMessage);var e=document.createElement("div");e.style.width="100%",e.style.clear="both",e.style.overflow="hidden",x.appendAfterElement(this.appendToEl,e,this.config.config.position),new G(this,e)}},{key:"widgetActionSubmit",value:function(){switch(w.optIn(this,"widget"),x.disableAllWidgetsBtns(this),this.setWidgetOptInViewState(),this.config.format){case 0:this.showLotteryModal();break;case 1:this.onDirectDiscount();break;case 2:this.onNoDiscountClick()}}},{key:"actionClickHandler",value:function(e){var t=this;return this.channelValidationHandler(e).then(function(){return t.widgetActionSubmit(),!0})["catch"](function(e){t.showTooltip(t.submitBtn,e,!0)})}},{key:"onOptinClick",value:function(e){var t=this;return this.channelValidationHandler(e).then(function(){return w.optIn(t,"widget"),x.disableAllWidgetsBtns(t),t.setWidgetOptInViewState(),!0})["catch"](function(e){return t.showTooltip(t.submitBtn,e,!0),!1})}},{key:"onNoDiscountClickHandler",value:function(e){e.innerText=this.widgetResources.get("thanks"),x.disableAllWidgetsBtns(this)}},{key:"handleFbEvent",value:function(e){switch(e.state){case"checked":case"unchecked":this.setFbUserAllowState("checked"===e.state)}}},{key:"setFbUserAllowState",value:function(e){(this.fbCheckboxState=e)&&this.hideTooltip(),this.disabled||this.setBtnState(e,this.widgetResources.get("disabled"))}},{key:"getOptinChannels",value:function(e){var t={},i=this.config.channelOptinOrder||[9],n=[],o=(t[7]="email",t[0]="sms",!0),a=!(t[9]="user_ref"),r=undefined;try{for(var s,l=i[Symbol.iterator]();!(o=(s=l.next()).done);o=!0){var c=s.value;e[t[c]]||n.push(c)}}catch(d){a=!0,r=d}finally{try{!o&&l["return"]&&l["return"]()}finally{if(a)throw r}}return n=!S.isFBMRestricted()&&this.isFBM?n:n.filter(function(e){return 9!==e})}},{key:"generateOptinChannel",value:function(e,t,i){var e={userRef:e,fbSettings:t},n={phoneFormat:this.config._phoneFormat},o={emailPlaceholder:this.widgetResources.get("emailPlaceholder")},t="",a=void 0,r=this.optinChannels[0],s=void 0,l=(this.optinChannels.length&&(s=this.optinChannels[this.optinChannels.length-1]),void 0);if(0===r&&9===s)switch(a=this.widgetResources.generate("smsOptin",n),t=this.widgetResources.generate("fbmOptin",e),this.config.typeFlag){case 0:l="dualAddToCartContentChannel";break;case 2:l="dualBannerContentChannel";break;case 1:case 3:l="dualPopupContentChannel";break;case 4:l="dualWheelContentChannel"}else if(7===r&&9===s)switch(a=this.widgetResources.generate("emailOptin",o),t=this.widgetResources.generate("fbmOptin",e),this.config.typeFlag){case 0:l="dualAddToCartContentChannel";break;case 2:l="dualBannerContentChannel";break;case 1:case 3:l="dualPopupContentChannel";break;case 4:l="dualWheelContentChannel"}else if(0===r)switch(a=this.widgetResources.generate("smsOptin",n),this.config.typeFlag){case 0:l="singleAddToCartContentChannel",a=this.widgetResources.generate("smsOptinInput",n);break;case 2:l="singleBannerContentChannel";break;case 1:case 3:l="singlePopupContentChannel";break;case 4:l="singleWheelContentChannel"}else if(7===r)switch(a=this.widgetResources.generate("emailOptin",o),this.config.typeFlag){case 0:l="singleAddToCartContentChannel",a=this.widgetResources.generate("emailOptinInput",o);break;case 2:l="singleBannerContentChannel";break;case 1:case 3:l="singlePopupContentChannel";break;case 4:l="singleWheelContentChannel"}else if(9===r)switch(t=this.widgetResources.generate("fbmOptin",e),this.config.typeFlag){case 0:l="addToCartContentChannelFbm";break;case 2:l="bannerContentChannelFbm";break;case 1:case 3:l="popupContentChannelFbm";break;case 4:l="singleWheelContentChannelFbm"}return{optinChannel:a,fbm:t,type:l}}},{key:"isOptinFbm",value:function(){return 9===this.optinChannels[0]}},{key:"channelValidationHandler",value:function(n){var o=this;return new Promise(function(e,t){switch(o.optinChannels[0]){case 0:return o.validateSmsChannel(e,t,n).then(function(e){e&&r.phoneNumberOptIn(e,n)});case 7:var i=o.validateEmailChannel(e,t,n);i&&(r.emailOptIn(i,n),e(!0));break;default:return e(!0)}})}},{key:"validateSmsChannel",value:function(t,e,i){var n=this,o=i.getElementsByClassName("cg-channel-optin")[0];return this.isInputEmpty(o)?e(this.widgetResources.get("inputIsEmpty")):S.validatePhoneNumber(o.value).then(function(e){return t(o.value),o.value})["catch"](function(){e(n.widgetResources.get("phoneNumberIsInvalid"))})}},{key:"validateEmailChannel",value:function(e,t,i){i=i.getElementsByClassName("cg-channel-optin")[0];return this.isInputEmpty(i)?(t(this.widgetResources.get("inputIsEmpty")),!1):i.checkValidity()?(e(!0),i.value):(t(this.widgetResources.get("emailIsInvalid")),!1)}},{key:"isInputEmpty",value:function(e){return!(!e||e.value.length||(e.focus(),0))}},{key:"isTooltipBottom",value:function(){return 0===this.config.typeFlag}}]),T);function T(e,t){n(this,T),this.appendToEl=e,this.fbCheckboxState=!1,this.disabled=!1,this.tooltip={},this.isFBM=t||!1}o(E,[{key:"setup",value:function(){var t,i=this,e=this.widget.generateOptinChannel(this.widget.userRef,this.config.fbSettings),n=this.widgetResources.generate(e.type,e),n=(this.wrapper.insertAdjacentHTML("beforeend",this.widgetResources.generate("siteWidgetBannerPreview",{bannerContentChannel:n})),this.banner=this.wrapper.getElementsByClassName("site-widget-banner-preview")[0],this.banner.getElementsByClassName("site-widget-icon")[0]),o=this.banner.getElementsByClassName("cg-submit-btn")[0],a=this.banner.getElementsByClassName("site-widget-banner-header")[0],r=a.getElementsByClassName("svg-logo")[0],s=n.getElementsByTagName("img")[0],l=a.getElementsByClassName("site-widget-banner-header-icon")[0];this.banner.optinChannelType=e.type,l.style.backgroundColor=this.config.config.iconColor,n.style.backgroundColor=this.config.config.iconColor,S.setBackground(a,this.config.config.header),S.replaceImgBySvg(r,this.config.config.icon.image,this.config.config.icon.color),S.replaceImgBySvg(s,this.config.config.icon.image,this.config.config.icon.color),this.wrapper.appendChild(this.banner),n.onclick=function(){i.bannerBtnClick()},o.onclick=function(){i.onSubmitBtnClick()},this.widget.onDirectDiscount=function(){i.onDirectDiscount()},this.widget.setBtnState=function(e,t){i.setBtnState(e,t)},this.widget.onNoDiscountClick=function(){i.onNoDiscountClick()},"singleBannerContentChannel"===e.type&&((t=this.wrapper.getElementsByClassName("cg-channel-optin")[0]).oninput=function(e){""===t.value?o.classList.add(d):o.classList.contains(d)&&o.classList.remove(d)}),this.widget.submitBtn=o,this.setupBannerConfig(),this.initBanner()}},{key:"setupBannerConfig",value:function(){var e=this.banner.getElementsByClassName("widget-title")[0],t=this.banner.getElementsByClassName("widget-sub-title")[0],i=this.banner.getElementsByClassName("cg-submit-btn")[0];x.setVariableConfig(e,this.config.config.widget.title,this.config.config.widget.font),x.setVariableConfig(t,this.config.config.widget.subtitle,this.config.config.widget.font),x.setVariableConfig(i,this.config.config.widget.button,this.config.config.widget.font,!0)}},{key:"initBanner",value:function(){sessionStorage.getItem(W)||x.isMobileDevice()||!this.config.config.openByDefault||this.banner.classList.add("show-site-widget-banner")}},{key:"bannerBtnClick",value:function(){this.banner.classList.contains("show-site-widget-banner")?this.closeBanner():this.banner.classList.add("show-site-widget-banner")}},{key:"onSubmitBtnClick",value:function(){var e=this.banner.getElementsByClassName("cg-submit-btn")[0];(this.widget.fbCheckboxState||!e.classList.contains(d)&&"singleBannerContentChannel"===this.banner.optinChannelType)&&this.widget.actionClickHandler(this.banner)}},{key:"closeBanner",value:function(){sessionStorage.setItem(W,new Date),this.banner.classList.remove("show-site-widget-banner"),this.widget.hideTooltip()}},{key:"onDirectDiscount",value:function(){var e=this,t=this.config,i=this.banner.getElementsByClassName("widget-title")[0],n=this.banner.getElementsByClassName("widget-sub-title")[0],o=this.banner.getElementsByClassName("cg-submit-btn")[0],a=this.banner.getElementsByClassName("cg-subscription-box")[0],r=a.getElementsByClassName("cg-discount-value")[0],s=this.config.discount;o.onclick=function(){x.copyText(S.getActiveCouponCode(s),e.banner),e.widget.setBtnCopiedState(o,!0)},a.classList.remove("cg-input-channel-box"),a.classList.add("discount-box"),a.appendChild(o),x.setVariableConfig(i,t.config.discountCode.title,t.config.discountCode.font),x.setVariableConfig(n,t.config.discountCode.subtitle,t.config.discountCode.font),x.setVariableConfig(r,{text:S.getActiveCouponCode(s),color:t.config.discountCode.discountColor},t.config.discountCode.font),x.setVariableConfig(o,t.config.discountCode.button,t.config.discountCode.font,!0)}},{key:"setBtnState",value:function(e,t){var i=this,n=this.banner.getElementsByClassName("cg-submit-btn")[0];n.onmouseenter=null,this.widget.disabled&&(n.onclick=null),e?n.classList.remove(d):n.classList.add(d),t&&!e&&(n.onmouseenter=function(){i.widget.showTooltip(n,t,!0)})}},{key:"onNoDiscountClick",value:function(){var e=this.banner.getElementsByClassName("cg-submit-btn")[0];this.widget.onNoDiscountClickHandler(e)}}]);var z=E;function E(e,t){n(this,E),this.wrapper=t,this.widget=e,this.config=e.config,this.widgetResources=new M(this.config.language),this.setup()}o(B,[{key:"setup",value:function(){var t,i=this,e=this.widget.generateOptinChannel(this.widget.userRef,this.config.fbSettings),n=this.widgetResources.generate(e.type,e),o=(this.wrapper.insertAdjacentHTML("beforeend",this.widgetResources.generate("addToCartBlock",{cartMessageContentChannel:n})),this.messageBlock=this.wrapper.getElementsByClassName("site-widget-add-to-cart-message")[0],this.messageBlock.optinChannelType=e.type,x.isElementSmallerThanVal(this.wrapper,0)&&this.messageBlock.classList.add("column-align"),this.setupMessageConfig("widget"),this.widget.onDirectDiscount=function(){i.onDirectDiscount()},this.widget.setBtnState=function(e,t){i.setBtnState(e,t)},this.widget.onNoDiscountClick=function(){i.onNoDiscountClick()},this.messageBlock.getElementsByClassName("cg-block-btn")[0]),n=(o.onclick=function(){i.onBtnClick()},this.messageBlock.getElementsByClassName("cg-add-to-cart-block")[0]),a=this.messageBlock.getElementsByClassName("svg-icon")[0];"singleAddToCartContentChannel"===e.type&&((t=this.wrapper.getElementsByClassName("cg-channel-optin")[0]).oninput=function(e){""===t.value?o.classList.add(d):o.classList.contains(d)&&o.classList.remove(d)}),this.widget.submitBtn=o,this.config.config.border?(n.style.borderColor=this.config.config.border.color,n.style.borderRadius=this.config.config.border.radius+"px"):n.classList.add("hide-border"),this.config.config.icon?S.replaceImgBySvg(a,this.config.config.icon.image,this.config.config.icon.color):n.classList.add("hide-icon")}},{key:"setupMessageConfig",value:function(e){var t=this.config,i=this.messageBlock.getElementsByClassName("add-to-cart-title")[0],n=this.messageBlock.getElementsByClassName("add-to-cart-description")[0],o=this.messageBlock.getElementsByClassName("cg-block-btn")[0],a=this.messageBlock.getElementsByTagName("g")[0];x.setVariableConfig(i,t.config[e].title,t.config[e].font),x.setVariableConfig(n,t.config[e].subtitle,t.config[e].font),x.setVariableConfig(o,t.config[e].button,t.config[e].font,!0),a&&(a.style.stroke=t.config[e].button.color)}},{key:"onNoDiscountClick",value:function(){var e=this.messageBlock.getElementsByClassName("cg-block-btn")[0];this.widget.onNoDiscountClickHandler(e)}},{key:"onBtnClick",value:function(){var e=this.messageBlock.getElementsByClassName("cg-block-btn")[0];(this.widget.fbCheckboxState||!e.classList.contains(d)&&"singleAddToCartContentChannel"===this.messageBlock.optinChannelType)&&this.widget.actionClickHandler(this.messageBlock)}},{key:"onDirectDiscount",value:function(){var e=this,t=this.messageBlock.getElementsByClassName("cg-block-btn")[0],i=this.messageBlock.getElementsByClassName("cg-discount-value")[0];this.messageBlock.classList.add("widget-direct-discount"),this.setupMessageConfig("discountCode"),x.setVariableConfig(i,{text:S.getActiveCouponCode(this.config.discount),color:this.config.config.discountCode.discountColor},this.config.config.discountCode.font),i.innerText=S.getActiveCouponCode(this.config.discount),t.onclick=function(){x.copyText(S.getActiveCouponCode(e.config.discount),e.wrapper),e.widget.setBtnCopiedState(t)}}},{key:"setBtnState",value:function(e,t){var i=this,n=this.messageBlock.getElementsByClassName("cg-block-btn")[0];n.onmouseenter=null,this.widget.disabled&&(n.onclick=null),e?n.classList.remove(d):n.classList.add(d),t&&!e&&(n.onmouseenter=function(){i.widget.showTooltip(n,t)})}}]);var G=B;function B(e,t){n(this,B),this.wrapper=t,this.widget=e,this.config=e.config,this.widgetResources=new M(this.config.language),this.setup()}o(A,[{key:"setup",value:function(){var t,i=this,e=this.widget.generateOptinChannel(this.widget.userRef,this.config.fbSettings),n=this.widgetResources.generate(e.type,e),o=(this.wrapper.insertAdjacentHTML("beforeend",this.widgetResources.generate("addToCartPopup",{popupContentChannel:n})),this.popup=this.wrapper.getElementsByClassName("cg-site-widget-popup-add-to-cart")[0],this.popup.getElementsByClassName("cg-popup-footer-btn")[0]),n=this.popup.getElementsByClassName("close-lottery-modal")[0],a=this.wrapper.getElementsByClassName("cg-modal-bg-mask")[0],r=(this.popup.getElementsByClassName("cg-popup-add-to-cart-header")[0],this.popup.getElementsByClassName("cg-popup-bg")[0]);this.popup.optinChannelType=e.type,this.popup.classList.add(this.config.config.theme.layout),S.setBackground(r,this.config.config.theme,!0),this.setupPopupConfig("widget"),o.onclick=function(){i.btnOnClick()},n.onclick=function(){i.closeModal()},a.onclick=function(){i.closeModal()},"singlePopupContentChannel"===e.type&&((t=this.wrapper.getElementsByClassName("cg-channel-optin")[0]).oninput=function(e){""===t.value?o.classList.add(d):o.classList.contains(d)&&o.classList.remove(d)}),this.widget.submitBtn=o,this.widget.setModalState=function(e,t){i.setModalState(e,t)},this.widget.setBtnState=function(e,t){i.setBtnState(e,t)},this.widget.onDirectDiscount=function(e){i.onDirectDiscount(e)},this.widget.onNoDiscountClick=function(){i.onNoDiscountClick()},this.setupWatching()}},{key:"setupPopupConfig",value:function(e){var t=this.config,i=this.popup.getElementsByClassName("popup-add-to-cart-title")[0],n=this.popup.getElementsByClassName("popup-add-to-cart-description")[0],o=this.popup.getElementsByClassName("cg-popup-footer-btn")[0];x.setVariableConfig(i,t.config[e].title),x.setVariableConfig(n,t.config[e].subtitle),x.setVariableConfig(o,t.config[e].button,null,!0)}},{key:"setModalState",value:function(e,t){this.widget.hideTooltip(),e||t||this.widget.onAddToCartModalClose(),e?(this.wrapper.classList.add("cg-show"),x.setBodyScrollState(!1)):(this.wrapper.classList.remove("cg-show"),x.setBodyScrollState(!0))}},{key:"setBtnState",value:function(e,t){var i=this,n=this.popup.getElementsByClassName("cg-popup-footer-btn")[0];this.widget.disabled&&(n.onclick=null),e?n.classList.remove(d):n.classList.add(d),n.onmouseenter=null,t&&!e&&(n.onmouseenter=function(){i.widget.showTooltip(n,t)})}},{key:"btnOnClick",value:function(){var t=this,e=this.popup.getElementsByClassName("cg-popup-footer-btn")[0];(this.widget.fbCheckboxState||!e.classList.contains(d)&&"singlePopupContentChannel"===this.popup.optinChannelType)&&this.widget.actionClickHandler(this.popup).then(function(e){e&&(t.widget.disableAddToCartSpeicificHandlers(),0===t.config.format)&&t.setModalState(!1,!0)})}},{key:"closeModal",value:function(){this.setModalState(!1)}},{key:"onDirectDiscount",value:function(e){var t=this,e=(e=e||S.getActiveCouponCode(this.config.discount),this.popup.getElementsByClassName("cg-discount-value")[0]),i=this.popup.getElementsByClassName("cg-popup-footer-btn")[0],n=this.popup.getElementsByClassName("discount")[0];this.popup.classList.add("direct-discount"),n.appendChild(i),this.setupPopupConfig("discountCode",this.config),x.setVariableConfig(e,{text:S.getActiveCouponCode(this.config.discount),color:this.config.config.discountCode.discountColor},null),i.onclick=function(){x.copyText(S.getActiveCouponCode(t.config.discount),t.popup),t.widget.setBtnCopiedState(i)}}},{key:"onNoDiscountClick",value:function(){var e=this,t=this.popup.getElementsByClassName("cg-popup-footer-btn")[0];this.widget.onNoDiscountClickHandler(t),t.onclick=function(){e.closeModal()}}},{key:"setupWatching",value:function(){switch(this.widget.config.typeFlag){case 1:return void this.watchAddToCartBtns();case 3:return void this.watchOnExitEvents()}}},{key:"watchAddToCartBtns",value:function(){for(var t=this,i=x.getAddToCartBtns(),n=function n(e){t.onAddToCartMouseDown(e)},o=function o(e){w.optIn(t.widget,"widget")},e=0;e<i.length;e+=1){var a=i[e];a.addEventListener("click",o),a.addEventListener("mousedown",n)}this.widget.disableAddToCartSpeicificHandlers=function(){for(var e=0;e<i.length;e+=1)i[e].removeEventListener("mousedown",n)}}},{key:"watchOnExitEvents",value:function(){for(var e=0;e<this.config.triggerOn.length;e++)switch(this.config.triggerOn[e].key){case i:this.subscribeOnExitEvent();break;case c:this.watchOnExitInactivity(this.config.triggerOn[e].value)}}},{key:"subscribeOnExitEvent",value:function(){var t=this,i=function i(e){(!e.clientY||e.clientY<0)&&(t.showOnExitPopup(),document.body.removeEventListener("mouseleave",i))};document.body.addEventListener("mouseleave",i)}},{key:"watchOnExitInactivity",value:function(e){var t=this;setTimeout(function(){t.showOnExitPopup()},1e3*e)}},{key:"showOnExitPopup",value:function(){this.widget.shouldBeDisplayed(this.config)&&(this.setModalState(!0),this.widget.updateViewOfWidget(this.config))}},{key:"onAddToCartMouseDown",value:function(t){function e(){var e=t.target||t.srcElement||t.currentTarget;e.submit?e.submit():e.click&&e.click()}this.widget.shouldBeDisplayed(this.config)?(this.setModalState(!0),this.widget.updateViewOfWidget(this.config),t.stopPropagation(),t.preventDefault(),this.widget.onAddToCartModalClose=function(){e()}):e()}},{key:"isModalClosedByUser",value:function(){return window.sessionStorage&&window.sessionStorage.getItem("cgIsWidgetAddToCartModalClosed")}}]);var V=A;function A(e,t){n(this,A),this.wrapper=t,this.widget=e,this.config=e.config,this.widgetResources=new M(this.config.language),this.config.config.theme=this.config.config.theme||{layout:"layout-base",backgroundImage:"https://d2i67f08wyo552.cloudfront.net/backgrounds/bg_1.png"},this.setup()}o(_,[{key:"setup",value:function(){var e=this;this.wrapper.insertAdjacentHTML("beforeend",this.widgetResources.generate("lotteryModalTemplate")),this.lotteryModal=this.wrapper.childNodes[0],this.wrapper.appendChild(this.lotteryModal),this.wrapper.classList.add("cg-add-to-cart-popup","lottery-modal-wrapper"),this.lotteryModal=this.wrapper.getElementsByClassName("cg-site-widget-popup-add-to-cart")[0],this.wrapper.getElementsByClassName("cg-modal-bg-mask")[0].onclick=function(){e.setModalState(!1)},this.lotteryModal.getElementsByClassName("close-lottery-modal")[0].onclick=function(){e.setModalState(!1)};this.lotteryModal.getElementsByClassName("cg-popup-footer-btn")[0].onclick=function(){e.spinLottery()};var t=this.lotteryModal.getElementsByClassName("lottery-play-box"),i=this.lotteryModal.getElementsByClassName("balloon"),n=this.lotteryModal.getElementsByClassName("cg-popup-bg")[0];this.lotteryModal.classList.add(this.config.config.theme.layout),S.setBackground(n,this.config.config.theme,!0);for(var o=0;o<i.length;o++)i[o].style.backgroundImage=this.config.config.lottery.balloonColor;for(var a=0;a<t.length;a++)t[a].style.borderColor=t[a].style.color=this.config.config.lottery.rouletteColor;this.generateLotteryValues(),this.updateModalState(this.getActiveStateName(this.state))}},{key:"setModalState",value:function(e){e?(this.wrapper.classList.add("cg-show"),x.setBodyScrollState(!1)):(this.widget.onAddToCartModalClose(),this.wrapper.classList.remove("cg-show"),x.setBodyScrollState(!0)),this.widget.hideTooltip()}},{key:"getActiveStateName",value:function(e){for(var t in p)if(p[t]===e)return t}},{key:"updateModalState",value:function(e){var t=this.lotteryModal.getElementsByClassName("popup-add-to-cart-title")[0],i=this.lotteryModal.getElementsByClassName("popup-add-to-cart-description")[0],n=this.lotteryModal.getElementsByClassName("cg-popup-footer-btn")[0];x.setVariableConfig(t,this.config.config.lotteryPopup[e].title,this.config.config.lotteryPopup[e].font),x.setVariableConfig(i,this.config.config.lotteryPopup[e].subtitle,this.config.config.lotteryPopup[e].font),x.setVariableConfig(n,this.config.config.lotteryPopup[e].button,this.config.config.lotteryPopup[e].font,!0)}},{key:"changeModalState",value:function(e){var t=this,i=(this.wrapper.classList.remove(this.getActiveStateName(this.state)),this.state=e,this.wrapper.classList.add(this.getActiveStateName(this.state)),this.lotteryModal.getElementsByClassName("cg-popup-footer-btn")[0]);switch(e){case p.win:i.onclick=function(){x.disableAllWidgetsBtns(this.widget),this.changeModalState(p.getCode)};break;case p.getCode:x.disableAllWidgetsBtns(this.widget);var n=this.lotteryModal.getElementsByClassName("cg-discount-value")[0];n.innerText=S.getActiveCouponCode(this.discount),n.style.fontFamily=this.config.config.lotteryPopup.getCode.font,n.style.color=this.config.config.lotteryPopup.getCode.discountColor,i.onclick=function(){x.copyText(S.getActiveCouponCode(t.discount),t.wrapper),t.widget.setBtnCopiedState(i)}}this.updateModalState(this.getActiveStateName(this.state))}},{key:"spinLottery",value:function(){var e=this.lotteryModal.getElementsByClassName("cg-popup-footer-btn")[0],t=this.lotteryModal.getElementsByClassName("lottery-play-box-list"),i=this.callbackOnRollEnd;this.lotteryModal.getElementsByClassName("discount")[0].appendChild(e),[].forEach.call(t,function(e,t){setTimeout(function(){e.classList.add("end-spin"),e.classList.add("spin"),setTimeout(function(){e.classList.remove("spin"),setTimeout(function(){},0)},3001)},150*t)}),setTimeout(function(){i()},3e3),setTimeout(function(){setTimeout(function(){},350)},3300)}},{key:"generateLotteryValues",value:function(){var e,t=this,i=this.getLotteryWinCode();(this.discount=i)&&i.coupons?(e=1===i.typeFlag?["🚚","🚚","🚚"]:(e=(e=i.value.toString()).length<2?"0"+e:e,(e+="%").split("")),this.callbackOnRollEnd=function(){t.lotteryModal.classList.add("direct-discount"),t.changeModalState(p.getCode)}):(e=(e="00%").split(""),this.callbackOnRollEnd=function(){x.disableAllWidgetsBtns(t.widget),t.changeModalState(p.lost)}),this.generateSpinValues(e)}},{key:"generateSpinValues",value:function(r){function s(e){var t=document.createElement("div");return t.classList.add("lottery-play-box-item"),t.innerText=e,t}var e=this.lotteryModal.getElementsByClassName("lottery-play-box-list");[].forEach.call(e,function(e,t){for(var i=e,n=r[t],o=0;o<10;o+=1){var a=s(1===o||"%"===n?n:Math.floor(10*Math.random()));i.appendChild(a)}a=s("X"),i.appendChild(a)})}},{key:"getLotteryWinCode",value:function(){for(var e,t,i=this.config.discount.list,n=[],o=100,a=0;a<i.length;a+=1){for(e=0;e<i[a].percentage;e+=1)n.push(i[a]);o-=i[a].percentage}for(t=0;t<o;t+=1)n.push(null);return n[Math.floor(Math.random()*n.length)]}}]);var X=_;function _(e,t){n(this,_),this.wrapper=t,this.widget=e,this.config=e.config,this.widgetResources=new M(this.config.language),this.state=p.roulette,this.setup()}o(I,[{key:"get",value:function(e){return I.TRANSLATIONS[this.language][e]}},{key:"generate",value:function(e,t){return I.TEMPLATES[e](t)}}]);var M=I;function I(e){n(this,I),this.language=I.TRANSLATIONS[e]?e:I.DEFAULT_LANG}M.DEFAULT_LANG="en",M.TRANSLATIONS={en:{disabled:"Facebook checkbox needs to be checked!",copied:"Discount Copied!",discountIsGet:"Thanks for your participation!",thanks:"Thank you!",agreeTerms:"Please agree terms and conditions",iAgreeTo:"I agree to terms and I have read our Privacy policy",inputIsEmpty:"Input is empty",emailIsInvalid:"Email is not valid",phoneNumberIsInvalid:"Phone number is invalid",emailPlaceholder:"Your email here"},fr:{disabled:"La case Facebook doit être cochée!",copied:"Le coupon a été copié!",discountIsGet:"Merci pour votre participation!",thanks:"Merci",agreeTerms:"#Please agree terms and conditions",iAgreeTo:"#I agree to terms and I have read our Privacy policy",inputIsEmpty:"Le champs est vide",emailIsInvalid:"Email invalide",phoneNumberIsInvalid:"Numéro de téléphone invalide",emailPlaceholder:"Votre email ici"},es:{disabled:"¡El cuadro de Facebook debe seleccionarse!",copied:"¡descuento copiado!",discountIsGet:"¡Gracias por tu participación!",thanks:"Gracias",agreeTerms:"#Please agree terms and conditions",iAgreeTo:"#I agree to terms and I have read our Privacy policy",inputIsEmpty:"La entrada está vacÃa",emailIsInvalid:"El correo es invalido",phoneNumberIsInvalid:"El telefono es invalido",emailPlaceholder:"Tu email aquÃ"}},M.STYLES={common:"@font-face{font-family:'Proxima Nova';src:url(https://d2i67f08wyo552.cloudfront.net/fonts/ProximaNova-Regular.otf);font-weight:400;font-style:normal}.cg-modal-bg-mask{position:fixed;top:0;left:0;right:0;bottom:0;background:#000;opacity:.8}button.close-lottery-modal{background:0 0;border:0;outline:0;position:absolute;top:10px;right:15px;cursor:pointer;z-index:1;color:#fff;font-weight:600;font-size:20px}button.close-lottery-modal img{width:14px}@keyframes modalRender{0%{opacity:0}100%{opacity:1}}.cg-widget-tooltip{display:none;font-weight:600;background-color:#fff;border-radius:6px;box-shadow:0 2px 10px 0 rgba(0,0,0,.3);padding:10px;z-index:10000000000;font-size:14px;font-family:Proxima Nova;max-width:320px;min-width:85px;text-align:center;position:absolute;color:#4a4a4a}.cg-widget-tooltip::after,.cg-widget-tooltip::before{position:absolute;display:inline-block;content:'';width:0;height:0;border-left:9px solid transparent;border-right:9px solid transparent;right:30px}.cg-widget-tooltip.cg-on-top::after,.cg-widget-tooltip.cg-on-top::before{transform:rotate(180deg)}.cg-widget-tooltip.cg-on-top::before{top:initial;bottom:-9px}.cg-widget-tooltip.cg-on-top::after{top:initial;bottom:-10px}.cg-widget-tooltip::before{border-bottom:9px solid #fff;top:-9px;z-index:10000}.cg-widget-tooltip::after{border-bottom:10px solid #ececec;border-left:10px solid transparent;border-right:10px solid transparent;right:29px;top:-10px;z-index:9999}.cg-widget-tooltip.cg-show{display:inline-block}.cg-disabled-btn,button.cg-disabled-btn{background-color:#ececec!important;color:#838383!important;background-image:none;text-shadow:none}.fb-messenger-checkbox{text-align:left}.fb-messenger-checkbox>span,.fb-messenger-checkbox>span>iframe{width:285px!important;height:70px!important}.cg-channel-input{margin: 0 5px 0 0;}.cg-channel-input .cg-channel-optin{border:1px solid #d3dde5;outline:0;border-top-right-radius:0;border-bottom-right-radius:0;height:40px;transition:.25s all ease-out;font-size:14px;padding:10px 0 10px 10px;font-family:Proxima Nova;width:100%}.cg-channel-input .cg-channel-optin:focus{border-color:#000}.cg-add-to-cart-block .cg-channel-input{margin:0}@media only screen and (max-width:400px){.cg-action-input,.cg-input-channel .channel-input-group{flex-direction:column}.cg-action-input .cg-channel-input,.cg-input-channel .channel-input-group .send-confirmation{margin:0 0 10px}.popup-cg-add-to-cart-block.cg-action-input{margin-left:20px;margin-right:20px}.cg-add-to-cart-block.channel-input .cg-input-channel{position:initial}.cg-add-to-cart-block.channel-input .cg-channel-input{margin-bottom:10px}.cg-add-to-cart-block.channel-input .cg-input-channel .cg-block-btn{max-width:inherit}}.cg-action-input{background-color:inherit!important}.cg-disable-scroll{overflow:hidden!important}",bannerStyles:".banner-widget *{box-sizing:border-box}.banner-widget.right .site-widget-banner-preview{right:35px;left:initial}.banner-widget.right .site-widget-icon{float:right}.banner-widget.right .site-widget-banner-preview .site-widget-banner-wrapper:after,.banner-widget.right .site-widget-banner-preview .site-widget-banner-wrapper:before{left:initial;right:24px}.banner-widget.right .site-widget-banner-preview.show-site-widget-banner .site-widget-banner-wrapper{right:0;left:initial}.banner-widget .site-widget-banner-preview{margin:auto;position:fixed;bottom:25px;left:35px;z-index:10000}.site-widget-banner-preview .site-widget-banner-header{height:90px;margin:-5px -5px 45px;background-size:cover}.site-widget-banner-preview .site-widget-banner-header-icon{background-color:#fff;width:80px;height:80px;border:2px solid #ececec;border-radius:105px;left:calc(50% - 40px);position:relative;top:50px;padding-top:10px;text-align:center}.site-widget-banner-preview .site-widget-banner-header-icon svg{height:60px;width:60px}.site-widget-banner-preview .widget-close-btn{position:absolute;right:15px;top:13px;cursor:pointer;background:0 0;border:0;outline:0;padding:0}.site-widget-banner-preview .widget-close-btn img{width:13px}.site-widget-banner-preview.show-site-widget-banner .site-widget-banner-wrapper{display:block;position:absolute;bottom:90px;left:0;animation-name:modalRender;animation-duration:.25s}.site-widget-banner-preview.show-site-widget-banner .site-widget-icon .svg-logo{display:none}.site-widget-banner-preview.show-site-widget-banner .site-widget-icon:after{display:block;position:absolute;content:'x';font-size:30px;left:28px;top:16px;line-height:1;color:#fff;font-weight:600;font-family:Arial}.site-widget-banner-preview .site-widget-banner-wrapper{display:none;overflow:auto;padding:5px;width:320px;border-radius:10px;background-color:#fff;box-shadow:0 2px 10px 0 rgba(0,0,0,.3)}.site-widget-banner-preview .widget-title{text-align:center;font-size:22px;font-weight:600;margin-top:20px}.site-widget-banner-preview .widget-sub-title{text-align:center;font-size:16px;font-weight:600;margin:5px 0}.site-widget-banner-preview .widget-sub-title,.site-widget-banner-preview .widget-title{line-height:1.3;width:90%;margin-left:auto;margin-right:auto}.site-widget-banner-preview .cg-subscription-box{display:block;margin:25px auto auto;max-width:290px;width:100%;height:100px;border-radius:4px;background-color:#fff;border:2px solid #ececec;padding-top:10px}.site-widget-banner-preview .cg-subscription-box .prize-pic,.site-widget-banner-preview .cg-subscription-box .send-confirmation,.site-widget-banner-preview .cg-subscription-box .cg-submit-btn{display:inline-block;vertical-align:top}.site-widget-banner-preview .cg-subscription-box .prize-pic{width:40px;float:left}.site-widget-banner-preview .cg-subscription-box .send-confirmation{min-width:285px;min-height:75px}.site-widget-banner-preview .cg-submit-btn{display:block;color:#fff!important;text-align:center;outline:0;border:0;cursor:pointer;background-image:none!important;text-shadow:none!important;width:290px;height:50px;border-radius:30px;font-size:14px;font-weight:600;margin:15px auto 20px}.cg-subscription-box.discount-box .prize-pic,.cg-subscription-box.discount-box .send-confirmation{display:none}.site-widget-banner-preview .cg-subscription-box.discount-box{margin-bottom:25px;max-width:340px;padding-right:10px;border-radius:46px;background-color:#fff;border:1px solid #ececec;height:90px;padding-top:0;padding-left:20px}.site-widget-banner-preview .cg-subscription-box.discount-box .cg-submit-btn{float:right;max-width:195px;width:initial;min-width:105px;padding:0 20px}.site-widget-banner-preview .cg-subscription-box.discount-box .cg-discount-value{float:left;text-align:center;font-size:16px;font-weight:700;padding-top:35px}.site-widget-banner-preview .site-widget-icon{margin-top:20px;border-radius:70px;outline:0;border:0;width:70px;height:70px;background-color:#3ba33d;cursor:pointer;position:relative;top:0;transition:.25s all ease-out;animation:widgetBannerIconAppear;animation-duration:.35s;text-align:center;padding: 5px 0 0 0!important}.site-widget-icon .svg-logo{height:62px;width:62px}.site-widget-banner-preview .site-widget-icon:active{transform:scale(.85)}.site-widget-banner-preview .site-widget-icon:hover{box-shadow:0 0 10px 0 rgba(0,0,0,.2)}@keyframes widgetBannerIconAppear{0%{transform:scale(0)}100%{transform:scale(1)}}.cg-input-channel-box,.site-widget-banner-preview .channel-input-group{display:flex;justify-content:flex-end;margin:20px 10px 10px;height:auto;border:0}.site-widget-banner-preview .cg-subscription-box.discount-box .channel-input-group{display:none}.site-widget-banner-preview .cg-subscription-box.cg-input-channel-box{border:0;margin:0;max-width:100%;height:auto}.site-widget-banner-preview .channel-input-group .send-confirmation{flex:1;min-width:auto;min-height:auto}.cg-channel-input{margin: 0 5px 0 0;} .site-widget-banner-preview .channel-input-group .cg-submit-btn{margin:0;height:40px;font-size:14px;border-radius:0;width:auto}.site-widget-banner-preview .cg-subscription-box.discount-box .fbm-wrapper{display:none!important}@media only screen and (max-width:650px){.banner-widget div.site-widget-banner-preview{right:10px!important;left:10px!important}.site-widget-banner-preview .site-widget-banner-wrapper{width:100%}.site-widget-banner-preview .widget-sub-title,.site-widget-banner-preview .widget-title{text-align:center}.site-widget-banner-preview .cg-subscription-box .cg-discount-value{padding:15px;display:none}.site-widget-banner-preview .cg-subscription-box{position:initial;margin-top:15px}.site-widget-banner-preview .cg-subscription-box.discount-box .cg-discount-value{display:block}}",lotteryStyles:".lottery-modal-wrapper,.lottery-modal-wrapper.getCode .popup-add-to-cart-description,.lottery-modal-wrapper.lost .popup-add-to-cart-description{display:none}.lottery-modal-wrapper.cg-show{display:block}.getCode .lottery-modal-content-win-pic,.lottery-modal .lottery-footer .lottery-footer-input .lottery-footer-input-value,.win .lottery-modal-content-win-pic{display:block!important}.lottery-modal .lottery-footer .lottery-footer-input .lottery-footer-input-value{display:none;float:left;font-weight:600;padding-top:7px;font-size:16px;line-height:30px;margin-top:20px}.lottery-modal .lottery-roulette{margin:auto auto 10px}.lottery-modal .lottery-roulette .lottery-play-box+.lottery-play-box{margin-left:20px}.lottery-modal .lottery-roulette .lottery-play-box{display:inline-block;color:#282b30;font-size:75px;font-weight:600;vertical-align:top;width:100px;height:150px;line-height:150px;text-align:center;background-color:#fff;border:1px solid #ececec;overflow:hidden;position:relative;border-radius:7px}.lottery-play-box-list{position:absolute;width:100%;bottom:0;transition:.25s all ease-out}.lottery-play-box-list.end-spin{bottom:-1350px;transition:0s all}.lottery-play-box-list.spin{animation-name:lotterySpin;animation-duration:3s;animation-iteration-count:1}.lottery-modal .popup-add-to-cart-title{margin-bottom:10px}.lottery-modal.layout-1 .lottery-roulette{margin-top:140px}.lottery-modal.layout-2 .lottery-roulette{position:absolute;left:0;right:0;bottom:120px}.cg-site-widget-popup-add-to-cart.lottery-modal.layout-3 .cg-popup-add-to-cart-content,.cg-site-widget-popup-add-to-cart.lottery-modal.layout-3-transparent .cg-popup-add-to-cart-content,.cg-site-widget-popup-add-to-cart.lottery-modal.layout-4 .cg-popup-add-to-cart-content{padding-top:80px}.lottery-modal.layout-3 .lottery-roulette,.lottery-modal.layout-3-transparent .lottery-roulette,.lottery-modal.layout-4 .lottery-roulette{position:absolute;top:100px;left:0;right:0;z-index:1}.cg-site-widget-popup-add-to-cart.layout-2.lottery-modal,.cg-site-widget-popup-add-to-cart.layout-8.lottery-modal{padding-bottom:310px}.cg-site-widget-popup-add-to-cart.lottery-modal.layout-5 .lottery-roulette{position:absolute;bottom:100px;left:30px}.cg-site-widget-popup-add-to-cart.lottery-modal.layout-5 .cg-popup-add-to-cart-content{margin-bottom:50px}.cg-site-widget-popup-add-to-cart.lottery-modal.layout-6 .lottery-roulette{margin-top:100px}.cg-site-widget-popup-add-to-cart.lottery-modal.layout-7 .lottery-roulette,.cg-site-widget-popup-add-to-cart.lottery-modal.layout-base .lottery-roulette{margin-top:-100px}.cg-site-widget-popup-add-to-cart.lottery-modal.layout-8 .lottery-roulette{position:absolute;left:0;right:0;bottom:120px}.lottery-modal .popup-add-to-cart-title{margin-top:0!important}.lottery-modal .cg-popup-add-to-cart-footer{margin-top:30px}.lottery-modal .cg-popup-footer-btn{position:relative;z-index:3}.win-balloons{display:none}.lottery-modal-wrapper.getCode .win-balloons{display:block;position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden}.lottery-modal-wrapper.getCode .win-balloons .balloon{animation-name:showScale;animation-duration:.35s;transform:scale(1)}.win-balloons .balloon-wrapper{position:absolute}.win-balloons .balloon-wrapper .balloon{transition:.25s all ease-out;transform:scale(0);width:50px;height:50px;border-radius:50%/40% 40% 60% 60%}.win-balloons .balloon-wrapper.balloon-1{top:110px;left:25px;transform:rotate(10deg);height:55px}.win-balloons .balloon-wrapper.balloon-1 .balloon-thread{height:50px;position:relative;top:-2px;z-index:-1;left:5px;transform:rotate(-10deg)}.win-balloons .balloon-wrapper.balloon-1 .balloon{height:55px;width:45px}.win-balloons .balloon-wrapper.balloon-2{right:15px;top:180px;transform:rotate(-20deg);height:49px}.win-balloons .balloon-wrapper.balloon-2 .balloon-thread{position:relative;top:-5px;left:-2px;z-index:-1;width:13px}.win-balloons .balloon-wrapper.balloon-2 .balloon{width:41px;height:49px}.win-balloons .balloon-wrapper.balloon-3{bottom:45px;left:-15px;transform:rotate(10deg);height:115px}.win-balloons .balloon-wrapper.balloon-3 .balloon-thread{position:relative;top:-8px;left:12px;z-index:-1;width:15px;height:80px;transform:rotate(-13deg)}.win-balloons .balloon-wrapper.balloon-3 .balloon{width:79px;height:115px}.win-balloons .balloon-wrapper.balloon-4{right:16px;bottom:30px;height:64px}.win-balloons .balloon-wrapper.balloon-4 .balloon-thread{position:relative;top:-2px;z-index:0;left:-1px;width:12px;height:62px}.win-balloons .balloon-wrapper.balloon-4 .balloon{width:50px;height:64px}@keyframes hideBtn{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes showScale{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lotterySpin{0%{bottom:0}15%{bottom:20px}90%{bottom:-1370px}100%{bottom:-1350px}}@media only screen and (max-width:640px){.lottery-modal .lottery-roulette .lottery-play-box{width:85px}.lottery-modal .lottery-roulette{bottom:140px}.lottery-modal .lottery-roulette .lottery-play-box+.lottery-play-box{margin-left:15px}}",modalAddToCartStyles:".cg-add-to-cart-popup *{box-sizing:border-box;font-family:'Proxima Nova'}.cg-add-to-cart-popup.cg-show{display:block;opacity:1}.cg-add-to-cart-popup.cg-show .cg-site-widget-popup-add-to-cart{animation-name:modalRender;animation-duration:.25s}.cg-add-to-cart-popup{opacity:0;display:none;position:fixed;top:0;left:0;right:0;bottom:0;z-index:10000000000;overflow:auto;padding-bottom:40px}.cg-site-widget-popup-add-to-cart{background-repeat:no-repeat;margin:70px auto auto;max-width:620px;z-index:1;overflow:auto;background-color:#fff;box-shadow:0 0 20px 0 rgba(0,0,0,.1);border-radius:6px;text-align:center;position:relative;padding-bottom:30px}.cg-site-widget-popup-add-to-cart .cg-popup-add-to-cart-header{position:absolute;top:0;width:100%;height:40px}.cg-site-widget-popup-add-to-cart .popup-add-to-cart-title{padding-top:20px;font-weight:500;font-size:19px;line-height:1.9;max-width:400px;margin-left:auto;margin-right:auto;letter-spacing:1.1px}.cg-site-widget-popup-add-to-cart .popup-add-to-cart-description{font-size:19px;font-weight:600;margin:auto}.cg-popup-add-to-cart-header .close-lottery-modal{border:0;outline:0;position:absolute;top:10px;right:10px;cursor:pointer;z-index:1;color:#fff;font-weight:600;font-size:14px;width:30px;height:30px;border-radius:30px;background:rgba(0,0,0,.6)}.cg-site-widget-popup-add-to-cart .popup-cg-add-to-cart-block{overflow:hidden;padding-left:60px;margin:20px auto;width:290px;background-color:#fff}.cg-site-widget-popup-add-to-cart .cg-popup-add-to-cart-content{position:relative;z-index:0}.cg-popup-bg-helper-wrapper,.cg-popup-bg-wrapper{width:100%;position:absolute;overflow:hidden}.cg-site-widget-popup-add-to-cart .cg-popup-bg{background-size:100%}.cg-site-widget-popup-add-to-cart.layout-1 .cg-popup-bg{height:255px}.cg-site-widget-popup-add-to-cart.layout-1 .cg-popup-bg-helper-wrapper{left:0;top:215px;height:100px;width:100%}.cg-site-widget-popup-add-to-cart.layout-1 .cg-popup-bg-helper-wrapper .cg-popup-bg-helper{position:relative;left:-150%;width:400%;height:2500px;background-color:#fff;border-radius:2000px}.cg-site-widget-popup-add-to-cart.layout-6 .cg-popup-bg-helper-wrapper{height:120px;top:150px}.cg-site-widget-popup-add-to-cart.layout-6 .cg-popup-bg-wrapper .cg-popup-bg{height:210px}.cg-site-widget-popup-add-to-cart.layout-base{background-size:100% 155px}.cg-site-widget-popup-add-to-cart.layout-1 .popup-add-to-cart-title{margin-top:250px}.cg-site-widget-popup-add-to-cart.layout-6 .popup-add-to-cart-title{margin-top:180px;font-style:italic;font-weight:600;font-size:24px}.cg-site-widget-popup-add-to-cart.layout-6 .cg-popup-bg-helper-wrapper .cg-popup-bg-helper{height:70%;width:52%;transform:rotate(-8.3deg);top:20%;left:0;position:absolute;background-color:#fff}.cg-site-widget-popup-add-to-cart.layout-6 .cg-popup-bg-helper-wrapper .cg-popup-bg-helper-2{height:70%;width:51.8%;transform:rotate(8.3deg);top:20%;position:absolute;right:-1.2%;background-color:#fff}.cg-site-widget-popup-add-to-cart.layout-4 .cg-popup-footer-btn,.cg-site-widget-popup-add-to-cart.layout-4.direct-discount .popup-cg-add-to-cart-block.discount,.cg-site-widget-popup-add-to-cart.layout-5 .cg-popup-footer-btn,.cg-site-widget-popup-add-to-cart.layout-5.direct-discount .popup-cg-add-to-cart-block.discount,.cg-site-widget-popup-add-to-cart.layout-6 .cg-popup-footer-btn,.cg-site-widget-popup-add-to-cart.layout-6.direct-discount .popup-cg-add-to-cart-block.discount{border-radius:0}.cg-site-widget-popup-add-to-cart.layout-2 .cg-popup-bg-wrapper,.cg-site-widget-popup-add-to-cart.layout-7 .cg-popup-bg-wrapper{bottom:0;height:210px;overflow:hidden}.cg-site-widget-popup-add-to-cart.layout-2 .cg-popup-bg-wrapper .cg-popup-bg,.cg-site-widget-popup-add-to-cart.layout-7 .cg-popup-bg-wrapper .cg-popup-bg{background-size:620px;background-position:top center;border-radius:1500px;position:relative;left:-150%;width:400%;height:2000%}.cg-site-widget-popup-add-to-cart.layout-2{padding-top:40px;padding-bottom:250px}.cg-site-widget-popup-add-to-cart.layout-7{padding-top:230px}.cg-site-widget-popup-add-to-cart.layout-7 .popup-add-to-cart-title{font-style:italic;font-weight:600;font-size:24px;letter-spacing:1.1px}.cg-site-widget-popup-add-to-cart.layout-7 .cg-popup-bg-wrapper{top:0}.cg-site-widget-popup-add-to-cart.layout-5 .cg-popup-bg-wrapper .cg-popup-bg:before,.cg-site-widget-popup-add-to-cart.layout-7 .cg-popup-footer-btn:after,.cg-site-widget-popup-add-to-cart.layout-7 .cg-popup-footer-btn:before{content:\" \";display:block;margin-top:-70px;border-style:solid;border-color:transparent transparent #fff;top:70px;right:0;bottom:0}.cg-site-widget-popup-add-to-cart.layout-7 .cg-popup-bg-wrapper .cg-popup-bg{bottom:0;background-repeat:no-repeat;position:absolute;background-position-y:3990px}.cg-site-widget-popup-add-to-cart.layout-7 .cg-popup-footer-btn{border-radius:0;position:relative}.cg-site-widget-popup-add-to-cart.layout-7 .cg-popup-footer-btn:before{position:absolute;width:0;height:0;border-width:0 0 50px 20px;transform:rotate(180deg);left:0}.cg-site-widget-popup-add-to-cart.layout-7 .cg-popup-footer-btn:after{position:absolute;width:0;height:0;border-width:0 0 50px 20px}.cg-site-widget-popup-add-to-cart.layout-2 .popup-add-to-cart-title,.cg-site-widget-popup-add-to-cart.layout-5 .popup-add-to-cart-title{padding-top:0;font-size:35.2px;font-weight:900;line-height:1.05;letter-spacing:normal;text-align:center;max-width:400px;}.cg-site-widget-popup-add-to-cart.layout-5{padding-top:40px;padding-bottom:270px;background-position:bottom}.cg-site-widget-popup-add-to-cart.layout-5 .cg-popup-add-to-cart-content{margin-left:30px}.cg-site-widget-popup-add-to-cart.layout-5 .popup-cg-add-to-cart-block,.cg-site-widget-popup-add-to-cart.layout-5 .popup-add-to-cart-description,.cg-site-widget-popup-add-to-cart.layout-5 .cg-popup-add-to-cart-footer,.cg-site-widget-popup-add-to-cart.layout-5 .popup-add-to-cart-title{padding-left:0;margin-left:0;text-align:left}.cg-site-widget-popup-add-to-cart.layout-5 .cg-popup-bg-wrapper{bottom:0;height:260px;overflow:hidden}.cg-site-widget-popup-add-to-cart.layout-5 .cg-popup-bg-wrapper .cg-popup-bg{width:100%;height:100%;position:absolute;background-size:cover;background-position:top center}.cg-site-widget-popup-add-to-cart.layout-5 .cg-popup-bg-helper-wrapper{overflow:hidden;height:160px;bottom:119px}.cg-site-widget-popup-add-to-cart.layout-5 .cg-popup-bg-helper-wrapper .cg-popup-bg-helper{position:absolute;top:-45px;left:-30px;width:120%;height:130px;transform:rotate(-10deg);background-color:#fff}.cg-site-widget-popup-add-to-cart.layout-2 .popup-add-to-cart-description{font-size:19px;font-weight:600;margin-top:20px}.cg-site-widget-popup-add-to-cart.layout-2 .cg-popup-footer-btn,.cg-site-widget-popup-add-to-cart.layout-2.direct-discount .popup-cg-add-to-cart-block.discount{border-radius:6px}.cg-site-widget-popup-add-to-cart.layout-3 .cg-popup-bg-wrapper,.cg-site-widget-popup-add-to-cart.layout-3-transparent .cg-popup-bg-wrapper,.cg-site-widget-popup-add-to-cart.layout-4 .cg-popup-bg-wrapper{position:absolute;left:0;top:0;right:0;bottom:0}.cg-site-widget-popup-add-to-cart.layout-3 .cg-popup-bg-wrapper .cg-popup-bg,.cg-site-widget-popup-add-to-cart.layout-3-transparent .cg-popup-bg-wrapper .cg-popup-bg,.cg-site-widget-popup-add-to-cart.layout-4 .cg-popup-bg-wrapper .cg-popup-bg{background-size:cover;background-position:center;height:100%;width:100%}.cg-site-widget-popup-add-to-cart.layout-3,.cg-site-widget-popup-add-to-cart.layout-3-transparent,.cg-site-widget-popup-add-to-cart.layout-4{padding-bottom:0;border:0}.cg-site-widget-popup-add-to-cart.layout-3 .cg-popup-add-to-cart-content,.cg-site-widget-popup-add-to-cart.layout-3-transparent .cg-popup-add-to-cart-content,.cg-site-widget-popup-add-to-cart.layout-4 .cg-popup-add-to-cart-content{margin-top:180px;background-color:#fff;margin-left:40px;margin-right:40px;border-top-left-radius:30px;border-top-right-radius:30px;padding-top:30px;padding-bottom:25px}.cg-site-widget-popup-add-to-cart.layout-3-transparent .cg-popup-add-to-cart-content{margin-bottom:50px;border-radius:30px;background:0 0!important}.cg-site-widget-popup-add-to-cart.layout-3-transparent .popup-cg-add-to-cart-block{border-radius:30px}.cg-site-widget-popup-add-to-cart.layout-3-transparent .cg-popup-add-to-cart-content-bg{position:absolute;top:0;left:0;right:0;bottom:0;opacity:.5;z-index:-1;background:#000;border-radius:30px}.cg-site-widget-popup-add-to-cart.layout-4 .cg-popup-add-to-cart-content{border-radius:0;border:2px solid #363636}.cg-site-widget-popup-add-to-cart.layout-4{padding-bottom:40px}.cg-site-widget-popup-add-to-cart.layout-8,.cg-site-widget-popup-add-to-cart.layout-base{padding-bottom:240px}.cg-site-widget-popup-add-to-cart.layout-8 .popup-add-to-cart-title,.cg-site-widget-popup-add-to-cart.layout-base .popup-add-to-cart-title{font-weight:300;letter-spacing:1.1px;font-size:30px}.cg-site-widget-popup-add-to-cart.layout-8 .cg-popup-bg-wrapper,.cg-site-widget-popup-add-to-cart.layout-base .cg-popup-bg-wrapper{position:absolute;bottom:0;height:200px}.cg-site-widget-popup-add-to-cart.layout-8 .cg-popup-bg-wrapper .cg-popup-bg,.cg-site-widget-popup-add-to-cart.layout-base .cg-popup-bg-wrapper .cg-popup-bg{height:200px;width:100%;background-size:100%}.cg-site-widget-popup-add-to-cart.layout-base{padding-bottom:30px;padding-top:220px}.cg-site-widget-popup-add-to-cart.layout-base .cg-popup-bg-wrapper{top:0}.popup-cg-add-to-cart-block.discount,.cg-site-widget-popup-add-to-cart.direct-discount .popup-cg-add-to-cart-block,.cg-site-widget-popup-add-to-cart.direct-discount .cg-popup-add-to-cart-footer{display:none !important;}.cg-site-widget-popup-add-to-cart.direct-discount .popup-cg-add-to-cart-block.discount{max-width:420px;width:100%;border-radius:46px;background-color:#fff;border:1px solid #ececec;display:block !important;padding:20px;height:90px}.cg-site-widget-popup-add-to-cart.direct-discount .popup-cg-add-to-cart-block.discount .cg-discount-value{float:left;margin-top:10px}.cg-site-widget-popup-add-to-cart.direct-discount .popup-cg-add-to-cart-block.discount .cg-popup-footer-btn{float:right;width:initial;padding:0 20px;max-width:195px}.cg-site-widget-popup-add-to-cart .popup-cg-add-to-cart-block.bg{background-color:#f8f8f8;text-align:center;padding-top:30px}.cg-site-widget-popup-add-to-cart .popup-cg-add-to-cart-block .cg-discount-value{line-height:1;font-size:16px;font-weight:600;padding-top:5px}.cg-site-widget-popup-add-to-cart .cg-popup-footer-btn{display:inline-block;color:#fff;line-height:1;cursor:pointer;outline:0;border:0;font-size:14px;font-weight:700;border-radius:30px;padding-left:40px;padding-right:40px;height:48px}.cg-popup-add-to-cart-footer{padding-left:15px;padding-right:15px}@media only screen and (max-width:650px){.cg-site-widget-popup-add-to-cart{position:absolute;top:0;left:0;right:0;bottom:0;margin:0;border-radius:0}.cg-site-widget-popup-add-to-cart .popup-cg-add-to-cart-block.discount{width:90%!important;margin-left:auto;margin-right:auto}.cg-site-widget-popup-add-to-cart.layout-2,.cg-site-widget-popup-add-to-cart.layout-5{background-size:130%;background-position:bottom}.cg-site-widget-popup-add-to-cart.layout-3 .cg-popup-add-to-cart-content,.cg-site-widget-popup-add-to-cart.layout-3-transparent .cg-popup-add-to-cart-content{position:absolute;border-radius:30px;top:120px;left:0;right:0;margin-top:50px;margin-left:10px;margin-right:10px;z-index:2}.cg-site-widget-popup-add-to-cart.layout-4 .cg-popup-add-to-cart-content{margin-left:15px;margin-right:15px}.cg-site-widget-popup-add-to-cart.layout-1,.cg-site-widget-popup-add-to-cart.layout-6{background-size:111%;background-position:top}.cg-site-widget-popup-add-to-cart.layout-1 .popup-add-to-cart-title{margin-top:230px}.cg-site-widget-popup-add-to-cart.layout-6 .cg-popup-bg-helper-wrapper{height:75px;top:150px}.cg-site-widget-popup-add-to-cart.layout-6 .cg-popup-bg-wrapper .cg-popup-bg{height:180px}} .cg-popup-add-to-cart-content .popup-cg-add-to-cart-block.cg-action-input{display:flex;width:initial;padding-left:0;justify-content:center}.popup-cg-add-to-cart-block.cg-action-input .cg-channel-optin{min-width:200px}.popup-cg-add-to-cart-block.cg-action-input .cg-popup-footer-btn{padding-left:10px;padding-right:10px;height:40px;min-width:150px;border-radius:0}.popup-cg-add-to-cart-block.cg-action-input .cg-popup-footer-btn:after,.popup-cg-add-to-cart-block.cg-action-input .cg-popup-footer-btn:before{display:none}.cg-site-widget-popup-add-to-cart.layout-5 .cg-popup-add-to-cart-content .popup-cg-add-to-cart-block.cg-action-input{justify-content:left}.cg-popup-add-to-cart-footer .fb-messenger-checkbox{margin-left: 130px;}.cg-site-widget-popup-add-to-cart.layout-5 .cg-popup-add-to-cart-content .cg-popup-add-to-cart-footer .fb-messenger-checkbox {margin-left: 0;}.cg-site-widget-popup-add-to-cart.layout-3-transparent .popup-channel-input-wrapper{background-color:#fff;margin:20px auto auto;padding-top:1px;padding-left:20px;padding-right:20px;width:fit-content;border-radius:10px}.cg-site-widget-popup-add-to-cart.layout-3-transparent .popup-channel-input-wrapper .popup-cg-add-to-cart-block.cg-action-input{width:fit-content;border-radius:0}.cg-site-widget-popup-add-to-cart.layout-3-transparent .popup-channel-input-wrapper .cg-popup-add-to-cart-footer{overflow:hidden; max-width: 280px;}.cg-site-widget-popup-add-to-cart.layout-3-transparent .cg-popup-add-to-cart-footer .fb-messenger-checkbox{margin-left:70px}.cg-site-widget-popup-add-to-cart.direct-discount .popup-channel-input-wrapper {display: none;} button.one-liner{display:unset !important;width:unset !important} div.one-liner{top:35px !important;right:10px !important}",addToCartMessage:".block-icon,.site-widget-add-to-cart-message.column-align .add-to-cart-description,.site-widget-add-to-cart-message.column-align .add-to-cart-title{text-align:center}.block-icon svg{height:65px;width:65px}.block-icon{float:left;width:77px;height:77px;background-color:#fff;border:2px solid #ececec;border-radius:66px;padding-top:5px}.site-widget-add-to-cart-message *{box-sizing:border-box}.site-widget-add-to-cart-message .block-content{float:left;position:relative;min-height:75px;min-width:285px}div.site-widget-add-to-cart-message div.cg-discount-value,div.site-widget-add-to-cart-message.widget-direct-discount .block-content{display:none}.site-widget-add-to-cart-message.widget-direct-discount .cg-discount-value{display:inline-block}.site-widget-add-to-cart-message{max-width:515px;margin:20px 0;position:relative}.site-widget-add-to-cart-message .add-to-cart-title{font-size:24px;font-weight:600}.site-widget-add-to-cart-message .add-to-cart-description{font-size:16px;font-weight:600}.site-widget-add-to-cart-message .add-to-cart-description,.site-widget-add-to-cart-message .add-to-cart-title{line-height:1.3}.site-widget-add-to-cart-message .cg-add-to-cart-block{position:relative;min-height:110px;border-radius:6px;background-color:#fff;border:1px solid #c4c4c4;padding:15px;margin-top:10px;margin-bottom:20px}.site-widget-add-to-cart-message .cg-add-to-cart-block.hide-border{border:0;padding:0;margin-top:20px}.site-widget-add-to-cart-message .cg-add-to-cart-block.hide-icon .block-icon{display:none}.site-widget-add-to-cart-message .cg-add-to-cart-block .cg-block-btn{display:block;position:absolute;right:20px;font-size:16px;min-width:120px;max-width:220px;min-height:40px;border-radius:50px;color:#fff;padding:0 25px;line-height:1.3;outline:0;cursor:pointer;border:0;font-weight:600;height:65px;margin-top:5px}.site-widget-add-to-cart-message .cg-add-to-cart-block .cg-discount-value{float:left;font-size:16px;font-weight:700;padding-top:25px;margin-left:25px}.site-widget-add-to-cart-message.column-align{min-width:150px}.site-widget-add-to-cart-message.column-align div.block-icon{display:block;float:none;margin:auto}.site-widget-add-to-cart-message.column-align button.cg-block-btn{position:initial!important;float:none;margin:auto}.site-widget-add-to-cart-message.column-align .cg-add-to-cart-block{float:left;width:100%;overflow:hidden}.site-widget-add-to-cart-message.column-align div.block-content{float:none;margin-bottom:15px;margin-top:15px}.site-widget-add-to-cart-message.column-align.widget-direct-discount div.cg-discount-value{display:block;float:left;width:100%;text-align:center;margin-left:0;margin-bottom:30px;margin-top:10px}.cg-add-to-cart-block.channel-input .cg-input-channel{position:absolute;right:40px}.cg-add-to-cart-block.channel-input .cg-input-channel .cg-block-btn{margin:0;border:0;border-radius:0;width:100%;height:40px;position:initial}@media only screen and (max-width:650px){div.site-widget-add-to-cart-message div.block-icon{display:block;float:none;margin:auto}div.site-widget-add-to-cart-message button.cg-block-btn{float:none!important;margin:auto}.site-widget-add-to-cart-message .cg-add-to-cart-block{float:left;width:100%}.site-widget-add-to-cart-message div.block-content{top:0;margin-bottom:15px;margin-top:15px}.site-widget-add-to-cart-message.widget-direct-discount div.cg-discount-value{display:block;float:left;width:100%;text-align:center;margin-left:0;margin-bottom:30px;margin-top:10px}.site-widget-add-to-cart-message .add-to-cart-description,.site-widget-add-to-cart-message .add-to-cart-title{text-align:center}}",wheelStyles:".cg-wheel{position:fixed;top:0;left:0;bottom:0;font-family:'Proxima Nova';z-index:100000}.cg-wheel .cg-wheel-main{height:100%;width:500px;background-repeat:no-repeat;background-position:bottom;background-size:100%;left:-500px;position:absolute;transition:1s all;overflow:hidden}.cg-wheel.cg-wheel-theme .cg-wheel-main{width:630px;left:-630px}.cg-wheel.cg-wheel-theme .cg-wheel-content-h{font-size:34px;font-weight:600}.cg-wheel.cg-wheel-theme .cg-wheel-content-sub-h{font-size:16px;margin-bottom:25px}.cg-wheel.cg-wheel-theme .cg-wheel-content-btn{height:40px;padding:0 22px;font-size:14px;background-color:#fe7a23}.cg-wheel-get-discount-wrapper .cg-wheel-discount-value{float: left;}.cg-wheel-get-discount-wrapper .cg-wheel-content-btn{float:right;margin-top:-10px !important;} .cg-wheel.cg-wheel-theme .cg-wheel-get-discount-wrapper{height:40px;max-width:350px;font-size:14px;padding-top:10px}.cg-wheel.cg-wheel-theme .cg-theme-content{width:100%;height:100%}.cg-wheel.halloween .cg-wheel-wheel-cover-item{color:#fe7a23}.cg-wheel.christmas .cg-wheel-wheel-cover-item,.cg-wheel.winter .cg-wheel-wheel-cover-item{color:#fff}.cg-wheel.halloween .cg-wheel-content-h,.cg-wheel.halloween .cg-wheel-content-sub-h{color:#fe7a23!important}.cg-wheel.winter .cg-wheel-main-content{z-index:2;}.cg-wheel.winter .cg-wheel-content-h,.cg-wheel.winter .cg-wheel-content-sub-h{color:#193561!important}.cg-wheel.christmas .cg-wheel-content-h,.cg-wheel.christmas .cg-wheel-content-sub-h{color:#4ca858!important}.cg-wheel.halloween .bats{position:absolute;right:-35px;z-index:2;top:15px}.cg-wheel.halloween .bats img{width:25px;position:relative}.cg-wheel.halloween .bats .bat-1,.cg-wheel.halloween .bats .bat-2,.cg-wheel.halloween .bats .bat-3{animation-timing-function:ease-in-out}.cg-wheel.halloween .bats .bat-1,.cg-wheel.halloween .bats .bat-3{animation-duration:2s;animation-iteration-count:infinite}.cg-wheel.halloween .bats .bat-1{top:-20px;animation-name:halloweenBat-1;transform:rotate(-10deg)}.cg-wheel.halloween .bats .bat-2{width:58px;top:10px;animation-name:halloweenBat-2;animation-duration:3s;animation-iteration-count:infinite}.cg-wheel.halloween .bats .bat-3{animation-name:halloweenBat-3;top:-8px;transform:rotate(-10deg)}.cg-wheel.halloween .small-bats{width:50px;height:80px;position:absolute;top:0;left:0;right:0}.cg-wheel.halloween .small-bats .bat-1{height:8px;position:absolute;right:-33px;top:-4px}.cg-wheel.halloween .small-bats .bat-2{position:absolute;right:-56px;height:15px;top:2px}.cg-wheel.halloween .small-bats .bat-3{position:absolute;right:-59px;height:8px;top:22px;transform:rotate(-30deg)}@keyframes halloweenBat-1{0%,50%{top:-20px;transform:rotate(-10deg)}25%{top:-25px;transform:rotate(-25deg)}75%{top:-25px;transform:rotate(5deg)}100%{transform:rotate(-10deg);top:-20px}}@keyframes halloweenBat-2{0%{transform:rotate(-10deg);top:10px}25%{transform:rotate(-25deg);top:5px}100%,50%{top:10px;transform:rotate(-10deg)}75%{top:5px;transform:rotate(5deg)}}@keyframes halloweenBat-3{0%{transform:rotate(-10deg);top:-18px}25%{transform:rotate(-25deg);top:-23px}100%,50%{top:-18px;transform:rotate(-10deg)}75%{top:-23px;transform:rotate(5deg)}}.cg-wheel-main .spider-wrapper{width:60px;border-left:1px solid #fff;height:60px;left:38px;top:55px;position:absolute;animation-name:halloweenSpider;animation-duration:5s;animation-iteration-count:infinite}.cg-wheel-main .spider-wrapper img{position:absolute;left:-30px;bottom:-37px}.cg-wheel-main .spider-web{position:absolute;top:-32px;left:0;width:77px}@keyframes halloweenSpider{0%,10%,100%{height:60px}65%,70%{height:0}}.cg-wheel-main .pumpkin-1-wrapper,.cg-wheel-main .pumpkin-2-wrapper{width:40px;position:absolute;bottom:129px;right:12px;transform:scale(1.3)}.cg-wheel-main .pumpkin-1-wrapper .pumpkin-shine-1,.cg-wheel-main .pumpkin-1-wrapper .pumpkin-shine-2,.cg-wheel-main .pumpkin-2-wrapper .pumpkin-shine-1,.cg-wheel-main .pumpkin-2-wrapper .pumpkin-shine-2{width:50px;height:50px;background-color:#ff0;border-radius:50px;position:absolute;z-index:1;left:-5px;top:-2px;opacity:.15;animation-duration:2s;animation-iteration-count:infinite;animation-timing-function:ease-in-out}.cg-wheel-main .pumpkin-1-wrapper .pumpkin-shine-1,.cg-wheel-main .pumpkin-2-wrapper .pumpkin-shine-1{transform:scale(1.1);animation-name:halloweenPumpkinHighlight-1}.cg-wheel-main .pumpkin-1-wrapper .pumpkin-shine-2,.cg-wheel-main .pumpkin-2-wrapper .pumpkin-shine-2{transform:scale(.95);animation-name:halloweenPumpkinHighlight-2}.cg-wheel-main .pumpkin-1-wrapper .pumpkin,.cg-wheel-main .pumpkin-2-wrapper .pumpkin{position:relative;z-index:2}@keyframes halloweenPumpkinHighlight-1{0%,100%{transform:scale(1.1)}50%{transform:scale(1.2)}}@keyframes halloweenPumpkinHighlight-2{0%,100%{transform:scale(.95)}50%{transform:scale(.85)}}.cg-wheel-main .pumpkin-2-wrapper{bottom:27px;left:47%}.cg-wheel-main .zombie-hands{bottom:0;left:0;width:50px;position:absolute;margin-left:5px;transform:scale(1.3)}.cg-wheel-main .zombie-hands .zombie-hand-1,.cg-wheel-main .zombie-hands .zombie-hand-2{position:relative;animation-iteration-count:infinite;animation-duration:5s}.cg-wheel-main .zombie-hands .zombie-hand-1{width:20px;bottom:-60px;animation-name:halloweenZombieHand-1;animation-duration:5s}.cg-wheel-main .zombie-hands .zombie-hand-2{width:10px;left:5px;animation-name:halloweenZombieHand-2;animation-delay:1s;bottom:-40px}@keyframes halloweenZombieHand-1{0%,80%{bottom:-60px}35%,60%{bottom:-5px}}@keyframes halloweenZombieHand-2{0%,80%{bottom:-40px}35%,60%{bottom:15px}}.cg-wheel .cg-wheel-main .witch{position:absolute;top:45%;right:650px;width:170px;transform:scale(1.4);z-index:2}.cg-wheel.active .cg-wheel-main .witch{animation-name:halloweenWitch,halloweenWitchEnter;animation-timing-function:ease-in-out,ease-out;animation-iteration-count:infinite,1;animation-duration:2s,.9s;animation-delay:1s,.1s}@keyframes halloweenWitchEnter{0%{top:45%;right:650px}70%{top:50%}100%{top:41%;right:-93px}}@keyframes halloweenWitch{0%,100%{top:41%;right:-93px}50%{top:43%}}.cg-wheel-main .candle-group-1{bottom:170px;left:42.32%}.cg-wheel-main .candle-group-2{bottom:168px;left:57.2%}.cg-wheel-main .candle-group-1,.cg-wheel-main .candle-group-2{position:absolute;transform:scale(1.15)}.cg-wheel-main .candle-group-1 img,.cg-wheel-main .candle-group-2 img{width:5px;position:relative}.cg-wheel-main .candle-group-1 .candle-1,.cg-wheel-main .candle-group-1 .candle-2,.cg-wheel-main .candle-group-1 .candle-3,.cg-wheel-main .candle-group-2 .candle-1,.cg-wheel-main .candle-group-2 .candle-2,.cg-wheel-main .candle-group-2 .candle-3{animation-duration:3s;animation-timing-function:linear;animation-iteration-count:infinite;animation-name:halloweenCandle}.cg-wheel-main .candle-group-1 .candle-1,.cg-wheel-main .candle-group-2 .candle-1{left:-2px}.cg-wheel-main .candle-group-1 .candle-2,.cg-wheel-main .candle-group-2 .candle-2{top:-3px;right:-5px;animation-delay:1s}.christmas .cg-wheel-main .pie .shadow,.christmas .cg-wheel-main .pie img,.christmas .cg-wheel-main .present-2 .shadow{animation-delay:.3s}.cg-wheel-main .candle-group-1 .candle-3,.cg-wheel-main .candle-group-2 .candle-3{right:-12px}@keyframes halloweenCandle{0%,100%,50%{transform:skewX(0)}25%{transform:skewX(-20deg)}75%{transform:skewX(20deg)}}.cg-wheel-small-preview .bonnet-1{height:15px;position:absolute;right:16px;top:-12px}.cg-wheel-small-preview .gloves{position:absolute;right:-7px;height:25px;top:-3px}.cg-wheel-small-preview .bonnet-2{position:absolute;right:-15px;height:17px;top:19px;transform:rotate(75deg)}.cg-wheel-main .simple-list .bonnet-1{position:absolute;left:10px;top:15px;width:70px}.cg-wheel-main .simple-list .bonnet-2{position:absolute;width:70px;right:-25px;top:20px}.cg-wheel-main .simple-list .gloves-1{position:absolute;top:250px;width:70px;left:10px}.cg-wheel-main .simple-list .gloves-2{position:absolute;right:-25px;width:70px;top:130px}.cg-wheel-main .simple-list .cake{left:15px;position:absolute;width:70px;top:170px}.cg-wheel-main .simple-list .tasse{position:absolute;right:40px;width:60px;top:230px}.cg-wheel-main .simple-list img{animation-timing-function:ease-in-out;animation-duration:2s;animation-iteration-count:infinite;animation-name:rotateWinter}.cg-wheel-main .ski-man{position:absolute;right:-90px;bottom:205px;width:270px;z-index:1}.cg-wheel-main .snow{position:absolute;bottom:0;left:0;width:630px}.cg-wheel-main .cabine-wrapper{position:absolute;bottom:0;left:0;right:0;height:250px}.cg-wheel-main .cabine-wrapper .wire{width:100%;height:4px;background-color:#000;transform:rotate(25deg);position:absolute;bottom:195px;left:-35px;z-index:0}.cg-wheel-main .cabine-wrapper .cabine-1,.cg-wheel-main .cabine-wrapper .cabine-2{animation-name:cabinmove;animation-timing-function:linear;animation-duration:3.5s;animation-iteration-count:infinite;height:110px;position:absolute}.cg-wheel-main .cabine-wrapper .cabine-2{animation-direction:reverse}@keyframes rotateWinter{0%,100%{transform:rotate(-15deg)}50%{transform:rotate(15deg)}}@keyframes cabinmove{0%{transform:translateY(-105px) translateX(-95px) rotate(0)}25%{transform:translateY(-54px) translateX(15px) rotate(10deg)}50%{transform:translateY(-3px) translateX(125px) rotate(0)}75%{transform:translateY(48px) translateX(235px) rotate(-10deg)}100%{transform:translateY(100px) translateX(345px) rotate(0)}}.cg-wheel-small-preview .christmas{position:absolute;right:47px;top:0;width:15px}.cg-wheel-small-preview .christmas .present-1{height:12px;position:absolute;right:-32px;top:-6px;transform:rotate(31deg)}.cg-wheel-small-preview .christmas .present-2{position:absolute;right:-49px;height:13px;top:5px;transform:rotate(53deg)}.cg-wheel-small-preview .christmas .present-3{position:absolute;right:-58px;height:13px;top:22px;transform:rotate(72deg)}.christmas .cg-wheel-main [class^=candy_cane]{animation-timing-function:ease-in-out;animation-duration:2s;animation-iteration-count:infinite;animation-name:snowRotate}.christmas .cg-wheel-main .candy_cane-1{position:absolute;left:15px;bottom:315px;width:33px}.christmas .cg-wheel-main .candy_cane-2{position:absolute;width:25px;left:64px;bottom:277px}.christmas .cg-wheel-main .candy_cane-3{position:absolute;width:21px;bottom:240px;left:29px}.christmas .cg-wheel-main .candy_cane-4{position:absolute;width:17px;bottom:210px;left:65px}.christmas .cg-wheel-main .shadow{background-color:#a7a7a7;opacity:.4;width:25%;height:7px;margin:auto;border-radius:30px;transform:scaleX(4);animation-name:itemShadow;animation-duration:4.5s;animation-iteration-count:infinite}.christmas .cg-wheel-main .pie img,.christmas .cg-wheel-main .present-1 img,.christmas .cg-wheel-main .present-2 img,.christmas .cg-wheel-main .present-3 img{z-index:1;animation-name:itemJump;animation-duration:4.5s;position:absolute;animation-iteration-count:infinite}.christmas .cg-wheel-main .pie{position:absolute;width:55px;bottom:99px;left:36px}.christmas .cg-wheel-main .pie img{width:100%;top:-41px}.christmas .cg-wheel-main .santa{position:absolute;bottom:100px;width:220px;right:-80px}.christmas .cg-wheel-main .santa img{width:100%;position:absolute;top:-265px;z-index:1}.christmas .cg-wheel-main .santa .santa-shadow{background-color:#a7a7a7;opacity:.3;width:15%;height:11px;margin:auto auto auto 55px;border-radius:30px;transform:scaleX(3.5)}.christmas .cg-wheel-main .present-1{position:absolute;bottom:90px;left:200px;width:35px}.christmas .cg-wheel-main .present-1 img{top:-32px;width:100%}.christmas .cg-wheel-main .present-2{position:absolute;bottom:77px;left:228px;width:45px}.christmas .cg-wheel-main .present-2 img{top:-42px;width:100%;animation-delay:.3s}.christmas .cg-wheel-main .present-3{position:absolute;bottom:62px;left:266px;width:55px}.christmas .cg-wheel-main .present-3 img{top:-52px;width:100%}.christmas .cg-wheel-main .snow-flakes{position:absolute;top:0;left:0;right:0}.christmas .cg-wheel-main .snow-flake-prototype{left:140px;z-index:3;position:absolute;width:22px;animation-name:snowflakemove;animation-timing-function:linear;animation-duration:6s;animation-iteration-count:infinite}@keyframes snowflakemove{0%{opacity:1;transform:translateY(-30px) translateX(-15px)}25%{transform:translateY(100px) translateX(0)}50%{opacity:1;transform:translateY(200px) translateX(15px)}75%{transform:translateY(300px) translateX(20px)}100%{opacity:0;transform:translateY(400px) translateX(25px)}}@keyframes snowflakemoverev{0%{opacity:1;transform:translateY(-30px) translateX(15px)}25%{transform:translateY(100px) translateX(0)}50%{opacity:1;transform:translateY(200px) translateX(-15px)}75%{transform:translateY(300px) translateX(-20px)}100%{opacity:0;transform:translateY(400px) translateX(-25px)}}@keyframes itemShadow{0%,10%{transform:scaleX(5)}25%{opacity:.2;transform:scaleX(3.5)}100%,38%{opacity:.4;transform:scaleX(5)}}@keyframes itemJump{0%{transform:scale(1)}5%{transform:scaleY(.9) scaleX(1.1)}10%{transform:scaleY(1.1)}18%{transform:scaleY(1.2) translateY(-35px)}25%{transform:scaleY(.95) translateY(-40px) scaleX(1.1)}27%{transform:scaleY(1.1) translateY(-35px)}32%{transform:scaleY(1.2) translateY(-33px)}38%,45%{transform:scaleY(1.1) translateY(0)}42%{transform:scaleY(.9) translateY(0) scaleX(1.1)}48%{transform:scaleY(.95) translateY(0)}100%,50%{transform:scaleY(1) translateY(0)}}@keyframes snowRotate{0%,100%{transform:rotate(30deg)}50%{transform:rotate(0)}}.cg-sm-preview-wheel:hover,.cg-wheel.spin .cg-wheel-rotate-group{transform:rotate(360deg)}.cg-wheel-main .cg-wheel-wheel-wrapper{top:-100px;transition:1s all;position:relative;z-index:1}.cg-wheel.active .cg-wheel-main{left:0;box-shadow:0 2px 10px 0 rgba(0,0,0,.3);overflow:visible}.cg-wheel.active .cg-wheel-main .cg-wheel-wheel-wrapper{top:0}.cg-wheel .cg-wheel-small-preview{border:0;background:0 0;outline:0;height:100px;width:100px;position:absolute;left:-50px;top:40%;padding:0;animation-name:cgWheelSmallPreviewEnter;animation-duration:.35s;transitions:2s all linear}@keyframes cgWheelSmallPreviewEnter{0%{left:-100px}100%{left:-50px}}.cg-wheel .cg-sm-preview-ticker{position:absolute;width:18px;top:41px;left:90px}.cg-wheel .cg-sm-preview-wheel{height:100px;width:100px;transition:4s all linear}.cg-wheel .cg-wheel-wheel-wrapper{width:100%;position:relative;overflow:hidden;height:260px}.cg-wheel .cg-wheel-wheel{width:100%;height:100%;position:absolute;left:0;top:0;transition:3s all}.cg-wheel svg.cg-wheel-wheel path:first-child{display:none}.cg-wheel .cg-wheel-ticker{position:absolute;right:-5%;top:8.1%;width:14.25%;z-index:1}.cg-wheel .cg-wheel-main-content{margin-top:60px;padding:0 15px;width:100%;text-align:center;position:relative;z-index:1}.cg-wheel .cg-wheel-content-h{font-size:28px;line-height:1.2}.cg-wheel .cg-wheel-content-sub-h{font-size:18px;margin-top:5px;margin-bottom:15px}.cg-wheel .cg-wheel-content-action{padding: 20px 20px 0 20px;text-align:left;margin:auto;max-width:350px;background-color:#fff;border-radius:10px;min-height:85px;position:relative;transition:.35s all}.cg-wheel .cg-wheel-content-btn{z-index:1;height:40px;padding:0 22px;font-size:14px;font-family:Proxima Nova;color:#fff;border-radius:1.2px;font-weight:600;border:0;outline:0}.cg-wheel .cg-wheel-close-btn{position:absolute;bottom:10px;right:10px;width:45px;height:45px;font-size:18px;color:#fff;padding:0;outline:0;background:0 0;border:0;z-index:10}.cg-wheel .cg-wheel-close-btn-background{width:45px;height:45px;border-radius:45px;opacity:.8;position:absolute;background-color:#2E2E2E;top:0}.cg-wheel-close-btn span{font-family:Proxima Nova;font-weight:700;color:#fff;position:relative;font-size:22px}.cg-wheel .cg-wheel-wheel-cover{text-align:right;font-size:10px;font-weight:600;color:#202020;position:relative;transition:3s all;height:100%}.cg-wheel .cg-wheel-rotate-group{height:100%;width:100%;position:absolute;top:-35%;transition:3s all}.cg-wheel .cg-wheel-wheel-cover-item{font-family:'Proxima Nova';font-weight:600;display:block;position:absolute;padding-right:20px;left:6%;top:45.3%;width:88.5%;font-size:1.4em}.cg-wheel.getCode .cg-wheel-content-sub-h,.cg-wheel.hide-preview .cg-wheel-small-preview,.cg-wheel.lost .cg-wheel-content-sub-h{display:none}.cg-wheel.joyful-pink .cg-wheel-wheel-cover-item,.cg-wheel.tennis-court .cg-wheel-wheel-cover-item{color:#fff}.cg-wheel #win-sector{transition:.35s all}.cg-wheel.highlight-sector.pastel #win-sector{fill:#dea660}.cg-wheel.highlight-sector.christmas #win-sector{fill:#ee2833}.cg-wheel.highlight-sector.forest #win-sector,.cg-wheel.highlight-sector.halloween #win-sector,.cg-wheel.highlight-sector.sunny #win-sector,.cg-wheel.highlight-sector.winter #win-sector{fill:#fb641c}.cg-wheel.highlight-sector.halloween .cg-wheel-wheel-cover-item:first-child{color:#fff!important}.cg-wheel.highlight-sector.pink-n-purple #win-sector{fill:#fb676c}.cg-wheel.highlight-sector.soft-blue{fill:#75dcb4}.cg-wheel.highlight-sector.silver-and-gold #win-sector{fill:#fddda9}.cg-wheel.highlight-sector.joyful-pink #win-sector,.cg-wheel.highlight-sector.tennis-court #win-sector{fill:#3b3b3b}.cg-wheel.spin .cg-wheel-content-action,.cg-wheel.spin .cg-wheel-terms-accept{transform:scale(0);display: none;}.cg-wheel .cg-wheel-scaler{width:400px;height:400px;margin:auto;position:relative}.cg-wheel .cg-wheel-terms-accept{max-width:350px;margin:10px auto auto;font-size:14px;color:#fff;font-weight:400}.cg-wheel .cg-wheel-terms-accept input{float:left;margin-top:3px;margin-left:5px}.cg-wheel .cg-wheel-get-discount-wrapper{transform:scale(0);transition:.35s transform;max-width:350px;height:0;padding:10px 0 0 10px;border:0;margin:15px auto auto;border-radius:2px;font-size:14px;font-weight:600;color:#000;background-color:#fff;text-align:left}.cg-wheel-get-discount-wrapper .cg-wheel-content-btn{height:40px;border-radius:0 2px 2px 0;padding:0 22px;font-size:14px;font-weight:600;right:0;margin-top:0}.cg-wheel.getCode .cg-wheel-get-discount-wrapper{transform:scale(1);height:40px}.cg-wheel-bg{background-size:cover;background-position:center}.cg-wheel-bg-helper-wrapper,.cg-wheel-bg-wrapper{width:100%;position:absolute;overflow:hidden}.cg-wheel.layout-1 .cg-wheel-bg-wrapper{top:0}.cg-wheel.layout-1 .cg-wheel-bg-helper-wrapper{left:0;top:280px;height:100px;width:100%}.cg-wheel.layout-1 .cg-wheel-bg-helper-wrapper .cg-wheel-bg-helper{position:relative;left:-150%;width:400%;height:2000%;background-color:#fff;border-radius:2000px}.cg-wheel.layout-1 .cg-wheel-bg,.cg-wheel.layout-6 .cg-wheel-bg,.cg-wheel.layout-7 .cg-wheel-bg,.cg-wheel.layout-base .cg-wheel-bg,.cg-wheel.layout-base .cg-wheel-bg-wrapper{height:335px}.cg-wheel.layout-1 .cg-wheel-main-content,.cg-wheel.layout-6 .cg-wheel-main-content,.cg-wheel.layout-7 .cg-wheel-content{margin-top:80px}.cg-wheel.layout-base .cg-wheel-main-content{margin-top:100px}.cg-wheel.layout-2 .cg-wheel-main-content,.cg-wheel.layout-5 .cg-wheel-main-content,.cg-wheel.layout-8 .cg-wheel-main-content{margin-top:30px}.cg-wheel.layout-2,.cg-wheel.layout-5{padding-bottom:250px}.cg-wheel.layout-2 .cg-wheel-content-h,.cg-wheel.layout-5 .cg-wheel-content-h{font-weight:900;line-height:1.05;letter-spacing:normal;text-align:center;margin-left:auto;margin-right:auto}.cg-wheel.layout-2 .cg-wheel-btn,.cg-wheel.layout-2 .get-discount-btn,.cg-wheel.layout-5 .cg-wheel-btn,.cg-wheel.layout-5 .get-discount-btn{border-radius:6px}.cg-wheel.layout-5 .cg-wheel-bg-wrapper,.cg-wheel.layout-8 .cg-wheel-bg-wrapper{bottom:0;height:240px;overflow:hidden}.cg-wheel.layout-5 .cg-wheel-bg-wrapper .cg-wheel-bg{width:100%;height:240px;background-size:100%;background-position:top center}.cg-wheel.layout-5 .cg-wheel-bg-helper-wrapper{overflow:hidden;height:100px;bottom:140px}.cg-wheel.layout-5 .cg-wheel-bg-helper-wrapper .cg-wheel-bg-helper{position:absolute;top:-37px;left:-14px;width:120%;height:65px;transform:rotate(-7deg)}.cg-wheel.layout-2 .cg-wheel-bg-wrapper,.cg-wheel.layout-7 .cg-wheel-bg-wrapper{bottom:0;overflow:hidden}.cg-wheel.layout-2 .cg-wheel-bg-wrapper .cg-wheel-bg,.cg-wheel.layout-7 .cg-wheel-bg-wrapper .cg-wheel-bg{width:300%;height:724%;background-size:500px;background-position:top center;border-radius:1500px;left:-100%;position:relative}.cg-wheel.layout-2 .cg-wheel-bg-wrapper{height:210px}.cg-wheel.layout-2 .cg-wheel-bg{background-size:500px;left:-116%}.cg-wheel.layout-7 .cg-wheel-bg-wrapper{top:0;height:300px}.cg-wheel.layout-7 .cg-wheel-bg-wrapper .cg-wheel-bg{bottom:0;background-repeat:no-repeat;position:absolute;background-position-y:120%}.cg-wheel.layout-3 .cg-wheel-bg-wrapper,.cg-wheel.layout-4 .cg-wheel-bg-wrapper{top:0;bottom:0;left:0;right:0;height:100%;width:100%}.cg-wheel.layout-3 .cg-wheel-bg-wrapper .cg-wheel-bg,.cg-wheel.layout-4 .cg-wheel-bg-wrapper .cg-wheel-bg{height:100%;width:100%;background-position:center}.cg-wheel.layout-3 .cg-wheel-main-content,.cg-wheel.layout-4 .cg-wheel-main-content{padding:15px 35px}.cg-wheel.layout-3 .cg-wheel-main-content .cg-wheel-content-bg,.cg-wheel.layout-4 .cg-wheel-main-content .cg-wheel-content-bg{position:absolute;top:0;left:20px;right:20px;bottom:0;opacity:.5;z-index:-1;background-color:#000}.cg-wheel.layout-3 .cg-wheel-main-content .cg-wheel-content-bg{border-radius:20px}.cg-wheel.layout-4 .cg-wheel-main-content .cg-wheel-content-bg{border:2px solid #fff}.cg-wheel.layout-4 .cg-wheel-main-content .cg-wheel-content-action,.cg-wheel.layout-4 .cg-wheel-main-content .cg-wheel-get-discount-wrapper,.cg-wheel.layout-4 .cg-wheel-main-content button.cg-wheel-content-btn{border-radius:0}.cg-wheel.layout-6 .cg-wheel-main-content{margin-top:100px}.cg-wheel.layout-6 .cg-wheel-bg-wrapper{top:0}.cg-wheel.layout-6 .cg-wheel-bg-helper-wrapper{height:100px;top:295px}.cg-wheel.layout-6 .cg-wheel-bg-helper-wrapper .cg-wheel-bg-helper{height:70%;width:52%;transform:rotate(-8.3deg);top:20%;left:0;position:absolute}.cg-wheel.layout-6 .cg-wheel-bg-helper-wrapper .cg-wheel-bg-helper-2{height:70%;width:51.8%;transform:rotate(8.3deg);top:20%;position:absolute;right:-1.2%}.cg-wheel.layout-8 .cg-wheel-bg-wrapper .cg-wheel-bg,.cg-wheel.layout-base .cg-wheel-bg-wrapper .cg-wheel-bg{height:100%;width:100%}.cg-wheel.layout-base .cg-wheel-bg-wrapper{top:0}@media only screen and (max-width:650px){.cg-wheel.active{right:0}.cg-wheel .cg-wheel-main{width:100%!important;left:-650px;background-size:cover}.cg-theme-content{display:none}}@media only screen and (max-width:500px){.cg-wheel .cg-wheel-wheel-wrapper{height:210px}.cg-wheel.layout-1 .cg-wheel-bg,.cg-wheel.layout-6 .cg-wheel-bg,.cg-wheel.layout-7 .cg-wheel-bg-wrapper,.cg-wheel.layout-base .cg-wheel-bg-wrapper,.cg-wheel.layout-base .cg-wheel-wheel-wrapper{height:265px}.cg-wheel.layout-1 .cg-wheel-bg-helper-wrapper,.cg-wheel.layout-6 .cg-wheel-bg-helper-wrapper{top:235px}.cg-wheel div.cg-wheel-content-h{font-size:20px!important}.cg-wheel div.cg-wheel-content-sub-h,.cg-wheel div.cg-wheel-terms-accept{font-size:12px!important}.cg-wheel.layout-1 .cg-wheel-main-content,.cg-wheel.layout-6 .cg-wheel-main-content,.cg-wheel.layout-base .cg-wheel-main-content{margin-top:30px}.cg-wheel.layout-1 .cg-wheel-wheel-wrapper,.cg-wheel.layout-6 .cg-wheel-wheel-wrapper,.cg-wheel.layout-7 .cg-wheel-wheel-wrapper{height:240px}.cg-wheel.cg-wheel-theme .cg-wheel-main-content,.cg-wheel.layout-2 .cg-wheel-main-content,.cg-wheel.layout-8 .cg-wheel-main-content{margin-top:10px}.cg-wheel.layout-6 .cg-wheel-bg-helper-wrapper{height:65px}.cg-wheel.layout-3 .cg-wheel-main-content,.cg-wheel.layout-4 .cg-wheel-main-content,.cg-wheel.layout-5 .cg-wheel-main-content{margin-top:0}.cg-wheel.layout-8 .cg-wheel-bg-wrapper{height:200px}.cg-wheel div.cg-wheel-scaler{width:320px;height:320px}.cg-wheel-wheel-cover div.cg-wheel-wheel-cover-item{font-size:11px;top:46.3%}}@media only screen and (max-width:320px){.cg-wheel div.cg-wheel-scaler{width:280px;height:280px}.cg-wheel.layout-1 .cg-wheel-main-content{margin-top:20px}.cg-wheel.layout-2 .cg-wheel-main-content{margin-top:0}.cg-wheel.layout-2 .cg-wheel-wheel-wrapper{height:190px}.cg-wheel.layout-2 .cg-wheel-bg-wrapper{height:155px}.cg-wheel-wheel-cover div.cg-wheel-wheel-cover-item{font-size:10px;top:46.3%}}.cg-wheel-content-action .cg-action-input {display: flex;justify-content: flex-end;}.cg-channl-optin-sub .fb-messenger-checkbox{margin-left: 70px;}.cg-wheel-content-action .cg-channel-input{flex: 1; margin-right: 5px;}.cg-wheel-content-action .cg-action-input .fb-messenger-checkbox{position:absolute;top:10px;left:10px;}"},M.TEMPLATES={siteWidgetBannerPreview:function(e){return'<div class="site-widget-banner-preview"> <div class="site-widget-banner-wrapper"> <div class="site-widget-banner-header"> <div class="site-widget-banner-header-icon"> <img class="svg-logo"/> </div></div><div class="widget-title"></div><div class="widget-sub-title"></div>'+e.bannerContentChannel+'\x3c!-- <div class="cg-subscription-box"> <div class="cg-discount-value"></div><div class="send-confirmation">'+e.optinCheckboxBanner+'</div></div><button type="button" class="cg-submit-btn"></button> --\x3e </div><button class="site-widget-icon"> <img class="svg-logo"/></button> </div>'},lotteryModalTemplate:function(){return'<div class="cg-modal-bg-mask"></div><div class="cg-site-widget-popup-add-to-cart lottery-modal"> <div class="cg-popup-add-to-cart-header"> <button class="close-lottery-modal" type="button">x</button> </div><div class="cg-popup-bg-wrapper"> <div class="cg-popup-bg"></div></div><div class="cg-popup-bg-helper-wrapper"> <div class="cg-popup-bg-helper"></div><div class="cg-popup-bg-helper-2"></div></div><div class="lottery-roulette"> <div class="lottery-play-box"> <div class="lottery-play-box-list"> </div></div><div class="lottery-play-box"> <div class="lottery-play-box-list"> </div></div><div class="lottery-play-box"> <div class="lottery-play-box-list"> </div></div></div><div class="win-balloons"> <div class="balloon-wrapper balloon-1"> <div class="balloon"></div><img src="https://d2i67f08wyo552.cloudfront.net/items/thread.png" class="balloon-thread" alt="balloon thread"/> </div><div class="balloon-wrapper balloon-2"> <div class="balloon"></div><img src="https://d2i67f08wyo552.cloudfront.net/items/thread.png" class="balloon-thread" alt="balloon thread"/> </div><div class="balloon-wrapper balloon-3"> <div class="balloon"></div><img src="https://d2i67f08wyo552.cloudfront.net/items/thread.png" class="balloon-thread" alt="balloon thread"/> </div><div class="balloon-wrapper balloon-4"> <div class="balloon"></div><img src="https://d2i67f08wyo552.cloudfront.net/items/thread.png" class="balloon-thread" alt="balloon thread"/> </div></div><div class="cg-popup-add-to-cart-content"> <div class="cg-popup-add-to-cart-content-bg"></div><div class="popup-add-to-cart-title"></div><div class="popup-add-to-cart-description"></div><div class="popup-cg-add-to-cart-block discount"> <div class="cg-discount-value"></div></div><div class="cg-popup-add-to-cart-footer"> <button class="cg-popup-footer-btn"></button> </div></div></div>'},addToCartPopup:function(e){return'<div class="cg-modal-bg-mask"></div><div class="cg-site-widget-popup-add-to-cart"> <div class="cg-popup-add-to-cart-header"> <button class="close-lottery-modal" type="button">x</button> </div><div class="cg-popup-bg-wrapper"> <div class="cg-popup-bg"></div></div><div class="cg-popup-bg-helper-wrapper"> <div class="cg-popup-bg-helper"></div><div class="cg-popup-bg-helper-2"></div></div><div class="cg-popup-add-to-cart-content"> <div class="cg-popup-add-to-cart-content-bg"></div><div class="popup-add-to-cart-title"></div><div class="popup-add-to-cart-description"></div><div class="popup-cg-add-to-cart-block discount"> <div class="cg-discount-value"></div></div>'+e.popupContentChannel+"</div></div>"},singlePopupContentChannel:function(e){return'<div class="popup-channel-input-wrapper"><div class="popup-cg-add-to-cart-block cg-action-input">'+e.optinChannel+'<button class="cg-popup-footer-btn"></button></div><div>'},dualPopupContentChannel:function(e){return'<div class="popup-channel-input-wrapper"><div class="popup-cg-add-to-cart-block cg-action-input">'+e.optinChannel+'<button class="cg-popup-footer-btn"></button></div>\n <div class="cg-popup-add-to-cart-footer"> '+e.fbm+" </div><div>"},popupContentChannelFbm:function(e){return'<div class="popup-cg-add-to-cart-block">'+e.fbm+'</div>\n <div class="cg-popup-add-to-cart-footer"> <button class="cg-popup-footer-btn"></button> </div>'},addToCartBlock:function(e){return'<div class="site-widget-add-to-cart-message"> <div class="add-to-cart-title"></div><div class="add-to-cart-description"></div>'+e.cartMessageContentChannel},singleAddToCartContentChannel:function(e){return'<div class="cg-add-to-cart-block channel-input"> <div class="block-icon"> <img class="svg-icon"/> </div><div class="cg-discount-value"></div><div class="cg-input-channel one-liner"> '+e.optinChannel+'<button type="button" class="cg-block-btn one-liner"></button> </div></div>'},dualAddToCartContentChannel:function(e){return'<div class="cg-add-to-cart-block channel-input"> <div class="block-icon"> <img class="svg-icon"/> </div><div class="block-content">'+e.fbm+'</div><div class="cg-discount-value"></div><div class="cg-input-channel"> '+e.optinChannel+'<button type="button" class="cg-block-btn"></button> </div></div>'},addToCartContentChannelFbm:function(e){return'<div class="cg-add-to-cart-block"> <div class="block-icon"> <img class="svg-icon"/> </div><div class="block-content">'+e.fbm+'</div><div class="cg-discount-value"></div><button type="button" class="cg-block-btn"></button> </div>'},wheel:function(e){return'<div class="cg-wheel"> <button class="cg-wheel-small-preview" type="button"> <img class="cg-sm-preview-wheel"/> <img class="cg-sm-preview-ticker"/> <div class="cg-preview-theme-content"></div></button> <div class="cg-wheel-main"> <button class="cg-wheel-close-btn" type="button"> <div class="cg-wheel-close-btn-background"></div><span>X</span> </button> <div class="cg-wheel-wheel-wrapper"> <div class="cg-wheel-scaler"> <img class="cg-wheel-ticker"/> <div class="cg-wheel-rotate-group"> <img class="cg-wheel-wheel"/> <div class="cg-wheel-wheel-cover"></div></div></div></div><div class="cg-wheel-bg-wrapper"> <div class="cg-wheel-bg"></div></div><div class="cg-wheel-bg-helper-wrapper"> <div class="cg-wheel-bg-helper"></div><div class="cg-wheel-bg-helper-2"></div></div><div class="cg-wheel-main-content"> <div class="cg-wheel-content-bg"></div><div class="cg-wheel-content-h">Header</div><div class="cg-wheel-content-sub-h">Sub Header</div>'+e.wheelContentChannel+'<div class="cg-wheel-terms-accept"> <span class="cg-wheel-agree-box"></span> </div><div class="cg-wheel-get-discount-wrapper"> <div class="cg-wheel-discount-value"></div></div></div><div class="cg-theme-content"></div></div></div>'},dualWheelContentChannel:function(e){return'<div class="cg-wheel-content-action"> <div class="cg-action-input">'+e.optinChannel+'<button type="button" class="cg-wheel-content-btn">Action Button</button> </div><div class="cg-channl-optin-sub">'+e.fbm+"</div></div>"},singleWheelContentChannel:function(e){return'<div class="cg-wheel-content-action"> <div class="cg-action-input">'+e.optinChannel+'<button type="button" class="cg-wheel-content-btn">Action Button</button> </div><div class="cg-channl-optin-sub">'+e.fbm+"</div></div>"},singleWheelContentChannelFbm:function(e){return'<div class="cg-wheel-content-action"> <div class="cg-action-input">'+e.fbm+'<button type="button" class="cg-wheel-content-btn">Action Button</button> </div></div>'},dualBannerContentChannel:function(e){return'<div class="cg-subscription-box cg-input-channel cg-input-channel-box"> <div class="cg-discount-value"></div><div class="channel-input-group"> <div class="send-confirmation">'+e.optinChannel+'</div><button type="button" class="cg-submit-btn"></button> </div><div class="fbm-wrapper">'+e.fbm+"</div></div>"},singleBannerContentChannel:function(e){return'<div class="cg-subscription-box cg-input-channel cg-input-channel-box"> <div class="cg-discount-value"></div><div class="channel-input-group"> <div class="send-confirmation">'+e.optinChannel+'</div><button type="button" class="cg-submit-btn"></button> </div></div>'},bannerContentChannelFbm:function(e){return'<div class="cg-subscription-box"> <div class="cg-discount-value"></div><div class="send-confirmation">'+e.fbm+'</div></div><button type="button" class="cg-submit-btn"></button>'},fbmOptin:function(e){return'<div style="min-width: 285px; min-height:75px; display: inline-block !important;" id="fbm-optin-'+e.userRef+'" class="fb-messenger-checkbox" color="blue" allow_login="true" origin="'+document.location.href+'" messenger_app_id="'+e.fbSettings.app_id+'" page_id="'+e.fbSettings.page_id+'" user_ref="'+e.userRef+'" size="standard"></div>'},smsOptin:function(e){return'<div class="cg-channel-input"><input class="cg-channel-optin" type="text" placeholder="'+e.phoneFormat+'"></input></div>'},emailOptin:function(e){return'<div class="cg-channel-input"><input class="cg-channel-optin" type="email-cg" placeholder="'+e.emailPlaceholder+'" pattern="[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+.[a-zA-Z]{2,}$"></input></div>'},smsOptinInput:function(e){return'<input class="cg-channel-optin" type="text" placeholder="'+e.phoneFormat+'"></input>'},emailOptinInput:function(e){return'<input class="cg-channel-optin" type="email-cg" placeholder="'+e.emailPlaceholder+'" pattern="[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+.[a-zA-Z]{2,}$"></input>'}},M.WHEEL_THEMES={halloween:'<div class="bats"> <img class="bat-1" src="https://d2i67f08wyo552.cloudfront.net/wheel/themes/halloween/bat.svg"/> <img class="bat-2" src="https://d2i67f08wyo552.cloudfront.net/wheel/themes/halloween/bat.svg"/> <img class="bat-3" src="https://d2i67f08wyo552.cloudfront.net/wheel/themes/halloween/bat.svg"/> </div><div class="spider-web"> <img class="web" src="https://d2i67f08wyo552.cloudfront.net/wheel/themes/halloween/web.svg"/></div><div class="spider-wrapper"> <img class="spider" src="https://d2i67f08wyo552.cloudfront.net/wheel/themes/halloween/spider.svg"/> </div><div class="pumpkin-1-wrapper"> <div class="pumpkin-shine-1"></div><div class="pumpkin-shine-2"></div><img class="pumpkin" src="https://d2i67f08wyo552.cloudfront.net/wheel/themes/halloween/pumpkin.svg"/> </div><div class="pumpkin-2-wrapper"> <div class="pumpkin-shine-1"></div><div class="pumpkin-shine-2"></div><img class="pumpkin" src="https://d2i67f08wyo552.cloudfront.net/wheel/themes/halloween/happy_pumpkin.svg"/> </div><div class="zombie-hands"> <img class="zombie-hand-1" src="https://d2i67f08wyo552.cloudfront.net/wheel/themes/halloween/zombie-hand.svg"/> <img class="zombie-hand-2" src="https://d2i67f08wyo552.cloudfront.net/wheel/themes/halloween/zombie-hand.svg"/> </div><div class="candle-group-1"> <img class="candle-1" src="https://d2i67f08wyo552.cloudfront.net/wheel/themes/halloween/flame.svg"/> <img class="candle-2" src="https://d2i67f08wyo552.cloudfront.net/wheel/themes/halloween/flame.svg"/> <img class="candle-3" src="https://d2i67f08wyo552.cloudfront.net/wheel/themes/halloween/flame.svg"/> </div><div class="candle-group-2"> <img class="candle-1" src="https://d2i67f08wyo552.cloudfront.net/wheel/themes/halloween/flame.svg"/> <img class="candle-2" src="https://d2i67f08wyo552.cloudfront.net/wheel/themes/halloween/flame.svg"/> <img class="candle-3" src="https://d2i67f08wyo552.cloudfront.net/wheel/themes/halloween/flame.svg"/> </div><img class="witch" src="https://d2i67f08wyo552.cloudfront.net/wheel/themes/halloween/witch.svg"/>',halloweenSmallPreview:'<div class="small-bats"> <img class="bat-1" src="https://d2i67f08wyo552.cloudfront.net/wheel/themes/halloween/bat.svg"/> <img class="bat-2" src="https://d2i67f08wyo552.cloudfront.net/wheel/themes/halloween/bat.svg"/> <img class="bat-3" src="https://d2i67f08wyo552.cloudfront.net/wheel/themes/halloween/bat.svg"/> </div>',winter:'<div class="simple-list"> <img class="bonnet-1" src="https://d2i67f08wyo552.cloudfront.net/wheel/themes/winter/bonnet.svg"/> <img class="bonnet-2" src="https://d2i67f08wyo552.cloudfront.net/wheel/themes/winter/bonnet_1.svg"/> <img class="gloves-1" src="https://d2i67f08wyo552.cloudfront.net/wheel/themes/winter/gloves.svg"/><img class="gloves-2" src="https://d2i67f08wyo552.cloudfront.net/wheel/themes/winter/gloves_2.svg"/><img class="cake" src="https://d2i67f08wyo552.cloudfront.net/wheel/themes/winter/cake.svg"/> <img class="tasse" src="https://d2i67f08wyo552.cloudfront.net/wheel/themes/winter/tasse.svg"/> </div><img class="ski-man" src="https://d2i67f08wyo552.cloudfront.net/wheel/themes/winter/skiman.svg"/> <div class="cabine-wrapper"> <div class="wire"></div><img class="cabine-1" src="https://d2i67f08wyo552.cloudfront.net/wheel/themes/winter/cabine.svg"/> <img class="cabine-2" src="https://d2i67f08wyo552.cloudfront.net/wheel/themes/winter/cabine.svg"/> </div><img class="snow" src="https://d2i67f08wyo552.cloudfront.net/wheel/themes/winter/snow.svg"/>',winterSmallPreview:'<div class="winter"><img class="bonnet-1" src="https://d2i67f08wyo552.cloudfront.net/wheel/themes/winter/bonnet_1.svg"/><img class="gloves" src="https://d2i67f08wyo552.cloudfront.net/wheel/themes/winter/gloves_2.svg"/><img class="bonnet-2" src="https://d2i67f08wyo552.cloudfront.net/wheel/themes/winter/bonnet.svg"/></div>',christmas:'<div class="snow-flakes"><img class="snow-flake-prototype" src="https://d2i67f08wyo552.cloudfront.net/wheel/themes/christmas/snow_flake.svg"></div><img class="candy_cane-1" src="https://d2i67f08wyo552.cloudfront.net/wheel/themes/christmas/candy_cane.svg"><img class="candy_cane-2" src="https://d2i67f08wyo552.cloudfront.net/wheel/themes/christmas/candy_cane.svg"><img class="candy_cane-3" src="https://d2i67f08wyo552.cloudfront.net/wheel/themes/christmas/candy_cane.svg"><img class="candy_cane-4" src="https://d2i67f08wyo552.cloudfront.net/wheel/themes/christmas/candy_cane.svg"> <div class="pie"><img src="https://d2i67f08wyo552.cloudfront.net/wheel/themes/christmas/mince_pie.svg"> <div class="shadow"></div></div><div class="present-1"><img src="https://d2i67f08wyo552.cloudfront.net/wheel/themes/christmas/present_1.svg"> <div class="shadow"></div></div><div class="present-2"><img src="https://d2i67f08wyo552.cloudfront.net/wheel/themes/christmas/present_2.svg"> <div class="shadow"></div></div><div class="present-3"><img src="https://d2i67f08wyo552.cloudfront.net/wheel/themes/christmas/present_3.svg"> <div class="shadow"></div></div><div class="santa"><img src="https://d2i67f08wyo552.cloudfront.net/wheel/themes/christmas/santa.svg"> <div class="santa-shadow"></div></div><div class="house-light"></div>',christmasSmallPreview:'<div class="christmas"><img class="present-1" src="https://d2i67f08wyo552.cloudfront.net/wheel/themes/christmas/present_1.svg"><img class="present-2" src="https://d2i67f08wyo552.cloudfront.net/wheel/themes/christmas/present_2.svg"><img class="present-3" src="https://d2i67f08wyo552.cloudfront.net/wheel/themes/christmas/present_3.svg"></div>'};o(P,[{key:"setup",value:function(){var i=this,e=this.widget.generateOptinChannel(this.widget.userRef,this.config.fbSettings),t=this.widgetResources.generate(e.type,e);this.wrapper.insertAdjacentHTML("beforeend",this.widgetResources.generate("wheel",{wheelContentChannel:t})),this.wheel=this.wrapper.childNodes[0],this.wrapper.appendChild(this.wheel),this.wheel.optinChannelType=e.type,this.wheel.classList.add(this.config.config.theme.key,this.config.config.theme.layout),this.checkWheelChance(),this.setupSmallPreview(),this.setupContentPreview(),this.generateWheelCover(),this.handleTheme(),this.setupTermsAndConditions(),this.handleTriggerOn(),this.widget.setBtnState=function(e,t){i.setBtnState(e,t)},this.updateWheelState("roulette"),this.initWheel()}},{key:"handleTriggerOn",value:function(){var e=this.config.triggerOn;if(e&&e.length){this.wheel.classList.add("hide-preview");for(var t=0;t<e.length;t++)switch(e[t].key){case i:this.subscribeOnExitEvent();break;case c:this.watchOnExitInactivity(e[t].value);break;case"cta":this.wheel.classList.remove("hide-preview")}}}},{key:"subscribeOnExitEvent",value:function(){var t=this,i=function i(e){(!e.clientY||e.clientY<0)&&(t.showWheel(),document.body.removeEventListener("mouseleave",i))};document.body.addEventListener("mouseleave",i)}},{key:"watchOnExitInactivity",value:function(e){var t=this;setTimeout(function(){t.showWheel()},1e3*e)}},{key:"setupTermsAndConditions",value:function(){var e=this,t=this.wheel.getElementsByClassName("cg-wheel-terms-checkbox")[0];this.wheel.getElementsByClassName("cg-wheel-agree-box")[0];t&&(this.widget.termsCheckbox=t).addEventListener("click",function(){e.onTermsClick()})}},{key:"isTermsChecked",value:function(){return!this.widget.termsCheckbox||this.widget.termsCheckbox.checked}},{key:"onTermsClick",value:function(){var e,t=this;this.isTermsChecked()&&this.widget.hideTooltip(),this.isTermsChecked()?this.widget.fbCheckboxState?this.widget.fbCheckboxState&&this.isTermsChecked()&&this.setBtnState(!0):(e=this.wheel.getElementsByClassName("cg-wheel-content-btn")[0]).onmouseenter=function(){t.widget.showTooltip(e,t.widgetResources.get("disabled"),!0)}:this.setBtnState(!1)}},{key:"initWheel",value:function(){sessionStorage.getItem(f)}},{key:"handleTheme",value:function(){var t=this,e=this.wheel.getElementsByClassName("cg-wheel-main")[0],i=this.wheel.getElementsByClassName("cg-wheel-bg")[0],n=e.getElementsByClassName("cg-wheel-content-bg")[0],o=this.wheel.getElementsByClassName("cg-wheel-bg-helper")[0],a=this.wheel.getElementsByClassName("cg-wheel-bg-helper-2")[0];switch(this.handleThemeContent(),this.handleThemeActions(),this.config.config.theme.key){case g:case h:case u:e.style.backgroundColor=this.config.config.theme.backgroundColor,e.style.backgroundImage="url('"+this.config.config.theme.backgroundImage+"')";break;default:i.style.backgroundImage="url('"+this.config.config.theme.backgroundImage+"')"}switch(e.style.backgroundColor=this.config.config.theme.backgroundColor,this.config.config.theme.layout){case"layout-1":case"layout-5":o.style.backgroundColor=this.config.config.theme.backgroundColor;break;case"layout-3":case"layout-4":n.style.backgroundColor=this.config.config.theme.backgroundColor;break;case"layout-6":[].forEach.call([o,a],function(e){e.style.backgroundColor=t.config.config.theme.backgroundColor})}}},{key:"handleThemeContent",value:function(){var e=void 0,t=void 0;switch(this.config.config.theme.key){case g:e=M.WHEEL_THEMES.halloween,t=M.WHEEL_THEMES.halloweenSmallPreview;break;case h:e=M.WHEEL_THEMES.winter,t=M.WHEEL_THEMES.winterSmallPreview;break;case u:e=M.WHEEL_THEMES.christmas,t=M.WHEEL_THEMES.christmasSmallPreview;break;default:return}var i=this.wheel.getElementsByClassName("cg-theme-content")[0],n=this.wheel.getElementsByClassName("cg-preview-theme-content")[0];this.wheel.classList.add("cg-wheel-theme"),i.innerHTML=e,n.innerHTML=t}},{key:"handleThemeActions",value:function(){this.config.config.theme.key===u&&this.startChristmasSnowFall()}},{key:"startChristmasSnowFall",value:function(){for(var e,t=this.wheel.getElementsByClassName("snow-flake-prototype")[0],n=this.wheel.getElementsByClassName("snow-flakes")[0],i=1;i<20;i++)(e=document.createElement("img")).classList.add(t.classList.value),e.src=t.src,Math.floor(2*Math.random())&&(e.style.animationName="snowflakemoverev"),e.style.left=50+Math.floor(531*Math.random())+"px",e.style.width=20+Math.floor(12*Math.random())+"px",e.style.animationDuration=5+Math.floor(16*Math.random())/10+"s",!function(e,t){var i;i=e,setTimeout(function(){n.appendChild(i)},500*t)}(e,i)}},{key:"checkWheelChance",value:function(){this.wheel.result=S.getLotteryDiscountOnChance(this.config.discount.list),this.wheel.finalState=this.wheel.result.id?l:"lost"}},{key:"setBtnState",value:function(e,t){var i=this,n=this.wheel.getElementsByClassName("cg-wheel-content-btn")[0];n.onmouseenter=null,this.widget.disabled&&(n.onclick=null),this.isTermsChecked()?(e?n.classList.remove(d):n.classList.add(d),t&&!e&&(n.onmouseenter=function(){i.widget.showTooltip(n,t,!0)})):(n.onmouseenter=function(){i.widget.showTooltip(n,i.widgetResources.get("agreeTerms"),!0)},n.classList.add(d))}},{key:"generateWheelCover",value:function(){var e=[],t=this.config.discount.list.filter(function(e){return!e.id})[0],i=this.config.discount.list.filter(function(e){return e.id}),n=0,o=this.wheel.getElementsByClassName("cg-wheel-wheel-cover")[0];e.push(this.wheel.result.label);for(var a=1;a<12;a++)a%4==0?(e.push(i[n].label),++n===i.length&&(n=0)):e.push(t.label);for(var r=0;r<e.length;r++){var s=document.createElement("div"),l=30*r;s.classList.add("cg-wheel-wheel-cover-item"),s.innerText=e[r],s.style.transform="rotate("+l+"deg)",o.appendChild(s)}}},{key:"setupSmallPreview",value:function(){var e=this,t=this.wheel.getElementsByClassName("cg-sm-preview-wheel")[0],i=this.wheel.getElementsByClassName("cg-sm-preview-ticker")[0];this.wheel.getElementsByClassName("cg-wheel-small-preview")[0].addEventListener("click",function(){e.showWheel()}),this.setWheel(t,i)}},{key:"showWheel",value:function(){this.wheel.classList.remove("hide-preview"),this.wheel.classList.add("active")}},{key:"setWheel",value:function(e,t){S.replaceImgBySvg(e,this.config.config.theme.wheel.backgroundImage),t.src=this.config.config.theme.wheel.tickerImage}},{key:"setupContentPreview",value:function(){var t,e=this,i=this.wheel.getElementsByClassName("cg-wheel-main")[0],n=this.wheel.getElementsByClassName("cg-wheel-wheel")[0],o=this.wheel.getElementsByClassName("cg-wheel-ticker")[0],i=i.getElementsByClassName("cg-wheel-close-btn")[0],a=this.wheel.getElementsByClassName("cg-wheel-content-btn")[0];"singleWheelContentChannel"===this.wheel.optinChannelType&&((t=this.wheel.getElementsByClassName("cg-channel-optin")[0]).oninput=function(e){""===t.value?a.classList.add(d):a.classList.contains(d)&&a.classList.remove(d)}),this.widget.submitBtn=a,this.setWheel(n,o),i.addEventListener("click",function(){e.onCloseBtnClick()}),a.onclick=function(){e.onSubmitBtnClick()}}},{key:"onSubmitBtnClick",value:function(){var t=this,e=this.wheel.getElementsByClassName("cg-wheel-content-btn")[0];(this.widget.fbCheckboxState&&this.isTermsChecked()||!e.classList.contains(d)&&"singleWheelContentChannel"===this.wheel.optinChannelType)&&this.widget.onOptinClick(this.wheel).then(function(e){e&&t.startWheel()})}},{key:"startWheel",value:function(){var n=this;this.wheel.classList.add("spin"),setTimeout(function(){var e,t,i=n.wheel.getElementsByClassName("cg-wheel-content-btn")[0];n.wheel.classList.add("highlight-sector"),n.wheel.classList.add(n.wheel.finalState),n.updateWheelState(n.wheel.finalState),n.wheel.result.id&&(e=document.getElementsByClassName("cg-wheel-discount-value")[0],t=S.getActiveCouponCode(n.wheel.result),i.addEventListener("click",function(){x.copyText(t,n.wrapper),n.widget.setBtnCopiedState(i)}),e.innerText=t)},3e3)}},{key:"onCloseBtnClick",value:function(){sessionStorage.setItem(f,new Date),this.wheel.classList.remove("active"),this.widget.hideTooltip()}},{key:"updateWheelState",value:function(e){var t=this.wheel.getElementsByClassName("cg-wheel-content-h")[0],i=this.wheel.getElementsByClassName("cg-wheel-content-sub-h")[0],n=this.wheel.getElementsByClassName("cg-wheel-content-btn")[0],o=this.config.config.lotteryPopup[e].title,a=this.config.config.lotteryPopup[e].subtitle,r=this.config.config.lotteryPopup[e].button;this.config.config.theme&&this.config.config.theme.formCTAColor&&r&&(r.color=this.config.config.theme.formCTAColor),x.setVariableConfig(t,o,null),x.setVariableConfig(i,a,null),x.setVariableConfig(n,r,null,!0),e===l&&this.wheel.getElementsByClassName("cg-wheel-get-discount-wrapper")[0].appendChild(n)}}]);var K=P;function P(e,t){n(this,P),this.wrapper=t,this.widget=e,this.config=e.config,this.widgetResources=new M(this.config.language),this.state=D,this.setup()}o(R,[{key:"isInitialized",value:function(){throw"isInitialized must be overriden"}},{key:"runCommand",value:function(e,t){var i=!1,n=function n(){t.runFromQueue()};switch(e.name){case"init":i=!0,this.init(e.params,n);break;case"track":i=!0,this.track(e.params,n);break;case"get":return this.get(e.params);case"set":this.set(e.params)}i||t.runFromQueue()}},{key:"runFromQueue",value:function(){var e;0<this.commands.length&&(this.isInitialized()?this.runCommand(this.commands.shift(),this):(e=this.commands.find(function(e){return"init"===e.name}))&&(this.commands=this.commands.filter(function(e){return"init"!==e.name}),this.runCommand(e,this)))}},{key:"addCommandToQueue",value:function(e){this.commands.push(e)}},{key:"addCommand",value:function(e){return this.isInitialized()?this.runCommand(e,this):this.addCommandToQueue(e)}}]);var j=R;function R(){n(this,R),this.commands=[]}var O={siteId:"3256fc97-93c6-49fe-9291-dc4292edc978",platform:"manual",widgets:JSON.parse('[]'),trackerUrl:"https://integration.carts.guru/tracker/3256fc97-93c6-49fe-9291-dc4292edc978",features:{ci:JSON.parse("true"),fbm:JSON.parse("false"),scoring:JSON.parse("false"),remoteAPI:JSON.parse("false")},fbSettings:{page_id:"",app_id:"117034805405908",catalog_id:""}};o(q,null,[{key:"load",value:function(e){var t,i,n;i=window,n=document,i.fbq||(t=i.fbq=function(){t.callMethod?t.callMethod.apply(t,arguments):t.queue.push(arguments)},i._fbq||(i._fbq=t),(t.push=t).loaded=!0,t.version="2.0",t.queue=[],(i=n.createElement("script"))["async"]=!0,i.src="//connect.facebook.net/en_US/fbevents.js",(n=n.getElementsByTagName("script")[0]).parentNode.insertBefore(i,n)),fbq("init",O.fbSettings.pixel)}},{key:"trackPageView",value:function(){fbq("track","PageView")}},{key:"trackProductView",value:function(e){fbq("track","ViewContent",{content_type:"product",content_ids:[e.id],value:e.price,currency:e.currency,product_catalog_id:O.fbSettings.catalog_id})}},{key:"trackAddToCart",value:function(e){fbq("track","AddToCart",{content_type:"product",content_ids:[e.id],value:e.price,currency:e.currency,product_catalog_id:O.fbSettings.catalog_id})}},{key:"trackPurchase",value:function(){fbq("track","Purchase",{content_type:"product",content_ids:order.items.map(function(e){return e.id}),value:order.totalATI,currency:order.currency,product_catalog_id:O.fbSettings.catalog_id})}}]);function q(){n(this,q)}o(N,[{key:"_isCorsSupported",value:function(){try{var e=new XMLHttpRequest;return"withCredentials"in(e=XMLHttpRequest.isNormalizedObject&&e._object?e._object:e)}catch(t){return!1}}},{key:"trackCart",value:function(e){""!==e.accountId&&null!==e.accountId&&e.accountId!==undefined&&((e=this._deepClone(e))._type="cart",e.id=e.id||e.cartId,delete e.cartId,this._track(e))}},{key:"trackOrder",value:function(e){e=this._deepClone(e);e._type="order",e.id=e.id||e.orderId,delete e.orderId,this._track(e)}},{key:"_track",value:function(e){e.items&&"string"!=typeof e.items&&(e.items=JSON.stringify(e.items)),e.custom&&"string"!=typeof e.custom&&(e.custom=JSON.stringify(e.custom)),this.isCorsSupported?this._trackByRequest(e):this._trackByPixel(e)}},{key:"_deepClone",value:function(e){return JSON.parse(JSON.stringify(e))}},{key:"_trackByPixel",value:function(e){var e=this.baseUrl+"/__trk.gif?"+this._encodeParams(e),t=document.createElement("img");t.style.display="none",t.src=e,document.body.appendChild(t)}},{key:"_trackByRequest",value:function(e){var e=this.baseUrl+"/__trk?"+this._encodeParams(e),t=new XMLHttpRequest;t.open("GET",e),t.withCredentials=!0,t.send()}},{key:"_encodeParams",value:function(t){return Object.keys(t).map(function(e){return encodeURIComponent(e)+"="+encodeURIComponent(t[e])}).join("&")}}]);var Y=N;function N(){n(this,N),this.baseUrl="https://api.carts.guru/javascript",this.isCorsSupported=this._isCorsSupported()}var J=function(){function e(){n(this,e);var i=function(e,t){if(e)return!t||"object"!=typeof t&&"function"!=typeof t?e:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return i.version=v.version,i.model=new y,i.remoteAPI=new Y,i.data={},i.isInitialized()||(new Fingerprint2).get(function(e){var t=e+"::"+new Hashids["default"](S.uuid(),6,"abcdefghijklmnopqrstuvwxyz0123456789").encode(Date.now());i.setFingerprint({fingerprint:e,fingerprintId:t}),i.runFromQueue()}),i}var t=e,i=j;if("function"!=typeof i&&null!==i)throw new TypeError("Super expression must either be null or a function, not "+typeof i);return t.prototype=Object.create(i&&i.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(t,i):t.__proto__=i),o(e,[{key:"isInitialized",value:function(){return!(!this.model.siteId||!(this.model.fingerprintId||S.getCookie(v.trkPrefix+"fid")||this.model.fingerprint))}},{key:"setFingerprint",value:function(e){var t=e.fingerprint,e=e.fingerprintId;this.model.fingerprintId=S.getCookie(v.trkPrefix+"fid")||e,this.model.fingerprint=t,S.setCookie(v.trkPrefix+"fid",this.model.fingerprintId,30)}},{key:"getFingerprintId",value:function(){return this.model.fingerprintId||S.getCookie(v.trkPrefix+"fid")}},{key:"get",value:function(e){return this.data[e]}},{key:"set",value:function(e){for(var t in e)e.hasOwnProperty(t)&&(this.data[t]=e[t],"cart"===t?this.onCartChange(e[t]):"order"===t&&this.onOrderChange(e[t]))}},{key:"onCartChange",value:function(e){if(e){e.cartId=e.id||e.cartId,this.model.cartId=e.cartId;var t=this.detectCartChanges(e),i=!0,n=!1,o=undefined;try{for(var a,r=t.added[Symbol.iterator]();!(i=(a=r.next()).done);i=!0){var s=a.value;this.addCommand({name:"track",params:{what:"event",ofType:"cartAdd",onTarget:window.location.pathname,withData:{product:s,eventTimestamp:(new Date).getTime()}}})}}catch(l){n=!0,o=l}finally{try{!i&&r["return"]&&r["return"]()}finally{if(n)throw o}}O.features.remoteAPI&&(e.siteId||(e.siteId=O.siteId||this.model.siteId||O.fbSettings.siteId),this.remoteAPI.trackCart(e))}}},{key:"onOrderChange",value:function(e){e&&(this.resetCartChanges(),this.addCommand({name:"track",params:{what:"event",ofType:"order",onTarget:window.location.pathname,withData:{order:e,eventTimestamp:(new Date).getTime()}}}),O.features.remoteAPI)&&(e.siteId||(e.siteId=O.siteId||this.model.siteId||O.fbSettings.siteId),this.remoteAPI.trackOrder(e))}},{key:"getSessionId",value:function(){return this.model.sessionId||S.getCookie(v.trkPrefix+"sid")}},{key:"setSessionId",value:function(e){this.model.sessionId=e,S.setCookie(v.trkPrefix+"sid",e,0,30)}},{key:"getUserRef",value:function(){return S.getCookie(v.trkPrefix+"user_ref")}},{key:"setUserRef",value:function(e){this.model.user_ref=e,S.setCookie(v.trkPrefix+"user_ref",e,5,0)}},{key:"init",value:function(e,t){var i,n=this,o=(this.registerDefaultEvents(),document.querySelector("#cg-evt, #cg-trk")),a=(e||{}).trackerUrl||O.trackerUrl,a=(a=o&&o.src&&"cdn.cartsguru.io"===new URL(o.src).hostname?"https://integration.carts.guru/tracker/"+((e||{}).siteId||O.siteId):a)&&(a.endsWith("/")?a:a+"/");return v.trkUrl=a||v.trkUrl,e&&(e.config&&(e.config.fbSettings&&(O.fbSettings=S.deepMerge([O.fbSettings,e.config.fbSettings])),e.config.features&&(O.features=S.deepMerge([O.features,e.config.features])),delete e.config),this.set(e)),-1!==document.location.href.indexOf("cg_accountid")&&(i=S.getParameterByName("cg_accountid"),this.model.cg_accountid=i),"shopify"!==O.platform&&"shopify-embedded"!==O.platform||(this.model.cartId=S.getCookie("cart"),i&&(o=S.getParameterByName("cart_id"))&&o!==this.model.cartId&&(S.setCookie("cart",o,30,0,!0),document.location.reload())),this.widgets=O.widgets||[],O.fbSettings.platform=e&&e.platform||O&&O.platform||null,O.fbSettings.siteId=e&&e.siteId||O&&O.siteId||null,this.model.fingerprintId=this.getFingerprintId(),this.model.siteId=O.siteId,this.model.sessionId=this.getSessionId(),this.model.timezone=Intl&&Intl.DateTimeFormat?Intl.DateTimeFormat().resolvedOptions().timeZone:null,this.model.page=S.getPageInfo(),this.model.language=(navigator.language||navigator.userLanguage).substring(0,2),this.model.accountId=e&&e.accountId||null,this.model.email=e&&e.email||null,this.model.origin=document.location.origin,this.userRef=e&&e.user_ref||this.getUserRef(),O.features.fbm?w.load(this,function(){w.init(O.fbSettings),n.activateWidgets(O)}):this.widgets.length&&this.widgets.some(function(e){return e.channelOptinOrder.includes(7)||e.channelOptinOrder.includes(0)})&&this.activateWidgets(O),S.fireStoredEvents(),"function"==typeof t?t():this}},{key:"registerDefaultEvents",value:function(){this.addCommand({name:"track",params:{what:"event",ofType:"visit",onTarget:window.location.pathname}}),window.onbeforeunload=function(){setTimeout(function(){window.CG("track",{what:"event",ofType:"quit",onTarget:window.location.pathname})},0)}}},{key:"activateWidgets",value:function(i){var n=this;r.init(this),this.checkUserRef(function(t){S.getPhoneFormat().then(function(e){x.renderFBM(i.fbSettings,n.widgets,n.userRef,t,e,!!i.features.fbm)})})}},{key:"checkUserRef",value:function(i){var n=this;S.makeRequest("check-user-ref",{siteId:this.model.siteId,fingerprint:this.model.fingerprint,fingerprintId:this.model.fingerprintId,cg_accountid:this.model.cg_accountid},function(e,t){if(e)return console.warn(e);t.user_ref?(n.userRef=t.user_ref,n.setUserRef(t.user_ref)):sessionStorage.setItem("cgCheckedUserRef","true"),i(t)})}},{key:"track",value:function(e,t){this.send(e,t)}},{key:"send",value:function(e,i){var t,n=this,o={};for(t in this.model)this.model.hasOwnProperty(t)&&(o[t]=this.model[t]);o.params=e,o.config={ci:O.features.ci,fbm:O.features.fbm,scoring:O.features.scoring,fbAds:O.features.fbAds,page_id:O.fbSettings.page_id},-1!==["cartAdd","cartRemove","cartUpdate"].indexOf(e.ofType)&&this.data.cart&&(o.params.withData=o.params.withData||{},o.params.withData.cart=this.data.cart),S.makeRequest("track",o,function(e,t){if(e)return console.warn(e),i();t.contactId&&n.setContactId(t.contactId),t.sessionId&&n.setSessionId(t.sessionId),t.removeUserRef&&(n.userRef=null,n.setUserRef(n.userRef)),i()})}},{key:"resetCartChanges",value:function(){window.localStorage.removeItem("cgCartItems")}},{key:"detectCartChanges",value:function(e){var t=window.localStorage,i="cgCartItems",n={added:[],updated:[],removed:[]},o=t.getItem(i)?JSON.parse(t.getItem(i)):[];if(e&&e.items){var a=function a(t){var e=o.find(function(e){return e.id===t.id});e&&e.qty>t.quantity?n.removed.push(t):(e&&e.qty<t.quantity||!e)&&n.added.push(t)},r=!0,s=!1,l=undefined;try{for(var c,d=e.items[Symbol.iterator]();!(r=(c=d.next()).done);r=!0)a(c.value)}catch(f){s=!0,l=f}finally{try{!r&&d["return"]&&d["return"]()}finally{if(s)throw l}}s=e.items.map(function(e){return{id:e.id,qty:e.quantity}});t.setItem(i,JSON.stringify(s))}else if(o){var p=!0,l=!1,e=undefined;try{for(var g,h=o[Symbol.iterator]();!(p=(g=h.next()).done);p=!0){var u=g.value;n.removed.push(u)}}catch(f){l=!0,e=f}finally{try{!p&&h["return"]&&h["return"]()}finally{if(l)throw e}}}return n}}]),e}();window.CG=function(){"use strict";var n;return function(e,t,i){if(!n)n=new J;return n.addCommand({name:e,params:t,data:i})}}()}();