widgets.shop.moda.it
Open in
urlscan Pro
18.102.88.85
Public Scan
URL:
https://widgets.shop.moda.it/deliver.js?publisher
Submission: On October 25 via api from IT — Scanned from IT
Submission: On October 25 via api from IT — Scanned from IT
Form analysis
0 forms found in the DOMText Content
var He=Object.create;var Re=Object.defineProperty;var We=Object.getOwnPropertyDescriptor;var Ge=Object.getOwnPropertyNames;var Je=Object.getPrototypeOf,Ye=Object.prototype.hasOwnProperty;var Ke=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports);var Ze=(n,e,i,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let c of Ge(e))!Ye.call(n,c)&&c!==i&&Re(n,c,{get:()=>e[c],enumerable:!(t=We(e,c))||t.enumerable});return n};var Xe=(n,e,i)=>(i=n!=null?He(Je(n)):{},Ze(e||!n||!n.__esModule?Re(i,"default",{value:n,enumerable:!0}):i,n));var ze=Ke((V,Z)=>{(function(n,e){"use strict";var i="1.0.36",t="",c="?",b="function",v="undefined",d="object",p="string",M="major",o="model",a="name",r="type",s="vendor",l="version",S="architecture",U="console",g="mobile",u="tablet",I="smarttv",C="wearable",re="embedded",ne=350,q="Amazon",N="Apple",ye="ASUS",Ee="BlackBerry",A="Browser",j="Chrome",Ve="Edge",B="Firefox",H="Google",De="Huawei",oe="LG",se="Microsoft",ke="Motorola",W="Opera",ae="Samsung",Ie="Sharp",G="Sony",ci="Viera",le="Xiaomi",de="Zebra",xe="Facebook",Me="Chromium OS",Se="Mac OS",qe=function(w,y){var h={};for(var E in w)y[E]&&y[E].length%2===0?h[E]=y[E].concat(w[E]):h[E]=w[E];return h},J=function(w){for(var y={},h=0;h<w.length;h++)y[w[h].toUpperCase()]=w[h];return y},Te=function(w,y){return typeof w===p?$(y).indexOf($(w))!==-1:!1},$=function(w){return w.toLowerCase()},je=function(w){return typeof w===p?w.replace(/[^\d\.]/g,t).split(".")[0]:e},ce=function(w,y){if(typeof w===p)return w=w.replace(/^\s\s*/,t),typeof y===v?w:w.substring(0,ne)},F=function(w,y){for(var h=0,E,O,T,f,m,P;h<y.length&&!m;){var me=y[h],Le=y[h+1];for(E=O=0;E<me.length&&!m&&me[E];)if(m=me[E++].exec(w),m)for(T=0;T<Le.length;T++)P=m[++O],f=Le[T],typeof f===d&&f.length>0?f.length===2?typeof f[1]==b?this[f[0]]=f[1].call(this,P):this[f[0]]=f[1]:f.length===3?typeof f[1]===b&&!(f[1].exec&&f[1].test)?this[f[0]]=P?f[1].call(this,P,f[2]):e:this[f[0]]=P?P.replace(f[1],f[2]):e:f.length===4&&(this[f[0]]=P?f[3].call(this,P.replace(f[1],f[2])):e):this[f]=P||e;h+=2}},pe=function(w,y){for(var h in y)if(typeof y[h]===d&&y[h].length>0){for(var E=0;E<y[h].length;E++)if(Te(y[h][E],w))return h===c?e:h}else if(Te(y[h],w))return h===c?e:h;return w},Be={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},Pe={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Oe={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[l,[a,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[l,[a,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[a,l],[/opios[\/ ]+([\w\.]+)/i],[l,[a,W+" Mini"]],[/\bopr\/([\w\.]+)/i],[l,[a,W]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[a,l],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[l,[a,"UC"+A]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[l,[a,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[l,[a,"WeChat"]],[/konqueror\/([\w\.]+)/i],[l,[a,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[l,[a,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[l,[a,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[a,/(.+)/,"$1 Secure "+A],l],[/\bfocus\/([\w\.]+)/i],[l,[a,B+" Focus"]],[/\bopt\/([\w\.]+)/i],[l,[a,W+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[l,[a,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[l,[a,"Dolphin"]],[/coast\/([\w\.]+)/i],[l,[a,W+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[l,[a,"MIUI "+A]],[/fxios\/([-\w\.]+)/i],[l,[a,B]],[/\bqihu|(qi?ho?o?|360)browser/i],[[a,"360 "+A]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[a,/(.+)/,"$1 "+A],l],[/(comodo_dragon)\/([\w\.]+)/i],[[a,/_/g," "],l],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[a,l],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[a],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[a,xe],l],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[a,l],[/\bgsa\/([\w\.]+) .*safari\//i],[l,[a,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[l,[a,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[l,[a,j+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[a,j+" WebView"],l],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[l,[a,"Android "+A]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[a,l],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[l,[a,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[l,a],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[a,[l,pe,Be]],[/(webkit|khtml)\/([\w\.]+)/i],[a,l],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[a,"Netscape"],l],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[l,[a,B+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[a,l],[/(cobalt)\/([\w\.]+)/i],[a,[l,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[S,"amd64"]],[/(ia32(?=;))/i],[[S,$]],[/((?:i[346]|x)86)[;\)]/i],[[S,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[S,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[S,"armhf"]],[/windows (ce|mobile); ppc;/i],[[S,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[S,/ower/,t,$]],[/(sun4\w)[;\)]/i],[[S,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[S,$]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[o,[s,ae],[r,u]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[o,[s,ae],[r,g]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[o,[s,N],[r,g]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[o,[s,N],[r,u]],[/(macintosh);/i],[o,[s,N]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[o,[s,Ie],[r,g]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[o,[s,De],[r,u]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[o,[s,De],[r,g]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[o,/_/g," "],[s,le],[r,g]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[o,/_/g," "],[s,le],[r,u]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[o,[s,"OPPO"],[r,g]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[o,[s,"Vivo"],[r,g]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[o,[s,"Realme"],[r,g]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[o,[s,ke],[r,g]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[o,[s,ke],[r,u]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[o,[s,oe],[r,u]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[o,[s,oe],[r,g]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[o,[s,"Lenovo"],[r,u]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[o,/_/g," "],[s,"Nokia"],[r,g]],[/(pixel c)\b/i],[o,[s,H],[r,u]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[o,[s,H],[r,g]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[o,[s,G],[r,g]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[o,"Xperia Tablet"],[s,G],[r,u]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[o,[s,"OnePlus"],[r,g]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[o,[s,q],[r,u]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[o,/(.+)/g,"Fire Phone $1"],[s,q],[r,g]],[/(playbook);[-\w\),; ]+(rim)/i],[o,s,[r,u]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[o,[s,Ee],[r,g]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[o,[s,ye],[r,u]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[o,[s,ye],[r,g]],[/(nexus 9)/i],[o,[s,"HTC"],[r,u]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[s,[o,/_/g," "],[r,g]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[o,[s,"Acer"],[r,u]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[o,[s,"Meizu"],[r,g]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[s,o,[r,g]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[s,o,[r,u]],[/(surface duo)/i],[o,[s,se],[r,u]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[o,[s,"Fairphone"],[r,g]],[/(u304aa)/i],[o,[s,"AT&T"],[r,g]],[/\bsie-(\w*)/i],[o,[s,"Siemens"],[r,g]],[/\b(rct\w+) b/i],[o,[s,"RCA"],[r,u]],[/\b(venue[\d ]{2,7}) b/i],[o,[s,"Dell"],[r,u]],[/\b(q(?:mv|ta)\w+) b/i],[o,[s,"Verizon"],[r,u]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[o,[s,"Barnes & Noble"],[r,u]],[/\b(tm\d{3}\w+) b/i],[o,[s,"NuVision"],[r,u]],[/\b(k88) b/i],[o,[s,"ZTE"],[r,u]],[/\b(nx\d{3}j) b/i],[o,[s,"ZTE"],[r,g]],[/\b(gen\d{3}) b.+49h/i],[o,[s,"Swiss"],[r,g]],[/\b(zur\d{3}) b/i],[o,[s,"Swiss"],[r,u]],[/\b((zeki)?tb.*\b) b/i],[o,[s,"Zeki"],[r,u]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[s,"Dragon Touch"],o,[r,u]],[/\b(ns-?\w{0,9}) b/i],[o,[s,"Insignia"],[r,u]],[/\b((nxa|next)-?\w{0,9}) b/i],[o,[s,"NextBook"],[r,u]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[s,"Voice"],o,[r,g]],[/\b(lvtel\-)?(v1[12]) b/i],[[s,"LvTel"],o,[r,g]],[/\b(ph-1) /i],[o,[s,"Essential"],[r,g]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[o,[s,"Envizen"],[r,u]],[/\b(trio[-\w\. ]+) b/i],[o,[s,"MachSpeed"],[r,u]],[/\btu_(1491) b/i],[o,[s,"Rotor"],[r,u]],[/(shield[\w ]+) b/i],[o,[s,"Nvidia"],[r,u]],[/(sprint) (\w+)/i],[s,o,[r,g]],[/(kin\.[onetw]{3})/i],[[o,/\./g," "],[s,se],[r,g]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[o,[s,de],[r,u]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[o,[s,de],[r,g]],[/smart-tv.+(samsung)/i],[s,[r,I]],[/hbbtv.+maple;(\d+)/i],[[o,/^/,"SmartTV"],[s,ae],[r,I]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[s,oe],[r,I]],[/(apple) ?tv/i],[s,[o,N+" TV"],[r,I]],[/crkey/i],[[o,j+"cast"],[s,H],[r,I]],[/droid.+aft(\w+)( bui|\))/i],[o,[s,q],[r,I]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[o,[s,Ie],[r,I]],[/(bravia[\w ]+)( bui|\))/i],[o,[s,G],[r,I]],[/(mitv-\w{5}) bui/i],[o,[s,le],[r,I]],[/Hbbtv.*(technisat) (.*);/i],[s,o,[r,I]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[s,ce],[o,ce],[r,I]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[r,I]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[s,o,[r,U]],[/droid.+; (shield) bui/i],[o,[s,"Nvidia"],[r,U]],[/(playstation [345portablevi]+)/i],[o,[s,G],[r,U]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[o,[s,se],[r,U]],[/((pebble))app/i],[s,o,[r,C]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[o,[s,N],[r,C]],[/droid.+; (glass) \d/i],[o,[s,H],[r,C]],[/droid.+; (wt63?0{2,3})\)/i],[o,[s,de],[r,C]],[/(quest( 2| pro)?)/i],[o,[s,xe],[r,C]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[s,[r,re]],[/(aeobc)\b/i],[o,[s,q],[r,re]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[o,[r,g]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[o,[r,u]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[r,u]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[r,g]],[/(android[-\w\. ]{0,9});.+buil/i],[o,[s,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[l,[a,Ve+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[l,[a,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[a,l],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[l,a]],os:[[/microsoft (windows) (vista|xp)/i],[a,l],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[a,[l,pe,Pe]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[a,"Windows"],[l,pe,Pe]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[l,/_/g,"."],[a,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[a,Se],[l,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[l,a],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[a,l],[/\(bb(10);/i],[l,[a,Ee]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[l,[a,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[l,[a,B+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[l,[a,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[l,[a,"watchOS"]],[/crkey\/([\d\.]+)/i],[l,[a,j+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[a,Me],l],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[a,l],[/(sunos) ?([\w\.\d]*)/i],[[a,"Solaris"],l],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[a,l]]},x=function(w,y){if(typeof w===d&&(y=w,w=e),!(this instanceof x))return new x(w,y).getResult();var h=typeof n!==v&&n.navigator?n.navigator:e,E=w||(h&&h.userAgent?h.userAgent:t),O=h&&h.userAgentData?h.userAgentData:e,T=y?qe(Oe,y):Oe,f=h&&h.userAgent==E;return this.getBrowser=function(){var m={};return m[a]=e,m[l]=e,F.call(m,E,T.browser),m[M]=je(m[l]),f&&h&&h.brave&&typeof h.brave.isBrave==b&&(m[a]="Brave"),m},this.getCPU=function(){var m={};return m[S]=e,F.call(m,E,T.cpu),m},this.getDevice=function(){var m={};return m[s]=e,m[o]=e,m[r]=e,F.call(m,E,T.device),f&&!m[r]&&O&&O.mobile&&(m[r]=g),f&&m[o]=="Macintosh"&&h&&typeof h.standalone!==v&&h.maxTouchPoints&&h.maxTouchPoints>2&&(m[o]="iPad",m[r]=u),m},this.getEngine=function(){var m={};return m[a]=e,m[l]=e,F.call(m,E,T.engine),m},this.getOS=function(){var m={};return m[a]=e,m[l]=e,F.call(m,E,T.os),f&&!m[a]&&O&&O.platform!="Unknown"&&(m[a]=O.platform.replace(/chrome os/i,Me).replace(/macos/i,Se)),m},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return E},this.setUA=function(m){return E=typeof m===p&&m.length>ne?ce(m,ne):m,this},this.setUA(E),this};x.VERSION=i,x.BROWSER=J([a,l,M]),x.CPU=J([S]),x.DEVICE=J([o,s,r,U,g,I,u,C,re]),x.ENGINE=x.OS=J([a,l]),typeof V!==v?(typeof Z!==v&&Z.exports&&(V=Z.exports=x),V.UAParser=x):typeof define===b&&define.amd?define(function(){return x}):typeof n!==v&&(n.UAParser=x);var z=typeof n!==v&&(n.jQuery||n.Zepto);if(z&&!z.ua){var Y=new x;z.ua=Y.getResult(),z.ua.get=function(){return Y.getUA()},z.ua.set=function(w){Y.setUA(w);var y=Y.getResult();for(var h in y)z.ua[h]=y[h]}}})(typeof window=="object"?window:V)});var k=class n{constructor(e,i=!1){this.prefix=e;this.debugEnabled=i}static debugEnabled=!0;debug(e,i=void 0){n.debugEnabled&&this.debugEnabled&&console.debug(`[COOLS][${this.prefix}] ${e}`,i)}info(e,i=void 0){console.log(`[COOLS][${this.prefix}] ${e}`,i)}warn(e,i=void 0){console.warn(`[COOLS][${this.prefix}] ${e}`,i)}error(e,i=void 0){console.error(`[COOLS][${this.prefix}] ${e}`,i)}};function he(n,e){let i={};for(let t of n)e(i,t);return i}function L(){return Qe()}function Qe(){let n=ei(Date.now()),e=new Uint8Array(16);crypto.getRandomValues(e);for(let i=0;i<6;i++)e[8+i]=n[2+i];return e[6]=e[6]&15|64,e[8]=e[8]&63|128,ii(e)}function ei(n){let e=new Uint8Array(8);for(let i=0;i<8;i++)e.set([n/256**i],7-i);return e}var D=[];function Ce(){for(let n=0;n<256;++n)D.push((n+256).toString(16).slice(1))}Ce();function ii(n,e=0){return(D?.[0]===void 0||!D?.length)&&Ce(),(D[n[e+0]]+D[n[e+1]]+D[n[e+2]]+D[n[e+3]]+"-"+D[n[e+4]]+D[n[e+5]]+"-"+D[n[e+6]]+D[n[e+7]]+"-"+D[n[e+8]]+D[n[e+9]]+"-"+D[n[e+10]]+D[n[e+11]]+D[n[e+12]]+D[n[e+13]]+D[n[e+14]]+D[n[e+15]]).toLowerCase()}var ti=["publisherID","sessionID","creativeID","widgetID","variation","size","sizeMode","device","pageURL","deliveryMode","placement","debug","geoLocationLat","geoLocationLong"],K=class{log=new k("Analytics");host;state;constructor(e,i,t=!1){this.host=e,this.state={publisherID:i,sessionID:L(),debug:t}}get sessionID(){return this.state.sessionID}get publisherID(){return this.state.publisherID}setStateFields(e){Object.assign(this.state,e)}trackInit(e){return this.trackEventCloning(e)}trackRequestFromReq(e,i){return this.trackEventCloning({type:"request",creativeID:i?.params[e]?.creativeId,widgetID:i?.params[e]?.objectId,requestedSize:i?.params[e]?.form,requestedType:i?.params[e]?.type,deliveryMode:i?.params[e]?.deliveryMode,geoLocationLat:i?.params[e]?.geoLocation?.lat,geoLocationLong:i?.params[e]?.geoLocation?.long})}presetImpressionID(e){this.state.impressionEventID=e}trackEventCloning(e){e.type=="impression"&&this.state.impressionEventID&&(e.id=this.state.impressionEventID);let i=this.trackEvent(e);return this.clone(e,i)}trackEmittedWidgetEvent(e){let i=structuredClone(e);for(let t of Object.keys(this.state))this.state[t]&&delete i[t];return this.trackEvent(i)}trackEvent(e){let i={...this.state,...e},t=be({id:L(),...i,type:i.type,clientSessionID:i.sessionID,publisherID:i.publisherID,initEventID:i.initEventID,requestEventID:i.requestEventID,device:i.device,path:i.pageURL,form:i.requestedSize,requestedType:i.requestedType,requestSize:i.requestedSize,deliveryMethod:i.deliveryMode,placementName:i.placement?.name,placementPositionPx:i.placement?.positionPixels,placementPositionVp:i.placement?.positionPercents,placementPosition:i.placement?.positionScrolls,impressionEventID:i.impressionEventID,creativeID:i.creativeID,objectId:i.widgetID?parseInt(i.widgetID):0,widgetId:i.widgetID?parseInt(i.widgetID):0,widgetVariation:i.variation,size:i.size,displayMode:i.sizeMode,geoLocationLat:i.geoLocationLat,geoLocationLong:i.geoLocationLong,durationMS:i.durationMS,debug:i.debug?"enabled":"",dateTime:new Date().toISOString()});return ni(t,"sessionID","pageURL","requestedSize","deliveryMode","placement","sizeMode","variation"),this.sendEvent(t),t.id}clone(e,i){let t=this.extractDimensionFields(e),c=structuredClone(be({...this.state,...t}));return["init","request","delivery","impression"].includes(e.type)&&(c[`${e.type}EventID`]=i),Object.assign(Object.create(this.constructor.prototype),this,{state:c})}extractDimensionFields(e){return ri(e,...ti)}sendEvent(e){if(this.state.debug||e.debug){this.log.info("Sending events disabled in debug. Logging instead.",e);return}try{navigator.sendBeacon(`${this.host}/widget-event`,JSON.stringify(e))}catch(i){this.log.error("Failed to send batch",i)}}};function be(n){return Object.fromEntries(Object.entries(n).filter(([e,i])=>!!i))}function ri(n,...e){return be(Object.fromEntries(Object.entries(n).filter(([i,t])=>e.includes(i))))}function ni(n,...e){for(let i of e)delete n[i]}var ue=new k("MutationObserver",!0);function Ae(n){if(!("MutationObserver"in window)){ue.warn("No MutationObserver support"),setInterval(n,5e3);return}let e=document.querySelector("body");if(!e){ue.error("No body in document");return}new MutationObserver(t=>{t.forEach(c=>{c.addedNodes.forEach(b=>{(b.nodeName=="INS"||b instanceof HTMLElement&&b.querySelector("ins"))&&(ue.debug("Detected mutation"),n())})})}).observe(e,{subtree:!0,childList:!0})}var _e=Xe(ze(),1);function R(){let e=new _e.default().getDevice();return e.type?e.type==="mobile"?"mobile":e.type==="tablet"?"tablet":"desktop":"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?"mobile":"desktop"}var ge=new k("SizeObserver");function Ue(n,e){console.log("resize observer"),"ResizeObserver"in window?new ResizeObserver(()=>{ge.debug("Resize event through observer"),e()}).observe(n):(ge.warn("Browser doesn't support ResizeObserver"),window.addEventListener("resize",i=>{ge.debug("Resize pseudo event"),e()}))}var _=class n{constructor(e=.5,i=[0,.25,.5,.75,1]){this.atLeastVisible=e;this.thresholds=i;n.isSupported?this.observer=new IntersectionObserver(this.intersectionObserverCallback.bind(this),{threshold:i}):this.log.warn("IntersectionObserver is not supported")}static shared=new n;static get isSupported(){return"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry?.prototype}static get isWithinIFrame(){return window.self!==window.parent}log=new k("VisibilityObserver");observer;listeners={};intersectionObserverCallback(e){e.forEach(i=>{let t=this.listeners[i.target.id];if(!t){this.log.warn(`No listener found for ${i.target.id}`);return}t.update(i)})}observe(e,i){if(!e.id)throw"No ID in elem to listen to";if(this.listeners[e.id])throw"Already listening to the same ID";if(!n.isSupported)return n.isWithinIFrame?new fe:new ve(e,2e3,i);let t=new we(this,this.atLeastVisible,e,i);return this.listeners[e.id]=t,this.observer?.observe(e),t}unobserve(e){delete this.listeners[e.id],this.observer?.unobserve(e)}},we=class{constructor(e,i,t,c){this.observer=e;this.minRatio=i;this.elem=t;this.callback=c}log=new k("IntersectionObserverTracker");lastRatio=0;get isVisible(){return this.lastRatio>=this.minRatio&&!document.hidden}update(e){let i=this.isVisible;this.lastRatio=e.intersectionRatio;let t=this.isVisible;this.log.debug(`${this.elem.id} Update called with ${e.intersectionRatio} ratio (${t})`),i!=t&&(this.log.debug(`${this.elem.id} changed visibility to ${t}`),this.callback?.(t))}stop(){this.observer.unobserve(this.elem)}},ve=class{constructor(e,i,t){this.elem=e;this.callback=t;i&&(this.intervalID=setInterval(this.update.bind(this),i))}log=new k("DOMVisibilityTracker");intervalID;lastVisible=!1;get isVisible(){let e=this.elem.getBoundingClientRect();return!document.hidden&&e.top>=0&&e.left>=0&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&e.right<=(window.innerWidth||document.documentElement.clientWidth)}update(){this.log.debug(`${this.elem.id} Update called`);let e=this.isVisible;e!=this.lastVisible&&(this.log.debug(`${this.elem.id} changed visibility to ${e}`),this.lastVisible=e,this.callback?.(e))}stop(){this.intervalID!==void 0&&(clearInterval(this.intervalID),this.intervalID=void 0)}},fe=class{isVisible=!1;stop(){}};var X=class{id;variation;forms;html;isAdaptive;constructor(e){this.id=e.id,this.variation=e.variation,this.forms=e.forms.map(i=>{let[t,c]=i.split("-"),[b,v]=c.split("x");return{device:t,width:+b,height:+v}}),this.html=e.html,this.isAdaptive=e.isAdaptive}};var Q=class{id;log;widget;iframe;visibility;startVisibility;impID;seen=!1;sizeMode;analyticsOrig;analytics;placement;constructor(e,i,t){this.id=`${i.id}-frame`,this.analyticsOrig=e,this.analytics=e,this.placement=i,this.log=new k(this.id),this.widget=new X(t.widget),this.sizeMode=this.placement.sizeMode||"fixed"}attach(){if(this.iframe){this.log.error("Tried to inject already injected widget");return}this.iframe=this.createIFrame(),this.iframe.classList.add("cools-frame"),this.iframe.addEventListener("load",this.onLoad.bind(this),{once:!0}),this.placement.elem.insertAdjacentElement("afterend",this.iframe),this.placement.state="attached"}onLoad(){document.addEventListener("visibilitychange",this.update.bind(this)),this.visibility=_.shared.observe(this.iframe,this.update.bind(this)),Ue(this.iframe,this.update.bind(this)),this.update(),this.log.debug("Injected")}update(){if(!!!this.iframe.dataset.form){let i=this.calculateForm();if(!i){this.log.warn("No matching forms in the current widget"),this.resetFrameContentEmpty();return}let t=`${i.device}-${i.width}x${i.height}`;this.impID=L(),this.analytics.presetImpressionID(this.impID),this.seen=!1,this.resetFrameContent(i,this.impID),this.iframe.dataset.form=t,this.analytics=this.analyticsOrig.trackEventCloning({type:"delivery",widgetID:this.widget.id.toString(),variation:this.widget.variation,size:`${i.width}x${i.height}`,sizeMode:this.sizeMode,placement:this.placementPosition()}),this.updateFrameSizeStyle(i)}if(this.visibility.isVisible&&this.impID&&!this.seen&&(this.log.debug(`Tracking impression for ${this.widget.id}`),this.analytics=this.analytics.trackEventCloning({type:"impression"}),this.seen=!0),this.visibility.isVisible&&!this.startVisibility&&(this.startVisibility=new Date),!this.visibility.isVisible&&this.startVisibility){let t=+new Date-+this.startVisibility;this.impID&&(this.startVisibility=void 0,this.analytics.trackEvent({type:"impression_show",durationMS:t.toString()}))}}createIFrame(){let e=window.document.createElement("IFRAME");return e.id=`${this.placement.id}-frame`,e.scrolling="no",e.frameBorder="0",e.allow="autoplay",e.style.border="0",e.style.overflow="hidden",e.style.display="block",e.style.width="100%",e.style.height="0px",e.style.marginLeft="auto",e.style.marginRight="auto",e}resetFrameContentEmpty(){this.iframe.srcdoc="",this.iframe.style.height="0px",this.iframe.style.width="100%"}resetFrameContent(e,i){let t=this.widget.html,c='navigator.sendBeacon("".concat(analyticsHost, "/widget-event"), body);',b="navigator.sendBeacon(`${analyticsHost}/widget-event`, body)",d=`event-${(Math.random()*1e3).toString(16).toLowerCase()}`,p=`window.parent.postMessage({key:'${d}', data})`;t=t.replace(c,p),t=t.replace(b,p),t=t.replace("INJ_DEVICE",e.device).replace("INJ_FORM",`${e.width}x${e.height}`).replace(/INJ_EVENT_ID/g,i).replace(/SESSION_EVENT_ID/g,this.analytics.sessionID).replace(/PUBLISHER_ID/g,this.analytics.publisherID).replace(/ANALYTICS_HOST/g,this.analytics.host).replace(/INJ_CLICK_URL/g,this.placement.clickUrl??"").replace(/INJ_CACHEBUSTER/g,this.placement.cachebuster??"").replace(/INJ_DEBUG/g,(this.placement.debug=="enabled","")),window.addEventListener("message",M=>{M.source==this.iframe.contentWindow&&M.data?.key==d&&this.analytics.trackEmittedWidgetEvent(M.data.data)}),this.iframe.srcdoc=` <!DOCTYPE html> <html> <head><base target="_top"><meta charset="UTF-8"></head> <body border="0" margin="0" style="margin: 0;padding: 0;"> ${t} <body> </html> `}placementPosition(){let e=Math.round(window.scrollY+this.iframe.getBoundingClientRect().top);return{name:this.placement.placement??void 0,positionPixels:e,positionScrolls:Math.round(100*e/window.innerHeight)/100,positionPercents:Math.round(100*e/document.body.scrollHeight)/100}}calculateForm(){let e=this.placement.device??R(),i=this.placement.elem.parentElement?.offsetWidth||this.iframe.offsetWidth||300;return this.log.debug(`Calculating form for width ${i}`),this.placement.form?this.findMatchingForm(this.widget.forms,this.placement.form,e):this.findBestForm(this.widget.forms,e,i)}updateFrameSizeStyle(e){this.widget.id==5450&&["c","d"].includes(this.widget.variation)&&(this.sizeMode="full");let i=this.sizeMode,t=this.iframe.style,c=this.iframe.offsetWidth,b=this.widget.isAdaptive;if(i=="fixed")t.width=`${e.width}px`,t.height=`${e.height}px`;else if(i=="full"&&b)t.minWidth=`${e.width}px`,t.minHeight=`${e.height}px`,t.width="100%",t.height="100%";else if(i=="aspectRatio")t.width="100%",t.height=`${c*e.height/e.width}px`;else if(i=="skin")t.width="100vw",t.height=`${e.height}px`,t.zIndex="0",t.position="fixed",t.top="0",t.left="0";else if(i=="fullWidth"&&b)if(t.width="100%",!1&&c>=e.width){let d=e.height*(c/e.width);e.width==300&&(d=d>400?400:d),t.height=`${d}px`}else t.height=`${e.height}px`;else t.width=`${e.width}px`,t.height=`${e.height}px`}findMatchingForm(e,i,t){let[c,b]=i.split("x"),[v,d]=[parseInt(c),parseInt(b)];return e.find(p=>p.width==v&&p.height==d&&this.deviceMatch(t,p.device))??e.find(p=>p.width==v&&p.height==d)}findBestForm(e,i,t){let c=e.filter(b=>this.deviceMatch(i,b.device));if(c.length!=0)return c.sort((b,v)=>v.width-b.width),c.find(b=>b.width<t+10)}deviceMatch(e,i){return i===e?!0:e==="tablet"&&i==="mobile"}};function ee(n){let e=n.match(/^(-?\d+(\.\d+)?)[^\d]*(-?\d+(\.\d+)?)$/);if(!(!e||!e[1]||!e[3]))return{lat:+e[1],long:+e[3]}}async function Ne(n,e,i){let t=i.creative;n.presetImpressionID(L());let c=oi(n),b=await si(i,e,c);c({type:"delivery",creativeID:t.id,variation:t.variation,size:t.size,sizeMode:"fixed",placement:ai(e,b)});let v=!1;_.shared.observe(b,d=>{d&&!v&&(c({type:"impression"}),v=!0)})}function oi(n){return e=>{n=n.trackEventCloning(e)}}async function si(n,e,i){let t=n.creative,b=(await import("data:text/javascript;base64,"+window.btoa(n.engine))).default,v=document.createElement("div");return v.id=t.id,e.elem.insertAdjacentElement("afterend",v),b.renderCreative(v,{id:t.instanceID,creativeID:t.id,variation:t.variation,platform:t.platform,size:t.size,root:t.root},i,{clickTag:e.clickUrl,clickTag2:e.clickUrl2,clickUTM:e.clickUtm,geoLocation:e.geoLocation?ee(e.geoLocation):void 0,device:R()}),v}function ai(n,e){let i=Math.round(window.scrollY+e.getBoundingClientRect().top);return{name:n.placement??void 0,positionPixels:i,positionScrolls:Math.round(100*i/window.innerHeight)/100,positionPercents:Math.round(100*i/document.body.scrollHeight)/100}}var ie=class{constructor(e,i,t){this.analytics=e;this.host=i;this.publisherID=t;this.analytics=this.analytics.trackInit({type:"init",clientID:"",publisherID:this.publisherID,device:R(),pageURL:this.getCurrentPath()})}log=new k("Delivery",!0);async deliver(){this.log.info("Deliver run"),this.publisherID||this.log.warn("No publisher provided");let e=this.find().map(d=>(d.id||(d.id=Math.random().toString(36).substr(2,5),d.state="new"),d));if(e.find(d=>!!d.gdpr)?.gdpr=="1"){let d=e.find(M=>!!M.gdprConsent)?.gdprConsent;if(!d){this.log.error("GDPR requested but no consent string");return}let p=await this.checkConsent(d);if(p!="OK"){this.log.error(`GDPR consent check fail: ${p}`);return}}let t=e.filter(d=>["new","error","detached"].includes(d.state));for(let d of t)d.state="loading";if(e.length==0){this.log.info("Nothing to inject");return}let c={publisher:this.publisherID,path:this.getCurrentPath(),device:R(),params:he(t,(d,p)=>{d[p.id]={form:p.form,gender:p.gender,type:p.type,section:p.section,objectId:p.objectId,creativeId:p.creativeId,debug:p.debug,variation:p.variation,geoLocation:p.geoLocation?ee(p.geoLocation):void 0,device:p.device,detectedWidth:this.getDetectedWidth(p),deliveryMode:p.deliveryMode,demoEnv:p.demoEnv==="true"}})},b=he(t,(d,p)=>{d[p.id]=this.analytics.trackRequestFromReq(p.id,c)});this.log.info("Requesting",Object.keys(c.params));let v=await this.request(c).catch(d=>{throw t.forEach(p=>p.state="error"),d});this.log.info("Got response for",Object.keys(v.widgets));for(let d of t)try{let p=v.widgets[d.id];if(!p){if(this.log.warn("No del selected for the placement"),d.passback){let M=(0,eval)(d.passback);typeof M=="function"&&M(d.elem),this.log.info("Passback function called"),d.state="passback"}else d.state="none";continue}if("creative"in p)await Ne(b[d.id],d,p);else{if(!p.widget.html)throw"empty html";new Q(b[d.id],d,p).attach()}d.state="attached"}catch(p){d.state="error",this.log.warn(`Error injecting ${d.id}:`,p)}}getDetectedWidth(e){return e.elem&&e.elem.parentElement?e.elem.parentElement.offsetWidth:void 0}getCurrentURL(){if(window===window.parent)return window.location.toString();try{return window.parent.location.toString()}catch{return document.referrer.toString()}}getCurrentPath(){return(this.getCurrentURL().replace(/^https?:\/\//,"").split("?")[0]??"").replace(/\/$/,"")}observe(){Ae(()=>{this.log.debug("MutationObserver triggered deliver");let e=this.deliver()})}find(){let e=window.document.querySelectorAll("ins.cools_widget");return Array.from(e).map(i=>new Proxy(i,{get(t,c){if(c=="elem")return t;let b=t.dataset[`widget${c[0]?.toUpperCase()+c.slice(1)}`];if(b&&!b.startsWith("${"))return b},set(t,c,b){if(c=="elem")throw"Can't set elem";let v=`widget${c[0]?.toUpperCase()+c.slice(1)}`;return b||delete t.dataset[v],t.dataset[v]=b,!0}}))}async request(e){let i=`${this.host}/api/deliver`;return(await fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).catch(c=>{this.log.error("Failed making the POST request, fallback to GET",c);let b=JSON.stringify(e),v=new URL(i);return v.search=new URLSearchParams({request:b}),fetch(v.toString())})).json()}async checkConsent(e){return(await(await fetch(`${this.host}/api/deliver/consent?tcf=${e}`)).json()).consent}};var $e="https://widgets.shop.moda.it",li="",Fe="cf86910f-2b67-4308-bc0e-0ab66e67a82a",te=new k("main");async function di(){if(window.coolsDeliveryScriptStatus){te.info("Delivery script is already running");return}te.info("Delivery script started"),window.coolsDeliveryScriptStatus=!0;let n=new K($e,Fe,li=="true"),e=new ie(n,$e,Fe);await e.deliver(),e.observe(),te.info("Delivery script successfully complete")}di().catch(n=>{te.error("Delivery script thrown exception",n)});