@bygd/gd-sdk-pes 1.43.21 → 1.43.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
6
6
|
* Released under the MIT License.
|
|
7
|
-
*/function j(e){return"[object Object]"===Object.prototype.toString.call(e)}function U(e){var t,n;return!1!==j(e)&&(void 0===(t=e.constructor)||!1!==j(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}var F=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0},N=String.prototype.valueOf,$=Object.prototype.toString,G=F()&&!!Symbol.toStringTag,H=function(e){return"string"==typeof e||"object"==typeof e&&(G?function(e){try{return N.call(e),!0}catch(e){return!1}}(e):"[object String]"===$.call(e))},z=Array.isArray,Z=Object.prototype.toString,V=z||function(e){return!!e&&"[object Array]"==Z.call(e)},K=function(e){if(!e)return!1;var t=q.call(e);return"[object Function]"===t||"function"==typeof e&&"[object RegExp]"!==t||"undefined"!=typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)},q=Object.prototype.toString;var W="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==W&&W,Y={searchParams:"URLSearchParams"in W,iterable:"Symbol"in W&&"iterator"in Symbol,blob:"FileReader"in W&&"Blob"in W&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in W,arrayBuffer:"ArrayBuffer"in W};if(Y.arrayBuffer)var Q=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],J=ArrayBuffer.isView||function(e){return e&&Q.indexOf(Object.prototype.toString.call(e))>-1};function X(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function ee(e){return"string"!=typeof e&&(e=String(e)),e}function te(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return Y.iterable&&(t[Symbol.iterator]=function(){return t}),t}function ne(e){this.map={},e instanceof ne?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function re(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function ie(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function ae(e){var t=new FileReader,n=ie(t);return t.readAsArrayBuffer(e),n}function oe(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function se(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:Y.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:Y.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:Y.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():Y.arrayBuffer&&Y.blob&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=oe(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):Y.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||J(e))?this._bodyArrayBuffer=oe(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):Y.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},Y.blob&&(this.blob=function(){var e=re(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=re(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(ae)}),this.text=function(){var e=re(this);if(e)return e;if(this._bodyBlob)return function(e){var t=new FileReader,n=ie(t);return t.readAsText(e),n}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},Y.formData&&(this.formData=function(){return this.text().then(de)}),this.json=function(){return this.text().then(JSON.parse)},this}ne.prototype.append=function(e,t){e=X(e),t=ee(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},ne.prototype.delete=function(e){delete this.map[X(e)]},ne.prototype.get=function(e){return e=X(e),this.has(e)?this.map[e]:null},ne.prototype.has=function(e){return this.map.hasOwnProperty(X(e))},ne.prototype.set=function(e,t){this.map[X(e)]=ee(t)},ne.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},ne.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),te(e)},ne.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),te(e)},ne.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),te(e)},Y.iterable&&(ne.prototype[Symbol.iterator]=ne.prototype.entries);var ue=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function ce(e,t){if(!(this instanceof ce))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n=(t=t||{}).body;if(e instanceof ce){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new ne(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new ne(t.headers)),this.method=function(e){var t=e.toUpperCase();return ue.indexOf(t)>-1?t:e}(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var r=/([?&])_=[^&]*/;if(r.test(this.url))this.url=this.url.replace(r,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function de(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function le(e,t){if(!(this instanceof le))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new ne(t.headers),this.url=t.url||"",this._initBody(e)}ce.prototype.clone=function(){return new ce(this,{body:this._bodyInit})},se.call(ce.prototype),se.call(le.prototype),le.prototype.clone=function(){return new le(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new ne(this.headers),url:this.url})},le.error=function(){var e=new le(null,{status:0,statusText:""});return e.type="error",e};var fe=[301,302,303,307,308];le.redirect=function(e,t){if(-1===fe.indexOf(t))throw new RangeError("Invalid status code");return new le(null,{status:t,headers:{location:e}})};var pe=W.DOMException;try{new pe}catch(e){pe=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},pe.prototype=Object.create(Error.prototype),pe.prototype.constructor=pe}function he(e,t){return new Promise((function(n,r){var i=new ce(e,t);if(i.signal&&i.signal.aborted)return r(new pe("Aborted","AbortError"));var a=new XMLHttpRequest;function o(){a.abort()}a.onload=function(){var e,t,r={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",t=new ne,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}})),t)};r.url="responseURL"in a?a.responseURL:r.headers.get("X-Request-URL");var i="response"in a?a.response:a.responseText;setTimeout((function(){n(new le(i,r))}),0)},a.onerror=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},a.ontimeout=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},a.onabort=function(){setTimeout((function(){r(new pe("Aborted","AbortError"))}),0)},a.open(i.method,function(e){try{return""===e&&W.location.href?W.location.href:e}catch(t){return e}}(i.url),!0),"include"===i.credentials?a.withCredentials=!0:"omit"===i.credentials&&(a.withCredentials=!1),"responseType"in a&&(Y.blob?a.responseType="blob":Y.arrayBuffer&&i.headers.get("Content-Type")&&-1!==i.headers.get("Content-Type").indexOf("application/octet-stream")&&(a.responseType="arraybuffer")),!t||"object"!=typeof t.headers||t.headers instanceof ne?i.headers.forEach((function(e,t){a.setRequestHeader(t,e)})):Object.getOwnPropertyNames(t.headers).forEach((function(e){a.setRequestHeader(e,ee(t.headers[e]))})),i.signal&&(i.signal.addEventListener("abort",o),a.onreadystatechange=function(){4===a.readyState&&i.signal.removeEventListener("abort",o)}),a.send(void 0===i._bodyInit?null:i._bodyInit)}))}he.polyfill=!0,W.fetch||(W.fetch=he,W.Headers=ne,W.Request=ce,W.Response=le);var me,ve,ge={exports:{}};me=ge,ve=ge.exports,function(e,t){var n="function",r="undefined",i="object",a="string",o="major",s="model",u="name",c="type",d="vendor",l="version",f="architecture",p="console",h="mobile",m="tablet",v="smarttv",g="wearable",A="embedded",b="Amazon",y="Apple",_="ASUS",w="BlackBerry",x="Browser",k="Chrome",E="Firefox",S="Google",D="Huawei",I="LG",R="Microsoft",C="Motorola",O="Opera",T="Samsung",P="Sharp",L="Sony",M="Xiaomi",B="Zebra",j="Facebook",U="Chromium OS",F="Mac OS",N=" Browser",$=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},G=function(e,t){return typeof e===a&&-1!==H(t).indexOf(H(e))},H=function(e){return e.toLowerCase()},z=function(e,t){if(typeof e===a)return e=e.replace(/^\s\s*/,""),typeof t===r?e:e.substring(0,500)},Z=function(e,r){for(var a,o,s,u,c,d,l=0;l<r.length&&!c;){var f=r[l],p=r[l+1];for(a=o=0;a<f.length&&!c&&f[a];)if(c=f[a++].exec(e))for(s=0;s<p.length;s++)d=c[++o],typeof(u=p[s])===i&&u.length>0?2===u.length?typeof u[1]==n?this[u[0]]=u[1].call(this,d):this[u[0]]=u[1]:3===u.length?typeof u[1]!==n||u[1].exec&&u[1].test?this[u[0]]=d?d.replace(u[1],u[2]):t:this[u[0]]=d?u[1].call(this,d,u[2]):t:4===u.length&&(this[u[0]]=d?u[3].call(this,d.replace(u[1],u[2])):t):this[u]=d||t;l+=2}},V=function(e,n){for(var r in n)if(typeof n[r]===i&&n[r].length>0){for(var a=0;a<n[r].length;a++)if(G(n[r][a],e))return"?"===r?t:r}else if(G(n[r],e))return"?"===r?t:r;return n.hasOwnProperty("*")?n["*"]:e},K={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"},q={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[l,[u,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[l,[u,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[u,l],[/opios[\/ ]+([\w\.]+)/i],[l,[u,O+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[l,[u,O+" GX"]],[/\bopr\/([\w\.]+)/i],[l,[u,O]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[l,[u,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[l,[u,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[u,l],[/quark(?:pc)?\/([-\w\.]+)/i],[l,[u,"Quark"]],[/\bddg\/([\w\.]+)/i],[l,[u,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[l,[u,"UC"+x]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[l,[u,"WeChat"]],[/konqueror\/([\w\.]+)/i],[l,[u,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[l,[u,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[l,[u,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[l,[u,"Smart Lenovo "+x]],[/(avast|avg)\/([\w\.]+)/i],[[u,/(.+)/,"$1 Secure "+x],l],[/\bfocus\/([\w\.]+)/i],[l,[u,E+" Focus"]],[/\bopt\/([\w\.]+)/i],[l,[u,O+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[l,[u,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[l,[u,"Dolphin"]],[/coast\/([\w\.]+)/i],[l,[u,O+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[l,[u,"MIUI"+N]],[/fxios\/([\w\.-]+)/i],[l,[u,E]],[/\bqihoobrowser\/?([\w\.]*)/i],[l,[u,"360"]],[/\b(qq)\/([\w\.]+)/i],[[u,/(.+)/,"$1Browser"],l],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[u,/(.+)/,"$1"+N],l],[/samsungbrowser\/([\w\.]+)/i],[l,[u,T+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[l,[u,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[u,"Sogou Mobile"],l],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[u,l],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[u],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[l,u],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[u,j],l],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[u,l],[/\bgsa\/([\w\.]+) .*safari\//i],[l,[u,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[l,[u,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[l,[u,k+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[u,k+" WebView"],l],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[l,[u,"Android "+x]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[u,l],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[l,[u,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[l,u],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[u,[l,V,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[u,l],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[u,"Netscape"],l],[/(wolvic|librewolf)\/([\w\.]+)/i],[u,l],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[l,[u,E+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\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|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[u,[l,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[u,[l,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[f,"amd64"]],[/(ia32(?=;))/i],[[f,H]],[/((?:i[346]|x)86)[;\)]/i],[[f,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[f,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[f,"armhf"]],[/windows (ce|mobile); ppc;/i],[[f,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[f,/ower/,"",H]],[/(sun4\w)[;\)]/i],[[f,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[f,H]]],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],[s,[d,T],[c,m]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[s,[d,T],[c,h]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[s,[d,y],[c,h]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[s,[d,y],[c,m]],[/(macintosh);/i],[s,[d,y]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[s,[d,P],[c,h]],[/(?:honor)([-\w ]+)[;\)]/i],[s,[d,"Honor"],[c,h]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[s,[d,D],[c,m]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[s,[d,D],[c,h]],[/\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,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i],[[s,/_/g," "],[d,M],[c,h]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[s,/_/g," "],[d,M],[c,m]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[s,[d,"OPPO"],[c,h]],[/\b(opd2\d{3}a?) bui/i],[s,[d,"OPPO"],[c,m]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[s,[d,"Vivo"],[c,h]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[s,[d,"Realme"],[c,h]],[/\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],[s,[d,C],[c,h]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[s,[d,C],[c,m]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[s,[d,I],[c,m]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[s,[d,I],[c,h]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[s,[d,"Lenovo"],[c,m]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[s,/_/g," "],[d,"Nokia"],[c,h]],[/(pixel c)\b/i],[s,[d,S],[c,m]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[s,[d,S],[c,h]],[/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],[s,[d,L],[c,h]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[s,"Xperia Tablet"],[d,L],[c,m]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[s,[d,"OnePlus"],[c,h]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[s,[d,b],[c,m]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[s,/(.+)/g,"Fire Phone $1"],[d,b],[c,h]],[/(playbook);[-\w\),; ]+(rim)/i],[s,d,[c,m]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[s,[d,w],[c,h]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[s,[d,_],[c,m]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[s,[d,_],[c,h]],[/(nexus 9)/i],[s,[d,"HTC"],[c,m]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[d,[s,/_/g," "],[c,h]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[s,[d,"TCL"],[c,m]],[/(itel) ((\w+))/i],[[d,H],s,[c,V,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[s,[d,"Acer"],[c,m]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[s,[d,"Meizu"],[c,h]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[s,[d,"Ulefone"],[c,h]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[s,[d,"Energizer"],[c,h]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[s,[d,"Cat"],[c,h]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[s,[d,"Smartfren"],[c,h]],[/droid.+; (a(?:015|06[35]|142p?))/i],[s,[d,"Nothing"],[c,h]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (imo) ((?!tab)[\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[d,s,[c,h]],[/(imo) (tab \w+)/i,/(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],[d,s,[c,m]],[/(surface duo)/i],[s,[d,R],[c,m]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[s,[d,"Fairphone"],[c,h]],[/(u304aa)/i],[s,[d,"AT&T"],[c,h]],[/\bsie-(\w*)/i],[s,[d,"Siemens"],[c,h]],[/\b(rct\w+) b/i],[s,[d,"RCA"],[c,m]],[/\b(venue[\d ]{2,7}) b/i],[s,[d,"Dell"],[c,m]],[/\b(q(?:mv|ta)\w+) b/i],[s,[d,"Verizon"],[c,m]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[s,[d,"Barnes & Noble"],[c,m]],[/\b(tm\d{3}\w+) b/i],[s,[d,"NuVision"],[c,m]],[/\b(k88) b/i],[s,[d,"ZTE"],[c,m]],[/\b(nx\d{3}j) b/i],[s,[d,"ZTE"],[c,h]],[/\b(gen\d{3}) b.+49h/i],[s,[d,"Swiss"],[c,h]],[/\b(zur\d{3}) b/i],[s,[d,"Swiss"],[c,m]],[/\b((zeki)?tb.*\b) b/i],[s,[d,"Zeki"],[c,m]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[d,"Dragon Touch"],s,[c,m]],[/\b(ns-?\w{0,9}) b/i],[s,[d,"Insignia"],[c,m]],[/\b((nxa|next)-?\w{0,9}) b/i],[s,[d,"NextBook"],[c,m]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[d,"Voice"],s,[c,h]],[/\b(lvtel\-)?(v1[12]) b/i],[[d,"LvTel"],s,[c,h]],[/\b(ph-1) /i],[s,[d,"Essential"],[c,h]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[s,[d,"Envizen"],[c,m]],[/\b(trio[-\w\. ]+) b/i],[s,[d,"MachSpeed"],[c,m]],[/\btu_(1491) b/i],[s,[d,"Rotor"],[c,m]],[/(shield[\w ]+) b/i],[s,[d,"Nvidia"],[c,m]],[/(sprint) (\w+)/i],[d,s,[c,h]],[/(kin\.[onetw]{3})/i],[[s,/\./g," "],[d,R],[c,h]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[s,[d,B],[c,m]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[s,[d,B],[c,h]],[/smart-tv.+(samsung)/i],[d,[c,v]],[/hbbtv.+maple;(\d+)/i],[[s,/^/,"SmartTV"],[d,T],[c,v]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[d,I],[c,v]],[/(apple) ?tv/i],[d,[s,y+" TV"],[c,v]],[/crkey/i],[[s,k+"cast"],[d,S],[c,v]],[/droid.+aft(\w+)( bui|\))/i],[s,[d,b],[c,v]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[s,[d,P],[c,v]],[/(bravia[\w ]+)( bui|\))/i],[s,[d,L],[c,v]],[/(mitv-\w{5}) bui/i],[s,[d,M],[c,v]],[/Hbbtv.*(technisat) (.*);/i],[d,s,[c,v]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[d,z],[s,z],[c,v]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[c,v]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[d,s,[c,p]],[/droid.+; (shield) bui/i],[s,[d,"Nvidia"],[c,p]],[/(playstation [345portablevi]+)/i],[s,[d,L],[c,p]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[s,[d,R],[c,p]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[s,[d,T],[c,g]],[/((pebble))app/i],[d,s,[c,g]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[s,[d,y],[c,g]],[/droid.+; (glass) \d/i],[s,[d,S],[c,g]],[/droid.+; (wt63?0{2,3})\)/i],[s,[d,B],[c,g]],[/droid.+; (glass) \d/i],[s,[d,S],[c,g]],[/(pico) (4|neo3(?: link|pro)?)/i],[d,s,[c,g]],[/; (quest( \d| pro)?)/i],[s,[d,j],[c,g]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[c,A]],[/(aeobc)\b/i],[s,[d,b],[c,A]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[s,[c,h]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[s,[c,m]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[c,m]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[c,h]],[/(android[-\w\. ]{0,9});.+buil/i],[s,[d,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[l,[u,"EdgeHTML"]],[/(arkweb)\/([\w\.]+)/i],[u,l],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[l,[u,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[u,l],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[l,u]],os:[[/microsoft (windows) (vista|xp)/i],[u,l],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[u,[l,V,K]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[l,V,K],[u,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[l,/_/g,"."],[u,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[u,F],[l,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[l,u],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish|openharmony)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[u,l],[/\(bb(10);/i],[l,[u,w]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[l,[u,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[l,[u,E+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[l,[u,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[l,[u,"watchOS"]],[/crkey\/([\d\.]+)/i],[l,[u,k+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[u,U],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],[u,l],[/(sunos) ?([\w\.\d]*)/i],[[u,"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],[u,l]]},W=function(p,v){if(typeof p===i&&(v=p,p=t),!(this instanceof W))return new W(p,v).getResult();var g=typeof e!==r&&e.navigator?e.navigator:t,A=p||(g&&g.userAgent?g.userAgent:""),b=g&&g.userAgentData?g.userAgentData:t,y=v?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(q,v):q,_=g&&g.userAgent==A;return this.getBrowser=function(){var e={};return e[u]=t,e[l]=t,Z.call(e,A,y.browser),e[o]=function(e){return typeof e===a?e.replace(/[^\d\.]/g,"").split(".")[0]:t}(e[l]),_&&g&&g.brave&&typeof g.brave.isBrave==n&&(e[u]="Brave"),e},this.getCPU=function(){var e={};return e[f]=t,Z.call(e,A,y.cpu),e},this.getDevice=function(){var e={};return e[d]=t,e[s]=t,e[c]=t,Z.call(e,A,y.device),_&&!e[c]&&b&&b.mobile&&(e[c]=h),_&&"Macintosh"==e[s]&&g&&typeof g.standalone!==r&&g.maxTouchPoints&&g.maxTouchPoints>2&&(e[s]="iPad",e[c]=m),e},this.getEngine=function(){var e={};return e[u]=t,e[l]=t,Z.call(e,A,y.engine),e},this.getOS=function(){var e={};return e[u]=t,e[l]=t,Z.call(e,A,y.os),_&&!e[u]&&b&&b.platform&&"Unknown"!=b.platform&&(e[u]=b.platform.replace(/chrome os/i,U).replace(/macos/i,F)),e},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 A},this.setUA=function(e){return A=typeof e===a&&e.length>500?z(e,500):e,this},this.setUA(A),this};W.VERSION="0.7.40",W.BROWSER=$([u,l,o]),W.CPU=$([f]),W.DEVICE=$([s,d,c,p,h,v,m,g,A]),W.ENGINE=W.OS=$([u,l]),me.exports&&(ve=me.exports=W),ve.UAParser=W;var Y=typeof e!==r&&(e.jQuery||e.Zepto);if(Y&&!Y.ua){var Q=new W;Y.ua=Q.getResult(),Y.ua.get=function(){return Q.getUA()},Y.ua.set=function(e){Q.setUA(e);var t=Q.getResult();for(var n in t)Y.ua[n]=t[n]}}}("object"==typeof window?window:i);var Ae=ge.exports;const be="3.7.5",ye=be,_e="function"==typeof atob,we="function"==typeof btoa,xe="function"==typeof Buffer,ke="function"==typeof TextDecoder?new TextDecoder:void 0,Ee="function"==typeof TextEncoder?new TextEncoder:void 0,Se=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),De=(e=>{let t={};return e.forEach(((e,n)=>t[e]=n)),t})(Se),Ie=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Re=String.fromCharCode.bind(String),Ce="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),Oe=e=>e.replace(/=/g,"").replace(/[+\/]/g,(e=>"+"==e?"-":"_")),Te=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),Pe=e=>{let t,n,r,i,a="";const o=e.length%3;for(let o=0;o<e.length;){if((n=e.charCodeAt(o++))>255||(r=e.charCodeAt(o++))>255||(i=e.charCodeAt(o++))>255)throw new TypeError("invalid character found");t=n<<16|r<<8|i,a+=Se[t>>18&63]+Se[t>>12&63]+Se[t>>6&63]+Se[63&t]}return o?a.slice(0,o-3)+"===".substring(o):a},Le=we?e=>btoa(e):xe?e=>Buffer.from(e,"binary").toString("base64"):Pe,Me=xe?e=>Buffer.from(e).toString("base64"):e=>{let t=[];for(let n=0,r=e.length;n<r;n+=4096)t.push(Re.apply(null,e.subarray(n,n+4096)));return Le(t.join(""))},Be=(e,t=!1)=>t?Oe(Me(e)):Me(e),je=e=>{if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?Re(192|t>>>6)+Re(128|63&t):Re(224|t>>>12&15)+Re(128|t>>>6&63)+Re(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return Re(240|t>>>18&7)+Re(128|t>>>12&63)+Re(128|t>>>6&63)+Re(128|63&t)},Ue=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Fe=e=>e.replace(Ue,je),Ne=xe?e=>Buffer.from(e,"utf8").toString("base64"):Ee?e=>Me(Ee.encode(e)):e=>Le(Fe(e)),$e=(e,t=!1)=>t?Oe(Ne(e)):Ne(e),Ge=e=>$e(e,!0),He=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,ze=e=>{switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return Re(55296+(t>>>10))+Re(56320+(1023&t));case 3:return Re((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return Re((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},Ze=e=>e.replace(He,ze),Ve=e=>{if(e=e.replace(/\s+/g,""),!Ie.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(3&e.length));let t,n,r,i="";for(let a=0;a<e.length;)t=De[e.charAt(a++)]<<18|De[e.charAt(a++)]<<12|(n=De[e.charAt(a++)])<<6|(r=De[e.charAt(a++)]),i+=64===n?Re(t>>16&255):64===r?Re(t>>16&255,t>>8&255):Re(t>>16&255,t>>8&255,255&t);return i},Ke=_e?e=>atob(Te(e)):xe?e=>Buffer.from(e,"base64").toString("binary"):Ve,qe=xe?e=>Ce(Buffer.from(e,"base64")):e=>Ce(Ke(e).split("").map((e=>e.charCodeAt(0)))),We=e=>qe(Qe(e)),Ye=xe?e=>Buffer.from(e,"base64").toString("utf8"):ke?e=>ke.decode(qe(e)):e=>Ze(Ke(e)),Qe=e=>Te(e.replace(/[-_]/g,(e=>"-"==e?"+":"/"))),Je=e=>Ye(Qe(e)),Xe=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),et=function(){const e=(e,t)=>Object.defineProperty(String.prototype,e,Xe(t));e("fromBase64",(function(){return Je(this)})),e("toBase64",(function(e){return $e(this,e)})),e("toBase64URI",(function(){return $e(this,!0)})),e("toBase64URL",(function(){return $e(this,!0)})),e("toUint8Array",(function(){return We(this)}))},tt=function(){const e=(e,t)=>Object.defineProperty(Uint8Array.prototype,e,Xe(t));e("toBase64",(function(e){return Be(this,e)})),e("toBase64URI",(function(){return Be(this,!0)})),e("toBase64URL",(function(){return Be(this,!0)}))},nt={version:be,VERSION:ye,atob:Ke,atobPolyfill:Ve,btoa:Le,btoaPolyfill:Pe,fromBase64:Je,toBase64:$e,encode:$e,encodeURI:Ge,encodeURL:Ge,utob:Fe,btou:Ze,decode:Je,isValid:e=>{if("string"!=typeof e)return!1;const t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},fromUint8Array:Be,toUint8Array:We,extendString:et,extendUint8Array:tt,extendBuiltins:()=>{et(),tt()}};var rt={Rewarded:"rewarded",Interstitial:"interstitial",Preroll:"interstitial",Midroll:"interstitial",Display:"display"};function it(e,t){var n;for(n in t)t.hasOwnProperty(n)&&null!==t[n]&&void 0!==t[n]&&(e[n]=t[n]);return e}function at(){var e=ut(),t=(e.gd_sdk_referrer_url?e.gd_sdk_referrer_url:window.location!==window.parent.location&&document.referrer&&""!==document.referrer?document.referrer.split("/")[2]:document.location.host).replace(/^(?:https?:\/\/)?(?:\/\/)?(?:www\.)?/i,"").split("/")[0];if(-1!==document.referrer.indexOf("gameplayer.io")){t="gamedistribution.com";var n=st("ref",document.referrer);if(n){""!==n&&"{portal%20name}"!==n&&"{spilgames}"!==n&&"{portal name}"!==n&&(t=dt(n).replace(/^(?:https?:\/\/)?(?:\/\/)?(?:www\.)?/i,"").split("/")[0])}}else-1!==document.referrer.indexOf("localhost")&&(t="gamedistribution.com");return t}function ot(){var e=ut();if(e.gd_sdk_referrer_url)return 0===pt()&&(e.gd_sdk_referrer_url=document.location.href),e.gd_sdk_referrer_url;var t=window.location!==window.parent.location&&document.referrer&&""!==document.referrer?document.referrer:document.location.href;if(-1!==document.referrer.indexOf("gameplayer.io")){t="https://gamedistribution.com";var n=st("ref",document.referrer);if(n){""!==n&&"{portal%20name}"!==n&&"{spilgames}"!==n&&"{portal name}"!==n&&(t=dt(n).replace(/^(?:https?:\/\/)?(?:\/\/)?/i,""),t="https://".concat(t))}}else-1!==document.referrer.indexOf("localhost")&&(t="https://gamedistribution.com/");return t}function st(e,t){var n=t||window.location.href,r=new RegExp("[?&]"+e+"=([^&#]*)","i").exec(n);return r?r[1]:null}function ut(){for(var e,t=/\+/g,n=/([^&=]+)=?([^&]*)/g,r=function(e){return decodeURIComponent(e.toLowerCase().replace(t," "))},i=window.location.search.substring(1),a={};e=n.exec(i);)a[r(e[1])]=r(e[2]);return a}function ct(e){return(e=e||"")!==decodeURIComponent(e)}function dt(e){for(;ct(e);)e=decodeURIComponent(e);return e}function lt(){var e=navigator.userAgent||navigator.vendor||window.opera;return/windows phone/i.test(e)?"windows":/android/i.test(e)?"android":/iPad|iPhone|iPod/.test(e)&&!window.MSStream?"ios":""}function ft(e,t,n){return new Promise((function(r,i){if(n&&n.exists&&n.exists())r(ht(null==n?void 0:n.alternates));else{var a=n&&n.alternates&&n.alternates.length>0?ht(n.alternates):void 0,o=a||document.createElement("script"),s=n&&n.error_prefix?n.error_prefix:"Failed:";if(o.onload=function(){n&&n.exists&&!n.exists()?i("".concat(s," ").concat(e)):r(o)},o.onerror=function(){i("".concat(s," ").concat(e))},!a){if(o.type="text/javascript",!0===n.defer?o.defer=!0:o.async=!0,null==n?void 0:n.attrs)for(var u in n.attrs)o.setAttribute(u,n.attrs[u]);o.src=e,o.id=t,document.head.appendChild(o)}}}))}function pt(){var e=0,t=window;try{for(;t!=t.parent;)e++,t=t.parent}catch(e){}return e}function ht(e){if(e&&e.length){var t=document.querySelectorAll("script");if(t)for(var n in t){var r=t[n];if(e.includes(r.src))return r}}}function mt(e){return!!localStorage.getItem(e)}function vt(){var e=pt();if(0===e)return location.host.replace(/^www\.(.*)$/i,"$1");if(location.ancestorOrigins&&location.ancestorOrigins.length>0)return location.ancestorOrigins[location.ancestorOrigins.length-1].replace(/^https?:\/\/(www\.)?(.*)$/i,"$2");if(1===e){var t=function(e){if(e&&""!==e)try{return new C(e)}catch(e){}}(document.referrer);if(t)return t.host.replace(/^www\.(.*)$/i,"$1")}}var gt={has:mt,getBoolean:function(e,t){if(!mt(e))return t;var n=localStorage.getItem(e);return"true"===n||!0===n||1===n||"1"===n},getNumber:function(e,t){if(!mt(e))return t;var n=localStorage.getItem(e);return Number(n)},getString:function(e,t){return mt(e)?localStorage.getItem(e).toString():t},available:function(){var e=Date.now();try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(e){return!1}}(),remove:function(e){localStorage.removeItem(e)},set:function(e,t){localStorage.setItem(e,t)}},At=Date.now(),bt={console:!1};function yt(e,t,n){try{if(gt.available&>.getBoolean("gd_debug_ex")||bt&&!0===bt.console){var r="error"===n?"background: #c4161e; color: #fff":"warning"===n?"background: #ff8c1c; color: #fff":"info"===n?"background: #ff0080; color: #fff":"background: #44a5ab; color: #fff",i=console.log("["+(Date.now()-At)/1e3+"s]%c %c %c gdsdk %c %c %c "+e+" ","background: #9854d8","background: #6c2ca7","color: #fff; background: #450f78;","background: #6c2ca7","background: #9854d8",r,void 0!==t?t:"");console.log.apply(console,i)}}catch(e){console.log(e)}}var _t=["SDK_READY","SDK_ERROR","SDK_LB_LOGIN","SDK_SHW_LB","SDK_GAME_START","SDK_GAME_PAUSE","SDK_GDPR_TRACKING","SDK_GDPR_TARGETING","SDK_GDPR_THIRD_PARTY","AD_SDK_MANAGER_READY","AD_SDK_CANCELED","AD_IS_ALREADY_RUNNING","SDK_REWARDED_WATCH_COMPLETE"],wt=["AD_ERROR","AD_BREAK_READY","AD_METADATA","ALL_ADS_COMPLETED","CLICK","COMPLETE","CONTENT_PAUSE_REQUESTED","CONTENT_RESUME_REQUESTED","DURATION_CHANGE","FIRST_QUARTILE","IMPRESSION","INTERACTION","LINEAR_CHANGED","LOADED","LOG","MIDPOINT","PAUSED","RESUMED","SKIPPABLE_STATE_CHANGED","SKIPPED","STARTED","THIRD_QUARTILE","USER_CLOSE","VOLUME_CHANGED","VOLUME_MUTED","DISPLAYAD_IMPRESSION","DISPLAYAD_ERROR"],xt={zIndex:1010},kt={zIndex:1020},Et={zIndex:1100},St=null,Dt=function(){function e(){if(O(this,e),St)return St;St=this,this.listeners={}}return L(e,[{key:"_getListenerIdx",value:function(e,t,n){var r,i=this.listeners[e],a=-1;if(!i||0===i.length)return a;for(r=0;r<i.length;r++)if(i[r].callback===t&&(!n||n===i[r].scope)){a=r;break}return a}},{key:"subscribe",value:function(e,t,n){var r;if(!e)throw new Error("Event name cannot be null or undefined.");if(!t||"function"!=typeof t)throw new Error("Listener must be of type function.");this._getListenerIdx(e,t,n)>=0?console.log(e,n):(r={callback:t,scope:n},this.listeners[e]=this.listeners[e]||[],this.listeners[e].push(r))}},{key:"unsubscribeScope",value:function(e){for(var t=Object.keys(this.listeners),n=0;n<t.length;n++){for(var r=t[n],i=this.listeners[r],a=0;a<i.length;a++)i[a].scope===e&&(i.splice(a,1),a--);0===i.length&&delete this.listeners[r]}}},{key:"broadcast",value:function(e,t){var n=this.listeners[e];e&&this.listeners[e]&&((t=t||{}).name=t.name||e,n.forEach((function(e){e.callback.call(e.scope,t,e.scope)})))}},{key:"printScope",value:function(e){for(var t=Object.keys(this.listeners),n=0;n<t.length;n++)for(var r=t[n],i=this.listeners[r],a=0;a<i.length;a++)i[a].scope===e&&console.log(r,e)}}]),e}(),It=function(){function e(t){O(this,e),this.game=t.game,this.bridge=t.bridge}return L(e,[{key:"transform",value:function(e,t){var n=B(e);return this.transformValue(n,t)}},{key:"transformValue",value:function(e,t){if(U(e)||V(e))for(var n in e)e[n]=this.transformValue(e[n],t);else if(H(e)){var r,i=/\{\{(\w+)\}\}/g,a=[];do{if(r=i.exec(e)){r[0];var o=r[1],s=this.getMacroKeyValue(o,t);void 0!==s&&a.push({key:o,value:s})}}while(r);a.length>0&&a.forEach((function(t){e=e.replace(new RegExp("{{"+t.key+"}}","g"),t.value)}))}return e}},{key:"getMacroKeyValue",value:function(e,t){switch(e){case"CACHEBUSTER":return Date.now();case"GAME_ID":return this.game.gameId;case"GAME_TITLE":return this.game.title;case"COUNTRY_CODE":return this.game.ctry;case"PAGE_URL":return this.bridge.parentURL;case"PAGE_URL_ESC":return encodeURIComponent(this.bridge.parentURL);case"PAGE_URL_ESC_ESC":return encodeURIComponent(encodeURIComponent(this.bridge.parentURL));case"DOMAIN_MATCHED":return this.bridge.domainMatched?1:0;case"DOMAIN_PARENT":return this.bridge.parentDomain;case"DOMAIN_TOP":return this.bridge.topDomain;case"DEPTH":case"GAME_DEPTH":return this.bridge.depth;default:if(t&&K(t.get))return t.get(e)}}}]),e}(),Rt=function(){function e(t){O(this,e),this._config=t||{},this._url=t.url||"https://msgrt.gamedistribution.com/collect",this._topic_counter={},this._ua=(new Ae).getResult(),this._init_layout()}return L(e,[{key:"_init_layout",value:function(){var e=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,t=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;e-=e%64,t-=t%64,this._layout={w:e,h:t}}},{key:"send",value:function(e,t){if(!this._config.isCoreSDKMode){this._size="".concat(this._layout.w," x ").concat(this._layout.h);var n=this._topic_counter[e]||0;this._topic_counter[e]=++n;var r={gmid:this._config.gameId,tdmn:this._config.topDomain,domn:this._config.domain,rfrr:this._config.referrer,lthr:this._config.hours,ctry:this._config.country,dpth:this._config.depth,vers:this._config.version,trac:this._config.tracking,whlb:this._config.whitelabel,plat:this._config.platform,tpct:n,args:t,ttle:document.title,size:this._size,brnm:this._ua.browser.name,brmj:this._ua.browser.major,osnm:this._ua.os.name,osvr:this._ua.os.version,dvmd:this._ua.device.model,byld:this._config.byloader,bylv:this._config.byloaderVersion,imgu:this._config.isMasterGameURL,iegu:this._config.isExtHostedGameURL,itgu:this._config.isTokenGameURL,cmpe:!1,host:window.location.hostname};"undefined"!=typeof idhb&&void 0!==idhb.iabCmpExists()&&(r.cmpe=idhb.iabCmpExists());try{r=encodeURIComponent(nt.encode(JSON.stringify([r]))),fetch(this._url+"?tp=com.gdsdk.".concat(e,"&ar=").concat(r,"&ts=").concat(Date.now()))}catch(e){}}}},{key:"setGameData",value:function(e){this._gameData=e,this._config.country=e.ctry}}]),e}(),Ct=null,Ot=function(){function e(t){if(O(this,e),Ct)return Ct;Ct=this,this.eventBus=new Dt,this._sdk=t}return L(e,[{key:"start",value:function(){var e="\n #gdsdk__console_container {\n display: flex;\n box-sizing: border-box;\n padding: 3px;\n background: linear-gradient(90deg,#3d1b5d,#5c3997);\n box-shadow: 0 0 8px rgba(0, 0, 0, 0.8);\n color: #fff;\n font-family: Helvetica, Arial, sans-serif;\n font-size: 8px;\n }\n #gdsdk__console_container button {\n flex: 1;\n background: #44a5ab;\n padding: 3px 10px;\n margin: 2px;\n border: 0;\n border-radius: 3px;\n color: #fff;\n outline: 0;\n cursor: pointer;\n font-size: 8px;\n box-shadow: 0 0 0 transparent;\n text-shadow: 0 0 0 transparent;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n }\n #gdsdk__console_container button:hover {\n background: #4fb3b9;\n }\n #gdsdk__console_container button:active {\n background: #62bbc0;\n }\n ",t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e)),t.appendChild(n);var r=document.body||document.getElementsByTagName("body")[0],i=document.createElement("div");i.id="gdsdk__console",i.style.position="fixed",i.style.zIndex=Et.zIndex,i.style.bottom="0",i.style.left="0",i.style.width="100%",i.innerHTML='\n <div id="gdsdk__console_container">\n <button id="gdsdk__hbgdDebug">Activate hbgd debug</button>\n <button id="gdsdk__hbgdConfig">Log idhb config</button>\n \x3c!--\n <button id="gdsdk__resumeGame">Resume</button>\n <button id="gdsdk__pauseGame">Pause</button>\n --\x3e\n <button id="gdsdk__showLeaderboard">LeaderBoard</button>\n <button id="gdsdk__showInterstitial">Interstitial</button>\n <button id="gdsdk__showRewarded">Rewarded</button>\n \x3c!--\n <button id="gdsdk__preloadRewarded">Preload rewarded</button>\n --\x3e\n <button id="gdsdk__cancel">Cancel</button>\n <button id="gdsdk__demo">Demo VAST tag</button>\n <button id="gdsdk__disableMidrollTimer">Disable delay</button>\n <button id="gdsdk__closeDebug">Close</button>\n </div>\n ',r.appendChild(i);var a=document.getElementById("gdsdk__showLeaderboard"),o=document.getElementById("gdsdk__showInterstitial"),s=document.getElementById("gdsdk__showRewarded"),u=document.getElementById("gdsdk__cancel"),c=document.getElementById("gdsdk__demo"),d=document.getElementById("gdsdk__disableMidrollTimer"),l=document.getElementById("gdsdk__hbgdDebug"),f=document.getElementById("gdsdk__hbgdConfig"),p=document.getElementById("gdsdk__closeDebug");gt.getBoolean("gd_tag")?(c.innerHTML="Revert Vast tag",c.style.background="#ff8c1c"):(c.innerHTML="Demo VAST tag",c.style.background="#44a5ab"),gt.getBoolean("gd_disable_midroll_timer")?(d.innerHTML="Revert delay",d.style.background="#ff8c1c"):(d.innerHTML="Disable delay",d.style.background="#44a5ab"),gt.getBoolean("gd_hb_debug")?(l.innerHTML="Revert HB Debug",l.style.background="#ff8c1c"):(l.innerHTML="HB Debug",l.style.background="#44a5ab"),a.addEventListener("click",(function(){window.gdsdk.showLeaderBoard().catch((function(e){}))})),o.addEventListener("click",(function(){window.gdsdk.showAd(rt.Interstitial).catch((function(e){}))})),s.addEventListener("click",(function(){window.gdsdk.showAd(rt.Rewarded).catch((function(e){}))})),u.addEventListener("click",(function(){window.gdsdk.cancelAd().then((function(e){})).catch((function(e){}))})),c.addEventListener("click",(function(){try{gt.getBoolean("gd_tag")?gt.remove("gd_tag"):gt.set("gd_tag",!0),location.reload()}catch(e){console.log(e)}})),d.addEventListener("click",(function(){try{gt.getBoolean("gd_disable_midroll_timer")?gt.remove("gd_disable_midroll_timer"):gt.set("gd_disable_midroll_timer",!0),location.reload()}catch(e){console.log(e)}})),p.addEventListener("click",(function(){try{gt.getBoolean("gd_debug_ex")?gt.remove("gd_debug_ex"):gt.set("gd_debug_ex",!0),location.reload()}catch(e){console.log(e)}})),l.addEventListener("click",(function(){try{gt.getBoolean("gd_hb_debug")?gt.remove("gd_hb_debug"):gt.set("gd_hb_debug",!0),window.idhb&&window.idhb.debug(!(!gt.available||!gt.getBoolean("gd_hb_debug"))),location.reload()}catch(e){console.log(e)}})),f.addEventListener("click",(function(){try{var e=window.idhb.getConfig();console.info(e)}catch(e){console.log(e)}}))}}]),e}(),Tt=function(e){return e&&e.Math==Math&&e},Pt=Tt("object"==typeof globalThis&&globalThis)||Tt("object"==typeof window&&window)||Tt("object"==typeof self&&self)||Tt("object"==typeof i&&i)||function(){return this}()||Function("return this")(),Lt={exports:{}},Mt=Pt,Bt=Object.defineProperty,jt=function(e,t){try{Bt(Mt,e,{value:t,configurable:!0,writable:!0})}catch(n){Mt[e]=t}return t},Ut=jt,Ft="__core-js_shared__",Nt=Pt[Ft]||Ut(Ft,{}),$t=Nt;(Lt.exports=function(e,t){return $t[e]||($t[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.30.1",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.1/LICENSE",source:"https://github.com/zloirock/core-js"});var Gt,Ht,zt=function(e){try{return!!e()}catch(e){return!0}},Zt=!zt((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),Vt=Zt,Kt=Function.prototype,qt=Kt.call,Wt=Vt&&Kt.bind.bind(qt,qt),Yt=Vt?Wt:function(e){return function(){return qt.apply(e,arguments)}},Qt=function(e){return null==e},Jt=Qt,Xt=TypeError,en=function(e){if(Jt(e))throw Xt("Can't call method on "+e);return e},tn=en,nn=Object,rn=function(e){return nn(tn(e))},an=rn,on=Yt({}.hasOwnProperty),sn=Object.hasOwn||function(e,t){return on(an(e),t)},un=Yt,cn=0,dn=Math.random(),ln=un(1..toString),fn=function(e){return"Symbol("+(void 0===e?"":e)+")_"+ln(++cn+dn,36)},pn="undefined"!=typeof navigator&&String(navigator.userAgent)||"",hn=Pt,mn=pn,vn=hn.process,gn=hn.Deno,An=vn&&vn.versions||gn&&gn.version,bn=An&&An.v8;bn&&(Ht=(Gt=bn.split("."))[0]>0&&Gt[0]<4?1:+(Gt[0]+Gt[1])),!Ht&&mn&&(!(Gt=mn.match(/Edge\/(\d+)/))||Gt[1]>=74)&&(Gt=mn.match(/Chrome\/(\d+)/))&&(Ht=+Gt[1]);var yn=Ht,_n=yn,wn=zt,xn=!!Object.getOwnPropertySymbols&&!wn((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&_n&&_n<41})),kn=xn&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,En=Pt,Sn=Lt.exports,Dn=sn,In=fn,Rn=xn,Cn=kn,On=En.Symbol,Tn=Sn("wks"),Pn=Cn?On.for||On:On&&On.withoutSetter||In,Ln=function(e){return Dn(Tn,e)||(Tn[e]=Rn&&Dn(On,e)?On[e]:Pn("Symbol."+e)),Tn[e]},Mn={};Mn[Ln("toStringTag")]="z";var Bn="[object z]"===String(Mn),jn="object"==typeof document&&document.all,Un={all:jn,IS_HTMLDDA:void 0===jn&&void 0!==jn},Fn=Un.all,Nn=Un.IS_HTMLDDA?function(e){return"function"==typeof e||e===Fn}:function(e){return"function"==typeof e},$n={},Gn=!zt((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Hn=Nn,zn=Un.all,Zn=Un.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:Hn(e)||e===zn}:function(e){return"object"==typeof e?null!==e:Hn(e)},Vn=Zn,Kn=Pt.document,qn=Vn(Kn)&&Vn(Kn.createElement),Wn=function(e){return qn?Kn.createElement(e):{}},Yn=Wn,Qn=!Gn&&!zt((function(){return 7!=Object.defineProperty(Yn("div"),"a",{get:function(){return 7}}).a})),Jn=Gn&&zt((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Xn=Zn,er=String,tr=TypeError,nr=function(e){if(Xn(e))return e;throw tr(er(e)+" is not an object")},rr=Zt,ir=Function.prototype.call,ar=rr?ir.bind(ir):function(){return ir.apply(ir,arguments)},or=Pt,sr=Nn,ur=function(e,t){return arguments.length<2?(n=or[e],sr(n)?n:void 0):or[e]&&or[e][t];var n},cr=Yt({}.isPrototypeOf),dr=ur,lr=Nn,fr=cr,pr=Object,hr=kn?function(e){return"symbol"==typeof e}:function(e){var t=dr("Symbol");return lr(t)&&fr(t.prototype,pr(e))},mr=String,vr=function(e){try{return mr(e)}catch(e){return"Object"}},gr=Nn,Ar=vr,br=TypeError,yr=function(e){if(gr(e))return e;throw br(Ar(e)+" is not a function")},_r=yr,wr=Qt,xr=function(e,t){var n=e[t];return wr(n)?void 0:_r(n)},kr=ar,Er=Nn,Sr=Zn,Dr=TypeError,Ir=ar,Rr=Zn,Cr=hr,Or=xr,Tr=function(e,t){var n,r;if("string"===t&&Er(n=e.toString)&&!Sr(r=kr(n,e)))return r;if(Er(n=e.valueOf)&&!Sr(r=kr(n,e)))return r;if("string"!==t&&Er(n=e.toString)&&!Sr(r=kr(n,e)))return r;throw Dr("Can't convert object to primitive value")},Pr=TypeError,Lr=Ln("toPrimitive"),Mr=function(e,t){if(!Rr(e)||Cr(e))return e;var n,r=Or(e,Lr);if(r){if(void 0===t&&(t="default"),n=Ir(r,e,t),!Rr(n)||Cr(n))return n;throw Pr("Can't convert object to primitive value")}return void 0===t&&(t="number"),Tr(e,t)},Br=hr,jr=function(e){var t=Mr(e,"string");return Br(t)?t:t+""},Ur=Gn,Fr=Qn,Nr=Jn,$r=nr,Gr=jr,Hr=TypeError,zr=Object.defineProperty,Zr=Object.getOwnPropertyDescriptor,Vr="enumerable",Kr="configurable",qr="writable";$n.f=Ur?Nr?function(e,t,n){if($r(e),t=Gr(t),$r(n),"function"==typeof e&&"prototype"===t&&"value"in n&&qr in n&&!n[qr]){var r=Zr(e,t);r&&r[qr]&&(e[t]=n.value,n={configurable:Kr in n?n[Kr]:r[Kr],enumerable:Vr in n?n[Vr]:r[Vr],writable:!1})}return zr(e,t,n)}:zr:function(e,t,n){if($r(e),t=Gr(t),$r(n),Fr)try{return zr(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Hr("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var Wr={exports:{}},Yr=Gn,Qr=sn,Jr=Function.prototype,Xr=Yr&&Object.getOwnPropertyDescriptor,ei=Qr(Jr,"name"),ti={EXISTS:ei,PROPER:ei&&"something"===function(){}.name,CONFIGURABLE:ei&&(!Yr||Yr&&Xr(Jr,"name").configurable)},ni=Nn,ri=Nt,ii=Yt(Function.toString);ni(ri.inspectSource)||(ri.inspectSource=function(e){return ii(e)});var ai,oi,si,ui=ri.inspectSource,ci=Nn,di=Pt.WeakMap,li=ci(di)&&/native code/.test(String(di)),fi=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},pi=$n,hi=fi,mi=Gn?function(e,t,n){return pi.f(e,t,hi(1,n))}:function(e,t,n){return e[t]=n,e},vi=Lt.exports,gi=fn,Ai=vi("keys"),bi=function(e){return Ai[e]||(Ai[e]=gi(e))},yi={},_i=li,wi=Pt,xi=Zn,ki=mi,Ei=sn,Si=Nt,Di=bi,Ii=yi,Ri="Object already initialized",Ci=wi.TypeError,Oi=wi.WeakMap;if(_i||Si.state){var Ti=Si.state||(Si.state=new Oi);Ti.get=Ti.get,Ti.has=Ti.has,Ti.set=Ti.set,ai=function(e,t){if(Ti.has(e))throw Ci(Ri);return t.facade=e,Ti.set(e,t),t},oi=function(e){return Ti.get(e)||{}},si=function(e){return Ti.has(e)}}else{var Pi=Di("state");Ii[Pi]=!0,ai=function(e,t){if(Ei(e,Pi))throw Ci(Ri);return t.facade=e,ki(e,Pi,t),t},oi=function(e){return Ei(e,Pi)?e[Pi]:{}},si=function(e){return Ei(e,Pi)}}var Li={set:ai,get:oi,has:si,enforce:function(e){return si(e)?oi(e):ai(e,{})},getterFor:function(e){return function(t){var n;if(!xi(t)||(n=oi(t)).type!==e)throw Ci("Incompatible receiver, "+e+" required");return n}}},Mi=Yt,Bi=zt,ji=Nn,Ui=sn,Fi=Gn,Ni=ti.CONFIGURABLE,$i=ui,Gi=Li.enforce,Hi=Li.get,zi=String,Zi=Object.defineProperty,Vi=Mi("".slice),Ki=Mi("".replace),qi=Mi([].join),Wi=Fi&&!Bi((function(){return 8!==Zi((function(){}),"length",{value:8}).length})),Yi=String(String).split("String"),Qi=Wr.exports=function(e,t,n){"Symbol("===Vi(zi(t),0,7)&&(t="["+Ki(zi(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!Ui(e,"name")||Ni&&e.name!==t)&&(Fi?Zi(e,"name",{value:t,configurable:!0}):e.name=t),Wi&&n&&Ui(n,"arity")&&e.length!==n.arity&&Zi(e,"length",{value:n.arity});try{n&&Ui(n,"constructor")&&n.constructor?Fi&&Zi(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=Gi(e);return Ui(r,"source")||(r.source=qi(Yi,"string"==typeof t?t:"")),e};Function.prototype.toString=Qi((function(){return ji(this)&&Hi(this).source||$i(this)}),"toString");var Ji=Nn,Xi=$n,ea=Wr.exports,ta=jt,na=function(e,t,n,r){r||(r={});var i=r.enumerable,a=void 0!==r.name?r.name:t;if(Ji(n)&&ea(n,a,r),r.global)i?e[t]=n:ta(t,n);else{try{r.unsafe?e[t]&&(i=!0):delete e[t]}catch(e){}i?e[t]=n:Xi.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},ra=Yt,ia=ra({}.toString),aa=ra("".slice),oa=function(e){return aa(ia(e),8,-1)},sa=Bn,ua=Nn,ca=oa,da=Ln("toStringTag"),la=Object,fa="Arguments"==ca(function(){return arguments}()),pa=sa?ca:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=la(e),da))?n:fa?ca(t):"Object"==(r=ca(t))&&ua(t.callee)?"Arguments":r},ha=pa,ma=Bn?{}.toString:function(){return"[object "+ha(this)+"]"};Bn||na(Object.prototype,"toString",ma,{unsafe:!0});var va={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},ga=Wn("span").classList,Aa=ga&&ga.constructor&&ga.constructor.prototype,ba=Aa===Object.prototype?void 0:Aa,ya=oa,_a=Yt,wa=function(e){if("Function"===ya(e))return _a(e)},xa=yr,ka=Zt,Ea=wa(wa.bind),Sa=function(e,t){return xa(e),void 0===t?e:ka?Ea(e,t):function(){return e.apply(t,arguments)}},Da=zt,Ia=oa,Ra=Object,Ca=Yt("".split),Oa=Da((function(){return!Ra("z").propertyIsEnumerable(0)}))?function(e){return"String"==Ia(e)?Ca(e,""):Ra(e)}:Ra,Ta=Math.ceil,Pa=Math.floor,La=Math.trunc||function(e){var t=+e;return(t>0?Pa:Ta)(t)},Ma=La,Ba=function(e){var t=+e;return t!=t||0===t?0:Ma(t)},ja=Ba,Ua=Math.min,Fa=function(e){return e>0?Ua(ja(e),9007199254740991):0},Na=Fa,$a=function(e){return Na(e.length)},Ga=oa,Ha=Array.isArray||function(e){return"Array"==Ga(e)},za=Yt,Za=zt,Va=Nn,Ka=pa,qa=ui,Wa=function(){},Ya=[],Qa=ur("Reflect","construct"),Ja=/^\s*(?:class|function)\b/,Xa=za(Ja.exec),eo=!Ja.exec(Wa),to=function(e){if(!Va(e))return!1;try{return Qa(Wa,Ya,e),!0}catch(e){return!1}},no=function(e){if(!Va(e))return!1;switch(Ka(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return eo||!!Xa(Ja,qa(e))}catch(e){return!0}};no.sham=!0;var ro=!Qa||Za((function(){var e;return to(to.call)||!to(Object)||!to((function(){e=!0}))||e}))?no:to,ao=Ha,oo=ro,so=Zn,uo=Ln("species"),co=Array,lo=function(e){var t;return ao(e)&&(t=e.constructor,(oo(t)&&(t===co||ao(t.prototype))||so(t)&&null===(t=t[uo]))&&(t=void 0)),void 0===t?co:t},fo=function(e,t){return new(lo(e))(0===t?0:t)},po=Sa,ho=Oa,mo=rn,vo=$a,go=fo,Ao=Yt([].push),bo=function(e){var t=1==e,n=2==e,r=3==e,i=4==e,a=6==e,o=7==e,s=5==e||a;return function(u,c,d,l){for(var f,p,h=mo(u),m=ho(h),v=po(c,d),g=vo(m),A=0,b=l||go,y=t?b(u,g):n||o?b(u,0):void 0;g>A;A++)if((s||A in m)&&(p=v(f=m[A],A,h),e))if(t)y[A]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return A;case 2:Ao(y,f)}else switch(e){case 4:return!1;case 7:Ao(y,f)}return a?-1:r||i?i:y}},yo={forEach:bo(0),map:bo(1),filter:bo(2),some:bo(3),every:bo(4),find:bo(5),findIndex:bo(6),filterReject:bo(7)},_o=zt,wo=function(e,t){var n=[][e];return!!n&&_o((function(){n.call(null,t||function(){return 1},1)}))},xo=yo.forEach,ko=wo("forEach")?[].forEach:function(e){return xo(this,e,arguments.length>1?arguments[1]:void 0)},Eo=Pt,So=va,Do=ba,Io=ko,Ro=mi,Co=function(e){if(e&&e.forEach!==Io)try{Ro(e,"forEach",Io)}catch(t){e.forEach=Io}};for(var Oo in So)So[Oo]&&Co(Eo[Oo]&&Eo[Oo].prototype);Co(Do);var To={},Po={},Lo={}.propertyIsEnumerable,Mo=Object.getOwnPropertyDescriptor,Bo=Mo&&!Lo.call({1:2},1);Po.f=Bo?function(e){var t=Mo(this,e);return!!t&&t.enumerable}:Lo;var jo=Oa,Uo=en,Fo=function(e){return jo(Uo(e))},No=Gn,$o=ar,Go=Po,Ho=fi,zo=Fo,Zo=jr,Vo=sn,Ko=Qn,qo=Object.getOwnPropertyDescriptor;To.f=No?qo:function(e,t){if(e=zo(e),t=Zo(t),Ko)try{return qo(e,t)}catch(e){}if(Vo(e,t))return Ho(!$o(Go.f,e,t),e[t])};var Wo={},Yo=Ba,Qo=Math.max,Jo=Math.min,Xo=function(e,t){var n=Yo(e);return n<0?Qo(n+t,0):Jo(n,t)},es=Fo,ts=Xo,ns=$a,rs=function(e){return function(t,n,r){var i,a=es(t),o=ns(a),s=ts(r,o);if(e&&n!=n){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},is={includes:rs(!0),indexOf:rs(!1)},as=sn,os=Fo,ss=is.indexOf,us=yi,cs=Yt([].push),ds=function(e,t){var n,r=os(e),i=0,a=[];for(n in r)!as(us,n)&&as(r,n)&&cs(a,n);for(;t.length>i;)as(r,n=t[i++])&&(~ss(a,n)||cs(a,n));return a},ls=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],fs=ds,ps=ls.concat("length","prototype");Wo.f=Object.getOwnPropertyNames||function(e){return fs(e,ps)};var hs={};hs.f=Object.getOwnPropertySymbols;var ms=ur,vs=Wo,gs=hs,As=nr,bs=Yt([].concat),ys=ms("Reflect","ownKeys")||function(e){var t=vs.f(As(e)),n=gs.f;return n?bs(t,n(e)):t},_s=sn,ws=ys,xs=To,ks=$n,Es=function(e,t,n){for(var r=ws(t),i=ks.f,a=xs.f,o=0;o<r.length;o++){var s=r[o];_s(e,s)||n&&_s(n,s)||i(e,s,a(t,s))}},Ss=zt,Ds=Nn,Is=/#|\.prototype\./,Rs=function(e,t){var n=Os[Cs(e)];return n==Ps||n!=Ts&&(Ds(t)?Ss(t):!!t)},Cs=Rs.normalize=function(e){return String(e).replace(Is,".").toLowerCase()},Os=Rs.data={},Ts=Rs.NATIVE="N",Ps=Rs.POLYFILL="P",Ls=Rs,Ms=Pt,Bs=To.f,js=mi,Us=na,Fs=jt,Ns=Es,$s=Ls,Gs=function(e,t){var n,r,i,a,o,s=e.target,u=e.global,c=e.stat;if(n=u?Ms:c?Ms[s]||Fs(s,{}):(Ms[s]||{}).prototype)for(r in t){if(a=t[r],i=e.dontCallGetSet?(o=Bs(n,r))&&o.value:n[r],!$s(u?r:s+(c?".":"#")+r,e.forced)&&void 0!==i){if(typeof a==typeof i)continue;Ns(a,i)}(e.sham||i&&i.sham)&&js(a,"sham",!0),Us(n,r,a,e)}},Hs=ds,zs=ls,Zs=Object.keys||function(e){return Hs(e,zs)},Vs=rn,Ks=Zs;Gs({target:"Object",stat:!0,forced:zt((function(){Ks(1)}))},{keys:function(e){return Ks(Vs(e))}});var Ws=pa,Ys=String,Qs=function(e){if("Symbol"===Ws(e))throw TypeError("Cannot convert a Symbol value to a string");return Ys(e)},Js=nr,Xs=function(){var e=Js(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},eu=zt,tu=Pt.RegExp,nu=eu((function(){var e=tu("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),ru=nu||eu((function(){return!tu("a","y").sticky})),iu=nu||eu((function(){var e=tu("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),au={BROKEN_CARET:iu,MISSED_STICKY:ru,UNSUPPORTED_Y:nu},ou={},su=Gn,uu=Jn,cu=$n,du=nr,lu=Fo,fu=Zs;ou.f=su&&!uu?Object.defineProperties:function(e,t){du(e);for(var n,r=lu(t),i=fu(t),a=i.length,o=0;a>o;)cu.f(e,n=i[o++],r[n]);return e};var pu,hu=ur("document","documentElement"),mu=nr,vu=ou,gu=ls,Au=yi,bu=hu,yu=Wn,_u="prototype",wu="script",xu=bi("IE_PROTO"),ku=function(){},Eu=function(e){return"<"+wu+">"+e+"</"+wu+">"},Su=function(e){e.write(Eu("")),e.close();var t=e.parentWindow.Object;return e=null,t},Du=function(){try{pu=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;Du="undefined"!=typeof document?document.domain&&pu?Su(pu):(t=yu("iframe"),n="java"+wu+":",t.style.display="none",bu.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(Eu("document.F=Object")),e.close(),e.F):Su(pu);for(var r=gu.length;r--;)delete Du[_u][gu[r]];return Du()};Au[xu]=!0;var Iu=Object.create||function(e,t){var n;return null!==e?(ku[_u]=mu(e),n=new ku,ku[_u]=null,n[xu]=e):n=Du(),void 0===t?n:vu.f(n,t)},Ru=zt,Cu=Pt.RegExp,Ou=Ru((function(){var e=Cu(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Tu=zt,Pu=Pt.RegExp,Lu=Tu((function(){var e=Pu("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Mu=ar,Bu=Yt,ju=Qs,Uu=Xs,Fu=au,Nu=Lt.exports,$u=Iu,Gu=Li.get,Hu=Ou,zu=Lu,Zu=Nu("native-string-replace",String.prototype.replace),Vu=RegExp.prototype.exec,Ku=Vu,qu=Bu("".charAt),Wu=Bu("".indexOf),Yu=Bu("".replace),Qu=Bu("".slice),Ju=function(){var e=/a/,t=/b*/g;return Mu(Vu,e,"a"),Mu(Vu,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),Xu=Fu.BROKEN_CARET,ec=void 0!==/()??/.exec("")[1];(Ju||ec||Xu||Hu||zu)&&(Ku=function(e){var t,n,r,i,a,o,s,u=this,c=Gu(u),d=ju(e),l=c.raw;if(l)return l.lastIndex=u.lastIndex,t=Mu(Ku,l,d),u.lastIndex=l.lastIndex,t;var f=c.groups,p=Xu&&u.sticky,h=Mu(Uu,u),m=u.source,v=0,g=d;if(p&&(h=Yu(h,"y",""),-1===Wu(h,"g")&&(h+="g"),g=Qu(d,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==qu(d,u.lastIndex-1))&&(m="(?: "+m+")",g=" "+g,v++),n=new RegExp("^(?:"+m+")",h)),ec&&(n=new RegExp("^"+m+"$(?!\\s)",h)),Ju&&(r=u.lastIndex),i=Mu(Vu,p?n:u,g),p?i?(i.input=Qu(i.input,v),i[0]=Qu(i[0],v),i.index=u.lastIndex,u.lastIndex+=i[0].length):u.lastIndex=0:Ju&&i&&(u.lastIndex=u.global?i.index+i[0].length:r),ec&&i&&i.length>1&&Mu(Zu,i[0],n,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(i[a]=void 0)})),i&&f)for(i.groups=o=$u(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var tc=Ku;Gs({target:"RegExp",proto:!0,forced:/./.exec!==tc},{exec:tc});var nc={name:"@bygd/gd-sdk-pes",version:"1.43.21",files:["dist/*"],scripts:{build:"NODE_ENV=production rollup --config",watch:"rollup --config --watch --sourcemap inline --environment DEVELOPMENT","deploy-base":"npm install && npm run build && npm publish --access public",deploy:"npm run deploy-base && gdtool pm-upload"},repository:{type:"git",url:"git@gitlab.azerdev.com:gamedistribution/gd-sdk-pes.git"},author:"",license:"ISC",devDependencies:{"@babel/core":"^7.14.6","@babel/plugin-transform-runtime":"^7.14.5","@babel/preset-env":"^7.14.7","@rollup/plugin-babel":"^5.2.3","@rollup/plugin-commonjs":"^21.0.1","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^13.0.0","@rollup/plugin-replace":"^3.0.0",postcss:"^8.3.5",rollup:"^2.52.8","rollup-plugin-analyzer":"^4.0.0","rollup-plugin-browsersync":"^1.3.3","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-polyfills":"^0.2.1","rollup-plugin-peer-deps-external":"^2.2.4","rollup-plugin-postcss":"^4.0.0","rollup-plugin-terser":"^7.0.2"},dependencies:{"@babel/runtime":"^7.14.6","@bygd/gd-sdk-era":"^0.3.6","@flownet/lib-connect-to-tcf":"^0.2.10","@fnet/inter-service-js":"^0.9.4",axios:"^0.26.1","can-autoplay":"^3.0.2",events:"^3.3.0","get-value":"^3.0.1","is-plain-object":"^5.0.0","is-valid-domain":"^0.1.2","js-base64":"^3.6.1","leaderboard-lib":"0.1.11","lodash.clonedeep":"^4.5.0","lodash.merge":"^4.6.2",querystringify:"^2.2.0","set-value":"^4.1.0","url-parse":"^1.4.7",uuid:"^8.3.2",validator:"^13.6.0"}},rc=function(e){var t=ic("object"===r(e)?e:function(e){if(e)try{return JSON.parse(e)}catch(e){}}(e));return t&&t.version?nc.version>=t.version?t:void 0:t},ic=function(e){var t=this;if(!V(e)||0===e.length)return e;if(1===e.length)return e[0];var r=0;e.forEach(function(e){n(this,t),e.weight=e.weight||1,r+=e.weight}.bind(this));var i=Math.floor(Math.random()*Math.floor(r));r=0;for(var a=0;a<e.length;a++){var o=e[a];if(i<(r+=o.weight))return o}};var ac=function(){},oc=function(){var e;(e=console).log.apply(e,arguments)},sc=function(){var e;(e=console).log.apply(e,arguments)};JSON.stringify({adapters:{default:["ima","adsense","ima","adsense"],preroll:["ima","adsense","ima","adsense"],midroll:["ima","adsense","ima","adsense"],rewarded:["ima","adsense","ima","adsense"]}}),JSON.stringify({adapters:{default:["ima","adsense","ima","adsense"],preroll:["ima","adsense","ima"],midroll:["ima","adsense","ima"],rewarded:["ima","adsense","ima","adsense"]}});var uc={};function cc(e,t,n){return(t=T(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dc={},lc=jr,fc=$n,pc=fi,hc=function(e,t,n){var r=lc(t);r in e?fc.f(e,r,pc(0,n)):e[r]=n},mc=Xo,vc=$a,gc=hc,Ac=Array,bc=Math.max,yc=function(e,t,n){for(var r=vc(e),i=mc(t,r),a=mc(void 0===n?r:n,r),o=Ac(bc(a-i,0)),s=0;i<a;i++,s++)gc(o,s,e[i]);return o.length=s,o},_c=oa,wc=Fo,xc=Wo.f,kc=yc,Ec="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];dc.f=function(e){return Ec&&"Window"==_c(e)?function(e){try{return xc(e)}catch(e){return kc(Ec)}}(e):xc(wc(e))};var Sc=Wr.exports,Dc=$n,Ic=function(e,t,n){return n.get&&Sc(n.get,t,{getter:!0}),n.set&&Sc(n.set,t,{setter:!0}),Dc.f(e,t,n)},Rc={},Cc=Ln;Rc.f=Cc;var Oc=Pt,Tc=sn,Pc=Rc,Lc=$n.f,Mc=function(e){var t=Oc.Symbol||(Oc.Symbol={});Tc(t,e)||Lc(t,e,{value:Pc.f(e)})},Bc=ar,jc=ur,Uc=Ln,Fc=na,Nc=$n.f,$c=sn,Gc=Ln("toStringTag"),Hc=function(e,t,n){e&&!n&&(e=e.prototype),e&&!$c(e,Gc)&&Nc(e,Gc,{configurable:!0,value:t})},zc=Gs,Zc=Pt,Vc=ar,Kc=Yt,qc=Gn,Wc=xn,Yc=zt,Qc=sn,Jc=cr,Xc=nr,ed=Fo,td=jr,nd=Qs,rd=fi,id=Iu,ad=Zs,od=Wo,sd=dc,ud=hs,cd=To,dd=$n,ld=ou,fd=Po,pd=na,hd=Ic,md=Lt.exports,vd=yi,gd=fn,Ad=Ln,bd=Rc,yd=Mc,_d=function(){var e=jc("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,r=Uc("toPrimitive");t&&!t[r]&&Fc(t,r,(function(e){return Bc(n,this)}),{arity:1})},wd=Hc,xd=Li,kd=yo.forEach,Ed=bi("hidden"),Sd="Symbol",Dd="prototype",Id=xd.set,Rd=xd.getterFor(Sd),Cd=Object[Dd],Od=Zc.Symbol,Td=Od&&Od[Dd],Pd=Zc.TypeError,Ld=Zc.QObject,Md=cd.f,Bd=dd.f,jd=sd.f,Ud=fd.f,Fd=Kc([].push),Nd=md("symbols"),$d=md("op-symbols"),Gd=md("wks"),Hd=!Ld||!Ld[Dd]||!Ld[Dd].findChild,zd=qc&&Yc((function(){return 7!=id(Bd({},"a",{get:function(){return Bd(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=Md(Cd,t);r&&delete Cd[t],Bd(e,t,n),r&&e!==Cd&&Bd(Cd,t,r)}:Bd,Zd=function(e,t){var n=Nd[e]=id(Td);return Id(n,{type:Sd,tag:e,description:t}),qc||(n.description=t),n},Vd=function(e,t,n){e===Cd&&Vd($d,t,n),Xc(e);var r=td(t);return Xc(n),Qc(Nd,r)?(n.enumerable?(Qc(e,Ed)&&e[Ed][r]&&(e[Ed][r]=!1),n=id(n,{enumerable:rd(0,!1)})):(Qc(e,Ed)||Bd(e,Ed,rd(1,{})),e[Ed][r]=!0),zd(e,r,n)):Bd(e,r,n)},Kd=function(e,t){Xc(e);var n=ed(t),r=ad(n).concat(Qd(n));return kd(r,(function(t){qc&&!Vc(qd,n,t)||Vd(e,t,n[t])})),e},qd=function(e){var t=td(e),n=Vc(Ud,this,t);return!(this===Cd&&Qc(Nd,t)&&!Qc($d,t))&&(!(n||!Qc(this,t)||!Qc(Nd,t)||Qc(this,Ed)&&this[Ed][t])||n)},Wd=function(e,t){var n=ed(e),r=td(t);if(n!==Cd||!Qc(Nd,r)||Qc($d,r)){var i=Md(n,r);return!i||!Qc(Nd,r)||Qc(n,Ed)&&n[Ed][r]||(i.enumerable=!0),i}},Yd=function(e){var t=jd(ed(e)),n=[];return kd(t,(function(e){Qc(Nd,e)||Qc(vd,e)||Fd(n,e)})),n},Qd=function(e){var t=e===Cd,n=jd(t?$d:ed(e)),r=[];return kd(n,(function(e){!Qc(Nd,e)||t&&!Qc(Cd,e)||Fd(r,Nd[e])})),r};Wc||(Od=function(){if(Jc(Td,this))throw Pd("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?nd(arguments[0]):void 0,t=gd(e),n=function(e){this===Cd&&Vc(n,$d,e),Qc(this,Ed)&&Qc(this[Ed],t)&&(this[Ed][t]=!1),zd(this,t,rd(1,e))};return qc&&Hd&&zd(Cd,t,{configurable:!0,set:n}),Zd(t,e)},pd(Td=Od[Dd],"toString",(function(){return Rd(this).tag})),pd(Od,"withoutSetter",(function(e){return Zd(gd(e),e)})),fd.f=qd,dd.f=Vd,ld.f=Kd,cd.f=Wd,od.f=sd.f=Yd,ud.f=Qd,bd.f=function(e){return Zd(Ad(e),e)},qc&&(hd(Td,"description",{configurable:!0,get:function(){return Rd(this).description}}),pd(Cd,"propertyIsEnumerable",qd,{unsafe:!0}))),zc({global:!0,constructor:!0,wrap:!0,forced:!Wc,sham:!Wc},{Symbol:Od}),kd(ad(Gd),(function(e){yd(e)})),zc({target:Sd,stat:!0,forced:!Wc},{useSetter:function(){Hd=!0},useSimple:function(){Hd=!1}}),zc({target:"Object",stat:!0,forced:!Wc,sham:!qc},{create:function(e,t){return void 0===t?id(e):Kd(id(e),t)},defineProperty:Vd,defineProperties:Kd,getOwnPropertyDescriptor:Wd}),zc({target:"Object",stat:!0,forced:!Wc},{getOwnPropertyNames:Yd}),_d(),wd(Od,Sd),vd[Ed]=!0;var Jd=xn&&!!Symbol.for&&!!Symbol.keyFor,Xd=Gs,el=ur,tl=sn,nl=Qs,rl=Lt.exports,il=Jd,al=rl("string-to-symbol-registry"),ol=rl("symbol-to-string-registry");Xd({target:"Symbol",stat:!0,forced:!il},{for:function(e){var t=nl(e);if(tl(al,t))return al[t];var n=el("Symbol")(t);return al[t]=n,ol[n]=t,n}});var sl=Gs,ul=sn,cl=hr,dl=vr,ll=Jd,fl=(0,Lt.exports)("symbol-to-string-registry");sl({target:"Symbol",stat:!0,forced:!ll},{keyFor:function(e){if(!cl(e))throw TypeError(dl(e)+" is not a symbol");if(ul(fl,e))return fl[e]}});var pl=Zt,hl=Function.prototype,ml=hl.apply,vl=hl.call,gl="object"==typeof Reflect&&Reflect.apply||(pl?vl.bind(ml):function(){return vl.apply(ml,arguments)}),Al=Yt([].slice),bl=Ha,yl=Nn,_l=oa,wl=Qs,xl=Yt([].push),kl=Gs,El=ur,Sl=gl,Dl=ar,Il=Yt,Rl=zt,Cl=Nn,Ol=hr,Tl=Al,Pl=function(e){if(yl(e))return e;if(bl(e)){for(var t=e.length,n=[],r=0;r<t;r++){var i=e[r];"string"==typeof i?xl(n,i):"number"!=typeof i&&"Number"!=_l(i)&&"String"!=_l(i)||xl(n,wl(i))}var a=n.length,o=!0;return function(e,t){if(o)return o=!1,t;if(bl(this))return t;for(var r=0;r<a;r++)if(n[r]===e)return t}}},Ll=xn,Ml=String,Bl=El("JSON","stringify"),jl=Il(/./.exec),Ul=Il("".charAt),Fl=Il("".charCodeAt),Nl=Il("".replace),$l=Il(1..toString),Gl=/[\uD800-\uDFFF]/g,Hl=/^[\uD800-\uDBFF]$/,zl=/^[\uDC00-\uDFFF]$/,Zl=!Ll||Rl((function(){var e=El("Symbol")();return"[null]"!=Bl([e])||"{}"!=Bl({a:e})||"{}"!=Bl(Object(e))})),Vl=Rl((function(){return'"\\udf06\\ud834"'!==Bl("\udf06\ud834")||'"\\udead"'!==Bl("\udead")})),Kl=function(e,t){var n=Tl(arguments),r=Pl(t);if(Cl(r)||void 0!==e&&!Ol(e))return n[1]=function(e,t){if(Cl(r)&&(t=Dl(r,this,Ml(e),t)),!Ol(t))return t},Sl(Bl,null,n)},ql=function(e,t,n){var r=Ul(n,t-1),i=Ul(n,t+1);return jl(Hl,e)&&!jl(zl,i)||jl(zl,e)&&!jl(Hl,r)?"\\u"+$l(Fl(e,0),16):e};Bl&&kl({target:"JSON",stat:!0,arity:3,forced:Zl||Vl},{stringify:function(e,t,n){var r=Tl(arguments),i=Sl(Zl?Kl:Bl,null,r);return Vl&&"string"==typeof i?Nl(i,Gl,ql):i}});var Wl=hs,Yl=rn;Gs({target:"Object",stat:!0,forced:!xn||zt((function(){Wl.f(1)}))},{getOwnPropertySymbols:function(e){var t=Wl.f;return t?t(Yl(e)):[]}});var Ql=zt,Jl=yn,Xl=Ln("species"),ef=function(e){return Jl>=51||!Ql((function(){var t=[];return(t.constructor={})[Xl]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},tf=yo.filter;Gs({target:"Array",proto:!0,forced:!ef("filter")},{filter:function(e){return tf(this,e,arguments.length>1?arguments[1]:void 0)}});var nf=Gs,rf=zt,af=Fo,of=To.f,sf=Gn;nf({target:"Object",stat:!0,forced:!sf||rf((function(){of(1)})),sham:!sf},{getOwnPropertyDescriptor:function(e,t){return of(af(e),t)}});var uf=ys,cf=Fo,df=To,lf=hc;Gs({target:"Object",stat:!0,sham:!Gn},{getOwnPropertyDescriptors:function(e){for(var t,n,r=cf(e),i=df.f,a=uf(r),o={},s=0;a.length>s;)void 0!==(n=i(r,t=a[s++]))&&lf(o,t,n);return o}});var ff=Gs,pf=Ha,hf=ro,mf=Zn,vf=Xo,gf=$a,Af=Fo,bf=hc,yf=Ln,_f=Al,wf=ef("slice"),xf=yf("species"),kf=Array,Ef=Math.max;ff({target:"Array",proto:!0,forced:!wf},{slice:function(e,t){var n,r,i,a=Af(this),o=gf(a),s=vf(e,o),u=vf(void 0===t?o:t,o);if(pf(a)&&(n=a.constructor,(hf(n)&&(n===kf||pf(n.prototype))||mf(n)&&null===(n=n[xf]))&&(n=void 0),n===kf||void 0===n))return _f(a,s,u);for(r=new(void 0===n?kf:n)(Ef(u-s,0)),i=0;s<u;s++,i++)s in a&&bf(r,i,a[s]);return r.length=i,r}});var Sf=ar,Df=nr,If=xr,Rf=function(e,t,n){var r,i;Df(e);try{if(!(r=If(e,"return"))){if("throw"===t)throw n;return n}r=Sf(r,e)}catch(e){i=!0,r=e}if("throw"===t)throw n;if(i)throw r;return Df(r),n},Cf=nr,Of=Rf,Tf={},Pf=Tf,Lf=Ln("iterator"),Mf=Array.prototype,Bf=function(e){return void 0!==e&&(Pf.Array===e||Mf[Lf]===e)},jf=pa,Uf=xr,Ff=Qt,Nf=Tf,$f=Ln("iterator"),Gf=function(e){if(!Ff(e))return Uf(e,$f)||Uf(e,"@@iterator")||Nf[jf(e)]},Hf=ar,zf=yr,Zf=nr,Vf=vr,Kf=Gf,qf=TypeError,Wf=function(e,t){var n=arguments.length<2?Kf(e):t;if(zf(n))return Zf(Hf(n,e));throw qf(Vf(e)+" is not iterable")},Yf=Sa,Qf=ar,Jf=rn,Xf=function(e,t,n,r){try{return r?t(Cf(n)[0],n[1]):t(n)}catch(t){Of(e,"throw",t)}},ep=Bf,tp=ro,np=$a,rp=hc,ip=Wf,ap=Gf,op=Array,sp=function(e){var t=Jf(e),n=tp(this),r=arguments.length,i=r>1?arguments[1]:void 0,a=void 0!==i;a&&(i=Yf(i,r>2?arguments[2]:void 0));var o,s,u,c,d,l,f=ap(t),p=0;if(!f||this===op&&ep(f))for(o=np(t),s=n?new this(o):op(o);o>p;p++)l=a?i(t[p],p):t[p],rp(s,p,l);else for(d=(c=ip(t,f)).next,s=n?new this:[];!(u=Qf(d,c)).done;p++)l=a?Xf(c,i,[u.value,p],!0):u.value,rp(s,p,l);return s.length=p,s},up=Ln("iterator"),cp=!1;try{var dp=0,lp={next:function(){return{done:!!dp++}},return:function(){cp=!0}};lp[up]=function(){return this},Array.from(lp,(function(){throw 2}))}catch(SS){}var fp=function(e,t){if(!t&&!cp)return!1;var n=!1;try{var r={};r[up]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},pp=sp;Gs({target:"Array",stat:!0,forced:!fp((function(e){Array.from(e)}))},{from:pp});var hp,mp,vp,gp=Yt,Ap=Ba,bp=Qs,yp=en,_p=gp("".charAt),wp=gp("".charCodeAt),xp=gp("".slice),kp=function(e){return function(t,n){var r,i,a=bp(yp(t)),o=Ap(n),s=a.length;return o<0||o>=s?e?"":void 0:(r=wp(a,o))<55296||r>56319||o+1===s||(i=wp(a,o+1))<56320||i>57343?e?_p(a,o):r:e?xp(a,o,o+2):i-56320+(r-55296<<10)+65536}},Ep={codeAt:kp(!1),charAt:kp(!0)},Sp=!zt((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Dp=sn,Ip=Nn,Rp=rn,Cp=Sp,Op=bi("IE_PROTO"),Tp=Object,Pp=Tp.prototype,Lp=Cp?Tp.getPrototypeOf:function(e){var t=Rp(e);if(Dp(t,Op))return t[Op];var n=t.constructor;return Ip(n)&&t instanceof n?n.prototype:t instanceof Tp?Pp:null},Mp=zt,Bp=Nn,jp=Zn,Up=Lp,Fp=na,Np=Ln("iterator"),$p=!1;[].keys&&("next"in(vp=[].keys())?(mp=Up(Up(vp)))!==Object.prototype&&(hp=mp):$p=!0);var Gp=!jp(hp)||Mp((function(){var e={};return hp[Np].call(e)!==e}));Gp&&(hp={}),Bp(hp[Np])||Fp(hp,Np,(function(){return this}));var Hp={IteratorPrototype:hp,BUGGY_SAFARI_ITERATORS:$p},zp=Hp.IteratorPrototype,Zp=Iu,Vp=fi,Kp=Hc,qp=Tf,Wp=function(){return this},Yp=function(e,t,n,r){var i=t+" Iterator";return e.prototype=Zp(zp,{next:Vp(+!r,n)}),Kp(e,i,!1),qp[i]=Wp,e},Qp=Yt,Jp=yr,Xp=Nn,eh=String,th=TypeError,nh=function(e,t,n){try{return Qp(Jp(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}},rh=nr,ih=function(e){if("object"==typeof e||Xp(e))return e;throw th("Can't set "+eh(e)+" as a prototype")},ah=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=nh(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return rh(n),ih(r),t?e(n,r):n.__proto__=r,n}}():void 0),oh=Gs,sh=ar,uh=Nn,ch=Yp,dh=Lp,lh=ah,fh=Hc,ph=mi,hh=na,mh=Tf,vh=ti.PROPER,gh=ti.CONFIGURABLE,Ah=Hp.IteratorPrototype,bh=Hp.BUGGY_SAFARI_ITERATORS,yh=Ln("iterator"),_h="keys",wh="values",xh="entries",kh=function(){return this},Eh=function(e,t,n,r,i,a,o){ch(n,t,r);var s,u,c,d=function(e){if(e===i&&m)return m;if(!bh&&e in p)return p[e];switch(e){case _h:case wh:case xh:return function(){return new n(this,e)}}return function(){return new n(this)}},l=t+" Iterator",f=!1,p=e.prototype,h=p[yh]||p["@@iterator"]||i&&p[i],m=!bh&&h||d(i),v="Array"==t&&p.entries||h;if(v&&(s=dh(v.call(new e)))!==Object.prototype&&s.next&&(dh(s)!==Ah&&(lh?lh(s,Ah):uh(s[yh])||hh(s,yh,kh)),fh(s,l,!0)),vh&&i==wh&&h&&h.name!==wh&&(gh?ph(p,"name",wh):(f=!0,m=function(){return sh(h,this)})),i)if(u={values:d(wh),keys:a?m:d(_h),entries:d(xh)},o)for(c in u)(bh||f||!(c in p))&&hh(p,c,u[c]);else oh({target:t,proto:!0,forced:bh||f},u);return p[yh]!==m&&hh(p,yh,m,{name:i}),mh[t]=m,u},Sh=function(e,t){return{value:e,done:t}},Dh=Ep.charAt,Ih=Qs,Rh=Li,Ch=Eh,Oh=Sh,Th="String Iterator",Ph=Rh.set,Lh=Rh.getterFor(Th);Ch(String,"String",(function(e){Ph(this,{type:Th,string:Ih(e),index:0})}),(function(){var e,t=Lh(this),n=t.string,r=t.index;return r>=n.length?Oh(void 0,!0):(e=Dh(n,r),t.index+=e.length,Oh(e,!1))}));var Mh=Gs,Bh=Gn,jh=Yt,Uh=sn,Fh=Nn,Nh=cr,$h=Qs,Gh=Ic,Hh=Es,zh=Pt.Symbol,Zh=zh&&zh.prototype;if(Bh&&Fh(zh)&&(!("description"in Zh)||void 0!==zh().description)){var Vh={},Kh=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:$h(arguments[0]),t=Nh(Zh,this)?new zh(e):void 0===e?zh():zh(e);return""===e&&(Vh[t]=!0),t};Hh(Kh,zh),Kh.prototype=Zh,Zh.constructor=Kh;var qh="Symbol(test)"==String(zh("test")),Wh=jh(Zh.valueOf),Yh=jh(Zh.toString),Qh=/^Symbol\((.*)\)[^)]+$/,Jh=jh("".replace),Xh=jh("".slice);Gh(Zh,"description",{configurable:!0,get:function(){var e=Wh(this);if(Uh(Vh,e))return"";var t=Yh(e),n=qh?Xh(t,7,-1):Jh(t,Qh,"$1");return""===n?void 0:n}}),Mh({global:!0,constructor:!0,forced:!0},{Symbol:Kh})}Mc("iterator");var em=Ln,tm=Iu,nm=$n.f,rm=em("unscopables"),im=Array.prototype;null==im[rm]&&nm(im,rm,{configurable:!0,value:tm(null)});var am=function(e){im[rm][e]=!0},om=Fo,sm=am,um=Tf,cm=Li,dm=$n.f,lm=Eh,fm=Sh,pm=Gn,hm="Array Iterator",mm=cm.set,vm=cm.getterFor(hm),gm=lm(Array,"Array",(function(e,t){mm(this,{type:hm,target:om(e),index:0,kind:t})}),(function(){var e=vm(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,fm(void 0,!0)):fm("keys"==n?r:"values"==n?t[r]:[r,t[r]],!1)}),"values"),Am=um.Arguments=um.Array;if(sm("keys"),sm("values"),sm("entries"),pm&&"values"!==Am.name)try{dm(Am,"name",{value:"values"})}catch(SS){}var bm=Pt,ym=va,_m=ba,wm=gm,xm=mi,km=Ln,Em=km("iterator"),Sm=km("toStringTag"),Dm=wm.values,Im=function(e,t){if(e){if(e[Em]!==Dm)try{xm(e,Em,Dm)}catch(t){e[Em]=Dm}if(e[Sm]||xm(e,Sm,t),ym[t])for(var n in wm)if(e[n]!==wm[n])try{xm(e,n,wm[n])}catch(t){e[n]=wm[n]}}};for(var Rm in ym)Im(bm[Rm]&&bm[Rm].prototype,Rm);Im(_m,"DOMTokenList");var Cm,Om,Tm,Pm,Lm="undefined"!=typeof process&&"process"==oa(process),Mm=ur,Bm=Ic,jm=Gn,Um=Ln("species"),Fm=function(e){var t=Mm(e);jm&&t&&!t[Um]&&Bm(t,Um,{configurable:!0,get:function(){return this}})},Nm=cr,$m=TypeError,Gm=function(e,t){if(Nm(t,e))return e;throw $m("Incorrect invocation")},Hm=ro,zm=vr,Zm=TypeError,Vm=nr,Km=function(e){if(Hm(e))return e;throw Zm(zm(e)+" is not a constructor")},qm=Qt,Wm=Ln("species"),Ym=function(e,t){var n,r=Vm(e).constructor;return void 0===r||qm(n=Vm(r)[Wm])?t:Km(n)},Qm=TypeError,Jm=function(e,t){if(e<t)throw Qm("Not enough arguments");return e},Xm=/(?:ipad|iphone|ipod).*applewebkit/i.test(pn),ev=Pt,tv=gl,nv=Sa,rv=Nn,iv=sn,av=zt,ov=hu,sv=Al,uv=Wn,cv=Jm,dv=Xm,lv=Lm,fv=ev.setImmediate,pv=ev.clearImmediate,hv=ev.process,mv=ev.Dispatch,vv=ev.Function,gv=ev.MessageChannel,Av=ev.String,bv=0,yv={},_v="onreadystatechange";av((function(){Cm=ev.location}));var wv=function(e){if(iv(yv,e)){var t=yv[e];delete yv[e],t()}},xv=function(e){return function(){wv(e)}},kv=function(e){wv(e.data)},Ev=function(e){ev.postMessage(Av(e),Cm.protocol+"//"+Cm.host)};fv&&pv||(fv=function(e){cv(arguments.length,1);var t=rv(e)?e:vv(e),n=sv(arguments,1);return yv[++bv]=function(){tv(t,void 0,n)},Om(bv),bv},pv=function(e){delete yv[e]},lv?Om=function(e){hv.nextTick(xv(e))}:mv&&mv.now?Om=function(e){mv.now(xv(e))}:gv&&!dv?(Pm=(Tm=new gv).port2,Tm.port1.onmessage=kv,Om=nv(Pm.postMessage,Pm)):ev.addEventListener&&rv(ev.postMessage)&&!ev.importScripts&&Cm&&"file:"!==Cm.protocol&&!av(Ev)?(Om=Ev,ev.addEventListener("message",kv,!1)):Om=_v in uv("script")?function(e){ov.appendChild(uv("script"))[_v]=function(){ov.removeChild(this),wv(e)}}:function(e){setTimeout(xv(e),0)});var Sv={set:fv,clear:pv},Dv=function(){this.head=null,this.tail=null};Dv.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}};var Iv,Rv,Cv,Ov,Tv,Pv=Dv,Lv=/ipad|iphone|ipod/i.test(pn)&&"undefined"!=typeof Pebble,Mv=/web0s(?!.*chrome)/i.test(pn),Bv=Pt,jv=Sa,Uv=To.f,Fv=Sv.set,Nv=Pv,$v=Xm,Gv=Lv,Hv=Mv,zv=Lm,Zv=Bv.MutationObserver||Bv.WebKitMutationObserver,Vv=Bv.document,Kv=Bv.process,qv=Bv.Promise,Wv=Uv(Bv,"queueMicrotask"),Yv=Wv&&Wv.value;if(!Yv){var Qv=new Nv,Jv=function(){var e,t;for(zv&&(e=Kv.domain)&&e.exit();t=Qv.get();)try{t()}catch(e){throw Qv.head&&Iv(),e}e&&e.enter()};$v||zv||Hv||!Zv||!Vv?!Gv&&qv&&qv.resolve?((Ov=qv.resolve(void 0)).constructor=qv,Tv=jv(Ov.then,Ov),Iv=function(){Tv(Jv)}):zv?Iv=function(){Kv.nextTick(Jv)}:(Fv=jv(Fv,Bv),Iv=function(){Fv(Jv)}):(Rv=!0,Cv=Vv.createTextNode(""),new Zv(Jv).observe(Cv,{characterData:!0}),Iv=function(){Cv.data=Rv=!Rv}),Yv=function(e){Qv.head||Iv(),Qv.add(e)}}var Xv=Yv,eg=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},tg=Pt.Promise,ng="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,rg=!ng&&!Lm&&"object"==typeof window&&"object"==typeof document,ig=Pt,ag=tg,og=Nn,sg=Ls,ug=ui,cg=Ln,dg=rg,lg=ng,fg=yn;ag&&ag.prototype;var pg=cg("species"),hg=!1,mg=og(ig.PromiseRejectionEvent),vg=sg("Promise",(function(){var e=ug(ag),t=e!==String(ag);if(!t&&66===fg)return!0;if(!fg||fg<51||!/native code/.test(e)){var n=new ag((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};if((n.constructor={})[pg]=r,!(hg=n.then((function(){}))instanceof r))return!0}return!t&&(dg||lg)&&!mg})),gg={CONSTRUCTOR:vg,REJECTION_EVENT:mg,SUBCLASSING:hg},Ag={},bg=yr,yg=TypeError,_g=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw yg("Bad Promise constructor");t=e,n=r})),this.resolve=bg(t),this.reject=bg(n)};Ag.f=function(e){return new _g(e)};var wg,xg,kg,Eg=Gs,Sg=Lm,Dg=Pt,Ig=ar,Rg=na,Cg=ah,Og=Hc,Tg=Fm,Pg=yr,Lg=Nn,Mg=Zn,Bg=Gm,jg=Ym,Ug=Sv.set,Fg=Xv,Ng=function(e,t){try{1==arguments.length?console.error(e):console.error(e,t)}catch(e){}},$g=eg,Gg=Pv,Hg=Li,zg=tg,Zg=Ag,Vg="Promise",Kg=gg.CONSTRUCTOR,qg=gg.REJECTION_EVENT,Wg=gg.SUBCLASSING,Yg=Hg.getterFor(Vg),Qg=Hg.set,Jg=zg&&zg.prototype,Xg=zg,eA=Jg,tA=Dg.TypeError,nA=Dg.document,rA=Dg.process,iA=Zg.f,aA=iA,oA=!!(nA&&nA.createEvent&&Dg.dispatchEvent),sA="unhandledrejection",uA=function(e){var t;return!(!Mg(e)||!Lg(t=e.then))&&t},cA=function(e,t){var n,r,i,a=t.value,o=1==t.state,s=o?e.ok:e.fail,u=e.resolve,c=e.reject,d=e.domain;try{s?(o||(2===t.rejection&&hA(t),t.rejection=1),!0===s?n=a:(d&&d.enter(),n=s(a),d&&(d.exit(),i=!0)),n===e.promise?c(tA("Promise-chain cycle")):(r=uA(n))?Ig(r,n,u,c):u(n)):c(a)}catch(e){d&&!i&&d.exit(),c(e)}},dA=function(e,t){e.notified||(e.notified=!0,Fg((function(){for(var n,r=e.reactions;n=r.get();)cA(n,e);e.notified=!1,t&&!e.rejection&&fA(e)})))},lA=function(e,t,n){var r,i;oA?((r=nA.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),Dg.dispatchEvent(r)):r={promise:t,reason:n},!qg&&(i=Dg["on"+e])?i(r):e===sA&&Ng("Unhandled promise rejection",n)},fA=function(e){Ig(Ug,Dg,(function(){var t,n=e.facade,r=e.value;if(pA(e)&&(t=$g((function(){Sg?rA.emit("unhandledRejection",r,n):lA(sA,n,r)})),e.rejection=Sg||pA(e)?2:1,t.error))throw t.value}))},pA=function(e){return 1!==e.rejection&&!e.parent},hA=function(e){Ig(Ug,Dg,(function(){var t=e.facade;Sg?rA.emit("rejectionHandled",t):lA("rejectionhandled",t,e.value)}))},mA=function(e,t,n){return function(r){e(t,r,n)}},vA=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,dA(e,!0))},gA=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw tA("Promise can't be resolved itself");var r=uA(t);r?Fg((function(){var n={done:!1};try{Ig(r,t,mA(gA,n,e),mA(vA,n,e))}catch(t){vA(n,t,e)}})):(e.value=t,e.state=1,dA(e,!1))}catch(t){vA({done:!1},t,e)}}};if(Kg&&(Xg=function(e){Bg(this,eA),Pg(e),Ig(wg,this);var t=Yg(this);try{e(mA(gA,t),mA(vA,t))}catch(e){vA(t,e)}},eA=Xg.prototype,(wg=function(e){Qg(this,{type:Vg,done:!1,notified:!1,parent:!1,reactions:new Gg,rejection:!1,state:0,value:void 0})}).prototype=Rg(eA,"then",(function(e,t){var n=Yg(this),r=iA(jg(this,Xg));return n.parent=!0,r.ok=!Lg(e)||e,r.fail=Lg(t)&&t,r.domain=Sg?rA.domain:void 0,0==n.state?n.reactions.add(r):Fg((function(){cA(r,n)})),r.promise})),xg=function(){var e=new wg,t=Yg(e);this.promise=e,this.resolve=mA(gA,t),this.reject=mA(vA,t)},Zg.f=iA=function(e){return e===Xg||undefined===e?new xg(e):aA(e)},Lg(zg)&&Jg!==Object.prototype)){kg=Jg.then,Wg||Rg(Jg,"then",(function(e,t){var n=this;return new Xg((function(e,t){Ig(kg,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete Jg.constructor}catch(SS){}Cg&&Cg(Jg,eA)}Eg({global:!0,constructor:!0,wrap:!0,forced:Kg},{Promise:Xg}),Og(Xg,Vg,!1),Tg(Vg);var AA=Sa,bA=ar,yA=nr,_A=vr,wA=Bf,xA=$a,kA=cr,EA=Wf,SA=Gf,DA=Rf,IA=TypeError,RA=function(e,t){this.stopped=e,this.result=t},CA=RA.prototype,OA=function(e,t,n){var r,i,a,o,s,u,c,d=n&&n.that,l=!(!n||!n.AS_ENTRIES),f=!(!n||!n.IS_RECORD),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),m=AA(t,d),v=function(e){return r&&DA(r,"normal",e),new RA(!0,e)},g=function(e){return l?(yA(e),h?m(e[0],e[1],v):m(e[0],e[1])):h?m(e,v):m(e)};if(f)r=e.iterator;else if(p)r=e;else{if(!(i=SA(e)))throw IA(_A(e)+" is not iterable");if(wA(i)){for(a=0,o=xA(e);o>a;a++)if((s=g(e[a]))&&kA(CA,s))return s;return new RA(!1)}r=EA(e,i)}for(u=f?e.next:r.next;!(c=bA(u,r)).done;){try{s=g(c.value)}catch(e){DA(r,"throw",e)}if("object"==typeof s&&s&&kA(CA,s))return s}return new RA(!1)},TA=tg,PA=gg.CONSTRUCTOR||!fp((function(e){TA.all(e).then(void 0,(function(){}))})),LA=ar,MA=yr,BA=Ag,jA=eg,UA=OA;Gs({target:"Promise",stat:!0,forced:PA},{all:function(e){var t=this,n=BA.f(t),r=n.resolve,i=n.reject,a=jA((function(){var n=MA(t.resolve),a=[],o=0,s=1;UA(e,(function(e){var u=o++,c=!1;s++,LA(n,t,e).then((function(e){c||(c=!0,a[u]=e,--s||r(a))}),i)})),--s||r(a)}));return a.error&&i(a.value),n.promise}});var FA=Gs,NA=gg.CONSTRUCTOR,$A=tg,GA=ur,HA=Nn,zA=na,ZA=$A&&$A.prototype;if(FA({target:"Promise",proto:!0,forced:NA,real:!0},{catch:function(e){return this.then(void 0,e)}}),HA($A)){var VA=GA("Promise").prototype.catch;ZA.catch!==VA&&zA(ZA,"catch",VA,{unsafe:!0})}var KA=ar,qA=yr,WA=Ag,YA=eg,QA=OA;Gs({target:"Promise",stat:!0,forced:PA},{race:function(e){var t=this,n=WA.f(t),r=n.reject,i=YA((function(){var i=qA(t.resolve);QA(e,(function(e){KA(i,t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}});var JA=ar,XA=Ag;Gs({target:"Promise",stat:!0,forced:gg.CONSTRUCTOR},{reject:function(e){var t=XA.f(this);return JA(t.reject,void 0,e),t.promise}});var eb=nr,tb=Zn,nb=Ag,rb=function(e,t){if(eb(e),tb(t)&&t.constructor===e)return t;var n=nb.f(e);return(0,n.resolve)(t),n.promise},ib=Gs,ab=gg.CONSTRUCTOR,ob=rb;ur("Promise"),ib({target:"Promise",stat:!0,forced:ab},{resolve:function(e){return ob(this,e)}});var sb=TypeError,ub=Gs,cb=zt,db=Ha,lb=Zn,fb=rn,pb=$a,hb=function(e){if(e>9007199254740991)throw sb("Maximum allowed index exceeded");return e},mb=hc,vb=fo,gb=ef,Ab=yn,bb=Ln("isConcatSpreadable"),yb=Ab>=51||!cb((function(){var e=[];return e[bb]=!1,e.concat()[0]!==e})),_b=function(e){if(!lb(e))return!1;var t=e[bb];return void 0!==t?!!t:db(e)};ub({target:"Array",proto:!0,arity:1,forced:!yb||!gb("concat")},{concat:function(e){var t,n,r,i,a,o=fb(this),s=vb(o,0),u=0;for(t=-1,r=arguments.length;t<r;t++)if(_b(a=-1===t?o:arguments[t]))for(i=pb(a),hb(u+i),n=0;n<i;n++,u++)n in a&&mb(s,u,a[n]);else hb(u+1),mb(s,u++,a);return s.length=u,s}});var wb=Gn,xb=ti.EXISTS,kb=Yt,Eb=Ic,Sb=Function.prototype,Db=kb(Sb.toString),Ib=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Rb=kb(Ib.exec);function Cb(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Ob(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ob(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function Ob(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Tb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tb(Object(n),!0).forEach((function(t){cc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}wb&&!xb&&Eb(Sb,"name",{configurable:!0,get:function(){try{return Rb(Ib,Db(this))[1]}catch(e){return""}}});var Lb,Mb={react:{src:"https://pm.azerioncircle.com/react/16.14.0/umd/react.production.min.js",name:"React"},"react-dom":{src:"https://pm.azerioncircle.com/react-dom/16.14.0/umd/react-dom.production.min.js",name:"ReactDOM"},redux:{src:"https://pm.azerioncircle.com/redux/4.0.5/dist/redux.min.js",name:"Redux"},"react-redux":{src:"https://pm.azerioncircle.com/react-redux/7.2.1/dist/react-redux.min.js",name:"ReactRedux"},"material-ui-core":{src:"https://pm.azerioncircle.com/@material-ui/core/4.11.3/umd/material-ui.production.min.js",name:"MaterialUI"}},Bb={},jb=function(e,t){Bb[e]=Pb(Pb({},t),{},{isLoading:!1})},Ub=function(e){var t=this,r=e.id,i=e.src;return new Promise(function(e,a){if(n(this,t),document.getElementById(r))e();else{var o=document.createElement("script");o.onload=function(){e()},o.id=r,o.setAttribute("crossorigin",!0),o.src=i,document.head.appendChild(o)}}.bind(this))},Fb=function(){var e=t(d.mark((function e(t){var n,r,i,a,o,s,u,c;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=window[t])){e.next=3;break}return e.abrupt("return",n);case 3:if(!(r=Bb[t]).isLoading){e.next=6;break}return e.abrupt("return");case 6:r.isLoading=!0,i=Cb(r.dependencies),e.prev=8,i.s();case 10:if((a=i.n()).done){e.next=26;break}if(o=a.value,e.prev=12,s=Mb[o].name,!window[s]){e.next=16;break}return e.abrupt("continue",24);case 16:return e.next=18,Ub({id:o,src:Mb[o].src});case 18:e.next=24;break;case 20:e.prev=20,e.t0=e.catch(12),u=o.id,c=o.src,console.log("Could not load external script ".concat(u," ").concat(c),e.t0);case 24:e.next=10;break;case 26:e.next=31;break;case 28:e.prev=28,e.t1=e.catch(8),i.e(e.t1);case 31:return e.prev=31,i.f(),e.finish(31);case 34:return e.prev=34,e.next=37,Ub({id:t,src:r.source});case 37:n=window[t],e.next=43;break;case 40:e.prev=40,e.t2=e.catch(34),console.log("Could not load module ".concat(t," ").concat(r.source,"."),e.t2);case 43:return r.isLoading=!1,e.abrupt("return",n);case 45:case"end":return e.stop()}}),e,null,[[8,28,31,34],[12,20],[34,40]])})));return function(t){return e.apply(this,arguments)}}(),Nb=L((function e(){var n=this;O(this,e),cc(this,"load",t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Fb("Leaderboard");case 2:n.leaderboard=e.sent;case 3:case"end":return e.stop()}}),e)})))),cc(this,"showLeaderboard",function(){var e=t(d.mark((function e(t){var r;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=window.GD_OPTIONS.gameId,n.leaderboard){e.next=4;break}return e.next=4,n.load();case 4:n.leaderboard.showLeaderBoard(r,t);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),cc(this,"addScore",function(){var e=t(d.mark((function e(t){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.leaderboard){e.next=3;break}return e.next=3,n.load();case 3:n.leaderboard.addScore(t);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),this.moduleName="Leaderboard",this.moduleConfig={source:"https://pm.azerioncircle.com/@bygd/gd-sdk-leaderboard/0.1.43/dist/default/iife/index.js",dependencies:["react","react-dom","redux","react-redux","material-ui-core"]},jb(this.moduleName,this.moduleConfig)})),$b=new Nb,Gb=Zn,Hb=oa,zb=Ln("match"),Zb=function(e){var t;return Gb(e)&&(void 0!==(t=e[zb])?!!t:"RegExp"==Hb(e))},Vb=Zb,Kb=TypeError,qb=function(e){if(Vb(e))throw Kb("The method doesn't accept regular expressions");return e},Wb=Ln("match"),Yb=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[Wb]=!1,"/./"[e](t)}catch(e){}}return!1},Qb=Gs,Jb=wa,Xb=To.f,ey=Fa,ty=Qs,ny=qb,ry=en,iy=Yb,ay=Jb("".startsWith),oy=Jb("".slice),sy=Math.min,uy=iy("startsWith");Qb({target:"String",proto:!0,forced:!!(uy||(Lb=Xb(String.prototype,"startsWith"),!Lb||Lb.writable))&&!uy},{startsWith:function(e){var t=ty(ry(this));ny(e);var n=ey(sy(arguments.length>1?arguments[1]:void 0,t.length)),r=ty(e);return ay?ay(t,r,n):oy(t,n,n+r.length)===r}});var cy=ar,dy=sn,ly=cr,fy=Xs,py=RegExp.prototype,hy=function(e){var t=e.flags;return void 0!==t||"flags"in py||dy(e,"flags")||!ly(py,e)?t:cy(fy,e)},my=ti.PROPER,vy=na,gy=nr,Ay=Qs,by=zt,yy=hy,_y="toString",wy=RegExp.prototype[_y],xy=by((function(){return"/a/b"!=wy.call({source:"a",flags:"b"})})),ky=my&&wy.name!=_y;(xy||ky)&&vy(RegExp.prototype,_y,(function(){var e=gy(this);return"/"+Ay(e.source)+"/"+Ay(yy(e))}),{unsafe:!0});var Ey=wa,Sy=na,Dy=tc,Iy=zt,Ry=Ln,Cy=mi,Oy=Ry("species"),Ty=RegExp.prototype,Py=function(e,t,n,r){var i=Ry(e),a=!Iy((function(){var t={};return t[i]=function(){return 7},7!=""[e](t)})),o=a&&!Iy((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[Oy]=function(){return n},n.flags="",n[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](""),!t}));if(!a||!o||n){var s=Ey(/./[i]),u=t(i,""[e],(function(e,t,n,r,i){var o=Ey(e),u=t.exec;return u===Dy||u===Ty.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));Sy(String.prototype,e,u[0]),Sy(Ty,i,u[1])}r&&Cy(Ty[i],"sham",!0)},Ly=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t},My=ar,By=nr,jy=Nn,Uy=oa,Fy=tc,Ny=TypeError,$y=function(e,t){var n=e.exec;if(jy(n)){var r=My(n,e,t);return null!==r&&By(r),r}if("RegExp"===Uy(e))return My(Fy,e,t);throw Ny("RegExp#exec called on incompatible receiver")},Gy=ar,Hy=nr,zy=Qt,Zy=en,Vy=Ly,Ky=Qs,qy=xr,Wy=$y;function Yy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yy(Object(n),!0).forEach((function(t){cc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Py("search",(function(e,t,n){return[function(t){var n=Zy(this),r=zy(t)?void 0:qy(t,e);return r?Gy(r,t,n):new RegExp(t)[e](Ky(n))},function(e){var r=Hy(this),i=Ky(e),a=n(t,r,i);if(a.done)return a.value;var o=r.lastIndex;Vy(o,0)||(r.lastIndex=0);var s=Wy(r,i);return Vy(r.lastIndex,o)||(r.lastIndex=o),null===s?-1:s.index}]}));var Jy,Xy,e_=function(){function e(){O(this,e)}return L(e,[{key:"getBridgeContext",value:function(){var e=this._isTokenGameURL(),t=this._isMasterGameURL(),n=this._isExtHostedGameURL(),r=e||n?this._getTokenGameURLConfig():{};r=r||{};var i=decodeURIComponent((e||n)&&r.parentURL?r.parentURL:ot()),a=decodeURIComponent((e||n)&&r.parentDomain?r.parentDomain:at()),o=decodeURIComponent((e||n)&&r.topDomain?r.topDomain:n&&0===pt()?a:vt()),s=(e||n)&&r.loaderEnabled,u=(e||n)&&r.loaderEnabled,c=(e||n)&&r.loaderEnabled,d=(e||n)&&r.loaderEnabled,l=(e||n)&&r.loaderEnabled,f=(e||n)&&r.loaderEnabled,p=(e||n)&&r.loaderEnabled;console.log("noMinijuegosSDK",p);var h=(e||n)&&r.loaderEnabled,m=(e||n)&&r.loaderEnabled&&r.hasImpression&&r.version>="1.1.24";return{isTokenGameURL:e,isMasterGameURL:t,isExtHostedGameURL:n,noConsoleBanner:s,noLoadedEvent:u,noBlockerEvent:c,noPreroll:h,parentURL:i,parentDomain:a,topDomain:o&&o.length?o:a,noGAPageView:d,noLotamePageView:l,noGamedockSDK:f,noMinijuegosSDK:p,version:r.version,pauseGameOnStartup:m,depth:pt(),domainMatched:a===o,exports:{formatTokenURLSearch:this._formatTokenURLSearch.bind(this),extendUrlQuery:this._extendUrlQuery.bind(this),base64Encode:this._base64_encode.bind(this)}}}},{key:"_isMasterGameURL",value:function(){var e=/http[s]?:\/\/(html5\.gamedistribution\.com\/[A-Fa-f0-9]{32})(.*)$/i;return e.test(location.href)||!this._isTokenGameURL()&&e.test(document.referrer)}},{key:"_isTokenGameURL",value:function(){var e=/http[s]?:\/\/(html5\.gamedistribution\.com\/[A-Za-z0-9]{8})\/(.*)$/i;return e.test(location.href)||e.test(document.referrer)}},{key:"_isExtHostedGameURL",value:function(){var e=/^http[s]?:\/\/.*?gd_sdk_referrer_url=.*$/i;return e.test(location.href)||e.test(document.referrer)}},{key:"_isLoaderGameURL",value:function(){return/http[s]?:\/\/(html5\.gamedistribution\.com\/[A-Fa-f0-9]{32})(.*)$/i.test(location.href)&&location.href.startsWith("https://html5.gamedistribution.com")}},{key:"_getTokenGameURLConfig",value:function(){try{var e,t=/http[s]?:\/\/html5\.gamedistribution\.com\/[A-Za-z0-9]{8}\/[A-Fa-f0-9]{32}\/.*/i;if(t.test(location.href)){var n=new C(location.href,!0);if(!n.query.gd_zone_config)return;e=n.query.gd_zone_config}else if(t.test(document.referrer)){var r=new C(document.referrer,!0);if(!r.query.gd_zone_config)return;e=r.query.gd_zone_config}else{var i=new C(location.href,!0);if(!i.query.gd_zone_config)return;e=i.query.gd_zone_config}return JSON.parse(nt.decode(decodeURIComponent(e)))}catch(e){}}},{key:"_formatTokenURLSearch",value:function(e){var t="";try{t=encodeURIComponent(nt.encode(JSON.stringify(e)))}catch(e){}try{var n=new C(location.href,!0);return n.query=n.query||{},n.query.gd_zone_config=t,"?".concat(qs.stringify(n.query))}catch(e){return"?gd_zone_config=".concat(t)}}},{key:"_extendUrlQuery",value:function(e,t){var n=new C(e,!0);return n.query=Qy(Qy({},n.query),t),n.toString()}},{key:"_base64_encode",value:function(e){return nt.encode(JSON.stringify(e))}}]),e}(),t_=function(){try{return(new e_).getBridgeContext()}catch(e){return{}}}(),n_={userDeclinedTracking:document.location.search.indexOf("gdpr-tracking=0")>=0||document.cookie.indexOf("ogdpr_tracking=0")>=0,whitelabelPartner:(Jy=!1,(Xy=ut()).hasOwnProperty("xanthophyll")&&"true"===Xy.xanthophyll&&(Jy=!0),Jy)},r_=Ep.charAt,i_=Yt,a_=rn,o_=Math.floor,s_=i_("".charAt),u_=i_("".replace),c_=i_("".slice),d_=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l_=/\$([$&'`]|\d{1,2})/g,f_=gl,p_=ar,h_=Yt,m_=Py,v_=zt,g_=nr,A_=Nn,b_=Qt,y_=Ba,__=Fa,w_=Qs,x_=en,k_=function(e,t,n){return t+(n?r_(e,t).length:1)},E_=xr,S_=function(e,t,n,r,i,a){var o=n+e.length,s=r.length,u=l_;return void 0!==i&&(i=a_(i),u=d_),u_(a,u,(function(a,u){var c;switch(s_(u,0)){case"$":return"$";case"&":return e;case"`":return c_(t,0,n);case"'":return c_(t,o);case"<":c=i[c_(u,1,-1)];break;default:var d=+u;if(0===d)return a;if(d>s){var l=o_(d/10);return 0===l?a:l<=s?void 0===r[l-1]?s_(u,1):r[l-1]+s_(u,1):a}c=r[d-1]}return void 0===c?"":c}))},D_=$y,I_=Ln("replace"),R_=Math.max,C_=Math.min,O_=h_([].concat),T_=h_([].push),P_=h_("".indexOf),L_=h_("".slice),M_=function(e){return void 0===e?e:String(e)},B_="$0"==="a".replace(/./,"$0"),j_=!!/./[I_]&&""===/./[I_]("a","$0"),U_=!v_((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}));m_("replace",(function(e,t,n){var r=j_?"$":"$0";return[function(e,n){var r=x_(this),i=b_(e)?void 0:E_(e,I_);return i?p_(i,e,r,n):p_(t,w_(r),e,n)},function(e,i){var a=g_(this),o=w_(e);if("string"==typeof i&&-1===P_(i,r)&&-1===P_(i,"$<")){var s=n(t,a,o,i);if(s.done)return s.value}var u=A_(i);u||(i=w_(i));var c=a.global;if(c){var d=a.unicode;a.lastIndex=0}for(var l=[];;){var f=D_(a,o);if(null===f)break;if(T_(l,f),!c)break;""===w_(f[0])&&(a.lastIndex=k_(o,__(a.lastIndex),d))}for(var p="",h=0,m=0;m<l.length;m++){for(var v=w_((f=l[m])[0]),g=R_(C_(y_(f.index),o.length),0),A=[],b=1;b<f.length;b++)T_(A,M_(f[b]));var y=f.groups;if(u){var _=O_([v],A,g,o);void 0!==y&&T_(_,y);var w=w_(f_(i,void 0,_))}else w=S_(v,o,g,A,y,i);g>=h&&(p+=L_(o,h,g)+w,h=g+v.length)}return p+L_(o,h)}]}),!U_||!B_||j_);var F_=zt,N_=Gn,$_=Ln("iterator"),G_=!F_((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),n+=r+e})),!t.size&&!N_||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[$_]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host})),H_=na,z_=yc,Z_=Math.floor,V_=function(e,t){var n=e.length,r=Z_(n/2);return n<8?K_(e,t):q_(e,V_(z_(e,0,r),t),V_(z_(e,r),t),t)},K_=function(e,t){for(var n,r,i=e.length,a=1;a<i;){for(r=a,n=e[a];r&&t(e[r-1],n)>0;)e[r]=e[--r];r!==a++&&(e[r]=n)}return e},q_=function(e,t,n,r){for(var i=t.length,a=n.length,o=0,s=0;o<i||s<a;)e[o+s]=o<i&&s<a?r(t[o],n[s])<=0?t[o++]:n[s++]:o<i?t[o++]:n[s++];return e},W_=Gs,Y_=Pt,Q_=ar,J_=Yt,X_=Gn,ew=G_,tw=na,nw=Ic,rw=function(e,t,n){for(var r in t)H_(e,r,t[r],n);return e},iw=Hc,aw=Yp,ow=Li,sw=Gm,uw=Nn,cw=sn,dw=Sa,lw=pa,fw=nr,pw=Zn,hw=Qs,mw=Iu,vw=fi,gw=Wf,Aw=Gf,bw=Jm,yw=V_,_w=Ln("iterator"),ww="URLSearchParams",xw=ww+"Iterator",kw=ow.set,Ew=ow.getterFor(ww),Sw=ow.getterFor(xw),Dw=Object.getOwnPropertyDescriptor,Iw=function(e){if(!X_)return Y_[e];var t=Dw(Y_,e);return t&&t.value},Rw=Iw("fetch"),Cw=Iw("Request"),Ow=Iw("Headers"),Tw=Cw&&Cw.prototype,Pw=Ow&&Ow.prototype,Lw=Y_.RegExp,Mw=Y_.TypeError,Bw=Y_.decodeURIComponent,jw=Y_.encodeURIComponent,Uw=J_("".charAt),Fw=J_([].join),Nw=J_([].push),$w=J_("".replace),Gw=J_([].shift),Hw=J_([].splice),zw=J_("".split),Zw=J_("".slice),Vw=/\+/g,Kw=Array(4),qw=function(e){return Kw[e-1]||(Kw[e-1]=Lw("((?:%[\\da-f]{2}){"+e+"})","gi"))},Ww=function(e){try{return Bw(e)}catch(t){return e}},Yw=function(e){var t=$w(e,Vw," "),n=4;try{return Bw(t)}catch(e){for(;n;)t=$w(t,qw(n--),Ww);return t}},Qw=/[!'()~]|%20/g,Jw={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},Xw=function(e){return Jw[e]},ex=function(e){return $w(jw(e),Qw,Xw)},tx=aw((function(e,t){kw(this,{type:xw,iterator:gw(Ew(e).entries),kind:t})}),"Iterator",(function(){var e=Sw(this),t=e.kind,n=e.iterator.next(),r=n.value;return n.done||(n.value="keys"===t?r.key:"values"===t?r.value:[r.key,r.value]),n}),!0),nx=function(e){this.entries=[],this.url=null,void 0!==e&&(pw(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===Uw(e,0)?Zw(e,1):e:hw(e)))};nx.prototype={type:ww,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,i,a,o,s,u=Aw(e);if(u)for(n=(t=gw(e,u)).next;!(r=Q_(n,t)).done;){if(a=(i=gw(fw(r.value))).next,(o=Q_(a,i)).done||(s=Q_(a,i)).done||!Q_(a,i).done)throw Mw("Expected sequence with length 2");Nw(this.entries,{key:hw(o.value),value:hw(s.value)})}else for(var c in e)cw(e,c)&&Nw(this.entries,{key:c,value:hw(e[c])})},parseQuery:function(e){if(e)for(var t,n,r=zw(e,"&"),i=0;i<r.length;)(t=r[i++]).length&&(n=zw(t,"="),Nw(this.entries,{key:Yw(Gw(n)),value:Yw(Fw(n,"="))}))},serialize:function(){for(var e,t=this.entries,n=[],r=0;r<t.length;)e=t[r++],Nw(n,ex(e.key)+"="+ex(e.value));return Fw(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var rx=function(){sw(this,ix);var e=kw(this,new nx(arguments.length>0?arguments[0]:void 0));X_||(this.length=e.entries.length)},ix=rx.prototype;if(rw(ix,{append:function(e,t){bw(arguments.length,2);var n=Ew(this);Nw(n.entries,{key:hw(e),value:hw(t)}),X_||this.length++,n.updateURL()},delete:function(e){bw(arguments.length,1);for(var t=Ew(this),n=t.entries,r=hw(e),i=0;i<n.length;)n[i].key===r?Hw(n,i,1):i++;X_||(this.length=n.length),t.updateURL()},get:function(e){bw(arguments.length,1);for(var t=Ew(this).entries,n=hw(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){bw(arguments.length,1);for(var t=Ew(this).entries,n=hw(e),r=[],i=0;i<t.length;i++)t[i].key===n&&Nw(r,t[i].value);return r},has:function(e){bw(arguments.length,1);for(var t=Ew(this).entries,n=hw(e),r=0;r<t.length;)if(t[r++].key===n)return!0;return!1},set:function(e,t){bw(arguments.length,1);for(var n,r=Ew(this),i=r.entries,a=!1,o=hw(e),s=hw(t),u=0;u<i.length;u++)(n=i[u]).key===o&&(a?Hw(i,u--,1):(a=!0,n.value=s));a||Nw(i,{key:o,value:s}),X_||(this.length=i.length),r.updateURL()},sort:function(){var e=Ew(this);yw(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,n=Ew(this).entries,r=dw(e,arguments.length>1?arguments[1]:void 0),i=0;i<n.length;)r((t=n[i++]).value,t.key,this)},keys:function(){return new tx(this,"keys")},values:function(){return new tx(this,"values")},entries:function(){return new tx(this,"entries")}},{enumerable:!0}),tw(ix,_w,ix.entries,{name:"entries"}),tw(ix,"toString",(function(){return Ew(this).serialize()}),{enumerable:!0}),X_&&nw(ix,"size",{get:function(){return Ew(this).entries.length},configurable:!0,enumerable:!0}),iw(rx,ww),W_({global:!0,constructor:!0,forced:!ew},{URLSearchParams:rx}),!ew&&uw(Ow)){var ax=J_(Pw.has),ox=J_(Pw.set),sx=function(e){if(pw(e)){var t,n=e.body;if(lw(n)===ww)return t=e.headers?new Ow(e.headers):new Ow,ax(t,"content-type")||ox(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),mw(e,{body:vw(0,hw(n)),headers:vw(0,t)})}return e};if(uw(Rw)&&W_({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return Rw(e,arguments.length>1?sx(arguments[1]):{})}}),uw(Cw)){var ux=function(e){return sw(this,Tw),new Cw(e,arguments.length>1?sx(arguments[1]):{})};Tw.constructor=ux,ux.prototype=Tw,W_({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:ux})}}var cx={URLSearchParams:rx,getState:Ew},dx=is.includes,lx=am;Gs({target:"Array",proto:!0,forced:zt((function(){return!Array(1).includes()}))},{includes:function(e){return dx(this,e,arguments.length>1?arguments[1]:void 0)}}),lx("includes");var fx=Gs,px=qb,hx=en,mx=Qs,vx=Yb,gx=Yt("".indexOf);fx({target:"String",proto:!0,forced:!vx("includes")},{includes:function(e){return!!~gx(mx(hx(this)),mx(px(e)),arguments.length>1?arguments[1]:void 0)}});var Ax={exports:{}},bx={exports:{}},yx={exports:{}};!function(e,t){function n(e){return n="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},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t="string"==typeof e||e instanceof String;if(!t){var r=n(e);throw null===e?r="null":"object"===r&&(r=e.constructor.name),new TypeError("Expected a string but received a ".concat(r))}},e.exports=t.default,e.exports.default=t.default}(yx,yx.exports),function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),e=Date.parse(e),isNaN(e)?null:new Date(e)};var n,r=(n=yx.exports)&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default}(bx,bx.exports);var _x={exports:{}},wx={},xx={};Object.defineProperty(xx,"__esModule",{value:!0}),xx.commaDecimal=xx.dotDecimal=xx.bengaliLocales=xx.farsiLocales=xx.arabicLocales=xx.englishLocales=xx.decimal=xx.alphanumeric=xx.alpha=void 0;var kx={"en-US":/^[A-Z]+$/i,"az-AZ":/^[A-VXYZÇƏĞİıÖŞÜ]+$/i,"bg-BG":/^[А-Я]+$/i,"cs-CZ":/^[A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[A-ZÆØÅ]+$/i,"de-DE":/^[A-ZÄÖÜß]+$/i,"el-GR":/^[Α-ώ]+$/i,"es-ES":/^[A-ZÁÉÍÑÓÚÜ]+$/i,"fa-IR":/^[ابپتثجچحخدذرزژسشصضطظعغفقکگلمنوهی]+$/i,"fi-FI":/^[A-ZÅÄÖ]+$/i,"fr-FR":/^[A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[A-ZÀÉÈÌÎÓÒÙ]+$/i,"ja-JP":/^[ぁ-んァ-ヶヲ-゚一-龠ー・。、]+$/i,"nb-NO":/^[A-ZÆØÅ]+$/i,"nl-NL":/^[A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[A-ZÆØÅ]+$/i,"hu-HU":/^[A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"pl-PL":/^[A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[A-ZÃÁÀÂÄÇÉÊËÍÏÕÓÔÖÚÜ]+$/i,"ru-RU":/^[А-ЯЁ]+$/i,"sl-SI":/^[A-ZČĆĐŠŽ]+$/i,"sk-SK":/^[A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[A-ZÅÄÖ]+$/i,"th-TH":/^[ก-๐\s]+$/i,"tr-TR":/^[A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[А-ЩЬЮЯЄIЇҐі]+$/i,"vi-VN":/^[A-ZÀÁẠẢÃÂẦẤẬẨẪĂẰẮẶẲẴĐÈÉẸẺẼÊỀẾỆỂỄÌÍỊỈĨÒÓỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠÙÚỤỦŨƯỪỨỰỬỮỲÝỴỶỸ]+$/i,"ko-KR":/^[ㄱ-ㅎㅏ-ㅣ가-힣]*$/,"ku-IQ":/^[ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,ar:/^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/,he:/^[א-ת]+$/,fa:/^['آاءأؤئبپتثجچحخدذرزژسشصضطظعغفقکگلمنوهةی']+$/i,bn:/^['ঀঁংঃঅআইঈউঊঋঌএঐওঔকখগঘঙচছজঝঞটঠডঢণতথদধনপফবভমযরলশষসহ়ঽািীুূৃৄেৈোৌ্ৎৗড়ঢ়য়ৠৡৢৣৰৱ৲৳৴৵৶৷৸৹৺৻']+$/,"hi-IN":/^[\u0900-\u0961]+[\u0972-\u097F]*$/i,"si-LK":/^[\u0D80-\u0DFF]+$/};xx.alpha=kx;var Ex={"en-US":/^[0-9A-Z]+$/i,"az-AZ":/^[0-9A-VXYZÇƏĞİıÖŞÜ]+$/i,"bg-BG":/^[0-9А-Я]+$/i,"cs-CZ":/^[0-9A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[0-9A-ZÆØÅ]+$/i,"de-DE":/^[0-9A-ZÄÖÜß]+$/i,"el-GR":/^[0-9Α-ω]+$/i,"es-ES":/^[0-9A-ZÁÉÍÑÓÚÜ]+$/i,"fi-FI":/^[0-9A-ZÅÄÖ]+$/i,"fr-FR":/^[0-9A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[0-9A-ZÀÉÈÌÎÓÒÙ]+$/i,"ja-JP":/^[0-90-9ぁ-んァ-ヶヲ-゚一-龠ー・。、]+$/i,"hu-HU":/^[0-9A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"nb-NO":/^[0-9A-ZÆØÅ]+$/i,"nl-NL":/^[0-9A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[0-9A-ZÆØÅ]+$/i,"pl-PL":/^[0-9A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[0-9A-ZÃÁÀÂÄÇÉÊËÍÏÕÓÔÖÚÜ]+$/i,"ru-RU":/^[0-9А-ЯЁ]+$/i,"sl-SI":/^[0-9A-ZČĆĐŠŽ]+$/i,"sk-SK":/^[0-9A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[0-9A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[0-9А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[0-9A-ZÅÄÖ]+$/i,"th-TH":/^[ก-๙\s]+$/i,"tr-TR":/^[0-9A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[0-9А-ЩЬЮЯЄIЇҐі]+$/i,"ko-KR":/^[0-9ㄱ-ㅎㅏ-ㅣ가-힣]*$/,"ku-IQ":/^[٠١٢٣٤٥٦٧٨٩0-9ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,"vi-VN":/^[0-9A-ZÀÁẠẢÃÂẦẤẬẨẪĂẰẮẶẲẴĐÈÉẸẺẼÊỀẾỆỂỄÌÍỊỈĨÒÓỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠÙÚỤỦŨƯỪỨỰỬỮỲÝỴỶỸ]+$/i,ar:/^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/,he:/^[0-9א-ת]+$/,fa:/^['0-9آاءأؤئبپتثجچحخدذرزژسشصضطظعغفقکگلمنوهةی۱۲۳۴۵۶۷۸۹۰']+$/i,bn:/^['ঀঁংঃঅআইঈউঊঋঌএঐওঔকখগঘঙচছজঝঞটঠডঢণতথদধনপফবভমযরলশষসহ়ঽািীুূৃৄেৈোৌ্ৎৗড়ঢ়য়ৠৡৢৣ০১২৩৪৫৬৭৮৯ৰৱ৲৳৴৵৶৷৸৹৺৻']+$/,"hi-IN":/^[\u0900-\u0963]+[\u0966-\u097F]*$/i,"si-LK":/^[0-9\u0D80-\u0DFF]+$/};xx.alphanumeric=Ex;var Sx={"en-US":".",ar:"٫"};xx.decimal=Sx;var Dx=["AU","GB","HK","IN","NZ","ZA","ZM"];xx.englishLocales=Dx;for(var Ix,Rx=0;Rx<Dx.length;Rx++)kx[Ix="en-".concat(Dx[Rx])]=kx["en-US"],Ex[Ix]=Ex["en-US"],Sx[Ix]=Sx["en-US"];var Cx=["AE","BH","DZ","EG","IQ","JO","KW","LB","LY","MA","QM","QA","SA","SD","SY","TN","YE"];xx.arabicLocales=Cx;for(var Ox,Tx=0;Tx<Cx.length;Tx++)kx[Ox="ar-".concat(Cx[Tx])]=kx.ar,Ex[Ox]=Ex.ar,Sx[Ox]=Sx.ar;var Px=["IR","AF"];xx.farsiLocales=Px;for(var Lx,Mx=0;Mx<Px.length;Mx++)Ex[Lx="fa-".concat(Px[Mx])]=Ex.fa,Sx[Lx]=Sx.ar;var Bx=["BD","IN"];xx.bengaliLocales=Bx;for(var jx,Ux=0;Ux<Bx.length;Ux++)kx[jx="bn-".concat(Bx[Ux])]=kx.bn,Ex[jx]=Ex.bn,Sx[jx]=Sx["en-US"];var Fx=["ar-EG","ar-LB","ar-LY"];xx.dotDecimal=Fx;var Nx=["bg-BG","cs-CZ","da-DK","de-DE","el-GR","en-ZM","es-ES","fr-CA","fr-FR","id-ID","it-IT","ku-IQ","hi-IN","hu-HU","nb-NO","nn-NO","nl-NL","pl-PL","pt-PT","ru-RU","si-LK","sl-SI","sr-RS@latin","sr-RS","sv-SE","tr-TR","uk-UA","vi-VN"];xx.commaDecimal=Nx;for(var $x=0;$x<Fx.length;$x++)Sx[Fx[$x]]=Sx["en-US"];for(var Gx=0;Gx<Nx.length;Gx++)Sx[Nx[Gx]]=",";kx["fr-CA"]=kx["fr-FR"],Ex["fr-CA"]=Ex["fr-FR"],kx["pt-BR"]=kx["pt-PT"],Ex["pt-BR"]=Ex["pt-PT"],Sx["pt-BR"]=Sx["pt-PT"],kx["pl-Pl"]=kx["pl-PL"],Ex["pl-Pl"]=Ex["pl-PL"],Sx["pl-Pl"]=Sx["pl-PL"],kx["fa-AF"]=kx.fa,Object.defineProperty(wx,"__esModule",{value:!0}),wx.default=function(e,t){(0,zx.default)(e),t=t||{};var n=new RegExp("^(?:[-+])?(?:[0-9]+)?(?:\\".concat(t.locale?Zx.decimal[t.locale]:".","[0-9]*)?(?:[eE][\\+\\-]?(?:[0-9]+))?$"));if(""===e||"."===e||","===e||"-"===e||"+"===e)return!1;var r=parseFloat(e.replace(",","."));return n.test(e)&&(!t.hasOwnProperty("min")||r>=t.min)&&(!t.hasOwnProperty("max")||r<=t.max)&&(!t.hasOwnProperty("lt")||r<t.lt)&&(!t.hasOwnProperty("gt")||r>t.gt)},wx.locales=void 0;var Hx,zx=(Hx=yx.exports)&&Hx.__esModule?Hx:{default:Hx},Zx=xx;var Vx=Object.keys(Zx.decimal);wx.locales=Vx,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e)?parseFloat(e):NaN};var n=function(e){return e&&e.__esModule?e:{default:e}}(wx);e.exports=t.default,e.exports.default=t.default}(_x,_x.exports);var Kx={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,n.default)(e),parseInt(e,t||10)};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);e.exports=t.default,e.exports.default=t.default}(Kx,Kx.exports);var qx={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,n.default)(e),t)return"1"===e||/^true$/i.test(e);return"0"!==e&&!/^false$/i.test(e)&&""!==e};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);e.exports=t.default,e.exports.default=t.default}(qx,qx.exports);var Wx={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,n.default)(e),e===t};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);e.exports=t.default,e.exports.default=t.default}(Wx,Wx.exports);var Yx={exports:{}},Qx={exports:{}};!function(e,t){function n(e){return n="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},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){"object"===n(e)&&null!==e?e="function"==typeof e.toString?e.toString():"[object Object]":(null==e||isNaN(e)&&!e.length)&&(e="");return String(e)},e.exports=t.default,e.exports.default=t.default}(Qx,Qx.exports);var Jx={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;for(var n in t)void 0===e[n]&&(e[n]=t[n]);return e},e.exports=t.default,e.exports.default=t.default}(Jx,Jx.exports),function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,a){if((0,n.default)(e),a=(0,i.default)(a,o),a.ignoreCase)return e.toLowerCase().split((0,r.default)(t).toLowerCase()).length>a.minOccurrences;return e.split((0,r.default)(t)).length>a.minOccurrences};var n=a(yx.exports),r=a(Qx.exports),i=a(Jx.exports);function a(e){return e&&e.__esModule?e:{default:e}}var o={ignoreCase:!1,minOccurrences:1};e.exports=t.default,e.exports.default=t.default}(Yx,Yx.exports);var Xx={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){(0,n.default)(e),"[object RegExp]"!==Object.prototype.toString.call(t)&&(t=new RegExp(t,r));return!!e.match(t)};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);e.exports=t.default,e.exports.default=t.default}(Xx,Xx.exports);var ek={exports:{}},tk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var i,a;(0,n.default)(e),"object"===r(t)?(i=t.min||0,a=t.max):(i=arguments[1],a=arguments[2]);var o=encodeURI(e).split(/%..|./).length-1;return o>=i&&(void 0===a||o<=a)};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);function r(e){return r="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},r(e)}e.exports=t.default,e.exports.default=t.default}(tk,tk.exports);var nk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,n.default)(e),t=(0,r.default)(t,a),t.allow_trailing_dot&&"."===e[e.length-1]&&(e=e.substring(0,e.length-1));!0===t.allow_wildcard&&0===e.indexOf("*.")&&(e=e.substring(2));var i=e.split("."),o=i[i.length-1];if(t.require_tld){if(i.length<2)return!1;if(!t.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(o))return!1;if(/\s/.test(o))return!1}if(!t.allow_numeric_tld&&/^\d+$/.test(o))return!1;return i.every((function(e){return!(e.length>63&&!t.ignore_max_length)&&(!!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(e)&&(!/[\uff01-\uff5e]/.test(e)&&(!/^-|-$/.test(e)&&!(!t.allow_underscores&&/_/.test(e)))))}))};var n=i(yx.exports),r=i(Jx.exports);function i(e){return e&&e.__esModule?e:{default:e}}var a={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};e.exports=t.default,e.exports.default=t.default}(nk,nk.exports);var rk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if((0,n.default)(t),r=String(r),!r)return e(t,4)||e(t,6);if("4"===r)return a.test(t);if("6"===r)return s.test(t);return!1};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",i="(".concat(r,"[.]){3}").concat(r),a=new RegExp("^".concat(i,"$")),o="(?:[0-9a-fA-F]{1,4})",s=new RegExp("^("+"(?:".concat(o,":){7}(?:").concat(o,"|:)|")+"(?:".concat(o,":){6}(?:").concat(i,"|:").concat(o,"|:)|")+"(?:".concat(o,":){5}(?::").concat(i,"|(:").concat(o,"){1,2}|:)|")+"(?:".concat(o,":){4}(?:(:").concat(o,"){0,1}:").concat(i,"|(:").concat(o,"){1,3}|:)|")+"(?:".concat(o,":){3}(?:(:").concat(o,"){0,2}:").concat(i,"|(:").concat(o,"){1,4}|:)|")+"(?:".concat(o,":){2}(?:(:").concat(o,"){0,3}:").concat(i,"|(:").concat(o,"){1,5}|:)|")+"(?:".concat(o,":){1}(?:(:").concat(o,"){0,4}:").concat(i,"|(:").concat(o,"){1,6}|:)|")+"(?::((?::".concat(o,"){0,5}:").concat(i,"|(?::").concat(o,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");e.exports=t.default,e.exports.default=t.default}(rk,rk.exports),function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,n.default)(e),t=(0,r.default)(t,u),t.require_display_name||t.allow_display_name){var s=e.match(c);if(s){var v=s[1];if(e=e.replace(v,"").replace(/(^<|>$)/g,""),v.endsWith(" ")&&(v=v.slice(0,-1)),!function(e){var t=e.replace(/^"(.+)"$/,"$1");if(!t.trim())return!1;if(/[\.";<>]/.test(t)){if(t===e)return!1;if(!(t.split('"').length===t.split('\\"').length))return!1}return!0}(v))return!1}else if(t.require_display_name)return!1}if(!t.ignore_max_length&&e.length>m)return!1;var g=e.split("@"),A=g.pop(),b=A.toLowerCase();if(t.host_blacklist.includes(b))return!1;if(t.host_whitelist.length>0&&!t.host_whitelist.includes(b))return!1;var y=g.join("@");if(t.domain_specific_validation&&("gmail.com"===b||"googlemail.com"===b)){var _=(y=y.toLowerCase()).split("+")[0];if(!(0,i.default)(_.replace(/\./g,""),{min:6,max:30}))return!1;for(var w=_.split("."),x=0;x<w.length;x++)if(!l.test(w[x]))return!1}if(!(!1!==t.ignore_max_length||(0,i.default)(y,{max:64})&&(0,i.default)(A,{max:254})))return!1;if(!(0,a.default)(A,{require_tld:t.require_tld,ignore_max_length:t.ignore_max_length})){if(!t.allow_ip_domain)return!1;if(!(0,o.default)(A)){if(!A.startsWith("[")||!A.endsWith("]"))return!1;var k=A.slice(1,-1);if(0===k.length||!(0,o.default)(k))return!1}}if('"'===y[0])return y=y.slice(1,y.length-1),t.allow_utf8_local_part?h.test(y):f.test(y);for(var E=t.allow_utf8_local_part?p:d,S=y.split("."),D=0;D<S.length;D++)if(!E.test(S[D]))return!1;if(t.blacklisted_chars&&-1!==y.search(new RegExp("[".concat(t.blacklisted_chars,"]+"),"g")))return!1;return!0};var n=s(yx.exports),r=s(Jx.exports),i=s(tk.exports),a=s(nk.exports),o=s(rk.exports);function s(e){return e&&e.__esModule?e:{default:e}}var u={allow_display_name:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0,blacklisted_chars:"",ignore_max_length:!1,host_blacklist:[],host_whitelist:[]},c=/^([^\x00-\x1F\x7F-\x9F\cX]+)</i,d=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,l=/^[a-z\d]+$/,f=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,p=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,h=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i,m=254;e.exports=t.default,e.exports.default=t.default}(ek,ek.exports);var ik={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,n.default)(e),!e||/[\s<>]/.test(e))return!1;if(0===e.indexOf("mailto:"))return!1;if(t=(0,a.default)(t,u),t.validate_length&&e.length>=2083)return!1;if(!t.allow_fragments&&e.includes("#"))return!1;if(!t.allow_query_components&&(e.includes("?")||e.includes("&")))return!1;var o,d,f,p,h,m,v,g;if(v=e.split("#"),e=v.shift(),v=e.split("?"),e=v.shift(),v=e.split("://"),v.length>1){if(o=v.shift().toLowerCase(),t.require_valid_protocol&&-1===t.protocols.indexOf(o))return!1}else{if(t.require_protocol)return!1;if("//"===e.slice(0,2)){if(!t.allow_protocol_relative_urls)return!1;v[0]=e.slice(2)}}if(e=v.join("://"),""===e)return!1;if(v=e.split("/"),e=v.shift(),""===e&&!t.require_host)return!0;if(v=e.split("@"),v.length>1){if(t.disallow_auth)return!1;if(""===v[0])return!1;if((d=v.shift()).indexOf(":")>=0&&d.split(":").length>2)return!1;var A=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(d.split(":"),2),b=A[0],y=A[1];if(""===b&&""===y)return!1}p=v.join("@"),m=null,g=null;var _=p.match(c);_?(f="",g=_[1],m=_[2]||null):(f=(v=p.split(":")).shift(),v.length&&(m=v.join(":")));if(null!==m&&m.length>0){if(h=parseInt(m,10),!/^[0-9]+$/.test(m)||h<=0||h>65535)return!1}else if(t.require_port)return!1;if(t.host_whitelist)return l(f,t.host_whitelist);if(""===f&&!t.require_host)return!0;if(!((0,i.default)(f)||(0,r.default)(f,t)||g&&(0,i.default)(g,6)))return!1;if(f=f||g,t.host_blacklist&&l(f,t.host_blacklist))return!1;return!0};var n=o(yx.exports),r=o(nk.exports),i=o(rk.exports),a=o(Jx.exports);function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var u={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_port:!1,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1,allow_fragments:!0,allow_query_components:!0,validate_length:!0},c=/^\[([^\]]+)\](?::([0-9]+))?$/;function d(e){return"[object RegExp]"===Object.prototype.toString.call(e)}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];if(e===r||d(r)&&r.test(e))return!0}return!1}e.exports=t.default,e.exports.default=t.default}(ik,ik.exports);var ak={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,c){(0,n.default)(t),null!=c&&c.eui&&(c.eui=String(c.eui));if(null!=c&&c.no_colons||null!=c&&c.no_separators)return"48"===c.eui?i.test(t):"64"===c.eui?s.test(t):i.test(t)||s.test(t);if("48"===(null==c?void 0:c.eui))return r.test(t)||a.test(t);if("64"===(null==c?void 0:c.eui))return o.test(t)||u.test(t);return e(t,{eui:"48"})||e(t,{eui:"64"})};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r=/^(?:[0-9a-fA-F]{2}([-:\s]))([0-9a-fA-F]{2}\1){4}([0-9a-fA-F]{2})$/,i=/^([0-9a-fA-F]){12}$/,a=/^([0-9a-fA-F]{4}\.){2}([0-9a-fA-F]{4})$/,o=/^(?:[0-9a-fA-F]{2}([-:\s]))([0-9a-fA-F]{2}\1){6}([0-9a-fA-F]{2})$/,s=/^([0-9a-fA-F]){16}$/,u=/^([0-9a-fA-F]{4}\.){3}([0-9a-fA-F]{4})$/;e.exports=t.default,e.exports.default=t.default}(ak,ak.exports);var ok={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";(0,n.default)(e);var i=e.split("/");if(2!==i.length)return!1;if(!a.test(i[1]))return!1;if(i[1].length>1&&i[1].startsWith("0"))return!1;var u=(0,r.default)(i[0],t);if(!u)return!1;var c=null;switch(String(t)){case"4":c=o;break;case"6":c=s;break;default:c=(0,r.default)(i[0],"6")?s:o}return i[1]<=c&&i[1]>=0};var n=i(yx.exports),r=i(rk.exports);function i(e){return e&&e.__esModule?e:{default:e}}var a=/^\d{1,3}$/,o=32,s=128;e.exports=t.default,e.exports.default=t.default}(ok,ok.exports);var sk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){t="string"==typeof t?(0,n.default)({format:t},o):(0,n.default)(t,o);if("string"==typeof e&&(m=t.format,/(^(y{4}|y{2})[.\/-](m{1,2})[.\/-](d{1,2})$)|(^(m{1,2})[.\/-](d{1,2})[.\/-]((y{4}|y{2})$))|(^(d{1,2})[.\/-](m{1,2})[.\/-]((y{4}|y{2})$))/gi.test(m))){var a,s=t.delimiters.find((function(e){return-1!==t.format.indexOf(e)})),u=t.strictMode?s:t.delimiters.find((function(t){return-1!==e.indexOf(t)})),c=function(e,t){for(var n=[],r=Math.min(e.length,t.length),i=0;i<r;i++)n.push([e[i],t[i]]);return n}(e.split(u),t.format.toLowerCase().split(s)),d={},l=function(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=i(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw o}}}}(c);try{for(l.s();!(a=l.n()).done;){var f=r(a.value,2),p=f[0],h=f[1];if(p.length!==h.length)return!1;d[h.charAt(0)]=p}}catch(e){l.e(e)}finally{l.f()}return new Date("".concat(d.m,"/").concat(d.d,"/").concat(d.y)).getDate()===+d.d}var m;if(!t.strictMode)return"[object Date]"===Object.prototype.toString.call(e)&&isFinite(e);return!1};var n=function(e){return e&&e.__esModule?e:{default:e}}(Jx.exports);function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}(e,t)||i(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var o={format:"YYYY/MM/DD",delimiters:["/","-"],strictMode:!1};e.exports=t.default,e.exports.default=t.default}(sk,sk.exports);var uk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return t=(0,n.default)(t,r),"string"==typeof e&&i[t.hourFormat][t.mode].test(e)};var n=function(e){return e&&e.__esModule?e:{default:e}}(Jx.exports);var r={hourFormat:"hour24",mode:"default"},i={hour24:{default:/^([01]?[0-9]|2[0-3]):([0-5][0-9])$/,withSeconds:/^([01]?[0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$/},hour12:{default:/^(0?[1-9]|1[0-2]):([0-5][0-9]) (A|P)M$/,withSeconds:/^(0?[1-9]|1[0-2]):([0-5][0-9]):([0-5][0-9]) (A|P)M$/}};e.exports=t.default,e.exports.default=t.default}(uk,uk.exports);var ck={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r;if((0,n.default)(e),t.loose)return a.includes(e.toLowerCase());return i.includes(e)};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r={loose:!1},i=["true","false","1","0"],a=[].concat(i,["yes","no"]);e.exports=t.default,e.exports.default=t.default}(ck,ck.exports);var dk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,n.default)(e),"en_US_POSIX"===e||"ca_ES_VALENCIA"===e)return!0;return r.test(e)};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r=/^[A-Za-z]{2,4}([_-]([A-Za-z]{4}|[\d]{3}))?([_-]([A-Za-z]{2}|[\d]{3}))?$/;e.exports=t.default,e.exports.default=t.default}(dk,dk.exports);var lk={};Object.defineProperty(lk,"__esModule",{value:!0}),lk.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,fk.default)(e);var r=e,i=n.ignore;if(i)if(i instanceof RegExp)r=r.replace(i,"");else{if("string"!=typeof i)throw new Error("ignore should be instance of a String or RegExp");r=r.replace(new RegExp("[".concat(i.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),"]"),"g"),"")}if(t in pk.alpha)return pk.alpha[t].test(r);throw new Error("Invalid locale '".concat(t,"'"))},lk.locales=void 0;var fk=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports),pk=xx;var hk=Object.keys(pk.alpha);lk.locales=hk;var mk={};Object.defineProperty(mk,"__esModule",{value:!0}),mk.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,vk.default)(e);var r=e,i=n.ignore;if(i)if(i instanceof RegExp)r=r.replace(i,"");else{if("string"!=typeof i)throw new Error("ignore should be instance of a String or RegExp");r=r.replace(new RegExp("[".concat(i.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),"]"),"g"),"")}if(t in gk.alphanumeric)return gk.alphanumeric[t].test(r);throw new Error("Invalid locale '".concat(t,"'"))},mk.locales=void 0;var vk=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports),gk=xx;var Ak=Object.keys(gk.alphanumeric);mk.locales=Ak;var bk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,n.default)(e),t&&t.no_symbols)return i.test(e);return new RegExp("^[+-]?([0-9]*[".concat((t||{}).locale?r.decimal[t.locale]:".","])?[0-9]+$")).test(e)};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports),r=xx;var i=/^[0-9]+$/;e.exports=t.default,e.exports.default=t.default}(bk,bk.exports);var yk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,n.default)(e);var i=e.replace(/\s/g,"").toUpperCase();return t.toUpperCase()in r&&r[t].test(i)};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r={AM:/^[A-Z]{2}\d{7}$/,AR:/^[A-Z]{3}\d{6}$/,AT:/^[A-Z]\d{7}$/,AU:/^[A-Z]\d{7}$/,AZ:/^[A-Z]{2,3}\d{7,8}$/,BE:/^[A-Z]{2}\d{6}$/,BG:/^\d{9}$/,BR:/^[A-Z]{2}\d{6}$/,BY:/^[A-Z]{2}\d{7}$/,CA:/^[A-Z]{2}\d{6}$/,CH:/^[A-Z]\d{7}$/,CN:/^G\d{8}$|^E(?![IO])[A-Z0-9]\d{7}$/,CY:/^[A-Z](\d{6}|\d{8})$/,CZ:/^\d{8}$/,DE:/^[CFGHJKLMNPRTVWXYZ0-9]{9}$/,DK:/^\d{9}$/,DZ:/^\d{9}$/,EE:/^([A-Z]\d{7}|[A-Z]{2}\d{7})$/,ES:/^[A-Z0-9]{2}([A-Z0-9]?)\d{6}$/,FI:/^[A-Z]{2}\d{7}$/,FR:/^\d{2}[A-Z]{2}\d{5}$/,GB:/^\d{9}$/,GR:/^[A-Z]{2}\d{7}$/,HR:/^\d{9}$/,HU:/^[A-Z]{2}(\d{6}|\d{7})$/,IE:/^[A-Z0-9]{2}\d{7}$/,IN:/^[A-Z]{1}-?\d{7}$/,ID:/^[A-C]\d{7}$/,IR:/^[A-Z]\d{8}$/,IS:/^(A)\d{7}$/,IT:/^[A-Z0-9]{2}\d{7}$/,JM:/^[Aa]\d{7}$/,JP:/^[A-Z]{2}\d{7}$/,KR:/^[MS]\d{8}$/,KZ:/^[a-zA-Z]\d{7}$/,LI:/^[a-zA-Z]\d{5}$/,LT:/^[A-Z0-9]{8}$/,LU:/^[A-Z0-9]{8}$/,LV:/^[A-Z0-9]{2}\d{7}$/,LY:/^[A-Z0-9]{8}$/,MT:/^\d{7}$/,MZ:/^([A-Z]{2}\d{7})|(\d{2}[A-Z]{2}\d{5})$/,MY:/^[AHK]\d{8}$/,MX:/^\d{10,11}$/,NL:/^[A-Z]{2}[A-Z0-9]{6}\d$/,NZ:/^([Ll]([Aa]|[Dd]|[Ff]|[Hh])|[Ee]([Aa]|[Pp])|[Nn])\d{6}$/,PH:/^([A-Z](\d{6}|\d{7}[A-Z]))|([A-Z]{2}(\d{6}|\d{7}))$/,PK:/^[A-Z]{2}\d{7}$/,PL:/^[A-Z]{2}\d{7}$/,PT:/^[A-Z]\d{6}$/,RO:/^\d{8,9}$/,RU:/^\d{9}$/,SE:/^\d{8}$/,SL:/^(P)[A-Z]\d{7}$/,SK:/^[0-9A-Z]\d{7}$/,TH:/^[A-Z]{1,2}\d{6,7}$/,TR:/^[A-Z]\d{8}$/,UA:/^[A-Z]{2}\d{6}$/,US:/^\d{9}$/};e.exports=t.default,e.exports.default=t.default}(yk,yk.exports);var _k={exports:{}},wk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,n.default)(e),t=t||{};var a=t.hasOwnProperty("allow_leading_zeroes")&&!t.allow_leading_zeroes?r:i,o=!t.hasOwnProperty("min")||e>=t.min,s=!t.hasOwnProperty("max")||e<=t.max,u=!t.hasOwnProperty("lt")||e<t.lt,c=!t.hasOwnProperty("gt")||e>t.gt;return a.test(e)&&o&&s&&u&&c};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r=/^(?:[-+]?(?:0|[1-9][0-9]*))$/,i=/^[-+]?[0-9]+$/;e.exports=t.default,e.exports.default=t.default}(wk,wk.exports),function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e,{min:0,max:65535})};var n=function(e){return e&&e.__esModule?e:{default:e}}(wk.exports);e.exports=t.default,e.exports.default=t.default}(_k,_k.exports);var xk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e),e===e.toLowerCase()};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);e.exports=t.default,e.exports.default=t.default}(xk,xk.exports);var kk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e),e===e.toUpperCase()};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);e.exports=t.default,e.exports.default=t.default}(kk,kk.exports);var Ek={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,n.default)(e),t=t||{};var a=r;t.allow_hyphens&&(a=i);if(!a.test(e))return!1;e=e.replace(/-/g,"");for(var o=0,s=2,u=0;u<14;u++){var c=e.substring(14-u-1,14-u),d=parseInt(c,10)*s;o+=d>=10?d%10+1:d,1===s?s+=1:s-=1}if((10-o%10)%10!==parseInt(e.substring(14,15),10))return!1;return!0};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r=/^[0-9]{15}$/,i=/^\d{2}-\d{6}-\d{6}-\d{1}$/;e.exports=t.default,e.exports.default=t.default}(Ek,Ek.exports);var Sk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e),r.test(e)};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r=/^[\x00-\x7F]+$/;e.exports=t.default,e.exports.default=t.default}(Sk,Sk.exports);var Dk={};Object.defineProperty(Dk,"__esModule",{value:!0}),Dk.default=function(e){return(0,Ik.default)(e),Rk.test(e)},Dk.fullWidth=void 0;var Ik=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var Rk=/[^\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;Dk.fullWidth=Rk;var Ck={};Object.defineProperty(Ck,"__esModule",{value:!0}),Ck.default=function(e){return(0,Ok.default)(e),Tk.test(e)},Ck.halfWidth=void 0;var Ok=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var Tk=/[\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;Ck.halfWidth=Tk;var Pk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e),r.fullWidth.test(e)&&i.halfWidth.test(e)};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports),r=Dk,i=Ck;e.exports=t.default,e.exports.default=t.default}(Pk,Pk.exports);var Lk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e),r.test(e)};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r=/[^\x00-\x7F]/;e.exports=t.default,e.exports.default=t.default}(Lk,Lk.exports);var Mk={exports:{}},Bk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=e.join("");return new RegExp(n,t)},e.exports=t.default,e.exports.default=t.default}(Bk,Bk.exports),function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e),i.test(e)};var n=r(yx.exports);function r(e){return e&&e.__esModule?e:{default:e}}var i=(0,r(Bk.exports).default)(["^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)","(?:-((?:0|[1-9]\\d*|\\d*[a-z-][0-9a-z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-z-][0-9a-z-]*))*))","?(?:\\+([0-9a-z-]+(?:\\.[0-9a-z-]+)*))?$"],"i");e.exports=t.default,e.exports.default=t.default}(Mk,Mk.exports);var jk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e),r.test(e)};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r=/[\uD800-\uDBFF][\uDC00-\uDFFF]/;e.exports=t.default,e.exports.default=t.default}(jk,jk.exports);var Uk={exports:{}},Fk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(e,t){return e.some((function(e){return t===e}))};t.default=n,e.exports=t.default,e.exports.default=t.default}(Fk,Fk.exports),function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),t=(0,n.default)(t,s),t.locale in a.decimal)return!(0,i.default)(u,e.replace(/ /g,""))&&function(e){var t=new RegExp("^[-+]?([0-9]+)?(\\".concat(a.decimal[e.locale],"[0-9]{").concat(e.decimal_digits,"})").concat(e.force_decimal?"":"?","$"));return t}(t).test(e);throw new Error("Invalid locale '".concat(t.locale,"'"))};var n=o(Jx.exports),r=o(yx.exports),i=o(Fk.exports),a=xx;function o(e){return e&&e.__esModule?e:{default:e}}var s={force_decimal:!1,decimal_digits:"1,",locale:"en-US"},u=["","-","+"];e.exports=t.default,e.exports.default=t.default}(Uk,Uk.exports);var Nk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e),r.test(e)};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r=/^(0x|0h)?[0-9A-F]+$/i;e.exports=t.default,e.exports.default=t.default}(Nk,Nk.exports);var $k={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e),r.test(e)};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r=/^(0o)?[0-7]+$/i;e.exports=t.default,e.exports.default=t.default}($k,$k.exports);var Gk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,n.default)(e),(0,r.default)(e)%parseInt(t,10)==0};var n=i(yx.exports),r=i(_x.exports);function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default}(Gk,Gk.exports);var Hk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e),r.test(e)};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r=/^#?([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i;e.exports=t.default,e.exports.default=t.default}(Hk,Hk.exports);var zk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if((0,n.default)(e),!t)return r.test(e)||i.test(e);return r.test(e)||i.test(e)||a.test(e)||o.test(e)};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r=/^rgb\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){2}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\)$/,i=/^rgba\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){3}(0?\.\d|1(\.0)?|0(\.0)?)\)$/,a=/^rgb\((([0-9]%|[1-9][0-9]%|100%),){2}([0-9]%|[1-9][0-9]%|100%)\)$/,o=/^rgba\((([0-9]%|[1-9][0-9]%|100%),){3}(0?\.\d|1(\.0)?|0(\.0)?)\)$/;e.exports=t.default,e.exports.default=t.default}(zk,zk.exports);var Zk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,n.default)(e);var t=e.replace(/\s+/g," ").replace(/\s?(hsla?\(|\)|,)\s?/gi,"$1");if(-1!==t.indexOf(","))return r.test(t);return i.test(t)};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r=/^hsla?\(((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?))(deg|grad|rad|turn)?(,(\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%){2}(,((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%?))?\)$/i,i=/^hsla?\(((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?))(deg|grad|rad|turn)?(\s(\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%){2}\s?(\/\s((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%?)\s?)?\)$/i;e.exports=t.default,e.exports.default=t.default}(Zk,Zk.exports);var Vk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e),r.test(e)};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r=/^[A-Z]{2}[0-9A-Z]{3}\d{2}\d{5}$/;e.exports=t.default,e.exports.default=t.default}(Vk,Vk.exports);var Kk={};Object.defineProperty(Kk,"__esModule",{value:!0}),Kk.default=function(e){return(0,qk.default)(e),function(e){var t=e.replace(/[\s\-]+/gi,"").toUpperCase(),n=t.slice(0,2).toUpperCase();return n in Wk&&Wk[n].test(t)}(e)&&function(e){var t=e.replace(/[^A-Z0-9]+/gi,"").toUpperCase();return 1===(t.slice(4)+t.slice(0,4)).replace(/[A-Z]/g,(function(e){return e.charCodeAt(0)-55})).match(/\d{1,7}/g).reduce((function(e,t){return Number(e+t)%97}),"")}(e)},Kk.locales=void 0;var qk=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var Wk={AD:/^(AD[0-9]{2})\d{8}[A-Z0-9]{12}$/,AE:/^(AE[0-9]{2})\d{3}\d{16}$/,AL:/^(AL[0-9]{2})\d{8}[A-Z0-9]{16}$/,AT:/^(AT[0-9]{2})\d{16}$/,AZ:/^(AZ[0-9]{2})[A-Z0-9]{4}\d{20}$/,BA:/^(BA[0-9]{2})\d{16}$/,BE:/^(BE[0-9]{2})\d{12}$/,BG:/^(BG[0-9]{2})[A-Z]{4}\d{6}[A-Z0-9]{8}$/,BH:/^(BH[0-9]{2})[A-Z]{4}[A-Z0-9]{14}$/,BR:/^(BR[0-9]{2})\d{23}[A-Z]{1}[A-Z0-9]{1}$/,BY:/^(BY[0-9]{2})[A-Z0-9]{4}\d{20}$/,CH:/^(CH[0-9]{2})\d{5}[A-Z0-9]{12}$/,CR:/^(CR[0-9]{2})\d{18}$/,CY:/^(CY[0-9]{2})\d{8}[A-Z0-9]{16}$/,CZ:/^(CZ[0-9]{2})\d{20}$/,DE:/^(DE[0-9]{2})\d{18}$/,DK:/^(DK[0-9]{2})\d{14}$/,DO:/^(DO[0-9]{2})[A-Z]{4}\d{20}$/,EE:/^(EE[0-9]{2})\d{16}$/,EG:/^(EG[0-9]{2})\d{25}$/,ES:/^(ES[0-9]{2})\d{20}$/,FI:/^(FI[0-9]{2})\d{14}$/,FO:/^(FO[0-9]{2})\d{14}$/,FR:/^(FR[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/,GB:/^(GB[0-9]{2})[A-Z]{4}\d{14}$/,GE:/^(GE[0-9]{2})[A-Z0-9]{2}\d{16}$/,GI:/^(GI[0-9]{2})[A-Z]{4}[A-Z0-9]{15}$/,GL:/^(GL[0-9]{2})\d{14}$/,GR:/^(GR[0-9]{2})\d{7}[A-Z0-9]{16}$/,GT:/^(GT[0-9]{2})[A-Z0-9]{4}[A-Z0-9]{20}$/,HR:/^(HR[0-9]{2})\d{17}$/,HU:/^(HU[0-9]{2})\d{24}$/,IE:/^(IE[0-9]{2})[A-Z0-9]{4}\d{14}$/,IL:/^(IL[0-9]{2})\d{19}$/,IQ:/^(IQ[0-9]{2})[A-Z]{4}\d{15}$/,IR:/^(IR[0-9]{2})0\d{2}0\d{18}$/,IS:/^(IS[0-9]{2})\d{22}$/,IT:/^(IT[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/,JO:/^(JO[0-9]{2})[A-Z]{4}\d{22}$/,KW:/^(KW[0-9]{2})[A-Z]{4}[A-Z0-9]{22}$/,KZ:/^(KZ[0-9]{2})\d{3}[A-Z0-9]{13}$/,LB:/^(LB[0-9]{2})\d{4}[A-Z0-9]{20}$/,LC:/^(LC[0-9]{2})[A-Z]{4}[A-Z0-9]{24}$/,LI:/^(LI[0-9]{2})\d{5}[A-Z0-9]{12}$/,LT:/^(LT[0-9]{2})\d{16}$/,LU:/^(LU[0-9]{2})\d{3}[A-Z0-9]{13}$/,LV:/^(LV[0-9]{2})[A-Z]{4}[A-Z0-9]{13}$/,MC:/^(MC[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/,MD:/^(MD[0-9]{2})[A-Z0-9]{20}$/,ME:/^(ME[0-9]{2})\d{18}$/,MK:/^(MK[0-9]{2})\d{3}[A-Z0-9]{10}\d{2}$/,MR:/^(MR[0-9]{2})\d{23}$/,MT:/^(MT[0-9]{2})[A-Z]{4}\d{5}[A-Z0-9]{18}$/,MU:/^(MU[0-9]{2})[A-Z]{4}\d{19}[A-Z]{3}$/,MZ:/^(MZ[0-9]{2})\d{21}$/,NL:/^(NL[0-9]{2})[A-Z]{4}\d{10}$/,NO:/^(NO[0-9]{2})\d{11}$/,PK:/^(PK[0-9]{2})[A-Z0-9]{4}\d{16}$/,PL:/^(PL[0-9]{2})\d{24}$/,PS:/^(PS[0-9]{2})[A-Z0-9]{4}\d{21}$/,PT:/^(PT[0-9]{2})\d{21}$/,QA:/^(QA[0-9]{2})[A-Z]{4}[A-Z0-9]{21}$/,RO:/^(RO[0-9]{2})[A-Z]{4}[A-Z0-9]{16}$/,RS:/^(RS[0-9]{2})\d{18}$/,SA:/^(SA[0-9]{2})\d{2}[A-Z0-9]{18}$/,SC:/^(SC[0-9]{2})[A-Z]{4}\d{20}[A-Z]{3}$/,SE:/^(SE[0-9]{2})\d{20}$/,SI:/^(SI[0-9]{2})\d{15}$/,SK:/^(SK[0-9]{2})\d{20}$/,SM:/^(SM[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/,SV:/^(SV[0-9]{2})[A-Z0-9]{4}\d{20}$/,TL:/^(TL[0-9]{2})\d{19}$/,TN:/^(TN[0-9]{2})\d{20}$/,TR:/^(TR[0-9]{2})\d{5}[A-Z0-9]{17}$/,UA:/^(UA[0-9]{2})\d{6}[A-Z0-9]{19}$/,VA:/^(VA[0-9]{2})\d{18}$/,VG:/^(VG[0-9]{2})[A-Z0-9]{4}\d{16}$/,XK:/^(XK[0-9]{2})\d{16}$/};var Yk=Object.keys(Wk);Kk.locales=Yk;var Qk={exports:{}},Jk={};Object.defineProperty(Jk,"__esModule",{value:!0}),Jk.default=function(e){return(0,Xk.default)(e),eE.has(e.toUpperCase())},Jk.CountryCodes=void 0;var Xk=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var eE=new Set(["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]);var tE=eE;Jk.CountryCodes=tE,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,n.default)(e);var t=e.slice(4,6).toUpperCase();if(!r.CountryCodes.has(t)&&"XK"!==t)return!1;return i.test(e)};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports),r=Jk;var i=/^[A-Za-z]{6}[A-Za-z0-9]{2}([A-Za-z0-9]{3})?$/;e.exports=t.default,e.exports.default=t.default}(Qk,Qk.exports);var nE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e),r.test(e)};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r=/^[a-f0-9]{32}$/;e.exports=t.default,e.exports.default=t.default}(nE,nE.exports);var rE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,n.default)(e),new RegExp("^[a-fA-F0-9]{".concat(r[t],"}$")).test(e)};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r={md5:32,md4:32,sha1:40,sha256:64,sha384:96,sha512:128,ripemd128:32,ripemd160:40,tiger128:32,tiger160:40,tiger192:48,crc32:8,crc32b:8};e.exports=t.default,e.exports.default=t.default}(rE,rE.exports);var iE={exports:{}},aE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,n.default)(e),t=(0,r.default)(t,s);var i=e.length;if(t.urlSafe)return o.test(e);if(i%4!=0||a.test(e))return!1;var u=e.indexOf("=");return-1===u||u===i-1||u===i-2&&"="===e[i-1]};var n=i(yx.exports),r=i(Jx.exports);function i(e){return e&&e.__esModule?e:{default:e}}var a=/[^A-Z0-9+\/=]/i,o=/^[A-Z0-9_\-]*$/i,s={urlSafe:!1};e.exports=t.default,e.exports.default=t.default}(aE,aE.exports),function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,n.default)(e);var t=e.split("."),i=t.length;if(i>3||i<2)return!1;return t.reduce((function(e,t){return e&&(0,r.default)(t,{urlSafe:!0})}),!0)};var n=i(yx.exports),r=i(aE.exports);function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default}(iE,iE.exports);var oE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,n.default)(e);try{t=(0,r.default)(t,o);var i=[];t.allow_primitives&&(i=[null,!1,!0]);var s=JSON.parse(e);return i.includes(s)||!!s&&"object"===a(s)}catch(e){}return!1};var n=i(yx.exports),r=i(Jx.exports);function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return a="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},a(e)}var o={allow_primitives:!1};e.exports=t.default,e.exports.default=t.default}(oE,oE.exports);var sE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,n.default)(e),t=(0,r.default)(t,a),0===(t.ignore_whitespace?e.trim().length:e.length)};var n=i(yx.exports),r=i(Jx.exports);function i(e){return e&&e.__esModule?e:{default:e}}var a={ignore_whitespace:!1};e.exports=t.default,e.exports.default=t.default}(sE,sE.exports);var uE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var i,a;(0,n.default)(e),"object"===r(t)?(i=t.min||0,a=t.max):(i=arguments[1]||0,a=arguments[2]);var o=e.match(/(\uFE0F|\uFE0E)/g)||[],s=e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g)||[],u=e.length-o.length-s.length;return u>=i&&(void 0===a||u<=a)};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);function r(e){return r="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},r(e)}e.exports=t.default,e.exports.default=t.default}(uE,uE.exports);var cE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,n.default)(e);var i=r[[void 0,null].includes(t)?"all":t];return!!i&&i.test(e)};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r={1:/^[0-9A-F]{8}-[0-9A-F]{4}-1[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,2:/^[0-9A-F]{8}-[0-9A-F]{4}-2[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,3:/^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,4:/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,5:/^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,all:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i};e.exports=t.default,e.exports.default=t.default}(cE,cE.exports);var dE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e),(0,r.default)(e)&&24===e.length};var n=i(yx.exports),r=i(Nk.exports);function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default}(dE,dE.exports);var lE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r=(null==t?void 0:t.comparisonDate)||t||Date().toString(),i=(0,n.default)(r),a=(0,n.default)(e);return!!(a&&i&&a>i)};var n=function(e){return e&&e.__esModule?e:{default:e}}(bx.exports);e.exports=t.default,e.exports.default=t.default}(lE,lE.exports);var fE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:String(new Date);(0,n.default)(e);var i=(0,r.default)(t),a=(0,r.default)(e);return!!(a&&i&&a<i)};var n=i(yx.exports),r=i(bx.exports);function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default}(fE,fE.exports);var pE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var i;if((0,n.default)(e),"[object Array]"===Object.prototype.toString.call(t)){var o=[];for(i in t)({}).hasOwnProperty.call(t,i)&&(o[i]=(0,r.default)(t[i]));return o.indexOf(e)>=0}if("object"===a(t))return t.hasOwnProperty(e);if(t&&"function"==typeof t.indexOf)return t.indexOf(e)>=0;return!1};var n=i(yx.exports),r=i(Qx.exports);function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return a="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},a(e)}e.exports=t.default,e.exports.default=t.default}(pE,pE.exports);var hE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,n.default)(e);for(var t,r,i,a=e.replace(/[- ]+/g,""),o=0,s=a.length-1;s>=0;s--)t=a.substring(s,s+1),r=parseInt(t,10),o+=i&&(r*=2)>=10?r%10+1:r,i=!i;return!(o%10!=0||!a)};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);e.exports=t.default,e.exports.default=t.default}(hE,hE.exports);var mE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,n.default)(e);var i=t.provider,s=e.replace(/[- ]+/g,"");if(i&&i.toLowerCase()in a){if(!a[i.toLowerCase()].test(s))return!1}else{if(i&&!(i.toLowerCase()in a))throw new Error("".concat(i," is not a valid credit card provider."));if(!o.test(s))return!1}return(0,r.default)(e)};var n=i(yx.exports),r=i(hE.exports);function i(e){return e&&e.__esModule?e:{default:e}}var a={amex:/^3[47][0-9]{13}$/,dinersclub:/^3(?:0[0-5]|[68][0-9])[0-9]{11}$/,discover:/^6(?:011|5[0-9][0-9])[0-9]{12,15}$/,jcb:/^(?:2131|1800|35\d{3})\d{11}$/,mastercard:/^5[1-5][0-9]{2}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}$/,unionpay:/^(6[27][0-9]{14}|^(81[0-9]{14,17}))$/,visa:/^(?:4[0-9]{12})(?:[0-9]{3,6})?$/},o=/^(?:4[0-9]{12}(?:[0-9]{3,6})?|5[1-5][0-9]{14}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}|6(?:011|5[0-9][0-9])[0-9]{12,15}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11}|6[27][0-9]{14}|^(81[0-9]{14,17}))$/;e.exports=t.default,e.exports.default=t.default}(mE,mE.exports);var vE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,n.default)(e),t in a)return a[t](e);if("any"===t){for(var r in a){if(a.hasOwnProperty(r))if((0,a[r])(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))};var n=i(yx.exports),r=i(wk.exports);function i(e){return e&&e.__esModule?e:{default:e}}var a={PL:function(e){(0,n.default)(e);var t={1:1,2:3,3:7,4:9,5:1,6:3,7:7,8:9,9:1,10:3,11:0};if(null!=e&&11===e.length&&(0,r.default)(e,{allow_leading_zeroes:!0})){var i=e.split("").slice(0,-1).reduce((function(e,n,r){return e+Number(n)*t[r+1]}),0),a=i%10,o=Number(e.charAt(e.length-1));if(0===a&&0===o||o===10-a)return!0}return!1},ES:function(e){(0,n.default)(e);var t={X:0,Y:1,Z:2},r=e.trim().toUpperCase();if(!/^[0-9X-Z][0-9]{7}[TRWAGMYFPDXBNJZSQVHLCKE]$/.test(r))return!1;var i=r.slice(0,-1).replace(/[X,Y,Z]/g,(function(e){return t[e]}));return r.endsWith(["T","R","W","A","G","M","Y","F","P","D","X","B","N","J","Z","S","Q","V","H","L","C","K","E"][i%23])},FI:function(e){if((0,n.default)(e),11!==e.length)return!1;if(!e.match(/^\d{6}[\-A\+]\d{3}[0-9ABCDEFHJKLMNPRSTUVWXY]{1}$/))return!1;return"0123456789ABCDEFHJKLMNPRSTUVWXY"[(1e3*parseInt(e.slice(0,6),10)+parseInt(e.slice(7,10),10))%31]===e.slice(10,11)},IN:function(e){var t=[[0,1,2,3,4,5,6,7,8,9],[1,2,3,4,0,6,7,8,9,5],[2,3,4,0,1,7,8,9,5,6],[3,4,0,1,2,8,9,5,6,7],[4,0,1,2,3,9,5,6,7,8],[5,9,8,7,6,0,4,3,2,1],[6,5,9,8,7,1,0,4,3,2],[7,6,5,9,8,2,1,0,4,3],[8,7,6,5,9,3,2,1,0,4],[9,8,7,6,5,4,3,2,1,0]],n=[[0,1,2,3,4,5,6,7,8,9],[1,5,7,6,2,8,3,0,9,4],[5,8,0,3,7,9,6,1,4,2],[8,9,1,6,0,4,3,5,2,7],[9,4,5,3,1,2,6,8,7,0],[4,2,8,6,5,7,3,9,0,1],[2,7,9,3,8,0,6,4,1,5],[7,0,4,6,9,1,3,2,5,8]],r=e.trim();if(!/^[1-9]\d{3}\s?\d{4}\s?\d{4}$/.test(r))return!1;var i=0;return r.replace(/\s/g,"").split("").map(Number).reverse().forEach((function(e,r){i=t[i][n[r%8][e]]})),0===i},IR:function(e){if(!e.match(/^\d{10}$/))return!1;if(e="0000".concat(e).slice(e.length-6),0===parseInt(e.slice(3,9),10))return!1;for(var t=parseInt(e.slice(9,10),10),n=0,r=0;r<9;r++)n+=parseInt(e.slice(r,r+1),10)*(10-r);return(n%=11)<2&&t===n||n>=2&&t===11-n},IT:function(e){return 9===e.length&&("CA00000AA"!==e&&e.search(/C[A-Z][0-9]{5}[A-Z]{2}/i)>-1)},NO:function(e){var t=e.trim();if(isNaN(Number(t)))return!1;if(11!==t.length)return!1;if("00000000000"===t)return!1;var n=t.split("").map(Number),r=(11-(3*n[0]+7*n[1]+6*n[2]+1*n[3]+8*n[4]+9*n[5]+4*n[6]+5*n[7]+2*n[8])%11)%11,i=(11-(5*n[0]+4*n[1]+3*n[2]+2*n[3]+7*n[4]+6*n[5]+5*n[6]+4*n[7]+3*n[8]+2*r)%11)%11;return r===n[9]&&i===n[10]},TH:function(e){if(!e.match(/^[1-8]\d{12}$/))return!1;for(var t=0,n=0;n<12;n++)t+=parseInt(e[n],10)*(13-n);return e[12]===((11-t%11)%10).toString()},LK:function(e){return!(10!==e.length||!/^[1-9]\d{8}[vx]$/i.test(e))||!(12!==e.length||!/^[1-9]\d{11}$/i.test(e))},"he-IL":function(e){var t=e.trim();if(!/^\d{9}$/.test(t))return!1;for(var n,r=t,i=0,a=0;a<r.length;a++)i+=(n=Number(r[a])*(a%2+1))>9?n-9:n;return i%10==0},"ar-LY":function(e){var t=e.trim();return!!/^(1|2)\d{11}$/.test(t)},"ar-TN":function(e){var t=e.trim();return!!/^\d{8}$/.test(t)},"zh-CN":function(e){var t,n=["11","12","13","14","15","21","22","23","31","32","33","34","35","36","37","41","42","43","44","45","46","50","51","52","53","54","61","62","63","64","65","71","81","82","91"],r=["7","9","10","5","8","4","2","1","6","3","7","9","10","5","8","4","2"],i=["1","0","X","9","8","7","6","5","4","3","2"],a=function(e){return n.includes(e)},o=function(e){var t=parseInt(e.substring(0,4),10),n=parseInt(e.substring(4,6),10),r=parseInt(e.substring(6),10),i=new Date(t,n-1,r);return!(i>new Date)&&(i.getFullYear()===t&&i.getMonth()===n-1&&i.getDate()===r)},s=function(e){return function(e){for(var t=e.substring(0,17),n=0,a=0;a<17;a++)n+=parseInt(t.charAt(a),10)*parseInt(r[a],10);return i[n%11]}(e)===e.charAt(17).toUpperCase()};return!!/^\d{15}|(\d{17}(\d|x|X))$/.test(t=e)&&(15===t.length?function(e){var t=/^[1-9]\d{7}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\d{3}$/.test(e);if(!t)return!1;var n=e.substring(0,2);if(!(t=a(n)))return!1;var r="19".concat(e.substring(6,12));return!!(t=o(r))}(t):function(e){var t=/^[1-9]\d{5}[1-9]\d{3}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\d{3}(\d|x|X)$/.test(e);if(!t)return!1;var n=e.substring(0,2);if(!(t=a(n)))return!1;var r=e.substring(6,14);return!!(t=o(r))&&s(e)}(t))},"zh-HK":function(e){var t=/^[0-9]$/;if(e=(e=e.trim()).toUpperCase(),!/^[A-Z]{1,2}[0-9]{6}((\([0-9A]\))|(\[[0-9A]\])|([0-9A]))$/.test(e))return!1;8===(e=e.replace(/\[|\]|\(|\)/g,"")).length&&(e="3".concat(e));for(var n=0,r=0;r<=7;r++){n+=(t.test(e[r])?e[r]:(e[r].charCodeAt(0)-55)%11)*(9-r)}return(0===(n%=11)?"0":1===n?"A":String(11-n))===e[e.length-1]},"zh-TW":function(e){var t={A:10,B:11,C:12,D:13,E:14,F:15,G:16,H:17,I:34,J:18,K:19,L:20,M:21,N:22,O:35,P:23,Q:24,R:25,S:26,T:27,U:28,V:29,W:32,X:30,Y:31,Z:33},n=e.trim().toUpperCase();return!!/^[A-Z][0-9]{9}$/.test(n)&&Array.from(n).reduce((function(e,n,r){if(0===r){var i=t[n];return i%10*9+Math.floor(i/10)}return 9===r?(10-e%10-Number(n))%10==0:e+Number(n)*(9-r)}),0)}};e.exports=t.default,e.exports.default=t.default}(vE,vE.exports);var gE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,n.default)(e);var t=Number(e.slice(-1));return a.test(e)&&t===(o=e,s=o.slice(0,-1).split("").map((function(e,t){return Number(e)*function(e,t){return e===r||e===i?t%2==0?3:1:t%2==0?1:3}(o.length,t)})).reduce((function(e,t){return e+t}),0),u=10-s%10,u<10?u:0);var o,s,u};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r=8,i=14,a=/^(\d{8}|\d{13}|\d{14})$/;e.exports=t.default,e.exports.default=t.default}(gE,gE.exports);var AE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,n.default)(e),!r.test(e))return!1;for(var t=!0,i=0,a=e.length-2;a>=0;a--)if(e[a]>="A"&&e[a]<="Z")for(var o=e[a].charCodeAt(0)-55,s=0,u=[o%10,Math.trunc(o/10)];s<u.length;s++){var c=u[s];i+=t?c>=5?1+2*(c-5):2*c:c,t=!t}else{var d=e[a].charCodeAt(0)-"0".charCodeAt(0);i+=t?d>=5?1+2*(d-5):2*d:d,t=!t}var l=10*Math.trunc((i+9)/10)-i;return+e[e.length-1]===l};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r=/^[A-Z]{2}[0-9A-Z]{9}[0-9]$/;e.exports=t.default,e.exports.default=t.default}(AE,AE.exports);var bE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,o){(0,n.default)(t);var s=String((null==o?void 0:o.version)||o);if(!(null!=o&&o.version||o))return e(t,{version:10})||e(t,{version:13});var u=t.replace(/[\s-]+/g,""),c=0;if("10"===s){if(!r.test(u))return!1;for(var d=0;d<s-1;d++)c+=(d+1)*u.charAt(d);if("X"===u.charAt(9)?c+=100:c+=10*u.charAt(9),c%11==0)return!0}else if("13"===s){if(!i.test(u))return!1;for(var l=0;l<12;l++)c+=a[l%2]*u.charAt(l);if(u.charAt(12)-(10-c%10)%10==0)return!0}return!1};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r=/^(?:[0-9]{9}X|[0-9]{10})$/,i=/^(?:[0-9]{13})$/,a=[1,3];e.exports=t.default,e.exports.default=t.default}(bE,bE.exports);var yE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,n.default)(e);var i=r;if(i=t.require_hyphen?i.replace("?",""):i,i=t.case_sensitive?new RegExp(i):new RegExp(i,"i"),!i.test(e))return!1;for(var a=e.replace("-","").toUpperCase(),o=0,s=0;s<a.length;s++){var u=a[s];o+=("X"===u?10:+u)*(8-s)}return o%11==0};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r="^\\d{4}-?\\d{3}[\\dX]$";e.exports=t.default,e.exports.default=t.default}(yE,yE.exports);var _E={exports:{}},wE={};Object.defineProperty(wE,"__esModule",{value:!0}),wE.iso7064Check=function(e){for(var t=10,n=0;n<e.length-1;n++)t=(parseInt(e[n],10)+t)%10==0?9:(parseInt(e[n],10)+t)%10*2%11;return(t=1===t?0:11-t)===parseInt(e[10],10)},wE.luhnCheck=function(e){for(var t=0,n=!1,r=e.length-1;r>=0;r--){if(n){var i=2*parseInt(e[r],10);t+=i>9?i.toString().split("").map((function(e){return parseInt(e,10)})).reduce((function(e,t){return e+t}),0):i}else t+=parseInt(e[r],10);n=!n}return t%10==0},wE.reverseMultiplyAndSum=function(e,t){for(var n=0,r=0;r<e.length;r++)n+=e[r]*(t-r);return n},wE.verhoeffCheck=function(e){for(var t=[[0,1,2,3,4,5,6,7,8,9],[1,2,3,4,0,6,7,8,9,5],[2,3,4,0,1,7,8,9,5,6],[3,4,0,1,2,8,9,5,6,7],[4,0,1,2,3,9,5,6,7,8],[5,9,8,7,6,0,4,3,2,1],[6,5,9,8,7,1,0,4,3,2],[7,6,5,9,8,2,1,0,4,3],[8,7,6,5,9,3,2,1,0,4],[9,8,7,6,5,4,3,2,1,0]],n=[[0,1,2,3,4,5,6,7,8,9],[1,5,7,6,2,8,3,0,9,4],[5,8,0,3,7,9,6,1,4,2],[8,9,1,6,0,4,3,5,2,7],[9,4,5,3,1,2,6,8,7,0],[4,2,8,6,5,7,3,9,0,1],[2,7,9,3,8,0,6,4,1,5],[7,0,4,6,9,1,3,2,5,8]],r=e.split("").reverse().join(""),i=0,a=0;a<r.length;a++)i=t[i][n[a%8][parseInt(r[a],10)]];return 0===i},function(e,t){function n(e){return n="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},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US";(0,r.default)(e);var n=e.slice(0);if(t in f)return t in m&&(n=n.replace(m[t],"")),!!f[t].test(n)&&(!(t in p)||p[t](n));throw new Error("Invalid locale '".concat(t,"'"))};var r=s(yx.exports),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,t&&t.set(e,r);return r}(wE),a=s(sk.exports);function o(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}function s(e){return e&&e.__esModule?e:{default:e}}function u(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var d={andover:["10","12"],atlanta:["60","67"],austin:["50","53"],brookhaven:["01","02","03","04","05","06","11","13","14","16","21","22","23","25","34","51","52","54","55","56","57","58","59","65"],cincinnati:["30","32","35","36","37","38","61"],fresno:["15","24"],internet:["20","26","27","45","46","47"],kansas:["40","44"],memphis:["94","95"],ogden:["80","90"],philadelphia:["33","39","41","42","43","46","48","62","63","64","66","68","71","72","73","74","75","76","77","81","82","83","84","85","86","87","88","91","92","93","98","99"],sba:["31"]};function l(e){for(var t=!1,n=!1,r=0;r<3;r++)if(!t&&/[AEIOU]/.test(e[r]))t=!0;else if(!n&&t&&"X"===e[r])n=!0;else if(r>0){if(t&&!n&&!/[AEIOU]/.test(e[r]))return!1;if(n&&!/X/.test(e[r]))return!1}return!0}var f={"bg-BG":/^\d{10}$/,"cs-CZ":/^\d{6}\/{0,1}\d{3,4}$/,"de-AT":/^\d{9}$/,"de-DE":/^[1-9]\d{10}$/,"dk-DK":/^\d{6}-{0,1}\d{4}$/,"el-CY":/^[09]\d{7}[A-Z]$/,"el-GR":/^([0-4]|[7-9])\d{8}$/,"en-CA":/^\d{9}$/,"en-GB":/^\d{10}$|^(?!GB|NK|TN|ZZ)(?![DFIQUV])[A-Z](?![DFIQUVO])[A-Z]\d{6}[ABCD ]$/i,"en-IE":/^\d{7}[A-W][A-IW]{0,1}$/i,"en-US":/^\d{2}[- ]{0,1}\d{7}$/,"es-ES":/^(\d{0,8}|[XYZKLM]\d{7})[A-HJ-NP-TV-Z]$/i,"et-EE":/^[1-6]\d{6}(00[1-9]|0[1-9][0-9]|[1-6][0-9]{2}|70[0-9]|710)\d$/,"fi-FI":/^\d{6}[-+A]\d{3}[0-9A-FHJ-NPR-Y]$/i,"fr-BE":/^\d{11}$/,"fr-FR":/^[0-3]\d{12}$|^[0-3]\d\s\d{2}(\s\d{3}){3}$/,"fr-LU":/^\d{13}$/,"hr-HR":/^\d{11}$/,"hu-HU":/^8\d{9}$/,"it-IT":/^[A-Z]{6}[L-NP-V0-9]{2}[A-EHLMPRST][L-NP-V0-9]{2}[A-ILMZ][L-NP-V0-9]{3}[A-Z]$/i,"lv-LV":/^\d{6}-{0,1}\d{5}$/,"mt-MT":/^\d{3,7}[APMGLHBZ]$|^([1-8])\1\d{7}$/i,"nl-NL":/^\d{9}$/,"pl-PL":/^\d{10,11}$/,"pt-BR":/(?:^\d{11}$)|(?:^\d{14}$)/,"pt-PT":/^\d{9}$/,"ro-RO":/^\d{13}$/,"sk-SK":/^\d{6}\/{0,1}\d{3,4}$/,"sl-SI":/^[1-9]\d{7}$/,"sv-SE":/^(\d{6}[-+]{0,1}\d{4}|(18|19|20)\d{6}[-+]{0,1}\d{4})$/};f["lb-LU"]=f["fr-LU"],f["lt-LT"]=f["et-EE"],f["nl-BE"]=f["fr-BE"],f["fr-CA"]=f["en-CA"];var p={"bg-BG":function(e){var t=e.slice(0,2),n=parseInt(e.slice(2,4),10);n>40?(n-=40,t="20".concat(t)):n>20?(n-=20,t="18".concat(t)):t="19".concat(t),n<10&&(n="0".concat(n));var r="".concat(t,"/").concat(n,"/").concat(e.slice(4,6));if(!(0,a.default)(r,"YYYY/MM/DD"))return!1;for(var i=e.split("").map((function(e){return parseInt(e,10)})),o=[2,4,8,5,10,9,7,3,6],s=0,u=0;u<o.length;u++)s+=i[u]*o[u];return(s=s%11==10?0:s%11)===i[9]},"cs-CZ":function(e){e=e.replace(/\W/,"");var t=parseInt(e.slice(0,2),10);if(10===e.length)t=t<54?"20".concat(t):"19".concat(t);else{if("000"===e.slice(6))return!1;if(!(t<54))return!1;t="19".concat(t)}3===t.length&&(t=[t.slice(0,2),"0",t.slice(2)].join(""));var n=parseInt(e.slice(2,4),10);if(n>50&&(n-=50),n>20){if(parseInt(t,10)<2004)return!1;n-=20}n<10&&(n="0".concat(n));var r="".concat(t,"/").concat(n,"/").concat(e.slice(4,6));if(!(0,a.default)(r,"YYYY/MM/DD"))return!1;if(10===e.length&&parseInt(e,10)%11!=0){var i=parseInt(e.slice(0,9),10)%11;if(!(parseInt(t,10)<1986&&10===i))return!1;if(0!==parseInt(e.slice(9),10))return!1}return!0},"de-AT":function(e){return i.luhnCheck(e)},"de-DE":function(e){for(var t=e.split("").map((function(e){return parseInt(e,10)})),n=[],r=0;r<t.length-1;r++){n.push("");for(var a=0;a<t.length-1;a++)t[r]===t[a]&&(n[r]+=a)}if(2!==(n=n.filter((function(e){return e.length>1}))).length&&3!==n.length)return!1;if(3===n[0].length){for(var o=n[0].split("").map((function(e){return parseInt(e,10)})),s=0,u=0;u<o.length-1;u++)o[u]+1===o[u+1]&&(s+=1);if(2===s)return!1}return i.iso7064Check(e)},"dk-DK":function(e){e=e.replace(/\W/,"");var t=parseInt(e.slice(4,6),10);switch(e.slice(6,7)){case"0":case"1":case"2":case"3":t="19".concat(t);break;case"4":case"9":t=t<37?"20".concat(t):"19".concat(t);break;default:if(t<37)t="20".concat(t);else{if(!(t>58))return!1;t="18".concat(t)}}3===t.length&&(t=[t.slice(0,2),"0",t.slice(2)].join(""));var n="".concat(t,"/").concat(e.slice(2,4),"/").concat(e.slice(0,2));if(!(0,a.default)(n,"YYYY/MM/DD"))return!1;for(var r=e.split("").map((function(e){return parseInt(e,10)})),i=0,o=4,s=0;s<9;s++)i+=r[s]*o,1===(o-=1)&&(o=7);return 1!==(i%=11)&&(0===i?0===r[9]:r[9]===11-i)},"el-CY":function(e){for(var t=e.slice(0,8).split("").map((function(e){return parseInt(e,10)})),n=0,r=1;r<t.length;r+=2)n+=t[r];for(var i=0;i<t.length;i+=2)t[i]<2?n+=1-t[i]:(n+=2*(t[i]-2)+5,t[i]>4&&(n+=2));return String.fromCharCode(n%26+65)===e.charAt(8)},"el-GR":function(e){for(var t=e.split("").map((function(e){return parseInt(e,10)})),n=0,r=0;r<8;r++)n+=t[r]*Math.pow(2,8-r);return n%11%10===t[8]},"en-CA":function(e){var t=e.split(""),n=t.filter((function(e,t){return t%2})).map((function(e){return 2*Number(e)})).join("").split(""),r=t.filter((function(e,t){return!(t%2)})).concat(n).map((function(e){return Number(e)})).reduce((function(e,t){return e+t}));return r%10==0},"en-IE":function(e){var t=i.reverseMultiplyAndSum(e.split("").slice(0,7).map((function(e){return parseInt(e,10)})),8);return 9===e.length&&"W"!==e[8]&&(t+=9*(e[8].charCodeAt(0)-64)),0===(t%=23)?"W"===e[7].toUpperCase():e[7].toUpperCase()===String.fromCharCode(64+t)},"en-US":function(e){return-1!==function(){var e=[];for(var t in d)d.hasOwnProperty(t)&&e.push.apply(e,u(d[t]));return e}().indexOf(e.slice(0,2))},"es-ES":function(e){var t=e.toUpperCase().split("");if(isNaN(parseInt(t[0],10))&&t.length>1){var n=0;switch(t[0]){case"Y":n=1;break;case"Z":n=2}t.splice(0,1,n)}else for(;t.length<9;)t.unshift(0);t=t.join("");var r=parseInt(t.slice(0,8),10)%23;return t[8]===["T","R","W","A","G","M","Y","F","P","D","X","B","N","J","Z","S","Q","V","H","L","C","K","E"][r]},"et-EE":function(e){var t=e.slice(1,3);switch(e.slice(0,1)){case"1":case"2":t="18".concat(t);break;case"3":case"4":t="19".concat(t);break;default:t="20".concat(t)}var n="".concat(t,"/").concat(e.slice(3,5),"/").concat(e.slice(5,7));if(!(0,a.default)(n,"YYYY/MM/DD"))return!1;for(var r=e.split("").map((function(e){return parseInt(e,10)})),i=0,o=1,s=0;s<10;s++)i+=r[s]*o,10===(o+=1)&&(o=1);if(i%11==10){i=0,o=3;for(var u=0;u<10;u++)i+=r[u]*o,10===(o+=1)&&(o=1);if(i%11==10)return 0===r[10]}return i%11===r[10]},"fi-FI":function(e){var t=e.slice(4,6);switch(e.slice(6,7)){case"+":t="18".concat(t);break;case"-":t="19".concat(t);break;default:t="20".concat(t)}var n="".concat(t,"/").concat(e.slice(2,4),"/").concat(e.slice(0,2));if(!(0,a.default)(n,"YYYY/MM/DD"))return!1;var r=parseInt(e.slice(0,6)+e.slice(7,10),10)%31;return r<10?r===parseInt(e.slice(10),10):["A","B","C","D","E","F","H","J","K","L","M","N","P","R","S","T","U","V","W","X","Y"][r-=10]===e.slice(10)},"fr-BE":function(e){if("00"!==e.slice(2,4)||"00"!==e.slice(4,6)){var t="".concat(e.slice(0,2),"/").concat(e.slice(2,4),"/").concat(e.slice(4,6));if(!(0,a.default)(t,"YY/MM/DD"))return!1}var n=97-parseInt(e.slice(0,9),10)%97,r=parseInt(e.slice(9,11),10);return n===r||(n=97-parseInt("2".concat(e.slice(0,9)),10)%97)===r},"fr-FR":function(e){return e=e.replace(/\s/g,""),parseInt(e.slice(0,10),10)%511===parseInt(e.slice(10,13),10)},"fr-LU":function(e){var t="".concat(e.slice(0,4),"/").concat(e.slice(4,6),"/").concat(e.slice(6,8));return!!(0,a.default)(t,"YYYY/MM/DD")&&(!!i.luhnCheck(e.slice(0,12))&&i.verhoeffCheck("".concat(e.slice(0,11)).concat(e[12])))},"hr-HR":function(e){return i.iso7064Check(e)},"hu-HU":function(e){for(var t=e.split("").map((function(e){return parseInt(e,10)})),n=8,r=1;r<9;r++)n+=t[r]*(r+1);return n%11===t[9]},"it-IT":function(e){var t=e.toUpperCase().split("");if(!l(t.slice(0,3)))return!1;if(!l(t.slice(3,6)))return!1;for(var n={L:"0",M:"1",N:"2",P:"3",Q:"4",R:"5",S:"6",T:"7",U:"8",V:"9"},r=0,i=[6,7,9,10,12,13,14];r<i.length;r++){var o=i[r];t[o]in n&&t.splice(o,1,n[t[o]])}var s={A:"01",B:"02",C:"03",D:"04",E:"05",H:"06",L:"07",M:"08",P:"09",R:"10",S:"11",T:"12"}[t[8]],u=parseInt(t[9]+t[10],10);u>40&&(u-=40),u<10&&(u="0".concat(u));var c="".concat(t[6]).concat(t[7],"/").concat(s,"/").concat(u);if(!(0,a.default)(c,"YY/MM/DD"))return!1;for(var d=0,f=1;f<t.length-1;f+=2){var p=parseInt(t[f],10);isNaN(p)&&(p=t[f].charCodeAt(0)-65),d+=p}for(var h={A:1,B:0,C:5,D:7,E:9,F:13,G:15,H:17,I:19,J:21,K:2,L:4,M:18,N:20,O:11,P:3,Q:6,R:8,S:12,T:14,U:16,V:10,W:22,X:25,Y:24,Z:23,0:1,1:0},m=0;m<t.length-1;m+=2){var v=0;if(t[m]in h)v=h[t[m]];else{var g=parseInt(t[m],10);v=2*g+1,g>4&&(v+=2)}d+=v}return String.fromCharCode(65+d%26)===t[15]},"lv-LV":function(e){var t=(e=e.replace(/\W/,"")).slice(0,2);if("32"!==t){if("00"!==e.slice(2,4)){var n=e.slice(4,6);switch(e[6]){case"0":n="18".concat(n);break;case"1":n="19".concat(n);break;default:n="20".concat(n)}var r="".concat(n,"/").concat(e.slice(2,4),"/").concat(t);if(!(0,a.default)(r,"YYYY/MM/DD"))return!1}for(var i=1101,o=[1,6,3,7,9,10,5,8,4,2],s=0;s<e.length-1;s++)i-=parseInt(e[s],10)*o[s];return parseInt(e[10],10)===i%11}return!0},"mt-MT":function(e){if(9!==e.length){for(var t=e.toUpperCase().split("");t.length<8;)t.unshift(0);switch(e[7]){case"A":case"P":if(0===parseInt(t[6],10))return!1;break;default:var n=parseInt(t.join("").slice(0,5),10);if(n>32e3)return!1;if(n===parseInt(t.join("").slice(5,7),10))return!1}}return!0},"nl-NL":function(e){return i.reverseMultiplyAndSum(e.split("").slice(0,8).map((function(e){return parseInt(e,10)})),9)%11===parseInt(e[8],10)},"pl-PL":function(e){if(10===e.length){for(var t=[6,5,7,2,3,4,5,6,7],n=0,r=0;r<t.length;r++)n+=parseInt(e[r],10)*t[r];return 10!==(n%=11)&&n===parseInt(e[9],10)}var i=e.slice(0,2),o=parseInt(e.slice(2,4),10);o>80?(i="18".concat(i),o-=80):o>60?(i="22".concat(i),o-=60):o>40?(i="21".concat(i),o-=40):o>20?(i="20".concat(i),o-=20):i="19".concat(i),o<10&&(o="0".concat(o));var s="".concat(i,"/").concat(o,"/").concat(e.slice(4,6));if(!(0,a.default)(s,"YYYY/MM/DD"))return!1;for(var u=0,c=1,d=0;d<e.length-1;d++)u+=parseInt(e[d],10)*c%10,(c+=2)>10?c=1:5===c&&(c+=2);return(u=10-u%10)===parseInt(e[10],10)},"pt-BR":function(e){if(11===e.length){var t,n;if(t=0,"11111111111"===e||"22222222222"===e||"33333333333"===e||"44444444444"===e||"55555555555"===e||"66666666666"===e||"77777777777"===e||"88888888888"===e||"99999999999"===e||"00000000000"===e)return!1;for(var r=1;r<=9;r++)t+=parseInt(e.substring(r-1,r),10)*(11-r);if(10===(n=10*t%11)&&(n=0),n!==parseInt(e.substring(9,10),10))return!1;t=0;for(var i=1;i<=10;i++)t+=parseInt(e.substring(i-1,i),10)*(12-i);return 10===(n=10*t%11)&&(n=0),n===parseInt(e.substring(10,11),10)}if("00000000000000"===e||"11111111111111"===e||"22222222222222"===e||"33333333333333"===e||"44444444444444"===e||"55555555555555"===e||"66666666666666"===e||"77777777777777"===e||"88888888888888"===e||"99999999999999"===e)return!1;for(var a=e.length-2,o=e.substring(0,a),s=e.substring(a),u=0,c=a-7,d=a;d>=1;d--)u+=o.charAt(a-d)*c,(c-=1)<2&&(c=9);var l=u%11<2?0:11-u%11;if(l!==parseInt(s.charAt(0),10))return!1;a+=1,o=e.substring(0,a),u=0,c=a-7;for(var f=a;f>=1;f--)u+=o.charAt(a-f)*c,(c-=1)<2&&(c=9);return(l=u%11<2?0:11-u%11)===parseInt(s.charAt(1),10)},"pt-PT":function(e){var t=11-i.reverseMultiplyAndSum(e.split("").slice(0,8).map((function(e){return parseInt(e,10)})),9)%11;return t>9?0===parseInt(e[8],10):t===parseInt(e[8],10)},"ro-RO":function(e){if("9000"!==e.slice(0,4)){var t=e.slice(1,3);switch(e[0]){case"1":case"2":t="19".concat(t);break;case"3":case"4":t="18".concat(t);break;case"5":case"6":t="20".concat(t)}var n="".concat(t,"/").concat(e.slice(3,5),"/").concat(e.slice(5,7));if(8===n.length){if(!(0,a.default)(n,"YY/MM/DD"))return!1}else if(!(0,a.default)(n,"YYYY/MM/DD"))return!1;for(var r=e.split("").map((function(e){return parseInt(e,10)})),i=[2,7,9,1,4,6,3,5,8,2,7,9],o=0,s=0;s<i.length;s++)o+=r[s]*i[s];return o%11==10?1===r[12]:r[12]===o%11}return!0},"sk-SK":function(e){if(9===e.length){if("000"===(e=e.replace(/\W/,"")).slice(6))return!1;var t=parseInt(e.slice(0,2),10);if(t>53)return!1;t=t<10?"190".concat(t):"19".concat(t);var n=parseInt(e.slice(2,4),10);n>50&&(n-=50),n<10&&(n="0".concat(n));var r="".concat(t,"/").concat(n,"/").concat(e.slice(4,6));if(!(0,a.default)(r,"YYYY/MM/DD"))return!1}return!0},"sl-SI":function(e){var t=11-i.reverseMultiplyAndSum(e.split("").slice(0,7).map((function(e){return parseInt(e,10)})),8)%11;return 10===t?0===parseInt(e[7],10):t===parseInt(e[7],10)},"sv-SE":function(e){var t=e.slice(0);e.length>11&&(t=t.slice(2));var n="",r=t.slice(2,4),o=parseInt(t.slice(4,6),10);if(e.length>11)n=e.slice(0,4);else if(n=e.slice(0,2),11===e.length&&o<60){var s=(new Date).getFullYear().toString(),u=parseInt(s.slice(0,2),10);if(s=parseInt(s,10),"-"===e[6])n=parseInt("".concat(u).concat(n),10)>s?"".concat(u-1).concat(n):"".concat(u).concat(n);else if(n="".concat(u-1).concat(n),s-parseInt(n,10)<100)return!1}o>60&&(o-=60),o<10&&(o="0".concat(o));var c="".concat(n,"/").concat(r,"/").concat(o);if(8===c.length){if(!(0,a.default)(c,"YY/MM/DD"))return!1}else if(!(0,a.default)(c,"YYYY/MM/DD"))return!1;return i.luhnCheck(e.replace(/\W/,""))}};p["lb-LU"]=p["fr-LU"],p["lt-LT"]=p["et-EE"],p["nl-BE"]=p["fr-BE"],p["fr-CA"]=p["en-CA"];var h=/[-\\\/!@#$%\^&\*\(\)\+\=\[\]]+/g,m={"de-AT":h,"de-DE":/[\/\\]/g,"fr-BE":h};m["nl-BE"]=m["fr-BE"],e.exports=t.default,e.exports.default=t.default}(_E,_E.exports);var xE={};Object.defineProperty(xE,"__esModule",{value:!0}),xE.default=function(e,t,n){if((0,kE.default)(e),n&&n.strictMode&&!e.startsWith("+"))return!1;if(Array.isArray(t))return t.some((function(t){if(EE.hasOwnProperty(t)&&EE[t].test(e))return!0;return!1}));if(t in EE)return EE[t].test(e);if(!t||"any"===t){for(var r in EE){if(EE.hasOwnProperty(r))if(EE[r].test(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))},xE.locales=void 0;var kE=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var EE={"am-AM":/^(\+?374|0)((10|[9|7][0-9])\d{6}$|[2-4]\d{7}$)/,"ar-AE":/^((\+?971)|0)?5[024568]\d{7}$/,"ar-BH":/^(\+?973)?(3|6)\d{7}$/,"ar-DZ":/^(\+?213|0)(5|6|7)\d{8}$/,"ar-LB":/^(\+?961)?((3|81)\d{6}|7\d{7})$/,"ar-EG":/^((\+?20)|0)?1[0125]\d{8}$/,"ar-IQ":/^(\+?964|0)?7[0-9]\d{8}$/,"ar-JO":/^(\+?962|0)?7[789]\d{7}$/,"ar-KW":/^(\+?965)([569]\d{7}|41\d{6})$/,"ar-LY":/^((\+?218)|0)?(9[1-6]\d{7}|[1-8]\d{7,9})$/,"ar-MA":/^(?:(?:\+|00)212|0)[5-7]\d{8}$/,"ar-OM":/^((\+|00)968)?(9[1-9])\d{6}$/,"ar-PS":/^(\+?970|0)5[6|9](\d{7})$/,"ar-SA":/^(!?(\+?966)|0)?5\d{8}$/,"ar-SY":/^(!?(\+?963)|0)?9\d{8}$/,"ar-TN":/^(\+?216)?[2459]\d{7}$/,"az-AZ":/^(\+994|0)(10|5[015]|7[07]|99)\d{7}$/,"bs-BA":/^((((\+|00)3876)|06))((([0-3]|[5-6])\d{6})|(4\d{7}))$/,"be-BY":/^(\+?375)?(24|25|29|33|44)\d{7}$/,"bg-BG":/^(\+?359|0)?8[789]\d{7}$/,"bn-BD":/^(\+?880|0)1[13456789][0-9]{8}$/,"ca-AD":/^(\+376)?[346]\d{5}$/,"cs-CZ":/^(\+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"da-DK":/^(\+?45)?\s?\d{2}\s?\d{2}\s?\d{2}\s?\d{2}$/,"de-DE":/^((\+49|0)1)(5[0-25-9]\d|6([23]|0\d?)|7([0-57-9]|6\d))\d{7,9}$/,"de-AT":/^(\+43|0)\d{1,4}\d{3,12}$/,"de-CH":/^(\+41|0)([1-9])\d{1,9}$/,"de-LU":/^(\+352)?((6\d1)\d{6})$/,"dv-MV":/^(\+?960)?(7[2-9]|9[1-9])\d{5}$/,"el-GR":/^(\+?30|0)?6(8[5-9]|9(?![26])[0-9])\d{7}$/,"el-CY":/^(\+?357?)?(9(9|6)\d{6})$/,"en-AI":/^(\+?1|0)264(?:2(35|92)|4(?:6[1-2]|76|97)|5(?:3[6-9]|8[1-4])|7(?:2(4|9)|72))\d{4}$/,"en-AU":/^(\+?61|0)4\d{8}$/,"en-AG":/^(?:\+1|1)268(?:464|7(?:1[3-9]|[28]\d|3[0246]|64|7[0-689]))\d{4}$/,"en-BM":/^(\+?1)?441(((3|7)\d{6}$)|(5[0-3][0-9]\d{4}$)|(59\d{5}$))/,"en-BS":/^(\+?1[-\s]?|0)?\(?242\)?[-\s]?\d{3}[-\s]?\d{4}$/,"en-GB":/^(\+?44|0)7\d{9}$/,"en-GG":/^(\+?44|0)1481\d{6}$/,"en-GH":/^(\+233|0)(20|50|24|54|27|57|26|56|23|28|55|59)\d{7}$/,"en-GY":/^(\+592|0)6\d{6}$/,"en-HK":/^(\+?852[-\s]?)?[456789]\d{3}[-\s]?\d{4}$/,"en-MO":/^(\+?853[-\s]?)?[6]\d{3}[-\s]?\d{4}$/,"en-IE":/^(\+?353|0)8[356789]\d{7}$/,"en-IN":/^(\+?91|0)?[6789]\d{9}$/,"en-JM":/^(\+?876)?\d{7}$/,"en-KE":/^(\+?254|0)(7|1)\d{8}$/,"en-SS":/^(\+?211|0)(9[1257])\d{7}$/,"en-KI":/^((\+686|686)?)?( )?((6|7)(2|3|8)[0-9]{6})$/,"en-KN":/^(?:\+1|1)869(?:46\d|48[89]|55[6-8]|66\d|76[02-7])\d{4}$/,"en-LS":/^(\+?266)(22|28|57|58|59|27|52)\d{6}$/,"en-MT":/^(\+?356|0)?(99|79|77|21|27|22|25)[0-9]{6}$/,"en-MU":/^(\+?230|0)?\d{8}$/,"en-NA":/^(\+?264|0)(6|8)\d{7}$/,"en-NG":/^(\+?234|0)?[789]\d{9}$/,"en-NZ":/^(\+?64|0)[28]\d{7,9}$/,"en-PG":/^(\+?675|0)?(7\d|8[18])\d{6}$/,"en-PK":/^((00|\+)?92|0)3[0-6]\d{8}$/,"en-PH":/^(09|\+639)\d{9}$/,"en-RW":/^(\+?250|0)?[7]\d{8}$/,"en-SG":/^(\+65)?[3689]\d{7}$/,"en-SL":/^(\+?232|0)\d{8}$/,"en-TZ":/^(\+?255|0)?[67]\d{8}$/,"en-UG":/^(\+?256|0)?[7]\d{8}$/,"en-US":/^((\+1|1)?( |-)?)?(\([2-9][0-9]{2}\)|[2-9][0-9]{2})( |-)?([2-9][0-9]{2}( |-)?[0-9]{4})$/,"en-ZA":/^(\+?27|0)\d{9}$/,"en-ZM":/^(\+?26)?09[567]\d{7}$/,"en-ZW":/^(\+263)[0-9]{9}$/,"en-BW":/^(\+?267)?(7[1-8]{1})\d{6}$/,"es-AR":/^\+?549(11|[2368]\d)\d{8}$/,"es-BO":/^(\+?591)?(6|7)\d{7}$/,"es-CO":/^(\+?57)?3(0(0|1|2|4|5)|1\d|2[0-4]|5(0|1))\d{7}$/,"es-CL":/^(\+?56|0)[2-9]\d{1}\d{7}$/,"es-CR":/^(\+506)?[2-8]\d{7}$/,"es-CU":/^(\+53|0053)?5\d{7}/,"es-DO":/^(\+?1)?8[024]9\d{7}$/,"es-HN":/^(\+?504)?[9|8|3|2]\d{7}$/,"es-EC":/^(\+?593|0)([2-7]|9[2-9])\d{7}$/,"es-ES":/^(\+?34)?[6|7]\d{8}$/,"es-PE":/^(\+?51)?9\d{8}$/,"es-MX":/^(\+?52)?(1|01)?\d{10,11}$/,"es-NI":/^(\+?505)\d{7,8}$/,"es-PA":/^(\+?507)\d{7,8}$/,"es-PY":/^(\+?595|0)9[9876]\d{7}$/,"es-SV":/^(\+?503)?[67]\d{7}$/,"es-UY":/^(\+598|0)9[1-9][\d]{6}$/,"es-VE":/^(\+?58)?(2|4)\d{9}$/,"et-EE":/^(\+?372)?\s?(5|8[1-4])\s?([0-9]\s?){6,7}$/,"fa-IR":/^(\+?98[\-\s]?|0)9[0-39]\d[\-\s]?\d{3}[\-\s]?\d{4}$/,"fi-FI":/^(\+?358|0)\s?(4[0-6]|50)\s?(\d\s?){4,8}$/,"fj-FJ":/^(\+?679)?\s?\d{3}\s?\d{4}$/,"fo-FO":/^(\+?298)?\s?\d{2}\s?\d{2}\s?\d{2}$/,"fr-BF":/^(\+226|0)[67]\d{7}$/,"fr-BJ":/^(\+229)\d{8}$/,"fr-CD":/^(\+?243|0)?(8|9)\d{8}$/,"fr-CM":/^(\+?237)6[0-9]{8}$/,"fr-FR":/^(\+?33|0)[67]\d{8}$/,"fr-GF":/^(\+?594|0|00594)[67]\d{8}$/,"fr-GP":/^(\+?590|0|00590)[67]\d{8}$/,"fr-MQ":/^(\+?596|0|00596)[67]\d{8}$/,"fr-PF":/^(\+?689)?8[789]\d{6}$/,"fr-RE":/^(\+?262|0|00262)[67]\d{8}$/,"he-IL":/^(\+972|0)([23489]|5[012345689]|77)[1-9]\d{6}$/,"hu-HU":/^(\+?36|06)(20|30|31|50|70)\d{7}$/,"id-ID":/^(\+?62|0)8(1[123456789]|2[1238]|3[1238]|5[12356789]|7[78]|9[56789]|8[123456789])([\s?|\d]{5,11})$/,"ir-IR":/^(\+98|0)?9\d{9}$/,"it-IT":/^(\+?39)?\s?3\d{2} ?\d{6,7}$/,"it-SM":/^((\+378)|(0549)|(\+390549)|(\+3780549))?6\d{5,9}$/,"ja-JP":/^(\+81[ \-]?(\(0\))?|0)[6789]0[ \-]?\d{4}[ \-]?\d{4}$/,"ka-GE":/^(\+?995)?(79\d{7}|5\d{8})$/,"kk-KZ":/^(\+?7|8)?7\d{9}$/,"kl-GL":/^(\+?299)?\s?\d{2}\s?\d{2}\s?\d{2}$/,"ko-KR":/^((\+?82)[ \-]?)?0?1([0|1|6|7|8|9]{1})[ \-]?\d{3,4}[ \-]?\d{4}$/,"ky-KG":/^(\+?7\s?\+?7|0)\s?\d{2}\s?\d{3}\s?\d{4}$/,"lt-LT":/^(\+370|8)\d{8}$/,"lv-LV":/^(\+?371)2\d{7}$/,"mg-MG":/^((\+?261|0)(2|3)\d)?\d{7}$/,"mn-MN":/^(\+|00|011)?976(77|81|88|91|94|95|96|99)\d{6}$/,"my-MM":/^(\+?959|09|9)(2[5-7]|3[1-2]|4[0-5]|6[6-9]|7[5-9]|9[6-9])[0-9]{7}$/,"ms-MY":/^(\+?60|0)1(([0145](-|\s)?\d{7,8})|([236-9](-|\s)?\d{7}))$/,"mz-MZ":/^(\+?258)?8[234567]\d{7}$/,"nb-NO":/^(\+?47)?[49]\d{7}$/,"ne-NP":/^(\+?977)?9[78]\d{8}$/,"nl-BE":/^(\+?32|0)4\d{8}$/,"nl-NL":/^(((\+|00)?31\(0\))|((\+|00)?31)|0)6{1}\d{8}$/,"nl-AW":/^(\+)?297(56|59|64|73|74|99)\d{5}$/,"nn-NO":/^(\+?47)?[49]\d{7}$/,"pl-PL":/^(\+?48)? ?[5-8]\d ?\d{3} ?\d{2} ?\d{2}$/,"pt-BR":/^((\+?55\ ?[1-9]{2}\ ?)|(\+?55\ ?\([1-9]{2}\)\ ?)|(0[1-9]{2}\ ?)|(\([1-9]{2}\)\ ?)|([1-9]{2}\ ?))((\d{4}\-?\d{4})|(9[1-9]{1}\d{3}\-?\d{4}))$/,"pt-PT":/^(\+?351)?9[1236]\d{7}$/,"pt-AO":/^(\+244)\d{9}$/,"ro-MD":/^(\+?373|0)((6(0|1|2|6|7|8|9))|(7(6|7|8|9)))\d{6}$/,"ro-RO":/^(\+?40|0)\s?7\d{2}(\/|\s|\.|-)?\d{3}(\s|\.|-)?\d{3}$/,"ru-RU":/^(\+?7|8)?9\d{9}$/,"si-LK":/^(?:0|94|\+94)?(7(0|1|2|4|5|6|7|8)( |-)?)\d{7}$/,"sl-SI":/^(\+386\s?|0)(\d{1}\s?\d{3}\s?\d{2}\s?\d{2}|\d{2}\s?\d{3}\s?\d{3})$/,"sk-SK":/^(\+?421)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"sq-AL":/^(\+355|0)6[789]\d{6}$/,"sr-RS":/^(\+3816|06)[- \d]{5,9}$/,"sv-SE":/^(\+?46|0)[\s\-]?7[\s\-]?[02369]([\s\-]?\d){7}$/,"tg-TJ":/^(\+?992)?[5][5]\d{7}$/,"th-TH":/^(\+66|66|0)\d{9}$/,"tr-TR":/^(\+?90|0)?5\d{9}$/,"tk-TM":/^(\+993|993|8)\d{8}$/,"uk-UA":/^(\+?38|8)?0\d{9}$/,"uz-UZ":/^(\+?998)?(6[125-79]|7[1-69]|88|9\d)\d{7}$/,"vi-VN":/^((\+?84)|0)((3([2-9]))|(5([25689]))|(7([0|6-9]))|(8([1-9]))|(9([0-9])))([0-9]{7})$/,"zh-CN":/^((\+|00)86)?(1[3-9]|9[28])\d{9}$/,"zh-TW":/^(\+?886\-?|0)?9\d{8}$/,"dz-BT":/^(\+?975|0)?(17|16|77|02)\d{6}$/,"ar-YE":/^(((\+|00)9677|0?7)[0137]\d{7}|((\+|00)967|0)[1-7]\d{6})$/,"ar-EH":/^(\+?212|0)[\s\-]?(5288|5289)[\s\-]?\d{5}$/,"fa-AF":/^(\+93|0)?(2{1}[0-8]{1}|[3-5]{1}[0-4]{1})(\d{7})$/};EE["en-CA"]=EE["en-US"],EE["fr-CA"]=EE["en-CA"],EE["fr-BE"]=EE["nl-BE"],EE["zh-HK"]=EE["en-HK"],EE["zh-MO"]=EE["en-MO"],EE["ga-IE"]=EE["en-IE"],EE["fr-CH"]=EE["de-CH"],EE["it-CH"]=EE["fr-CH"];var SE=Object.keys(EE);xE.locales=SE;var DE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e),r.test(e)};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r=/^(0x)[0-9a-f]{40}$/i;e.exports=t.default,e.exports.default=t.default}(DE,DE.exports);var IE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(e),t=(0,n.default)(t,a),function(e){var t="\\d{".concat(e.digits_after_decimal[0],"}");e.digits_after_decimal.forEach((function(e,n){0!==n&&(t="".concat(t,"|\\d{").concat(e,"}"))}));var n="(".concat(e.symbol.replace(/\W/,(function(e){return"\\".concat(e)})),")").concat(e.require_symbol?"":"?"),r="-?",i="[1-9]\\d{0,2}(\\".concat(e.thousands_separator,"\\d{3})*"),a="(".concat(["0","[1-9]\\d*",i].join("|"),")?"),o="(\\".concat(e.decimal_separator,"(").concat(t,"))").concat(e.require_decimal?"":"?"),s=a+(e.allow_decimal||e.require_decimal?o:"");e.allow_negatives&&!e.parens_for_negatives&&(e.negative_sign_after_digits?s+=r:e.negative_sign_before_digits&&(s=r+s));e.allow_negative_sign_placeholder?s="( (?!\\-))?".concat(s):e.allow_space_after_symbol?s=" ?".concat(s):e.allow_space_after_digits&&(s+="( (?!$))?");e.symbol_after_digits?s+=n:s=n+s;e.allow_negatives&&(e.parens_for_negatives?s="(\\(".concat(s,"\\)|").concat(s,")"):e.negative_sign_before_digits||e.negative_sign_after_digits||(s=r+s));return new RegExp("^(?!-? )(?=.*\\d)".concat(s,"$"))}(t).test(e)};var n=i(Jx.exports),r=i(yx.exports);function i(e){return e&&e.__esModule?e:{default:e}}var a={symbol:"$",require_symbol:!1,allow_space_after_symbol:!1,symbol_after_digits:!1,allow_negatives:!0,parens_for_negatives:!1,negative_sign_before_digits:!1,negative_sign_after_digits:!1,allow_negative_sign_placeholder:!1,thousands_separator:",",decimal_separator:".",allow_decimal:!0,require_decimal:!1,digits_after_decimal:[2],allow_space_after_digits:!1};e.exports=t.default,e.exports.default=t.default}(IE,IE.exports);var RE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e),r.test(e)||i.test(e)};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r=/^(bc1)[a-z0-9]{25,39}$/,i=/^(1|3)[A-HJ-NP-Za-km-z1-9]{25,39}$/;e.exports=t.default,e.exports.default=t.default}(RE,RE.exports);var CE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e),r.has(e)};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r=new Set(["aa","ab","ae","af","ak","am","an","ar","as","av","ay","az","az","ba","be","bg","bh","bi","bm","bn","bo","br","bs","ca","ce","ch","co","cr","cs","cu","cv","cy","da","de","dv","dz","ee","el","en","eo","es","et","eu","fa","ff","fi","fj","fo","fr","fy","ga","gd","gl","gn","gu","gv","ha","he","hi","ho","hr","ht","hu","hy","hz","ia","id","ie","ig","ii","ik","io","is","it","iu","ja","jv","ka","kg","ki","kj","kk","kl","km","kn","ko","kr","ks","ku","kv","kw","ky","la","lb","lg","li","ln","lo","lt","lu","lv","mg","mh","mi","mk","ml","mn","mr","ms","mt","my","na","nb","nd","ne","ng","nl","nn","no","nr","nv","ny","oc","oj","om","or","os","pa","pi","pl","ps","pt","qu","rm","rn","ro","ru","rw","sa","sc","sd","se","sg","si","sk","sl","sm","sn","so","sq","sr","ss","st","su","sv","sw","ta","te","tg","th","ti","tk","tl","tn","to","tr","ts","tt","tw","ty","ug","uk","ur","uz","ve","vi","vo","wa","wo","xh","yi","yo","za","zh","zu"]);e.exports=t.default,e.exports.default=t.default}(CE,CE.exports);var OE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,n.default)(e);var o=t.strictSeparator?i.test(e):r.test(e);return o&&t.strict?a(e):o};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/,i=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/,a=function(e){var t=e.match(/^(\d{4})-?(\d{3})([ T]{1}\.*|$)/);if(t){var n=Number(t[1]),r=Number(t[2]);return n%4==0&&n%100!=0||n%400==0?r<=366:r<=365}var i=e.match(/(\d{4})-?(\d{0,2})-?(\d*)/).map(Number),a=i[1],o=i[2],s=i[3],u=o?"0".concat(o).slice(-2):o,c=s?"0".concat(s).slice(-2):s,d=new Date("".concat(a,"-").concat(u||"01","-").concat(c||"01"));return!o||!s||d.getUTCFullYear()===a&&d.getUTCMonth()+1===o&&d.getUTCDate()===s};e.exports=t.default,e.exports.default=t.default}(OE,OE.exports);var TE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e),d.test(e)};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r=/([01][0-9]|2[0-3])/,i=/[0-5][0-9]/,a=new RegExp("[-+]".concat(r.source,":").concat(i.source)),o=new RegExp("([zZ]|".concat(a.source,")")),s=new RegExp("".concat(r.source,":").concat(i.source,":").concat(/([0-5][0-9]|60)/.source).concat(/(\.[0-9]+)?/.source)),u=new RegExp("".concat(/[0-9]{4}/.source,"-").concat(/(0[1-9]|1[0-2])/.source,"-").concat(/([12]\d|0[1-9]|3[01])/.source)),c=new RegExp("".concat(s.source).concat(o.source)),d=new RegExp("^".concat(u.source,"[ tT]").concat(c.source,"$"));e.exports=t.default,e.exports.default=t.default}(TE,TE.exports);var PE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e),r.has(e.toUpperCase())};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r=new Set(["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","VAT","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWZ","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","URY","UZB","VUT","VEN","VNM","VGB","VIR","WLF","ESH","YEM","ZMB","ZWE"]);e.exports=t.default,e.exports.default=t.default}(PE,PE.exports);var LE={};Object.defineProperty(LE,"__esModule",{value:!0}),LE.default=function(e){return(0,ME.default)(e),BE.has(e.toUpperCase())},LE.CurrencyCodes=void 0;var ME=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var BE=new Set(["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRU","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STN","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UYW","UZS","VES","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"]);var jE=BE;LE.CurrencyCodes=jE;var UE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,n.default)(e),t=(0,r.default)(t,s),t.crockford)return o.test(e);var i=e.length;if(i%8==0&&a.test(e))return!0;return!1};var n=i(yx.exports),r=i(Jx.exports);function i(e){return e&&e.__esModule?e:{default:e}}var a=/^[A-Z2-7]+=*$/,o=/^[A-HJKMNP-TV-Z0-9]+$/,s={crockford:!1};e.exports=t.default,e.exports.default=t.default}(UE,UE.exports);var FE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,n.default)(e),r.test(e))return!0;return!1};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r=/^[A-HJ-NP-Za-km-z1-9]*$/;e.exports=t.default,e.exports.default=t.default}(FE,FE.exports);var NE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,n.default)(e);var t=e.split(",");if(t.length<2)return!1;var o=t.shift().trim().split(";"),s=o.shift();if("data:"!==s.slice(0,5))return!1;var u=s.slice(5);if(""!==u&&!r.test(u))return!1;for(var c=0;c<o.length;c++)if((c!==o.length-1||"base64"!==o[c].toLowerCase())&&!i.test(o[c]))return!1;for(var d=0;d<t.length;d++)if(!a.test(t[d]))return!1;return!0};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r=/^[a-z]+\/[a-z0-9\-\+\._]+$/i,i=/^[a-z\-]+=[a-z0-9\-]+$/i,a=/^[a-z0-9!\$&'\(\)\*\+,;=\-\._~:@\/\?%\s]*$/i;e.exports=t.default,e.exports.default=t.default}(NE,NE.exports);var $E={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,n.default)(e),0!==e.indexOf("magnet:?"))return!1;return r.test(e)};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r=/(?:^magnet:\?|[^?&]&)xt(?:\.1)?=urn:(?:(?:aich|bitprint|btih|ed2k|ed2khash|kzhash|md5|sha1|tree:tiger):[a-z0-9]{32}(?:[a-z0-9]{8})?|btmh:1220[a-z0-9]{64})(?:$|&)/i;e.exports=t.default,e.exports.default=t.default}($E,$E.exports);var GE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e),r.test(e)||i.test(e)||a.test(e)};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r=/^(application|audio|font|image|message|model|multipart|text|video)\/[a-zA-Z0-9\.\-\+_]{1,100}$/i,i=/^text\/[a-zA-Z0-9\.\-\+]{1,100};\s?charset=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?$/i,a=/^multipart\/[a-zA-Z0-9\.\-\+]{1,100}(;\s?(boundary|charset)=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?){0,2}$/i;e.exports=t.default,e.exports.default=t.default}(GE,GE.exports);var HE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,n.default)(e),t=(0,r.default)(t,c),!e.includes(","))return!1;var i=e.split(",");if(i[0].startsWith("(")&&!i[1].endsWith(")")||i[1].endsWith(")")&&!i[0].startsWith("("))return!1;if(t.checkDMS)return s.test(i[0])&&u.test(i[1]);return a.test(i[0])&&o.test(i[1])};var n=i(yx.exports),r=i(Jx.exports);function i(e){return e&&e.__esModule?e:{default:e}}var a=/^\(?[+-]?(90(\.0+)?|[1-8]?\d(\.\d+)?)$/,o=/^\s?[+-]?(180(\.0+)?|1[0-7]\d(\.\d+)?|\d{1,2}(\.\d+)?)\)?$/,s=/^(([1-8]?\d)\D+([1-5]?\d|60)\D+([1-5]?\d|60)(\.\d+)?|90\D+0\D+0)\D+[NSns]?$/i,u=/^\s*([1-7]?\d{1,2}\D+([1-5]?\d|60)\D+([1-5]?\d|60)(\.\d+)?|180\D+0\D+0)\D+[EWew]?$/i,c={checkDMS:!1};e.exports=t.default,e.exports.default=t.default}(HE,HE.exports);var zE={};Object.defineProperty(zE,"__esModule",{value:!0}),zE.default=function(e,t){if((0,ZE.default)(e),t in YE)return YE[t].test(e);if("any"===t){for(var n in YE){if(YE.hasOwnProperty(n))if(YE[n].test(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))},zE.locales=void 0;var ZE=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var VE=/^\d{3}$/,KE=/^\d{4}$/,qE=/^\d{5}$/,WE=/^\d{6}$/,YE={AD:/^AD\d{3}$/,AT:KE,AU:KE,AZ:/^AZ\d{4}$/,BA:/^([7-8]\d{4}$)/,BE:KE,BG:KE,BR:/^\d{5}-\d{3}$/,BY:/^2[1-4]\d{4}$/,CA:/^[ABCEGHJKLMNPRSTVXY]\d[ABCEGHJ-NPRSTV-Z][\s\-]?\d[ABCEGHJ-NPRSTV-Z]\d$/i,CH:KE,CN:/^(0[1-7]|1[012356]|2[0-7]|3[0-6]|4[0-7]|5[1-7]|6[1-7]|7[1-5]|8[1345]|9[09])\d{4}$/,CZ:/^\d{3}\s?\d{2}$/,DE:qE,DK:KE,DO:qE,DZ:qE,EE:qE,ES:/^(5[0-2]{1}|[0-4]{1}\d{1})\d{3}$/,FI:qE,FR:/^\d{2}\s?\d{3}$/,GB:/^(gir\s?0aa|[a-z]{1,2}\d[\da-z]?\s?(\d[a-z]{2})?)$/i,GR:/^\d{3}\s?\d{2}$/,HR:/^([1-5]\d{4}$)/,HT:/^HT\d{4}$/,HU:KE,ID:qE,IE:/^(?!.*(?:o))[A-Za-z]\d[\dw]\s\w{4}$/i,IL:/^(\d{5}|\d{7})$/,IN:/^((?!10|29|35|54|55|65|66|86|87|88|89)[1-9][0-9]{5})$/,IR:/^(?!(\d)\1{3})[13-9]{4}[1346-9][013-9]{5}$/,IS:VE,IT:qE,JP:/^\d{3}\-\d{4}$/,KE:qE,KR:/^(\d{5}|\d{6})$/,LI:/^(948[5-9]|949[0-7])$/,LT:/^LT\-\d{5}$/,LU:KE,LV:/^LV\-\d{4}$/,LK:qE,MG:VE,MX:qE,MT:/^[A-Za-z]{3}\s{0,1}\d{4}$/,MY:qE,NL:/^\d{4}\s?[a-z]{2}$/i,NO:KE,NP:/^(10|21|22|32|33|34|44|45|56|57)\d{3}$|^(977)$/i,NZ:KE,PL:/^\d{2}\-\d{3}$/,PR:/^00[679]\d{2}([ -]\d{4})?$/,PT:/^\d{4}\-\d{3}?$/,RO:WE,RU:WE,SA:qE,SE:/^[1-9]\d{2}\s?\d{2}$/,SG:WE,SI:KE,SK:/^\d{3}\s?\d{2}$/,TH:qE,TN:KE,TW:/^\d{3}(\d{2})?$/,UA:qE,US:/^\d{5}(-\d{4})?$/,ZA:KE,ZM:qE},QE=Object.keys(YE);zE.locales=QE;var JE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,n.default)(e);var r=t?new RegExp("^[".concat(t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"]+"),"g"):/^\s+/g;return e.replace(r,"")};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);e.exports=t.default,e.exports.default=t.default}(JE,JE.exports);var XE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,n.default)(e),t){var r=new RegExp("[".concat(t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"]+$"),"g");return e.replace(r,"")}var i=e.length-1;for(;/\s/.test(e.charAt(i));)i-=1;return e.slice(0,i+1)};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);e.exports=t.default,e.exports.default=t.default}(XE,XE.exports);var eS={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,n.default)((0,r.default)(e,t),t)};var n=i(XE.exports),r=i(JE.exports);function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default}(eS,eS.exports);var tS={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e),e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(/\//g,"/").replace(/\\/g,"\").replace(/`/g,"`")};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);e.exports=t.default,e.exports.default=t.default}(tS,tS.exports);var nS={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e),e.replace(/"/g,'"').replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(///g,"/").replace(/\/g,"\\").replace(/`/g,"`").replace(/&/g,"&")};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);e.exports=t.default,e.exports.default=t.default}(nS,nS.exports);var rS={exports:{}},iS={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,n.default)(e),e.replace(new RegExp("[".concat(t,"]+"),"g"),"")};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);e.exports=t.default,e.exports.default=t.default}(iS,iS.exports),function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,n.default)(e);var i=t?"\\x00-\\x09\\x0B\\x0C\\x0E-\\x1F\\x7F":"\\x00-\\x1F\\x7F";return(0,r.default)(e,i)};var n=i(yx.exports),r=i(iS.exports);function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default}(rS,rS.exports);var aS={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,n.default)(e),e.replace(new RegExp("[^".concat(t,"]+"),"g"),"")};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);e.exports=t.default,e.exports.default=t.default}(aS,aS.exports);var oS={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,n.default)(e);for(var r=e.length-1;r>=0;r--)if(-1===t.indexOf(e[r]))return!1;return!0};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);e.exports=t.default,e.exports.default=t.default}(oS,oS.exports);var sS={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){t=(0,n.default)(t,r);var c=e.split("@"),d=c.pop(),l=[c.join("@"),d];if(l[1]=l[1].toLowerCase(),"gmail.com"===l[1]||"googlemail.com"===l[1]){if(t.gmail_remove_subaddress&&(l[0]=l[0].split("+")[0]),t.gmail_remove_dots&&(l[0]=l[0].replace(/\.+/g,u)),!l[0].length)return!1;(t.all_lowercase||t.gmail_lowercase)&&(l[0]=l[0].toLowerCase()),l[1]=t.gmail_convert_googlemaildotcom?"gmail.com":l[1]}else if(i.indexOf(l[1])>=0){if(t.icloud_remove_subaddress&&(l[0]=l[0].split("+")[0]),!l[0].length)return!1;(t.all_lowercase||t.icloud_lowercase)&&(l[0]=l[0].toLowerCase())}else if(a.indexOf(l[1])>=0){if(t.outlookdotcom_remove_subaddress&&(l[0]=l[0].split("+")[0]),!l[0].length)return!1;(t.all_lowercase||t.outlookdotcom_lowercase)&&(l[0]=l[0].toLowerCase())}else if(o.indexOf(l[1])>=0){if(t.yahoo_remove_subaddress){var f=l[0].split("-");l[0]=f.length>1?f.slice(0,-1).join("-"):f[0]}if(!l[0].length)return!1;(t.all_lowercase||t.yahoo_lowercase)&&(l[0]=l[0].toLowerCase())}else s.indexOf(l[1])>=0?((t.all_lowercase||t.yandex_lowercase)&&(l[0]=l[0].toLowerCase()),l[1]="yandex.ru"):t.all_lowercase&&(l[0]=l[0].toLowerCase());return l.join("@")};var n=function(e){return e&&e.__esModule?e:{default:e}}(Jx.exports);var r={all_lowercase:!0,gmail_lowercase:!0,gmail_remove_dots:!0,gmail_remove_subaddress:!0,gmail_convert_googlemaildotcom:!0,outlookdotcom_lowercase:!0,outlookdotcom_remove_subaddress:!0,yahoo_lowercase:!0,yahoo_remove_subaddress:!0,yandex_lowercase:!0,icloud_lowercase:!0,icloud_remove_subaddress:!0},i=["icloud.com","me.com"],a=["hotmail.at","hotmail.be","hotmail.ca","hotmail.cl","hotmail.co.il","hotmail.co.nz","hotmail.co.th","hotmail.co.uk","hotmail.com","hotmail.com.ar","hotmail.com.au","hotmail.com.br","hotmail.com.gr","hotmail.com.mx","hotmail.com.pe","hotmail.com.tr","hotmail.com.vn","hotmail.cz","hotmail.de","hotmail.dk","hotmail.es","hotmail.fr","hotmail.hu","hotmail.id","hotmail.ie","hotmail.in","hotmail.it","hotmail.jp","hotmail.kr","hotmail.lv","hotmail.my","hotmail.ph","hotmail.pt","hotmail.sa","hotmail.sg","hotmail.sk","live.be","live.co.uk","live.com","live.com.ar","live.com.mx","live.de","live.es","live.eu","live.fr","live.it","live.nl","msn.com","outlook.at","outlook.be","outlook.cl","outlook.co.il","outlook.co.nz","outlook.co.th","outlook.com","outlook.com.ar","outlook.com.au","outlook.com.br","outlook.com.gr","outlook.com.pe","outlook.com.tr","outlook.com.vn","outlook.cz","outlook.de","outlook.dk","outlook.es","outlook.fr","outlook.hu","outlook.id","outlook.ie","outlook.in","outlook.it","outlook.jp","outlook.kr","outlook.lv","outlook.my","outlook.ph","outlook.pt","outlook.sa","outlook.sg","outlook.sk","passport.com"],o=["rocketmail.com","yahoo.ca","yahoo.co.uk","yahoo.com","yahoo.de","yahoo.fr","yahoo.in","yahoo.it","ymail.com"],s=["yandex.ru","yandex.ua","yandex.kz","yandex.com","yandex.by","ya.ru"];function u(e){return e.length>1?e:""}e.exports=t.default,e.exports.default=t.default}(sS,sS.exports);var uS={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e),r.test(e)};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r=/^[^\s-_](?!.*?[-_]{2,})[a-z0-9-\\][^\s]*[^-_\s]$/;e.exports=t.default,e.exports.default=t.default}(uS,uS.exports);var cS={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,n.default)(e),t in r)return r[t](e);if("any"===t){for(var i in r){if((0,r[i])(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r={"cs-CZ":function(e){return/^(([ABCDEFHIJKLMNPRSTUVXYZ]|[0-9])-?){5,8}$/.test(e)},"de-DE":function(e){return/^((A|AA|AB|AC|AE|AH|AK|AM|AN|AÖ|AP|AS|AT|AU|AW|AZ|B|BA|BB|BC|BE|BF|BH|BI|BK|BL|BM|BN|BO|BÖ|BS|BT|BZ|C|CA|CB|CE|CO|CR|CW|D|DA|DD|DE|DH|DI|DL|DM|DN|DO|DU|DW|DZ|E|EA|EB|ED|EE|EF|EG|EH|EI|EL|EM|EN|ER|ES|EU|EW|F|FB|FD|FF|FG|FI|FL|FN|FO|FR|FS|FT|FÜ|FW|FZ|G|GA|GC|GD|GE|GF|GG|GI|GK|GL|GM|GN|GÖ|GP|GR|GS|GT|GÜ|GV|GW|GZ|H|HA|HB|HC|HD|HE|HF|HG|HH|HI|HK|HL|HM|HN|HO|HP|HR|HS|HU|HV|HX|HY|HZ|IK|IL|IN|IZ|J|JE|JL|K|KA|KB|KC|KE|KF|KG|KH|KI|KK|KL|KM|KN|KO|KR|KS|KT|KU|KW|KY|L|LA|LB|LC|LD|LF|LG|LH|LI|LL|LM|LN|LÖ|LP|LR|LU|M|MA|MB|MC|MD|ME|MG|MH|MI|MK|ML|MM|MN|MO|MQ|MR|MS|MÜ|MW|MY|MZ|N|NB|ND|NE|NF|NH|NI|NK|NM|NÖ|NP|NR|NT|NU|NW|NY|NZ|OA|OB|OC|OD|OE|OF|OG|OH|OK|OL|OP|OS|OZ|P|PA|PB|PE|PF|PI|PL|PM|PN|PR|PS|PW|PZ|R|RA|RC|RD|RE|RG|RH|RI|RL|RM|RN|RO|RP|RS|RT|RU|RV|RW|RZ|S|SB|SC|SE|SG|SI|SK|SL|SM|SN|SO|SP|SR|ST|SU|SW|SY|SZ|TE|TF|TG|TO|TP|TR|TS|TT|TÜ|ÜB|UE|UH|UL|UM|UN|V|VB|VG|VK|VR|VS|W|WA|WB|WE|WF|WI|WK|WL|WM|WN|WO|WR|WS|WT|WÜ|WW|WZ|Z|ZE|ZI|ZP|ZR|ZW|ZZ)[- ]?[A-Z]{1,2}[- ]?\d{1,4}|(ABG|ABI|AIB|AIC|ALF|ALZ|ANA|ANG|ANK|APD|ARN|ART|ASL|ASZ|AUR|AZE|BAD|BAR|BBG|BCH|BED|BER|BGD|BGL|BID|BIN|BIR|BIT|BIW|BKS|BLB|BLK|BNA|BOG|BOH|BOR|BOT|BRA|BRB|BRG|BRK|BRL|BRV|BSB|BSK|BTF|BÜD|BUL|BÜR|BÜS|BÜZ|CAS|CHA|CLP|CLZ|COC|COE|CUX|DAH|DAN|DAU|DBR|DEG|DEL|DGF|DIL|DIN|DIZ|DKB|DLG|DON|DUD|DÜW|EBE|EBN|EBS|ECK|EIC|EIL|EIN|EIS|EMD|EMS|ERB|ERH|ERK|ERZ|ESB|ESW|FDB|FDS|FEU|FFB|FKB|FLÖ|FOR|FRG|FRI|FRW|FTL|FÜS|GAN|GAP|GDB|GEL|GEO|GER|GHA|GHC|GLA|GMN|GNT|GOA|GOH|GRA|GRH|GRI|GRM|GRZ|GTH|GUB|GUN|GVM|HAB|HAL|HAM|HAS|HBN|HBS|HCH|HDH|HDL|HEB|HEF|HEI|HER|HET|HGN|HGW|HHM|HIG|HIP|HMÜ|HOG|HOH|HOL|HOM|HOR|HÖS|HOT|HRO|HSK|HST|HVL|HWI|IGB|ILL|JÜL|KEH|KEL|KEM|KIB|KLE|KLZ|KÖN|KÖT|KÖZ|KRU|KÜN|KUS|KYF|LAN|LAU|LBS|LBZ|LDK|LDS|LEO|LER|LEV|LIB|LIF|LIP|LÖB|LOS|LRO|LSZ|LÜN|LUP|LWL|MAB|MAI|MAK|MAL|MED|MEG|MEI|MEK|MEL|MER|MET|MGH|MGN|MHL|MIL|MKK|MOD|MOL|MON|MOS|MSE|MSH|MSP|MST|MTK|MTL|MÜB|MÜR|MYK|MZG|NAB|NAI|NAU|NDH|NEA|NEB|NEC|NEN|NES|NEW|NMB|NMS|NOH|NOL|NOM|NOR|NVP|NWM|OAL|OBB|OBG|OCH|OHA|ÖHR|OHV|OHZ|OPR|OSL|OVI|OVL|OVP|PAF|PAN|PAR|PCH|PEG|PIR|PLÖ|PRÜ|QFT|QLB|RDG|REG|REH|REI|RID|RIE|ROD|ROF|ROK|ROL|ROS|ROT|ROW|RSL|RÜD|RÜG|SAB|SAD|SAN|SAW|SBG|SBK|SCZ|SDH|SDL|SDT|SEB|SEE|SEF|SEL|SFB|SFT|SGH|SHA|SHG|SHK|SHL|SIG|SIM|SLE|SLF|SLK|SLN|SLS|SLÜ|SLZ|SMÜ|SOB|SOG|SOK|SÖM|SON|SPB|SPN|SRB|SRO|STA|STB|STD|STE|STL|SUL|SÜW|SWA|SZB|TBB|TDO|TET|TIR|TÖL|TUT|UEM|UER|UFF|USI|VAI|VEC|VER|VIB|VIE|VIT|VOH|WAF|WAK|WAN|WAR|WAT|WBS|WDA|WEL|WEN|WER|WES|WHV|WIL|WIS|WIT|WIZ|WLG|WMS|WND|WOB|WOH|WOL|WOR|WOS|WRN|WSF|WST|WSW|WTL|WTM|WUG|WÜM|WUN|WUR|WZL|ZEL|ZIG)[- ]?(([A-Z][- ]?\d{1,4})|([A-Z]{2}[- ]?\d{1,3})))[- ]?(E|H)?$/.test(e)},"de-LI":function(e){return/^FL[- ]?\d{1,5}[UZ]?$/.test(e)},"en-IN":function(e){return/^[A-Z]{2}[ -]?[0-9]{1,2}(?:[ -]?[A-Z])(?:[ -]?[A-Z]*)?[ -]?[0-9]{4}$/.test(e)},"es-AR":function(e){return/^(([A-Z]{2} ?[0-9]{3} ?[A-Z]{2})|([A-Z]{3} ?[0-9]{3}))$/.test(e)},"fi-FI":function(e){return/^(?=.{4,7})(([A-Z]{1,3}|[0-9]{1,3})[\s-]?([A-Z]{1,3}|[0-9]{1,5}))$/.test(e)},"hu-HU":function(e){return/^((((?!AAA)(([A-NPRSTVZWXY]{1})([A-PR-Z]{1})([A-HJ-NPR-Z]))|(A[ABC]I)|A[ABC]O|A[A-W]Q|BPI|BPO|UCO|UDO|XAO)-(?!000)\d{3})|(M\d{6})|((CK|DT|CD|HC|H[ABEFIKLMNPRSTVX]|MA|OT|R[A-Z]) \d{2}-\d{2})|(CD \d{3}-\d{3})|(C-(C|X) \d{4})|(X-(A|B|C) \d{4})|(([EPVZ]-\d{5}))|(S A[A-Z]{2} \d{2})|(SP \d{2}-\d{2}))$/.test(e)},"pt-BR":function(e){return/^[A-Z]{3}[ -]?[0-9][A-Z][0-9]{2}|[A-Z]{3}[ -]?[0-9]{4}$/.test(e)},"pt-PT":function(e){return/^([A-Z]{2}|[0-9]{2})[ -·]?([A-Z]{2}|[0-9]{2})[ -·]?([A-Z]{2}|[0-9]{2})$/.test(e)},"sq-AL":function(e){return/^[A-Z]{2}[- ]?((\d{3}[- ]?(([A-Z]{2})|T))|(R[- ]?\d{3}))$/.test(e)},"sv-SE":function(e){return/^[A-HJ-PR-UW-Z]{3} ?[\d]{2}[A-HJ-PR-UW-Z1-9]$|(^[A-ZÅÄÖ ]{2,7}$)/.test(e.trim())}};e.exports=t.default,e.exports.default=t.default}(cS,cS.exports);var dS={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;(0,r.default)(e);var i=function(e){var t=function(e){var t={};return Array.from(e).forEach((function(e){t[e]?t[e]+=1:t[e]=1})),t}(e),n={length:e.length,uniqueChars:Object.keys(t).length,uppercaseCount:0,lowercaseCount:0,numberCount:0,symbolCount:0};return Object.keys(t).forEach((function(e){a.test(e)?n.uppercaseCount+=t[e]:o.test(e)?n.lowercaseCount+=t[e]:s.test(e)?n.numberCount+=t[e]:u.test(e)&&(n.symbolCount+=t[e])})),n}(e);if(t=(0,n.default)(t||{},c),t.returnScore)return function(e,t){var n=0;n+=e.uniqueChars*t.pointsPerUnique,n+=(e.length-e.uniqueChars)*t.pointsPerRepeat,e.lowercaseCount>0&&(n+=t.pointsForContainingLower);e.uppercaseCount>0&&(n+=t.pointsForContainingUpper);e.numberCount>0&&(n+=t.pointsForContainingNumber);e.symbolCount>0&&(n+=t.pointsForContainingSymbol);return n}(i,t);return i.length>=t.minLength&&i.lowercaseCount>=t.minLowercase&&i.uppercaseCount>=t.minUppercase&&i.numberCount>=t.minNumbers&&i.symbolCount>=t.minSymbols};var n=i(Jx.exports),r=i(yx.exports);function i(e){return e&&e.__esModule?e:{default:e}}var a=/^[A-Z]$/,o=/^[a-z]$/,s=/^[0-9]$/,u=/^[-#!$@£%^&*()_+|~=`{}\[\]:";'<>?,.\/ ]$/,c={minLength:8,minLowercase:1,minUppercase:1,minNumbers:1,minSymbols:1,returnScore:!1,pointsPerUnique:1,pointsPerRepeat:.5,pointsForContainingLower:10,pointsForContainingUpper:10,pointsForContainingNumber:10,pointsForContainingSymbol:10};e.exports=t.default,e.exports.default=t.default}(dS,dS.exports);var lS={};function fS(e){return fS="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},fS(e)}Object.defineProperty(lS,"__esModule",{value:!0}),lS.default=function(e,t){if((0,pS.default)(e),(0,pS.default)(t),t in vS)return vS[t](e);throw new Error("Invalid country code: '".concat(t,"'"))},lS.vatMatchers=void 0;var pS=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports),hS=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==fS(e)&&"function"!=typeof e)return{default:e};var t=mS();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(wE);function mS(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return mS=function(){return e},e}var vS={AT:function(e){return/^(AT)?U\d{8}$/.test(e)},BE:function(e){return/^(BE)?\d{10}$/.test(e)},BG:function(e){return/^(BG)?\d{9,10}$/.test(e)},HR:function(e){return/^(HR)?\d{11}$/.test(e)},CY:function(e){return/^(CY)?\w{9}$/.test(e)},CZ:function(e){return/^(CZ)?\d{8,10}$/.test(e)},DK:function(e){return/^(DK)?\d{8}$/.test(e)},EE:function(e){return/^(EE)?\d{9}$/.test(e)},FI:function(e){return/^(FI)?\d{8}$/.test(e)},FR:function(e){return/^(FR)?\w{2}\d{9}$/.test(e)},DE:function(e){return/^(DE)?\d{9}$/.test(e)},EL:function(e){return/^(EL)?\d{9}$/.test(e)},HU:function(e){return/^(HU)?\d{8}$/.test(e)},IE:function(e){return/^(IE)?\d{7}\w{1}(W)?$/.test(e)},IT:function(e){return/^(IT)?\d{11}$/.test(e)},LV:function(e){return/^(LV)?\d{11}$/.test(e)},LT:function(e){return/^(LT)?\d{9,12}$/.test(e)},LU:function(e){return/^(LU)?\d{8}$/.test(e)},MT:function(e){return/^(MT)?\d{8}$/.test(e)},NL:function(e){return/^(NL)?\d{9}B\d{2}$/.test(e)},PL:function(e){return/^(PL)?(\d{10}|(\d{3}-\d{3}-\d{2}-\d{2})|(\d{3}-\d{2}-\d{2}-\d{3}))$/.test(e)},PT:function(e){var t=e.match(/^(PT)?(\d{9})$/);if(!t)return!1;var n=t[2],r=11-hS.reverseMultiplyAndSum(n.split("").slice(0,8).map((function(e){return parseInt(e,10)})),9)%11;return r>9?0===parseInt(n[8],10):r===parseInt(n[8],10)},RO:function(e){return/^(RO)?\d{2,10}$/.test(e)},SK:function(e){return/^(SK)?\d{10}$/.test(e)},SI:function(e){return/^(SI)?\d{8}$/.test(e)},ES:function(e){return/^(ES)?\w\d{7}[A-Z]$/.test(e)},SE:function(e){return/^(SE)?\d{12}$/.test(e)},AL:function(e){return/^(AL)?\w{9}[A-Z]$/.test(e)},MK:function(e){return/^(MK)?\d{13}$/.test(e)},AU:function(e){return/^(AU)?\d{11}$/.test(e)},BY:function(e){return/^(УНП )?\d{9}$/.test(e)},CA:function(e){return/^(CA)?\d{9}$/.test(e)},IS:function(e){return/^(IS)?\d{5,6}$/.test(e)},IN:function(e){return/^(IN)?\d{15}$/.test(e)},ID:function(e){return/^(ID)?(\d{15}|(\d{2}.\d{3}.\d{3}.\d{1}-\d{3}.\d{3}))$/.test(e)},IL:function(e){return/^(IL)?\d{9}$/.test(e)},KZ:function(e){return/^(KZ)?\d{9}$/.test(e)},NZ:function(e){return/^(NZ)?\d{9}$/.test(e)},NG:function(e){return/^(NG)?(\d{12}|(\d{8}-\d{4}))$/.test(e)},NO:function(e){return/^(NO)?\d{9}MVA$/.test(e)},PH:function(e){return/^(PH)?(\d{12}|\d{3} \d{3} \d{3} \d{3})$/.test(e)},RU:function(e){return/^(RU)?(\d{10}|\d{12})$/.test(e)},SM:function(e){return/^(SM)?\d{5}$/.test(e)},SA:function(e){return/^(SA)?\d{15}$/.test(e)},RS:function(e){return/^(RS)?\d{9}$/.test(e)},CH:function(e){return/^(CH)?(\d{6}|\d{9}|(\d{3}.\d{3})|(\d{3}.\d{3}.\d{3}))(TVA|MWST|IVA)$/.test(e)},TR:function(e){return/^(TR)?\d{10}$/.test(e)},UA:function(e){return/^(UA)?\d{12}$/.test(e)},GB:function(e){return/^GB((\d{3} \d{4} ([0-8][0-9]|9[0-6]))|(\d{9} \d{3})|(((GD[0-4])|(HA[5-9]))[0-9]{2}))$/.test(e)},UZ:function(e){return/^(UZ)?\d{9}$/.test(e)},AR:function(e){return/^(AR)?\d{11}$/.test(e)},BO:function(e){return/^(BO)?\d{7}$/.test(e)},BR:function(e){return/^(BR)?((\d{2}.\d{3}.\d{3}\/\d{4}-\d{2})|(\d{3}.\d{3}.\d{3}-\d{2}))$/.test(e)},CL:function(e){return/^(CL)?\d{8}-\d{1}$/.test(e)},CO:function(e){return/^(CO)?\d{10}$/.test(e)},CR:function(e){return/^(CR)?\d{9,12}$/.test(e)},EC:function(e){return/^(EC)?\d{13}$/.test(e)},SV:function(e){return/^(SV)?\d{4}-\d{6}-\d{3}-\d{1}$/.test(e)},GT:function(e){return/^(GT)?\d{7}-\d{1}$/.test(e)},HN:function(e){return/^(HN)?$/.test(e)},MX:function(e){return/^(MX)?\w{3,4}\d{6}\w{3}$/.test(e)},NI:function(e){return/^(NI)?\d{3}-\d{6}-\d{4}\w{1}$/.test(e)},PA:function(e){return/^(PA)?$/.test(e)},PY:function(e){return/^(PY)?\d{6,8}-\d{1}$/.test(e)},PE:function(e){return/^(PE)?\d{11}$/.test(e)},DO:function(e){return/^(DO)?(\d{11}|(\d{3}-\d{7}-\d{1})|[1,4,5]{1}\d{8}|([1,4,5]{1})-\d{2}-\d{5}-\d{1})$/.test(e)},UY:function(e){return/^(UY)?\d{12}$/.test(e)},VE:function(e){return/^(VE)?[J,G,V,E]{1}-(\d{9}|(\d{8}-\d{1}))$/.test(e)}};lS.vatMatchers=vS,function(e,t){function n(e){return n="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},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=Ke(bx.exports),i=Ke(_x.exports),a=Ke(Kx.exports),o=Ke(qx.exports),s=Ke(Wx.exports),u=Ke(Yx.exports),c=Ke(Xx.exports),d=Ke(ek.exports),l=Ke(ik.exports),f=Ke(ak.exports),p=Ke(rk.exports),h=Ke(ok.exports),m=Ke(nk.exports),v=Ke(sk.exports),g=Ke(uk.exports),A=Ke(ck.exports),b=Ke(dk.exports),y=Ve(lk),_=Ve(mk),w=Ke(bk.exports),x=Ke(yk.exports),k=Ke(_k.exports),E=Ke(xk.exports),S=Ke(kk.exports),D=Ke(Ek.exports),I=Ke(Sk.exports),R=Ke(Dk),C=Ke(Ck),O=Ke(Pk.exports),T=Ke(Lk.exports),P=Ke(Mk.exports),L=Ke(jk.exports),M=Ke(wk.exports),B=Ve(wx),j=Ke(Uk.exports),U=Ke(Nk.exports),F=Ke($k.exports),N=Ke(Gk.exports),$=Ke(Hk.exports),G=Ke(zk.exports),H=Ke(Zk.exports),z=Ke(Vk.exports),Z=Ve(Kk),V=Ke(Qk.exports),K=Ke(nE.exports),q=Ke(rE.exports),W=Ke(iE.exports),Y=Ke(oE.exports),Q=Ke(sE.exports),J=Ke(uE.exports),X=Ke(tk.exports),ee=Ke(cE.exports),te=Ke(dE.exports),ne=Ke(lE.exports),re=Ke(fE.exports),ie=Ke(pE.exports),ae=Ke(hE.exports),oe=Ke(mE.exports),se=Ke(vE.exports),ue=Ke(gE.exports),ce=Ke(AE.exports),de=Ke(bE.exports),le=Ke(yE.exports),fe=Ke(_E.exports),pe=Ve(xE),he=Ke(DE.exports),me=Ke(IE.exports),ve=Ke(RE.exports),ge=Ke(CE.exports),Ae=Ke(OE.exports),be=Ke(TE.exports),ye=Ke(Jk),_e=Ke(PE.exports),we=Ke(LE),xe=Ke(UE.exports),ke=Ke(FE.exports),Ee=Ke(aE.exports),Se=Ke(NE.exports),De=Ke($E.exports),Ie=Ke(GE.exports),Re=Ke(HE.exports),Ce=Ve(zE),Oe=Ke(JE.exports),Te=Ke(XE.exports),Pe=Ke(eS.exports),Le=Ke(tS.exports),Me=Ke(nS.exports),Be=Ke(rS.exports),je=Ke(aS.exports),Ue=Ke(iS.exports),Fe=Ke(oS.exports),Ne=Ke(sS.exports),$e=Ke(uS.exports),Ge=Ke(cS.exports),He=Ke(dS.exports),ze=Ke(lS);function Ze(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return Ze=function(){return e},e}function Ve(e){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var t=Ze();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=i?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=e[a]}return r.default=e,t&&t.set(e,r),r}function Ke(e){return e&&e.__esModule?e:{default:e}}var qe={version:"13.9.0",toDate:r.default,toFloat:i.default,toInt:a.default,toBoolean:o.default,equals:s.default,contains:u.default,matches:c.default,isEmail:d.default,isURL:l.default,isMACAddress:f.default,isIP:p.default,isIPRange:h.default,isFQDN:m.default,isBoolean:A.default,isIBAN:Z.default,isBIC:V.default,isAlpha:y.default,isAlphaLocales:y.locales,isAlphanumeric:_.default,isAlphanumericLocales:_.locales,isNumeric:w.default,isPassportNumber:x.default,isPort:k.default,isLowercase:E.default,isUppercase:S.default,isAscii:I.default,isFullWidth:R.default,isHalfWidth:C.default,isVariableWidth:O.default,isMultibyte:T.default,isSemVer:P.default,isSurrogatePair:L.default,isInt:M.default,isIMEI:D.default,isFloat:B.default,isFloatLocales:B.locales,isDecimal:j.default,isHexadecimal:U.default,isOctal:F.default,isDivisibleBy:N.default,isHexColor:$.default,isRgbColor:G.default,isHSL:H.default,isISRC:z.default,isMD5:K.default,isHash:q.default,isJWT:W.default,isJSON:Y.default,isEmpty:Q.default,isLength:J.default,isLocale:b.default,isByteLength:X.default,isUUID:ee.default,isMongoId:te.default,isAfter:ne.default,isBefore:re.default,isIn:ie.default,isLuhnNumber:ae.default,isCreditCard:oe.default,isIdentityCard:se.default,isEAN:ue.default,isISIN:ce.default,isISBN:de.default,isISSN:le.default,isMobilePhone:pe.default,isMobilePhoneLocales:pe.locales,isPostalCode:Ce.default,isPostalCodeLocales:Ce.locales,isEthereumAddress:he.default,isCurrency:me.default,isBtcAddress:ve.default,isISO6391:ge.default,isISO8601:Ae.default,isRFC3339:be.default,isISO31661Alpha2:ye.default,isISO31661Alpha3:_e.default,isISO4217:we.default,isBase32:xe.default,isBase58:ke.default,isBase64:Ee.default,isDataURI:Se.default,isMagnetURI:De.default,isMimeType:Ie.default,isLatLong:Re.default,ltrim:Oe.default,rtrim:Te.default,trim:Pe.default,escape:Le.default,unescape:Me.default,stripLow:Be.default,whitelist:je.default,blacklist:Ue.default,isWhitelisted:Fe.default,normalizeEmail:Ne.default,toString:toString,isSlug:$e.default,isStrongPassword:He.default,isTaxID:fe.default,isDate:v.default,isTime:g.default,isLicensePlate:Ge.default,isVAT:ze.default,ibanLocales:Z.locales};t.default=qe,e.exports=t.default,e.exports.default=t.default}(Ax,Ax.exports);var gS=a(Ax.exports);const AS=2147483647,bS=36,yS=/^xn--/,_S=/[^\0-\x7F]/,wS=/[\x2E\u3002\uFF0E\uFF61]/g,xS={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},kS=Math.floor,ES=String.fromCharCode;function SS(e){throw new RangeError(xS[e])}function DS(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]);const i=function(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}((e=e.replace(wS,".")).split("."),t).join(".");return r+i}function IS(e){const t=[];let n=0;const r=e.length;for(;n<r;){const i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const r=e.charCodeAt(n++);56320==(64512&r)?t.push(((1023&i)<<10)+(1023&r)+65536):(t.push(i),n--)}else t.push(i)}return t}const RS=e=>String.fromCodePoint(...e),CS=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},OS=function(e,t,n){let r=0;for(e=n?kS(e/700):e>>1,e+=kS(e/t);e>455;r+=bS)e=kS(e/35);return kS(r+36*e/(e+38))},TS=function(e){const t=[],n=e.length;let r=0,i=128,a=72,o=e.lastIndexOf("-");o<0&&(o=0);for(let n=0;n<o;++n)e.charCodeAt(n)>=128&&SS("not-basic"),t.push(e.charCodeAt(n));for(let u=o>0?o+1:0;u<n;){const o=r;for(let t=1,i=bS;;i+=bS){u>=n&&SS("invalid-input");const o=(s=e.charCodeAt(u++))>=48&&s<58?s-48+26:s>=65&&s<91?s-65:s>=97&&s<123?s-97:bS;o>=bS&&SS("invalid-input"),o>kS((AS-r)/t)&&SS("overflow"),r+=o*t;const c=i<=a?1:i>=a+26?26:i-a;if(o<c)break;const d=bS-c;t>kS(AS/d)&&SS("overflow"),t*=d}const c=t.length+1;a=OS(r-o,c,0==o),kS(r/c)>AS-i&&SS("overflow"),i+=kS(r/c),r%=c,t.splice(r++,0,i)}var s;return String.fromCodePoint(...t)},PS=function(e){const t=[],n=(e=IS(e)).length;let r=128,i=0,a=72;for(const n of e)n<128&&t.push(ES(n));const o=t.length;let s=o;for(o&&t.push("-");s<n;){let n=AS;for(const t of e)t>=r&&t<n&&(n=t);const u=s+1;n-r>kS((AS-i)/u)&&SS("overflow"),i+=(n-r)*u,r=n;for(const n of e)if(n<r&&++i>AS&&SS("overflow"),n===r){let e=i;for(let n=bS;;n+=bS){const r=n<=a?1:n>=a+26?26:n-a;if(e<r)break;const i=e-r,o=bS-r;t.push(ES(CS(r+i%o,0))),e=kS(i/o)}t.push(ES(CS(e,0))),a=OS(i,u,s===o),i=0,++s}++i,++r}return t.join("")},LS=function(e){return DS(e,(function(e){return yS.test(e)?TS(e.slice(4).toLowerCase()):e}))},MS=function(e){return DS(e,(function(e){return _S.test(e)?"xn--"+PS(e):e}))},BS={version:"2.1.0",ucs2:{decode:IS,encode:RS},decode:TS,encode:PS,toASCII:MS,toUnicode:LS};var jS=Object.freeze({__proto__:null,ucs2decode:IS,ucs2encode:RS,decode:TS,encode:PS,toASCII:MS,toUnicode:LS,default:BS}),US=o(jS),FS={"com.ac":!0,"net.ac":!0,"gov.ac":!0,"org.ac":!0,"mil.ac":!0,"co.ae":!0,"net.ae":!0,"gov.ae":!0,"ac.ae":!0,"sch.ae":!0,"org.ae":!0,"mil.ae":!0,"pro.ae":!0,"name.ae":!0,"com.af":!0,"edu.af":!0,"gov.af":!0,"net.af":!0,"org.af":!0,"com.al":!0,"edu.al":!0,"gov.al":!0,"mil.al":!0,"net.al":!0,"org.al":!0,"ed.ao":!0,"gv.ao":!0,"og.ao":!0,"co.ao":!0,"pb.ao":!0,"it.ao":!0,"com.ar":!0,"edu.ar":!0,"gob.ar":!0,"gov.ar":!0,"int.ar":!0,"mil.ar":!0,"net.ar":!0,"org.ar":!0,"tur.ar":!0,"gv.at":!0,"ac.at":!0,"co.at":!0,"or.at":!0,"com.au":!0,"net.au":!0,"org.au":!0,"edu.au":!0,"gov.au":!0,"csiro.au":!0,"asn.au":!0,"id.au":!0,"vic.au":!0,"sa.au":!0,"wa.au":!0,"nt.au":!0,"tas.au":!0,"qld.au":!0,"act.au":!0,"conf.au":!0,"oz.au":!0,"org.ba":!0,"net.ba":!0,"edu.ba":!0,"gov.ba":!0,"mil.ba":!0,"unsa.ba":!0,"untz.ba":!0,"unmo.ba":!0,"unbi.ba":!0,"unze.ba":!0,"co.ba":!0,"com.ba":!0,"rs.ba":!0,"co.bb":!0,"com.bb":!0,"net.bb":!0,"org.bb":!0,"gov.bb":!0,"edu.bb":!0,"info.bb":!0,"store.bb":!0,"tv.bb":!0,"biz.bb":!0,"com.bh":!0,"info.bh":!0,"cc.bh":!0,"edu.bh":!0,"biz.bh":!0,"net.bh":!0,"org.bh":!0,"gov.bh":!0,"com.bn":!0,"edu.bn":!0,"gov.bn":!0,"net.bn":!0,"org.bn":!0,"com.bo":!0,"net.bo":!0,"org.bo":!0,"tv.bo":!0,"mil.bo":!0,"int.bo":!0,"gob.bo":!0,"gov.bo":!0,"edu.bo":!0,"adm.br":!0,"adv.br":!0,"agr.br":!0,"am.br":!0,"arq.br":!0,"art.br":!0,"ato.br":!0,"b.br":!0,"bio.br":!0,"blog.br":!0,"bmd.br":!0,"cim.br":!0,"cng.br":!0,"cnt.br":!0,"com.br":!0,"coop.br":!0,"ecn.br":!0,"edu.br":!0,"eng.br":!0,"esp.br":!0,"etc.br":!0,"eti.br":!0,"far.br":!0,"flog.br":!0,"fm.br":!0,"fnd.br":!0,"fot.br":!0,"fst.br":!0,"g12.br":!0,"ggf.br":!0,"gov.br":!0,"imb.br":!0,"ind.br":!0,"inf.br":!0,"jor.br":!0,"jus.br":!0,"lel.br":!0,"mat.br":!0,"med.br":!0,"mil.br":!0,"mus.br":!0,"net.br":!0,"nom.br":!0,"not.br":!0,"ntr.br":!0,"odo.br":!0,"org.br":!0,"ppg.br":!0,"pro.br":!0,"psc.br":!0,"psi.br":!0,"qsl.br":!0,"rec.br":!0,"slg.br":!0,"srv.br":!0,"tmp.br":!0,"trd.br":!0,"tur.br":!0,"tv.br":!0,"vet.br":!0,"vlog.br":!0,"wiki.br":!0,"zlg.br":!0,"com.bs":!0,"net.bs":!0,"org.bs":!0,"edu.bs":!0,"gov.bs":!0,"om.bz":!0,"du.bz":!0,"ov.bz":!0,"et.bz":!0,"rg.bz":!0,"ab.ca":!0,"bc.ca":!0,"mb.ca":!0,"nb.ca":!0,"nf.ca":!0,"nl.ca":!0,"ns.ca":!0,"nt.ca":!0,"nu.ca":!0,"on.ca":!0,"pe.ca":!0,"qc.ca":!0,"sk.ca":!0,"yk.ca":!0,"co.ck":!0,"org.ck":!0,"edu.ck":!0,"gov.ck":!0,"net.ck":!0,"gen.ck":!0,"biz.ck":!0,"info.ck":!0,"ac.cn":!0,"com.cn":!0,"edu.cn":!0,"gov.cn":!0,"mil.cn":!0,"net.cn":!0,"org.cn":!0,"ah.cn":!0,"bj.cn":!0,"cq.cn":!0,"fj.cn":!0,"gd.cn":!0,"gs.cn":!0,"gz.cn":!0,"gx.cn":!0,"ha.cn":!0,"hb.cn":!0,"he.cn":!0,"hi.cn":!0,"hl.cn":!0,"hn.cn":!0,"jl.cn":!0,"js.cn":!0,"jx.cn":!0,"ln.cn":!0,"nm.cn":!0,"nx.cn":!0,"qh.cn":!0,"sc.cn":!0,"sd.cn":!0,"sh.cn":!0,"sn.cn":!0,"sx.cn":!0,"tj.cn":!0,"tw.cn":!0,"xj.cn":!0,"xz.cn":!0,"yn.cn":!0,"zj.cn":!0,"com.co":!0,"org.co":!0,"edu.co":!0,"gov.co":!0,"net.co":!0,"mil.co":!0,"nom.co":!0,"ac.cr":!0,"co.cr":!0,"ed.cr":!0,"fi.cr":!0,"go.cr":!0,"or.cr":!0,"sa.cr":!0,cr:!0,"ac.cy":!0,"net.cy":!0,"gov.cy":!0,"org.cy":!0,"pro.cy":!0,"name.cy":!0,"ekloges.cy":!0,"tm.cy":!0,"ltd.cy":!0,"biz.cy":!0,"press.cy":!0,"parliament.cy":!0,"com.cy":!0,"edu.do":!0,"gob.do":!0,"gov.do":!0,"com.do":!0,"sld.do":!0,"org.do":!0,"net.do":!0,"web.do":!0,"mil.do":!0,"art.do":!0,"com.dz":!0,"org.dz":!0,"net.dz":!0,"gov.dz":!0,"edu.dz":!0,"asso.dz":!0,"pol.dz":!0,"art.dz":!0,"com.ec":!0,"info.ec":!0,"net.ec":!0,"fin.ec":!0,"med.ec":!0,"pro.ec":!0,"org.ec":!0,"edu.ec":!0,"gov.ec":!0,"mil.ec":!0,"com.eg":!0,"edu.eg":!0,"eun.eg":!0,"gov.eg":!0,"mil.eg":!0,"name.eg":!0,"net.eg":!0,"org.eg":!0,"sci.eg":!0,"com.er":!0,"edu.er":!0,"gov.er":!0,"mil.er":!0,"net.er":!0,"org.er":!0,"ind.er":!0,"rochest.er":!0,"w.er":!0,"com.es":!0,"nom.es":!0,"org.es":!0,"gob.es":!0,"edu.es":!0,"com.et":!0,"gov.et":!0,"org.et":!0,"edu.et":!0,"net.et":!0,"biz.et":!0,"name.et":!0,"info.et":!0,"ac.fj":!0,"biz.fj":!0,"com.fj":!0,"info.fj":!0,"mil.fj":!0,"name.fj":!0,"net.fj":!0,"org.fj":!0,"pro.fj":!0,"co.fk":!0,"org.fk":!0,"gov.fk":!0,"ac.fk":!0,"nom.fk":!0,"net.fk":!0,fr:!0,"tm.fr":!0,"asso.fr":!0,"nom.fr":!0,"prd.fr":!0,"presse.fr":!0,"com.fr":!0,"gouv.fr":!0,"co.gg":!0,"net.gg":!0,"org.gg":!0,"com.gh":!0,"edu.gh":!0,"gov.gh":!0,"org.gh":!0,"mil.gh":!0,"co.gl":!0,"com.gl":!0,"edu.gl":!0,"net.gl":!0,"org.gl":!0,"com.gn":!0,"ac.gn":!0,"gov.gn":!0,"org.gn":!0,"net.gn":!0,"com.gr":!0,"edu.gr":!0,"net.gr":!0,"org.gr":!0,"gov.gr":!0,"mil.gr":!0,"com.gt":!0,"edu.gt":!0,"net.gt":!0,"gob.gt":!0,"org.gt":!0,"mil.gt":!0,"ind.gt":!0,"com.gu":!0,"net.gu":!0,"gov.gu":!0,"org.gu":!0,"edu.gu":!0,"com.hk":!0,"edu.hk":!0,"gov.hk":!0,"idv.hk":!0,"net.hk":!0,"org.hk":!0,"2000.hu":!0,"agrar.hu":!0,"bolt.hu":!0,"casino.hu":!0,"city.hu":!0,"co.hu":!0,"erotica.hu":!0,"erotika.hu":!0,"film.hu":!0,"forum.hu":!0,"games.hu":!0,"hotel.hu":!0,"info.hu":!0,"ingatlan.hu":!0,"jogasz.hu":!0,"konyvelo.hu":!0,"lakas.hu":!0,"media.hu":!0,"news.hu":!0,"org.hu":!0,"priv.hu":!0,"reklam.hu":!0,"sex.hu":!0,"shop.hu":!0,"sport.hu":!0,"suli.huv":!0,"szex.hu":!0,"tm.hu":!0,"tozsde.hu":!0,"utazas.hu":!0,"video.hu":!0,"ac.id":!0,"co.id":!0,"net.id":!0,"or.id":!0,"web.id":!0,"sch.id":!0,"mil.id":!0,"go.id":!0,"war.net.id":!0,"my.id":!0,"biz.id":!0,"ac.il":!0,"co.il":!0,"org.il":!0,"net.il":!0,"k12.il":!0,"gov.il":!0,"muni.il":!0,"idf.il":!0,in:!0,"4fd.in":!0,"co.in":!0,"firm.in":!0,"net.in":!0,"org.in":!0,"gen.in":!0,"ind.in":!0,"ac.in":!0,"edu.in":!0,"res.in":!0,"ernet.in":!0,"gov.in":!0,"mil.in":!0,"nic.in":!0,iq:!0,"gov.iq":!0,"edu.iq":!0,"com.iq":!0,"mil.iq":!0,"org.iq":!0,"net.iq":!0,ir:!0,"ac.ir":!0,"co.ir":!0,"gov.ir":!0,"id.ir":!0,"net.ir":!0,"org.ir":!0,"sch.ir":!0,"dnssec.ir":!0,"gov.it":!0,"edu.it":!0,"co.je":!0,"net.je":!0,"org.je":!0,"com.jo":!0,"net.jo":!0,"gov.jo":!0,"edu.jo":!0,"org.jo":!0,"mil.jo":!0,"name.jo":!0,"sch.jo":!0,"ac.jp":!0,"ad.jp":!0,"co.jp":!0,"ed.jp":!0,"go.jp":!0,"gr.jp":!0,"lg.jp":!0,"ne.jp":!0,"or.jp":!0,"co.ke":!0,"or.ke":!0,"ne.ke":!0,"go.ke":!0,"ac.ke":!0,"sc.ke":!0,"me.ke":!0,"mobi.ke":!0,"info.ke":!0,"per.kh":!0,"com.kh":!0,"edu.kh":!0,"gov.kh":!0,"mil.kh":!0,"net.kh":!0,"org.kh":!0,"com.ki":!0,"biz.ki":!0,"de.ki":!0,"net.ki":!0,"info.ki":!0,"org.ki":!0,"gov.ki":!0,"edu.ki":!0,"mob.ki":!0,"tel.ki":!0,km:!0,"com.km":!0,"coop.km":!0,"asso.km":!0,"nom.km":!0,"presse.km":!0,"tm.km":!0,"medecin.km":!0,"notaires.km":!0,"pharmaciens.km":!0,"veterinaire.km":!0,"edu.km":!0,"gouv.km":!0,"mil.km":!0,"net.kn":!0,"org.kn":!0,"edu.kn":!0,"gov.kn":!0,kr:!0,"co.kr":!0,"ne.kr":!0,"or.kr":!0,"re.kr":!0,"pe.kr":!0,"go.kr":!0,"mil.kr":!0,"ac.kr":!0,"hs.kr":!0,"ms.kr":!0,"es.kr":!0,"sc.kr":!0,"kg.kr":!0,"seoul.kr":!0,"busan.kr":!0,"daegu.kr":!0,"incheon.kr":!0,"gwangju.kr":!0,"daejeon.kr":!0,"ulsan.kr":!0,"gyeonggi.kr":!0,"gangwon.kr":!0,"chungbuk.kr":!0,"chungnam.kr":!0,"jeonbuk.kr":!0,"jeonnam.kr":!0,"gyeongbuk.kr":!0,"gyeongnam.kr":!0,"jeju.kr":!0,"edu.kw":!0,"com.kw":!0,"net.kw":!0,"org.kw":!0,"gov.kw":!0,"com.ky":!0,"org.ky":!0,"net.ky":!0,"edu.ky":!0,"gov.ky":!0,"com.kz":!0,"edu.kz":!0,"gov.kz":!0,"mil.kz":!0,"net.kz":!0,"org.kz":!0,"com.lb":!0,"edu.lb":!0,"gov.lb":!0,"net.lb":!0,"org.lb":!0,"gov.lk":!0,"sch.lk":!0,"net.lk":!0,"int.lk":!0,"com.lk":!0,"org.lk":!0,"edu.lk":!0,"ngo.lk":!0,"soc.lk":!0,"web.lk":!0,"ltd.lk":!0,"assn.lk":!0,"grp.lk":!0,"hotel.lk":!0,"com.lr":!0,"edu.lr":!0,"gov.lr":!0,"org.lr":!0,"net.lr":!0,"com.lv":!0,"edu.lv":!0,"gov.lv":!0,"org.lv":!0,"mil.lv":!0,"id.lv":!0,"net.lv":!0,"asn.lv":!0,"conf.lv":!0,"com.ly":!0,"net.ly":!0,"gov.ly":!0,"plc.ly":!0,"edu.ly":!0,"sch.ly":!0,"med.ly":!0,"org.ly":!0,"id.ly":!0,ma:!0,"net.ma":!0,"ac.ma":!0,"org.ma":!0,"gov.ma":!0,"press.ma":!0,"co.ma":!0,"tm.mc":!0,"asso.mc":!0,"co.me":!0,"net.me":!0,"org.me":!0,"edu.me":!0,"ac.me":!0,"gov.me":!0,"its.me":!0,"priv.me":!0,"org.mg":!0,"nom.mg":!0,"gov.mg":!0,"prd.mg":!0,"tm.mg":!0,"edu.mg":!0,"mil.mg":!0,"com.mg":!0,"com.mk":!0,"org.mk":!0,"net.mk":!0,"edu.mk":!0,"gov.mk":!0,"inf.mk":!0,"name.mk":!0,"pro.mk":!0,"com.ml":!0,"net.ml":!0,"org.ml":!0,"edu.ml":!0,"gov.ml":!0,"presse.ml":!0,"gov.mn":!0,"edu.mn":!0,"org.mn":!0,"com.mo":!0,"edu.mo":!0,"gov.mo":!0,"net.mo":!0,"org.mo":!0,"com.mt":!0,"org.mt":!0,"net.mt":!0,"edu.mt":!0,"gov.mt":!0,"aero.mv":!0,"biz.mv":!0,"com.mv":!0,"coop.mv":!0,"edu.mv":!0,"gov.mv":!0,"info.mv":!0,"int.mv":!0,"mil.mv":!0,"museum.mv":!0,"name.mv":!0,"net.mv":!0,"org.mv":!0,"pro.mv":!0,"ac.mw":!0,"co.mw":!0,"com.mw":!0,"coop.mw":!0,"edu.mw":!0,"gov.mw":!0,"int.mw":!0,"museum.mw":!0,"net.mw":!0,"org.mw":!0,"com.mx":!0,"net.mx":!0,"org.mx":!0,"edu.mx":!0,"gob.mx":!0,"com.my":!0,"net.my":!0,"org.my":!0,"gov.my":!0,"edu.my":!0,"sch.my":!0,"mil.my":!0,"name.my":!0,"com.nf":!0,"net.nf":!0,"arts.nf":!0,"store.nf":!0,"web.nf":!0,"firm.nf":!0,"info.nf":!0,"other.nf":!0,"per.nf":!0,"rec.nf":!0,"com.ng":!0,"org.ng":!0,"gov.ng":!0,"edu.ng":!0,"net.ng":!0,"sch.ng":!0,"name.ng":!0,"mobi.ng":!0,"biz.ng":!0,"mil.ng":!0,"gob.ni":!0,"co.ni":!0,"com.ni":!0,"ac.ni":!0,"edu.ni":!0,"org.ni":!0,"nom.ni":!0,"net.ni":!0,"mil.ni":!0,"com.np":!0,"edu.np":!0,"gov.np":!0,"org.np":!0,"mil.np":!0,"net.np":!0,"edu.nr":!0,"gov.nr":!0,"biz.nr":!0,"info.nr":!0,"net.nr":!0,"org.nr":!0,"com.nr":!0,"com.om":!0,"co.om":!0,"edu.om":!0,"ac.om":!0,"sch.om":!0,"gov.om":!0,"net.om":!0,"org.om":!0,"mil.om":!0,"museum.om":!0,"biz.om":!0,"pro.om":!0,"med.om":!0,"edu.pe":!0,"gob.pe":!0,"nom.pe":!0,"mil.pe":!0,"sld.pe":!0,"org.pe":!0,"com.pe":!0,"net.pe":!0,"com.ph":!0,"net.ph":!0,"org.ph":!0,"mil.ph":!0,"ngo.ph":!0,"i.ph":!0,"gov.ph":!0,"edu.ph":!0,"com.pk":!0,"net.pk":!0,"edu.pk":!0,"org.pk":!0,"fam.pk":!0,"biz.pk":!0,"web.pk":!0,"gov.pk":!0,"gob.pk":!0,"gok.pk":!0,"gon.pk":!0,"gop.pk":!0,"gos.pk":!0,"pwr.pl":!0,"com.pl":!0,"biz.pl":!0,"net.pl":!0,"art.pl":!0,"edu.pl":!0,"org.pl":!0,"ngo.pl":!0,"gov.pl":!0,"info.pl":!0,"mil.pl":!0,"waw.pl":!0,"warszawa.pl":!0,"wroc.pl":!0,"wroclaw.pl":!0,"krakow.pl":!0,"katowice.pl":!0,"poznan.pl":!0,"lodz.pl":!0,"gda.pl":!0,"gdansk.pl":!0,"slupsk.pl":!0,"radom.pl":!0,"szczecin.pl":!0,"lublin.pl":!0,"bialystok.pl":!0,"olsztyn.pl":!0,"torun.pl":!0,"gorzow.pl":!0,"zgora.pl":!0,"biz.pr":!0,"com.pr":!0,"edu.pr":!0,"gov.pr":!0,"info.pr":!0,"isla.pr":!0,"name.pr":!0,"net.pr":!0,"org.pr":!0,"pro.pr":!0,"est.pr":!0,"prof.pr":!0,"ac.pr":!0,"com.ps":!0,"net.ps":!0,"org.ps":!0,"edu.ps":!0,"gov.ps":!0,"plo.ps":!0,"sec.ps":!0,"co.pw":!0,"ne.pw":!0,"or.pw":!0,"ed.pw":!0,"go.pw":!0,"belau.pw":!0,"arts.ro":!0,"com.ro":!0,"firm.ro":!0,"info.ro":!0,"nom.ro":!0,"nt.ro":!0,"org.ro":!0,"rec.ro":!0,"store.ro":!0,"tm.ro":!0,"www.ro":!0,"co.rs":!0,"org.rs":!0,"edu.rs":!0,"ac.rs":!0,"gov.rs":!0,"in.rs":!0,"com.sb":!0,"net.sb":!0,"edu.sb":!0,"org.sb":!0,"gov.sb":!0,"com.sc":!0,"net.sc":!0,"edu.sc":!0,"gov.sc":!0,"org.sc":!0,"co.sh":!0,"com.sh":!0,"org.sh":!0,"gov.sh":!0,"edu.sh":!0,"net.sh":!0,"nom.sh":!0,"com.sl":!0,"net.sl":!0,"org.sl":!0,"edu.sl":!0,"gov.sl":!0,"gov.st":!0,"saotome.st":!0,"principe.st":!0,"consulado.st":!0,"embaixada.st":!0,"org.st":!0,"edu.st":!0,"net.st":!0,"com.st":!0,"store.st":!0,"mil.st":!0,"co.st":!0,"edu.sv":!0,"gob.sv":!0,"com.sv":!0,"org.sv":!0,"red.sv":!0,"co.sz":!0,"ac.sz":!0,"org.sz":!0,"com.tr":!0,"gen.tr":!0,"org.tr":!0,"biz.tr":!0,"info.tr":!0,"av.tr":!0,"dr.tr":!0,"pol.tr":!0,"bel.tr":!0,"tsk.tr":!0,"bbs.tr":!0,"k12.tr":!0,"edu.tr":!0,"name.tr":!0,"net.tr":!0,"gov.tr":!0,"web.tr":!0,"tel.tr":!0,"tv.tr":!0,"co.tt":!0,"com.tt":!0,"org.tt":!0,"net.tt":!0,"biz.tt":!0,"info.tt":!0,"pro.tt":!0,"int.tt":!0,"coop.tt":!0,"jobs.tt":!0,"mobi.tt":!0,"travel.tt":!0,"museum.tt":!0,"aero.tt":!0,"cat.tt":!0,"tel.tt":!0,"name.tt":!0,"mil.tt":!0,"edu.tt":!0,"gov.tt":!0,"edu.tw":!0,"gov.tw":!0,"mil.tw":!0,"com.tw":!0,"net.tw":!0,"org.tw":!0,"idv.tw":!0,"game.tw":!0,"ebiz.tw":!0,"club.tw":!0,"com.mu":!0,"gov.mu":!0,"net.mu":!0,"org.mu":!0,"ac.mu":!0,"co.mu":!0,"or.mu":!0,"ac.mz":!0,"co.mz":!0,"edu.mz":!0,"org.mz":!0,"gov.mz":!0,"com.na":!0,"co.na":!0,"ac.nz":!0,"co.nz":!0,"cri.nz":!0,"geek.nz":!0,"gen.nz":!0,"govt.nz":!0,"health.nz":!0,"iwi.nz":!0,"maori.nz":!0,"mil.nz":!0,"net.nz":!0,"org.nz":!0,"parliament.nz":!0,"school.nz":!0,"abo.pa":!0,"ac.pa":!0,"com.pa":!0,"edu.pa":!0,"gob.pa":!0,"ing.pa":!0,"med.pa":!0,"net.pa":!0,"nom.pa":!0,"org.pa":!0,"sld.pa":!0,"com.pt":!0,"edu.pt":!0,"gov.pt":!0,"int.pt":!0,"net.pt":!0,"nome.pt":!0,"org.pt":!0,"publ.pt":!0,"com.py":!0,"edu.py":!0,"gov.py":!0,"mil.py":!0,"net.py":!0,"org.py":!0,"com.qa":!0,"edu.qa":!0,"gov.qa":!0,"mil.qa":!0,"net.qa":!0,"org.qa":!0,"asso.re":!0,"com.re":!0,"nom.re":!0,"ac.ru":!0,"adygeya.ru":!0,"altai.ru":!0,"amur.ru":!0,"arkhangelsk.ru":!0,"astrakhan.ru":!0,"bashkiria.ru":!0,"belgorod.ru":!0,"bir.ru":!0,"bryansk.ru":!0,"buryatia.ru":!0,"cbg.ru":!0,"chel.ru":!0,"chelyabinsk.ru":!0,"chita.ru":!0,"chukotka.ru":!0,"chuvashia.ru":!0,"com.ru":!0,"dagestan.ru":!0,"e-burg.ru":!0,"edu.ru":!0,"gov.ru":!0,"grozny.ru":!0,"int.ru":!0,"irkutsk.ru":!0,"ivanovo.ru":!0,"izhevsk.ru":!0,"jar.ru":!0,"joshkar-ola.ru":!0,"kalmykia.ru":!0,"kaluga.ru":!0,"kamchatka.ru":!0,"karelia.ru":!0,"kazan.ru":!0,"kchr.ru":!0,"kemerovo.ru":!0,"khabarovsk.ru":!0,"khakassia.ru":!0,"khv.ru":!0,"kirov.ru":!0,"koenig.ru":!0,"komi.ru":!0,"kostroma.ru":!0,"kranoyarsk.ru":!0,"kuban.ru":!0,"kurgan.ru":!0,"kursk.ru":!0,"lipetsk.ru":!0,"magadan.ru":!0,"mari.ru":!0,"mari-el.ru":!0,"marine.ru":!0,"mil.ru":!0,"mordovia.ru":!0,"mosreg.ru":!0,"msk.ru":!0,"murmansk.ru":!0,"nalchik.ru":!0,"net.ru":!0,"nnov.ru":!0,"nov.ru":!0,"novosibirsk.ru":!0,"nsk.ru":!0,"omsk.ru":!0,"orenburg.ru":!0,"org.ru":!0,"oryol.ru":!0,"penza.ru":!0,"perm.ru":!0,"pp.ru":!0,"pskov.ru":!0,"ptz.ru":!0,"rnd.ru":!0,"ryazan.ru":!0,"sakhalin.ru":!0,"samara.ru":!0,"saratov.ru":!0,"simbirsk.ru":!0,"smolensk.ru":!0,"spb.ru":!0,"stavropol.ru":!0,"stv.ru":!0,"surgut.ru":!0,"tambov.ru":!0,"tatarstan.ru":!0,"tom.ru":!0,"tomsk.ru":!0,"tsaritsyn.ru":!0,"tsk.ru":!0,"tula.ru":!0,"tuva.ru":!0,"tver.ru":!0,"tyumen.ru":!0,"udm.ru":!0,"udmurtia.ru":!0,"ulan-ude.ru":!0,"vladikavkaz.ru":!0,"vladimir.ru":!0,"vladivostok.ru":!0,"volgograd.ru":!0,"vologda.ru":!0,"voronezh.ru":!0,"vrn.ru":!0,"vyatka.ru":!0,"yakutia.ru":!0,"yamal.ru":!0,"yekaterinburg.ru":!0,"yuzhno-sakhalinsk.ru":!0,"ac.rw":!0,"co.rw":!0,"com.rw":!0,"edu.rw":!0,"gouv.rw":!0,"gov.rw":!0,"int.rw":!0,"mil.rw":!0,"net.rw":!0,"com.sa":!0,"edu.sa":!0,"gov.sa":!0,"med.sa":!0,"net.sa":!0,"org.sa":!0,"pub.sa":!0,"sch.sa":!0,"com.sd":!0,"edu.sd":!0,"gov.sd":!0,"info.sd":!0,"med.sd":!0,"net.sd":!0,"org.sd":!0,"tv.sd":!0,"a.se":!0,"ac.se":!0,"b.se":!0,"bd.se":!0,"c.se":!0,"d.se":!0,"e.se":!0,"f.se":!0,"g.se":!0,"h.se":!0,"i.se":!0,"k.se":!0,"l.se":!0,"m.se":!0,"n.se":!0,"o.se":!0,"org.se":!0,"p.se":!0,"parti.se":!0,"pp.se":!0,"press.se":!0,"r.se":!0,"s.se":!0,"t.se":!0,"tm.se":!0,"u.se":!0,"w.se":!0,"x.se":!0,"y.se":!0,"z.se":!0,"com.sg":!0,"edu.sg":!0,"gov.sg":!0,"idn.sg":!0,"net.sg":!0,"org.sg":!0,"per.sg":!0,"art.sn":!0,"com.sn":!0,"edu.sn":!0,"gouv.sn":!0,"org.sn":!0,"perso.sn":!0,"univ.sn":!0,"com.sy":!0,"edu.sy":!0,"gov.sy":!0,"mil.sy":!0,"net.sy":!0,"news.sy":!0,"org.sy":!0,"ac.th":!0,"co.th":!0,"go.th":!0,"in.th":!0,"mi.th":!0,"net.th":!0,"or.th":!0,"ac.tj":!0,"biz.tj":!0,"co.tj":!0,"com.tj":!0,"edu.tj":!0,"go.tj":!0,"gov.tj":!0,"info.tj":!0,"int.tj":!0,"mil.tj":!0,"name.tj":!0,"net.tj":!0,"nic.tj":!0,"org.tj":!0,"test.tj":!0,"web.tj":!0,"agrinet.tn":!0,"com.tn":!0,"defense.tn":!0,"edunet.tn":!0,"ens.tn":!0,"fin.tn":!0,"gov.tn":!0,"ind.tn":!0,"info.tn":!0,"intl.tn":!0,"mincom.tn":!0,"nat.tn":!0,"net.tn":!0,"org.tn":!0,"perso.tn":!0,"rnrt.tn":!0,"rns.tn":!0,"rnu.tn":!0,"tourism.tn":!0,"ac.tz":!0,"co.tz":!0,"go.tz":!0,"ne.tz":!0,"or.tz":!0,"biz.ua":!0,"cherkassy.ua":!0,"chernigov.ua":!0,"chernovtsy.ua":!0,"ck.ua":!0,"cn.ua":!0,"co.ua":!0,"com.ua":!0,"crimea.ua":!0,"cv.ua":!0,"dn.ua":!0,"dnepropetrovsk.ua":!0,"donetsk.ua":!0,"dp.ua":!0,"edu.ua":!0,"gov.ua":!0,"if.ua":!0,"in.ua":!0,"ivano-frankivsk.ua":!0,"kh.ua":!0,"kharkov.ua":!0,"kherson.ua":!0,"khmelnitskiy.ua":!0,"kiev.ua":!0,"kirovograd.ua":!0,"km.ua":!0,"kr.ua":!0,"ks.ua":!0,"kv.ua":!0,"lg.ua":!0,"lugansk.ua":!0,"lutsk.ua":!0,"lviv.ua":!0,"me.ua":!0,"mk.ua":!0,"net.ua":!0,"nikolaev.ua":!0,"od.ua":!0,"odessa.ua":!0,"org.ua":!0,"pl.ua":!0,"poltava.ua":!0,"pp.ua":!0,"rovno.ua":!0,"rv.ua":!0,"sebastopol.ua":!0,"sumy.ua":!0,"te.ua":!0,"ternopil.ua":!0,"uzhgorod.ua":!0,"vinnica.ua":!0,"vn.ua":!0,"zaporizhzhe.ua":!0,"zhitomir.ua":!0,"zp.ua":!0,"zt.ua":!0,"ac.ug":!0,"co.ug":!0,"go.ug":!0,"ne.ug":!0,"or.ug":!0,"org.ug":!0,"sc.ug":!0,"ac.uk":!0,"bl.uk":!0,"british-library.uk":!0,"co.uk":!0,"cym.uk":!0,"gov.uk":!0,"govt.uk":!0,"icnet.uk":!0,"jet.uk":!0,"lea.uk":!0,"ltd.uk":!0,"me.uk":!0,"mil.uk":!0,"mod.uk":!0,"national-library-scotland.uk":!0,"nel.uk":!0,"net.uk":!0,"nhs.uk":!0,"nic.uk":!0,"nls.uk":!0,"org.uk":!0,"orgn.uk":!0,"parliament.uk":!0,"plc.uk":!0,"police.uk":!0,"sch.uk":!0,"scot.uk":!0,"soc.uk":!0,"4fd.us":!0,"dni.us":!0,"fed.us":!0,"isa.us":!0,"kids.us":!0,"nsn.us":!0,"com.uy":!0,"edu.uy":!0,"gub.uy":!0,"mil.uy":!0,"net.uy":!0,"org.uy":!0,"co.ve":!0,"com.ve":!0,"edu.ve":!0,"gob.ve":!0,"info.ve":!0,"mil.ve":!0,"net.ve":!0,"org.ve":!0,"web.ve":!0,"co.vi":!0,"com.vi":!0,"k12.vi":!0,"net.vi":!0,"org.vi":!0,"ac.vn":!0,"biz.vn":!0,"com.vn":!0,"edu.vn":!0,"gov.vn":!0,"health.vn":!0,"info.vn":!0,"int.vn":!0,"name.vn":!0,"net.vn":!0,"org.vn":!0,"pro.vn":!0,"co.ye":!0,"com.ye":!0,"gov.ye":!0,"ltd.ye":!0,"me.ye":!0,"net.ye":!0,"org.ye":!0,"plc.ye":!0,"ac.yu":!0,"co.yu":!0,"edu.yu":!0,"gov.yu":!0,"org.yu":!0,"ac.za":!0,"agric.za":!0,"alt.za":!0,"bourse.za":!0,"city.za":!0,"co.za":!0,"cybernet.za":!0,"db.za":!0,"ecape.school.za":!0,"edu.za":!0,"fs.school.za":!0,"gov.za":!0,"gp.school.za":!0,"grondar.za":!0,"iaccess.za":!0,"imt.za":!0,"inca.za":!0,"kzn.school.za":!0,"landesign.za":!0,"law.za":!0,"lp.school.za":!0,"mil.za":!0,"mpm.school.za":!0,"ncape.school.za":!0,"net.za":!0,"ngo.za":!0,"nis.za":!0,"nom.za":!0,"nw.school.za":!0,"olivetti.za":!0,"org.za":!0,"pix.za":!0,"school.za":!0,"tm.za":!0,"wcape.school.za":!0,"web.za":!0,"ac.zm":!0,"co.zm":!0,"com.zm":!0,"edu.zm":!0,"gov.zm":!0,"net.zm":!0,"org.zm":!0,"sch.zm":!0};const NS=US,$S=FS,GS={ad:!0,ae:!0,af:!0,ag:!0,ai:!0,al:!0,am:!0,ao:!0,aq:!0,ar:!0,as:!0,at:!0,au:!0,aw:!0,ax:!0,az:!0,ba:!0,bb:!0,bd:!0,be:!0,bf:!0,bg:!0,bh:!0,bi:!0,bj:!0,bl:!0,bm:!0,bn:!0,bo:!0,bq:!0,br:!0,bs:!0,bt:!0,bv:!0,bw:!0,by:!0,bz:!0,ca:!0,cc:!0,cd:!0,cf:!0,cg:!0,ch:!0,ci:!0,ck:!0,cl:!0,cm:!0,cn:!0,co:!0,cr:!0,cu:!0,cv:!0,cw:!0,cx:!0,cy:!0,cz:!0,de:!0,dj:!0,dk:!0,dm:!0,do:!0,dz:!0,ec:!0,ee:!0,eg:!0,er:!0,es:!0,et:!0,fi:!0,fj:!0,fk:!0,fm:!0,fo:!0,fr:!0,ga:!0,"gb (.uk)":!0,gd:!0,ge:!0,gf:!0,gg:!0,gh:!0,gi:!0,gl:!0,gm:!0,gn:!0,gp:!0,gq:!0,gr:!0,gs:!0,gt:!0,gu:!0,gw:!0,gy:!0,hk:!0,hm:!0,hn:!0,hr:!0,ht:!0,hu:!0,id:!0,ie:!0,il:!0,im:!0,in:!0,io:!0,iq:!0,ir:!0,is:!0,it:!0,je:!0,jm:!0,jo:!0,jp:!0,ke:!0,kg:!0,kh:!0,ki:!0,km:!0,kn:!0,kp:!0,kr:!0,kw:!0,ky:!0,kz:!0,la:!0,lb:!0,lc:!0,li:!0,lk:!0,lr:!0,ls:!0,lt:!0,lu:!0,lv:!0,ly:!0,ma:!0,mc:!0,md:!0,me:!0,mf:!0,mg:!0,mh:!0,mk:!0,ml:!0,mm:!0,mn:!0,mo:!0,mp:!0,mq:!0,mr:!0,ms:!0,mt:!0,mu:!0,mv:!0,mw:!0,mx:!0,my:!0,mz:!0,na:!0,nc:!0,ne:!0,nf:!0,ng:!0,ni:!0,nl:!0,no:!0,np:!0,nr:!0,nu:!0,nz:!0,om:!0,pa:!0,pe:!0,pf:!0,pg:!0,ph:!0,pk:!0,pl:!0,pm:!0,pn:!0,pr:!0,ps:!0,pt:!0,pw:!0,py:!0,qa:!0,re:!0,ro:!0,rs:!0,ru:!0,rw:!0,sa:!0,sb:!0,sc:!0,sd:!0,se:!0,sg:!0,sh:!0,si:!0,sj:!0,sk:!0,sl:!0,sm:!0,sn:!0,so:!0,sr:!0,ss:!0,st:!0,sv:!0,sx:!0,sy:!0,sz:!0,tc:!0,td:!0,tf:!0,tg:!0,th:!0,tj:!0,tk:!0,tl:!0,tm:!0,tn:!0,to:!0,tr:!0,tt:!0,tv:!0,tw:!0,tz:!0,ua:!0,ug:!0,us:!0,uy:!0,uz:!0,va:!0,vc:!0,ve:!0,vg:!0,vi:!0,vn:!0,vu:!0,wf:!0,ws:!0,ye:!0,yt:!0,za:!0,zm:!0,zw:!0};var HS=function(e,t){if("string"!=typeof e)return!1;if(t instanceof Object||(t={}),(e=e.toLowerCase()).endsWith(".")&&(e=e.slice(0,e.length-1)),t.allowUnicode&&(e=NS.toASCII(e)),e.length>253)return!1;if(!/^([\u0E00-\u0E7Fa-z0-9-._*]+)$/g.test(e))return!1;if(t.topLevel&&GS[e.replace(/\.$/,"")])return!0;const n=e.match(/(.*)\.(([\u0E00-\u0E7Fa-z0-9]+)(\.[a-z0-9]+))/);let r=null,i=null;if(n&&n.length>2&&$S[n[2]]&&(r=n[2],i=n[1].split(".")),!i){if(i=e.split("."),i.length<=1)return!1;r=i.pop();if(!/^(?:xn--)?(?!^\d+$)[\u0E00-\u0E7Fa-z0-9]+$/gi.test(r))return!1}if(!1===t.subdomain&&i.length>1)return!1;const a=i.every((function(e,n){if(t.wildcard&&0===n&&"*"===e&&i.length>1)return!0;let r=/^([\u0E00-\u0E7Fa-zA-Z0-9-_]+)$/g;n===i.length-1&&(r=/^([\u0E00-\u0E7Fa-zA-Z0-9-]+)$/g);const a=(e.match(/--(--)?/g)||[]).length,o=(e.match(/xn--/g)||[]).length;if(n===i.length-1&&a!==o)return!1;return r.test(e)&&e.length<64&&!e.startsWith("-")&&!e.endsWith("-")}));return a},zS=function(e){return null!=e&&"object"==typeof e&&!1===Array.isArray(e)};
|
|
7
|
+
*/function j(e){return"[object Object]"===Object.prototype.toString.call(e)}function U(e){var t,n;return!1!==j(e)&&(void 0===(t=e.constructor)||!1!==j(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf"))}var F=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0},N=String.prototype.valueOf,$=Object.prototype.toString,G=F()&&!!Symbol.toStringTag,H=function(e){return"string"==typeof e||"object"==typeof e&&(G?function(e){try{return N.call(e),!0}catch(e){return!1}}(e):"[object String]"===$.call(e))},z=Array.isArray,Z=Object.prototype.toString,V=z||function(e){return!!e&&"[object Array]"==Z.call(e)},K=function(e){if(!e)return!1;var t=q.call(e);return"[object Function]"===t||"function"==typeof e&&"[object RegExp]"!==t||"undefined"!=typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)},q=Object.prototype.toString;var W="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==W&&W,Y={searchParams:"URLSearchParams"in W,iterable:"Symbol"in W&&"iterator"in Symbol,blob:"FileReader"in W&&"Blob"in W&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in W,arrayBuffer:"ArrayBuffer"in W};if(Y.arrayBuffer)var Q=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],J=ArrayBuffer.isView||function(e){return e&&Q.indexOf(Object.prototype.toString.call(e))>-1};function X(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function ee(e){return"string"!=typeof e&&(e=String(e)),e}function te(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return Y.iterable&&(t[Symbol.iterator]=function(){return t}),t}function ne(e){this.map={},e instanceof ne?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function re(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function ie(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function ae(e){var t=new FileReader,n=ie(t);return t.readAsArrayBuffer(e),n}function oe(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function se(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:Y.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:Y.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:Y.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():Y.arrayBuffer&&Y.blob&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=oe(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):Y.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||J(e))?this._bodyArrayBuffer=oe(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):Y.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},Y.blob&&(this.blob=function(){var e=re(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=re(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(ae)}),this.text=function(){var e=re(this);if(e)return e;if(this._bodyBlob)return function(e){var t=new FileReader,n=ie(t);return t.readAsText(e),n}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},Y.formData&&(this.formData=function(){return this.text().then(de)}),this.json=function(){return this.text().then(JSON.parse)},this}ne.prototype.append=function(e,t){e=X(e),t=ee(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},ne.prototype.delete=function(e){delete this.map[X(e)]},ne.prototype.get=function(e){return e=X(e),this.has(e)?this.map[e]:null},ne.prototype.has=function(e){return this.map.hasOwnProperty(X(e))},ne.prototype.set=function(e,t){this.map[X(e)]=ee(t)},ne.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},ne.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),te(e)},ne.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),te(e)},ne.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),te(e)},Y.iterable&&(ne.prototype[Symbol.iterator]=ne.prototype.entries);var ue=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function ce(e,t){if(!(this instanceof ce))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n=(t=t||{}).body;if(e instanceof ce){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new ne(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new ne(t.headers)),this.method=function(e){var t=e.toUpperCase();return ue.indexOf(t)>-1?t:e}(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var r=/([?&])_=[^&]*/;if(r.test(this.url))this.url=this.url.replace(r,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function de(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function le(e,t){if(!(this instanceof le))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new ne(t.headers),this.url=t.url||"",this._initBody(e)}ce.prototype.clone=function(){return new ce(this,{body:this._bodyInit})},se.call(ce.prototype),se.call(le.prototype),le.prototype.clone=function(){return new le(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new ne(this.headers),url:this.url})},le.error=function(){var e=new le(null,{status:0,statusText:""});return e.type="error",e};var fe=[301,302,303,307,308];le.redirect=function(e,t){if(-1===fe.indexOf(t))throw new RangeError("Invalid status code");return new le(null,{status:t,headers:{location:e}})};var pe=W.DOMException;try{new pe}catch(e){pe=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},pe.prototype=Object.create(Error.prototype),pe.prototype.constructor=pe}function he(e,t){return new Promise((function(n,r){var i=new ce(e,t);if(i.signal&&i.signal.aborted)return r(new pe("Aborted","AbortError"));var a=new XMLHttpRequest;function o(){a.abort()}a.onload=function(){var e,t,r={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",t=new ne,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}})),t)};r.url="responseURL"in a?a.responseURL:r.headers.get("X-Request-URL");var i="response"in a?a.response:a.responseText;setTimeout((function(){n(new le(i,r))}),0)},a.onerror=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},a.ontimeout=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},a.onabort=function(){setTimeout((function(){r(new pe("Aborted","AbortError"))}),0)},a.open(i.method,function(e){try{return""===e&&W.location.href?W.location.href:e}catch(t){return e}}(i.url),!0),"include"===i.credentials?a.withCredentials=!0:"omit"===i.credentials&&(a.withCredentials=!1),"responseType"in a&&(Y.blob?a.responseType="blob":Y.arrayBuffer&&i.headers.get("Content-Type")&&-1!==i.headers.get("Content-Type").indexOf("application/octet-stream")&&(a.responseType="arraybuffer")),!t||"object"!=typeof t.headers||t.headers instanceof ne?i.headers.forEach((function(e,t){a.setRequestHeader(t,e)})):Object.getOwnPropertyNames(t.headers).forEach((function(e){a.setRequestHeader(e,ee(t.headers[e]))})),i.signal&&(i.signal.addEventListener("abort",o),a.onreadystatechange=function(){4===a.readyState&&i.signal.removeEventListener("abort",o)}),a.send(void 0===i._bodyInit?null:i._bodyInit)}))}he.polyfill=!0,W.fetch||(W.fetch=he,W.Headers=ne,W.Request=ce,W.Response=le);var me,ve,ge={exports:{}};me=ge,ve=ge.exports,function(e,t){var n="function",r="undefined",i="object",a="string",o="major",s="model",u="name",c="type",d="vendor",l="version",f="architecture",p="console",h="mobile",m="tablet",v="smarttv",g="wearable",A="embedded",b="Amazon",y="Apple",_="ASUS",w="BlackBerry",x="Browser",k="Chrome",E="Firefox",S="Google",D="Huawei",I="LG",R="Microsoft",C="Motorola",O="Opera",T="Samsung",P="Sharp",L="Sony",M="Xiaomi",B="Zebra",j="Facebook",U="Chromium OS",F="Mac OS",N=" Browser",$=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},G=function(e,t){return typeof e===a&&-1!==H(t).indexOf(H(e))},H=function(e){return e.toLowerCase()},z=function(e,t){if(typeof e===a)return e=e.replace(/^\s\s*/,""),typeof t===r?e:e.substring(0,500)},Z=function(e,r){for(var a,o,s,u,c,d,l=0;l<r.length&&!c;){var f=r[l],p=r[l+1];for(a=o=0;a<f.length&&!c&&f[a];)if(c=f[a++].exec(e))for(s=0;s<p.length;s++)d=c[++o],typeof(u=p[s])===i&&u.length>0?2===u.length?typeof u[1]==n?this[u[0]]=u[1].call(this,d):this[u[0]]=u[1]:3===u.length?typeof u[1]!==n||u[1].exec&&u[1].test?this[u[0]]=d?d.replace(u[1],u[2]):t:this[u[0]]=d?u[1].call(this,d,u[2]):t:4===u.length&&(this[u[0]]=d?u[3].call(this,d.replace(u[1],u[2])):t):this[u]=d||t;l+=2}},V=function(e,n){for(var r in n)if(typeof n[r]===i&&n[r].length>0){for(var a=0;a<n[r].length;a++)if(G(n[r][a],e))return"?"===r?t:r}else if(G(n[r],e))return"?"===r?t:r;return n.hasOwnProperty("*")?n["*"]:e},K={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"},q={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[l,[u,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[l,[u,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[u,l],[/opios[\/ ]+([\w\.]+)/i],[l,[u,O+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[l,[u,O+" GX"]],[/\bopr\/([\w\.]+)/i],[l,[u,O]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[l,[u,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[l,[u,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[u,l],[/quark(?:pc)?\/([-\w\.]+)/i],[l,[u,"Quark"]],[/\bddg\/([\w\.]+)/i],[l,[u,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[l,[u,"UC"+x]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[l,[u,"WeChat"]],[/konqueror\/([\w\.]+)/i],[l,[u,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[l,[u,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[l,[u,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[l,[u,"Smart Lenovo "+x]],[/(avast|avg)\/([\w\.]+)/i],[[u,/(.+)/,"$1 Secure "+x],l],[/\bfocus\/([\w\.]+)/i],[l,[u,E+" Focus"]],[/\bopt\/([\w\.]+)/i],[l,[u,O+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[l,[u,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[l,[u,"Dolphin"]],[/coast\/([\w\.]+)/i],[l,[u,O+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[l,[u,"MIUI"+N]],[/fxios\/([\w\.-]+)/i],[l,[u,E]],[/\bqihoobrowser\/?([\w\.]*)/i],[l,[u,"360"]],[/\b(qq)\/([\w\.]+)/i],[[u,/(.+)/,"$1Browser"],l],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[u,/(.+)/,"$1"+N],l],[/samsungbrowser\/([\w\.]+)/i],[l,[u,T+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[l,[u,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[u,"Sogou Mobile"],l],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[u,l],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[u],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[l,u],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[u,j],l],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[u,l],[/\bgsa\/([\w\.]+) .*safari\//i],[l,[u,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[l,[u,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[l,[u,k+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[u,k+" WebView"],l],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[l,[u,"Android "+x]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[u,l],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[l,[u,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[l,u],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[u,[l,V,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[u,l],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[u,"Netscape"],l],[/(wolvic|librewolf)\/([\w\.]+)/i],[u,l],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[l,[u,E+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\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|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[u,[l,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[u,[l,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[f,"amd64"]],[/(ia32(?=;))/i],[[f,H]],[/((?:i[346]|x)86)[;\)]/i],[[f,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[f,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[f,"armhf"]],[/windows (ce|mobile); ppc;/i],[[f,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[f,/ower/,"",H]],[/(sun4\w)[;\)]/i],[[f,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[f,H]]],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],[s,[d,T],[c,m]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[s,[d,T],[c,h]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[s,[d,y],[c,h]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[s,[d,y],[c,m]],[/(macintosh);/i],[s,[d,y]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[s,[d,P],[c,h]],[/(?:honor)([-\w ]+)[;\)]/i],[s,[d,"Honor"],[c,h]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[s,[d,D],[c,m]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[s,[d,D],[c,h]],[/\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,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i],[[s,/_/g," "],[d,M],[c,h]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[s,/_/g," "],[d,M],[c,m]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[s,[d,"OPPO"],[c,h]],[/\b(opd2\d{3}a?) bui/i],[s,[d,"OPPO"],[c,m]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[s,[d,"Vivo"],[c,h]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[s,[d,"Realme"],[c,h]],[/\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],[s,[d,C],[c,h]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[s,[d,C],[c,m]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[s,[d,I],[c,m]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[s,[d,I],[c,h]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[s,[d,"Lenovo"],[c,m]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[s,/_/g," "],[d,"Nokia"],[c,h]],[/(pixel c)\b/i],[s,[d,S],[c,m]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[s,[d,S],[c,h]],[/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],[s,[d,L],[c,h]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[s,"Xperia Tablet"],[d,L],[c,m]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[s,[d,"OnePlus"],[c,h]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[s,[d,b],[c,m]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[s,/(.+)/g,"Fire Phone $1"],[d,b],[c,h]],[/(playbook);[-\w\),; ]+(rim)/i],[s,d,[c,m]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[s,[d,w],[c,h]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[s,[d,_],[c,m]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[s,[d,_],[c,h]],[/(nexus 9)/i],[s,[d,"HTC"],[c,m]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[d,[s,/_/g," "],[c,h]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[s,[d,"TCL"],[c,m]],[/(itel) ((\w+))/i],[[d,H],s,[c,V,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[s,[d,"Acer"],[c,m]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[s,[d,"Meizu"],[c,h]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[s,[d,"Ulefone"],[c,h]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[s,[d,"Energizer"],[c,h]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[s,[d,"Cat"],[c,h]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[s,[d,"Smartfren"],[c,h]],[/droid.+; (a(?:015|06[35]|142p?))/i],[s,[d,"Nothing"],[c,h]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (imo) ((?!tab)[\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[d,s,[c,h]],[/(imo) (tab \w+)/i,/(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],[d,s,[c,m]],[/(surface duo)/i],[s,[d,R],[c,m]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[s,[d,"Fairphone"],[c,h]],[/(u304aa)/i],[s,[d,"AT&T"],[c,h]],[/\bsie-(\w*)/i],[s,[d,"Siemens"],[c,h]],[/\b(rct\w+) b/i],[s,[d,"RCA"],[c,m]],[/\b(venue[\d ]{2,7}) b/i],[s,[d,"Dell"],[c,m]],[/\b(q(?:mv|ta)\w+) b/i],[s,[d,"Verizon"],[c,m]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[s,[d,"Barnes & Noble"],[c,m]],[/\b(tm\d{3}\w+) b/i],[s,[d,"NuVision"],[c,m]],[/\b(k88) b/i],[s,[d,"ZTE"],[c,m]],[/\b(nx\d{3}j) b/i],[s,[d,"ZTE"],[c,h]],[/\b(gen\d{3}) b.+49h/i],[s,[d,"Swiss"],[c,h]],[/\b(zur\d{3}) b/i],[s,[d,"Swiss"],[c,m]],[/\b((zeki)?tb.*\b) b/i],[s,[d,"Zeki"],[c,m]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[d,"Dragon Touch"],s,[c,m]],[/\b(ns-?\w{0,9}) b/i],[s,[d,"Insignia"],[c,m]],[/\b((nxa|next)-?\w{0,9}) b/i],[s,[d,"NextBook"],[c,m]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[d,"Voice"],s,[c,h]],[/\b(lvtel\-)?(v1[12]) b/i],[[d,"LvTel"],s,[c,h]],[/\b(ph-1) /i],[s,[d,"Essential"],[c,h]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[s,[d,"Envizen"],[c,m]],[/\b(trio[-\w\. ]+) b/i],[s,[d,"MachSpeed"],[c,m]],[/\btu_(1491) b/i],[s,[d,"Rotor"],[c,m]],[/(shield[\w ]+) b/i],[s,[d,"Nvidia"],[c,m]],[/(sprint) (\w+)/i],[d,s,[c,h]],[/(kin\.[onetw]{3})/i],[[s,/\./g," "],[d,R],[c,h]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[s,[d,B],[c,m]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[s,[d,B],[c,h]],[/smart-tv.+(samsung)/i],[d,[c,v]],[/hbbtv.+maple;(\d+)/i],[[s,/^/,"SmartTV"],[d,T],[c,v]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[d,I],[c,v]],[/(apple) ?tv/i],[d,[s,y+" TV"],[c,v]],[/crkey/i],[[s,k+"cast"],[d,S],[c,v]],[/droid.+aft(\w+)( bui|\))/i],[s,[d,b],[c,v]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[s,[d,P],[c,v]],[/(bravia[\w ]+)( bui|\))/i],[s,[d,L],[c,v]],[/(mitv-\w{5}) bui/i],[s,[d,M],[c,v]],[/Hbbtv.*(technisat) (.*);/i],[d,s,[c,v]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[d,z],[s,z],[c,v]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[c,v]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[d,s,[c,p]],[/droid.+; (shield) bui/i],[s,[d,"Nvidia"],[c,p]],[/(playstation [345portablevi]+)/i],[s,[d,L],[c,p]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[s,[d,R],[c,p]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[s,[d,T],[c,g]],[/((pebble))app/i],[d,s,[c,g]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[s,[d,y],[c,g]],[/droid.+; (glass) \d/i],[s,[d,S],[c,g]],[/droid.+; (wt63?0{2,3})\)/i],[s,[d,B],[c,g]],[/droid.+; (glass) \d/i],[s,[d,S],[c,g]],[/(pico) (4|neo3(?: link|pro)?)/i],[d,s,[c,g]],[/; (quest( \d| pro)?)/i],[s,[d,j],[c,g]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[c,A]],[/(aeobc)\b/i],[s,[d,b],[c,A]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[s,[c,h]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[s,[c,m]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[c,m]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[c,h]],[/(android[-\w\. ]{0,9});.+buil/i],[s,[d,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[l,[u,"EdgeHTML"]],[/(arkweb)\/([\w\.]+)/i],[u,l],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[l,[u,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[u,l],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[l,u]],os:[[/microsoft (windows) (vista|xp)/i],[u,l],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[u,[l,V,K]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[l,V,K],[u,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[l,/_/g,"."],[u,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[u,F],[l,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[l,u],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish|openharmony)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[u,l],[/\(bb(10);/i],[l,[u,w]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[l,[u,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[l,[u,E+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[l,[u,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[l,[u,"watchOS"]],[/crkey\/([\d\.]+)/i],[l,[u,k+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[u,U],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],[u,l],[/(sunos) ?([\w\.\d]*)/i],[[u,"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],[u,l]]},W=function(p,v){if(typeof p===i&&(v=p,p=t),!(this instanceof W))return new W(p,v).getResult();var g=typeof e!==r&&e.navigator?e.navigator:t,A=p||(g&&g.userAgent?g.userAgent:""),b=g&&g.userAgentData?g.userAgentData:t,y=v?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(q,v):q,_=g&&g.userAgent==A;return this.getBrowser=function(){var e={};return e[u]=t,e[l]=t,Z.call(e,A,y.browser),e[o]=function(e){return typeof e===a?e.replace(/[^\d\.]/g,"").split(".")[0]:t}(e[l]),_&&g&&g.brave&&typeof g.brave.isBrave==n&&(e[u]="Brave"),e},this.getCPU=function(){var e={};return e[f]=t,Z.call(e,A,y.cpu),e},this.getDevice=function(){var e={};return e[d]=t,e[s]=t,e[c]=t,Z.call(e,A,y.device),_&&!e[c]&&b&&b.mobile&&(e[c]=h),_&&"Macintosh"==e[s]&&g&&typeof g.standalone!==r&&g.maxTouchPoints&&g.maxTouchPoints>2&&(e[s]="iPad",e[c]=m),e},this.getEngine=function(){var e={};return e[u]=t,e[l]=t,Z.call(e,A,y.engine),e},this.getOS=function(){var e={};return e[u]=t,e[l]=t,Z.call(e,A,y.os),_&&!e[u]&&b&&b.platform&&"Unknown"!=b.platform&&(e[u]=b.platform.replace(/chrome os/i,U).replace(/macos/i,F)),e},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 A},this.setUA=function(e){return A=typeof e===a&&e.length>500?z(e,500):e,this},this.setUA(A),this};W.VERSION="0.7.40",W.BROWSER=$([u,l,o]),W.CPU=$([f]),W.DEVICE=$([s,d,c,p,h,v,m,g,A]),W.ENGINE=W.OS=$([u,l]),me.exports&&(ve=me.exports=W),ve.UAParser=W;var Y=typeof e!==r&&(e.jQuery||e.Zepto);if(Y&&!Y.ua){var Q=new W;Y.ua=Q.getResult(),Y.ua.get=function(){return Q.getUA()},Y.ua.set=function(e){Q.setUA(e);var t=Q.getResult();for(var n in t)Y.ua[n]=t[n]}}}("object"==typeof window?window:i);var Ae=ge.exports;const be="3.7.5",ye=be,_e="function"==typeof atob,we="function"==typeof btoa,xe="function"==typeof Buffer,ke="function"==typeof TextDecoder?new TextDecoder:void 0,Ee="function"==typeof TextEncoder?new TextEncoder:void 0,Se=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),De=(e=>{let t={};return e.forEach(((e,n)=>t[e]=n)),t})(Se),Ie=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Re=String.fromCharCode.bind(String),Ce="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),Oe=e=>e.replace(/=/g,"").replace(/[+\/]/g,(e=>"+"==e?"-":"_")),Te=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),Pe=e=>{let t,n,r,i,a="";const o=e.length%3;for(let o=0;o<e.length;){if((n=e.charCodeAt(o++))>255||(r=e.charCodeAt(o++))>255||(i=e.charCodeAt(o++))>255)throw new TypeError("invalid character found");t=n<<16|r<<8|i,a+=Se[t>>18&63]+Se[t>>12&63]+Se[t>>6&63]+Se[63&t]}return o?a.slice(0,o-3)+"===".substring(o):a},Le=we?e=>btoa(e):xe?e=>Buffer.from(e,"binary").toString("base64"):Pe,Me=xe?e=>Buffer.from(e).toString("base64"):e=>{let t=[];for(let n=0,r=e.length;n<r;n+=4096)t.push(Re.apply(null,e.subarray(n,n+4096)));return Le(t.join(""))},Be=(e,t=!1)=>t?Oe(Me(e)):Me(e),je=e=>{if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?Re(192|t>>>6)+Re(128|63&t):Re(224|t>>>12&15)+Re(128|t>>>6&63)+Re(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return Re(240|t>>>18&7)+Re(128|t>>>12&63)+Re(128|t>>>6&63)+Re(128|63&t)},Ue=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Fe=e=>e.replace(Ue,je),Ne=xe?e=>Buffer.from(e,"utf8").toString("base64"):Ee?e=>Me(Ee.encode(e)):e=>Le(Fe(e)),$e=(e,t=!1)=>t?Oe(Ne(e)):Ne(e),Ge=e=>$e(e,!0),He=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,ze=e=>{switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return Re(55296+(t>>>10))+Re(56320+(1023&t));case 3:return Re((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return Re((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},Ze=e=>e.replace(He,ze),Ve=e=>{if(e=e.replace(/\s+/g,""),!Ie.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(3&e.length));let t,n,r,i="";for(let a=0;a<e.length;)t=De[e.charAt(a++)]<<18|De[e.charAt(a++)]<<12|(n=De[e.charAt(a++)])<<6|(r=De[e.charAt(a++)]),i+=64===n?Re(t>>16&255):64===r?Re(t>>16&255,t>>8&255):Re(t>>16&255,t>>8&255,255&t);return i},Ke=_e?e=>atob(Te(e)):xe?e=>Buffer.from(e,"base64").toString("binary"):Ve,qe=xe?e=>Ce(Buffer.from(e,"base64")):e=>Ce(Ke(e).split("").map((e=>e.charCodeAt(0)))),We=e=>qe(Qe(e)),Ye=xe?e=>Buffer.from(e,"base64").toString("utf8"):ke?e=>ke.decode(qe(e)):e=>Ze(Ke(e)),Qe=e=>Te(e.replace(/[-_]/g,(e=>"-"==e?"+":"/"))),Je=e=>Ye(Qe(e)),Xe=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),et=function(){const e=(e,t)=>Object.defineProperty(String.prototype,e,Xe(t));e("fromBase64",(function(){return Je(this)})),e("toBase64",(function(e){return $e(this,e)})),e("toBase64URI",(function(){return $e(this,!0)})),e("toBase64URL",(function(){return $e(this,!0)})),e("toUint8Array",(function(){return We(this)}))},tt=function(){const e=(e,t)=>Object.defineProperty(Uint8Array.prototype,e,Xe(t));e("toBase64",(function(e){return Be(this,e)})),e("toBase64URI",(function(){return Be(this,!0)})),e("toBase64URL",(function(){return Be(this,!0)}))},nt={version:be,VERSION:ye,atob:Ke,atobPolyfill:Ve,btoa:Le,btoaPolyfill:Pe,fromBase64:Je,toBase64:$e,encode:$e,encodeURI:Ge,encodeURL:Ge,utob:Fe,btou:Ze,decode:Je,isValid:e=>{if("string"!=typeof e)return!1;const t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},fromUint8Array:Be,toUint8Array:We,extendString:et,extendUint8Array:tt,extendBuiltins:()=>{et(),tt()}};var rt={Rewarded:"rewarded",Interstitial:"interstitial",Preroll:"interstitial",Midroll:"interstitial",Display:"display"};function it(e,t){var n;for(n in t)t.hasOwnProperty(n)&&null!==t[n]&&void 0!==t[n]&&(e[n]=t[n]);return e}function at(){var e=ut(),t=(e.gd_sdk_referrer_url?e.gd_sdk_referrer_url:window.location!==window.parent.location&&document.referrer&&""!==document.referrer?document.referrer.split("/")[2]:document.location.host).replace(/^(?:https?:\/\/)?(?:\/\/)?(?:www\.)?/i,"").split("/")[0];if(-1!==document.referrer.indexOf("gameplayer.io")){t="gamedistribution.com";var n=st("ref",document.referrer);if(n){""!==n&&"{portal%20name}"!==n&&"{spilgames}"!==n&&"{portal name}"!==n&&(t=dt(n).replace(/^(?:https?:\/\/)?(?:\/\/)?(?:www\.)?/i,"").split("/")[0])}}else-1!==document.referrer.indexOf("localhost")&&(t="gamedistribution.com");return t}function ot(){var e=ut();if(e.gd_sdk_referrer_url)return 0===pt()&&(e.gd_sdk_referrer_url=document.location.href),e.gd_sdk_referrer_url;var t=window.location!==window.parent.location&&document.referrer&&""!==document.referrer?document.referrer:document.location.href;if(-1!==document.referrer.indexOf("gameplayer.io")){t="https://gamedistribution.com";var n=st("ref",document.referrer);if(n){""!==n&&"{portal%20name}"!==n&&"{spilgames}"!==n&&"{portal name}"!==n&&(t=dt(n).replace(/^(?:https?:\/\/)?(?:\/\/)?/i,""),t="https://".concat(t))}}else-1!==document.referrer.indexOf("localhost")&&(t="https://gamedistribution.com/");return t}function st(e,t){var n=t||window.location.href,r=new RegExp("[?&]"+e+"=([^&#]*)","i").exec(n);return r?r[1]:null}function ut(){for(var e,t=/\+/g,n=/([^&=]+)=?([^&]*)/g,r=function(e){return decodeURIComponent(e.toLowerCase().replace(t," "))},i=window.location.search.substring(1),a={};e=n.exec(i);)a[r(e[1])]=r(e[2]);return a}function ct(e){return(e=e||"")!==decodeURIComponent(e)}function dt(e){for(;ct(e);)e=decodeURIComponent(e);return e}function lt(){var e=navigator.userAgent||navigator.vendor||window.opera;return/windows phone/i.test(e)?"windows":/android/i.test(e)?"android":/iPad|iPhone|iPod/.test(e)&&!window.MSStream?"ios":""}function ft(e,t,n){return new Promise((function(r,i){if(n&&n.exists&&n.exists())r(ht(null==n?void 0:n.alternates));else{var a=n&&n.alternates&&n.alternates.length>0?ht(n.alternates):void 0,o=a||document.createElement("script"),s=n&&n.error_prefix?n.error_prefix:"Failed:";if(o.onload=function(){n&&n.exists&&!n.exists()?i("".concat(s," ").concat(e)):r(o)},o.onerror=function(){i("".concat(s," ").concat(e))},!a){if(o.type="text/javascript",!0===n.defer?o.defer=!0:o.async=!0,null==n?void 0:n.attrs)for(var u in n.attrs)o.setAttribute(u,n.attrs[u]);o.src=e,o.id=t,document.head.appendChild(o)}}}))}function pt(){var e=0,t=window;try{for(;t!=t.parent;)e++,t=t.parent}catch(e){}return e}function ht(e){if(e&&e.length){var t=document.querySelectorAll("script");if(t)for(var n in t){var r=t[n];if(e.includes(r.src))return r}}}function mt(e){return!!localStorage.getItem(e)}function vt(){var e=pt();if(0===e)return location.host.replace(/^www\.(.*)$/i,"$1");if(location.ancestorOrigins&&location.ancestorOrigins.length>0)return location.ancestorOrigins[location.ancestorOrigins.length-1].replace(/^https?:\/\/(www\.)?(.*)$/i,"$2");if(1===e){var t=function(e){if(e&&""!==e)try{return new C(e)}catch(e){}}(document.referrer);if(t)return t.host.replace(/^www\.(.*)$/i,"$1")}}var gt={has:mt,getBoolean:function(e,t){if(!mt(e))return t;var n=localStorage.getItem(e);return"true"===n||!0===n||1===n||"1"===n},getNumber:function(e,t){if(!mt(e))return t;var n=localStorage.getItem(e);return Number(n)},getString:function(e,t){return mt(e)?localStorage.getItem(e).toString():t},available:function(){var e=Date.now();try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(e){return!1}}(),remove:function(e){localStorage.removeItem(e)},set:function(e,t){localStorage.setItem(e,t)}},At=Date.now(),bt={console:!1};function yt(e,t,n){try{if(gt.available&>.getBoolean("gd_debug_ex")||bt&&!0===bt.console){var r="error"===n?"background: #c4161e; color: #fff":"warning"===n?"background: #ff8c1c; color: #fff":"info"===n?"background: #ff0080; color: #fff":"background: #44a5ab; color: #fff",i=console.log("["+(Date.now()-At)/1e3+"s]%c %c %c gdsdk %c %c %c "+e+" ","background: #9854d8","background: #6c2ca7","color: #fff; background: #450f78;","background: #6c2ca7","background: #9854d8",r,void 0!==t?t:"");console.log.apply(console,i)}}catch(e){console.log(e)}}var _t=["SDK_READY","SDK_ERROR","SDK_LB_LOGIN","SDK_SHW_LB","SDK_GAME_START","SDK_GAME_PAUSE","SDK_GDPR_TRACKING","SDK_GDPR_TARGETING","SDK_GDPR_THIRD_PARTY","AD_SDK_MANAGER_READY","AD_SDK_CANCELED","AD_IS_ALREADY_RUNNING","SDK_REWARDED_WATCH_COMPLETE"],wt=["AD_ERROR","AD_BREAK_READY","AD_METADATA","ALL_ADS_COMPLETED","CLICK","COMPLETE","CONTENT_PAUSE_REQUESTED","CONTENT_RESUME_REQUESTED","DURATION_CHANGE","FIRST_QUARTILE","IMPRESSION","INTERACTION","LINEAR_CHANGED","LOADED","LOG","MIDPOINT","PAUSED","RESUMED","SKIPPABLE_STATE_CHANGED","SKIPPED","STARTED","THIRD_QUARTILE","USER_CLOSE","VOLUME_CHANGED","VOLUME_MUTED","DISPLAYAD_IMPRESSION","DISPLAYAD_ERROR"],xt={zIndex:1010},kt={zIndex:1020},Et={zIndex:1100},St=null,Dt=function(){function e(){if(O(this,e),St)return St;St=this,this.listeners={}}return L(e,[{key:"_getListenerIdx",value:function(e,t,n){var r,i=this.listeners[e],a=-1;if(!i||0===i.length)return a;for(r=0;r<i.length;r++)if(i[r].callback===t&&(!n||n===i[r].scope)){a=r;break}return a}},{key:"subscribe",value:function(e,t,n){var r;if(!e)throw new Error("Event name cannot be null or undefined.");if(!t||"function"!=typeof t)throw new Error("Listener must be of type function.");this._getListenerIdx(e,t,n)>=0?console.log(e,n):(r={callback:t,scope:n},this.listeners[e]=this.listeners[e]||[],this.listeners[e].push(r))}},{key:"unsubscribeScope",value:function(e){for(var t=Object.keys(this.listeners),n=0;n<t.length;n++){for(var r=t[n],i=this.listeners[r],a=0;a<i.length;a++)i[a].scope===e&&(i.splice(a,1),a--);0===i.length&&delete this.listeners[r]}}},{key:"broadcast",value:function(e,t){var n=this.listeners[e];e&&this.listeners[e]&&((t=t||{}).name=t.name||e,n.forEach((function(e){e.callback.call(e.scope,t,e.scope)})))}},{key:"printScope",value:function(e){for(var t=Object.keys(this.listeners),n=0;n<t.length;n++)for(var r=t[n],i=this.listeners[r],a=0;a<i.length;a++)i[a].scope===e&&console.log(r,e)}}]),e}(),It=function(){function e(t){O(this,e),this.game=t.game,this.bridge=t.bridge}return L(e,[{key:"transform",value:function(e,t){var n=B(e);return this.transformValue(n,t)}},{key:"transformValue",value:function(e,t){if(U(e)||V(e))for(var n in e)e[n]=this.transformValue(e[n],t);else if(H(e)){var r,i=/\{\{(\w+)\}\}/g,a=[];do{if(r=i.exec(e)){r[0];var o=r[1],s=this.getMacroKeyValue(o,t);void 0!==s&&a.push({key:o,value:s})}}while(r);a.length>0&&a.forEach((function(t){e=e.replace(new RegExp("{{"+t.key+"}}","g"),t.value)}))}return e}},{key:"getMacroKeyValue",value:function(e,t){switch(e){case"CACHEBUSTER":return Date.now();case"GAME_ID":return this.game.gameId;case"GAME_TITLE":return this.game.title;case"COUNTRY_CODE":return this.game.ctry;case"PAGE_URL":return this.bridge.parentURL;case"PAGE_URL_ESC":return encodeURIComponent(this.bridge.parentURL);case"PAGE_URL_ESC_ESC":return encodeURIComponent(encodeURIComponent(this.bridge.parentURL));case"DOMAIN_MATCHED":return this.bridge.domainMatched?1:0;case"DOMAIN_PARENT":return this.bridge.parentDomain;case"DOMAIN_TOP":return this.bridge.topDomain;case"DEPTH":case"GAME_DEPTH":return this.bridge.depth;default:if(t&&K(t.get))return t.get(e)}}}]),e}(),Rt=function(){function e(t){O(this,e),this._config=t||{},this._url=t.url||"https://msgrt.gamedistribution.com/collect",this._topic_counter={},this._ua=(new Ae).getResult(),this._init_layout()}return L(e,[{key:"_init_layout",value:function(){var e=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,t=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;e-=e%64,t-=t%64,this._layout={w:e,h:t}}},{key:"send",value:function(e,t){if(!this._config.isCoreSDKMode){this._size="".concat(this._layout.w," x ").concat(this._layout.h);var n=this._topic_counter[e]||0;this._topic_counter[e]=++n;var r={gmid:this._config.gameId,tdmn:this._config.topDomain,domn:this._config.domain,rfrr:this._config.referrer,lthr:this._config.hours,ctry:this._config.country,dpth:this._config.depth,vers:this._config.version,trac:this._config.tracking,whlb:this._config.whitelabel,plat:this._config.platform,tpct:n,args:t,ttle:document.title,size:this._size,brnm:this._ua.browser.name,brmj:this._ua.browser.major,osnm:this._ua.os.name,osvr:this._ua.os.version,dvmd:this._ua.device.model,byld:this._config.byloader,bylv:this._config.byloaderVersion,imgu:this._config.isMasterGameURL,iegu:this._config.isExtHostedGameURL,itgu:this._config.isTokenGameURL,cmpe:!1,host:window.location.hostname};"undefined"!=typeof idhb&&void 0!==idhb.iabCmpExists()&&(r.cmpe=idhb.iabCmpExists());try{r=encodeURIComponent(nt.encode(JSON.stringify([r]))),fetch(this._url+"?tp=com.gdsdk.".concat(e,"&ar=").concat(r,"&ts=").concat(Date.now()))}catch(e){}}}},{key:"setGameData",value:function(e){this._gameData=e,this._config.country=e.ctry}}]),e}(),Ct=null,Ot=function(){function e(t){if(O(this,e),Ct)return Ct;Ct=this,this.eventBus=new Dt,this._sdk=t}return L(e,[{key:"start",value:function(){var e="\n #gdsdk__console_container {\n display: flex;\n box-sizing: border-box;\n padding: 3px;\n background: linear-gradient(90deg,#3d1b5d,#5c3997);\n box-shadow: 0 0 8px rgba(0, 0, 0, 0.8);\n color: #fff;\n font-family: Helvetica, Arial, sans-serif;\n font-size: 8px;\n }\n #gdsdk__console_container button {\n flex: 1;\n background: #44a5ab;\n padding: 3px 10px;\n margin: 2px;\n border: 0;\n border-radius: 3px;\n color: #fff;\n outline: 0;\n cursor: pointer;\n font-size: 8px;\n box-shadow: 0 0 0 transparent;\n text-shadow: 0 0 0 transparent;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n }\n #gdsdk__console_container button:hover {\n background: #4fb3b9;\n }\n #gdsdk__console_container button:active {\n background: #62bbc0;\n }\n ",t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e)),t.appendChild(n);var r=document.body||document.getElementsByTagName("body")[0],i=document.createElement("div");i.id="gdsdk__console",i.style.position="fixed",i.style.zIndex=Et.zIndex,i.style.bottom="0",i.style.left="0",i.style.width="100%",i.innerHTML='\n <div id="gdsdk__console_container">\n <button id="gdsdk__hbgdDebug">Activate hbgd debug</button>\n <button id="gdsdk__hbgdConfig">Log idhb config</button>\n \x3c!--\n <button id="gdsdk__resumeGame">Resume</button>\n <button id="gdsdk__pauseGame">Pause</button>\n --\x3e\n <button id="gdsdk__showLeaderboard">LeaderBoard</button>\n <button id="gdsdk__showInterstitial">Interstitial</button>\n <button id="gdsdk__showRewarded">Rewarded</button>\n \x3c!--\n <button id="gdsdk__preloadRewarded">Preload rewarded</button>\n --\x3e\n <button id="gdsdk__cancel">Cancel</button>\n <button id="gdsdk__demo">Demo VAST tag</button>\n <button id="gdsdk__disableMidrollTimer">Disable delay</button>\n <button id="gdsdk__closeDebug">Close</button>\n </div>\n ',r.appendChild(i);var a=document.getElementById("gdsdk__showLeaderboard"),o=document.getElementById("gdsdk__showInterstitial"),s=document.getElementById("gdsdk__showRewarded"),u=document.getElementById("gdsdk__cancel"),c=document.getElementById("gdsdk__demo"),d=document.getElementById("gdsdk__disableMidrollTimer"),l=document.getElementById("gdsdk__hbgdDebug"),f=document.getElementById("gdsdk__hbgdConfig"),p=document.getElementById("gdsdk__closeDebug");gt.getBoolean("gd_tag")?(c.innerHTML="Revert Vast tag",c.style.background="#ff8c1c"):(c.innerHTML="Demo VAST tag",c.style.background="#44a5ab"),gt.getBoolean("gd_disable_midroll_timer")?(d.innerHTML="Revert delay",d.style.background="#ff8c1c"):(d.innerHTML="Disable delay",d.style.background="#44a5ab"),gt.getBoolean("gd_hb_debug")?(l.innerHTML="Revert HB Debug",l.style.background="#ff8c1c"):(l.innerHTML="HB Debug",l.style.background="#44a5ab"),a.addEventListener("click",(function(){window.gdsdk.showLeaderBoard().catch((function(e){}))})),o.addEventListener("click",(function(){window.gdsdk.showAd(rt.Interstitial).catch((function(e){}))})),s.addEventListener("click",(function(){window.gdsdk.showAd(rt.Rewarded).catch((function(e){}))})),u.addEventListener("click",(function(){window.gdsdk.cancelAd().then((function(e){})).catch((function(e){}))})),c.addEventListener("click",(function(){try{gt.getBoolean("gd_tag")?gt.remove("gd_tag"):gt.set("gd_tag",!0),location.reload()}catch(e){console.log(e)}})),d.addEventListener("click",(function(){try{gt.getBoolean("gd_disable_midroll_timer")?gt.remove("gd_disable_midroll_timer"):gt.set("gd_disable_midroll_timer",!0),location.reload()}catch(e){console.log(e)}})),p.addEventListener("click",(function(){try{gt.getBoolean("gd_debug_ex")?gt.remove("gd_debug_ex"):gt.set("gd_debug_ex",!0),location.reload()}catch(e){console.log(e)}})),l.addEventListener("click",(function(){try{gt.getBoolean("gd_hb_debug")?gt.remove("gd_hb_debug"):gt.set("gd_hb_debug",!0),window.idhb&&window.idhb.debug(!(!gt.available||!gt.getBoolean("gd_hb_debug"))),location.reload()}catch(e){console.log(e)}})),f.addEventListener("click",(function(){try{var e=window.idhb.getConfig();console.info(e)}catch(e){console.log(e)}}))}}]),e}(),Tt=function(e){return e&&e.Math==Math&&e},Pt=Tt("object"==typeof globalThis&&globalThis)||Tt("object"==typeof window&&window)||Tt("object"==typeof self&&self)||Tt("object"==typeof i&&i)||function(){return this}()||Function("return this")(),Lt={exports:{}},Mt=Pt,Bt=Object.defineProperty,jt=function(e,t){try{Bt(Mt,e,{value:t,configurable:!0,writable:!0})}catch(n){Mt[e]=t}return t},Ut=jt,Ft="__core-js_shared__",Nt=Pt[Ft]||Ut(Ft,{}),$t=Nt;(Lt.exports=function(e,t){return $t[e]||($t[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.30.1",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.1/LICENSE",source:"https://github.com/zloirock/core-js"});var Gt,Ht,zt=function(e){try{return!!e()}catch(e){return!0}},Zt=!zt((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),Vt=Zt,Kt=Function.prototype,qt=Kt.call,Wt=Vt&&Kt.bind.bind(qt,qt),Yt=Vt?Wt:function(e){return function(){return qt.apply(e,arguments)}},Qt=function(e){return null==e},Jt=Qt,Xt=TypeError,en=function(e){if(Jt(e))throw Xt("Can't call method on "+e);return e},tn=en,nn=Object,rn=function(e){return nn(tn(e))},an=rn,on=Yt({}.hasOwnProperty),sn=Object.hasOwn||function(e,t){return on(an(e),t)},un=Yt,cn=0,dn=Math.random(),ln=un(1..toString),fn=function(e){return"Symbol("+(void 0===e?"":e)+")_"+ln(++cn+dn,36)},pn="undefined"!=typeof navigator&&String(navigator.userAgent)||"",hn=Pt,mn=pn,vn=hn.process,gn=hn.Deno,An=vn&&vn.versions||gn&&gn.version,bn=An&&An.v8;bn&&(Ht=(Gt=bn.split("."))[0]>0&&Gt[0]<4?1:+(Gt[0]+Gt[1])),!Ht&&mn&&(!(Gt=mn.match(/Edge\/(\d+)/))||Gt[1]>=74)&&(Gt=mn.match(/Chrome\/(\d+)/))&&(Ht=+Gt[1]);var yn=Ht,_n=yn,wn=zt,xn=!!Object.getOwnPropertySymbols&&!wn((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&_n&&_n<41})),kn=xn&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,En=Pt,Sn=Lt.exports,Dn=sn,In=fn,Rn=xn,Cn=kn,On=En.Symbol,Tn=Sn("wks"),Pn=Cn?On.for||On:On&&On.withoutSetter||In,Ln=function(e){return Dn(Tn,e)||(Tn[e]=Rn&&Dn(On,e)?On[e]:Pn("Symbol."+e)),Tn[e]},Mn={};Mn[Ln("toStringTag")]="z";var Bn="[object z]"===String(Mn),jn="object"==typeof document&&document.all,Un={all:jn,IS_HTMLDDA:void 0===jn&&void 0!==jn},Fn=Un.all,Nn=Un.IS_HTMLDDA?function(e){return"function"==typeof e||e===Fn}:function(e){return"function"==typeof e},$n={},Gn=!zt((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Hn=Nn,zn=Un.all,Zn=Un.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:Hn(e)||e===zn}:function(e){return"object"==typeof e?null!==e:Hn(e)},Vn=Zn,Kn=Pt.document,qn=Vn(Kn)&&Vn(Kn.createElement),Wn=function(e){return qn?Kn.createElement(e):{}},Yn=Wn,Qn=!Gn&&!zt((function(){return 7!=Object.defineProperty(Yn("div"),"a",{get:function(){return 7}}).a})),Jn=Gn&&zt((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Xn=Zn,er=String,tr=TypeError,nr=function(e){if(Xn(e))return e;throw tr(er(e)+" is not an object")},rr=Zt,ir=Function.prototype.call,ar=rr?ir.bind(ir):function(){return ir.apply(ir,arguments)},or=Pt,sr=Nn,ur=function(e,t){return arguments.length<2?(n=or[e],sr(n)?n:void 0):or[e]&&or[e][t];var n},cr=Yt({}.isPrototypeOf),dr=ur,lr=Nn,fr=cr,pr=Object,hr=kn?function(e){return"symbol"==typeof e}:function(e){var t=dr("Symbol");return lr(t)&&fr(t.prototype,pr(e))},mr=String,vr=function(e){try{return mr(e)}catch(e){return"Object"}},gr=Nn,Ar=vr,br=TypeError,yr=function(e){if(gr(e))return e;throw br(Ar(e)+" is not a function")},_r=yr,wr=Qt,xr=function(e,t){var n=e[t];return wr(n)?void 0:_r(n)},kr=ar,Er=Nn,Sr=Zn,Dr=TypeError,Ir=ar,Rr=Zn,Cr=hr,Or=xr,Tr=function(e,t){var n,r;if("string"===t&&Er(n=e.toString)&&!Sr(r=kr(n,e)))return r;if(Er(n=e.valueOf)&&!Sr(r=kr(n,e)))return r;if("string"!==t&&Er(n=e.toString)&&!Sr(r=kr(n,e)))return r;throw Dr("Can't convert object to primitive value")},Pr=TypeError,Lr=Ln("toPrimitive"),Mr=function(e,t){if(!Rr(e)||Cr(e))return e;var n,r=Or(e,Lr);if(r){if(void 0===t&&(t="default"),n=Ir(r,e,t),!Rr(n)||Cr(n))return n;throw Pr("Can't convert object to primitive value")}return void 0===t&&(t="number"),Tr(e,t)},Br=hr,jr=function(e){var t=Mr(e,"string");return Br(t)?t:t+""},Ur=Gn,Fr=Qn,Nr=Jn,$r=nr,Gr=jr,Hr=TypeError,zr=Object.defineProperty,Zr=Object.getOwnPropertyDescriptor,Vr="enumerable",Kr="configurable",qr="writable";$n.f=Ur?Nr?function(e,t,n){if($r(e),t=Gr(t),$r(n),"function"==typeof e&&"prototype"===t&&"value"in n&&qr in n&&!n[qr]){var r=Zr(e,t);r&&r[qr]&&(e[t]=n.value,n={configurable:Kr in n?n[Kr]:r[Kr],enumerable:Vr in n?n[Vr]:r[Vr],writable:!1})}return zr(e,t,n)}:zr:function(e,t,n){if($r(e),t=Gr(t),$r(n),Fr)try{return zr(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Hr("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var Wr={exports:{}},Yr=Gn,Qr=sn,Jr=Function.prototype,Xr=Yr&&Object.getOwnPropertyDescriptor,ei=Qr(Jr,"name"),ti={EXISTS:ei,PROPER:ei&&"something"===function(){}.name,CONFIGURABLE:ei&&(!Yr||Yr&&Xr(Jr,"name").configurable)},ni=Nn,ri=Nt,ii=Yt(Function.toString);ni(ri.inspectSource)||(ri.inspectSource=function(e){return ii(e)});var ai,oi,si,ui=ri.inspectSource,ci=Nn,di=Pt.WeakMap,li=ci(di)&&/native code/.test(String(di)),fi=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},pi=$n,hi=fi,mi=Gn?function(e,t,n){return pi.f(e,t,hi(1,n))}:function(e,t,n){return e[t]=n,e},vi=Lt.exports,gi=fn,Ai=vi("keys"),bi=function(e){return Ai[e]||(Ai[e]=gi(e))},yi={},_i=li,wi=Pt,xi=Zn,ki=mi,Ei=sn,Si=Nt,Di=bi,Ii=yi,Ri="Object already initialized",Ci=wi.TypeError,Oi=wi.WeakMap;if(_i||Si.state){var Ti=Si.state||(Si.state=new Oi);Ti.get=Ti.get,Ti.has=Ti.has,Ti.set=Ti.set,ai=function(e,t){if(Ti.has(e))throw Ci(Ri);return t.facade=e,Ti.set(e,t),t},oi=function(e){return Ti.get(e)||{}},si=function(e){return Ti.has(e)}}else{var Pi=Di("state");Ii[Pi]=!0,ai=function(e,t){if(Ei(e,Pi))throw Ci(Ri);return t.facade=e,ki(e,Pi,t),t},oi=function(e){return Ei(e,Pi)?e[Pi]:{}},si=function(e){return Ei(e,Pi)}}var Li={set:ai,get:oi,has:si,enforce:function(e){return si(e)?oi(e):ai(e,{})},getterFor:function(e){return function(t){var n;if(!xi(t)||(n=oi(t)).type!==e)throw Ci("Incompatible receiver, "+e+" required");return n}}},Mi=Yt,Bi=zt,ji=Nn,Ui=sn,Fi=Gn,Ni=ti.CONFIGURABLE,$i=ui,Gi=Li.enforce,Hi=Li.get,zi=String,Zi=Object.defineProperty,Vi=Mi("".slice),Ki=Mi("".replace),qi=Mi([].join),Wi=Fi&&!Bi((function(){return 8!==Zi((function(){}),"length",{value:8}).length})),Yi=String(String).split("String"),Qi=Wr.exports=function(e,t,n){"Symbol("===Vi(zi(t),0,7)&&(t="["+Ki(zi(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!Ui(e,"name")||Ni&&e.name!==t)&&(Fi?Zi(e,"name",{value:t,configurable:!0}):e.name=t),Wi&&n&&Ui(n,"arity")&&e.length!==n.arity&&Zi(e,"length",{value:n.arity});try{n&&Ui(n,"constructor")&&n.constructor?Fi&&Zi(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=Gi(e);return Ui(r,"source")||(r.source=qi(Yi,"string"==typeof t?t:"")),e};Function.prototype.toString=Qi((function(){return ji(this)&&Hi(this).source||$i(this)}),"toString");var Ji=Nn,Xi=$n,ea=Wr.exports,ta=jt,na=function(e,t,n,r){r||(r={});var i=r.enumerable,a=void 0!==r.name?r.name:t;if(Ji(n)&&ea(n,a,r),r.global)i?e[t]=n:ta(t,n);else{try{r.unsafe?e[t]&&(i=!0):delete e[t]}catch(e){}i?e[t]=n:Xi.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},ra=Yt,ia=ra({}.toString),aa=ra("".slice),oa=function(e){return aa(ia(e),8,-1)},sa=Bn,ua=Nn,ca=oa,da=Ln("toStringTag"),la=Object,fa="Arguments"==ca(function(){return arguments}()),pa=sa?ca:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=la(e),da))?n:fa?ca(t):"Object"==(r=ca(t))&&ua(t.callee)?"Arguments":r},ha=pa,ma=Bn?{}.toString:function(){return"[object "+ha(this)+"]"};Bn||na(Object.prototype,"toString",ma,{unsafe:!0});var va={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},ga=Wn("span").classList,Aa=ga&&ga.constructor&&ga.constructor.prototype,ba=Aa===Object.prototype?void 0:Aa,ya=oa,_a=Yt,wa=function(e){if("Function"===ya(e))return _a(e)},xa=yr,ka=Zt,Ea=wa(wa.bind),Sa=function(e,t){return xa(e),void 0===t?e:ka?Ea(e,t):function(){return e.apply(t,arguments)}},Da=zt,Ia=oa,Ra=Object,Ca=Yt("".split),Oa=Da((function(){return!Ra("z").propertyIsEnumerable(0)}))?function(e){return"String"==Ia(e)?Ca(e,""):Ra(e)}:Ra,Ta=Math.ceil,Pa=Math.floor,La=Math.trunc||function(e){var t=+e;return(t>0?Pa:Ta)(t)},Ma=La,Ba=function(e){var t=+e;return t!=t||0===t?0:Ma(t)},ja=Ba,Ua=Math.min,Fa=function(e){return e>0?Ua(ja(e),9007199254740991):0},Na=Fa,$a=function(e){return Na(e.length)},Ga=oa,Ha=Array.isArray||function(e){return"Array"==Ga(e)},za=Yt,Za=zt,Va=Nn,Ka=pa,qa=ui,Wa=function(){},Ya=[],Qa=ur("Reflect","construct"),Ja=/^\s*(?:class|function)\b/,Xa=za(Ja.exec),eo=!Ja.exec(Wa),to=function(e){if(!Va(e))return!1;try{return Qa(Wa,Ya,e),!0}catch(e){return!1}},no=function(e){if(!Va(e))return!1;switch(Ka(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return eo||!!Xa(Ja,qa(e))}catch(e){return!0}};no.sham=!0;var ro=!Qa||Za((function(){var e;return to(to.call)||!to(Object)||!to((function(){e=!0}))||e}))?no:to,ao=Ha,oo=ro,so=Zn,uo=Ln("species"),co=Array,lo=function(e){var t;return ao(e)&&(t=e.constructor,(oo(t)&&(t===co||ao(t.prototype))||so(t)&&null===(t=t[uo]))&&(t=void 0)),void 0===t?co:t},fo=function(e,t){return new(lo(e))(0===t?0:t)},po=Sa,ho=Oa,mo=rn,vo=$a,go=fo,Ao=Yt([].push),bo=function(e){var t=1==e,n=2==e,r=3==e,i=4==e,a=6==e,o=7==e,s=5==e||a;return function(u,c,d,l){for(var f,p,h=mo(u),m=ho(h),v=po(c,d),g=vo(m),A=0,b=l||go,y=t?b(u,g):n||o?b(u,0):void 0;g>A;A++)if((s||A in m)&&(p=v(f=m[A],A,h),e))if(t)y[A]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return A;case 2:Ao(y,f)}else switch(e){case 4:return!1;case 7:Ao(y,f)}return a?-1:r||i?i:y}},yo={forEach:bo(0),map:bo(1),filter:bo(2),some:bo(3),every:bo(4),find:bo(5),findIndex:bo(6),filterReject:bo(7)},_o=zt,wo=function(e,t){var n=[][e];return!!n&&_o((function(){n.call(null,t||function(){return 1},1)}))},xo=yo.forEach,ko=wo("forEach")?[].forEach:function(e){return xo(this,e,arguments.length>1?arguments[1]:void 0)},Eo=Pt,So=va,Do=ba,Io=ko,Ro=mi,Co=function(e){if(e&&e.forEach!==Io)try{Ro(e,"forEach",Io)}catch(t){e.forEach=Io}};for(var Oo in So)So[Oo]&&Co(Eo[Oo]&&Eo[Oo].prototype);Co(Do);var To={},Po={},Lo={}.propertyIsEnumerable,Mo=Object.getOwnPropertyDescriptor,Bo=Mo&&!Lo.call({1:2},1);Po.f=Bo?function(e){var t=Mo(this,e);return!!t&&t.enumerable}:Lo;var jo=Oa,Uo=en,Fo=function(e){return jo(Uo(e))},No=Gn,$o=ar,Go=Po,Ho=fi,zo=Fo,Zo=jr,Vo=sn,Ko=Qn,qo=Object.getOwnPropertyDescriptor;To.f=No?qo:function(e,t){if(e=zo(e),t=Zo(t),Ko)try{return qo(e,t)}catch(e){}if(Vo(e,t))return Ho(!$o(Go.f,e,t),e[t])};var Wo={},Yo=Ba,Qo=Math.max,Jo=Math.min,Xo=function(e,t){var n=Yo(e);return n<0?Qo(n+t,0):Jo(n,t)},es=Fo,ts=Xo,ns=$a,rs=function(e){return function(t,n,r){var i,a=es(t),o=ns(a),s=ts(r,o);if(e&&n!=n){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},is={includes:rs(!0),indexOf:rs(!1)},as=sn,os=Fo,ss=is.indexOf,us=yi,cs=Yt([].push),ds=function(e,t){var n,r=os(e),i=0,a=[];for(n in r)!as(us,n)&&as(r,n)&&cs(a,n);for(;t.length>i;)as(r,n=t[i++])&&(~ss(a,n)||cs(a,n));return a},ls=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],fs=ds,ps=ls.concat("length","prototype");Wo.f=Object.getOwnPropertyNames||function(e){return fs(e,ps)};var hs={};hs.f=Object.getOwnPropertySymbols;var ms=ur,vs=Wo,gs=hs,As=nr,bs=Yt([].concat),ys=ms("Reflect","ownKeys")||function(e){var t=vs.f(As(e)),n=gs.f;return n?bs(t,n(e)):t},_s=sn,ws=ys,xs=To,ks=$n,Es=function(e,t,n){for(var r=ws(t),i=ks.f,a=xs.f,o=0;o<r.length;o++){var s=r[o];_s(e,s)||n&&_s(n,s)||i(e,s,a(t,s))}},Ss=zt,Ds=Nn,Is=/#|\.prototype\./,Rs=function(e,t){var n=Os[Cs(e)];return n==Ps||n!=Ts&&(Ds(t)?Ss(t):!!t)},Cs=Rs.normalize=function(e){return String(e).replace(Is,".").toLowerCase()},Os=Rs.data={},Ts=Rs.NATIVE="N",Ps=Rs.POLYFILL="P",Ls=Rs,Ms=Pt,Bs=To.f,js=mi,Us=na,Fs=jt,Ns=Es,$s=Ls,Gs=function(e,t){var n,r,i,a,o,s=e.target,u=e.global,c=e.stat;if(n=u?Ms:c?Ms[s]||Fs(s,{}):(Ms[s]||{}).prototype)for(r in t){if(a=t[r],i=e.dontCallGetSet?(o=Bs(n,r))&&o.value:n[r],!$s(u?r:s+(c?".":"#")+r,e.forced)&&void 0!==i){if(typeof a==typeof i)continue;Ns(a,i)}(e.sham||i&&i.sham)&&js(a,"sham",!0),Us(n,r,a,e)}},Hs=ds,zs=ls,Zs=Object.keys||function(e){return Hs(e,zs)},Vs=rn,Ks=Zs;Gs({target:"Object",stat:!0,forced:zt((function(){Ks(1)}))},{keys:function(e){return Ks(Vs(e))}});var Ws=pa,Ys=String,Qs=function(e){if("Symbol"===Ws(e))throw TypeError("Cannot convert a Symbol value to a string");return Ys(e)},Js=nr,Xs=function(){var e=Js(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t},eu=zt,tu=Pt.RegExp,nu=eu((function(){var e=tu("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),ru=nu||eu((function(){return!tu("a","y").sticky})),iu=nu||eu((function(){var e=tu("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),au={BROKEN_CARET:iu,MISSED_STICKY:ru,UNSUPPORTED_Y:nu},ou={},su=Gn,uu=Jn,cu=$n,du=nr,lu=Fo,fu=Zs;ou.f=su&&!uu?Object.defineProperties:function(e,t){du(e);for(var n,r=lu(t),i=fu(t),a=i.length,o=0;a>o;)cu.f(e,n=i[o++],r[n]);return e};var pu,hu=ur("document","documentElement"),mu=nr,vu=ou,gu=ls,Au=yi,bu=hu,yu=Wn,_u="prototype",wu="script",xu=bi("IE_PROTO"),ku=function(){},Eu=function(e){return"<"+wu+">"+e+"</"+wu+">"},Su=function(e){e.write(Eu("")),e.close();var t=e.parentWindow.Object;return e=null,t},Du=function(){try{pu=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;Du="undefined"!=typeof document?document.domain&&pu?Su(pu):(t=yu("iframe"),n="java"+wu+":",t.style.display="none",bu.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(Eu("document.F=Object")),e.close(),e.F):Su(pu);for(var r=gu.length;r--;)delete Du[_u][gu[r]];return Du()};Au[xu]=!0;var Iu=Object.create||function(e,t){var n;return null!==e?(ku[_u]=mu(e),n=new ku,ku[_u]=null,n[xu]=e):n=Du(),void 0===t?n:vu.f(n,t)},Ru=zt,Cu=Pt.RegExp,Ou=Ru((function(){var e=Cu(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Tu=zt,Pu=Pt.RegExp,Lu=Tu((function(){var e=Pu("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Mu=ar,Bu=Yt,ju=Qs,Uu=Xs,Fu=au,Nu=Lt.exports,$u=Iu,Gu=Li.get,Hu=Ou,zu=Lu,Zu=Nu("native-string-replace",String.prototype.replace),Vu=RegExp.prototype.exec,Ku=Vu,qu=Bu("".charAt),Wu=Bu("".indexOf),Yu=Bu("".replace),Qu=Bu("".slice),Ju=function(){var e=/a/,t=/b*/g;return Mu(Vu,e,"a"),Mu(Vu,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),Xu=Fu.BROKEN_CARET,ec=void 0!==/()??/.exec("")[1];(Ju||ec||Xu||Hu||zu)&&(Ku=function(e){var t,n,r,i,a,o,s,u=this,c=Gu(u),d=ju(e),l=c.raw;if(l)return l.lastIndex=u.lastIndex,t=Mu(Ku,l,d),u.lastIndex=l.lastIndex,t;var f=c.groups,p=Xu&&u.sticky,h=Mu(Uu,u),m=u.source,v=0,g=d;if(p&&(h=Yu(h,"y",""),-1===Wu(h,"g")&&(h+="g"),g=Qu(d,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==qu(d,u.lastIndex-1))&&(m="(?: "+m+")",g=" "+g,v++),n=new RegExp("^(?:"+m+")",h)),ec&&(n=new RegExp("^"+m+"$(?!\\s)",h)),Ju&&(r=u.lastIndex),i=Mu(Vu,p?n:u,g),p?i?(i.input=Qu(i.input,v),i[0]=Qu(i[0],v),i.index=u.lastIndex,u.lastIndex+=i[0].length):u.lastIndex=0:Ju&&i&&(u.lastIndex=u.global?i.index+i[0].length:r),ec&&i&&i.length>1&&Mu(Zu,i[0],n,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(i[a]=void 0)})),i&&f)for(i.groups=o=$u(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var tc=Ku;Gs({target:"RegExp",proto:!0,forced:/./.exec!==tc},{exec:tc});var nc={name:"@bygd/gd-sdk-pes",version:"1.43.23",files:["dist/*"],scripts:{build:"NODE_ENV=production rollup --config",watch:"rollup --config --watch --sourcemap inline --environment DEVELOPMENT","deploy-base":"npm install && npm run build && npm publish --access public",deploy:"npm run deploy-base && gdtool pm-upload"},repository:{type:"git",url:"git@gitlab.azerdev.com:gamedistribution/gd-sdk-pes.git"},author:"",license:"ISC",devDependencies:{"@babel/core":"^7.14.6","@babel/plugin-transform-runtime":"^7.14.5","@babel/preset-env":"^7.14.7","@rollup/plugin-babel":"^5.2.3","@rollup/plugin-commonjs":"^21.0.1","@rollup/plugin-json":"^4.1.0","@rollup/plugin-node-resolve":"^13.0.0","@rollup/plugin-replace":"^3.0.0",postcss:"^8.3.5",rollup:"^2.52.8","rollup-plugin-analyzer":"^4.0.0","rollup-plugin-browsersync":"^1.3.3","rollup-plugin-delete":"^2.0.0","rollup-plugin-node-polyfills":"^0.2.1","rollup-plugin-peer-deps-external":"^2.2.4","rollup-plugin-postcss":"^4.0.0","rollup-plugin-terser":"^7.0.2"},dependencies:{"@babel/runtime":"^7.14.6","@bygd/gd-sdk-era":"^0.3.6","@flownet/lib-connect-to-tcf":"^0.2.10","@fnet/inter-service-js":"^0.9.4",axios:"^0.26.1","can-autoplay":"^3.0.2",events:"^3.3.0","get-value":"^3.0.1","is-plain-object":"^5.0.0","is-valid-domain":"^0.1.2","js-base64":"^3.6.1","leaderboard-lib":"0.1.11","lodash.clonedeep":"^4.5.0","lodash.merge":"^4.6.2",querystringify:"^2.2.0","set-value":"^4.1.0","url-parse":"^1.4.7",uuid:"^8.3.2",validator:"^13.6.0"}},rc=function(e){var t=ic("object"===r(e)?e:function(e){if(e)try{return JSON.parse(e)}catch(e){}}(e));return t&&t.version?nc.version>=t.version?t:void 0:t},ic=function(e){var t=this;if(!V(e)||0===e.length)return e;if(1===e.length)return e[0];var r=0;e.forEach(function(e){n(this,t),e.weight=e.weight||1,r+=e.weight}.bind(this));var i=Math.floor(Math.random()*Math.floor(r));r=0;for(var a=0;a<e.length;a++){var o=e[a];if(i<(r+=o.weight))return o}};var ac=function(){},oc=function(){var e;(e=console).log.apply(e,arguments)},sc=function(){var e;(e=console).log.apply(e,arguments)};JSON.stringify({adapters:{default:["ima","adsense","ima","adsense"],preroll:["ima","adsense","ima","adsense"],midroll:["ima","adsense","ima","adsense"],rewarded:["ima","adsense","ima","adsense"]}}),JSON.stringify({adapters:{default:["ima","adsense","ima","adsense"],preroll:["ima","adsense","ima"],midroll:["ima","adsense","ima"],rewarded:["ima","adsense","ima","adsense"]}});var uc={};function cc(e,t,n){return(t=T(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dc={},lc=jr,fc=$n,pc=fi,hc=function(e,t,n){var r=lc(t);r in e?fc.f(e,r,pc(0,n)):e[r]=n},mc=Xo,vc=$a,gc=hc,Ac=Array,bc=Math.max,yc=function(e,t,n){for(var r=vc(e),i=mc(t,r),a=mc(void 0===n?r:n,r),o=Ac(bc(a-i,0)),s=0;i<a;i++,s++)gc(o,s,e[i]);return o.length=s,o},_c=oa,wc=Fo,xc=Wo.f,kc=yc,Ec="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];dc.f=function(e){return Ec&&"Window"==_c(e)?function(e){try{return xc(e)}catch(e){return kc(Ec)}}(e):xc(wc(e))};var Sc=Wr.exports,Dc=$n,Ic=function(e,t,n){return n.get&&Sc(n.get,t,{getter:!0}),n.set&&Sc(n.set,t,{setter:!0}),Dc.f(e,t,n)},Rc={},Cc=Ln;Rc.f=Cc;var Oc=Pt,Tc=sn,Pc=Rc,Lc=$n.f,Mc=function(e){var t=Oc.Symbol||(Oc.Symbol={});Tc(t,e)||Lc(t,e,{value:Pc.f(e)})},Bc=ar,jc=ur,Uc=Ln,Fc=na,Nc=$n.f,$c=sn,Gc=Ln("toStringTag"),Hc=function(e,t,n){e&&!n&&(e=e.prototype),e&&!$c(e,Gc)&&Nc(e,Gc,{configurable:!0,value:t})},zc=Gs,Zc=Pt,Vc=ar,Kc=Yt,qc=Gn,Wc=xn,Yc=zt,Qc=sn,Jc=cr,Xc=nr,ed=Fo,td=jr,nd=Qs,rd=fi,id=Iu,ad=Zs,od=Wo,sd=dc,ud=hs,cd=To,dd=$n,ld=ou,fd=Po,pd=na,hd=Ic,md=Lt.exports,vd=yi,gd=fn,Ad=Ln,bd=Rc,yd=Mc,_d=function(){var e=jc("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,r=Uc("toPrimitive");t&&!t[r]&&Fc(t,r,(function(e){return Bc(n,this)}),{arity:1})},wd=Hc,xd=Li,kd=yo.forEach,Ed=bi("hidden"),Sd="Symbol",Dd="prototype",Id=xd.set,Rd=xd.getterFor(Sd),Cd=Object[Dd],Od=Zc.Symbol,Td=Od&&Od[Dd],Pd=Zc.TypeError,Ld=Zc.QObject,Md=cd.f,Bd=dd.f,jd=sd.f,Ud=fd.f,Fd=Kc([].push),Nd=md("symbols"),$d=md("op-symbols"),Gd=md("wks"),Hd=!Ld||!Ld[Dd]||!Ld[Dd].findChild,zd=qc&&Yc((function(){return 7!=id(Bd({},"a",{get:function(){return Bd(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=Md(Cd,t);r&&delete Cd[t],Bd(e,t,n),r&&e!==Cd&&Bd(Cd,t,r)}:Bd,Zd=function(e,t){var n=Nd[e]=id(Td);return Id(n,{type:Sd,tag:e,description:t}),qc||(n.description=t),n},Vd=function(e,t,n){e===Cd&&Vd($d,t,n),Xc(e);var r=td(t);return Xc(n),Qc(Nd,r)?(n.enumerable?(Qc(e,Ed)&&e[Ed][r]&&(e[Ed][r]=!1),n=id(n,{enumerable:rd(0,!1)})):(Qc(e,Ed)||Bd(e,Ed,rd(1,{})),e[Ed][r]=!0),zd(e,r,n)):Bd(e,r,n)},Kd=function(e,t){Xc(e);var n=ed(t),r=ad(n).concat(Qd(n));return kd(r,(function(t){qc&&!Vc(qd,n,t)||Vd(e,t,n[t])})),e},qd=function(e){var t=td(e),n=Vc(Ud,this,t);return!(this===Cd&&Qc(Nd,t)&&!Qc($d,t))&&(!(n||!Qc(this,t)||!Qc(Nd,t)||Qc(this,Ed)&&this[Ed][t])||n)},Wd=function(e,t){var n=ed(e),r=td(t);if(n!==Cd||!Qc(Nd,r)||Qc($d,r)){var i=Md(n,r);return!i||!Qc(Nd,r)||Qc(n,Ed)&&n[Ed][r]||(i.enumerable=!0),i}},Yd=function(e){var t=jd(ed(e)),n=[];return kd(t,(function(e){Qc(Nd,e)||Qc(vd,e)||Fd(n,e)})),n},Qd=function(e){var t=e===Cd,n=jd(t?$d:ed(e)),r=[];return kd(n,(function(e){!Qc(Nd,e)||t&&!Qc(Cd,e)||Fd(r,Nd[e])})),r};Wc||(Od=function(){if(Jc(Td,this))throw Pd("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?nd(arguments[0]):void 0,t=gd(e),n=function(e){this===Cd&&Vc(n,$d,e),Qc(this,Ed)&&Qc(this[Ed],t)&&(this[Ed][t]=!1),zd(this,t,rd(1,e))};return qc&&Hd&&zd(Cd,t,{configurable:!0,set:n}),Zd(t,e)},pd(Td=Od[Dd],"toString",(function(){return Rd(this).tag})),pd(Od,"withoutSetter",(function(e){return Zd(gd(e),e)})),fd.f=qd,dd.f=Vd,ld.f=Kd,cd.f=Wd,od.f=sd.f=Yd,ud.f=Qd,bd.f=function(e){return Zd(Ad(e),e)},qc&&(hd(Td,"description",{configurable:!0,get:function(){return Rd(this).description}}),pd(Cd,"propertyIsEnumerable",qd,{unsafe:!0}))),zc({global:!0,constructor:!0,wrap:!0,forced:!Wc,sham:!Wc},{Symbol:Od}),kd(ad(Gd),(function(e){yd(e)})),zc({target:Sd,stat:!0,forced:!Wc},{useSetter:function(){Hd=!0},useSimple:function(){Hd=!1}}),zc({target:"Object",stat:!0,forced:!Wc,sham:!qc},{create:function(e,t){return void 0===t?id(e):Kd(id(e),t)},defineProperty:Vd,defineProperties:Kd,getOwnPropertyDescriptor:Wd}),zc({target:"Object",stat:!0,forced:!Wc},{getOwnPropertyNames:Yd}),_d(),wd(Od,Sd),vd[Ed]=!0;var Jd=xn&&!!Symbol.for&&!!Symbol.keyFor,Xd=Gs,el=ur,tl=sn,nl=Qs,rl=Lt.exports,il=Jd,al=rl("string-to-symbol-registry"),ol=rl("symbol-to-string-registry");Xd({target:"Symbol",stat:!0,forced:!il},{for:function(e){var t=nl(e);if(tl(al,t))return al[t];var n=el("Symbol")(t);return al[t]=n,ol[n]=t,n}});var sl=Gs,ul=sn,cl=hr,dl=vr,ll=Jd,fl=(0,Lt.exports)("symbol-to-string-registry");sl({target:"Symbol",stat:!0,forced:!ll},{keyFor:function(e){if(!cl(e))throw TypeError(dl(e)+" is not a symbol");if(ul(fl,e))return fl[e]}});var pl=Zt,hl=Function.prototype,ml=hl.apply,vl=hl.call,gl="object"==typeof Reflect&&Reflect.apply||(pl?vl.bind(ml):function(){return vl.apply(ml,arguments)}),Al=Yt([].slice),bl=Ha,yl=Nn,_l=oa,wl=Qs,xl=Yt([].push),kl=Gs,El=ur,Sl=gl,Dl=ar,Il=Yt,Rl=zt,Cl=Nn,Ol=hr,Tl=Al,Pl=function(e){if(yl(e))return e;if(bl(e)){for(var t=e.length,n=[],r=0;r<t;r++){var i=e[r];"string"==typeof i?xl(n,i):"number"!=typeof i&&"Number"!=_l(i)&&"String"!=_l(i)||xl(n,wl(i))}var a=n.length,o=!0;return function(e,t){if(o)return o=!1,t;if(bl(this))return t;for(var r=0;r<a;r++)if(n[r]===e)return t}}},Ll=xn,Ml=String,Bl=El("JSON","stringify"),jl=Il(/./.exec),Ul=Il("".charAt),Fl=Il("".charCodeAt),Nl=Il("".replace),$l=Il(1..toString),Gl=/[\uD800-\uDFFF]/g,Hl=/^[\uD800-\uDBFF]$/,zl=/^[\uDC00-\uDFFF]$/,Zl=!Ll||Rl((function(){var e=El("Symbol")();return"[null]"!=Bl([e])||"{}"!=Bl({a:e})||"{}"!=Bl(Object(e))})),Vl=Rl((function(){return'"\\udf06\\ud834"'!==Bl("\udf06\ud834")||'"\\udead"'!==Bl("\udead")})),Kl=function(e,t){var n=Tl(arguments),r=Pl(t);if(Cl(r)||void 0!==e&&!Ol(e))return n[1]=function(e,t){if(Cl(r)&&(t=Dl(r,this,Ml(e),t)),!Ol(t))return t},Sl(Bl,null,n)},ql=function(e,t,n){var r=Ul(n,t-1),i=Ul(n,t+1);return jl(Hl,e)&&!jl(zl,i)||jl(zl,e)&&!jl(Hl,r)?"\\u"+$l(Fl(e,0),16):e};Bl&&kl({target:"JSON",stat:!0,arity:3,forced:Zl||Vl},{stringify:function(e,t,n){var r=Tl(arguments),i=Sl(Zl?Kl:Bl,null,r);return Vl&&"string"==typeof i?Nl(i,Gl,ql):i}});var Wl=hs,Yl=rn;Gs({target:"Object",stat:!0,forced:!xn||zt((function(){Wl.f(1)}))},{getOwnPropertySymbols:function(e){var t=Wl.f;return t?t(Yl(e)):[]}});var Ql=zt,Jl=yn,Xl=Ln("species"),ef=function(e){return Jl>=51||!Ql((function(){var t=[];return(t.constructor={})[Xl]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},tf=yo.filter;Gs({target:"Array",proto:!0,forced:!ef("filter")},{filter:function(e){return tf(this,e,arguments.length>1?arguments[1]:void 0)}});var nf=Gs,rf=zt,af=Fo,of=To.f,sf=Gn;nf({target:"Object",stat:!0,forced:!sf||rf((function(){of(1)})),sham:!sf},{getOwnPropertyDescriptor:function(e,t){return of(af(e),t)}});var uf=ys,cf=Fo,df=To,lf=hc;Gs({target:"Object",stat:!0,sham:!Gn},{getOwnPropertyDescriptors:function(e){for(var t,n,r=cf(e),i=df.f,a=uf(r),o={},s=0;a.length>s;)void 0!==(n=i(r,t=a[s++]))&&lf(o,t,n);return o}});var ff=Gs,pf=Ha,hf=ro,mf=Zn,vf=Xo,gf=$a,Af=Fo,bf=hc,yf=Ln,_f=Al,wf=ef("slice"),xf=yf("species"),kf=Array,Ef=Math.max;ff({target:"Array",proto:!0,forced:!wf},{slice:function(e,t){var n,r,i,a=Af(this),o=gf(a),s=vf(e,o),u=vf(void 0===t?o:t,o);if(pf(a)&&(n=a.constructor,(hf(n)&&(n===kf||pf(n.prototype))||mf(n)&&null===(n=n[xf]))&&(n=void 0),n===kf||void 0===n))return _f(a,s,u);for(r=new(void 0===n?kf:n)(Ef(u-s,0)),i=0;s<u;s++,i++)s in a&&bf(r,i,a[s]);return r.length=i,r}});var Sf=ar,Df=nr,If=xr,Rf=function(e,t,n){var r,i;Df(e);try{if(!(r=If(e,"return"))){if("throw"===t)throw n;return n}r=Sf(r,e)}catch(e){i=!0,r=e}if("throw"===t)throw n;if(i)throw r;return Df(r),n},Cf=nr,Of=Rf,Tf={},Pf=Tf,Lf=Ln("iterator"),Mf=Array.prototype,Bf=function(e){return void 0!==e&&(Pf.Array===e||Mf[Lf]===e)},jf=pa,Uf=xr,Ff=Qt,Nf=Tf,$f=Ln("iterator"),Gf=function(e){if(!Ff(e))return Uf(e,$f)||Uf(e,"@@iterator")||Nf[jf(e)]},Hf=ar,zf=yr,Zf=nr,Vf=vr,Kf=Gf,qf=TypeError,Wf=function(e,t){var n=arguments.length<2?Kf(e):t;if(zf(n))return Zf(Hf(n,e));throw qf(Vf(e)+" is not iterable")},Yf=Sa,Qf=ar,Jf=rn,Xf=function(e,t,n,r){try{return r?t(Cf(n)[0],n[1]):t(n)}catch(t){Of(e,"throw",t)}},ep=Bf,tp=ro,np=$a,rp=hc,ip=Wf,ap=Gf,op=Array,sp=function(e){var t=Jf(e),n=tp(this),r=arguments.length,i=r>1?arguments[1]:void 0,a=void 0!==i;a&&(i=Yf(i,r>2?arguments[2]:void 0));var o,s,u,c,d,l,f=ap(t),p=0;if(!f||this===op&&ep(f))for(o=np(t),s=n?new this(o):op(o);o>p;p++)l=a?i(t[p],p):t[p],rp(s,p,l);else for(d=(c=ip(t,f)).next,s=n?new this:[];!(u=Qf(d,c)).done;p++)l=a?Xf(c,i,[u.value,p],!0):u.value,rp(s,p,l);return s.length=p,s},up=Ln("iterator"),cp=!1;try{var dp=0,lp={next:function(){return{done:!!dp++}},return:function(){cp=!0}};lp[up]=function(){return this},Array.from(lp,(function(){throw 2}))}catch(SS){}var fp=function(e,t){if(!t&&!cp)return!1;var n=!1;try{var r={};r[up]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},pp=sp;Gs({target:"Array",stat:!0,forced:!fp((function(e){Array.from(e)}))},{from:pp});var hp,mp,vp,gp=Yt,Ap=Ba,bp=Qs,yp=en,_p=gp("".charAt),wp=gp("".charCodeAt),xp=gp("".slice),kp=function(e){return function(t,n){var r,i,a=bp(yp(t)),o=Ap(n),s=a.length;return o<0||o>=s?e?"":void 0:(r=wp(a,o))<55296||r>56319||o+1===s||(i=wp(a,o+1))<56320||i>57343?e?_p(a,o):r:e?xp(a,o,o+2):i-56320+(r-55296<<10)+65536}},Ep={codeAt:kp(!1),charAt:kp(!0)},Sp=!zt((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Dp=sn,Ip=Nn,Rp=rn,Cp=Sp,Op=bi("IE_PROTO"),Tp=Object,Pp=Tp.prototype,Lp=Cp?Tp.getPrototypeOf:function(e){var t=Rp(e);if(Dp(t,Op))return t[Op];var n=t.constructor;return Ip(n)&&t instanceof n?n.prototype:t instanceof Tp?Pp:null},Mp=zt,Bp=Nn,jp=Zn,Up=Lp,Fp=na,Np=Ln("iterator"),$p=!1;[].keys&&("next"in(vp=[].keys())?(mp=Up(Up(vp)))!==Object.prototype&&(hp=mp):$p=!0);var Gp=!jp(hp)||Mp((function(){var e={};return hp[Np].call(e)!==e}));Gp&&(hp={}),Bp(hp[Np])||Fp(hp,Np,(function(){return this}));var Hp={IteratorPrototype:hp,BUGGY_SAFARI_ITERATORS:$p},zp=Hp.IteratorPrototype,Zp=Iu,Vp=fi,Kp=Hc,qp=Tf,Wp=function(){return this},Yp=function(e,t,n,r){var i=t+" Iterator";return e.prototype=Zp(zp,{next:Vp(+!r,n)}),Kp(e,i,!1),qp[i]=Wp,e},Qp=Yt,Jp=yr,Xp=Nn,eh=String,th=TypeError,nh=function(e,t,n){try{return Qp(Jp(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}},rh=nr,ih=function(e){if("object"==typeof e||Xp(e))return e;throw th("Can't set "+eh(e)+" as a prototype")},ah=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=nh(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return rh(n),ih(r),t?e(n,r):n.__proto__=r,n}}():void 0),oh=Gs,sh=ar,uh=Nn,ch=Yp,dh=Lp,lh=ah,fh=Hc,ph=mi,hh=na,mh=Tf,vh=ti.PROPER,gh=ti.CONFIGURABLE,Ah=Hp.IteratorPrototype,bh=Hp.BUGGY_SAFARI_ITERATORS,yh=Ln("iterator"),_h="keys",wh="values",xh="entries",kh=function(){return this},Eh=function(e,t,n,r,i,a,o){ch(n,t,r);var s,u,c,d=function(e){if(e===i&&m)return m;if(!bh&&e in p)return p[e];switch(e){case _h:case wh:case xh:return function(){return new n(this,e)}}return function(){return new n(this)}},l=t+" Iterator",f=!1,p=e.prototype,h=p[yh]||p["@@iterator"]||i&&p[i],m=!bh&&h||d(i),v="Array"==t&&p.entries||h;if(v&&(s=dh(v.call(new e)))!==Object.prototype&&s.next&&(dh(s)!==Ah&&(lh?lh(s,Ah):uh(s[yh])||hh(s,yh,kh)),fh(s,l,!0)),vh&&i==wh&&h&&h.name!==wh&&(gh?ph(p,"name",wh):(f=!0,m=function(){return sh(h,this)})),i)if(u={values:d(wh),keys:a?m:d(_h),entries:d(xh)},o)for(c in u)(bh||f||!(c in p))&&hh(p,c,u[c]);else oh({target:t,proto:!0,forced:bh||f},u);return p[yh]!==m&&hh(p,yh,m,{name:i}),mh[t]=m,u},Sh=function(e,t){return{value:e,done:t}},Dh=Ep.charAt,Ih=Qs,Rh=Li,Ch=Eh,Oh=Sh,Th="String Iterator",Ph=Rh.set,Lh=Rh.getterFor(Th);Ch(String,"String",(function(e){Ph(this,{type:Th,string:Ih(e),index:0})}),(function(){var e,t=Lh(this),n=t.string,r=t.index;return r>=n.length?Oh(void 0,!0):(e=Dh(n,r),t.index+=e.length,Oh(e,!1))}));var Mh=Gs,Bh=Gn,jh=Yt,Uh=sn,Fh=Nn,Nh=cr,$h=Qs,Gh=Ic,Hh=Es,zh=Pt.Symbol,Zh=zh&&zh.prototype;if(Bh&&Fh(zh)&&(!("description"in Zh)||void 0!==zh().description)){var Vh={},Kh=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:$h(arguments[0]),t=Nh(Zh,this)?new zh(e):void 0===e?zh():zh(e);return""===e&&(Vh[t]=!0),t};Hh(Kh,zh),Kh.prototype=Zh,Zh.constructor=Kh;var qh="Symbol(test)"==String(zh("test")),Wh=jh(Zh.valueOf),Yh=jh(Zh.toString),Qh=/^Symbol\((.*)\)[^)]+$/,Jh=jh("".replace),Xh=jh("".slice);Gh(Zh,"description",{configurable:!0,get:function(){var e=Wh(this);if(Uh(Vh,e))return"";var t=Yh(e),n=qh?Xh(t,7,-1):Jh(t,Qh,"$1");return""===n?void 0:n}}),Mh({global:!0,constructor:!0,forced:!0},{Symbol:Kh})}Mc("iterator");var em=Ln,tm=Iu,nm=$n.f,rm=em("unscopables"),im=Array.prototype;null==im[rm]&&nm(im,rm,{configurable:!0,value:tm(null)});var am=function(e){im[rm][e]=!0},om=Fo,sm=am,um=Tf,cm=Li,dm=$n.f,lm=Eh,fm=Sh,pm=Gn,hm="Array Iterator",mm=cm.set,vm=cm.getterFor(hm),gm=lm(Array,"Array",(function(e,t){mm(this,{type:hm,target:om(e),index:0,kind:t})}),(function(){var e=vm(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,fm(void 0,!0)):fm("keys"==n?r:"values"==n?t[r]:[r,t[r]],!1)}),"values"),Am=um.Arguments=um.Array;if(sm("keys"),sm("values"),sm("entries"),pm&&"values"!==Am.name)try{dm(Am,"name",{value:"values"})}catch(SS){}var bm=Pt,ym=va,_m=ba,wm=gm,xm=mi,km=Ln,Em=km("iterator"),Sm=km("toStringTag"),Dm=wm.values,Im=function(e,t){if(e){if(e[Em]!==Dm)try{xm(e,Em,Dm)}catch(t){e[Em]=Dm}if(e[Sm]||xm(e,Sm,t),ym[t])for(var n in wm)if(e[n]!==wm[n])try{xm(e,n,wm[n])}catch(t){e[n]=wm[n]}}};for(var Rm in ym)Im(bm[Rm]&&bm[Rm].prototype,Rm);Im(_m,"DOMTokenList");var Cm,Om,Tm,Pm,Lm="undefined"!=typeof process&&"process"==oa(process),Mm=ur,Bm=Ic,jm=Gn,Um=Ln("species"),Fm=function(e){var t=Mm(e);jm&&t&&!t[Um]&&Bm(t,Um,{configurable:!0,get:function(){return this}})},Nm=cr,$m=TypeError,Gm=function(e,t){if(Nm(t,e))return e;throw $m("Incorrect invocation")},Hm=ro,zm=vr,Zm=TypeError,Vm=nr,Km=function(e){if(Hm(e))return e;throw Zm(zm(e)+" is not a constructor")},qm=Qt,Wm=Ln("species"),Ym=function(e,t){var n,r=Vm(e).constructor;return void 0===r||qm(n=Vm(r)[Wm])?t:Km(n)},Qm=TypeError,Jm=function(e,t){if(e<t)throw Qm("Not enough arguments");return e},Xm=/(?:ipad|iphone|ipod).*applewebkit/i.test(pn),ev=Pt,tv=gl,nv=Sa,rv=Nn,iv=sn,av=zt,ov=hu,sv=Al,uv=Wn,cv=Jm,dv=Xm,lv=Lm,fv=ev.setImmediate,pv=ev.clearImmediate,hv=ev.process,mv=ev.Dispatch,vv=ev.Function,gv=ev.MessageChannel,Av=ev.String,bv=0,yv={},_v="onreadystatechange";av((function(){Cm=ev.location}));var wv=function(e){if(iv(yv,e)){var t=yv[e];delete yv[e],t()}},xv=function(e){return function(){wv(e)}},kv=function(e){wv(e.data)},Ev=function(e){ev.postMessage(Av(e),Cm.protocol+"//"+Cm.host)};fv&&pv||(fv=function(e){cv(arguments.length,1);var t=rv(e)?e:vv(e),n=sv(arguments,1);return yv[++bv]=function(){tv(t,void 0,n)},Om(bv),bv},pv=function(e){delete yv[e]},lv?Om=function(e){hv.nextTick(xv(e))}:mv&&mv.now?Om=function(e){mv.now(xv(e))}:gv&&!dv?(Pm=(Tm=new gv).port2,Tm.port1.onmessage=kv,Om=nv(Pm.postMessage,Pm)):ev.addEventListener&&rv(ev.postMessage)&&!ev.importScripts&&Cm&&"file:"!==Cm.protocol&&!av(Ev)?(Om=Ev,ev.addEventListener("message",kv,!1)):Om=_v in uv("script")?function(e){ov.appendChild(uv("script"))[_v]=function(){ov.removeChild(this),wv(e)}}:function(e){setTimeout(xv(e),0)});var Sv={set:fv,clear:pv},Dv=function(){this.head=null,this.tail=null};Dv.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}};var Iv,Rv,Cv,Ov,Tv,Pv=Dv,Lv=/ipad|iphone|ipod/i.test(pn)&&"undefined"!=typeof Pebble,Mv=/web0s(?!.*chrome)/i.test(pn),Bv=Pt,jv=Sa,Uv=To.f,Fv=Sv.set,Nv=Pv,$v=Xm,Gv=Lv,Hv=Mv,zv=Lm,Zv=Bv.MutationObserver||Bv.WebKitMutationObserver,Vv=Bv.document,Kv=Bv.process,qv=Bv.Promise,Wv=Uv(Bv,"queueMicrotask"),Yv=Wv&&Wv.value;if(!Yv){var Qv=new Nv,Jv=function(){var e,t;for(zv&&(e=Kv.domain)&&e.exit();t=Qv.get();)try{t()}catch(e){throw Qv.head&&Iv(),e}e&&e.enter()};$v||zv||Hv||!Zv||!Vv?!Gv&&qv&&qv.resolve?((Ov=qv.resolve(void 0)).constructor=qv,Tv=jv(Ov.then,Ov),Iv=function(){Tv(Jv)}):zv?Iv=function(){Kv.nextTick(Jv)}:(Fv=jv(Fv,Bv),Iv=function(){Fv(Jv)}):(Rv=!0,Cv=Vv.createTextNode(""),new Zv(Jv).observe(Cv,{characterData:!0}),Iv=function(){Cv.data=Rv=!Rv}),Yv=function(e){Qv.head||Iv(),Qv.add(e)}}var Xv=Yv,eg=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},tg=Pt.Promise,ng="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,rg=!ng&&!Lm&&"object"==typeof window&&"object"==typeof document,ig=Pt,ag=tg,og=Nn,sg=Ls,ug=ui,cg=Ln,dg=rg,lg=ng,fg=yn;ag&&ag.prototype;var pg=cg("species"),hg=!1,mg=og(ig.PromiseRejectionEvent),vg=sg("Promise",(function(){var e=ug(ag),t=e!==String(ag);if(!t&&66===fg)return!0;if(!fg||fg<51||!/native code/.test(e)){var n=new ag((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};if((n.constructor={})[pg]=r,!(hg=n.then((function(){}))instanceof r))return!0}return!t&&(dg||lg)&&!mg})),gg={CONSTRUCTOR:vg,REJECTION_EVENT:mg,SUBCLASSING:hg},Ag={},bg=yr,yg=TypeError,_g=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw yg("Bad Promise constructor");t=e,n=r})),this.resolve=bg(t),this.reject=bg(n)};Ag.f=function(e){return new _g(e)};var wg,xg,kg,Eg=Gs,Sg=Lm,Dg=Pt,Ig=ar,Rg=na,Cg=ah,Og=Hc,Tg=Fm,Pg=yr,Lg=Nn,Mg=Zn,Bg=Gm,jg=Ym,Ug=Sv.set,Fg=Xv,Ng=function(e,t){try{1==arguments.length?console.error(e):console.error(e,t)}catch(e){}},$g=eg,Gg=Pv,Hg=Li,zg=tg,Zg=Ag,Vg="Promise",Kg=gg.CONSTRUCTOR,qg=gg.REJECTION_EVENT,Wg=gg.SUBCLASSING,Yg=Hg.getterFor(Vg),Qg=Hg.set,Jg=zg&&zg.prototype,Xg=zg,eA=Jg,tA=Dg.TypeError,nA=Dg.document,rA=Dg.process,iA=Zg.f,aA=iA,oA=!!(nA&&nA.createEvent&&Dg.dispatchEvent),sA="unhandledrejection",uA=function(e){var t;return!(!Mg(e)||!Lg(t=e.then))&&t},cA=function(e,t){var n,r,i,a=t.value,o=1==t.state,s=o?e.ok:e.fail,u=e.resolve,c=e.reject,d=e.domain;try{s?(o||(2===t.rejection&&hA(t),t.rejection=1),!0===s?n=a:(d&&d.enter(),n=s(a),d&&(d.exit(),i=!0)),n===e.promise?c(tA("Promise-chain cycle")):(r=uA(n))?Ig(r,n,u,c):u(n)):c(a)}catch(e){d&&!i&&d.exit(),c(e)}},dA=function(e,t){e.notified||(e.notified=!0,Fg((function(){for(var n,r=e.reactions;n=r.get();)cA(n,e);e.notified=!1,t&&!e.rejection&&fA(e)})))},lA=function(e,t,n){var r,i;oA?((r=nA.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),Dg.dispatchEvent(r)):r={promise:t,reason:n},!qg&&(i=Dg["on"+e])?i(r):e===sA&&Ng("Unhandled promise rejection",n)},fA=function(e){Ig(Ug,Dg,(function(){var t,n=e.facade,r=e.value;if(pA(e)&&(t=$g((function(){Sg?rA.emit("unhandledRejection",r,n):lA(sA,n,r)})),e.rejection=Sg||pA(e)?2:1,t.error))throw t.value}))},pA=function(e){return 1!==e.rejection&&!e.parent},hA=function(e){Ig(Ug,Dg,(function(){var t=e.facade;Sg?rA.emit("rejectionHandled",t):lA("rejectionhandled",t,e.value)}))},mA=function(e,t,n){return function(r){e(t,r,n)}},vA=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,dA(e,!0))},gA=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw tA("Promise can't be resolved itself");var r=uA(t);r?Fg((function(){var n={done:!1};try{Ig(r,t,mA(gA,n,e),mA(vA,n,e))}catch(t){vA(n,t,e)}})):(e.value=t,e.state=1,dA(e,!1))}catch(t){vA({done:!1},t,e)}}};if(Kg&&(Xg=function(e){Bg(this,eA),Pg(e),Ig(wg,this);var t=Yg(this);try{e(mA(gA,t),mA(vA,t))}catch(e){vA(t,e)}},eA=Xg.prototype,(wg=function(e){Qg(this,{type:Vg,done:!1,notified:!1,parent:!1,reactions:new Gg,rejection:!1,state:0,value:void 0})}).prototype=Rg(eA,"then",(function(e,t){var n=Yg(this),r=iA(jg(this,Xg));return n.parent=!0,r.ok=!Lg(e)||e,r.fail=Lg(t)&&t,r.domain=Sg?rA.domain:void 0,0==n.state?n.reactions.add(r):Fg((function(){cA(r,n)})),r.promise})),xg=function(){var e=new wg,t=Yg(e);this.promise=e,this.resolve=mA(gA,t),this.reject=mA(vA,t)},Zg.f=iA=function(e){return e===Xg||undefined===e?new xg(e):aA(e)},Lg(zg)&&Jg!==Object.prototype)){kg=Jg.then,Wg||Rg(Jg,"then",(function(e,t){var n=this;return new Xg((function(e,t){Ig(kg,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete Jg.constructor}catch(SS){}Cg&&Cg(Jg,eA)}Eg({global:!0,constructor:!0,wrap:!0,forced:Kg},{Promise:Xg}),Og(Xg,Vg,!1),Tg(Vg);var AA=Sa,bA=ar,yA=nr,_A=vr,wA=Bf,xA=$a,kA=cr,EA=Wf,SA=Gf,DA=Rf,IA=TypeError,RA=function(e,t){this.stopped=e,this.result=t},CA=RA.prototype,OA=function(e,t,n){var r,i,a,o,s,u,c,d=n&&n.that,l=!(!n||!n.AS_ENTRIES),f=!(!n||!n.IS_RECORD),p=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),m=AA(t,d),v=function(e){return r&&DA(r,"normal",e),new RA(!0,e)},g=function(e){return l?(yA(e),h?m(e[0],e[1],v):m(e[0],e[1])):h?m(e,v):m(e)};if(f)r=e.iterator;else if(p)r=e;else{if(!(i=SA(e)))throw IA(_A(e)+" is not iterable");if(wA(i)){for(a=0,o=xA(e);o>a;a++)if((s=g(e[a]))&&kA(CA,s))return s;return new RA(!1)}r=EA(e,i)}for(u=f?e.next:r.next;!(c=bA(u,r)).done;){try{s=g(c.value)}catch(e){DA(r,"throw",e)}if("object"==typeof s&&s&&kA(CA,s))return s}return new RA(!1)},TA=tg,PA=gg.CONSTRUCTOR||!fp((function(e){TA.all(e).then(void 0,(function(){}))})),LA=ar,MA=yr,BA=Ag,jA=eg,UA=OA;Gs({target:"Promise",stat:!0,forced:PA},{all:function(e){var t=this,n=BA.f(t),r=n.resolve,i=n.reject,a=jA((function(){var n=MA(t.resolve),a=[],o=0,s=1;UA(e,(function(e){var u=o++,c=!1;s++,LA(n,t,e).then((function(e){c||(c=!0,a[u]=e,--s||r(a))}),i)})),--s||r(a)}));return a.error&&i(a.value),n.promise}});var FA=Gs,NA=gg.CONSTRUCTOR,$A=tg,GA=ur,HA=Nn,zA=na,ZA=$A&&$A.prototype;if(FA({target:"Promise",proto:!0,forced:NA,real:!0},{catch:function(e){return this.then(void 0,e)}}),HA($A)){var VA=GA("Promise").prototype.catch;ZA.catch!==VA&&zA(ZA,"catch",VA,{unsafe:!0})}var KA=ar,qA=yr,WA=Ag,YA=eg,QA=OA;Gs({target:"Promise",stat:!0,forced:PA},{race:function(e){var t=this,n=WA.f(t),r=n.reject,i=YA((function(){var i=qA(t.resolve);QA(e,(function(e){KA(i,t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}});var JA=ar,XA=Ag;Gs({target:"Promise",stat:!0,forced:gg.CONSTRUCTOR},{reject:function(e){var t=XA.f(this);return JA(t.reject,void 0,e),t.promise}});var eb=nr,tb=Zn,nb=Ag,rb=function(e,t){if(eb(e),tb(t)&&t.constructor===e)return t;var n=nb.f(e);return(0,n.resolve)(t),n.promise},ib=Gs,ab=gg.CONSTRUCTOR,ob=rb;ur("Promise"),ib({target:"Promise",stat:!0,forced:ab},{resolve:function(e){return ob(this,e)}});var sb=TypeError,ub=Gs,cb=zt,db=Ha,lb=Zn,fb=rn,pb=$a,hb=function(e){if(e>9007199254740991)throw sb("Maximum allowed index exceeded");return e},mb=hc,vb=fo,gb=ef,Ab=yn,bb=Ln("isConcatSpreadable"),yb=Ab>=51||!cb((function(){var e=[];return e[bb]=!1,e.concat()[0]!==e})),_b=function(e){if(!lb(e))return!1;var t=e[bb];return void 0!==t?!!t:db(e)};ub({target:"Array",proto:!0,arity:1,forced:!yb||!gb("concat")},{concat:function(e){var t,n,r,i,a,o=fb(this),s=vb(o,0),u=0;for(t=-1,r=arguments.length;t<r;t++)if(_b(a=-1===t?o:arguments[t]))for(i=pb(a),hb(u+i),n=0;n<i;n++,u++)n in a&&mb(s,u,a[n]);else hb(u+1),mb(s,u++,a);return s.length=u,s}});var wb=Gn,xb=ti.EXISTS,kb=Yt,Eb=Ic,Sb=Function.prototype,Db=kb(Sb.toString),Ib=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Rb=kb(Ib.exec);function Cb(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Ob(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ob(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function Ob(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Tb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pb(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tb(Object(n),!0).forEach((function(t){cc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tb(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}wb&&!xb&&Eb(Sb,"name",{configurable:!0,get:function(){try{return Rb(Ib,Db(this))[1]}catch(e){return""}}});var Lb,Mb={react:{src:"https://pm.azerioncircle.com/react/16.14.0/umd/react.production.min.js",name:"React"},"react-dom":{src:"https://pm.azerioncircle.com/react-dom/16.14.0/umd/react-dom.production.min.js",name:"ReactDOM"},redux:{src:"https://pm.azerioncircle.com/redux/4.0.5/dist/redux.min.js",name:"Redux"},"react-redux":{src:"https://pm.azerioncircle.com/react-redux/7.2.1/dist/react-redux.min.js",name:"ReactRedux"},"material-ui-core":{src:"https://pm.azerioncircle.com/@material-ui/core/4.11.3/umd/material-ui.production.min.js",name:"MaterialUI"}},Bb={},jb=function(e,t){Bb[e]=Pb(Pb({},t),{},{isLoading:!1})},Ub=function(e){var t=this,r=e.id,i=e.src;return new Promise(function(e,a){if(n(this,t),document.getElementById(r))e();else{var o=document.createElement("script");o.onload=function(){e()},o.id=r,o.setAttribute("crossorigin",!0),o.src=i,document.head.appendChild(o)}}.bind(this))},Fb=function(){var e=t(d.mark((function e(t){var n,r,i,a,o,s,u,c;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=window[t])){e.next=3;break}return e.abrupt("return",n);case 3:if(!(r=Bb[t]).isLoading){e.next=6;break}return e.abrupt("return");case 6:r.isLoading=!0,i=Cb(r.dependencies),e.prev=8,i.s();case 10:if((a=i.n()).done){e.next=26;break}if(o=a.value,e.prev=12,s=Mb[o].name,!window[s]){e.next=16;break}return e.abrupt("continue",24);case 16:return e.next=18,Ub({id:o,src:Mb[o].src});case 18:e.next=24;break;case 20:e.prev=20,e.t0=e.catch(12),u=o.id,c=o.src,console.log("Could not load external script ".concat(u," ").concat(c),e.t0);case 24:e.next=10;break;case 26:e.next=31;break;case 28:e.prev=28,e.t1=e.catch(8),i.e(e.t1);case 31:return e.prev=31,i.f(),e.finish(31);case 34:return e.prev=34,e.next=37,Ub({id:t,src:r.source});case 37:n=window[t],e.next=43;break;case 40:e.prev=40,e.t2=e.catch(34),console.log("Could not load module ".concat(t," ").concat(r.source,"."),e.t2);case 43:return r.isLoading=!1,e.abrupt("return",n);case 45:case"end":return e.stop()}}),e,null,[[8,28,31,34],[12,20],[34,40]])})));return function(t){return e.apply(this,arguments)}}(),Nb=L((function e(){var n=this;O(this,e),cc(this,"load",t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Fb("Leaderboard");case 2:n.leaderboard=e.sent;case 3:case"end":return e.stop()}}),e)})))),cc(this,"showLeaderboard",function(){var e=t(d.mark((function e(t){var r;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=window.GD_OPTIONS.gameId,n.leaderboard){e.next=4;break}return e.next=4,n.load();case 4:n.leaderboard.showLeaderBoard(r,t);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),cc(this,"addScore",function(){var e=t(d.mark((function e(t){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.leaderboard){e.next=3;break}return e.next=3,n.load();case 3:n.leaderboard.addScore(t);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),this.moduleName="Leaderboard",this.moduleConfig={source:"https://pm.azerioncircle.com/@bygd/gd-sdk-leaderboard/0.1.43/dist/default/iife/index.js",dependencies:["react","react-dom","redux","react-redux","material-ui-core"]},jb(this.moduleName,this.moduleConfig)})),$b=new Nb,Gb=Zn,Hb=oa,zb=Ln("match"),Zb=function(e){var t;return Gb(e)&&(void 0!==(t=e[zb])?!!t:"RegExp"==Hb(e))},Vb=Zb,Kb=TypeError,qb=function(e){if(Vb(e))throw Kb("The method doesn't accept regular expressions");return e},Wb=Ln("match"),Yb=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[Wb]=!1,"/./"[e](t)}catch(e){}}return!1},Qb=Gs,Jb=wa,Xb=To.f,ey=Fa,ty=Qs,ny=qb,ry=en,iy=Yb,ay=Jb("".startsWith),oy=Jb("".slice),sy=Math.min,uy=iy("startsWith");Qb({target:"String",proto:!0,forced:!!(uy||(Lb=Xb(String.prototype,"startsWith"),!Lb||Lb.writable))&&!uy},{startsWith:function(e){var t=ty(ry(this));ny(e);var n=ey(sy(arguments.length>1?arguments[1]:void 0,t.length)),r=ty(e);return ay?ay(t,r,n):oy(t,n,n+r.length)===r}});var cy=ar,dy=sn,ly=cr,fy=Xs,py=RegExp.prototype,hy=function(e){var t=e.flags;return void 0!==t||"flags"in py||dy(e,"flags")||!ly(py,e)?t:cy(fy,e)},my=ti.PROPER,vy=na,gy=nr,Ay=Qs,by=zt,yy=hy,_y="toString",wy=RegExp.prototype[_y],xy=by((function(){return"/a/b"!=wy.call({source:"a",flags:"b"})})),ky=my&&wy.name!=_y;(xy||ky)&&vy(RegExp.prototype,_y,(function(){var e=gy(this);return"/"+Ay(e.source)+"/"+Ay(yy(e))}),{unsafe:!0});var Ey=wa,Sy=na,Dy=tc,Iy=zt,Ry=Ln,Cy=mi,Oy=Ry("species"),Ty=RegExp.prototype,Py=function(e,t,n,r){var i=Ry(e),a=!Iy((function(){var t={};return t[i]=function(){return 7},7!=""[e](t)})),o=a&&!Iy((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[Oy]=function(){return n},n.flags="",n[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](""),!t}));if(!a||!o||n){var s=Ey(/./[i]),u=t(i,""[e],(function(e,t,n,r,i){var o=Ey(e),u=t.exec;return u===Dy||u===Ty.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));Sy(String.prototype,e,u[0]),Sy(Ty,i,u[1])}r&&Cy(Ty[i],"sham",!0)},Ly=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t},My=ar,By=nr,jy=Nn,Uy=oa,Fy=tc,Ny=TypeError,$y=function(e,t){var n=e.exec;if(jy(n)){var r=My(n,e,t);return null!==r&&By(r),r}if("RegExp"===Uy(e))return My(Fy,e,t);throw Ny("RegExp#exec called on incompatible receiver")},Gy=ar,Hy=nr,zy=Qt,Zy=en,Vy=Ly,Ky=Qs,qy=xr,Wy=$y;function Yy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yy(Object(n),!0).forEach((function(t){cc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}Py("search",(function(e,t,n){return[function(t){var n=Zy(this),r=zy(t)?void 0:qy(t,e);return r?Gy(r,t,n):new RegExp(t)[e](Ky(n))},function(e){var r=Hy(this),i=Ky(e),a=n(t,r,i);if(a.done)return a.value;var o=r.lastIndex;Vy(o,0)||(r.lastIndex=0);var s=Wy(r,i);return Vy(r.lastIndex,o)||(r.lastIndex=o),null===s?-1:s.index}]}));var Jy,Xy,e_=function(){function e(){O(this,e)}return L(e,[{key:"getBridgeContext",value:function(){var e=this._isTokenGameURL(),t=this._isMasterGameURL(),n=this._isExtHostedGameURL(),r=e||n?this._getTokenGameURLConfig():{};r=r||{};var i=decodeURIComponent((e||n)&&r.parentURL?r.parentURL:ot()),a=decodeURIComponent((e||n)&&r.parentDomain?r.parentDomain:at()),o=decodeURIComponent((e||n)&&r.topDomain?r.topDomain:n&&0===pt()?a:vt()),s=(e||n)&&r.loaderEnabled,u=(e||n)&&r.loaderEnabled,c=(e||n)&&r.loaderEnabled,d=(e||n)&&r.loaderEnabled,l=(e||n)&&r.loaderEnabled,f=(e||n)&&r.loaderEnabled,p=(e||n)&&r.loaderEnabled;console.log("noMinijuegosSDK",p);var h=(e||n)&&r.loaderEnabled,m=(e||n)&&r.loaderEnabled&&r.hasImpression&&r.version>="1.1.24";return{isTokenGameURL:e,isMasterGameURL:t,isExtHostedGameURL:n,noConsoleBanner:s,noLoadedEvent:u,noBlockerEvent:c,noPreroll:h,parentURL:i,parentDomain:a,topDomain:o&&o.length?o:a,noGAPageView:d,noLotamePageView:l,noGamedockSDK:f,noMinijuegosSDK:p,version:r.version,pauseGameOnStartup:m,depth:pt(),domainMatched:a===o,exports:{formatTokenURLSearch:this._formatTokenURLSearch.bind(this),extendUrlQuery:this._extendUrlQuery.bind(this),base64Encode:this._base64_encode.bind(this)}}}},{key:"_isMasterGameURL",value:function(){var e=/http[s]?:\/\/(html5\.gamedistribution\.com\/[A-Fa-f0-9]{32})(.*)$/i;return e.test(location.href)||!this._isTokenGameURL()&&e.test(document.referrer)}},{key:"_isTokenGameURL",value:function(){var e=/http[s]?:\/\/(html5\.gamedistribution\.com\/[A-Za-z0-9]{8})\/(.*)$/i;return e.test(location.href)||e.test(document.referrer)}},{key:"_isExtHostedGameURL",value:function(){var e=/^http[s]?:\/\/.*?gd_sdk_referrer_url=.*$/i;return e.test(location.href)||e.test(document.referrer)}},{key:"_isLoaderGameURL",value:function(){return/http[s]?:\/\/(html5\.gamedistribution\.com\/[A-Fa-f0-9]{32})(.*)$/i.test(location.href)&&location.href.startsWith("https://html5.gamedistribution.com")}},{key:"_getTokenGameURLConfig",value:function(){try{var e,t=/http[s]?:\/\/html5\.gamedistribution\.com\/[A-Za-z0-9]{8}\/[A-Fa-f0-9]{32}\/.*/i;if(t.test(location.href)){var n=new C(location.href,!0);if(!n.query.gd_zone_config)return;e=n.query.gd_zone_config}else if(t.test(document.referrer)){var r=new C(document.referrer,!0);if(!r.query.gd_zone_config)return;e=r.query.gd_zone_config}else{var i=new C(location.href,!0);if(!i.query.gd_zone_config)return;e=i.query.gd_zone_config}return JSON.parse(nt.decode(decodeURIComponent(e)))}catch(e){}}},{key:"_formatTokenURLSearch",value:function(e){var t="";try{t=encodeURIComponent(nt.encode(JSON.stringify(e)))}catch(e){}try{var n=new C(location.href,!0);return n.query=n.query||{},n.query.gd_zone_config=t,"?".concat(qs.stringify(n.query))}catch(e){return"?gd_zone_config=".concat(t)}}},{key:"_extendUrlQuery",value:function(e,t){var n=new C(e,!0);return n.query=Qy(Qy({},n.query),t),n.toString()}},{key:"_base64_encode",value:function(e){return nt.encode(JSON.stringify(e))}}]),e}(),t_=function(){try{return(new e_).getBridgeContext()}catch(e){return{}}}(),n_={userDeclinedTracking:document.location.search.indexOf("gdpr-tracking=0")>=0||document.cookie.indexOf("ogdpr_tracking=0")>=0,whitelabelPartner:(Jy=!1,(Xy=ut()).hasOwnProperty("xanthophyll")&&"true"===Xy.xanthophyll&&(Jy=!0),Jy)},r_=Ep.charAt,i_=Yt,a_=rn,o_=Math.floor,s_=i_("".charAt),u_=i_("".replace),c_=i_("".slice),d_=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l_=/\$([$&'`]|\d{1,2})/g,f_=gl,p_=ar,h_=Yt,m_=Py,v_=zt,g_=nr,A_=Nn,b_=Qt,y_=Ba,__=Fa,w_=Qs,x_=en,k_=function(e,t,n){return t+(n?r_(e,t).length:1)},E_=xr,S_=function(e,t,n,r,i,a){var o=n+e.length,s=r.length,u=l_;return void 0!==i&&(i=a_(i),u=d_),u_(a,u,(function(a,u){var c;switch(s_(u,0)){case"$":return"$";case"&":return e;case"`":return c_(t,0,n);case"'":return c_(t,o);case"<":c=i[c_(u,1,-1)];break;default:var d=+u;if(0===d)return a;if(d>s){var l=o_(d/10);return 0===l?a:l<=s?void 0===r[l-1]?s_(u,1):r[l-1]+s_(u,1):a}c=r[d-1]}return void 0===c?"":c}))},D_=$y,I_=Ln("replace"),R_=Math.max,C_=Math.min,O_=h_([].concat),T_=h_([].push),P_=h_("".indexOf),L_=h_("".slice),M_=function(e){return void 0===e?e:String(e)},B_="$0"==="a".replace(/./,"$0"),j_=!!/./[I_]&&""===/./[I_]("a","$0"),U_=!v_((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}));m_("replace",(function(e,t,n){var r=j_?"$":"$0";return[function(e,n){var r=x_(this),i=b_(e)?void 0:E_(e,I_);return i?p_(i,e,r,n):p_(t,w_(r),e,n)},function(e,i){var a=g_(this),o=w_(e);if("string"==typeof i&&-1===P_(i,r)&&-1===P_(i,"$<")){var s=n(t,a,o,i);if(s.done)return s.value}var u=A_(i);u||(i=w_(i));var c=a.global;if(c){var d=a.unicode;a.lastIndex=0}for(var l=[];;){var f=D_(a,o);if(null===f)break;if(T_(l,f),!c)break;""===w_(f[0])&&(a.lastIndex=k_(o,__(a.lastIndex),d))}for(var p="",h=0,m=0;m<l.length;m++){for(var v=w_((f=l[m])[0]),g=R_(C_(y_(f.index),o.length),0),A=[],b=1;b<f.length;b++)T_(A,M_(f[b]));var y=f.groups;if(u){var _=O_([v],A,g,o);void 0!==y&&T_(_,y);var w=w_(f_(i,void 0,_))}else w=S_(v,o,g,A,y,i);g>=h&&(p+=L_(o,h,g)+w,h=g+v.length)}return p+L_(o,h)}]}),!U_||!B_||j_);var F_=zt,N_=Gn,$_=Ln("iterator"),G_=!F_((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),n+=r+e})),!t.size&&!N_||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[$_]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host})),H_=na,z_=yc,Z_=Math.floor,V_=function(e,t){var n=e.length,r=Z_(n/2);return n<8?K_(e,t):q_(e,V_(z_(e,0,r),t),V_(z_(e,r),t),t)},K_=function(e,t){for(var n,r,i=e.length,a=1;a<i;){for(r=a,n=e[a];r&&t(e[r-1],n)>0;)e[r]=e[--r];r!==a++&&(e[r]=n)}return e},q_=function(e,t,n,r){for(var i=t.length,a=n.length,o=0,s=0;o<i||s<a;)e[o+s]=o<i&&s<a?r(t[o],n[s])<=0?t[o++]:n[s++]:o<i?t[o++]:n[s++];return e},W_=Gs,Y_=Pt,Q_=ar,J_=Yt,X_=Gn,ew=G_,tw=na,nw=Ic,rw=function(e,t,n){for(var r in t)H_(e,r,t[r],n);return e},iw=Hc,aw=Yp,ow=Li,sw=Gm,uw=Nn,cw=sn,dw=Sa,lw=pa,fw=nr,pw=Zn,hw=Qs,mw=Iu,vw=fi,gw=Wf,Aw=Gf,bw=Jm,yw=V_,_w=Ln("iterator"),ww="URLSearchParams",xw=ww+"Iterator",kw=ow.set,Ew=ow.getterFor(ww),Sw=ow.getterFor(xw),Dw=Object.getOwnPropertyDescriptor,Iw=function(e){if(!X_)return Y_[e];var t=Dw(Y_,e);return t&&t.value},Rw=Iw("fetch"),Cw=Iw("Request"),Ow=Iw("Headers"),Tw=Cw&&Cw.prototype,Pw=Ow&&Ow.prototype,Lw=Y_.RegExp,Mw=Y_.TypeError,Bw=Y_.decodeURIComponent,jw=Y_.encodeURIComponent,Uw=J_("".charAt),Fw=J_([].join),Nw=J_([].push),$w=J_("".replace),Gw=J_([].shift),Hw=J_([].splice),zw=J_("".split),Zw=J_("".slice),Vw=/\+/g,Kw=Array(4),qw=function(e){return Kw[e-1]||(Kw[e-1]=Lw("((?:%[\\da-f]{2}){"+e+"})","gi"))},Ww=function(e){try{return Bw(e)}catch(t){return e}},Yw=function(e){var t=$w(e,Vw," "),n=4;try{return Bw(t)}catch(e){for(;n;)t=$w(t,qw(n--),Ww);return t}},Qw=/[!'()~]|%20/g,Jw={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},Xw=function(e){return Jw[e]},ex=function(e){return $w(jw(e),Qw,Xw)},tx=aw((function(e,t){kw(this,{type:xw,iterator:gw(Ew(e).entries),kind:t})}),"Iterator",(function(){var e=Sw(this),t=e.kind,n=e.iterator.next(),r=n.value;return n.done||(n.value="keys"===t?r.key:"values"===t?r.value:[r.key,r.value]),n}),!0),nx=function(e){this.entries=[],this.url=null,void 0!==e&&(pw(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===Uw(e,0)?Zw(e,1):e:hw(e)))};nx.prototype={type:ww,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,i,a,o,s,u=Aw(e);if(u)for(n=(t=gw(e,u)).next;!(r=Q_(n,t)).done;){if(a=(i=gw(fw(r.value))).next,(o=Q_(a,i)).done||(s=Q_(a,i)).done||!Q_(a,i).done)throw Mw("Expected sequence with length 2");Nw(this.entries,{key:hw(o.value),value:hw(s.value)})}else for(var c in e)cw(e,c)&&Nw(this.entries,{key:c,value:hw(e[c])})},parseQuery:function(e){if(e)for(var t,n,r=zw(e,"&"),i=0;i<r.length;)(t=r[i++]).length&&(n=zw(t,"="),Nw(this.entries,{key:Yw(Gw(n)),value:Yw(Fw(n,"="))}))},serialize:function(){for(var e,t=this.entries,n=[],r=0;r<t.length;)e=t[r++],Nw(n,ex(e.key)+"="+ex(e.value));return Fw(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var rx=function(){sw(this,ix);var e=kw(this,new nx(arguments.length>0?arguments[0]:void 0));X_||(this.length=e.entries.length)},ix=rx.prototype;if(rw(ix,{append:function(e,t){bw(arguments.length,2);var n=Ew(this);Nw(n.entries,{key:hw(e),value:hw(t)}),X_||this.length++,n.updateURL()},delete:function(e){bw(arguments.length,1);for(var t=Ew(this),n=t.entries,r=hw(e),i=0;i<n.length;)n[i].key===r?Hw(n,i,1):i++;X_||(this.length=n.length),t.updateURL()},get:function(e){bw(arguments.length,1);for(var t=Ew(this).entries,n=hw(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){bw(arguments.length,1);for(var t=Ew(this).entries,n=hw(e),r=[],i=0;i<t.length;i++)t[i].key===n&&Nw(r,t[i].value);return r},has:function(e){bw(arguments.length,1);for(var t=Ew(this).entries,n=hw(e),r=0;r<t.length;)if(t[r++].key===n)return!0;return!1},set:function(e,t){bw(arguments.length,1);for(var n,r=Ew(this),i=r.entries,a=!1,o=hw(e),s=hw(t),u=0;u<i.length;u++)(n=i[u]).key===o&&(a?Hw(i,u--,1):(a=!0,n.value=s));a||Nw(i,{key:o,value:s}),X_||(this.length=i.length),r.updateURL()},sort:function(){var e=Ew(this);yw(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,n=Ew(this).entries,r=dw(e,arguments.length>1?arguments[1]:void 0),i=0;i<n.length;)r((t=n[i++]).value,t.key,this)},keys:function(){return new tx(this,"keys")},values:function(){return new tx(this,"values")},entries:function(){return new tx(this,"entries")}},{enumerable:!0}),tw(ix,_w,ix.entries,{name:"entries"}),tw(ix,"toString",(function(){return Ew(this).serialize()}),{enumerable:!0}),X_&&nw(ix,"size",{get:function(){return Ew(this).entries.length},configurable:!0,enumerable:!0}),iw(rx,ww),W_({global:!0,constructor:!0,forced:!ew},{URLSearchParams:rx}),!ew&&uw(Ow)){var ax=J_(Pw.has),ox=J_(Pw.set),sx=function(e){if(pw(e)){var t,n=e.body;if(lw(n)===ww)return t=e.headers?new Ow(e.headers):new Ow,ax(t,"content-type")||ox(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),mw(e,{body:vw(0,hw(n)),headers:vw(0,t)})}return e};if(uw(Rw)&&W_({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return Rw(e,arguments.length>1?sx(arguments[1]):{})}}),uw(Cw)){var ux=function(e){return sw(this,Tw),new Cw(e,arguments.length>1?sx(arguments[1]):{})};Tw.constructor=ux,ux.prototype=Tw,W_({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:ux})}}var cx={URLSearchParams:rx,getState:Ew},dx=is.includes,lx=am;Gs({target:"Array",proto:!0,forced:zt((function(){return!Array(1).includes()}))},{includes:function(e){return dx(this,e,arguments.length>1?arguments[1]:void 0)}}),lx("includes");var fx=Gs,px=qb,hx=en,mx=Qs,vx=Yb,gx=Yt("".indexOf);fx({target:"String",proto:!0,forced:!vx("includes")},{includes:function(e){return!!~gx(mx(hx(this)),mx(px(e)),arguments.length>1?arguments[1]:void 0)}});var Ax={exports:{}},bx={exports:{}},yx={exports:{}};!function(e,t){function n(e){return n="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},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t="string"==typeof e||e instanceof String;if(!t){var r=n(e);throw null===e?r="null":"object"===r&&(r=e.constructor.name),new TypeError("Expected a string but received a ".concat(r))}},e.exports=t.default,e.exports.default=t.default}(yx,yx.exports),function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),e=Date.parse(e),isNaN(e)?null:new Date(e)};var n,r=(n=yx.exports)&&n.__esModule?n:{default:n};e.exports=t.default,e.exports.default=t.default}(bx,bx.exports);var _x={exports:{}},wx={},xx={};Object.defineProperty(xx,"__esModule",{value:!0}),xx.commaDecimal=xx.dotDecimal=xx.bengaliLocales=xx.farsiLocales=xx.arabicLocales=xx.englishLocales=xx.decimal=xx.alphanumeric=xx.alpha=void 0;var kx={"en-US":/^[A-Z]+$/i,"az-AZ":/^[A-VXYZÇƏĞİıÖŞÜ]+$/i,"bg-BG":/^[А-Я]+$/i,"cs-CZ":/^[A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[A-ZÆØÅ]+$/i,"de-DE":/^[A-ZÄÖÜß]+$/i,"el-GR":/^[Α-ώ]+$/i,"es-ES":/^[A-ZÁÉÍÑÓÚÜ]+$/i,"fa-IR":/^[ابپتثجچحخدذرزژسشصضطظعغفقکگلمنوهی]+$/i,"fi-FI":/^[A-ZÅÄÖ]+$/i,"fr-FR":/^[A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[A-ZÀÉÈÌÎÓÒÙ]+$/i,"ja-JP":/^[ぁ-んァ-ヶヲ-゚一-龠ー・。、]+$/i,"nb-NO":/^[A-ZÆØÅ]+$/i,"nl-NL":/^[A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[A-ZÆØÅ]+$/i,"hu-HU":/^[A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"pl-PL":/^[A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[A-ZÃÁÀÂÄÇÉÊËÍÏÕÓÔÖÚÜ]+$/i,"ru-RU":/^[А-ЯЁ]+$/i,"sl-SI":/^[A-ZČĆĐŠŽ]+$/i,"sk-SK":/^[A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[A-ZÅÄÖ]+$/i,"th-TH":/^[ก-๐\s]+$/i,"tr-TR":/^[A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[А-ЩЬЮЯЄIЇҐі]+$/i,"vi-VN":/^[A-ZÀÁẠẢÃÂẦẤẬẨẪĂẰẮẶẲẴĐÈÉẸẺẼÊỀẾỆỂỄÌÍỊỈĨÒÓỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠÙÚỤỦŨƯỪỨỰỬỮỲÝỴỶỸ]+$/i,"ko-KR":/^[ㄱ-ㅎㅏ-ㅣ가-힣]*$/,"ku-IQ":/^[ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,ar:/^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/,he:/^[א-ת]+$/,fa:/^['آاءأؤئبپتثجچحخدذرزژسشصضطظعغفقکگلمنوهةی']+$/i,bn:/^['ঀঁংঃঅআইঈউঊঋঌএঐওঔকখগঘঙচছজঝঞটঠডঢণতথদধনপফবভমযরলশষসহ়ঽািীুূৃৄেৈোৌ্ৎৗড়ঢ়য়ৠৡৢৣৰৱ৲৳৴৵৶৷৸৹৺৻']+$/,"hi-IN":/^[\u0900-\u0961]+[\u0972-\u097F]*$/i,"si-LK":/^[\u0D80-\u0DFF]+$/};xx.alpha=kx;var Ex={"en-US":/^[0-9A-Z]+$/i,"az-AZ":/^[0-9A-VXYZÇƏĞİıÖŞÜ]+$/i,"bg-BG":/^[0-9А-Я]+$/i,"cs-CZ":/^[0-9A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,"da-DK":/^[0-9A-ZÆØÅ]+$/i,"de-DE":/^[0-9A-ZÄÖÜß]+$/i,"el-GR":/^[0-9Α-ω]+$/i,"es-ES":/^[0-9A-ZÁÉÍÑÓÚÜ]+$/i,"fi-FI":/^[0-9A-ZÅÄÖ]+$/i,"fr-FR":/^[0-9A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,"it-IT":/^[0-9A-ZÀÉÈÌÎÓÒÙ]+$/i,"ja-JP":/^[0-90-9ぁ-んァ-ヶヲ-゚一-龠ー・。、]+$/i,"hu-HU":/^[0-9A-ZÁÉÍÓÖŐÚÜŰ]+$/i,"nb-NO":/^[0-9A-ZÆØÅ]+$/i,"nl-NL":/^[0-9A-ZÁÉËÏÓÖÜÚ]+$/i,"nn-NO":/^[0-9A-ZÆØÅ]+$/i,"pl-PL":/^[0-9A-ZĄĆĘŚŁŃÓŻŹ]+$/i,"pt-PT":/^[0-9A-ZÃÁÀÂÄÇÉÊËÍÏÕÓÔÖÚÜ]+$/i,"ru-RU":/^[0-9А-ЯЁ]+$/i,"sl-SI":/^[0-9A-ZČĆĐŠŽ]+$/i,"sk-SK":/^[0-9A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,"sr-RS@latin":/^[0-9A-ZČĆŽŠĐ]+$/i,"sr-RS":/^[0-9А-ЯЂЈЉЊЋЏ]+$/i,"sv-SE":/^[0-9A-ZÅÄÖ]+$/i,"th-TH":/^[ก-๙\s]+$/i,"tr-TR":/^[0-9A-ZÇĞİıÖŞÜ]+$/i,"uk-UA":/^[0-9А-ЩЬЮЯЄIЇҐі]+$/i,"ko-KR":/^[0-9ㄱ-ㅎㅏ-ㅣ가-힣]*$/,"ku-IQ":/^[٠١٢٣٤٥٦٧٨٩0-9ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,"vi-VN":/^[0-9A-ZÀÁẠẢÃÂẦẤẬẨẪĂẰẮẶẲẴĐÈÉẸẺẼÊỀẾỆỂỄÌÍỊỈĨÒÓỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠÙÚỤỦŨƯỪỨỰỬỮỲÝỴỶỸ]+$/i,ar:/^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/,he:/^[0-9א-ת]+$/,fa:/^['0-9آاءأؤئبپتثجچحخدذرزژسشصضطظعغفقکگلمنوهةی۱۲۳۴۵۶۷۸۹۰']+$/i,bn:/^['ঀঁংঃঅআইঈউঊঋঌএঐওঔকখগঘঙচছজঝঞটঠডঢণতথদধনপফবভমযরলশষসহ়ঽািীুূৃৄেৈোৌ্ৎৗড়ঢ়য়ৠৡৢৣ০১২৩৪৫৬৭৮৯ৰৱ৲৳৴৵৶৷৸৹৺৻']+$/,"hi-IN":/^[\u0900-\u0963]+[\u0966-\u097F]*$/i,"si-LK":/^[0-9\u0D80-\u0DFF]+$/};xx.alphanumeric=Ex;var Sx={"en-US":".",ar:"٫"};xx.decimal=Sx;var Dx=["AU","GB","HK","IN","NZ","ZA","ZM"];xx.englishLocales=Dx;for(var Ix,Rx=0;Rx<Dx.length;Rx++)kx[Ix="en-".concat(Dx[Rx])]=kx["en-US"],Ex[Ix]=Ex["en-US"],Sx[Ix]=Sx["en-US"];var Cx=["AE","BH","DZ","EG","IQ","JO","KW","LB","LY","MA","QM","QA","SA","SD","SY","TN","YE"];xx.arabicLocales=Cx;for(var Ox,Tx=0;Tx<Cx.length;Tx++)kx[Ox="ar-".concat(Cx[Tx])]=kx.ar,Ex[Ox]=Ex.ar,Sx[Ox]=Sx.ar;var Px=["IR","AF"];xx.farsiLocales=Px;for(var Lx,Mx=0;Mx<Px.length;Mx++)Ex[Lx="fa-".concat(Px[Mx])]=Ex.fa,Sx[Lx]=Sx.ar;var Bx=["BD","IN"];xx.bengaliLocales=Bx;for(var jx,Ux=0;Ux<Bx.length;Ux++)kx[jx="bn-".concat(Bx[Ux])]=kx.bn,Ex[jx]=Ex.bn,Sx[jx]=Sx["en-US"];var Fx=["ar-EG","ar-LB","ar-LY"];xx.dotDecimal=Fx;var Nx=["bg-BG","cs-CZ","da-DK","de-DE","el-GR","en-ZM","es-ES","fr-CA","fr-FR","id-ID","it-IT","ku-IQ","hi-IN","hu-HU","nb-NO","nn-NO","nl-NL","pl-PL","pt-PT","ru-RU","si-LK","sl-SI","sr-RS@latin","sr-RS","sv-SE","tr-TR","uk-UA","vi-VN"];xx.commaDecimal=Nx;for(var $x=0;$x<Fx.length;$x++)Sx[Fx[$x]]=Sx["en-US"];for(var Gx=0;Gx<Nx.length;Gx++)Sx[Nx[Gx]]=",";kx["fr-CA"]=kx["fr-FR"],Ex["fr-CA"]=Ex["fr-FR"],kx["pt-BR"]=kx["pt-PT"],Ex["pt-BR"]=Ex["pt-PT"],Sx["pt-BR"]=Sx["pt-PT"],kx["pl-Pl"]=kx["pl-PL"],Ex["pl-Pl"]=Ex["pl-PL"],Sx["pl-Pl"]=Sx["pl-PL"],kx["fa-AF"]=kx.fa,Object.defineProperty(wx,"__esModule",{value:!0}),wx.default=function(e,t){(0,zx.default)(e),t=t||{};var n=new RegExp("^(?:[-+])?(?:[0-9]+)?(?:\\".concat(t.locale?Zx.decimal[t.locale]:".","[0-9]*)?(?:[eE][\\+\\-]?(?:[0-9]+))?$"));if(""===e||"."===e||","===e||"-"===e||"+"===e)return!1;var r=parseFloat(e.replace(",","."));return n.test(e)&&(!t.hasOwnProperty("min")||r>=t.min)&&(!t.hasOwnProperty("max")||r<=t.max)&&(!t.hasOwnProperty("lt")||r<t.lt)&&(!t.hasOwnProperty("gt")||r>t.gt)},wx.locales=void 0;var Hx,zx=(Hx=yx.exports)&&Hx.__esModule?Hx:{default:Hx},Zx=xx;var Vx=Object.keys(Zx.decimal);wx.locales=Vx,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e)?parseFloat(e):NaN};var n=function(e){return e&&e.__esModule?e:{default:e}}(wx);e.exports=t.default,e.exports.default=t.default}(_x,_x.exports);var Kx={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,n.default)(e),parseInt(e,t||10)};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);e.exports=t.default,e.exports.default=t.default}(Kx,Kx.exports);var qx={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,n.default)(e),t)return"1"===e||/^true$/i.test(e);return"0"!==e&&!/^false$/i.test(e)&&""!==e};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);e.exports=t.default,e.exports.default=t.default}(qx,qx.exports);var Wx={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,n.default)(e),e===t};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);e.exports=t.default,e.exports.default=t.default}(Wx,Wx.exports);var Yx={exports:{}},Qx={exports:{}};!function(e,t){function n(e){return n="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},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){"object"===n(e)&&null!==e?e="function"==typeof e.toString?e.toString():"[object Object]":(null==e||isNaN(e)&&!e.length)&&(e="");return String(e)},e.exports=t.default,e.exports.default=t.default}(Qx,Qx.exports);var Jx={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;for(var n in t)void 0===e[n]&&(e[n]=t[n]);return e},e.exports=t.default,e.exports.default=t.default}(Jx,Jx.exports),function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,a){if((0,n.default)(e),a=(0,i.default)(a,o),a.ignoreCase)return e.toLowerCase().split((0,r.default)(t).toLowerCase()).length>a.minOccurrences;return e.split((0,r.default)(t)).length>a.minOccurrences};var n=a(yx.exports),r=a(Qx.exports),i=a(Jx.exports);function a(e){return e&&e.__esModule?e:{default:e}}var o={ignoreCase:!1,minOccurrences:1};e.exports=t.default,e.exports.default=t.default}(Yx,Yx.exports);var Xx={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r){(0,n.default)(e),"[object RegExp]"!==Object.prototype.toString.call(t)&&(t=new RegExp(t,r));return!!e.match(t)};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);e.exports=t.default,e.exports.default=t.default}(Xx,Xx.exports);var ek={exports:{}},tk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var i,a;(0,n.default)(e),"object"===r(t)?(i=t.min||0,a=t.max):(i=arguments[1],a=arguments[2]);var o=encodeURI(e).split(/%..|./).length-1;return o>=i&&(void 0===a||o<=a)};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);function r(e){return r="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},r(e)}e.exports=t.default,e.exports.default=t.default}(tk,tk.exports);var nk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,n.default)(e),t=(0,r.default)(t,a),t.allow_trailing_dot&&"."===e[e.length-1]&&(e=e.substring(0,e.length-1));!0===t.allow_wildcard&&0===e.indexOf("*.")&&(e=e.substring(2));var i=e.split("."),o=i[i.length-1];if(t.require_tld){if(i.length<2)return!1;if(!t.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(o))return!1;if(/\s/.test(o))return!1}if(!t.allow_numeric_tld&&/^\d+$/.test(o))return!1;return i.every((function(e){return!(e.length>63&&!t.ignore_max_length)&&(!!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(e)&&(!/[\uff01-\uff5e]/.test(e)&&(!/^-|-$/.test(e)&&!(!t.allow_underscores&&/_/.test(e)))))}))};var n=i(yx.exports),r=i(Jx.exports);function i(e){return e&&e.__esModule?e:{default:e}}var a={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};e.exports=t.default,e.exports.default=t.default}(nk,nk.exports);var rk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if((0,n.default)(t),r=String(r),!r)return e(t,4)||e(t,6);if("4"===r)return a.test(t);if("6"===r)return s.test(t);return!1};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",i="(".concat(r,"[.]){3}").concat(r),a=new RegExp("^".concat(i,"$")),o="(?:[0-9a-fA-F]{1,4})",s=new RegExp("^("+"(?:".concat(o,":){7}(?:").concat(o,"|:)|")+"(?:".concat(o,":){6}(?:").concat(i,"|:").concat(o,"|:)|")+"(?:".concat(o,":){5}(?::").concat(i,"|(:").concat(o,"){1,2}|:)|")+"(?:".concat(o,":){4}(?:(:").concat(o,"){0,1}:").concat(i,"|(:").concat(o,"){1,3}|:)|")+"(?:".concat(o,":){3}(?:(:").concat(o,"){0,2}:").concat(i,"|(:").concat(o,"){1,4}|:)|")+"(?:".concat(o,":){2}(?:(:").concat(o,"){0,3}:").concat(i,"|(:").concat(o,"){1,5}|:)|")+"(?:".concat(o,":){1}(?:(:").concat(o,"){0,4}:").concat(i,"|(:").concat(o,"){1,6}|:)|")+"(?::((?::".concat(o,"){0,5}:").concat(i,"|(?::").concat(o,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");e.exports=t.default,e.exports.default=t.default}(rk,rk.exports),function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,n.default)(e),t=(0,r.default)(t,u),t.require_display_name||t.allow_display_name){var s=e.match(c);if(s){var v=s[1];if(e=e.replace(v,"").replace(/(^<|>$)/g,""),v.endsWith(" ")&&(v=v.slice(0,-1)),!function(e){var t=e.replace(/^"(.+)"$/,"$1");if(!t.trim())return!1;if(/[\.";<>]/.test(t)){if(t===e)return!1;if(!(t.split('"').length===t.split('\\"').length))return!1}return!0}(v))return!1}else if(t.require_display_name)return!1}if(!t.ignore_max_length&&e.length>m)return!1;var g=e.split("@"),A=g.pop(),b=A.toLowerCase();if(t.host_blacklist.includes(b))return!1;if(t.host_whitelist.length>0&&!t.host_whitelist.includes(b))return!1;var y=g.join("@");if(t.domain_specific_validation&&("gmail.com"===b||"googlemail.com"===b)){var _=(y=y.toLowerCase()).split("+")[0];if(!(0,i.default)(_.replace(/\./g,""),{min:6,max:30}))return!1;for(var w=_.split("."),x=0;x<w.length;x++)if(!l.test(w[x]))return!1}if(!(!1!==t.ignore_max_length||(0,i.default)(y,{max:64})&&(0,i.default)(A,{max:254})))return!1;if(!(0,a.default)(A,{require_tld:t.require_tld,ignore_max_length:t.ignore_max_length})){if(!t.allow_ip_domain)return!1;if(!(0,o.default)(A)){if(!A.startsWith("[")||!A.endsWith("]"))return!1;var k=A.slice(1,-1);if(0===k.length||!(0,o.default)(k))return!1}}if('"'===y[0])return y=y.slice(1,y.length-1),t.allow_utf8_local_part?h.test(y):f.test(y);for(var E=t.allow_utf8_local_part?p:d,S=y.split("."),D=0;D<S.length;D++)if(!E.test(S[D]))return!1;if(t.blacklisted_chars&&-1!==y.search(new RegExp("[".concat(t.blacklisted_chars,"]+"),"g")))return!1;return!0};var n=s(yx.exports),r=s(Jx.exports),i=s(tk.exports),a=s(nk.exports),o=s(rk.exports);function s(e){return e&&e.__esModule?e:{default:e}}var u={allow_display_name:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0,blacklisted_chars:"",ignore_max_length:!1,host_blacklist:[],host_whitelist:[]},c=/^([^\x00-\x1F\x7F-\x9F\cX]+)</i,d=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,l=/^[a-z\d]+$/,f=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,p=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,h=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i,m=254;e.exports=t.default,e.exports.default=t.default}(ek,ek.exports);var ik={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,n.default)(e),!e||/[\s<>]/.test(e))return!1;if(0===e.indexOf("mailto:"))return!1;if(t=(0,a.default)(t,u),t.validate_length&&e.length>=2083)return!1;if(!t.allow_fragments&&e.includes("#"))return!1;if(!t.allow_query_components&&(e.includes("?")||e.includes("&")))return!1;var o,d,f,p,h,m,v,g;if(v=e.split("#"),e=v.shift(),v=e.split("?"),e=v.shift(),v=e.split("://"),v.length>1){if(o=v.shift().toLowerCase(),t.require_valid_protocol&&-1===t.protocols.indexOf(o))return!1}else{if(t.require_protocol)return!1;if("//"===e.slice(0,2)){if(!t.allow_protocol_relative_urls)return!1;v[0]=e.slice(2)}}if(e=v.join("://"),""===e)return!1;if(v=e.split("/"),e=v.shift(),""===e&&!t.require_host)return!0;if(v=e.split("@"),v.length>1){if(t.disallow_auth)return!1;if(""===v[0])return!1;if((d=v.shift()).indexOf(":")>=0&&d.split(":").length>2)return!1;var A=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(d.split(":"),2),b=A[0],y=A[1];if(""===b&&""===y)return!1}p=v.join("@"),m=null,g=null;var _=p.match(c);_?(f="",g=_[1],m=_[2]||null):(f=(v=p.split(":")).shift(),v.length&&(m=v.join(":")));if(null!==m&&m.length>0){if(h=parseInt(m,10),!/^[0-9]+$/.test(m)||h<=0||h>65535)return!1}else if(t.require_port)return!1;if(t.host_whitelist)return l(f,t.host_whitelist);if(""===f&&!t.require_host)return!0;if(!((0,i.default)(f)||(0,r.default)(f,t)||g&&(0,i.default)(g,6)))return!1;if(f=f||g,t.host_blacklist&&l(f,t.host_blacklist))return!1;return!0};var n=o(yx.exports),r=o(nk.exports),i=o(rk.exports),a=o(Jx.exports);function o(e){return e&&e.__esModule?e:{default:e}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var u={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_port:!1,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1,allow_fragments:!0,allow_query_components:!0,validate_length:!0},c=/^\[([^\]]+)\](?::([0-9]+))?$/;function d(e){return"[object RegExp]"===Object.prototype.toString.call(e)}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];if(e===r||d(r)&&r.test(e))return!0}return!1}e.exports=t.default,e.exports.default=t.default}(ik,ik.exports);var ak={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,c){(0,n.default)(t),null!=c&&c.eui&&(c.eui=String(c.eui));if(null!=c&&c.no_colons||null!=c&&c.no_separators)return"48"===c.eui?i.test(t):"64"===c.eui?s.test(t):i.test(t)||s.test(t);if("48"===(null==c?void 0:c.eui))return r.test(t)||a.test(t);if("64"===(null==c?void 0:c.eui))return o.test(t)||u.test(t);return e(t,{eui:"48"})||e(t,{eui:"64"})};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r=/^(?:[0-9a-fA-F]{2}([-:\s]))([0-9a-fA-F]{2}\1){4}([0-9a-fA-F]{2})$/,i=/^([0-9a-fA-F]){12}$/,a=/^([0-9a-fA-F]{4}\.){2}([0-9a-fA-F]{4})$/,o=/^(?:[0-9a-fA-F]{2}([-:\s]))([0-9a-fA-F]{2}\1){6}([0-9a-fA-F]{2})$/,s=/^([0-9a-fA-F]){16}$/,u=/^([0-9a-fA-F]{4}\.){3}([0-9a-fA-F]{4})$/;e.exports=t.default,e.exports.default=t.default}(ak,ak.exports);var ok={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";(0,n.default)(e);var i=e.split("/");if(2!==i.length)return!1;if(!a.test(i[1]))return!1;if(i[1].length>1&&i[1].startsWith("0"))return!1;var u=(0,r.default)(i[0],t);if(!u)return!1;var c=null;switch(String(t)){case"4":c=o;break;case"6":c=s;break;default:c=(0,r.default)(i[0],"6")?s:o}return i[1]<=c&&i[1]>=0};var n=i(yx.exports),r=i(rk.exports);function i(e){return e&&e.__esModule?e:{default:e}}var a=/^\d{1,3}$/,o=32,s=128;e.exports=t.default,e.exports.default=t.default}(ok,ok.exports);var sk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){t="string"==typeof t?(0,n.default)({format:t},o):(0,n.default)(t,o);if("string"==typeof e&&(m=t.format,/(^(y{4}|y{2})[.\/-](m{1,2})[.\/-](d{1,2})$)|(^(m{1,2})[.\/-](d{1,2})[.\/-]((y{4}|y{2})$))|(^(d{1,2})[.\/-](m{1,2})[.\/-]((y{4}|y{2})$))/gi.test(m))){var a,s=t.delimiters.find((function(e){return-1!==t.format.indexOf(e)})),u=t.strictMode?s:t.delimiters.find((function(t){return-1!==e.indexOf(t)})),c=function(e,t){for(var n=[],r=Math.min(e.length,t.length),i=0;i<r;i++)n.push([e[i],t[i]]);return n}(e.split(u),t.format.toLowerCase().split(s)),d={},l=function(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=i(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw o}}}}(c);try{for(l.s();!(a=l.n()).done;){var f=r(a.value,2),p=f[0],h=f[1];if(p.length!==h.length)return!1;d[h.charAt(0)]=p}}catch(e){l.e(e)}finally{l.f()}return new Date("".concat(d.m,"/").concat(d.d,"/").concat(d.y)).getDate()===+d.d}var m;if(!t.strictMode)return"[object Date]"===Object.prototype.toString.call(e)&&isFinite(e);return!1};var n=function(e){return e&&e.__esModule?e:{default:e}}(Jx.exports);function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}(e,t)||i(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var o={format:"YYYY/MM/DD",delimiters:["/","-"],strictMode:!1};e.exports=t.default,e.exports.default=t.default}(sk,sk.exports);var uk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return t=(0,n.default)(t,r),"string"==typeof e&&i[t.hourFormat][t.mode].test(e)};var n=function(e){return e&&e.__esModule?e:{default:e}}(Jx.exports);var r={hourFormat:"hour24",mode:"default"},i={hour24:{default:/^([01]?[0-9]|2[0-3]):([0-5][0-9])$/,withSeconds:/^([01]?[0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$/},hour12:{default:/^(0?[1-9]|1[0-2]):([0-5][0-9]) (A|P)M$/,withSeconds:/^(0?[1-9]|1[0-2]):([0-5][0-9]):([0-5][0-9]) (A|P)M$/}};e.exports=t.default,e.exports.default=t.default}(uk,uk.exports);var ck={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r;if((0,n.default)(e),t.loose)return a.includes(e.toLowerCase());return i.includes(e)};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r={loose:!1},i=["true","false","1","0"],a=[].concat(i,["yes","no"]);e.exports=t.default,e.exports.default=t.default}(ck,ck.exports);var dk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,n.default)(e),"en_US_POSIX"===e||"ca_ES_VALENCIA"===e)return!0;return r.test(e)};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r=/^[A-Za-z]{2,4}([_-]([A-Za-z]{4}|[\d]{3}))?([_-]([A-Za-z]{2}|[\d]{3}))?$/;e.exports=t.default,e.exports.default=t.default}(dk,dk.exports);var lk={};Object.defineProperty(lk,"__esModule",{value:!0}),lk.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,fk.default)(e);var r=e,i=n.ignore;if(i)if(i instanceof RegExp)r=r.replace(i,"");else{if("string"!=typeof i)throw new Error("ignore should be instance of a String or RegExp");r=r.replace(new RegExp("[".concat(i.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),"]"),"g"),"")}if(t in pk.alpha)return pk.alpha[t].test(r);throw new Error("Invalid locale '".concat(t,"'"))},lk.locales=void 0;var fk=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports),pk=xx;var hk=Object.keys(pk.alpha);lk.locales=hk;var mk={};Object.defineProperty(mk,"__esModule",{value:!0}),mk.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,vk.default)(e);var r=e,i=n.ignore;if(i)if(i instanceof RegExp)r=r.replace(i,"");else{if("string"!=typeof i)throw new Error("ignore should be instance of a String or RegExp");r=r.replace(new RegExp("[".concat(i.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),"]"),"g"),"")}if(t in gk.alphanumeric)return gk.alphanumeric[t].test(r);throw new Error("Invalid locale '".concat(t,"'"))},mk.locales=void 0;var vk=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports),gk=xx;var Ak=Object.keys(gk.alphanumeric);mk.locales=Ak;var bk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,n.default)(e),t&&t.no_symbols)return i.test(e);return new RegExp("^[+-]?([0-9]*[".concat((t||{}).locale?r.decimal[t.locale]:".","])?[0-9]+$")).test(e)};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports),r=xx;var i=/^[0-9]+$/;e.exports=t.default,e.exports.default=t.default}(bk,bk.exports);var yk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,n.default)(e);var i=e.replace(/\s/g,"").toUpperCase();return t.toUpperCase()in r&&r[t].test(i)};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r={AM:/^[A-Z]{2}\d{7}$/,AR:/^[A-Z]{3}\d{6}$/,AT:/^[A-Z]\d{7}$/,AU:/^[A-Z]\d{7}$/,AZ:/^[A-Z]{2,3}\d{7,8}$/,BE:/^[A-Z]{2}\d{6}$/,BG:/^\d{9}$/,BR:/^[A-Z]{2}\d{6}$/,BY:/^[A-Z]{2}\d{7}$/,CA:/^[A-Z]{2}\d{6}$/,CH:/^[A-Z]\d{7}$/,CN:/^G\d{8}$|^E(?![IO])[A-Z0-9]\d{7}$/,CY:/^[A-Z](\d{6}|\d{8})$/,CZ:/^\d{8}$/,DE:/^[CFGHJKLMNPRTVWXYZ0-9]{9}$/,DK:/^\d{9}$/,DZ:/^\d{9}$/,EE:/^([A-Z]\d{7}|[A-Z]{2}\d{7})$/,ES:/^[A-Z0-9]{2}([A-Z0-9]?)\d{6}$/,FI:/^[A-Z]{2}\d{7}$/,FR:/^\d{2}[A-Z]{2}\d{5}$/,GB:/^\d{9}$/,GR:/^[A-Z]{2}\d{7}$/,HR:/^\d{9}$/,HU:/^[A-Z]{2}(\d{6}|\d{7})$/,IE:/^[A-Z0-9]{2}\d{7}$/,IN:/^[A-Z]{1}-?\d{7}$/,ID:/^[A-C]\d{7}$/,IR:/^[A-Z]\d{8}$/,IS:/^(A)\d{7}$/,IT:/^[A-Z0-9]{2}\d{7}$/,JM:/^[Aa]\d{7}$/,JP:/^[A-Z]{2}\d{7}$/,KR:/^[MS]\d{8}$/,KZ:/^[a-zA-Z]\d{7}$/,LI:/^[a-zA-Z]\d{5}$/,LT:/^[A-Z0-9]{8}$/,LU:/^[A-Z0-9]{8}$/,LV:/^[A-Z0-9]{2}\d{7}$/,LY:/^[A-Z0-9]{8}$/,MT:/^\d{7}$/,MZ:/^([A-Z]{2}\d{7})|(\d{2}[A-Z]{2}\d{5})$/,MY:/^[AHK]\d{8}$/,MX:/^\d{10,11}$/,NL:/^[A-Z]{2}[A-Z0-9]{6}\d$/,NZ:/^([Ll]([Aa]|[Dd]|[Ff]|[Hh])|[Ee]([Aa]|[Pp])|[Nn])\d{6}$/,PH:/^([A-Z](\d{6}|\d{7}[A-Z]))|([A-Z]{2}(\d{6}|\d{7}))$/,PK:/^[A-Z]{2}\d{7}$/,PL:/^[A-Z]{2}\d{7}$/,PT:/^[A-Z]\d{6}$/,RO:/^\d{8,9}$/,RU:/^\d{9}$/,SE:/^\d{8}$/,SL:/^(P)[A-Z]\d{7}$/,SK:/^[0-9A-Z]\d{7}$/,TH:/^[A-Z]{1,2}\d{6,7}$/,TR:/^[A-Z]\d{8}$/,UA:/^[A-Z]{2}\d{6}$/,US:/^\d{9}$/};e.exports=t.default,e.exports.default=t.default}(yk,yk.exports);var _k={exports:{}},wk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,n.default)(e),t=t||{};var a=t.hasOwnProperty("allow_leading_zeroes")&&!t.allow_leading_zeroes?r:i,o=!t.hasOwnProperty("min")||e>=t.min,s=!t.hasOwnProperty("max")||e<=t.max,u=!t.hasOwnProperty("lt")||e<t.lt,c=!t.hasOwnProperty("gt")||e>t.gt;return a.test(e)&&o&&s&&u&&c};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r=/^(?:[-+]?(?:0|[1-9][0-9]*))$/,i=/^[-+]?[0-9]+$/;e.exports=t.default,e.exports.default=t.default}(wk,wk.exports),function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e,{min:0,max:65535})};var n=function(e){return e&&e.__esModule?e:{default:e}}(wk.exports);e.exports=t.default,e.exports.default=t.default}(_k,_k.exports);var xk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e),e===e.toLowerCase()};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);e.exports=t.default,e.exports.default=t.default}(xk,xk.exports);var kk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e),e===e.toUpperCase()};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);e.exports=t.default,e.exports.default=t.default}(kk,kk.exports);var Ek={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,n.default)(e),t=t||{};var a=r;t.allow_hyphens&&(a=i);if(!a.test(e))return!1;e=e.replace(/-/g,"");for(var o=0,s=2,u=0;u<14;u++){var c=e.substring(14-u-1,14-u),d=parseInt(c,10)*s;o+=d>=10?d%10+1:d,1===s?s+=1:s-=1}if((10-o%10)%10!==parseInt(e.substring(14,15),10))return!1;return!0};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r=/^[0-9]{15}$/,i=/^\d{2}-\d{6}-\d{6}-\d{1}$/;e.exports=t.default,e.exports.default=t.default}(Ek,Ek.exports);var Sk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e),r.test(e)};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r=/^[\x00-\x7F]+$/;e.exports=t.default,e.exports.default=t.default}(Sk,Sk.exports);var Dk={};Object.defineProperty(Dk,"__esModule",{value:!0}),Dk.default=function(e){return(0,Ik.default)(e),Rk.test(e)},Dk.fullWidth=void 0;var Ik=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var Rk=/[^\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;Dk.fullWidth=Rk;var Ck={};Object.defineProperty(Ck,"__esModule",{value:!0}),Ck.default=function(e){return(0,Ok.default)(e),Tk.test(e)},Ck.halfWidth=void 0;var Ok=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var Tk=/[\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;Ck.halfWidth=Tk;var Pk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e),r.fullWidth.test(e)&&i.halfWidth.test(e)};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports),r=Dk,i=Ck;e.exports=t.default,e.exports.default=t.default}(Pk,Pk.exports);var Lk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e),r.test(e)};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r=/[^\x00-\x7F]/;e.exports=t.default,e.exports.default=t.default}(Lk,Lk.exports);var Mk={exports:{}},Bk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=e.join("");return new RegExp(n,t)},e.exports=t.default,e.exports.default=t.default}(Bk,Bk.exports),function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e),i.test(e)};var n=r(yx.exports);function r(e){return e&&e.__esModule?e:{default:e}}var i=(0,r(Bk.exports).default)(["^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)","(?:-((?:0|[1-9]\\d*|\\d*[a-z-][0-9a-z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-z-][0-9a-z-]*))*))","?(?:\\+([0-9a-z-]+(?:\\.[0-9a-z-]+)*))?$"],"i");e.exports=t.default,e.exports.default=t.default}(Mk,Mk.exports);var jk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e),r.test(e)};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r=/[\uD800-\uDBFF][\uDC00-\uDFFF]/;e.exports=t.default,e.exports.default=t.default}(jk,jk.exports);var Uk={exports:{}},Fk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(e,t){return e.some((function(e){return t===e}))};t.default=n,e.exports=t.default,e.exports.default=t.default}(Fk,Fk.exports),function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),t=(0,n.default)(t,s),t.locale in a.decimal)return!(0,i.default)(u,e.replace(/ /g,""))&&function(e){var t=new RegExp("^[-+]?([0-9]+)?(\\".concat(a.decimal[e.locale],"[0-9]{").concat(e.decimal_digits,"})").concat(e.force_decimal?"":"?","$"));return t}(t).test(e);throw new Error("Invalid locale '".concat(t.locale,"'"))};var n=o(Jx.exports),r=o(yx.exports),i=o(Fk.exports),a=xx;function o(e){return e&&e.__esModule?e:{default:e}}var s={force_decimal:!1,decimal_digits:"1,",locale:"en-US"},u=["","-","+"];e.exports=t.default,e.exports.default=t.default}(Uk,Uk.exports);var Nk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e),r.test(e)};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r=/^(0x|0h)?[0-9A-F]+$/i;e.exports=t.default,e.exports.default=t.default}(Nk,Nk.exports);var $k={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e),r.test(e)};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r=/^(0o)?[0-7]+$/i;e.exports=t.default,e.exports.default=t.default}($k,$k.exports);var Gk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,n.default)(e),(0,r.default)(e)%parseInt(t,10)==0};var n=i(yx.exports),r=i(_x.exports);function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default}(Gk,Gk.exports);var Hk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e),r.test(e)};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r=/^#?([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i;e.exports=t.default,e.exports.default=t.default}(Hk,Hk.exports);var zk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if((0,n.default)(e),!t)return r.test(e)||i.test(e);return r.test(e)||i.test(e)||a.test(e)||o.test(e)};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r=/^rgb\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){2}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\)$/,i=/^rgba\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){3}(0?\.\d|1(\.0)?|0(\.0)?)\)$/,a=/^rgb\((([0-9]%|[1-9][0-9]%|100%),){2}([0-9]%|[1-9][0-9]%|100%)\)$/,o=/^rgba\((([0-9]%|[1-9][0-9]%|100%),){3}(0?\.\d|1(\.0)?|0(\.0)?)\)$/;e.exports=t.default,e.exports.default=t.default}(zk,zk.exports);var Zk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,n.default)(e);var t=e.replace(/\s+/g," ").replace(/\s?(hsla?\(|\)|,)\s?/gi,"$1");if(-1!==t.indexOf(","))return r.test(t);return i.test(t)};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r=/^hsla?\(((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?))(deg|grad|rad|turn)?(,(\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%){2}(,((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%?))?\)$/i,i=/^hsla?\(((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?))(deg|grad|rad|turn)?(\s(\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%){2}\s?(\/\s((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%?)\s?)?\)$/i;e.exports=t.default,e.exports.default=t.default}(Zk,Zk.exports);var Vk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e),r.test(e)};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r=/^[A-Z]{2}[0-9A-Z]{3}\d{2}\d{5}$/;e.exports=t.default,e.exports.default=t.default}(Vk,Vk.exports);var Kk={};Object.defineProperty(Kk,"__esModule",{value:!0}),Kk.default=function(e){return(0,qk.default)(e),function(e){var t=e.replace(/[\s\-]+/gi,"").toUpperCase(),n=t.slice(0,2).toUpperCase();return n in Wk&&Wk[n].test(t)}(e)&&function(e){var t=e.replace(/[^A-Z0-9]+/gi,"").toUpperCase();return 1===(t.slice(4)+t.slice(0,4)).replace(/[A-Z]/g,(function(e){return e.charCodeAt(0)-55})).match(/\d{1,7}/g).reduce((function(e,t){return Number(e+t)%97}),"")}(e)},Kk.locales=void 0;var qk=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var Wk={AD:/^(AD[0-9]{2})\d{8}[A-Z0-9]{12}$/,AE:/^(AE[0-9]{2})\d{3}\d{16}$/,AL:/^(AL[0-9]{2})\d{8}[A-Z0-9]{16}$/,AT:/^(AT[0-9]{2})\d{16}$/,AZ:/^(AZ[0-9]{2})[A-Z0-9]{4}\d{20}$/,BA:/^(BA[0-9]{2})\d{16}$/,BE:/^(BE[0-9]{2})\d{12}$/,BG:/^(BG[0-9]{2})[A-Z]{4}\d{6}[A-Z0-9]{8}$/,BH:/^(BH[0-9]{2})[A-Z]{4}[A-Z0-9]{14}$/,BR:/^(BR[0-9]{2})\d{23}[A-Z]{1}[A-Z0-9]{1}$/,BY:/^(BY[0-9]{2})[A-Z0-9]{4}\d{20}$/,CH:/^(CH[0-9]{2})\d{5}[A-Z0-9]{12}$/,CR:/^(CR[0-9]{2})\d{18}$/,CY:/^(CY[0-9]{2})\d{8}[A-Z0-9]{16}$/,CZ:/^(CZ[0-9]{2})\d{20}$/,DE:/^(DE[0-9]{2})\d{18}$/,DK:/^(DK[0-9]{2})\d{14}$/,DO:/^(DO[0-9]{2})[A-Z]{4}\d{20}$/,EE:/^(EE[0-9]{2})\d{16}$/,EG:/^(EG[0-9]{2})\d{25}$/,ES:/^(ES[0-9]{2})\d{20}$/,FI:/^(FI[0-9]{2})\d{14}$/,FO:/^(FO[0-9]{2})\d{14}$/,FR:/^(FR[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/,GB:/^(GB[0-9]{2})[A-Z]{4}\d{14}$/,GE:/^(GE[0-9]{2})[A-Z0-9]{2}\d{16}$/,GI:/^(GI[0-9]{2})[A-Z]{4}[A-Z0-9]{15}$/,GL:/^(GL[0-9]{2})\d{14}$/,GR:/^(GR[0-9]{2})\d{7}[A-Z0-9]{16}$/,GT:/^(GT[0-9]{2})[A-Z0-9]{4}[A-Z0-9]{20}$/,HR:/^(HR[0-9]{2})\d{17}$/,HU:/^(HU[0-9]{2})\d{24}$/,IE:/^(IE[0-9]{2})[A-Z0-9]{4}\d{14}$/,IL:/^(IL[0-9]{2})\d{19}$/,IQ:/^(IQ[0-9]{2})[A-Z]{4}\d{15}$/,IR:/^(IR[0-9]{2})0\d{2}0\d{18}$/,IS:/^(IS[0-9]{2})\d{22}$/,IT:/^(IT[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/,JO:/^(JO[0-9]{2})[A-Z]{4}\d{22}$/,KW:/^(KW[0-9]{2})[A-Z]{4}[A-Z0-9]{22}$/,KZ:/^(KZ[0-9]{2})\d{3}[A-Z0-9]{13}$/,LB:/^(LB[0-9]{2})\d{4}[A-Z0-9]{20}$/,LC:/^(LC[0-9]{2})[A-Z]{4}[A-Z0-9]{24}$/,LI:/^(LI[0-9]{2})\d{5}[A-Z0-9]{12}$/,LT:/^(LT[0-9]{2})\d{16}$/,LU:/^(LU[0-9]{2})\d{3}[A-Z0-9]{13}$/,LV:/^(LV[0-9]{2})[A-Z]{4}[A-Z0-9]{13}$/,MC:/^(MC[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/,MD:/^(MD[0-9]{2})[A-Z0-9]{20}$/,ME:/^(ME[0-9]{2})\d{18}$/,MK:/^(MK[0-9]{2})\d{3}[A-Z0-9]{10}\d{2}$/,MR:/^(MR[0-9]{2})\d{23}$/,MT:/^(MT[0-9]{2})[A-Z]{4}\d{5}[A-Z0-9]{18}$/,MU:/^(MU[0-9]{2})[A-Z]{4}\d{19}[A-Z]{3}$/,MZ:/^(MZ[0-9]{2})\d{21}$/,NL:/^(NL[0-9]{2})[A-Z]{4}\d{10}$/,NO:/^(NO[0-9]{2})\d{11}$/,PK:/^(PK[0-9]{2})[A-Z0-9]{4}\d{16}$/,PL:/^(PL[0-9]{2})\d{24}$/,PS:/^(PS[0-9]{2})[A-Z0-9]{4}\d{21}$/,PT:/^(PT[0-9]{2})\d{21}$/,QA:/^(QA[0-9]{2})[A-Z]{4}[A-Z0-9]{21}$/,RO:/^(RO[0-9]{2})[A-Z]{4}[A-Z0-9]{16}$/,RS:/^(RS[0-9]{2})\d{18}$/,SA:/^(SA[0-9]{2})\d{2}[A-Z0-9]{18}$/,SC:/^(SC[0-9]{2})[A-Z]{4}\d{20}[A-Z]{3}$/,SE:/^(SE[0-9]{2})\d{20}$/,SI:/^(SI[0-9]{2})\d{15}$/,SK:/^(SK[0-9]{2})\d{20}$/,SM:/^(SM[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/,SV:/^(SV[0-9]{2})[A-Z0-9]{4}\d{20}$/,TL:/^(TL[0-9]{2})\d{19}$/,TN:/^(TN[0-9]{2})\d{20}$/,TR:/^(TR[0-9]{2})\d{5}[A-Z0-9]{17}$/,UA:/^(UA[0-9]{2})\d{6}[A-Z0-9]{19}$/,VA:/^(VA[0-9]{2})\d{18}$/,VG:/^(VG[0-9]{2})[A-Z0-9]{4}\d{16}$/,XK:/^(XK[0-9]{2})\d{16}$/};var Yk=Object.keys(Wk);Kk.locales=Yk;var Qk={exports:{}},Jk={};Object.defineProperty(Jk,"__esModule",{value:!0}),Jk.default=function(e){return(0,Xk.default)(e),eE.has(e.toUpperCase())},Jk.CountryCodes=void 0;var Xk=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var eE=new Set(["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]);var tE=eE;Jk.CountryCodes=tE,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,n.default)(e);var t=e.slice(4,6).toUpperCase();if(!r.CountryCodes.has(t)&&"XK"!==t)return!1;return i.test(e)};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports),r=Jk;var i=/^[A-Za-z]{6}[A-Za-z0-9]{2}([A-Za-z0-9]{3})?$/;e.exports=t.default,e.exports.default=t.default}(Qk,Qk.exports);var nE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e),r.test(e)};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r=/^[a-f0-9]{32}$/;e.exports=t.default,e.exports.default=t.default}(nE,nE.exports);var rE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,n.default)(e),new RegExp("^[a-fA-F0-9]{".concat(r[t],"}$")).test(e)};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r={md5:32,md4:32,sha1:40,sha256:64,sha384:96,sha512:128,ripemd128:32,ripemd160:40,tiger128:32,tiger160:40,tiger192:48,crc32:8,crc32b:8};e.exports=t.default,e.exports.default=t.default}(rE,rE.exports);var iE={exports:{}},aE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,n.default)(e),t=(0,r.default)(t,s);var i=e.length;if(t.urlSafe)return o.test(e);if(i%4!=0||a.test(e))return!1;var u=e.indexOf("=");return-1===u||u===i-1||u===i-2&&"="===e[i-1]};var n=i(yx.exports),r=i(Jx.exports);function i(e){return e&&e.__esModule?e:{default:e}}var a=/[^A-Z0-9+\/=]/i,o=/^[A-Z0-9_\-]*$/i,s={urlSafe:!1};e.exports=t.default,e.exports.default=t.default}(aE,aE.exports),function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,n.default)(e);var t=e.split("."),i=t.length;if(i>3||i<2)return!1;return t.reduce((function(e,t){return e&&(0,r.default)(t,{urlSafe:!0})}),!0)};var n=i(yx.exports),r=i(aE.exports);function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default}(iE,iE.exports);var oE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,n.default)(e);try{t=(0,r.default)(t,o);var i=[];t.allow_primitives&&(i=[null,!1,!0]);var s=JSON.parse(e);return i.includes(s)||!!s&&"object"===a(s)}catch(e){}return!1};var n=i(yx.exports),r=i(Jx.exports);function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return a="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},a(e)}var o={allow_primitives:!1};e.exports=t.default,e.exports.default=t.default}(oE,oE.exports);var sE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,n.default)(e),t=(0,r.default)(t,a),0===(t.ignore_whitespace?e.trim().length:e.length)};var n=i(yx.exports),r=i(Jx.exports);function i(e){return e&&e.__esModule?e:{default:e}}var a={ignore_whitespace:!1};e.exports=t.default,e.exports.default=t.default}(sE,sE.exports);var uE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var i,a;(0,n.default)(e),"object"===r(t)?(i=t.min||0,a=t.max):(i=arguments[1]||0,a=arguments[2]);var o=e.match(/(\uFE0F|\uFE0E)/g)||[],s=e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g)||[],u=e.length-o.length-s.length;return u>=i&&(void 0===a||u<=a)};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);function r(e){return r="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},r(e)}e.exports=t.default,e.exports.default=t.default}(uE,uE.exports);var cE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,n.default)(e);var i=r[[void 0,null].includes(t)?"all":t];return!!i&&i.test(e)};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r={1:/^[0-9A-F]{8}-[0-9A-F]{4}-1[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,2:/^[0-9A-F]{8}-[0-9A-F]{4}-2[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,3:/^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,4:/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,5:/^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,all:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i};e.exports=t.default,e.exports.default=t.default}(cE,cE.exports);var dE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e),(0,r.default)(e)&&24===e.length};var n=i(yx.exports),r=i(Nk.exports);function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default}(dE,dE.exports);var lE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r=(null==t?void 0:t.comparisonDate)||t||Date().toString(),i=(0,n.default)(r),a=(0,n.default)(e);return!!(a&&i&&a>i)};var n=function(e){return e&&e.__esModule?e:{default:e}}(bx.exports);e.exports=t.default,e.exports.default=t.default}(lE,lE.exports);var fE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:String(new Date);(0,n.default)(e);var i=(0,r.default)(t),a=(0,r.default)(e);return!!(a&&i&&a<i)};var n=i(yx.exports),r=i(bx.exports);function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default}(fE,fE.exports);var pE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var i;if((0,n.default)(e),"[object Array]"===Object.prototype.toString.call(t)){var o=[];for(i in t)({}).hasOwnProperty.call(t,i)&&(o[i]=(0,r.default)(t[i]));return o.indexOf(e)>=0}if("object"===a(t))return t.hasOwnProperty(e);if(t&&"function"==typeof t.indexOf)return t.indexOf(e)>=0;return!1};var n=i(yx.exports),r=i(Qx.exports);function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return a="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},a(e)}e.exports=t.default,e.exports.default=t.default}(pE,pE.exports);var hE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,n.default)(e);for(var t,r,i,a=e.replace(/[- ]+/g,""),o=0,s=a.length-1;s>=0;s--)t=a.substring(s,s+1),r=parseInt(t,10),o+=i&&(r*=2)>=10?r%10+1:r,i=!i;return!(o%10!=0||!a)};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);e.exports=t.default,e.exports.default=t.default}(hE,hE.exports);var mE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,n.default)(e);var i=t.provider,s=e.replace(/[- ]+/g,"");if(i&&i.toLowerCase()in a){if(!a[i.toLowerCase()].test(s))return!1}else{if(i&&!(i.toLowerCase()in a))throw new Error("".concat(i," is not a valid credit card provider."));if(!o.test(s))return!1}return(0,r.default)(e)};var n=i(yx.exports),r=i(hE.exports);function i(e){return e&&e.__esModule?e:{default:e}}var a={amex:/^3[47][0-9]{13}$/,dinersclub:/^3(?:0[0-5]|[68][0-9])[0-9]{11}$/,discover:/^6(?:011|5[0-9][0-9])[0-9]{12,15}$/,jcb:/^(?:2131|1800|35\d{3})\d{11}$/,mastercard:/^5[1-5][0-9]{2}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}$/,unionpay:/^(6[27][0-9]{14}|^(81[0-9]{14,17}))$/,visa:/^(?:4[0-9]{12})(?:[0-9]{3,6})?$/},o=/^(?:4[0-9]{12}(?:[0-9]{3,6})?|5[1-5][0-9]{14}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}|6(?:011|5[0-9][0-9])[0-9]{12,15}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11}|6[27][0-9]{14}|^(81[0-9]{14,17}))$/;e.exports=t.default,e.exports.default=t.default}(mE,mE.exports);var vE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,n.default)(e),t in a)return a[t](e);if("any"===t){for(var r in a){if(a.hasOwnProperty(r))if((0,a[r])(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))};var n=i(yx.exports),r=i(wk.exports);function i(e){return e&&e.__esModule?e:{default:e}}var a={PL:function(e){(0,n.default)(e);var t={1:1,2:3,3:7,4:9,5:1,6:3,7:7,8:9,9:1,10:3,11:0};if(null!=e&&11===e.length&&(0,r.default)(e,{allow_leading_zeroes:!0})){var i=e.split("").slice(0,-1).reduce((function(e,n,r){return e+Number(n)*t[r+1]}),0),a=i%10,o=Number(e.charAt(e.length-1));if(0===a&&0===o||o===10-a)return!0}return!1},ES:function(e){(0,n.default)(e);var t={X:0,Y:1,Z:2},r=e.trim().toUpperCase();if(!/^[0-9X-Z][0-9]{7}[TRWAGMYFPDXBNJZSQVHLCKE]$/.test(r))return!1;var i=r.slice(0,-1).replace(/[X,Y,Z]/g,(function(e){return t[e]}));return r.endsWith(["T","R","W","A","G","M","Y","F","P","D","X","B","N","J","Z","S","Q","V","H","L","C","K","E"][i%23])},FI:function(e){if((0,n.default)(e),11!==e.length)return!1;if(!e.match(/^\d{6}[\-A\+]\d{3}[0-9ABCDEFHJKLMNPRSTUVWXY]{1}$/))return!1;return"0123456789ABCDEFHJKLMNPRSTUVWXY"[(1e3*parseInt(e.slice(0,6),10)+parseInt(e.slice(7,10),10))%31]===e.slice(10,11)},IN:function(e){var t=[[0,1,2,3,4,5,6,7,8,9],[1,2,3,4,0,6,7,8,9,5],[2,3,4,0,1,7,8,9,5,6],[3,4,0,1,2,8,9,5,6,7],[4,0,1,2,3,9,5,6,7,8],[5,9,8,7,6,0,4,3,2,1],[6,5,9,8,7,1,0,4,3,2],[7,6,5,9,8,2,1,0,4,3],[8,7,6,5,9,3,2,1,0,4],[9,8,7,6,5,4,3,2,1,0]],n=[[0,1,2,3,4,5,6,7,8,9],[1,5,7,6,2,8,3,0,9,4],[5,8,0,3,7,9,6,1,4,2],[8,9,1,6,0,4,3,5,2,7],[9,4,5,3,1,2,6,8,7,0],[4,2,8,6,5,7,3,9,0,1],[2,7,9,3,8,0,6,4,1,5],[7,0,4,6,9,1,3,2,5,8]],r=e.trim();if(!/^[1-9]\d{3}\s?\d{4}\s?\d{4}$/.test(r))return!1;var i=0;return r.replace(/\s/g,"").split("").map(Number).reverse().forEach((function(e,r){i=t[i][n[r%8][e]]})),0===i},IR:function(e){if(!e.match(/^\d{10}$/))return!1;if(e="0000".concat(e).slice(e.length-6),0===parseInt(e.slice(3,9),10))return!1;for(var t=parseInt(e.slice(9,10),10),n=0,r=0;r<9;r++)n+=parseInt(e.slice(r,r+1),10)*(10-r);return(n%=11)<2&&t===n||n>=2&&t===11-n},IT:function(e){return 9===e.length&&("CA00000AA"!==e&&e.search(/C[A-Z][0-9]{5}[A-Z]{2}/i)>-1)},NO:function(e){var t=e.trim();if(isNaN(Number(t)))return!1;if(11!==t.length)return!1;if("00000000000"===t)return!1;var n=t.split("").map(Number),r=(11-(3*n[0]+7*n[1]+6*n[2]+1*n[3]+8*n[4]+9*n[5]+4*n[6]+5*n[7]+2*n[8])%11)%11,i=(11-(5*n[0]+4*n[1]+3*n[2]+2*n[3]+7*n[4]+6*n[5]+5*n[6]+4*n[7]+3*n[8]+2*r)%11)%11;return r===n[9]&&i===n[10]},TH:function(e){if(!e.match(/^[1-8]\d{12}$/))return!1;for(var t=0,n=0;n<12;n++)t+=parseInt(e[n],10)*(13-n);return e[12]===((11-t%11)%10).toString()},LK:function(e){return!(10!==e.length||!/^[1-9]\d{8}[vx]$/i.test(e))||!(12!==e.length||!/^[1-9]\d{11}$/i.test(e))},"he-IL":function(e){var t=e.trim();if(!/^\d{9}$/.test(t))return!1;for(var n,r=t,i=0,a=0;a<r.length;a++)i+=(n=Number(r[a])*(a%2+1))>9?n-9:n;return i%10==0},"ar-LY":function(e){var t=e.trim();return!!/^(1|2)\d{11}$/.test(t)},"ar-TN":function(e){var t=e.trim();return!!/^\d{8}$/.test(t)},"zh-CN":function(e){var t,n=["11","12","13","14","15","21","22","23","31","32","33","34","35","36","37","41","42","43","44","45","46","50","51","52","53","54","61","62","63","64","65","71","81","82","91"],r=["7","9","10","5","8","4","2","1","6","3","7","9","10","5","8","4","2"],i=["1","0","X","9","8","7","6","5","4","3","2"],a=function(e){return n.includes(e)},o=function(e){var t=parseInt(e.substring(0,4),10),n=parseInt(e.substring(4,6),10),r=parseInt(e.substring(6),10),i=new Date(t,n-1,r);return!(i>new Date)&&(i.getFullYear()===t&&i.getMonth()===n-1&&i.getDate()===r)},s=function(e){return function(e){for(var t=e.substring(0,17),n=0,a=0;a<17;a++)n+=parseInt(t.charAt(a),10)*parseInt(r[a],10);return i[n%11]}(e)===e.charAt(17).toUpperCase()};return!!/^\d{15}|(\d{17}(\d|x|X))$/.test(t=e)&&(15===t.length?function(e){var t=/^[1-9]\d{7}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\d{3}$/.test(e);if(!t)return!1;var n=e.substring(0,2);if(!(t=a(n)))return!1;var r="19".concat(e.substring(6,12));return!!(t=o(r))}(t):function(e){var t=/^[1-9]\d{5}[1-9]\d{3}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\d{3}(\d|x|X)$/.test(e);if(!t)return!1;var n=e.substring(0,2);if(!(t=a(n)))return!1;var r=e.substring(6,14);return!!(t=o(r))&&s(e)}(t))},"zh-HK":function(e){var t=/^[0-9]$/;if(e=(e=e.trim()).toUpperCase(),!/^[A-Z]{1,2}[0-9]{6}((\([0-9A]\))|(\[[0-9A]\])|([0-9A]))$/.test(e))return!1;8===(e=e.replace(/\[|\]|\(|\)/g,"")).length&&(e="3".concat(e));for(var n=0,r=0;r<=7;r++){n+=(t.test(e[r])?e[r]:(e[r].charCodeAt(0)-55)%11)*(9-r)}return(0===(n%=11)?"0":1===n?"A":String(11-n))===e[e.length-1]},"zh-TW":function(e){var t={A:10,B:11,C:12,D:13,E:14,F:15,G:16,H:17,I:34,J:18,K:19,L:20,M:21,N:22,O:35,P:23,Q:24,R:25,S:26,T:27,U:28,V:29,W:32,X:30,Y:31,Z:33},n=e.trim().toUpperCase();return!!/^[A-Z][0-9]{9}$/.test(n)&&Array.from(n).reduce((function(e,n,r){if(0===r){var i=t[n];return i%10*9+Math.floor(i/10)}return 9===r?(10-e%10-Number(n))%10==0:e+Number(n)*(9-r)}),0)}};e.exports=t.default,e.exports.default=t.default}(vE,vE.exports);var gE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,n.default)(e);var t=Number(e.slice(-1));return a.test(e)&&t===(o=e,s=o.slice(0,-1).split("").map((function(e,t){return Number(e)*function(e,t){return e===r||e===i?t%2==0?3:1:t%2==0?1:3}(o.length,t)})).reduce((function(e,t){return e+t}),0),u=10-s%10,u<10?u:0);var o,s,u};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r=8,i=14,a=/^(\d{8}|\d{13}|\d{14})$/;e.exports=t.default,e.exports.default=t.default}(gE,gE.exports);var AE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,n.default)(e),!r.test(e))return!1;for(var t=!0,i=0,a=e.length-2;a>=0;a--)if(e[a]>="A"&&e[a]<="Z")for(var o=e[a].charCodeAt(0)-55,s=0,u=[o%10,Math.trunc(o/10)];s<u.length;s++){var c=u[s];i+=t?c>=5?1+2*(c-5):2*c:c,t=!t}else{var d=e[a].charCodeAt(0)-"0".charCodeAt(0);i+=t?d>=5?1+2*(d-5):2*d:d,t=!t}var l=10*Math.trunc((i+9)/10)-i;return+e[e.length-1]===l};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r=/^[A-Z]{2}[0-9A-Z]{9}[0-9]$/;e.exports=t.default,e.exports.default=t.default}(AE,AE.exports);var bE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,o){(0,n.default)(t);var s=String((null==o?void 0:o.version)||o);if(!(null!=o&&o.version||o))return e(t,{version:10})||e(t,{version:13});var u=t.replace(/[\s-]+/g,""),c=0;if("10"===s){if(!r.test(u))return!1;for(var d=0;d<s-1;d++)c+=(d+1)*u.charAt(d);if("X"===u.charAt(9)?c+=100:c+=10*u.charAt(9),c%11==0)return!0}else if("13"===s){if(!i.test(u))return!1;for(var l=0;l<12;l++)c+=a[l%2]*u.charAt(l);if(u.charAt(12)-(10-c%10)%10==0)return!0}return!1};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r=/^(?:[0-9]{9}X|[0-9]{10})$/,i=/^(?:[0-9]{13})$/,a=[1,3];e.exports=t.default,e.exports.default=t.default}(bE,bE.exports);var yE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,n.default)(e);var i=r;if(i=t.require_hyphen?i.replace("?",""):i,i=t.case_sensitive?new RegExp(i):new RegExp(i,"i"),!i.test(e))return!1;for(var a=e.replace("-","").toUpperCase(),o=0,s=0;s<a.length;s++){var u=a[s];o+=("X"===u?10:+u)*(8-s)}return o%11==0};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r="^\\d{4}-?\\d{3}[\\dX]$";e.exports=t.default,e.exports.default=t.default}(yE,yE.exports);var _E={exports:{}},wE={};Object.defineProperty(wE,"__esModule",{value:!0}),wE.iso7064Check=function(e){for(var t=10,n=0;n<e.length-1;n++)t=(parseInt(e[n],10)+t)%10==0?9:(parseInt(e[n],10)+t)%10*2%11;return(t=1===t?0:11-t)===parseInt(e[10],10)},wE.luhnCheck=function(e){for(var t=0,n=!1,r=e.length-1;r>=0;r--){if(n){var i=2*parseInt(e[r],10);t+=i>9?i.toString().split("").map((function(e){return parseInt(e,10)})).reduce((function(e,t){return e+t}),0):i}else t+=parseInt(e[r],10);n=!n}return t%10==0},wE.reverseMultiplyAndSum=function(e,t){for(var n=0,r=0;r<e.length;r++)n+=e[r]*(t-r);return n},wE.verhoeffCheck=function(e){for(var t=[[0,1,2,3,4,5,6,7,8,9],[1,2,3,4,0,6,7,8,9,5],[2,3,4,0,1,7,8,9,5,6],[3,4,0,1,2,8,9,5,6,7],[4,0,1,2,3,9,5,6,7,8],[5,9,8,7,6,0,4,3,2,1],[6,5,9,8,7,1,0,4,3,2],[7,6,5,9,8,2,1,0,4,3],[8,7,6,5,9,3,2,1,0,4],[9,8,7,6,5,4,3,2,1,0]],n=[[0,1,2,3,4,5,6,7,8,9],[1,5,7,6,2,8,3,0,9,4],[5,8,0,3,7,9,6,1,4,2],[8,9,1,6,0,4,3,5,2,7],[9,4,5,3,1,2,6,8,7,0],[4,2,8,6,5,7,3,9,0,1],[2,7,9,3,8,0,6,4,1,5],[7,0,4,6,9,1,3,2,5,8]],r=e.split("").reverse().join(""),i=0,a=0;a<r.length;a++)i=t[i][n[a%8][parseInt(r[a],10)]];return 0===i},function(e,t){function n(e){return n="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},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US";(0,r.default)(e);var n=e.slice(0);if(t in f)return t in m&&(n=n.replace(m[t],"")),!!f[t].test(n)&&(!(t in p)||p[t](n));throw new Error("Invalid locale '".concat(t,"'"))};var r=s(yx.exports),i=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}r.default=e,t&&t.set(e,r);return r}(wE),a=s(sk.exports);function o(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}function s(e){return e&&e.__esModule?e:{default:e}}function u(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var d={andover:["10","12"],atlanta:["60","67"],austin:["50","53"],brookhaven:["01","02","03","04","05","06","11","13","14","16","21","22","23","25","34","51","52","54","55","56","57","58","59","65"],cincinnati:["30","32","35","36","37","38","61"],fresno:["15","24"],internet:["20","26","27","45","46","47"],kansas:["40","44"],memphis:["94","95"],ogden:["80","90"],philadelphia:["33","39","41","42","43","46","48","62","63","64","66","68","71","72","73","74","75","76","77","81","82","83","84","85","86","87","88","91","92","93","98","99"],sba:["31"]};function l(e){for(var t=!1,n=!1,r=0;r<3;r++)if(!t&&/[AEIOU]/.test(e[r]))t=!0;else if(!n&&t&&"X"===e[r])n=!0;else if(r>0){if(t&&!n&&!/[AEIOU]/.test(e[r]))return!1;if(n&&!/X/.test(e[r]))return!1}return!0}var f={"bg-BG":/^\d{10}$/,"cs-CZ":/^\d{6}\/{0,1}\d{3,4}$/,"de-AT":/^\d{9}$/,"de-DE":/^[1-9]\d{10}$/,"dk-DK":/^\d{6}-{0,1}\d{4}$/,"el-CY":/^[09]\d{7}[A-Z]$/,"el-GR":/^([0-4]|[7-9])\d{8}$/,"en-CA":/^\d{9}$/,"en-GB":/^\d{10}$|^(?!GB|NK|TN|ZZ)(?![DFIQUV])[A-Z](?![DFIQUVO])[A-Z]\d{6}[ABCD ]$/i,"en-IE":/^\d{7}[A-W][A-IW]{0,1}$/i,"en-US":/^\d{2}[- ]{0,1}\d{7}$/,"es-ES":/^(\d{0,8}|[XYZKLM]\d{7})[A-HJ-NP-TV-Z]$/i,"et-EE":/^[1-6]\d{6}(00[1-9]|0[1-9][0-9]|[1-6][0-9]{2}|70[0-9]|710)\d$/,"fi-FI":/^\d{6}[-+A]\d{3}[0-9A-FHJ-NPR-Y]$/i,"fr-BE":/^\d{11}$/,"fr-FR":/^[0-3]\d{12}$|^[0-3]\d\s\d{2}(\s\d{3}){3}$/,"fr-LU":/^\d{13}$/,"hr-HR":/^\d{11}$/,"hu-HU":/^8\d{9}$/,"it-IT":/^[A-Z]{6}[L-NP-V0-9]{2}[A-EHLMPRST][L-NP-V0-9]{2}[A-ILMZ][L-NP-V0-9]{3}[A-Z]$/i,"lv-LV":/^\d{6}-{0,1}\d{5}$/,"mt-MT":/^\d{3,7}[APMGLHBZ]$|^([1-8])\1\d{7}$/i,"nl-NL":/^\d{9}$/,"pl-PL":/^\d{10,11}$/,"pt-BR":/(?:^\d{11}$)|(?:^\d{14}$)/,"pt-PT":/^\d{9}$/,"ro-RO":/^\d{13}$/,"sk-SK":/^\d{6}\/{0,1}\d{3,4}$/,"sl-SI":/^[1-9]\d{7}$/,"sv-SE":/^(\d{6}[-+]{0,1}\d{4}|(18|19|20)\d{6}[-+]{0,1}\d{4})$/};f["lb-LU"]=f["fr-LU"],f["lt-LT"]=f["et-EE"],f["nl-BE"]=f["fr-BE"],f["fr-CA"]=f["en-CA"];var p={"bg-BG":function(e){var t=e.slice(0,2),n=parseInt(e.slice(2,4),10);n>40?(n-=40,t="20".concat(t)):n>20?(n-=20,t="18".concat(t)):t="19".concat(t),n<10&&(n="0".concat(n));var r="".concat(t,"/").concat(n,"/").concat(e.slice(4,6));if(!(0,a.default)(r,"YYYY/MM/DD"))return!1;for(var i=e.split("").map((function(e){return parseInt(e,10)})),o=[2,4,8,5,10,9,7,3,6],s=0,u=0;u<o.length;u++)s+=i[u]*o[u];return(s=s%11==10?0:s%11)===i[9]},"cs-CZ":function(e){e=e.replace(/\W/,"");var t=parseInt(e.slice(0,2),10);if(10===e.length)t=t<54?"20".concat(t):"19".concat(t);else{if("000"===e.slice(6))return!1;if(!(t<54))return!1;t="19".concat(t)}3===t.length&&(t=[t.slice(0,2),"0",t.slice(2)].join(""));var n=parseInt(e.slice(2,4),10);if(n>50&&(n-=50),n>20){if(parseInt(t,10)<2004)return!1;n-=20}n<10&&(n="0".concat(n));var r="".concat(t,"/").concat(n,"/").concat(e.slice(4,6));if(!(0,a.default)(r,"YYYY/MM/DD"))return!1;if(10===e.length&&parseInt(e,10)%11!=0){var i=parseInt(e.slice(0,9),10)%11;if(!(parseInt(t,10)<1986&&10===i))return!1;if(0!==parseInt(e.slice(9),10))return!1}return!0},"de-AT":function(e){return i.luhnCheck(e)},"de-DE":function(e){for(var t=e.split("").map((function(e){return parseInt(e,10)})),n=[],r=0;r<t.length-1;r++){n.push("");for(var a=0;a<t.length-1;a++)t[r]===t[a]&&(n[r]+=a)}if(2!==(n=n.filter((function(e){return e.length>1}))).length&&3!==n.length)return!1;if(3===n[0].length){for(var o=n[0].split("").map((function(e){return parseInt(e,10)})),s=0,u=0;u<o.length-1;u++)o[u]+1===o[u+1]&&(s+=1);if(2===s)return!1}return i.iso7064Check(e)},"dk-DK":function(e){e=e.replace(/\W/,"");var t=parseInt(e.slice(4,6),10);switch(e.slice(6,7)){case"0":case"1":case"2":case"3":t="19".concat(t);break;case"4":case"9":t=t<37?"20".concat(t):"19".concat(t);break;default:if(t<37)t="20".concat(t);else{if(!(t>58))return!1;t="18".concat(t)}}3===t.length&&(t=[t.slice(0,2),"0",t.slice(2)].join(""));var n="".concat(t,"/").concat(e.slice(2,4),"/").concat(e.slice(0,2));if(!(0,a.default)(n,"YYYY/MM/DD"))return!1;for(var r=e.split("").map((function(e){return parseInt(e,10)})),i=0,o=4,s=0;s<9;s++)i+=r[s]*o,1===(o-=1)&&(o=7);return 1!==(i%=11)&&(0===i?0===r[9]:r[9]===11-i)},"el-CY":function(e){for(var t=e.slice(0,8).split("").map((function(e){return parseInt(e,10)})),n=0,r=1;r<t.length;r+=2)n+=t[r];for(var i=0;i<t.length;i+=2)t[i]<2?n+=1-t[i]:(n+=2*(t[i]-2)+5,t[i]>4&&(n+=2));return String.fromCharCode(n%26+65)===e.charAt(8)},"el-GR":function(e){for(var t=e.split("").map((function(e){return parseInt(e,10)})),n=0,r=0;r<8;r++)n+=t[r]*Math.pow(2,8-r);return n%11%10===t[8]},"en-CA":function(e){var t=e.split(""),n=t.filter((function(e,t){return t%2})).map((function(e){return 2*Number(e)})).join("").split(""),r=t.filter((function(e,t){return!(t%2)})).concat(n).map((function(e){return Number(e)})).reduce((function(e,t){return e+t}));return r%10==0},"en-IE":function(e){var t=i.reverseMultiplyAndSum(e.split("").slice(0,7).map((function(e){return parseInt(e,10)})),8);return 9===e.length&&"W"!==e[8]&&(t+=9*(e[8].charCodeAt(0)-64)),0===(t%=23)?"W"===e[7].toUpperCase():e[7].toUpperCase()===String.fromCharCode(64+t)},"en-US":function(e){return-1!==function(){var e=[];for(var t in d)d.hasOwnProperty(t)&&e.push.apply(e,u(d[t]));return e}().indexOf(e.slice(0,2))},"es-ES":function(e){var t=e.toUpperCase().split("");if(isNaN(parseInt(t[0],10))&&t.length>1){var n=0;switch(t[0]){case"Y":n=1;break;case"Z":n=2}t.splice(0,1,n)}else for(;t.length<9;)t.unshift(0);t=t.join("");var r=parseInt(t.slice(0,8),10)%23;return t[8]===["T","R","W","A","G","M","Y","F","P","D","X","B","N","J","Z","S","Q","V","H","L","C","K","E"][r]},"et-EE":function(e){var t=e.slice(1,3);switch(e.slice(0,1)){case"1":case"2":t="18".concat(t);break;case"3":case"4":t="19".concat(t);break;default:t="20".concat(t)}var n="".concat(t,"/").concat(e.slice(3,5),"/").concat(e.slice(5,7));if(!(0,a.default)(n,"YYYY/MM/DD"))return!1;for(var r=e.split("").map((function(e){return parseInt(e,10)})),i=0,o=1,s=0;s<10;s++)i+=r[s]*o,10===(o+=1)&&(o=1);if(i%11==10){i=0,o=3;for(var u=0;u<10;u++)i+=r[u]*o,10===(o+=1)&&(o=1);if(i%11==10)return 0===r[10]}return i%11===r[10]},"fi-FI":function(e){var t=e.slice(4,6);switch(e.slice(6,7)){case"+":t="18".concat(t);break;case"-":t="19".concat(t);break;default:t="20".concat(t)}var n="".concat(t,"/").concat(e.slice(2,4),"/").concat(e.slice(0,2));if(!(0,a.default)(n,"YYYY/MM/DD"))return!1;var r=parseInt(e.slice(0,6)+e.slice(7,10),10)%31;return r<10?r===parseInt(e.slice(10),10):["A","B","C","D","E","F","H","J","K","L","M","N","P","R","S","T","U","V","W","X","Y"][r-=10]===e.slice(10)},"fr-BE":function(e){if("00"!==e.slice(2,4)||"00"!==e.slice(4,6)){var t="".concat(e.slice(0,2),"/").concat(e.slice(2,4),"/").concat(e.slice(4,6));if(!(0,a.default)(t,"YY/MM/DD"))return!1}var n=97-parseInt(e.slice(0,9),10)%97,r=parseInt(e.slice(9,11),10);return n===r||(n=97-parseInt("2".concat(e.slice(0,9)),10)%97)===r},"fr-FR":function(e){return e=e.replace(/\s/g,""),parseInt(e.slice(0,10),10)%511===parseInt(e.slice(10,13),10)},"fr-LU":function(e){var t="".concat(e.slice(0,4),"/").concat(e.slice(4,6),"/").concat(e.slice(6,8));return!!(0,a.default)(t,"YYYY/MM/DD")&&(!!i.luhnCheck(e.slice(0,12))&&i.verhoeffCheck("".concat(e.slice(0,11)).concat(e[12])))},"hr-HR":function(e){return i.iso7064Check(e)},"hu-HU":function(e){for(var t=e.split("").map((function(e){return parseInt(e,10)})),n=8,r=1;r<9;r++)n+=t[r]*(r+1);return n%11===t[9]},"it-IT":function(e){var t=e.toUpperCase().split("");if(!l(t.slice(0,3)))return!1;if(!l(t.slice(3,6)))return!1;for(var n={L:"0",M:"1",N:"2",P:"3",Q:"4",R:"5",S:"6",T:"7",U:"8",V:"9"},r=0,i=[6,7,9,10,12,13,14];r<i.length;r++){var o=i[r];t[o]in n&&t.splice(o,1,n[t[o]])}var s={A:"01",B:"02",C:"03",D:"04",E:"05",H:"06",L:"07",M:"08",P:"09",R:"10",S:"11",T:"12"}[t[8]],u=parseInt(t[9]+t[10],10);u>40&&(u-=40),u<10&&(u="0".concat(u));var c="".concat(t[6]).concat(t[7],"/").concat(s,"/").concat(u);if(!(0,a.default)(c,"YY/MM/DD"))return!1;for(var d=0,f=1;f<t.length-1;f+=2){var p=parseInt(t[f],10);isNaN(p)&&(p=t[f].charCodeAt(0)-65),d+=p}for(var h={A:1,B:0,C:5,D:7,E:9,F:13,G:15,H:17,I:19,J:21,K:2,L:4,M:18,N:20,O:11,P:3,Q:6,R:8,S:12,T:14,U:16,V:10,W:22,X:25,Y:24,Z:23,0:1,1:0},m=0;m<t.length-1;m+=2){var v=0;if(t[m]in h)v=h[t[m]];else{var g=parseInt(t[m],10);v=2*g+1,g>4&&(v+=2)}d+=v}return String.fromCharCode(65+d%26)===t[15]},"lv-LV":function(e){var t=(e=e.replace(/\W/,"")).slice(0,2);if("32"!==t){if("00"!==e.slice(2,4)){var n=e.slice(4,6);switch(e[6]){case"0":n="18".concat(n);break;case"1":n="19".concat(n);break;default:n="20".concat(n)}var r="".concat(n,"/").concat(e.slice(2,4),"/").concat(t);if(!(0,a.default)(r,"YYYY/MM/DD"))return!1}for(var i=1101,o=[1,6,3,7,9,10,5,8,4,2],s=0;s<e.length-1;s++)i-=parseInt(e[s],10)*o[s];return parseInt(e[10],10)===i%11}return!0},"mt-MT":function(e){if(9!==e.length){for(var t=e.toUpperCase().split("");t.length<8;)t.unshift(0);switch(e[7]){case"A":case"P":if(0===parseInt(t[6],10))return!1;break;default:var n=parseInt(t.join("").slice(0,5),10);if(n>32e3)return!1;if(n===parseInt(t.join("").slice(5,7),10))return!1}}return!0},"nl-NL":function(e){return i.reverseMultiplyAndSum(e.split("").slice(0,8).map((function(e){return parseInt(e,10)})),9)%11===parseInt(e[8],10)},"pl-PL":function(e){if(10===e.length){for(var t=[6,5,7,2,3,4,5,6,7],n=0,r=0;r<t.length;r++)n+=parseInt(e[r],10)*t[r];return 10!==(n%=11)&&n===parseInt(e[9],10)}var i=e.slice(0,2),o=parseInt(e.slice(2,4),10);o>80?(i="18".concat(i),o-=80):o>60?(i="22".concat(i),o-=60):o>40?(i="21".concat(i),o-=40):o>20?(i="20".concat(i),o-=20):i="19".concat(i),o<10&&(o="0".concat(o));var s="".concat(i,"/").concat(o,"/").concat(e.slice(4,6));if(!(0,a.default)(s,"YYYY/MM/DD"))return!1;for(var u=0,c=1,d=0;d<e.length-1;d++)u+=parseInt(e[d],10)*c%10,(c+=2)>10?c=1:5===c&&(c+=2);return(u=10-u%10)===parseInt(e[10],10)},"pt-BR":function(e){if(11===e.length){var t,n;if(t=0,"11111111111"===e||"22222222222"===e||"33333333333"===e||"44444444444"===e||"55555555555"===e||"66666666666"===e||"77777777777"===e||"88888888888"===e||"99999999999"===e||"00000000000"===e)return!1;for(var r=1;r<=9;r++)t+=parseInt(e.substring(r-1,r),10)*(11-r);if(10===(n=10*t%11)&&(n=0),n!==parseInt(e.substring(9,10),10))return!1;t=0;for(var i=1;i<=10;i++)t+=parseInt(e.substring(i-1,i),10)*(12-i);return 10===(n=10*t%11)&&(n=0),n===parseInt(e.substring(10,11),10)}if("00000000000000"===e||"11111111111111"===e||"22222222222222"===e||"33333333333333"===e||"44444444444444"===e||"55555555555555"===e||"66666666666666"===e||"77777777777777"===e||"88888888888888"===e||"99999999999999"===e)return!1;for(var a=e.length-2,o=e.substring(0,a),s=e.substring(a),u=0,c=a-7,d=a;d>=1;d--)u+=o.charAt(a-d)*c,(c-=1)<2&&(c=9);var l=u%11<2?0:11-u%11;if(l!==parseInt(s.charAt(0),10))return!1;a+=1,o=e.substring(0,a),u=0,c=a-7;for(var f=a;f>=1;f--)u+=o.charAt(a-f)*c,(c-=1)<2&&(c=9);return(l=u%11<2?0:11-u%11)===parseInt(s.charAt(1),10)},"pt-PT":function(e){var t=11-i.reverseMultiplyAndSum(e.split("").slice(0,8).map((function(e){return parseInt(e,10)})),9)%11;return t>9?0===parseInt(e[8],10):t===parseInt(e[8],10)},"ro-RO":function(e){if("9000"!==e.slice(0,4)){var t=e.slice(1,3);switch(e[0]){case"1":case"2":t="19".concat(t);break;case"3":case"4":t="18".concat(t);break;case"5":case"6":t="20".concat(t)}var n="".concat(t,"/").concat(e.slice(3,5),"/").concat(e.slice(5,7));if(8===n.length){if(!(0,a.default)(n,"YY/MM/DD"))return!1}else if(!(0,a.default)(n,"YYYY/MM/DD"))return!1;for(var r=e.split("").map((function(e){return parseInt(e,10)})),i=[2,7,9,1,4,6,3,5,8,2,7,9],o=0,s=0;s<i.length;s++)o+=r[s]*i[s];return o%11==10?1===r[12]:r[12]===o%11}return!0},"sk-SK":function(e){if(9===e.length){if("000"===(e=e.replace(/\W/,"")).slice(6))return!1;var t=parseInt(e.slice(0,2),10);if(t>53)return!1;t=t<10?"190".concat(t):"19".concat(t);var n=parseInt(e.slice(2,4),10);n>50&&(n-=50),n<10&&(n="0".concat(n));var r="".concat(t,"/").concat(n,"/").concat(e.slice(4,6));if(!(0,a.default)(r,"YYYY/MM/DD"))return!1}return!0},"sl-SI":function(e){var t=11-i.reverseMultiplyAndSum(e.split("").slice(0,7).map((function(e){return parseInt(e,10)})),8)%11;return 10===t?0===parseInt(e[7],10):t===parseInt(e[7],10)},"sv-SE":function(e){var t=e.slice(0);e.length>11&&(t=t.slice(2));var n="",r=t.slice(2,4),o=parseInt(t.slice(4,6),10);if(e.length>11)n=e.slice(0,4);else if(n=e.slice(0,2),11===e.length&&o<60){var s=(new Date).getFullYear().toString(),u=parseInt(s.slice(0,2),10);if(s=parseInt(s,10),"-"===e[6])n=parseInt("".concat(u).concat(n),10)>s?"".concat(u-1).concat(n):"".concat(u).concat(n);else if(n="".concat(u-1).concat(n),s-parseInt(n,10)<100)return!1}o>60&&(o-=60),o<10&&(o="0".concat(o));var c="".concat(n,"/").concat(r,"/").concat(o);if(8===c.length){if(!(0,a.default)(c,"YY/MM/DD"))return!1}else if(!(0,a.default)(c,"YYYY/MM/DD"))return!1;return i.luhnCheck(e.replace(/\W/,""))}};p["lb-LU"]=p["fr-LU"],p["lt-LT"]=p["et-EE"],p["nl-BE"]=p["fr-BE"],p["fr-CA"]=p["en-CA"];var h=/[-\\\/!@#$%\^&\*\(\)\+\=\[\]]+/g,m={"de-AT":h,"de-DE":/[\/\\]/g,"fr-BE":h};m["nl-BE"]=m["fr-BE"],e.exports=t.default,e.exports.default=t.default}(_E,_E.exports);var xE={};Object.defineProperty(xE,"__esModule",{value:!0}),xE.default=function(e,t,n){if((0,kE.default)(e),n&&n.strictMode&&!e.startsWith("+"))return!1;if(Array.isArray(t))return t.some((function(t){if(EE.hasOwnProperty(t)&&EE[t].test(e))return!0;return!1}));if(t in EE)return EE[t].test(e);if(!t||"any"===t){for(var r in EE){if(EE.hasOwnProperty(r))if(EE[r].test(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))},xE.locales=void 0;var kE=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var EE={"am-AM":/^(\+?374|0)((10|[9|7][0-9])\d{6}$|[2-4]\d{7}$)/,"ar-AE":/^((\+?971)|0)?5[024568]\d{7}$/,"ar-BH":/^(\+?973)?(3|6)\d{7}$/,"ar-DZ":/^(\+?213|0)(5|6|7)\d{8}$/,"ar-LB":/^(\+?961)?((3|81)\d{6}|7\d{7})$/,"ar-EG":/^((\+?20)|0)?1[0125]\d{8}$/,"ar-IQ":/^(\+?964|0)?7[0-9]\d{8}$/,"ar-JO":/^(\+?962|0)?7[789]\d{7}$/,"ar-KW":/^(\+?965)([569]\d{7}|41\d{6})$/,"ar-LY":/^((\+?218)|0)?(9[1-6]\d{7}|[1-8]\d{7,9})$/,"ar-MA":/^(?:(?:\+|00)212|0)[5-7]\d{8}$/,"ar-OM":/^((\+|00)968)?(9[1-9])\d{6}$/,"ar-PS":/^(\+?970|0)5[6|9](\d{7})$/,"ar-SA":/^(!?(\+?966)|0)?5\d{8}$/,"ar-SY":/^(!?(\+?963)|0)?9\d{8}$/,"ar-TN":/^(\+?216)?[2459]\d{7}$/,"az-AZ":/^(\+994|0)(10|5[015]|7[07]|99)\d{7}$/,"bs-BA":/^((((\+|00)3876)|06))((([0-3]|[5-6])\d{6})|(4\d{7}))$/,"be-BY":/^(\+?375)?(24|25|29|33|44)\d{7}$/,"bg-BG":/^(\+?359|0)?8[789]\d{7}$/,"bn-BD":/^(\+?880|0)1[13456789][0-9]{8}$/,"ca-AD":/^(\+376)?[346]\d{5}$/,"cs-CZ":/^(\+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"da-DK":/^(\+?45)?\s?\d{2}\s?\d{2}\s?\d{2}\s?\d{2}$/,"de-DE":/^((\+49|0)1)(5[0-25-9]\d|6([23]|0\d?)|7([0-57-9]|6\d))\d{7,9}$/,"de-AT":/^(\+43|0)\d{1,4}\d{3,12}$/,"de-CH":/^(\+41|0)([1-9])\d{1,9}$/,"de-LU":/^(\+352)?((6\d1)\d{6})$/,"dv-MV":/^(\+?960)?(7[2-9]|9[1-9])\d{5}$/,"el-GR":/^(\+?30|0)?6(8[5-9]|9(?![26])[0-9])\d{7}$/,"el-CY":/^(\+?357?)?(9(9|6)\d{6})$/,"en-AI":/^(\+?1|0)264(?:2(35|92)|4(?:6[1-2]|76|97)|5(?:3[6-9]|8[1-4])|7(?:2(4|9)|72))\d{4}$/,"en-AU":/^(\+?61|0)4\d{8}$/,"en-AG":/^(?:\+1|1)268(?:464|7(?:1[3-9]|[28]\d|3[0246]|64|7[0-689]))\d{4}$/,"en-BM":/^(\+?1)?441(((3|7)\d{6}$)|(5[0-3][0-9]\d{4}$)|(59\d{5}$))/,"en-BS":/^(\+?1[-\s]?|0)?\(?242\)?[-\s]?\d{3}[-\s]?\d{4}$/,"en-GB":/^(\+?44|0)7\d{9}$/,"en-GG":/^(\+?44|0)1481\d{6}$/,"en-GH":/^(\+233|0)(20|50|24|54|27|57|26|56|23|28|55|59)\d{7}$/,"en-GY":/^(\+592|0)6\d{6}$/,"en-HK":/^(\+?852[-\s]?)?[456789]\d{3}[-\s]?\d{4}$/,"en-MO":/^(\+?853[-\s]?)?[6]\d{3}[-\s]?\d{4}$/,"en-IE":/^(\+?353|0)8[356789]\d{7}$/,"en-IN":/^(\+?91|0)?[6789]\d{9}$/,"en-JM":/^(\+?876)?\d{7}$/,"en-KE":/^(\+?254|0)(7|1)\d{8}$/,"en-SS":/^(\+?211|0)(9[1257])\d{7}$/,"en-KI":/^((\+686|686)?)?( )?((6|7)(2|3|8)[0-9]{6})$/,"en-KN":/^(?:\+1|1)869(?:46\d|48[89]|55[6-8]|66\d|76[02-7])\d{4}$/,"en-LS":/^(\+?266)(22|28|57|58|59|27|52)\d{6}$/,"en-MT":/^(\+?356|0)?(99|79|77|21|27|22|25)[0-9]{6}$/,"en-MU":/^(\+?230|0)?\d{8}$/,"en-NA":/^(\+?264|0)(6|8)\d{7}$/,"en-NG":/^(\+?234|0)?[789]\d{9}$/,"en-NZ":/^(\+?64|0)[28]\d{7,9}$/,"en-PG":/^(\+?675|0)?(7\d|8[18])\d{6}$/,"en-PK":/^((00|\+)?92|0)3[0-6]\d{8}$/,"en-PH":/^(09|\+639)\d{9}$/,"en-RW":/^(\+?250|0)?[7]\d{8}$/,"en-SG":/^(\+65)?[3689]\d{7}$/,"en-SL":/^(\+?232|0)\d{8}$/,"en-TZ":/^(\+?255|0)?[67]\d{8}$/,"en-UG":/^(\+?256|0)?[7]\d{8}$/,"en-US":/^((\+1|1)?( |-)?)?(\([2-9][0-9]{2}\)|[2-9][0-9]{2})( |-)?([2-9][0-9]{2}( |-)?[0-9]{4})$/,"en-ZA":/^(\+?27|0)\d{9}$/,"en-ZM":/^(\+?26)?09[567]\d{7}$/,"en-ZW":/^(\+263)[0-9]{9}$/,"en-BW":/^(\+?267)?(7[1-8]{1})\d{6}$/,"es-AR":/^\+?549(11|[2368]\d)\d{8}$/,"es-BO":/^(\+?591)?(6|7)\d{7}$/,"es-CO":/^(\+?57)?3(0(0|1|2|4|5)|1\d|2[0-4]|5(0|1))\d{7}$/,"es-CL":/^(\+?56|0)[2-9]\d{1}\d{7}$/,"es-CR":/^(\+506)?[2-8]\d{7}$/,"es-CU":/^(\+53|0053)?5\d{7}/,"es-DO":/^(\+?1)?8[024]9\d{7}$/,"es-HN":/^(\+?504)?[9|8|3|2]\d{7}$/,"es-EC":/^(\+?593|0)([2-7]|9[2-9])\d{7}$/,"es-ES":/^(\+?34)?[6|7]\d{8}$/,"es-PE":/^(\+?51)?9\d{8}$/,"es-MX":/^(\+?52)?(1|01)?\d{10,11}$/,"es-NI":/^(\+?505)\d{7,8}$/,"es-PA":/^(\+?507)\d{7,8}$/,"es-PY":/^(\+?595|0)9[9876]\d{7}$/,"es-SV":/^(\+?503)?[67]\d{7}$/,"es-UY":/^(\+598|0)9[1-9][\d]{6}$/,"es-VE":/^(\+?58)?(2|4)\d{9}$/,"et-EE":/^(\+?372)?\s?(5|8[1-4])\s?([0-9]\s?){6,7}$/,"fa-IR":/^(\+?98[\-\s]?|0)9[0-39]\d[\-\s]?\d{3}[\-\s]?\d{4}$/,"fi-FI":/^(\+?358|0)\s?(4[0-6]|50)\s?(\d\s?){4,8}$/,"fj-FJ":/^(\+?679)?\s?\d{3}\s?\d{4}$/,"fo-FO":/^(\+?298)?\s?\d{2}\s?\d{2}\s?\d{2}$/,"fr-BF":/^(\+226|0)[67]\d{7}$/,"fr-BJ":/^(\+229)\d{8}$/,"fr-CD":/^(\+?243|0)?(8|9)\d{8}$/,"fr-CM":/^(\+?237)6[0-9]{8}$/,"fr-FR":/^(\+?33|0)[67]\d{8}$/,"fr-GF":/^(\+?594|0|00594)[67]\d{8}$/,"fr-GP":/^(\+?590|0|00590)[67]\d{8}$/,"fr-MQ":/^(\+?596|0|00596)[67]\d{8}$/,"fr-PF":/^(\+?689)?8[789]\d{6}$/,"fr-RE":/^(\+?262|0|00262)[67]\d{8}$/,"he-IL":/^(\+972|0)([23489]|5[012345689]|77)[1-9]\d{6}$/,"hu-HU":/^(\+?36|06)(20|30|31|50|70)\d{7}$/,"id-ID":/^(\+?62|0)8(1[123456789]|2[1238]|3[1238]|5[12356789]|7[78]|9[56789]|8[123456789])([\s?|\d]{5,11})$/,"ir-IR":/^(\+98|0)?9\d{9}$/,"it-IT":/^(\+?39)?\s?3\d{2} ?\d{6,7}$/,"it-SM":/^((\+378)|(0549)|(\+390549)|(\+3780549))?6\d{5,9}$/,"ja-JP":/^(\+81[ \-]?(\(0\))?|0)[6789]0[ \-]?\d{4}[ \-]?\d{4}$/,"ka-GE":/^(\+?995)?(79\d{7}|5\d{8})$/,"kk-KZ":/^(\+?7|8)?7\d{9}$/,"kl-GL":/^(\+?299)?\s?\d{2}\s?\d{2}\s?\d{2}$/,"ko-KR":/^((\+?82)[ \-]?)?0?1([0|1|6|7|8|9]{1})[ \-]?\d{3,4}[ \-]?\d{4}$/,"ky-KG":/^(\+?7\s?\+?7|0)\s?\d{2}\s?\d{3}\s?\d{4}$/,"lt-LT":/^(\+370|8)\d{8}$/,"lv-LV":/^(\+?371)2\d{7}$/,"mg-MG":/^((\+?261|0)(2|3)\d)?\d{7}$/,"mn-MN":/^(\+|00|011)?976(77|81|88|91|94|95|96|99)\d{6}$/,"my-MM":/^(\+?959|09|9)(2[5-7]|3[1-2]|4[0-5]|6[6-9]|7[5-9]|9[6-9])[0-9]{7}$/,"ms-MY":/^(\+?60|0)1(([0145](-|\s)?\d{7,8})|([236-9](-|\s)?\d{7}))$/,"mz-MZ":/^(\+?258)?8[234567]\d{7}$/,"nb-NO":/^(\+?47)?[49]\d{7}$/,"ne-NP":/^(\+?977)?9[78]\d{8}$/,"nl-BE":/^(\+?32|0)4\d{8}$/,"nl-NL":/^(((\+|00)?31\(0\))|((\+|00)?31)|0)6{1}\d{8}$/,"nl-AW":/^(\+)?297(56|59|64|73|74|99)\d{5}$/,"nn-NO":/^(\+?47)?[49]\d{7}$/,"pl-PL":/^(\+?48)? ?[5-8]\d ?\d{3} ?\d{2} ?\d{2}$/,"pt-BR":/^((\+?55\ ?[1-9]{2}\ ?)|(\+?55\ ?\([1-9]{2}\)\ ?)|(0[1-9]{2}\ ?)|(\([1-9]{2}\)\ ?)|([1-9]{2}\ ?))((\d{4}\-?\d{4})|(9[1-9]{1}\d{3}\-?\d{4}))$/,"pt-PT":/^(\+?351)?9[1236]\d{7}$/,"pt-AO":/^(\+244)\d{9}$/,"ro-MD":/^(\+?373|0)((6(0|1|2|6|7|8|9))|(7(6|7|8|9)))\d{6}$/,"ro-RO":/^(\+?40|0)\s?7\d{2}(\/|\s|\.|-)?\d{3}(\s|\.|-)?\d{3}$/,"ru-RU":/^(\+?7|8)?9\d{9}$/,"si-LK":/^(?:0|94|\+94)?(7(0|1|2|4|5|6|7|8)( |-)?)\d{7}$/,"sl-SI":/^(\+386\s?|0)(\d{1}\s?\d{3}\s?\d{2}\s?\d{2}|\d{2}\s?\d{3}\s?\d{3})$/,"sk-SK":/^(\+?421)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"sq-AL":/^(\+355|0)6[789]\d{6}$/,"sr-RS":/^(\+3816|06)[- \d]{5,9}$/,"sv-SE":/^(\+?46|0)[\s\-]?7[\s\-]?[02369]([\s\-]?\d){7}$/,"tg-TJ":/^(\+?992)?[5][5]\d{7}$/,"th-TH":/^(\+66|66|0)\d{9}$/,"tr-TR":/^(\+?90|0)?5\d{9}$/,"tk-TM":/^(\+993|993|8)\d{8}$/,"uk-UA":/^(\+?38|8)?0\d{9}$/,"uz-UZ":/^(\+?998)?(6[125-79]|7[1-69]|88|9\d)\d{7}$/,"vi-VN":/^((\+?84)|0)((3([2-9]))|(5([25689]))|(7([0|6-9]))|(8([1-9]))|(9([0-9])))([0-9]{7})$/,"zh-CN":/^((\+|00)86)?(1[3-9]|9[28])\d{9}$/,"zh-TW":/^(\+?886\-?|0)?9\d{8}$/,"dz-BT":/^(\+?975|0)?(17|16|77|02)\d{6}$/,"ar-YE":/^(((\+|00)9677|0?7)[0137]\d{7}|((\+|00)967|0)[1-7]\d{6})$/,"ar-EH":/^(\+?212|0)[\s\-]?(5288|5289)[\s\-]?\d{5}$/,"fa-AF":/^(\+93|0)?(2{1}[0-8]{1}|[3-5]{1}[0-4]{1})(\d{7})$/};EE["en-CA"]=EE["en-US"],EE["fr-CA"]=EE["en-CA"],EE["fr-BE"]=EE["nl-BE"],EE["zh-HK"]=EE["en-HK"],EE["zh-MO"]=EE["en-MO"],EE["ga-IE"]=EE["en-IE"],EE["fr-CH"]=EE["de-CH"],EE["it-CH"]=EE["fr-CH"];var SE=Object.keys(EE);xE.locales=SE;var DE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e),r.test(e)};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r=/^(0x)[0-9a-f]{40}$/i;e.exports=t.default,e.exports.default=t.default}(DE,DE.exports);var IE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(e),t=(0,n.default)(t,a),function(e){var t="\\d{".concat(e.digits_after_decimal[0],"}");e.digits_after_decimal.forEach((function(e,n){0!==n&&(t="".concat(t,"|\\d{").concat(e,"}"))}));var n="(".concat(e.symbol.replace(/\W/,(function(e){return"\\".concat(e)})),")").concat(e.require_symbol?"":"?"),r="-?",i="[1-9]\\d{0,2}(\\".concat(e.thousands_separator,"\\d{3})*"),a="(".concat(["0","[1-9]\\d*",i].join("|"),")?"),o="(\\".concat(e.decimal_separator,"(").concat(t,"))").concat(e.require_decimal?"":"?"),s=a+(e.allow_decimal||e.require_decimal?o:"");e.allow_negatives&&!e.parens_for_negatives&&(e.negative_sign_after_digits?s+=r:e.negative_sign_before_digits&&(s=r+s));e.allow_negative_sign_placeholder?s="( (?!\\-))?".concat(s):e.allow_space_after_symbol?s=" ?".concat(s):e.allow_space_after_digits&&(s+="( (?!$))?");e.symbol_after_digits?s+=n:s=n+s;e.allow_negatives&&(e.parens_for_negatives?s="(\\(".concat(s,"\\)|").concat(s,")"):e.negative_sign_before_digits||e.negative_sign_after_digits||(s=r+s));return new RegExp("^(?!-? )(?=.*\\d)".concat(s,"$"))}(t).test(e)};var n=i(Jx.exports),r=i(yx.exports);function i(e){return e&&e.__esModule?e:{default:e}}var a={symbol:"$",require_symbol:!1,allow_space_after_symbol:!1,symbol_after_digits:!1,allow_negatives:!0,parens_for_negatives:!1,negative_sign_before_digits:!1,negative_sign_after_digits:!1,allow_negative_sign_placeholder:!1,thousands_separator:",",decimal_separator:".",allow_decimal:!0,require_decimal:!1,digits_after_decimal:[2],allow_space_after_digits:!1};e.exports=t.default,e.exports.default=t.default}(IE,IE.exports);var RE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e),r.test(e)||i.test(e)};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r=/^(bc1)[a-z0-9]{25,39}$/,i=/^(1|3)[A-HJ-NP-Za-km-z1-9]{25,39}$/;e.exports=t.default,e.exports.default=t.default}(RE,RE.exports);var CE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e),r.has(e)};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r=new Set(["aa","ab","ae","af","ak","am","an","ar","as","av","ay","az","az","ba","be","bg","bh","bi","bm","bn","bo","br","bs","ca","ce","ch","co","cr","cs","cu","cv","cy","da","de","dv","dz","ee","el","en","eo","es","et","eu","fa","ff","fi","fj","fo","fr","fy","ga","gd","gl","gn","gu","gv","ha","he","hi","ho","hr","ht","hu","hy","hz","ia","id","ie","ig","ii","ik","io","is","it","iu","ja","jv","ka","kg","ki","kj","kk","kl","km","kn","ko","kr","ks","ku","kv","kw","ky","la","lb","lg","li","ln","lo","lt","lu","lv","mg","mh","mi","mk","ml","mn","mr","ms","mt","my","na","nb","nd","ne","ng","nl","nn","no","nr","nv","ny","oc","oj","om","or","os","pa","pi","pl","ps","pt","qu","rm","rn","ro","ru","rw","sa","sc","sd","se","sg","si","sk","sl","sm","sn","so","sq","sr","ss","st","su","sv","sw","ta","te","tg","th","ti","tk","tl","tn","to","tr","ts","tt","tw","ty","ug","uk","ur","uz","ve","vi","vo","wa","wo","xh","yi","yo","za","zh","zu"]);e.exports=t.default,e.exports.default=t.default}(CE,CE.exports);var OE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,n.default)(e);var o=t.strictSeparator?i.test(e):r.test(e);return o&&t.strict?a(e):o};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/,i=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/,a=function(e){var t=e.match(/^(\d{4})-?(\d{3})([ T]{1}\.*|$)/);if(t){var n=Number(t[1]),r=Number(t[2]);return n%4==0&&n%100!=0||n%400==0?r<=366:r<=365}var i=e.match(/(\d{4})-?(\d{0,2})-?(\d*)/).map(Number),a=i[1],o=i[2],s=i[3],u=o?"0".concat(o).slice(-2):o,c=s?"0".concat(s).slice(-2):s,d=new Date("".concat(a,"-").concat(u||"01","-").concat(c||"01"));return!o||!s||d.getUTCFullYear()===a&&d.getUTCMonth()+1===o&&d.getUTCDate()===s};e.exports=t.default,e.exports.default=t.default}(OE,OE.exports);var TE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e),d.test(e)};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r=/([01][0-9]|2[0-3])/,i=/[0-5][0-9]/,a=new RegExp("[-+]".concat(r.source,":").concat(i.source)),o=new RegExp("([zZ]|".concat(a.source,")")),s=new RegExp("".concat(r.source,":").concat(i.source,":").concat(/([0-5][0-9]|60)/.source).concat(/(\.[0-9]+)?/.source)),u=new RegExp("".concat(/[0-9]{4}/.source,"-").concat(/(0[1-9]|1[0-2])/.source,"-").concat(/([12]\d|0[1-9]|3[01])/.source)),c=new RegExp("".concat(s.source).concat(o.source)),d=new RegExp("^".concat(u.source,"[ tT]").concat(c.source,"$"));e.exports=t.default,e.exports.default=t.default}(TE,TE.exports);var PE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e),r.has(e.toUpperCase())};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r=new Set(["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","VAT","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWZ","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","URY","UZB","VUT","VEN","VNM","VGB","VIR","WLF","ESH","YEM","ZMB","ZWE"]);e.exports=t.default,e.exports.default=t.default}(PE,PE.exports);var LE={};Object.defineProperty(LE,"__esModule",{value:!0}),LE.default=function(e){return(0,ME.default)(e),BE.has(e.toUpperCase())},LE.CurrencyCodes=void 0;var ME=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var BE=new Set(["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRU","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STN","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UYW","UZS","VES","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"]);var jE=BE;LE.CurrencyCodes=jE;var UE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,n.default)(e),t=(0,r.default)(t,s),t.crockford)return o.test(e);var i=e.length;if(i%8==0&&a.test(e))return!0;return!1};var n=i(yx.exports),r=i(Jx.exports);function i(e){return e&&e.__esModule?e:{default:e}}var a=/^[A-Z2-7]+=*$/,o=/^[A-HJKMNP-TV-Z0-9]+$/,s={crockford:!1};e.exports=t.default,e.exports.default=t.default}(UE,UE.exports);var FE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,n.default)(e),r.test(e))return!0;return!1};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r=/^[A-HJ-NP-Za-km-z1-9]*$/;e.exports=t.default,e.exports.default=t.default}(FE,FE.exports);var NE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,n.default)(e);var t=e.split(",");if(t.length<2)return!1;var o=t.shift().trim().split(";"),s=o.shift();if("data:"!==s.slice(0,5))return!1;var u=s.slice(5);if(""!==u&&!r.test(u))return!1;for(var c=0;c<o.length;c++)if((c!==o.length-1||"base64"!==o[c].toLowerCase())&&!i.test(o[c]))return!1;for(var d=0;d<t.length;d++)if(!a.test(t[d]))return!1;return!0};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r=/^[a-z]+\/[a-z0-9\-\+\._]+$/i,i=/^[a-z\-]+=[a-z0-9\-]+$/i,a=/^[a-z0-9!\$&'\(\)\*\+,;=\-\._~:@\/\?%\s]*$/i;e.exports=t.default,e.exports.default=t.default}(NE,NE.exports);var $E={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,n.default)(e),0!==e.indexOf("magnet:?"))return!1;return r.test(e)};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r=/(?:^magnet:\?|[^?&]&)xt(?:\.1)?=urn:(?:(?:aich|bitprint|btih|ed2k|ed2khash|kzhash|md5|sha1|tree:tiger):[a-z0-9]{32}(?:[a-z0-9]{8})?|btmh:1220[a-z0-9]{64})(?:$|&)/i;e.exports=t.default,e.exports.default=t.default}($E,$E.exports);var GE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e),r.test(e)||i.test(e)||a.test(e)};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r=/^(application|audio|font|image|message|model|multipart|text|video)\/[a-zA-Z0-9\.\-\+_]{1,100}$/i,i=/^text\/[a-zA-Z0-9\.\-\+]{1,100};\s?charset=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?$/i,a=/^multipart\/[a-zA-Z0-9\.\-\+]{1,100}(;\s?(boundary|charset)=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?){0,2}$/i;e.exports=t.default,e.exports.default=t.default}(GE,GE.exports);var HE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,n.default)(e),t=(0,r.default)(t,c),!e.includes(","))return!1;var i=e.split(",");if(i[0].startsWith("(")&&!i[1].endsWith(")")||i[1].endsWith(")")&&!i[0].startsWith("("))return!1;if(t.checkDMS)return s.test(i[0])&&u.test(i[1]);return a.test(i[0])&&o.test(i[1])};var n=i(yx.exports),r=i(Jx.exports);function i(e){return e&&e.__esModule?e:{default:e}}var a=/^\(?[+-]?(90(\.0+)?|[1-8]?\d(\.\d+)?)$/,o=/^\s?[+-]?(180(\.0+)?|1[0-7]\d(\.\d+)?|\d{1,2}(\.\d+)?)\)?$/,s=/^(([1-8]?\d)\D+([1-5]?\d|60)\D+([1-5]?\d|60)(\.\d+)?|90\D+0\D+0)\D+[NSns]?$/i,u=/^\s*([1-7]?\d{1,2}\D+([1-5]?\d|60)\D+([1-5]?\d|60)(\.\d+)?|180\D+0\D+0)\D+[EWew]?$/i,c={checkDMS:!1};e.exports=t.default,e.exports.default=t.default}(HE,HE.exports);var zE={};Object.defineProperty(zE,"__esModule",{value:!0}),zE.default=function(e,t){if((0,ZE.default)(e),t in YE)return YE[t].test(e);if("any"===t){for(var n in YE){if(YE.hasOwnProperty(n))if(YE[n].test(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))},zE.locales=void 0;var ZE=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var VE=/^\d{3}$/,KE=/^\d{4}$/,qE=/^\d{5}$/,WE=/^\d{6}$/,YE={AD:/^AD\d{3}$/,AT:KE,AU:KE,AZ:/^AZ\d{4}$/,BA:/^([7-8]\d{4}$)/,BE:KE,BG:KE,BR:/^\d{5}-\d{3}$/,BY:/^2[1-4]\d{4}$/,CA:/^[ABCEGHJKLMNPRSTVXY]\d[ABCEGHJ-NPRSTV-Z][\s\-]?\d[ABCEGHJ-NPRSTV-Z]\d$/i,CH:KE,CN:/^(0[1-7]|1[012356]|2[0-7]|3[0-6]|4[0-7]|5[1-7]|6[1-7]|7[1-5]|8[1345]|9[09])\d{4}$/,CZ:/^\d{3}\s?\d{2}$/,DE:qE,DK:KE,DO:qE,DZ:qE,EE:qE,ES:/^(5[0-2]{1}|[0-4]{1}\d{1})\d{3}$/,FI:qE,FR:/^\d{2}\s?\d{3}$/,GB:/^(gir\s?0aa|[a-z]{1,2}\d[\da-z]?\s?(\d[a-z]{2})?)$/i,GR:/^\d{3}\s?\d{2}$/,HR:/^([1-5]\d{4}$)/,HT:/^HT\d{4}$/,HU:KE,ID:qE,IE:/^(?!.*(?:o))[A-Za-z]\d[\dw]\s\w{4}$/i,IL:/^(\d{5}|\d{7})$/,IN:/^((?!10|29|35|54|55|65|66|86|87|88|89)[1-9][0-9]{5})$/,IR:/^(?!(\d)\1{3})[13-9]{4}[1346-9][013-9]{5}$/,IS:VE,IT:qE,JP:/^\d{3}\-\d{4}$/,KE:qE,KR:/^(\d{5}|\d{6})$/,LI:/^(948[5-9]|949[0-7])$/,LT:/^LT\-\d{5}$/,LU:KE,LV:/^LV\-\d{4}$/,LK:qE,MG:VE,MX:qE,MT:/^[A-Za-z]{3}\s{0,1}\d{4}$/,MY:qE,NL:/^\d{4}\s?[a-z]{2}$/i,NO:KE,NP:/^(10|21|22|32|33|34|44|45|56|57)\d{3}$|^(977)$/i,NZ:KE,PL:/^\d{2}\-\d{3}$/,PR:/^00[679]\d{2}([ -]\d{4})?$/,PT:/^\d{4}\-\d{3}?$/,RO:WE,RU:WE,SA:qE,SE:/^[1-9]\d{2}\s?\d{2}$/,SG:WE,SI:KE,SK:/^\d{3}\s?\d{2}$/,TH:qE,TN:KE,TW:/^\d{3}(\d{2})?$/,UA:qE,US:/^\d{5}(-\d{4})?$/,ZA:KE,ZM:qE},QE=Object.keys(YE);zE.locales=QE;var JE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,n.default)(e);var r=t?new RegExp("^[".concat(t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"]+"),"g"):/^\s+/g;return e.replace(r,"")};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);e.exports=t.default,e.exports.default=t.default}(JE,JE.exports);var XE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,n.default)(e),t){var r=new RegExp("[".concat(t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"]+$"),"g");return e.replace(r,"")}var i=e.length-1;for(;/\s/.test(e.charAt(i));)i-=1;return e.slice(0,i+1)};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);e.exports=t.default,e.exports.default=t.default}(XE,XE.exports);var eS={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,n.default)((0,r.default)(e,t),t)};var n=i(XE.exports),r=i(JE.exports);function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default}(eS,eS.exports);var tS={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e),e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(/\//g,"/").replace(/\\/g,"\").replace(/`/g,"`")};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);e.exports=t.default,e.exports.default=t.default}(tS,tS.exports);var nS={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e),e.replace(/"/g,'"').replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(///g,"/").replace(/\/g,"\\").replace(/`/g,"`").replace(/&/g,"&")};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);e.exports=t.default,e.exports.default=t.default}(nS,nS.exports);var rS={exports:{}},iS={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,n.default)(e),e.replace(new RegExp("[".concat(t,"]+"),"g"),"")};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);e.exports=t.default,e.exports.default=t.default}(iS,iS.exports),function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,n.default)(e);var i=t?"\\x00-\\x09\\x0B\\x0C\\x0E-\\x1F\\x7F":"\\x00-\\x1F\\x7F";return(0,r.default)(e,i)};var n=i(yx.exports),r=i(iS.exports);function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default}(rS,rS.exports);var aS={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,n.default)(e),e.replace(new RegExp("[^".concat(t,"]+"),"g"),"")};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);e.exports=t.default,e.exports.default=t.default}(aS,aS.exports);var oS={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,n.default)(e);for(var r=e.length-1;r>=0;r--)if(-1===t.indexOf(e[r]))return!1;return!0};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);e.exports=t.default,e.exports.default=t.default}(oS,oS.exports);var sS={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){t=(0,n.default)(t,r);var c=e.split("@"),d=c.pop(),l=[c.join("@"),d];if(l[1]=l[1].toLowerCase(),"gmail.com"===l[1]||"googlemail.com"===l[1]){if(t.gmail_remove_subaddress&&(l[0]=l[0].split("+")[0]),t.gmail_remove_dots&&(l[0]=l[0].replace(/\.+/g,u)),!l[0].length)return!1;(t.all_lowercase||t.gmail_lowercase)&&(l[0]=l[0].toLowerCase()),l[1]=t.gmail_convert_googlemaildotcom?"gmail.com":l[1]}else if(i.indexOf(l[1])>=0){if(t.icloud_remove_subaddress&&(l[0]=l[0].split("+")[0]),!l[0].length)return!1;(t.all_lowercase||t.icloud_lowercase)&&(l[0]=l[0].toLowerCase())}else if(a.indexOf(l[1])>=0){if(t.outlookdotcom_remove_subaddress&&(l[0]=l[0].split("+")[0]),!l[0].length)return!1;(t.all_lowercase||t.outlookdotcom_lowercase)&&(l[0]=l[0].toLowerCase())}else if(o.indexOf(l[1])>=0){if(t.yahoo_remove_subaddress){var f=l[0].split("-");l[0]=f.length>1?f.slice(0,-1).join("-"):f[0]}if(!l[0].length)return!1;(t.all_lowercase||t.yahoo_lowercase)&&(l[0]=l[0].toLowerCase())}else s.indexOf(l[1])>=0?((t.all_lowercase||t.yandex_lowercase)&&(l[0]=l[0].toLowerCase()),l[1]="yandex.ru"):t.all_lowercase&&(l[0]=l[0].toLowerCase());return l.join("@")};var n=function(e){return e&&e.__esModule?e:{default:e}}(Jx.exports);var r={all_lowercase:!0,gmail_lowercase:!0,gmail_remove_dots:!0,gmail_remove_subaddress:!0,gmail_convert_googlemaildotcom:!0,outlookdotcom_lowercase:!0,outlookdotcom_remove_subaddress:!0,yahoo_lowercase:!0,yahoo_remove_subaddress:!0,yandex_lowercase:!0,icloud_lowercase:!0,icloud_remove_subaddress:!0},i=["icloud.com","me.com"],a=["hotmail.at","hotmail.be","hotmail.ca","hotmail.cl","hotmail.co.il","hotmail.co.nz","hotmail.co.th","hotmail.co.uk","hotmail.com","hotmail.com.ar","hotmail.com.au","hotmail.com.br","hotmail.com.gr","hotmail.com.mx","hotmail.com.pe","hotmail.com.tr","hotmail.com.vn","hotmail.cz","hotmail.de","hotmail.dk","hotmail.es","hotmail.fr","hotmail.hu","hotmail.id","hotmail.ie","hotmail.in","hotmail.it","hotmail.jp","hotmail.kr","hotmail.lv","hotmail.my","hotmail.ph","hotmail.pt","hotmail.sa","hotmail.sg","hotmail.sk","live.be","live.co.uk","live.com","live.com.ar","live.com.mx","live.de","live.es","live.eu","live.fr","live.it","live.nl","msn.com","outlook.at","outlook.be","outlook.cl","outlook.co.il","outlook.co.nz","outlook.co.th","outlook.com","outlook.com.ar","outlook.com.au","outlook.com.br","outlook.com.gr","outlook.com.pe","outlook.com.tr","outlook.com.vn","outlook.cz","outlook.de","outlook.dk","outlook.es","outlook.fr","outlook.hu","outlook.id","outlook.ie","outlook.in","outlook.it","outlook.jp","outlook.kr","outlook.lv","outlook.my","outlook.ph","outlook.pt","outlook.sa","outlook.sg","outlook.sk","passport.com"],o=["rocketmail.com","yahoo.ca","yahoo.co.uk","yahoo.com","yahoo.de","yahoo.fr","yahoo.in","yahoo.it","ymail.com"],s=["yandex.ru","yandex.ua","yandex.kz","yandex.com","yandex.by","ya.ru"];function u(e){return e.length>1?e:""}e.exports=t.default,e.exports.default=t.default}(sS,sS.exports);var uS={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e),r.test(e)};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r=/^[^\s-_](?!.*?[-_]{2,})[a-z0-9-\\][^\s]*[^-_\s]$/;e.exports=t.default,e.exports.default=t.default}(uS,uS.exports);var cS={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,n.default)(e),t in r)return r[t](e);if("any"===t){for(var i in r){if((0,r[i])(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))};var n=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var r={"cs-CZ":function(e){return/^(([ABCDEFHIJKLMNPRSTUVXYZ]|[0-9])-?){5,8}$/.test(e)},"de-DE":function(e){return/^((A|AA|AB|AC|AE|AH|AK|AM|AN|AÖ|AP|AS|AT|AU|AW|AZ|B|BA|BB|BC|BE|BF|BH|BI|BK|BL|BM|BN|BO|BÖ|BS|BT|BZ|C|CA|CB|CE|CO|CR|CW|D|DA|DD|DE|DH|DI|DL|DM|DN|DO|DU|DW|DZ|E|EA|EB|ED|EE|EF|EG|EH|EI|EL|EM|EN|ER|ES|EU|EW|F|FB|FD|FF|FG|FI|FL|FN|FO|FR|FS|FT|FÜ|FW|FZ|G|GA|GC|GD|GE|GF|GG|GI|GK|GL|GM|GN|GÖ|GP|GR|GS|GT|GÜ|GV|GW|GZ|H|HA|HB|HC|HD|HE|HF|HG|HH|HI|HK|HL|HM|HN|HO|HP|HR|HS|HU|HV|HX|HY|HZ|IK|IL|IN|IZ|J|JE|JL|K|KA|KB|KC|KE|KF|KG|KH|KI|KK|KL|KM|KN|KO|KR|KS|KT|KU|KW|KY|L|LA|LB|LC|LD|LF|LG|LH|LI|LL|LM|LN|LÖ|LP|LR|LU|M|MA|MB|MC|MD|ME|MG|MH|MI|MK|ML|MM|MN|MO|MQ|MR|MS|MÜ|MW|MY|MZ|N|NB|ND|NE|NF|NH|NI|NK|NM|NÖ|NP|NR|NT|NU|NW|NY|NZ|OA|OB|OC|OD|OE|OF|OG|OH|OK|OL|OP|OS|OZ|P|PA|PB|PE|PF|PI|PL|PM|PN|PR|PS|PW|PZ|R|RA|RC|RD|RE|RG|RH|RI|RL|RM|RN|RO|RP|RS|RT|RU|RV|RW|RZ|S|SB|SC|SE|SG|SI|SK|SL|SM|SN|SO|SP|SR|ST|SU|SW|SY|SZ|TE|TF|TG|TO|TP|TR|TS|TT|TÜ|ÜB|UE|UH|UL|UM|UN|V|VB|VG|VK|VR|VS|W|WA|WB|WE|WF|WI|WK|WL|WM|WN|WO|WR|WS|WT|WÜ|WW|WZ|Z|ZE|ZI|ZP|ZR|ZW|ZZ)[- ]?[A-Z]{1,2}[- ]?\d{1,4}|(ABG|ABI|AIB|AIC|ALF|ALZ|ANA|ANG|ANK|APD|ARN|ART|ASL|ASZ|AUR|AZE|BAD|BAR|BBG|BCH|BED|BER|BGD|BGL|BID|BIN|BIR|BIT|BIW|BKS|BLB|BLK|BNA|BOG|BOH|BOR|BOT|BRA|BRB|BRG|BRK|BRL|BRV|BSB|BSK|BTF|BÜD|BUL|BÜR|BÜS|BÜZ|CAS|CHA|CLP|CLZ|COC|COE|CUX|DAH|DAN|DAU|DBR|DEG|DEL|DGF|DIL|DIN|DIZ|DKB|DLG|DON|DUD|DÜW|EBE|EBN|EBS|ECK|EIC|EIL|EIN|EIS|EMD|EMS|ERB|ERH|ERK|ERZ|ESB|ESW|FDB|FDS|FEU|FFB|FKB|FLÖ|FOR|FRG|FRI|FRW|FTL|FÜS|GAN|GAP|GDB|GEL|GEO|GER|GHA|GHC|GLA|GMN|GNT|GOA|GOH|GRA|GRH|GRI|GRM|GRZ|GTH|GUB|GUN|GVM|HAB|HAL|HAM|HAS|HBN|HBS|HCH|HDH|HDL|HEB|HEF|HEI|HER|HET|HGN|HGW|HHM|HIG|HIP|HMÜ|HOG|HOH|HOL|HOM|HOR|HÖS|HOT|HRO|HSK|HST|HVL|HWI|IGB|ILL|JÜL|KEH|KEL|KEM|KIB|KLE|KLZ|KÖN|KÖT|KÖZ|KRU|KÜN|KUS|KYF|LAN|LAU|LBS|LBZ|LDK|LDS|LEO|LER|LEV|LIB|LIF|LIP|LÖB|LOS|LRO|LSZ|LÜN|LUP|LWL|MAB|MAI|MAK|MAL|MED|MEG|MEI|MEK|MEL|MER|MET|MGH|MGN|MHL|MIL|MKK|MOD|MOL|MON|MOS|MSE|MSH|MSP|MST|MTK|MTL|MÜB|MÜR|MYK|MZG|NAB|NAI|NAU|NDH|NEA|NEB|NEC|NEN|NES|NEW|NMB|NMS|NOH|NOL|NOM|NOR|NVP|NWM|OAL|OBB|OBG|OCH|OHA|ÖHR|OHV|OHZ|OPR|OSL|OVI|OVL|OVP|PAF|PAN|PAR|PCH|PEG|PIR|PLÖ|PRÜ|QFT|QLB|RDG|REG|REH|REI|RID|RIE|ROD|ROF|ROK|ROL|ROS|ROT|ROW|RSL|RÜD|RÜG|SAB|SAD|SAN|SAW|SBG|SBK|SCZ|SDH|SDL|SDT|SEB|SEE|SEF|SEL|SFB|SFT|SGH|SHA|SHG|SHK|SHL|SIG|SIM|SLE|SLF|SLK|SLN|SLS|SLÜ|SLZ|SMÜ|SOB|SOG|SOK|SÖM|SON|SPB|SPN|SRB|SRO|STA|STB|STD|STE|STL|SUL|SÜW|SWA|SZB|TBB|TDO|TET|TIR|TÖL|TUT|UEM|UER|UFF|USI|VAI|VEC|VER|VIB|VIE|VIT|VOH|WAF|WAK|WAN|WAR|WAT|WBS|WDA|WEL|WEN|WER|WES|WHV|WIL|WIS|WIT|WIZ|WLG|WMS|WND|WOB|WOH|WOL|WOR|WOS|WRN|WSF|WST|WSW|WTL|WTM|WUG|WÜM|WUN|WUR|WZL|ZEL|ZIG)[- ]?(([A-Z][- ]?\d{1,4})|([A-Z]{2}[- ]?\d{1,3})))[- ]?(E|H)?$/.test(e)},"de-LI":function(e){return/^FL[- ]?\d{1,5}[UZ]?$/.test(e)},"en-IN":function(e){return/^[A-Z]{2}[ -]?[0-9]{1,2}(?:[ -]?[A-Z])(?:[ -]?[A-Z]*)?[ -]?[0-9]{4}$/.test(e)},"es-AR":function(e){return/^(([A-Z]{2} ?[0-9]{3} ?[A-Z]{2})|([A-Z]{3} ?[0-9]{3}))$/.test(e)},"fi-FI":function(e){return/^(?=.{4,7})(([A-Z]{1,3}|[0-9]{1,3})[\s-]?([A-Z]{1,3}|[0-9]{1,5}))$/.test(e)},"hu-HU":function(e){return/^((((?!AAA)(([A-NPRSTVZWXY]{1})([A-PR-Z]{1})([A-HJ-NPR-Z]))|(A[ABC]I)|A[ABC]O|A[A-W]Q|BPI|BPO|UCO|UDO|XAO)-(?!000)\d{3})|(M\d{6})|((CK|DT|CD|HC|H[ABEFIKLMNPRSTVX]|MA|OT|R[A-Z]) \d{2}-\d{2})|(CD \d{3}-\d{3})|(C-(C|X) \d{4})|(X-(A|B|C) \d{4})|(([EPVZ]-\d{5}))|(S A[A-Z]{2} \d{2})|(SP \d{2}-\d{2}))$/.test(e)},"pt-BR":function(e){return/^[A-Z]{3}[ -]?[0-9][A-Z][0-9]{2}|[A-Z]{3}[ -]?[0-9]{4}$/.test(e)},"pt-PT":function(e){return/^([A-Z]{2}|[0-9]{2})[ -·]?([A-Z]{2}|[0-9]{2})[ -·]?([A-Z]{2}|[0-9]{2})$/.test(e)},"sq-AL":function(e){return/^[A-Z]{2}[- ]?((\d{3}[- ]?(([A-Z]{2})|T))|(R[- ]?\d{3}))$/.test(e)},"sv-SE":function(e){return/^[A-HJ-PR-UW-Z]{3} ?[\d]{2}[A-HJ-PR-UW-Z1-9]$|(^[A-ZÅÄÖ ]{2,7}$)/.test(e.trim())}};e.exports=t.default,e.exports.default=t.default}(cS,cS.exports);var dS={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;(0,r.default)(e);var i=function(e){var t=function(e){var t={};return Array.from(e).forEach((function(e){t[e]?t[e]+=1:t[e]=1})),t}(e),n={length:e.length,uniqueChars:Object.keys(t).length,uppercaseCount:0,lowercaseCount:0,numberCount:0,symbolCount:0};return Object.keys(t).forEach((function(e){a.test(e)?n.uppercaseCount+=t[e]:o.test(e)?n.lowercaseCount+=t[e]:s.test(e)?n.numberCount+=t[e]:u.test(e)&&(n.symbolCount+=t[e])})),n}(e);if(t=(0,n.default)(t||{},c),t.returnScore)return function(e,t){var n=0;n+=e.uniqueChars*t.pointsPerUnique,n+=(e.length-e.uniqueChars)*t.pointsPerRepeat,e.lowercaseCount>0&&(n+=t.pointsForContainingLower);e.uppercaseCount>0&&(n+=t.pointsForContainingUpper);e.numberCount>0&&(n+=t.pointsForContainingNumber);e.symbolCount>0&&(n+=t.pointsForContainingSymbol);return n}(i,t);return i.length>=t.minLength&&i.lowercaseCount>=t.minLowercase&&i.uppercaseCount>=t.minUppercase&&i.numberCount>=t.minNumbers&&i.symbolCount>=t.minSymbols};var n=i(Jx.exports),r=i(yx.exports);function i(e){return e&&e.__esModule?e:{default:e}}var a=/^[A-Z]$/,o=/^[a-z]$/,s=/^[0-9]$/,u=/^[-#!$@£%^&*()_+|~=`{}\[\]:";'<>?,.\/ ]$/,c={minLength:8,minLowercase:1,minUppercase:1,minNumbers:1,minSymbols:1,returnScore:!1,pointsPerUnique:1,pointsPerRepeat:.5,pointsForContainingLower:10,pointsForContainingUpper:10,pointsForContainingNumber:10,pointsForContainingSymbol:10};e.exports=t.default,e.exports.default=t.default}(dS,dS.exports);var lS={};function fS(e){return fS="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},fS(e)}Object.defineProperty(lS,"__esModule",{value:!0}),lS.default=function(e,t){if((0,pS.default)(e),(0,pS.default)(t),t in vS)return vS[t](e);throw new Error("Invalid country code: '".concat(t,"'"))},lS.vatMatchers=void 0;var pS=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports),hS=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==fS(e)&&"function"!=typeof e)return{default:e};var t=mS();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=r?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(wE);function mS(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return mS=function(){return e},e}var vS={AT:function(e){return/^(AT)?U\d{8}$/.test(e)},BE:function(e){return/^(BE)?\d{10}$/.test(e)},BG:function(e){return/^(BG)?\d{9,10}$/.test(e)},HR:function(e){return/^(HR)?\d{11}$/.test(e)},CY:function(e){return/^(CY)?\w{9}$/.test(e)},CZ:function(e){return/^(CZ)?\d{8,10}$/.test(e)},DK:function(e){return/^(DK)?\d{8}$/.test(e)},EE:function(e){return/^(EE)?\d{9}$/.test(e)},FI:function(e){return/^(FI)?\d{8}$/.test(e)},FR:function(e){return/^(FR)?\w{2}\d{9}$/.test(e)},DE:function(e){return/^(DE)?\d{9}$/.test(e)},EL:function(e){return/^(EL)?\d{9}$/.test(e)},HU:function(e){return/^(HU)?\d{8}$/.test(e)},IE:function(e){return/^(IE)?\d{7}\w{1}(W)?$/.test(e)},IT:function(e){return/^(IT)?\d{11}$/.test(e)},LV:function(e){return/^(LV)?\d{11}$/.test(e)},LT:function(e){return/^(LT)?\d{9,12}$/.test(e)},LU:function(e){return/^(LU)?\d{8}$/.test(e)},MT:function(e){return/^(MT)?\d{8}$/.test(e)},NL:function(e){return/^(NL)?\d{9}B\d{2}$/.test(e)},PL:function(e){return/^(PL)?(\d{10}|(\d{3}-\d{3}-\d{2}-\d{2})|(\d{3}-\d{2}-\d{2}-\d{3}))$/.test(e)},PT:function(e){var t=e.match(/^(PT)?(\d{9})$/);if(!t)return!1;var n=t[2],r=11-hS.reverseMultiplyAndSum(n.split("").slice(0,8).map((function(e){return parseInt(e,10)})),9)%11;return r>9?0===parseInt(n[8],10):r===parseInt(n[8],10)},RO:function(e){return/^(RO)?\d{2,10}$/.test(e)},SK:function(e){return/^(SK)?\d{10}$/.test(e)},SI:function(e){return/^(SI)?\d{8}$/.test(e)},ES:function(e){return/^(ES)?\w\d{7}[A-Z]$/.test(e)},SE:function(e){return/^(SE)?\d{12}$/.test(e)},AL:function(e){return/^(AL)?\w{9}[A-Z]$/.test(e)},MK:function(e){return/^(MK)?\d{13}$/.test(e)},AU:function(e){return/^(AU)?\d{11}$/.test(e)},BY:function(e){return/^(УНП )?\d{9}$/.test(e)},CA:function(e){return/^(CA)?\d{9}$/.test(e)},IS:function(e){return/^(IS)?\d{5,6}$/.test(e)},IN:function(e){return/^(IN)?\d{15}$/.test(e)},ID:function(e){return/^(ID)?(\d{15}|(\d{2}.\d{3}.\d{3}.\d{1}-\d{3}.\d{3}))$/.test(e)},IL:function(e){return/^(IL)?\d{9}$/.test(e)},KZ:function(e){return/^(KZ)?\d{9}$/.test(e)},NZ:function(e){return/^(NZ)?\d{9}$/.test(e)},NG:function(e){return/^(NG)?(\d{12}|(\d{8}-\d{4}))$/.test(e)},NO:function(e){return/^(NO)?\d{9}MVA$/.test(e)},PH:function(e){return/^(PH)?(\d{12}|\d{3} \d{3} \d{3} \d{3})$/.test(e)},RU:function(e){return/^(RU)?(\d{10}|\d{12})$/.test(e)},SM:function(e){return/^(SM)?\d{5}$/.test(e)},SA:function(e){return/^(SA)?\d{15}$/.test(e)},RS:function(e){return/^(RS)?\d{9}$/.test(e)},CH:function(e){return/^(CH)?(\d{6}|\d{9}|(\d{3}.\d{3})|(\d{3}.\d{3}.\d{3}))(TVA|MWST|IVA)$/.test(e)},TR:function(e){return/^(TR)?\d{10}$/.test(e)},UA:function(e){return/^(UA)?\d{12}$/.test(e)},GB:function(e){return/^GB((\d{3} \d{4} ([0-8][0-9]|9[0-6]))|(\d{9} \d{3})|(((GD[0-4])|(HA[5-9]))[0-9]{2}))$/.test(e)},UZ:function(e){return/^(UZ)?\d{9}$/.test(e)},AR:function(e){return/^(AR)?\d{11}$/.test(e)},BO:function(e){return/^(BO)?\d{7}$/.test(e)},BR:function(e){return/^(BR)?((\d{2}.\d{3}.\d{3}\/\d{4}-\d{2})|(\d{3}.\d{3}.\d{3}-\d{2}))$/.test(e)},CL:function(e){return/^(CL)?\d{8}-\d{1}$/.test(e)},CO:function(e){return/^(CO)?\d{10}$/.test(e)},CR:function(e){return/^(CR)?\d{9,12}$/.test(e)},EC:function(e){return/^(EC)?\d{13}$/.test(e)},SV:function(e){return/^(SV)?\d{4}-\d{6}-\d{3}-\d{1}$/.test(e)},GT:function(e){return/^(GT)?\d{7}-\d{1}$/.test(e)},HN:function(e){return/^(HN)?$/.test(e)},MX:function(e){return/^(MX)?\w{3,4}\d{6}\w{3}$/.test(e)},NI:function(e){return/^(NI)?\d{3}-\d{6}-\d{4}\w{1}$/.test(e)},PA:function(e){return/^(PA)?$/.test(e)},PY:function(e){return/^(PY)?\d{6,8}-\d{1}$/.test(e)},PE:function(e){return/^(PE)?\d{11}$/.test(e)},DO:function(e){return/^(DO)?(\d{11}|(\d{3}-\d{7}-\d{1})|[1,4,5]{1}\d{8}|([1,4,5]{1})-\d{2}-\d{5}-\d{1})$/.test(e)},UY:function(e){return/^(UY)?\d{12}$/.test(e)},VE:function(e){return/^(VE)?[J,G,V,E]{1}-(\d{9}|(\d{8}-\d{1}))$/.test(e)}};lS.vatMatchers=vS,function(e,t){function n(e){return n="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},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=Ke(bx.exports),i=Ke(_x.exports),a=Ke(Kx.exports),o=Ke(qx.exports),s=Ke(Wx.exports),u=Ke(Yx.exports),c=Ke(Xx.exports),d=Ke(ek.exports),l=Ke(ik.exports),f=Ke(ak.exports),p=Ke(rk.exports),h=Ke(ok.exports),m=Ke(nk.exports),v=Ke(sk.exports),g=Ke(uk.exports),A=Ke(ck.exports),b=Ke(dk.exports),y=Ve(lk),_=Ve(mk),w=Ke(bk.exports),x=Ke(yk.exports),k=Ke(_k.exports),E=Ke(xk.exports),S=Ke(kk.exports),D=Ke(Ek.exports),I=Ke(Sk.exports),R=Ke(Dk),C=Ke(Ck),O=Ke(Pk.exports),T=Ke(Lk.exports),P=Ke(Mk.exports),L=Ke(jk.exports),M=Ke(wk.exports),B=Ve(wx),j=Ke(Uk.exports),U=Ke(Nk.exports),F=Ke($k.exports),N=Ke(Gk.exports),$=Ke(Hk.exports),G=Ke(zk.exports),H=Ke(Zk.exports),z=Ke(Vk.exports),Z=Ve(Kk),V=Ke(Qk.exports),K=Ke(nE.exports),q=Ke(rE.exports),W=Ke(iE.exports),Y=Ke(oE.exports),Q=Ke(sE.exports),J=Ke(uE.exports),X=Ke(tk.exports),ee=Ke(cE.exports),te=Ke(dE.exports),ne=Ke(lE.exports),re=Ke(fE.exports),ie=Ke(pE.exports),ae=Ke(hE.exports),oe=Ke(mE.exports),se=Ke(vE.exports),ue=Ke(gE.exports),ce=Ke(AE.exports),de=Ke(bE.exports),le=Ke(yE.exports),fe=Ke(_E.exports),pe=Ve(xE),he=Ke(DE.exports),me=Ke(IE.exports),ve=Ke(RE.exports),ge=Ke(CE.exports),Ae=Ke(OE.exports),be=Ke(TE.exports),ye=Ke(Jk),_e=Ke(PE.exports),we=Ke(LE),xe=Ke(UE.exports),ke=Ke(FE.exports),Ee=Ke(aE.exports),Se=Ke(NE.exports),De=Ke($E.exports),Ie=Ke(GE.exports),Re=Ke(HE.exports),Ce=Ve(zE),Oe=Ke(JE.exports),Te=Ke(XE.exports),Pe=Ke(eS.exports),Le=Ke(tS.exports),Me=Ke(nS.exports),Be=Ke(rS.exports),je=Ke(aS.exports),Ue=Ke(iS.exports),Fe=Ke(oS.exports),Ne=Ke(sS.exports),$e=Ke(uS.exports),Ge=Ke(cS.exports),He=Ke(dS.exports),ze=Ke(lS);function Ze(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return Ze=function(){return e},e}function Ve(e){if(e&&e.__esModule)return e;if(null===e||"object"!==n(e)&&"function"!=typeof e)return{default:e};var t=Ze();if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=i?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=e[a]}return r.default=e,t&&t.set(e,r),r}function Ke(e){return e&&e.__esModule?e:{default:e}}var qe={version:"13.9.0",toDate:r.default,toFloat:i.default,toInt:a.default,toBoolean:o.default,equals:s.default,contains:u.default,matches:c.default,isEmail:d.default,isURL:l.default,isMACAddress:f.default,isIP:p.default,isIPRange:h.default,isFQDN:m.default,isBoolean:A.default,isIBAN:Z.default,isBIC:V.default,isAlpha:y.default,isAlphaLocales:y.locales,isAlphanumeric:_.default,isAlphanumericLocales:_.locales,isNumeric:w.default,isPassportNumber:x.default,isPort:k.default,isLowercase:E.default,isUppercase:S.default,isAscii:I.default,isFullWidth:R.default,isHalfWidth:C.default,isVariableWidth:O.default,isMultibyte:T.default,isSemVer:P.default,isSurrogatePair:L.default,isInt:M.default,isIMEI:D.default,isFloat:B.default,isFloatLocales:B.locales,isDecimal:j.default,isHexadecimal:U.default,isOctal:F.default,isDivisibleBy:N.default,isHexColor:$.default,isRgbColor:G.default,isHSL:H.default,isISRC:z.default,isMD5:K.default,isHash:q.default,isJWT:W.default,isJSON:Y.default,isEmpty:Q.default,isLength:J.default,isLocale:b.default,isByteLength:X.default,isUUID:ee.default,isMongoId:te.default,isAfter:ne.default,isBefore:re.default,isIn:ie.default,isLuhnNumber:ae.default,isCreditCard:oe.default,isIdentityCard:se.default,isEAN:ue.default,isISIN:ce.default,isISBN:de.default,isISSN:le.default,isMobilePhone:pe.default,isMobilePhoneLocales:pe.locales,isPostalCode:Ce.default,isPostalCodeLocales:Ce.locales,isEthereumAddress:he.default,isCurrency:me.default,isBtcAddress:ve.default,isISO6391:ge.default,isISO8601:Ae.default,isRFC3339:be.default,isISO31661Alpha2:ye.default,isISO31661Alpha3:_e.default,isISO4217:we.default,isBase32:xe.default,isBase58:ke.default,isBase64:Ee.default,isDataURI:Se.default,isMagnetURI:De.default,isMimeType:Ie.default,isLatLong:Re.default,ltrim:Oe.default,rtrim:Te.default,trim:Pe.default,escape:Le.default,unescape:Me.default,stripLow:Be.default,whitelist:je.default,blacklist:Ue.default,isWhitelisted:Fe.default,normalizeEmail:Ne.default,toString:toString,isSlug:$e.default,isStrongPassword:He.default,isTaxID:fe.default,isDate:v.default,isTime:g.default,isLicensePlate:Ge.default,isVAT:ze.default,ibanLocales:Z.locales};t.default=qe,e.exports=t.default,e.exports.default=t.default}(Ax,Ax.exports);var gS=a(Ax.exports);const AS=2147483647,bS=36,yS=/^xn--/,_S=/[^\0-\x7F]/,wS=/[\x2E\u3002\uFF0E\uFF61]/g,xS={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},kS=Math.floor,ES=String.fromCharCode;function SS(e){throw new RangeError(xS[e])}function DS(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]);const i=function(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}((e=e.replace(wS,".")).split("."),t).join(".");return r+i}function IS(e){const t=[];let n=0;const r=e.length;for(;n<r;){const i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const r=e.charCodeAt(n++);56320==(64512&r)?t.push(((1023&i)<<10)+(1023&r)+65536):(t.push(i),n--)}else t.push(i)}return t}const RS=e=>String.fromCodePoint(...e),CS=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},OS=function(e,t,n){let r=0;for(e=n?kS(e/700):e>>1,e+=kS(e/t);e>455;r+=bS)e=kS(e/35);return kS(r+36*e/(e+38))},TS=function(e){const t=[],n=e.length;let r=0,i=128,a=72,o=e.lastIndexOf("-");o<0&&(o=0);for(let n=0;n<o;++n)e.charCodeAt(n)>=128&&SS("not-basic"),t.push(e.charCodeAt(n));for(let u=o>0?o+1:0;u<n;){const o=r;for(let t=1,i=bS;;i+=bS){u>=n&&SS("invalid-input");const o=(s=e.charCodeAt(u++))>=48&&s<58?s-48+26:s>=65&&s<91?s-65:s>=97&&s<123?s-97:bS;o>=bS&&SS("invalid-input"),o>kS((AS-r)/t)&&SS("overflow"),r+=o*t;const c=i<=a?1:i>=a+26?26:i-a;if(o<c)break;const d=bS-c;t>kS(AS/d)&&SS("overflow"),t*=d}const c=t.length+1;a=OS(r-o,c,0==o),kS(r/c)>AS-i&&SS("overflow"),i+=kS(r/c),r%=c,t.splice(r++,0,i)}var s;return String.fromCodePoint(...t)},PS=function(e){const t=[],n=(e=IS(e)).length;let r=128,i=0,a=72;for(const n of e)n<128&&t.push(ES(n));const o=t.length;let s=o;for(o&&t.push("-");s<n;){let n=AS;for(const t of e)t>=r&&t<n&&(n=t);const u=s+1;n-r>kS((AS-i)/u)&&SS("overflow"),i+=(n-r)*u,r=n;for(const n of e)if(n<r&&++i>AS&&SS("overflow"),n===r){let e=i;for(let n=bS;;n+=bS){const r=n<=a?1:n>=a+26?26:n-a;if(e<r)break;const i=e-r,o=bS-r;t.push(ES(CS(r+i%o,0))),e=kS(i/o)}t.push(ES(CS(e,0))),a=OS(i,u,s===o),i=0,++s}++i,++r}return t.join("")},LS=function(e){return DS(e,(function(e){return yS.test(e)?TS(e.slice(4).toLowerCase()):e}))},MS=function(e){return DS(e,(function(e){return _S.test(e)?"xn--"+PS(e):e}))},BS={version:"2.1.0",ucs2:{decode:IS,encode:RS},decode:TS,encode:PS,toASCII:MS,toUnicode:LS};var jS=Object.freeze({__proto__:null,ucs2decode:IS,ucs2encode:RS,decode:TS,encode:PS,toASCII:MS,toUnicode:LS,default:BS}),US=o(jS),FS={"com.ac":!0,"net.ac":!0,"gov.ac":!0,"org.ac":!0,"mil.ac":!0,"co.ae":!0,"net.ae":!0,"gov.ae":!0,"ac.ae":!0,"sch.ae":!0,"org.ae":!0,"mil.ae":!0,"pro.ae":!0,"name.ae":!0,"com.af":!0,"edu.af":!0,"gov.af":!0,"net.af":!0,"org.af":!0,"com.al":!0,"edu.al":!0,"gov.al":!0,"mil.al":!0,"net.al":!0,"org.al":!0,"ed.ao":!0,"gv.ao":!0,"og.ao":!0,"co.ao":!0,"pb.ao":!0,"it.ao":!0,"com.ar":!0,"edu.ar":!0,"gob.ar":!0,"gov.ar":!0,"int.ar":!0,"mil.ar":!0,"net.ar":!0,"org.ar":!0,"tur.ar":!0,"gv.at":!0,"ac.at":!0,"co.at":!0,"or.at":!0,"com.au":!0,"net.au":!0,"org.au":!0,"edu.au":!0,"gov.au":!0,"csiro.au":!0,"asn.au":!0,"id.au":!0,"vic.au":!0,"sa.au":!0,"wa.au":!0,"nt.au":!0,"tas.au":!0,"qld.au":!0,"act.au":!0,"conf.au":!0,"oz.au":!0,"org.ba":!0,"net.ba":!0,"edu.ba":!0,"gov.ba":!0,"mil.ba":!0,"unsa.ba":!0,"untz.ba":!0,"unmo.ba":!0,"unbi.ba":!0,"unze.ba":!0,"co.ba":!0,"com.ba":!0,"rs.ba":!0,"co.bb":!0,"com.bb":!0,"net.bb":!0,"org.bb":!0,"gov.bb":!0,"edu.bb":!0,"info.bb":!0,"store.bb":!0,"tv.bb":!0,"biz.bb":!0,"com.bh":!0,"info.bh":!0,"cc.bh":!0,"edu.bh":!0,"biz.bh":!0,"net.bh":!0,"org.bh":!0,"gov.bh":!0,"com.bn":!0,"edu.bn":!0,"gov.bn":!0,"net.bn":!0,"org.bn":!0,"com.bo":!0,"net.bo":!0,"org.bo":!0,"tv.bo":!0,"mil.bo":!0,"int.bo":!0,"gob.bo":!0,"gov.bo":!0,"edu.bo":!0,"adm.br":!0,"adv.br":!0,"agr.br":!0,"am.br":!0,"arq.br":!0,"art.br":!0,"ato.br":!0,"b.br":!0,"bio.br":!0,"blog.br":!0,"bmd.br":!0,"cim.br":!0,"cng.br":!0,"cnt.br":!0,"com.br":!0,"coop.br":!0,"ecn.br":!0,"edu.br":!0,"eng.br":!0,"esp.br":!0,"etc.br":!0,"eti.br":!0,"far.br":!0,"flog.br":!0,"fm.br":!0,"fnd.br":!0,"fot.br":!0,"fst.br":!0,"g12.br":!0,"ggf.br":!0,"gov.br":!0,"imb.br":!0,"ind.br":!0,"inf.br":!0,"jor.br":!0,"jus.br":!0,"lel.br":!0,"mat.br":!0,"med.br":!0,"mil.br":!0,"mus.br":!0,"net.br":!0,"nom.br":!0,"not.br":!0,"ntr.br":!0,"odo.br":!0,"org.br":!0,"ppg.br":!0,"pro.br":!0,"psc.br":!0,"psi.br":!0,"qsl.br":!0,"rec.br":!0,"slg.br":!0,"srv.br":!0,"tmp.br":!0,"trd.br":!0,"tur.br":!0,"tv.br":!0,"vet.br":!0,"vlog.br":!0,"wiki.br":!0,"zlg.br":!0,"com.bs":!0,"net.bs":!0,"org.bs":!0,"edu.bs":!0,"gov.bs":!0,"om.bz":!0,"du.bz":!0,"ov.bz":!0,"et.bz":!0,"rg.bz":!0,"ab.ca":!0,"bc.ca":!0,"mb.ca":!0,"nb.ca":!0,"nf.ca":!0,"nl.ca":!0,"ns.ca":!0,"nt.ca":!0,"nu.ca":!0,"on.ca":!0,"pe.ca":!0,"qc.ca":!0,"sk.ca":!0,"yk.ca":!0,"co.ck":!0,"org.ck":!0,"edu.ck":!0,"gov.ck":!0,"net.ck":!0,"gen.ck":!0,"biz.ck":!0,"info.ck":!0,"ac.cn":!0,"com.cn":!0,"edu.cn":!0,"gov.cn":!0,"mil.cn":!0,"net.cn":!0,"org.cn":!0,"ah.cn":!0,"bj.cn":!0,"cq.cn":!0,"fj.cn":!0,"gd.cn":!0,"gs.cn":!0,"gz.cn":!0,"gx.cn":!0,"ha.cn":!0,"hb.cn":!0,"he.cn":!0,"hi.cn":!0,"hl.cn":!0,"hn.cn":!0,"jl.cn":!0,"js.cn":!0,"jx.cn":!0,"ln.cn":!0,"nm.cn":!0,"nx.cn":!0,"qh.cn":!0,"sc.cn":!0,"sd.cn":!0,"sh.cn":!0,"sn.cn":!0,"sx.cn":!0,"tj.cn":!0,"tw.cn":!0,"xj.cn":!0,"xz.cn":!0,"yn.cn":!0,"zj.cn":!0,"com.co":!0,"org.co":!0,"edu.co":!0,"gov.co":!0,"net.co":!0,"mil.co":!0,"nom.co":!0,"ac.cr":!0,"co.cr":!0,"ed.cr":!0,"fi.cr":!0,"go.cr":!0,"or.cr":!0,"sa.cr":!0,cr:!0,"ac.cy":!0,"net.cy":!0,"gov.cy":!0,"org.cy":!0,"pro.cy":!0,"name.cy":!0,"ekloges.cy":!0,"tm.cy":!0,"ltd.cy":!0,"biz.cy":!0,"press.cy":!0,"parliament.cy":!0,"com.cy":!0,"edu.do":!0,"gob.do":!0,"gov.do":!0,"com.do":!0,"sld.do":!0,"org.do":!0,"net.do":!0,"web.do":!0,"mil.do":!0,"art.do":!0,"com.dz":!0,"org.dz":!0,"net.dz":!0,"gov.dz":!0,"edu.dz":!0,"asso.dz":!0,"pol.dz":!0,"art.dz":!0,"com.ec":!0,"info.ec":!0,"net.ec":!0,"fin.ec":!0,"med.ec":!0,"pro.ec":!0,"org.ec":!0,"edu.ec":!0,"gov.ec":!0,"mil.ec":!0,"com.eg":!0,"edu.eg":!0,"eun.eg":!0,"gov.eg":!0,"mil.eg":!0,"name.eg":!0,"net.eg":!0,"org.eg":!0,"sci.eg":!0,"com.er":!0,"edu.er":!0,"gov.er":!0,"mil.er":!0,"net.er":!0,"org.er":!0,"ind.er":!0,"rochest.er":!0,"w.er":!0,"com.es":!0,"nom.es":!0,"org.es":!0,"gob.es":!0,"edu.es":!0,"com.et":!0,"gov.et":!0,"org.et":!0,"edu.et":!0,"net.et":!0,"biz.et":!0,"name.et":!0,"info.et":!0,"ac.fj":!0,"biz.fj":!0,"com.fj":!0,"info.fj":!0,"mil.fj":!0,"name.fj":!0,"net.fj":!0,"org.fj":!0,"pro.fj":!0,"co.fk":!0,"org.fk":!0,"gov.fk":!0,"ac.fk":!0,"nom.fk":!0,"net.fk":!0,fr:!0,"tm.fr":!0,"asso.fr":!0,"nom.fr":!0,"prd.fr":!0,"presse.fr":!0,"com.fr":!0,"gouv.fr":!0,"co.gg":!0,"net.gg":!0,"org.gg":!0,"com.gh":!0,"edu.gh":!0,"gov.gh":!0,"org.gh":!0,"mil.gh":!0,"co.gl":!0,"com.gl":!0,"edu.gl":!0,"net.gl":!0,"org.gl":!0,"com.gn":!0,"ac.gn":!0,"gov.gn":!0,"org.gn":!0,"net.gn":!0,"com.gr":!0,"edu.gr":!0,"net.gr":!0,"org.gr":!0,"gov.gr":!0,"mil.gr":!0,"com.gt":!0,"edu.gt":!0,"net.gt":!0,"gob.gt":!0,"org.gt":!0,"mil.gt":!0,"ind.gt":!0,"com.gu":!0,"net.gu":!0,"gov.gu":!0,"org.gu":!0,"edu.gu":!0,"com.hk":!0,"edu.hk":!0,"gov.hk":!0,"idv.hk":!0,"net.hk":!0,"org.hk":!0,"2000.hu":!0,"agrar.hu":!0,"bolt.hu":!0,"casino.hu":!0,"city.hu":!0,"co.hu":!0,"erotica.hu":!0,"erotika.hu":!0,"film.hu":!0,"forum.hu":!0,"games.hu":!0,"hotel.hu":!0,"info.hu":!0,"ingatlan.hu":!0,"jogasz.hu":!0,"konyvelo.hu":!0,"lakas.hu":!0,"media.hu":!0,"news.hu":!0,"org.hu":!0,"priv.hu":!0,"reklam.hu":!0,"sex.hu":!0,"shop.hu":!0,"sport.hu":!0,"suli.huv":!0,"szex.hu":!0,"tm.hu":!0,"tozsde.hu":!0,"utazas.hu":!0,"video.hu":!0,"ac.id":!0,"co.id":!0,"net.id":!0,"or.id":!0,"web.id":!0,"sch.id":!0,"mil.id":!0,"go.id":!0,"war.net.id":!0,"my.id":!0,"biz.id":!0,"ac.il":!0,"co.il":!0,"org.il":!0,"net.il":!0,"k12.il":!0,"gov.il":!0,"muni.il":!0,"idf.il":!0,in:!0,"4fd.in":!0,"co.in":!0,"firm.in":!0,"net.in":!0,"org.in":!0,"gen.in":!0,"ind.in":!0,"ac.in":!0,"edu.in":!0,"res.in":!0,"ernet.in":!0,"gov.in":!0,"mil.in":!0,"nic.in":!0,iq:!0,"gov.iq":!0,"edu.iq":!0,"com.iq":!0,"mil.iq":!0,"org.iq":!0,"net.iq":!0,ir:!0,"ac.ir":!0,"co.ir":!0,"gov.ir":!0,"id.ir":!0,"net.ir":!0,"org.ir":!0,"sch.ir":!0,"dnssec.ir":!0,"gov.it":!0,"edu.it":!0,"co.je":!0,"net.je":!0,"org.je":!0,"com.jo":!0,"net.jo":!0,"gov.jo":!0,"edu.jo":!0,"org.jo":!0,"mil.jo":!0,"name.jo":!0,"sch.jo":!0,"ac.jp":!0,"ad.jp":!0,"co.jp":!0,"ed.jp":!0,"go.jp":!0,"gr.jp":!0,"lg.jp":!0,"ne.jp":!0,"or.jp":!0,"co.ke":!0,"or.ke":!0,"ne.ke":!0,"go.ke":!0,"ac.ke":!0,"sc.ke":!0,"me.ke":!0,"mobi.ke":!0,"info.ke":!0,"per.kh":!0,"com.kh":!0,"edu.kh":!0,"gov.kh":!0,"mil.kh":!0,"net.kh":!0,"org.kh":!0,"com.ki":!0,"biz.ki":!0,"de.ki":!0,"net.ki":!0,"info.ki":!0,"org.ki":!0,"gov.ki":!0,"edu.ki":!0,"mob.ki":!0,"tel.ki":!0,km:!0,"com.km":!0,"coop.km":!0,"asso.km":!0,"nom.km":!0,"presse.km":!0,"tm.km":!0,"medecin.km":!0,"notaires.km":!0,"pharmaciens.km":!0,"veterinaire.km":!0,"edu.km":!0,"gouv.km":!0,"mil.km":!0,"net.kn":!0,"org.kn":!0,"edu.kn":!0,"gov.kn":!0,kr:!0,"co.kr":!0,"ne.kr":!0,"or.kr":!0,"re.kr":!0,"pe.kr":!0,"go.kr":!0,"mil.kr":!0,"ac.kr":!0,"hs.kr":!0,"ms.kr":!0,"es.kr":!0,"sc.kr":!0,"kg.kr":!0,"seoul.kr":!0,"busan.kr":!0,"daegu.kr":!0,"incheon.kr":!0,"gwangju.kr":!0,"daejeon.kr":!0,"ulsan.kr":!0,"gyeonggi.kr":!0,"gangwon.kr":!0,"chungbuk.kr":!0,"chungnam.kr":!0,"jeonbuk.kr":!0,"jeonnam.kr":!0,"gyeongbuk.kr":!0,"gyeongnam.kr":!0,"jeju.kr":!0,"edu.kw":!0,"com.kw":!0,"net.kw":!0,"org.kw":!0,"gov.kw":!0,"com.ky":!0,"org.ky":!0,"net.ky":!0,"edu.ky":!0,"gov.ky":!0,"com.kz":!0,"edu.kz":!0,"gov.kz":!0,"mil.kz":!0,"net.kz":!0,"org.kz":!0,"com.lb":!0,"edu.lb":!0,"gov.lb":!0,"net.lb":!0,"org.lb":!0,"gov.lk":!0,"sch.lk":!0,"net.lk":!0,"int.lk":!0,"com.lk":!0,"org.lk":!0,"edu.lk":!0,"ngo.lk":!0,"soc.lk":!0,"web.lk":!0,"ltd.lk":!0,"assn.lk":!0,"grp.lk":!0,"hotel.lk":!0,"com.lr":!0,"edu.lr":!0,"gov.lr":!0,"org.lr":!0,"net.lr":!0,"com.lv":!0,"edu.lv":!0,"gov.lv":!0,"org.lv":!0,"mil.lv":!0,"id.lv":!0,"net.lv":!0,"asn.lv":!0,"conf.lv":!0,"com.ly":!0,"net.ly":!0,"gov.ly":!0,"plc.ly":!0,"edu.ly":!0,"sch.ly":!0,"med.ly":!0,"org.ly":!0,"id.ly":!0,ma:!0,"net.ma":!0,"ac.ma":!0,"org.ma":!0,"gov.ma":!0,"press.ma":!0,"co.ma":!0,"tm.mc":!0,"asso.mc":!0,"co.me":!0,"net.me":!0,"org.me":!0,"edu.me":!0,"ac.me":!0,"gov.me":!0,"its.me":!0,"priv.me":!0,"org.mg":!0,"nom.mg":!0,"gov.mg":!0,"prd.mg":!0,"tm.mg":!0,"edu.mg":!0,"mil.mg":!0,"com.mg":!0,"com.mk":!0,"org.mk":!0,"net.mk":!0,"edu.mk":!0,"gov.mk":!0,"inf.mk":!0,"name.mk":!0,"pro.mk":!0,"com.ml":!0,"net.ml":!0,"org.ml":!0,"edu.ml":!0,"gov.ml":!0,"presse.ml":!0,"gov.mn":!0,"edu.mn":!0,"org.mn":!0,"com.mo":!0,"edu.mo":!0,"gov.mo":!0,"net.mo":!0,"org.mo":!0,"com.mt":!0,"org.mt":!0,"net.mt":!0,"edu.mt":!0,"gov.mt":!0,"aero.mv":!0,"biz.mv":!0,"com.mv":!0,"coop.mv":!0,"edu.mv":!0,"gov.mv":!0,"info.mv":!0,"int.mv":!0,"mil.mv":!0,"museum.mv":!0,"name.mv":!0,"net.mv":!0,"org.mv":!0,"pro.mv":!0,"ac.mw":!0,"co.mw":!0,"com.mw":!0,"coop.mw":!0,"edu.mw":!0,"gov.mw":!0,"int.mw":!0,"museum.mw":!0,"net.mw":!0,"org.mw":!0,"com.mx":!0,"net.mx":!0,"org.mx":!0,"edu.mx":!0,"gob.mx":!0,"com.my":!0,"net.my":!0,"org.my":!0,"gov.my":!0,"edu.my":!0,"sch.my":!0,"mil.my":!0,"name.my":!0,"com.nf":!0,"net.nf":!0,"arts.nf":!0,"store.nf":!0,"web.nf":!0,"firm.nf":!0,"info.nf":!0,"other.nf":!0,"per.nf":!0,"rec.nf":!0,"com.ng":!0,"org.ng":!0,"gov.ng":!0,"edu.ng":!0,"net.ng":!0,"sch.ng":!0,"name.ng":!0,"mobi.ng":!0,"biz.ng":!0,"mil.ng":!0,"gob.ni":!0,"co.ni":!0,"com.ni":!0,"ac.ni":!0,"edu.ni":!0,"org.ni":!0,"nom.ni":!0,"net.ni":!0,"mil.ni":!0,"com.np":!0,"edu.np":!0,"gov.np":!0,"org.np":!0,"mil.np":!0,"net.np":!0,"edu.nr":!0,"gov.nr":!0,"biz.nr":!0,"info.nr":!0,"net.nr":!0,"org.nr":!0,"com.nr":!0,"com.om":!0,"co.om":!0,"edu.om":!0,"ac.om":!0,"sch.om":!0,"gov.om":!0,"net.om":!0,"org.om":!0,"mil.om":!0,"museum.om":!0,"biz.om":!0,"pro.om":!0,"med.om":!0,"edu.pe":!0,"gob.pe":!0,"nom.pe":!0,"mil.pe":!0,"sld.pe":!0,"org.pe":!0,"com.pe":!0,"net.pe":!0,"com.ph":!0,"net.ph":!0,"org.ph":!0,"mil.ph":!0,"ngo.ph":!0,"i.ph":!0,"gov.ph":!0,"edu.ph":!0,"com.pk":!0,"net.pk":!0,"edu.pk":!0,"org.pk":!0,"fam.pk":!0,"biz.pk":!0,"web.pk":!0,"gov.pk":!0,"gob.pk":!0,"gok.pk":!0,"gon.pk":!0,"gop.pk":!0,"gos.pk":!0,"pwr.pl":!0,"com.pl":!0,"biz.pl":!0,"net.pl":!0,"art.pl":!0,"edu.pl":!0,"org.pl":!0,"ngo.pl":!0,"gov.pl":!0,"info.pl":!0,"mil.pl":!0,"waw.pl":!0,"warszawa.pl":!0,"wroc.pl":!0,"wroclaw.pl":!0,"krakow.pl":!0,"katowice.pl":!0,"poznan.pl":!0,"lodz.pl":!0,"gda.pl":!0,"gdansk.pl":!0,"slupsk.pl":!0,"radom.pl":!0,"szczecin.pl":!0,"lublin.pl":!0,"bialystok.pl":!0,"olsztyn.pl":!0,"torun.pl":!0,"gorzow.pl":!0,"zgora.pl":!0,"biz.pr":!0,"com.pr":!0,"edu.pr":!0,"gov.pr":!0,"info.pr":!0,"isla.pr":!0,"name.pr":!0,"net.pr":!0,"org.pr":!0,"pro.pr":!0,"est.pr":!0,"prof.pr":!0,"ac.pr":!0,"com.ps":!0,"net.ps":!0,"org.ps":!0,"edu.ps":!0,"gov.ps":!0,"plo.ps":!0,"sec.ps":!0,"co.pw":!0,"ne.pw":!0,"or.pw":!0,"ed.pw":!0,"go.pw":!0,"belau.pw":!0,"arts.ro":!0,"com.ro":!0,"firm.ro":!0,"info.ro":!0,"nom.ro":!0,"nt.ro":!0,"org.ro":!0,"rec.ro":!0,"store.ro":!0,"tm.ro":!0,"www.ro":!0,"co.rs":!0,"org.rs":!0,"edu.rs":!0,"ac.rs":!0,"gov.rs":!0,"in.rs":!0,"com.sb":!0,"net.sb":!0,"edu.sb":!0,"org.sb":!0,"gov.sb":!0,"com.sc":!0,"net.sc":!0,"edu.sc":!0,"gov.sc":!0,"org.sc":!0,"co.sh":!0,"com.sh":!0,"org.sh":!0,"gov.sh":!0,"edu.sh":!0,"net.sh":!0,"nom.sh":!0,"com.sl":!0,"net.sl":!0,"org.sl":!0,"edu.sl":!0,"gov.sl":!0,"gov.st":!0,"saotome.st":!0,"principe.st":!0,"consulado.st":!0,"embaixada.st":!0,"org.st":!0,"edu.st":!0,"net.st":!0,"com.st":!0,"store.st":!0,"mil.st":!0,"co.st":!0,"edu.sv":!0,"gob.sv":!0,"com.sv":!0,"org.sv":!0,"red.sv":!0,"co.sz":!0,"ac.sz":!0,"org.sz":!0,"com.tr":!0,"gen.tr":!0,"org.tr":!0,"biz.tr":!0,"info.tr":!0,"av.tr":!0,"dr.tr":!0,"pol.tr":!0,"bel.tr":!0,"tsk.tr":!0,"bbs.tr":!0,"k12.tr":!0,"edu.tr":!0,"name.tr":!0,"net.tr":!0,"gov.tr":!0,"web.tr":!0,"tel.tr":!0,"tv.tr":!0,"co.tt":!0,"com.tt":!0,"org.tt":!0,"net.tt":!0,"biz.tt":!0,"info.tt":!0,"pro.tt":!0,"int.tt":!0,"coop.tt":!0,"jobs.tt":!0,"mobi.tt":!0,"travel.tt":!0,"museum.tt":!0,"aero.tt":!0,"cat.tt":!0,"tel.tt":!0,"name.tt":!0,"mil.tt":!0,"edu.tt":!0,"gov.tt":!0,"edu.tw":!0,"gov.tw":!0,"mil.tw":!0,"com.tw":!0,"net.tw":!0,"org.tw":!0,"idv.tw":!0,"game.tw":!0,"ebiz.tw":!0,"club.tw":!0,"com.mu":!0,"gov.mu":!0,"net.mu":!0,"org.mu":!0,"ac.mu":!0,"co.mu":!0,"or.mu":!0,"ac.mz":!0,"co.mz":!0,"edu.mz":!0,"org.mz":!0,"gov.mz":!0,"com.na":!0,"co.na":!0,"ac.nz":!0,"co.nz":!0,"cri.nz":!0,"geek.nz":!0,"gen.nz":!0,"govt.nz":!0,"health.nz":!0,"iwi.nz":!0,"maori.nz":!0,"mil.nz":!0,"net.nz":!0,"org.nz":!0,"parliament.nz":!0,"school.nz":!0,"abo.pa":!0,"ac.pa":!0,"com.pa":!0,"edu.pa":!0,"gob.pa":!0,"ing.pa":!0,"med.pa":!0,"net.pa":!0,"nom.pa":!0,"org.pa":!0,"sld.pa":!0,"com.pt":!0,"edu.pt":!0,"gov.pt":!0,"int.pt":!0,"net.pt":!0,"nome.pt":!0,"org.pt":!0,"publ.pt":!0,"com.py":!0,"edu.py":!0,"gov.py":!0,"mil.py":!0,"net.py":!0,"org.py":!0,"com.qa":!0,"edu.qa":!0,"gov.qa":!0,"mil.qa":!0,"net.qa":!0,"org.qa":!0,"asso.re":!0,"com.re":!0,"nom.re":!0,"ac.ru":!0,"adygeya.ru":!0,"altai.ru":!0,"amur.ru":!0,"arkhangelsk.ru":!0,"astrakhan.ru":!0,"bashkiria.ru":!0,"belgorod.ru":!0,"bir.ru":!0,"bryansk.ru":!0,"buryatia.ru":!0,"cbg.ru":!0,"chel.ru":!0,"chelyabinsk.ru":!0,"chita.ru":!0,"chukotka.ru":!0,"chuvashia.ru":!0,"com.ru":!0,"dagestan.ru":!0,"e-burg.ru":!0,"edu.ru":!0,"gov.ru":!0,"grozny.ru":!0,"int.ru":!0,"irkutsk.ru":!0,"ivanovo.ru":!0,"izhevsk.ru":!0,"jar.ru":!0,"joshkar-ola.ru":!0,"kalmykia.ru":!0,"kaluga.ru":!0,"kamchatka.ru":!0,"karelia.ru":!0,"kazan.ru":!0,"kchr.ru":!0,"kemerovo.ru":!0,"khabarovsk.ru":!0,"khakassia.ru":!0,"khv.ru":!0,"kirov.ru":!0,"koenig.ru":!0,"komi.ru":!0,"kostroma.ru":!0,"kranoyarsk.ru":!0,"kuban.ru":!0,"kurgan.ru":!0,"kursk.ru":!0,"lipetsk.ru":!0,"magadan.ru":!0,"mari.ru":!0,"mari-el.ru":!0,"marine.ru":!0,"mil.ru":!0,"mordovia.ru":!0,"mosreg.ru":!0,"msk.ru":!0,"murmansk.ru":!0,"nalchik.ru":!0,"net.ru":!0,"nnov.ru":!0,"nov.ru":!0,"novosibirsk.ru":!0,"nsk.ru":!0,"omsk.ru":!0,"orenburg.ru":!0,"org.ru":!0,"oryol.ru":!0,"penza.ru":!0,"perm.ru":!0,"pp.ru":!0,"pskov.ru":!0,"ptz.ru":!0,"rnd.ru":!0,"ryazan.ru":!0,"sakhalin.ru":!0,"samara.ru":!0,"saratov.ru":!0,"simbirsk.ru":!0,"smolensk.ru":!0,"spb.ru":!0,"stavropol.ru":!0,"stv.ru":!0,"surgut.ru":!0,"tambov.ru":!0,"tatarstan.ru":!0,"tom.ru":!0,"tomsk.ru":!0,"tsaritsyn.ru":!0,"tsk.ru":!0,"tula.ru":!0,"tuva.ru":!0,"tver.ru":!0,"tyumen.ru":!0,"udm.ru":!0,"udmurtia.ru":!0,"ulan-ude.ru":!0,"vladikavkaz.ru":!0,"vladimir.ru":!0,"vladivostok.ru":!0,"volgograd.ru":!0,"vologda.ru":!0,"voronezh.ru":!0,"vrn.ru":!0,"vyatka.ru":!0,"yakutia.ru":!0,"yamal.ru":!0,"yekaterinburg.ru":!0,"yuzhno-sakhalinsk.ru":!0,"ac.rw":!0,"co.rw":!0,"com.rw":!0,"edu.rw":!0,"gouv.rw":!0,"gov.rw":!0,"int.rw":!0,"mil.rw":!0,"net.rw":!0,"com.sa":!0,"edu.sa":!0,"gov.sa":!0,"med.sa":!0,"net.sa":!0,"org.sa":!0,"pub.sa":!0,"sch.sa":!0,"com.sd":!0,"edu.sd":!0,"gov.sd":!0,"info.sd":!0,"med.sd":!0,"net.sd":!0,"org.sd":!0,"tv.sd":!0,"a.se":!0,"ac.se":!0,"b.se":!0,"bd.se":!0,"c.se":!0,"d.se":!0,"e.se":!0,"f.se":!0,"g.se":!0,"h.se":!0,"i.se":!0,"k.se":!0,"l.se":!0,"m.se":!0,"n.se":!0,"o.se":!0,"org.se":!0,"p.se":!0,"parti.se":!0,"pp.se":!0,"press.se":!0,"r.se":!0,"s.se":!0,"t.se":!0,"tm.se":!0,"u.se":!0,"w.se":!0,"x.se":!0,"y.se":!0,"z.se":!0,"com.sg":!0,"edu.sg":!0,"gov.sg":!0,"idn.sg":!0,"net.sg":!0,"org.sg":!0,"per.sg":!0,"art.sn":!0,"com.sn":!0,"edu.sn":!0,"gouv.sn":!0,"org.sn":!0,"perso.sn":!0,"univ.sn":!0,"com.sy":!0,"edu.sy":!0,"gov.sy":!0,"mil.sy":!0,"net.sy":!0,"news.sy":!0,"org.sy":!0,"ac.th":!0,"co.th":!0,"go.th":!0,"in.th":!0,"mi.th":!0,"net.th":!0,"or.th":!0,"ac.tj":!0,"biz.tj":!0,"co.tj":!0,"com.tj":!0,"edu.tj":!0,"go.tj":!0,"gov.tj":!0,"info.tj":!0,"int.tj":!0,"mil.tj":!0,"name.tj":!0,"net.tj":!0,"nic.tj":!0,"org.tj":!0,"test.tj":!0,"web.tj":!0,"agrinet.tn":!0,"com.tn":!0,"defense.tn":!0,"edunet.tn":!0,"ens.tn":!0,"fin.tn":!0,"gov.tn":!0,"ind.tn":!0,"info.tn":!0,"intl.tn":!0,"mincom.tn":!0,"nat.tn":!0,"net.tn":!0,"org.tn":!0,"perso.tn":!0,"rnrt.tn":!0,"rns.tn":!0,"rnu.tn":!0,"tourism.tn":!0,"ac.tz":!0,"co.tz":!0,"go.tz":!0,"ne.tz":!0,"or.tz":!0,"biz.ua":!0,"cherkassy.ua":!0,"chernigov.ua":!0,"chernovtsy.ua":!0,"ck.ua":!0,"cn.ua":!0,"co.ua":!0,"com.ua":!0,"crimea.ua":!0,"cv.ua":!0,"dn.ua":!0,"dnepropetrovsk.ua":!0,"donetsk.ua":!0,"dp.ua":!0,"edu.ua":!0,"gov.ua":!0,"if.ua":!0,"in.ua":!0,"ivano-frankivsk.ua":!0,"kh.ua":!0,"kharkov.ua":!0,"kherson.ua":!0,"khmelnitskiy.ua":!0,"kiev.ua":!0,"kirovograd.ua":!0,"km.ua":!0,"kr.ua":!0,"ks.ua":!0,"kv.ua":!0,"lg.ua":!0,"lugansk.ua":!0,"lutsk.ua":!0,"lviv.ua":!0,"me.ua":!0,"mk.ua":!0,"net.ua":!0,"nikolaev.ua":!0,"od.ua":!0,"odessa.ua":!0,"org.ua":!0,"pl.ua":!0,"poltava.ua":!0,"pp.ua":!0,"rovno.ua":!0,"rv.ua":!0,"sebastopol.ua":!0,"sumy.ua":!0,"te.ua":!0,"ternopil.ua":!0,"uzhgorod.ua":!0,"vinnica.ua":!0,"vn.ua":!0,"zaporizhzhe.ua":!0,"zhitomir.ua":!0,"zp.ua":!0,"zt.ua":!0,"ac.ug":!0,"co.ug":!0,"go.ug":!0,"ne.ug":!0,"or.ug":!0,"org.ug":!0,"sc.ug":!0,"ac.uk":!0,"bl.uk":!0,"british-library.uk":!0,"co.uk":!0,"cym.uk":!0,"gov.uk":!0,"govt.uk":!0,"icnet.uk":!0,"jet.uk":!0,"lea.uk":!0,"ltd.uk":!0,"me.uk":!0,"mil.uk":!0,"mod.uk":!0,"national-library-scotland.uk":!0,"nel.uk":!0,"net.uk":!0,"nhs.uk":!0,"nic.uk":!0,"nls.uk":!0,"org.uk":!0,"orgn.uk":!0,"parliament.uk":!0,"plc.uk":!0,"police.uk":!0,"sch.uk":!0,"scot.uk":!0,"soc.uk":!0,"4fd.us":!0,"dni.us":!0,"fed.us":!0,"isa.us":!0,"kids.us":!0,"nsn.us":!0,"com.uy":!0,"edu.uy":!0,"gub.uy":!0,"mil.uy":!0,"net.uy":!0,"org.uy":!0,"co.ve":!0,"com.ve":!0,"edu.ve":!0,"gob.ve":!0,"info.ve":!0,"mil.ve":!0,"net.ve":!0,"org.ve":!0,"web.ve":!0,"co.vi":!0,"com.vi":!0,"k12.vi":!0,"net.vi":!0,"org.vi":!0,"ac.vn":!0,"biz.vn":!0,"com.vn":!0,"edu.vn":!0,"gov.vn":!0,"health.vn":!0,"info.vn":!0,"int.vn":!0,"name.vn":!0,"net.vn":!0,"org.vn":!0,"pro.vn":!0,"co.ye":!0,"com.ye":!0,"gov.ye":!0,"ltd.ye":!0,"me.ye":!0,"net.ye":!0,"org.ye":!0,"plc.ye":!0,"ac.yu":!0,"co.yu":!0,"edu.yu":!0,"gov.yu":!0,"org.yu":!0,"ac.za":!0,"agric.za":!0,"alt.za":!0,"bourse.za":!0,"city.za":!0,"co.za":!0,"cybernet.za":!0,"db.za":!0,"ecape.school.za":!0,"edu.za":!0,"fs.school.za":!0,"gov.za":!0,"gp.school.za":!0,"grondar.za":!0,"iaccess.za":!0,"imt.za":!0,"inca.za":!0,"kzn.school.za":!0,"landesign.za":!0,"law.za":!0,"lp.school.za":!0,"mil.za":!0,"mpm.school.za":!0,"ncape.school.za":!0,"net.za":!0,"ngo.za":!0,"nis.za":!0,"nom.za":!0,"nw.school.za":!0,"olivetti.za":!0,"org.za":!0,"pix.za":!0,"school.za":!0,"tm.za":!0,"wcape.school.za":!0,"web.za":!0,"ac.zm":!0,"co.zm":!0,"com.zm":!0,"edu.zm":!0,"gov.zm":!0,"net.zm":!0,"org.zm":!0,"sch.zm":!0};const NS=US,$S=FS,GS={ad:!0,ae:!0,af:!0,ag:!0,ai:!0,al:!0,am:!0,ao:!0,aq:!0,ar:!0,as:!0,at:!0,au:!0,aw:!0,ax:!0,az:!0,ba:!0,bb:!0,bd:!0,be:!0,bf:!0,bg:!0,bh:!0,bi:!0,bj:!0,bl:!0,bm:!0,bn:!0,bo:!0,bq:!0,br:!0,bs:!0,bt:!0,bv:!0,bw:!0,by:!0,bz:!0,ca:!0,cc:!0,cd:!0,cf:!0,cg:!0,ch:!0,ci:!0,ck:!0,cl:!0,cm:!0,cn:!0,co:!0,cr:!0,cu:!0,cv:!0,cw:!0,cx:!0,cy:!0,cz:!0,de:!0,dj:!0,dk:!0,dm:!0,do:!0,dz:!0,ec:!0,ee:!0,eg:!0,er:!0,es:!0,et:!0,fi:!0,fj:!0,fk:!0,fm:!0,fo:!0,fr:!0,ga:!0,"gb (.uk)":!0,gd:!0,ge:!0,gf:!0,gg:!0,gh:!0,gi:!0,gl:!0,gm:!0,gn:!0,gp:!0,gq:!0,gr:!0,gs:!0,gt:!0,gu:!0,gw:!0,gy:!0,hk:!0,hm:!0,hn:!0,hr:!0,ht:!0,hu:!0,id:!0,ie:!0,il:!0,im:!0,in:!0,io:!0,iq:!0,ir:!0,is:!0,it:!0,je:!0,jm:!0,jo:!0,jp:!0,ke:!0,kg:!0,kh:!0,ki:!0,km:!0,kn:!0,kp:!0,kr:!0,kw:!0,ky:!0,kz:!0,la:!0,lb:!0,lc:!0,li:!0,lk:!0,lr:!0,ls:!0,lt:!0,lu:!0,lv:!0,ly:!0,ma:!0,mc:!0,md:!0,me:!0,mf:!0,mg:!0,mh:!0,mk:!0,ml:!0,mm:!0,mn:!0,mo:!0,mp:!0,mq:!0,mr:!0,ms:!0,mt:!0,mu:!0,mv:!0,mw:!0,mx:!0,my:!0,mz:!0,na:!0,nc:!0,ne:!0,nf:!0,ng:!0,ni:!0,nl:!0,no:!0,np:!0,nr:!0,nu:!0,nz:!0,om:!0,pa:!0,pe:!0,pf:!0,pg:!0,ph:!0,pk:!0,pl:!0,pm:!0,pn:!0,pr:!0,ps:!0,pt:!0,pw:!0,py:!0,qa:!0,re:!0,ro:!0,rs:!0,ru:!0,rw:!0,sa:!0,sb:!0,sc:!0,sd:!0,se:!0,sg:!0,sh:!0,si:!0,sj:!0,sk:!0,sl:!0,sm:!0,sn:!0,so:!0,sr:!0,ss:!0,st:!0,sv:!0,sx:!0,sy:!0,sz:!0,tc:!0,td:!0,tf:!0,tg:!0,th:!0,tj:!0,tk:!0,tl:!0,tm:!0,tn:!0,to:!0,tr:!0,tt:!0,tv:!0,tw:!0,tz:!0,ua:!0,ug:!0,us:!0,uy:!0,uz:!0,va:!0,vc:!0,ve:!0,vg:!0,vi:!0,vn:!0,vu:!0,wf:!0,ws:!0,ye:!0,yt:!0,za:!0,zm:!0,zw:!0};var HS=function(e,t){if("string"!=typeof e)return!1;if(t instanceof Object||(t={}),(e=e.toLowerCase()).endsWith(".")&&(e=e.slice(0,e.length-1)),t.allowUnicode&&(e=NS.toASCII(e)),e.length>253)return!1;if(!/^([\u0E00-\u0E7Fa-z0-9-._*]+)$/g.test(e))return!1;if(t.topLevel&&GS[e.replace(/\.$/,"")])return!0;const n=e.match(/(.*)\.(([\u0E00-\u0E7Fa-z0-9]+)(\.[a-z0-9]+))/);let r=null,i=null;if(n&&n.length>2&&$S[n[2]]&&(r=n[2],i=n[1].split(".")),!i){if(i=e.split("."),i.length<=1)return!1;r=i.pop();if(!/^(?:xn--)?(?!^\d+$)[\u0E00-\u0E7Fa-z0-9]+$/gi.test(r))return!1}if(!1===t.subdomain&&i.length>1)return!1;const a=i.every((function(e,n){if(t.wildcard&&0===n&&"*"===e&&i.length>1)return!0;let r=/^([\u0E00-\u0E7Fa-zA-Z0-9-_]+)$/g;n===i.length-1&&(r=/^([\u0E00-\u0E7Fa-zA-Z0-9-]+)$/g);const a=(e.match(/--(--)?/g)||[]).length,o=(e.match(/xn--/g)||[]).length;if(n===i.length-1&&a!==o)return!1;return r.test(e)&&e.length<64&&!e.startsWith("-")&&!e.endsWith("-")}));return a},zS=function(e){return null!=e&&"object"==typeof e&&!1===Array.isArray(e)};
|
|
8
8
|
/*!
|
|
9
9
|
* isobject <https://github.com/jonschlinkert/isobject>
|
|
10
10
|
*
|
|
@@ -36,4 +36,4 @@ const ZS=zS;var VS=function(e,t,n){if(ZS(n)||(n={default:n}),!WS(e))return void
|
|
|
36
36
|
* Copyright (c) Jon Schlinkert (https://github.com/jonschlinkert).
|
|
37
37
|
* Released under the MIT License.
|
|
38
38
|
*/
|
|
39
|
-
const{deleteProperty:JS}=Reflect,XS=function(e){return"object"==typeof e?null===e:"function"!=typeof e},eD=function(e){var t,n;return!1!==QS(e)&&("function"==typeof(t=e.constructor)&&(!1!==QS(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")))},tD=e=>"object"==typeof e&&null!==e||"function"==typeof e,nD=e=>{if(!XS(e))throw new TypeError("Object keys must be strings or symbols");if((e=>"__proto__"===e||"constructor"===e||"prototype"===e)(e))throw new Error(`Cannot set unsafe key: "${e}"`)},rD=(e,t,n)=>{const r=(e=>Array.isArray(e)?e.flat().map(String).join(","):e)(t?((e,t)=>{if("string"!=typeof e||!t)return e;let n=e+";";return void 0!==t.arrays&&(n+=`arrays=${t.arrays};`),void 0!==t.separator&&(n+=`separator=${t.separator};`),void 0!==t.split&&(n+=`split=${t.split};`),void 0!==t.merge&&(n+=`merge=${t.merge};`),void 0!==t.preservePaths&&(n+=`preservePaths=${t.preservePaths};`),n})(e,t):e);nD(r);const i=oD.cache.get(r)||n();return oD.cache.set(r,i),i},iD=(e,t)=>t&&"function"==typeof t.split?t.split(e):"symbol"==typeof e?[e]:Array.isArray(e)?e:rD(e,t,(()=>((e,t={})=>{const n=t.separator||".",r="/"!==n&&t.preservePaths;if("string"==typeof e&&!1!==r&&/\//.test(e))return[e];const i=[];let a="";const o=e=>{let t;""!==e.trim()&&Number.isInteger(t=Number(e))?i.push(t):i.push(e)};for(let t=0;t<e.length;t++){const r=e[t];"\\"!==r?r!==n?a+=r:(o(a),a=""):a+=e[++t]}return a&&o(a),i})(e,t))),aD=(e,t,n,r)=>{if(nD(t),void 0===n)JS(e,t);else if(r&&r.merge){const i="function"===r.merge?r.merge:Object.assign;i&&eD(e[t])&&eD(n)?e[t]=i(e[t],n):e[t]=n}else e[t]=n;return e},oD=(e,t,n,r)=>{if(!t||!tD(e))return e;const i=iD(t,r);let a=e;for(let e=0;e<i.length;e++){const t=i[e],o=i[e+1];if(nD(t),void 0===o){aD(a,t,n,r);break}"number"!=typeof o||Array.isArray(a[t])?(tD(a[t])||(a[t]={}),a=a[t]):a=a[t]=[]}return e};oD.split=iD,oD.cache=new Map,oD.clear=()=>{oD.cache=new Map};var sD,uD=oD;function cD(e){var t=this,r={},i=(null==e?void 0:e._ancestor_origins)||window.location.ancestorOrigins,a=(null==e?void 0:e.self_url)||window.location.href,o=(null==e?void 0:e.self_origin)||window.location.origin,s=(null==e?void 0:e.referrer_url)||document.referrer;function u(e){return VS(r,e)}function c(e,t){return uD(r,e,t)}var d=function(){var e;n(this,t),function(){var e=0,t=window;try{for(;t!=t.parent;)e++,t=t.parent}catch(e){c("depth.error",e.message)}c("depth.value",e)}(),function(){var e=i,t=r.depth.value,n=o;if(c("top.domain.from","fallback"),e&&e.length>0)n=e[e.length-1],c("top.domain.from","origins");else if(0===t)n=o,c("top.domain.from","self-top");else if(1===t){var a=l(s);a&&(n=a.origin,c("top.domain.from","referrer"))}c("top.domain.value",n.replace(/^https?:\/\/(www\.)?(.*)$/i,"$2"))}(),function(){var e=f();if(e)if(HS(e))c("partner.domain.value",e),c("partner.domain.from","partner-domain");else{var t=l(e,!1);if(t)c("partner.domain.value",t.origin.replace(/^https?:\/\/(www\.)?(.*)$/i,"$2")),c("partner.domain.from","partner-url");else c("partner.domain.value",r.top.domain.value),c("partner.domain.from","partner-fallback")}else c("partner.domain.value",r.top.domain.value),c("partner.domain.from","fallback")}(),e=f(),0===r.depth.value?(c("partner.url.value",a),c("partner.url.from","self-top")):e?HS(e)?(c("partner.url.value",a),c("partner.url.from","partner-domain")):(c("partner.url.value",e),c("partner.url.from","partner-url")):(c("partner.url.value",s),c("partner.url.from","fallback"))}.bind(this);function l(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(e&&""!==e)try{return new C(e,t)}catch(e){console.log(e)}}function f(){for(var t=(null==e?void 0:e.urls)||[a,s],n=0;n<t.length;n++){var r,i=l(t[n]);if(i){var o=null===(r=i.query)||void 0===r?void 0:r.gd_sdk_referrer_url;if(o&&(o=(o=decodeURIComponent(o)).startsWith("https://")||o.startsWith("http://")?o:"https://".concat(o),gS.isURL(o)))return o}}}return d(),{get:u,print:function(e){console.log(u(e))}}}var dD,lD=function(e){var t=this;if(!sD){var r={gameId:e.gameId,hours:(new Date).getHours(),topDomain:t_.topDomain,domain:t_.parentDomain,referrer:t_.parentURL,depth:pt(),version:nc.version,byloader:t_.isTokenGameURL,isTokenGameURL:t_.isTokenGameURL,isMasterGameURL:t_.isMasterGameURL,isExtHostedGameURL:t_.isExtHostedGameURL,byloaderVersion:t_.version,tracking:n_.userDeclinedTracking,whitelabel:n_.whitelabelPartner,platform:lt()};sD=new Rt(r)}return sD||{send:function(){n(this,t)}.bind(this)}},fD={getGameData:function(e){var t=this;try{var r=e.replace("game.api.gamedistribution.com","game-api.gamedistribution.com");fetch(r).then(function(e){n(this,t)}.bind(this)).catch(function(e){n(this,t)}.bind(this))}catch(e){}},getGameLoaderIndex:function(e){var t=this;try{var r="https://html5-prod-aws.gamedistribution.com/".concat(e,"/");fetch(r).then(function(e){n(this,t)}.bind(this)).catch(function(e){n(this,t)}.bind(this))}catch(e){}}},pD={getGameData:function(e){var t=this;try{var r=e.replace("game.api.gamedistribution.com","game-api-acc-real-hwp.gamedistribution.com");fetch(r).then(function(e){n(this,t)}.bind(this)).catch(function(e){n(this,t)}.bind(this))}catch(e){}}},hD={exports:{}},mD="object"==typeof Reflect?Reflect:null,vD=mD&&"function"==typeof mD.apply?mD.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};dD=mD&&"function"==typeof mD.ownKeys?mD.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var gD=Number.isNaN||function(e){return e!=e};function AD(){AD.init.call(this)}hD.exports=AD,hD.exports.once=function(e,t){return new Promise((function(n,r){function i(n){e.removeListener(t,a),r(n)}function a(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}ID(e,t,a,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&ID(e,"error",t,n)}(e,i,{once:!0})}))},AD.EventEmitter=AD,AD.prototype._events=void 0,AD.prototype._eventsCount=0,AD.prototype._maxListeners=void 0;var bD=10;function yD(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function _D(e){return void 0===e._maxListeners?AD.defaultMaxListeners:e._maxListeners}function wD(e,t,n,r){var i,a,o,s;if(yD(n),void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),a=e._events),o=a[t]),void 0===o)o=a[t]=n,++e._eventsCount;else if("function"==typeof o?o=a[t]=r?[n,o]:[o,n]:r?o.unshift(n):o.push(n),(i=_D(e))>0&&o.length>i&&!o.warned){o.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=o.length,s=u,console&&console.warn&&console.warn(s)}return e}function xD(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function kD(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=xD.bind(r);return i.listener=n,r.wrapFn=i,i}function ED(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):DD(i,i.length)}function SD(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function DD(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function ID(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(a){r.once&&e.removeEventListener(t,i),n(a)}))}}Object.defineProperty(AD,"defaultMaxListeners",{enumerable:!0,get:function(){return bD},set:function(e){if("number"!=typeof e||e<0||gD(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");bD=e}}),AD.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},AD.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||gD(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},AD.prototype.getMaxListeners=function(){return _D(this)},AD.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var o=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw o.context=a,o}var s=i[e];if(void 0===s)return!1;if("function"==typeof s)vD(s,this,t);else{var u=s.length,c=DD(s,u);for(n=0;n<u;++n)vD(c[n],this,t)}return!0},AD.prototype.addListener=function(e,t){return wD(this,e,t,!1)},AD.prototype.on=AD.prototype.addListener,AD.prototype.prependListener=function(e,t){return wD(this,e,t,!0)},AD.prototype.once=function(e,t){return yD(t),this.on(e,kD(this,e,t)),this},AD.prototype.prependOnceListener=function(e,t){return yD(t),this.prependListener(e,kD(this,e,t)),this},AD.prototype.removeListener=function(e,t){var n,r,i,a,o;if(yD(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){o=n[a].listener,i=a;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,o||t)}return this},AD.prototype.off=AD.prototype.removeListener,AD.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,a=Object.keys(n);for(r=0;r<a.length;++r)"removeListener"!==(i=a[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},AD.prototype.listeners=function(e){return ED(this,e,!0)},AD.prototype.rawListeners=function(e){return ED(this,e,!1)},AD.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):SD.call(e,t)},AD.prototype.listenerCount=SD,AD.prototype.eventNames=function(){return this._eventsCount>0?dD(this._events):[]};var RD={prod:["html5.gamedistribution.com","revision.gamedistribution.com"],acc:["html5-acc-real-aws.gamedistribution.com","acceptance-revision.gamedistribution.com"]},CD={gameAPI:"game.api.gamedistribution.com"},OD={gameAPI:"game-api-acc-real-aws.gamedistribution.com"},TD=function(){var e=this,t=RD.acc.some(function(t){var r;return n(this,e),t===(null===(r=window.location.host)||void 0===r?void 0:r.toLowerCase())}.bind(this));return{env:t?"acc":"prod",config:t?OD:CD}},PD=function(e){var t=this,r=e.url;return new Promise(function(e,i){n(this,t);var a=new XMLHttpRequest;a.open("GET",r,!0),a.onreadystatechange=function(){if(4==a.readyState)if(200==a.status){var t=JSON.parse(a.responseText);e(t)}else i(Error("Error occured on request: ".concat(a.status,", ").concat(a.statusText)))},a.onerror=function(e){i(e)},a.send()}.bind(this))},LD=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"GD",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ObjectStore";O(this,e),this.dbName=t,this.storeName=n,this.db=null,this.init()}var r,i,a,o;return L(e,[{key:"init",value:function(){var e=this;return new Promise(function(t,r){var i=this;n(this,e);var a=indexedDB.open(this.dbName,1);a.onerror=function(e){n(this,i),console.error("Database error:",e.target.error),r(e.target.error)}.bind(this),a.onsuccess=function(e){n(this,i),this.db=e.target.result,t(this.db)}.bind(this),a.onupgradeneeded=function(e){n(this,i);var t=e.target.result;t.objectStoreNames.contains(this.storeName)||t.createObjectStore(this.storeName,{keyPath:"key"})}.bind(this)}.bind(this))}},{key:"getItem",value:(o=t(d.mark((function e(t){var r=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.db){e.next=3;break}return e.next=3,this.init();case 3:return e.abrupt("return",new Promise(function(e,i){var a=this;n(this,r);var o=this.db.transaction([this.storeName],"readonly").objectStore(this.storeName).get(t);o.onerror=function(e){n(this,a),console.error("Get item error:",e.target.error),i(e.target.error)}.bind(this),o.onsuccess=function(t){n(this,a),o.result?e(o.result.value):e(null)}.bind(this)}.bind(this)));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"setItem",value:(a=t(d.mark((function e(t,r){var i=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.db){e.next=3;break}return e.next=3,this.init();case 3:return e.abrupt("return",new Promise(function(e,a){var o=this;n(this,i);var s=this.db.transaction([this.storeName],"readwrite").objectStore(this.storeName).put({key:t,value:r});s.onerror=function(e){n(this,o),console.error("Set item error:",e.target.error),a(e.target.error)}.bind(this),s.onsuccess=function(t){n(this,o),e()}.bind(this)}.bind(this)));case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return a.apply(this,arguments)})},{key:"removeItem",value:(i=t(d.mark((function e(t){var r=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.db){e.next=3;break}return e.next=3,this.init();case 3:return e.abrupt("return",new Promise(function(e,i){var a=this;n(this,r);var o=this.db.transaction([this.storeName],"readwrite").objectStore(this.storeName).delete(t);o.onerror=function(e){n(this,a),console.error("Remove item error:",e.target.error),i(e.target.error)}.bind(this),o.onsuccess=function(t){n(this,a),e()}.bind(this)}.bind(this)));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"clear",value:(r=t(d.mark((function e(){var t=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.db){e.next=3;break}return e.next=3,this.init();case 3:return e.abrupt("return",new Promise(function(e,r){var i=this;n(this,t);var a=this.db.transaction([this.storeName],"readwrite").objectStore(this.storeName).clear();a.onerror=function(e){n(this,i),console.error("Clear store error:",e.target.error),r(e.target.error)}.bind(this),a.onsuccess=function(t){n(this,i),e()}.bind(this)}.bind(this)));case 4:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})}]),e}(),MD=function(){function e(n){var r=n.mode;O(this,e),this.setItem=function(){var e=t(d.mark((function e(t,n){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),this.getItem=function(){var e=t(d.mark((function e(t){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),"indexed-db"===r?(this.indexedStore=new LD,this.setItem=this.indexedStore.setItem.bind(this.indexedStore),this.getItem=this.indexedStore.getItem.bind(this.indexedStore)):"local-storage"===r&&(this.setItem=function(){var e=t(d.mark((function e(t,n){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",gt.set(t,n));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),this.getItem=function(){var e=t(d.mark((function e(t){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",gt.getString(t));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())}var n,r;return L(e,[{key:"set",value:(r=t(d.mark((function e(t,n){var r;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=JSON.stringify(n),e.next=3,this.setItem(t,r);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"get",value:(n=t(d.mark((function e(t){var n;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getItem(t);case 2:return n=e.sent,e.abrupt("return",n?JSON.parse(n):null);case 4:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})}]),e}();function BD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?BD(Object(n),!0).forEach((function(t){cc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var UD="_gd_vs";function FD(e){return ND.apply(this,arguments)}function ND(){return ND=t(d.mark((function e(t){var n,r,i;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.gameId,i=[],!window.indexedDB){e.next=13;break}return e.prev=3,e.next=6,KD({gameId:n});case 6:r=e.sent,e.next=13;break;case 9:e.prev=9,e.t0=e.catch(3),sc("visit-get error, indexedDb",e.t0.message),i.push(e.t0.message);case 13:if(r||!gt.available){e.next=24;break}return e.prev=14,e.next=17,WD({gameId:n});case 17:r=e.sent,e.next=24;break;case 20:e.prev=20,e.t1=e.catch(14),sc("visit-get error, Ls",e.t1.message),i.push(e.t1.message);case 24:return e.abrupt("return",jD(jD({},r),{},{errors:i}));case 25:case"end":return e.stop()}}),e,null,[[3,9],[14,20]])}))),ND.apply(this,arguments)}function $D(e){return GD.apply(this,arguments)}function GD(){return GD=t(d.mark((function e(t){var n,r,i,a;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.gameId,r=t.serverDate,a=[],!window.indexedDB){e.next=13;break}return e.prev=3,e.next=6,ZD({gameId:n,serverDate:r});case 6:i=e.sent,e.next=13;break;case 9:e.prev=9,e.t0=e.catch(3),sc("visit-update error, indexedDb",e.t0.message),a.push(e.t0.message);case 13:if(i||!gt.available){e.next=24;break}return e.prev=14,e.next=17,HD({gameId:n,serverDate:r});case 17:i=e.sent,e.next=24;break;case 20:e.prev=20,e.t1=e.catch(14),sc("visit-update error, Ls",e.t1.message),a.push(e.t1.message);case 24:return e.abrupt("return",jD(jD({},i),{},{errors:a}));case 25:case"end":return e.stop()}}),e,null,[[3,9],[14,20]])}))),GD.apply(this,arguments)}function HD(e){return zD.apply(this,arguments)}function zD(){return zD=t(d.mark((function e(t){var n,r,i,a,o,s;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.gameId,r=t.serverDate,a=new MD({mode:i="local-storage"}),e.next=5,a.get(UD);case 5:return(o=e.sent)||(o={gids:{}}),o.gids[n]||(o.gids[n]={fv:r,vc:0}),(s=o.gids[n]).vc++,s.lv=r,e.next=13,a.set(UD,o);case 13:return e.abrupt("return",{visit:s,mode:i});case 14:case"end":return e.stop()}}),e)}))),zD.apply(this,arguments)}function ZD(e){return VD.apply(this,arguments)}function VD(){return VD=t(d.mark((function e(t){var n,r,i,a,o;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.gameId,r=t.serverDate,a=new MD({mode:i="indexed-db"}),e.next=5,a.get(n);case 5:return(o=e.sent)||(o={fv:r,vc:0}),o.vc++,o.lv=r,e.next=11,a.set(n,o);case 11:return e.abrupt("return",{visit:o,mode:i});case 12:case"end":return e.stop()}}),e)}))),VD.apply(this,arguments)}function KD(e){return qD.apply(this,arguments)}function qD(){return qD=t(d.mark((function e(t){var n,r,i;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.gameId,"indexed-db",r=new MD({mode:"indexed-db"}),e.next=5,r.get(n);case 5:return(i=e.sent)||(i={fv:null,vc:0}),e.abrupt("return",i);case 8:case"end":return e.stop()}}),e)}))),qD.apply(this,arguments)}function WD(e){return YD.apply(this,arguments)}function YD(){return YD=t(d.mark((function e(t){var n,r,i,a;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.gameId,"local-storage",r=new MD({mode:"local-storage"}),e.next=5,r.get(UD);case 5:return(i=e.sent)||(i={gids:{}}),i.gids[n]||(i.gids[n]={fv:null,vc:0}),a=i.gids[n],e.abrupt("return",a);case 10:case"end":return e.stop()}}),e)}))),YD.apply(this,arguments)}function QD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function JD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?QD(Object(n),!0).forEach((function(t){cc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var XD,eI,tI,nI=new hD.exports.EventEmitter,rI=[],iI=function(e){rI.push(e)},aI=function(e){XD=lD(tI=e)},oI=function(){var e=t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(eI){e.next=7;break}return e.next=3,lI(tI);case 3:eI=e.sent,nI.emit("game-data-ready",eI),sI(),uI();case 7:return e.abrupt("return",eI);case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),sI=function(){var e,n;if(null!==(e=eI)&&void 0!==e&&null!==(n=e.aws_tst)&&void 0!==n&&n.enabled){var r,i,a,o,s;if(dI(),null!==(r=eI)&&void 0!==r&&null!==(i=r.aws_tst)&&void 0!==i&&null!==(a=i.ep)&&void 0!==a&&a.api&&null!==(o=eI)&&void 0!==o&&o.url)fD.getGameData(null===(s=eI)||void 0===s?void 0:s.url);setInterval(t(d.mark((function e(){var t;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,lI(tI);case 3:eI=e.sent,ac("gd-aws-test, new game data received",null===(t=eI)||void 0===t?void 0:t.aws_tst),e.next=9;break;case 7:e.prev=7,e.t0=e.catch(0);case 9:case"end":return e.stop()}}),e,null,[[0,7]])}))),3e5)}},uI=function(){var e,n;if(null!==(e=eI)&&void 0!==e&&null!==(n=e.hwei)&&void 0!==n&&n.enabled){var r,i,a;if(dI(),null!==(r=eI)&&void 0!==r&&null!==(i=r.hwei)&&void 0!==i&&i.gameApi.enabled)pD.getGameData(null===(a=eI)||void 0===a?void 0:a.url);setInterval(t(d.mark((function e(){var t;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,lI(tI);case 3:eI=e.sent,ac("gd-aws-test, new game data received",null===(t=eI)||void 0===t?void 0:t.aws_tst),e.next=9;break;case 7:e.prev=7,e.t0=e.catch(0);case 9:case"end":return e.stop()}}),e,null,[[0,7]])}))),3e5)}},cI=!1,dI=function(){if(!cI){cI=!0;var e=window.fetch;window.fetch=t(d.mark((function t(){var r,i,a,o,s,u,c,l,f,p,h,m,v,g,A,b,y,_,w,x,k,E,S,D,I,R,C,O,T,P,L,M,B,j=this,U=arguments;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(A=U.length,b=new Array(A),y=0;y<A;y++)b[y]=U[y];_=b[0],w=b[1],x=null===(r=eI)||void 0===r||null===(i=r.aws_tst)||void 0===i||null===(a=i.ep)||void 0===a?void 0:a.atm,k=null===(o=eI)||void 0===o||null===(s=o.aws_tst)||void 0===s||null===(u=s.ep)||void 0===u?void 0:u.msgrt,E=(null===(c=eI)||void 0===c||null===(l=c.hwei)||void 0===l?void 0:l.enabled)&&(null===(f=eI)||void 0===f||null===(p=f.hwei)||void 0===p?void 0:p.atom.enabled),S=(null===(h=eI)||void 0===h||null===(m=h.hwei)||void 0===m?void 0:m.enabled)&&(null===(v=eI)||void 0===v||null===(g=v.hwei)||void 0===g?void 0:g.msgrt.enabled),D=function(t,r){var i=this;n(this,j);var a=_.replace(t,r);e(a,w).then(function(){n(this,i)}.bind(this))}.bind(this);try{x&&_.indexOf("tag.atom")>0&&D("tag.atom.gamedistribution.com","atom-tag-prod-aws.gamedistribution.com"),k&&_.indexOf("msgrt.gamedistribution.com")>0&&(ac("gd-aws-test hook",null===(I=eI)||void 0===I?void 0:I.aws_tst,null===(R=eI)||void 0===R||null===(C=R.aws_tst)||void 0===C||null===(O=C.ep)||void 0===O?void 0:O.msgrt),D("msgrt.gamedistribution.com","msgrt-prod-aws.gamedistribution.com"),null!==(T=eI)&&void 0!==T&&null!==(P=T.hwei)&&void 0!==P&&null!==(L=P.msgrt)&&void 0!==L&&L.enabled&&null!==(M=eI)&&void 0!==M&&M.url&&D("msgrt.gamedistribution.com","msgrt-hwp.gamedistribution.com")),E&&_.indexOf("tag.atom")>0&&D("tag.atom.gamedistribution.com","atom-tag-acc-real-hwp.gamedistribution.com"),S&&_.indexOf("msgrt.gamedistribution.com")>0&&D("msgrt.gamedistribution.com","msgrt-hwp.gamedistribution.com")}catch(e){}return t.next=11,e(_,w);case 11:return B=t.sent,t.abrupt("return",B);case 13:case"end":return t.stop()}}),t,this)})))}},lI=function(e){var r=this;XD.send("gdfw.loading",{message:"loading"}),rI=[],iI("1"),iI("2");var i=new cD;iI("3");var a=i.get("partner.domain.value");iI("4");var o=function(){return n(this,r),{gameId:e.gameId,disableAds:{},preroll:!0,midroll:12e4,rewardedAds:!1,title:"",tags:[],category:"",assets:[],dmain:!0,sdk:{},loader:{},splash:{},promo:{},dAds:{},pAds:{},mAds:{},rAds:{},gs_trc:{enabled:!0}}}.bind(this);iI("5");var s=function(){n(this,r);var t=u(),i=t?"&mode=".concat(t):"",o=TD().config,s="https://".concat(o.gameAPI);return"".concat(s,"/game/v4/get/").concat(e.gameId.replace(/-/g,""),"/?domain=").concat(a).concat(i,"&v=").concat(nc.version,"&localTime=").concat((new Date).getHours())}.bind(this);iI("6");var u=function(){var e=this;n(this,r);var t=new Proxy(new URLSearchParams(window.location.search),{get:function(t,r){return n(this,e),t.get(r)}.bind(this)});return!t.gd_mode&&window.location.search.includes("gd_mode")?window.location.search.split("gd_mode=")[1]:t.gd_mode}.bind(this);iI("7");var c=function(e){var t=this,r=(null==e?void 0:e.vmap_by_tags)||{},i=r.enabled,a=r.tags;if(i){var o,s,u=a||["co-op","multiplayer","IAPs"];if(e.tags.some(function(e){var r=this;return n(this,t),u.some(function(t){return n(this,r),t===e.title}.bind(this))}.bind(this)))((null===(o=e.adsc)||void 0===o||null===(s=o.t)||void 0===s?void 0:s.rspdur)||0)<1&&(e.mAds=JD(JD({},e.mAds||{}),{vmap:{enabled:!0}}),e.pAds=JD(JD({},e.pAds||{}),{vmap:{enabled:!0}}),e.rAds=JD(JD({},e.rAds||{}),{vmap:{enabled:!0}}),e.vmapByTagsApplied=!0)}},l=function(){var e=t(d.mark((function e(t){var n;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,FD({gameId:t.gameId});case 2:return n=e.sent,t.visit=n,e.abrupt("return",n);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),f=function(){var e=t(d.mark((function e(t){var n,r,i,a,o,s;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(r=t.visit)&&0===(null===(n=r.errors)||void 0===n?void 0:n.length)&&0===r.vc&&((null==t||null===(i=t.pAds)||void 0===i||null===(a=i.vmap)||void 0===a?void 0:a.enabled)&&(null==t||null===(o=t.pAds)||void 0===o||null===(s=o.vmap)||void 0===s?void 0:s.adtr))&&(t.pAds.vmap.enabled=!1);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return new Promise(function(e){var i=this;n(this,r),iI("7.1");var a=o();try{iI("7.2");var u=s();iI("7.3"),fetch(u).then(function(){var e=t(d.mark((function e(t){var n;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return iI("7.4"),e.prev=1,e.next=4,t.json();case 4:n=e.sent,e.next=13;break;case 7:return e.prev=7,e.t0=e.catch(1),ac("gameData fetch error, fallback to other ajax api",e.t0),e.next=12,PD({url:u});case 12:n=e.sent;case 13:return e.abrupt("return",n);case 14:case"end":return e.stop()}}),e,null,[[1,7]])})));return function(t){return e.apply(this,arguments)}}()).then(function(){var r=t(d.mark((function t(r){var i,o,s,p,h,m,v,g=this;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(iI("7.5"),!r.success){t.next=23;break}return p=r.result.game,iI("7.6"),h={company:p.company,gameId:p.gameMd5,slug:p.slug,pname:p.pname,dname:p.dname,status:p.status,activeStatus:p.activeStatus,description:p.description,disableAds:p.enableAds,preroll:p.preRoll,midroll:6e4*p.timeAds,rewardedAds:p.rewardedAds,title:p.title,publishedAt:p.publishedAt,tags:p.tags,category:p.category,assets:p.assets,disp_2nd_prer:p.disp_2nd_prer,ctry_vst:p.ctry_vst,ctry:p.ctry,crtv:p.crtv,dmain:p.dmain,dmn:p.dmn,aws_tst:p.aws_tst,meta:p.meta,adsc:p.adsc,igs:p.igs,adspn:rc(p.adspn)||{},__t4r:rc(p.__t4r)||{},block_exts:rc(p.push_cuda),bloc_gard:rc(p.bloc_gard),cookie:rc(p.cookie),gdpr:rc(p.gdpr),diagnostic:rc(p.diagnostic),cmp:rc(p.cmp),gft:rc(p.gft)||{},sdk:rc(p.sdk)||{},sdkfw:rc(p.sdkfw)||{},loader:rc(p.loader)||{},splash:rc(p.splash)||{},promo:rc(p.promo)||{},dAds:rc(p.dads)||{},pAds:rc(p.pads)||{},mAds:rc(p.mads)||{},rAds:rc(p.rads)||{},lp:rc(p.lp)||{},extsc:rc(p.extsc)||{},evnts:rc(p.evnts)||{},dp:rc(p.dp)||{},adflw:rc(p.adflw)||{},afgszf:rc(p.afgszf)||{},fllc:rc(p.fllc)||{},lotm:rc(p.lotm)||{},t4rc:rc(p.t4rc)||{},midroll_plus:rc(p.midroll_plus)||{},gmky:rc(p.gmky)||{},urlBlockExc:rc(p.url_blck_exc)||{},sdk_wrp:rc(p.sdk_wrp)||{},dbglg:rc(p.dbglg)||{},extHosting:rc(p.ext_hosting)||{},directTokenUse:rc(p.dtu)||{},aeria:rc(p.aeria)||{},advlm:rc(p.advlm)||{},ad_blcks:rc(p.ad_blcks)||{},rmblck:rc(p.rmblck)||{},gs_trc:rc(p.gs_trc)||{},rwskp:rc(p.rwskp)||{},isv_fw:rc(p.isv_fw)||{},ext_vst:rc(p.ext_vst)||{},fix_score:rc(p.fix_score)||{},compensation:rc(p.comps)||{},adTimer:rc(p.adtr)||{},cust_vast:rc(p.cust_vast)||{},console_logs:rc(p.c_logs)||{},disable_ads_by_cmp:rc(p.dads_by_cmp)||{},ad_skip:rc(p.adskp)||{},__t4rac:rc(p.__t4rac)||{},vmap_by_tags:rc(p.vmap_by_tags)||{},hwei:rc(p.hwei)||{}},iI("7.7"),m=it(B(a),h),iI("7.8"),c(m),t.next=11,l(m);case 11:return t.next=13,f(m);case 13:m.afg_disabled=!1===(null===(i=m.sdk)||void 0===i||null===(o=i.afg)||void 0===o?void 0:o.enabled),m.url=u,function(){n(this,g),void 0!==uc.afgEnabled&&(m.afg_disabled=!uc.afgEnabled),void 0!==uc.promoEnabled&&(m.promo=m.promo||{},m.promo=JD(JD({},m.promo),{},{rainbow:{enabled:uc.promoEnabled}}))}.bind(this),iI("7.9"),null!==(s=m.pAds)&&void 0!==s&&s.enabled&&(m.preroll=!0),iI("7.10"),XD.send("gdfw.success",{message:"success"}),e(m),t.next=27;break;case 23:a.failed=!0,v=rI[rI.length-1],XD.send("gdfw.err",{message:"".concat(v,": json error")}),e(a);case 27:case"end":return t.stop()}}),t,this)})));return function(e){return r.apply(this,arguments)}}()).catch(function(t){n(this,i);var r=rI[rI.length-1];XD.send("gdfw.err",{message:"".concat(r,": ").concat(t.message?t.message:t)}),a.failed=!0,e(a)}.bind(this))}catch(t){var p=rI[rI.length-1];XD.send("gdfw.err",{message:"".concat(p,": global ").concat(t.message?t.message:t)}),a.failed=!0,e(a)}}.bind(this))},fI=function(){var e=t(d.mark((function e(){var t,n;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,oI();case 2:return n=e.sent,e.abrupt("return",!(null==n||null===(t=n.sdkfw)||void 0===t||!t.enabled));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),pI=function(){var e=t(d.mark((function e(){var t,n,r;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,oI();case 2:return n=e.sent,r=null==n||null===(t=n.diagnostic)||void 0===t||!t.close_ga,e.abrupt("return",r);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),hI=function(){var e=t(d.mark((function e(){var t,n;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,oI();case 2:return n=e.sent,e.next=5,fI();case 5:if(e.t0=e.sent,!e.t0){e.next=8;break}e.t0=!(null==n||null===(t=n.sdkfw)||void 0===t||!t.handshake);case 8:return e.abrupt("return",e.t0);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),mI=function(){var e=t(d.mark((function e(){var t,n,r,i,a,o,s,u;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,oI();case 2:return s=e.sent,u=!(null==s||null===(t=s.extsc)||void 0===t||!t.enabled),e.abrupt("return",{enabled:u,path:u?null==s||null===(n=s.extsc)||void 0===n?void 0:n.path:"",name:u?null==s||null===(r=s.extsc)||void 0===r?void 0:r.name:"",ref:u?null==s||null===(i=s.extsc)||void 0===i?void 0:i.ref:"",loadedFlag:u?null==s||null===(a=s.extsc)||void 0===a?void 0:a.loadedFlag:void 0,loadedFlagCheck:!!u&&!(null==s||null===(o=s.extsc)||void 0===o||!o.loadedFlagCheck)});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),vI=function(){var e=t(d.mark((function e(){var t,r,i,a,o,s=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,mI();case 2:if((t=e.sent).enabled){e.next=5;break}return e.abrupt("return");case 5:return r=t.path,i=t.name,a=t.ref,e.prev=6,o={},e.next=10,ft(r,i,{error_prefix:"Blocked:",exists:function(){return n(this,s),!!a&&!!window[a]}.bind(this),attrs:o});case 10:e.next=16;break;case 12:e.prev=12,e.t0=e.catch(6),console.log("extsc: error on external partner script load",i,e.t0),yt("DEVELOPER_ERROR",e.t0,"warning");case 16:case"end":return e.stop()}}),e,this,[[6,12]])})));return function(){return e.apply(this,arguments)}}(),gI=!1,AI=!1,bI=function(){return new Promise(function(){var e=t(d.mark((function e(t,r){var i,a,o,s,u,c=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!gI){e.next=4;break}return e.abrupt("return",t(AI));case 4:gI=!0;case 5:return e.next=7,mI();case 7:if((i=e.sent).enabled){e.next=10;break}return e.abrupt("return",t(!1));case 10:if(a=i.loadedFlag,!(o=i.loadedFlagCheck)||a){e.next=13;break}return e.abrupt("return",t(!1));case 13:if(o){e.next=16;break}return AI=!0,e.abrupt("return",t(!0));case 16:s=!0,setTimeout(function(){n(this,c),s&&(s=!1,gI=!0,t(!1))}.bind(this),5e3),u=setInterval(function(){n(this,c),s&&o&&window[a]?(s=!1,gI=!0,AI=!0,clearInterval(u),t(!0)):s||clearInterval(u)}.bind(this),100);case 19:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}())};let yI=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&n[e]];return t};var _I={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(e,t,r,a,o){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new i(r,a||e,o),u=n?n+t:t;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],s]:e._events[u].push(s):(e._events[u]=s,e._eventsCount++),e}function o(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,i=[];if(0===this._eventsCount)return i;for(r in e=this._events)t.call(e,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,a=r.length,o=new Array(a);i<a;i++)o[i]=r[i].fn;return o},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,i,a,o){var s=n?n+e:e;if(!this._events[s])return!1;var u,c,d=this._events[s],l=arguments.length;if(d.fn){switch(d.once&&this.removeListener(e,d.fn,void 0,!0),l){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,t),!0;case 3:return d.fn.call(d.context,t,r),!0;case 4:return d.fn.call(d.context,t,r,i),!0;case 5:return d.fn.call(d.context,t,r,i,a),!0;case 6:return d.fn.call(d.context,t,r,i,a,o),!0}for(c=1,u=new Array(l-1);c<l;c++)u[c-1]=arguments[c];d.fn.apply(d.context,u)}else{var f,p=d.length;for(c=0;c<p;c++)switch(d[c].once&&this.removeListener(e,d[c].fn,void 0,!0),l){case 1:d[c].fn.call(d[c].context);break;case 2:d[c].fn.call(d[c].context,t);break;case 3:d[c].fn.call(d[c].context,t,r);break;case 4:d[c].fn.call(d[c].context,t,r,i);break;default:if(!u)for(f=1,u=new Array(l-1);f<l;f++)u[f-1]=arguments[f];d[c].fn.apply(d[c].context,u)}}return!0},s.prototype.on=function(e,t,n){return a(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return a(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,i){var a=n?n+e:e;if(!this._events[a])return this;if(!t)return o(this,a),this;var s=this._events[a];if(s.fn)s.fn!==t||i&&!s.once||r&&s.context!==r||o(this,a);else{for(var u=0,c=[],d=s.length;u<d;u++)(s[u].fn!==t||i&&!s[u].once||r&&s[u].context!==r)&&c.push(s[u]);c.length?this._events[a]=1===c.length?c[0]:c:o(this,a)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&o(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s}(_I);var wI=_I.exports;function xI({window:e,serviceId:t}){return e&&t?t===this.serviceId?Promise.reject(new Error("[IS] Cannot connect to self")):new Promise(((n,r)=>{const i=yI();this.transactionHandler[i]=e=>{if("object"!=typeof e.data)return;const{contextId:t,scriptId:i,serviceId:a,messageId:o,sender:s}=e.data||{};t&&i&&a&&o&&s&&0!==e.ports.length&&(e.ports[0].start(),this.router=e.ports[0],this.router.onmessage=this.handleMessage.bind(this),this.router.serviceId=a,this.router.onmessageerror=e=>{console.error(`[IS] ${this.id}: Error received from router`,e?.message||e)},this.verbose&&console.log(`[IS] ${this.id}: Communication channel established with ${s}`),this.api.proxy({method:"echo",args:{ts:Date.now()}}).then((t=>{e.data.elapsed=Date.now()-e.data.ts;const r=Date.now()-t.ts;this.verbose&&console.log(`[IS] ${this.id}: Connection echo test response received from ${s} in ${r} ms`),n(e.data.body)})).catch((e=>{r(e)})))};const a=this.createMessage({transactionId:i,method:"connect"});a.body={where:{serviceId:t}},e.postMessage(a,"*"),this.setupTransactionTimeout({transactionId:i,reject:r})})):Promise.reject(new Error("[IS] Target window and service ID are required to connect to a service"))}function kI(){}function EI(e){return e}function SI({method:e,handler:t,configurable:n=!1}){if(this.api[e])throw new Error(`[IS] Cannot register method ${e} as it is already registered.`);this.registeredHandlers[e]=t,Object.defineProperty(this.api,e,{get:()=>t,enumerable:!1,configurable:n}),this.verbose&&console.log(`[IS] ${this.id}: Registered handler for ${e}`)}function DI({alias:e,method:t,service:n,configurable:r=!1}){this.api.register({method:e,handler:(e,r)=>this.api.proxy({method:t,service:n,args:e,options:r}),configurable:r}),this.verbose&&console.log(`[IS] ${this.id}: Registered proxy for ${e} to ${n}`)}const II={services:{}};function RI({method:e,args:t,service:n,options:r={}}){return new Promise(((i,a)=>{const o=yI();this.transactionHandler[o]=e=>{e.data.elapsed=Date.now()-e.data.ts,e.data.error?a(e.data.error):i(e.data?.body)};const s=(n||"").split("/"),u=s.shift(),c=this.clients[u];if(void 0===c){if(!this.router)return delete this.transactionHandler[o],a(new Error(`No router registered for ${this.id}`));r?.callback&&this.api.register({method:o,handler:r.callback,configurable:!0});const i=this.createMessage({transactionId:o,method:e,hasCallback:!!r?.callback});t&&(i.body=t),n&&(i.service=n),this.router.postMessage(i),this.setupTransactionTimeout({transactionId:o,reject:a,timeout:r?.timeout})}else{const n=this.createMessage({transactionId:o,method:e,hasCallback:!!r?.callback});r?.callback&&this.api.register({method:o,handler:r.callback,configurable:!0}),t&&(n.body=t),s.length>0&&(n.service=s.join("/")),c.postMessage(n),this.setupTransactionTimeout({transactionId:o,reject:a,timeout:r?.timeout})}}))}function CI(){window.removeEventListener("message",this.handleMessage)}function OI({where:e,service:t}={}){if((e=e||{}).hasOwnProperty("serviceId"))if(Array.isArray(e.serviceId)){if(e.serviceId.length&&!e.serviceId.includes(t.serviceId))return!1}else if(e.serviceId!==t.serviceId)return!1;if(e.hasOwnProperty("contextId"))if(Array.isArray(e.contextId)){if(e.contextId.length&&!e.contextId.includes(t.contextId))return!1}else if(e.contextId!==t.contextId)return!1;if(e.hasOwnProperty("scriptId"))if(Array.isArray(e.scriptId)){if(e.scriptId.length&&!e.scriptId.includes(t.scriptId))return!1}else if(e.scriptId!==t.scriptId)return!1;if(e.hasOwnProperty("id"))if(Array.isArray(e.id)){if(e.id.length&&!e.id.includes(t.id))return!1}else if(e.id!==t.id)return!1;if(e.hasOwnProperty("client")){const n=Object.keys(t.clients);if(Array.isArray(e.client)){if(e.client.length&&!e.client.some((e=>n.includes(e))))return!1}else if(!n.includes(e.client))return!1}return!0}async function TI({timeout:e=1e3,interval:t=100,where:n={}}={}){const r=Date.now();let i=Math.floor(e/t);const a=MI.bind(this);for(;i>0;){const e=await a({timeout:t,where:n});if(e)return this.verbose&&console.log(`[IS] ${this.id}: Router found in ${Date.now()-r}ms`),e;i--}return this.verbose&&console.log(`[IS] ${this.id}: Router not found in ${Date.now()-r}ms`),null}function PI({window:e,timeout:t,where:n}={}){return new Promise(((r,i)=>{const a=yI();this.transactionHandler[a]=e=>{if("object"!=typeof e.data)return;const{contextId:t,scriptId:n,serviceId:i,messageId:a,sender:o}=e.data;t&&n&&i&&a&&o&&r(e.data)};const o=this.createMessage({transactionId:a,method:"are-you-router"});o.body={where:n},e.postMessage(o,"*"),this.setupTransactionTimeout({transactionId:a,reject:i,timeout:t})}))}function LI({where:e}={}){const t=II.services,n=Object.keys(t),r=this.serviceId;for(let i=0;i<n.length;i++){const a=t[n[i]];if(a.serviceId!==r&&(OI({where:e,service:a})&&a.router_enabled))return a}return null}async function MI({timeout:e,where:t}={}){const n=LI.call(this,{where:t});if(n)return{window:window,serviceId:n.serviceId,contextId:n.contextId,scriptId:n.scriptId};let r=window.parent;for(;r!==window;){const n=await PI.call(this,{window:r,timeout:e,where:t}).catch((e=>{this.verbose&&console.log(`[IS] ${this.id}: ${e.message}`)}));if(n)return{window:r,serviceId:n.serviceId,contextId:n.contextId,scriptId:n.scriptId};if(r===r.parent)break;r=r.parent}return null}function BI({method:e}){this.api[e]&&(delete this.api[e],delete this.registeredHandlers[e],this.verbose&&console.log(`[IS] ${this.id}: Unregistered handler for ${e}`))}function jI(){return yI()}async function UI(e){const{transactionId:t,messageId:n,serviceId:r,method:i,sender:a,body:o}=e.data;if(this.serviceId===r)return;if(!OI({where:o?.where,service:this}))return;const s=new MessageChannel;s.port1.start(),this.clients[a]=s.port1,this.clients[a].onmessage=this.handleMessage.bind(this),this.clients[a].serviceId=r,this.clients[a].onmessageerror=e=>{console.error(`[IS] ${this.id}: Error received from ${a}`,e?.message||e)};const u=this.createMessage({transactionId:t,replyTo:n});u.body=o,e.source.postMessage(u,"*",[s.port2]),this.verbose&&console.log(`[IS] ${this.id}: Connection received from ${a}`);try{this.ee.emit("connected",{contextId:e.data.contextId,scriptId:e.data.scriptId,serviceId:r,service:a})}catch(e){this.verbose&&console.log(`[IS] ${this.id}: Error while emitting connected event`,e.message)}}async function FI(e){const{transactionId:t,messageId:n,serviceId:r,body:i}=e.data;if(!0!==this.router_enabled)return;if(this.serviceId===r)return;if(!OI({where:i?.where,service:this}))return;const a=this.createMessage({transactionId:t,replyTo:n});a.body=i,e.source.postMessage(a,"*")}async function NI(e){const{transactionId:t,messageId:n,method:r,service:i}=e.data,a=this.createMessage({transactionId:t,replyTo:n});try{const t=await this.api.proxy({method:r,args:e.data.body,service:i});a.body=t,e.target.postMessage(a)}catch(t){a.error=t?.message||t,e.target.postMessage(a)}}async function $I(e){const{transactionId:t,messageId:n,method:r}=e.data,i=this.registeredHandlers[r],a=this.createMessage({transactionId:t,replyTo:n});try{const t=await i(e.data.body,e.data);a.body=t,e.target.postMessage(a)}catch(t){a.error=t?.message||t,e.target.postMessage(a)}}async function GI(e){const{transactionId:t}=e.data,n=this.transactionHandler[t];delete this.transactionHandler[t],await n(e)}async function HI(e){if("object"!=typeof e.data)return;const{transactionId:t,contextId:n,scriptId:r,messageId:i,serviceId:a,method:o,service:s}=e.data;if(t&&n&&r&&i&&a)switch(this.verbose&&console.log(`[IS] ${this.id}`,e.data),o){case"connect":await UI.call(this,e);break;case"are-you-router":await FI.call(this,e);break;default:o&&s?await NI.call(this,e):o&&this.registeredHandlers[o]?await $I.call(this,e):this.transactionHandler[t]&&await GI.call(this,e)}}function zI({transactionId:e,reject:t,timeout:n=1e3}){const r=setTimeout((()=>{clearTimeout(r),delete this.transactionHandler[e],this.api.unregister({method:e}),t(new Error("[IS] timeout"))}),n)}async function ZI(){const e="INTERSERVICE_CONTEXT_ID";window[e]||Object.defineProperty(window,e,{value:yI(),enumerable:!1,configurable:!1}),this.contextId=window[e],this.scriptId=await async function(e){if(!e)return null;const t=(new TextEncoder).encode(e),n=await crypto.subtle.digest("SHA-1",t),r=Array.from(new Uint8Array(n)).map((e=>e.toString(16).padStart(2,"0"))).join("");return r}(document.currentScript&&document.currentScript.src||new URL("index.js",document.baseURI).href)}function VI(e){return{ts:Date.now(),contextId:this.contextId,scriptId:this.scriptId,serviceId:this.serviceId,messageId:yI(),sender:this.id,...e}}async function KI({id:e,verbose:t,router:n}){const r={api:{}};function i(e,t){Object.defineProperty(r.api,e,{get:()=>t,enumerable:!1,configurable:!1})}function a(e,t){const n=t.bind(r);r.api.register({method:e,handler:n})}return await async function(){if(!/^([a-z\-_]+)$/.test(e))throw new Error("[IS] Invalid ID format. ID should be lowercase and can include '-' and '_'.");this.router_enabled=n,this.serviceId=yI(),this.id=e,this.verbose=t,this.ee=new wI,this.router=null,this.clients={},this.transactionHandler={},this.registeredHandlers={},this.setupTransactionTimeout=zI.bind(this),this.handleMessage=HI.bind(this),this.createMessage=VI.bind(this),await ZI.apply(this),window.addEventListener("message",this.handleMessage),II.services[this.id]=this}.apply(r),i("connect",xI.bind(r)),i("findRouter",TI.bind(r)),i("register",SI.bind(r)),i("unregister",BI.bind(r)),i("registerProxy",DI.bind(r)),i("proxy",RI.bind(r)),i("dispose",CI.bind(r)),i("newId",jI.bind(r)),i("on",r.ee.on.bind(r.ee)),i("once",r.ee.once.bind(r.ee)),i("off",r.ee.off.bind(r.ee)),i("addListener",r.ee.addListener.bind(r.ee)),i("removeListener",r.ee.removeListener.bind(r.ee)),i("removeAllListeners",r.ee.removeAllListeners.bind(r.ee)),a("ping",kI),a("echo",EI),r.api}var qI;function WI(e){return YI.apply(this,arguments)}function YI(){return YI=t(d.mark((function e(t){var n,r,i,a;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.whichFrame,r=t.options,e.prev=1,i="gd-".concat(n),a=!1,!("loader-frame"===n)){e.next=12;break}return e.next=9,QI({id:i,verbose:a,options:r});case 9:qI=e.sent,e.next=15;break;case 12:return e.next=14,XI({id:i,verbose:a,options:r});case 14:qI=e.sent;case 15:e.next=20;break;case 17:e.prev=17,e.t0=e.catch(1),ac("[GD-IS] GD interservice create error",e.t0);case 20:case"end":return e.stop()}}),e,null,[[1,17]])}))),YI.apply(this,arguments)}function QI(e){return JI.apply(this,arguments)}function JI(){return JI=t(d.mark((function e(r){var i,a,o,s,u=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.id,a=r.verbose,o=r.options,e.next=4,KI({id:i,verbose:a,router:!0});case 4:return(s=e.sent).on("connected",function(e){n(this,u),"gd-game-frame"===e.service&&s.registerProxy({alias:"isStoreVisible",method:"isStoreVisible",service:"gd-game-frame"})}.bind(this)),s.register({method:"whoami",handler:function(){return n(this,u),"[GD-IS] I am ".concat(i)}.bind(this)}),s.register({method:"isLoader",handler:function(){return n(this,u),!0}.bind(this)}),s.register({method:"hasRouter",handler:function(){return n(this,u),!1}.bind(this)}),s.register({method:"showAd",handler:function(){var e=t(d.mark((function e(n){var r,i,a;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=o.showAd?o.showAd:function(){var e=t(d.mark((function e(t){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",!0);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),i=n.adType,a=n.params,e.next=4,r(i,a);case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}),s.register({method:"getLoaderInfo",handler:function(){return n(this,u),{url:window.location.href}}.bind(this)}),s.register({method:"registerOnEvents",handler:function(){var e=t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s.registerProxy({alias:"onEvent",method:"onEvent",service:"gd-game-frame"}),e.abrupt("return","[GD-IS] gd-game-frame registered for onEvents");case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()}),e.next=14,s.whoami();case 14:return e.sent,e.abrupt("return",s);case 17:case"end":return e.stop()}}),e,this)}))),JI.apply(this,arguments)}function XI(e){return eR.apply(this,arguments)}function eR(){return eR=t(d.mark((function e(t){var r,i,a,o,s,u=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.id,i=t.verbose,a=t.options,e.next=4,KI({id:r,verbose:i,router:!1});case 4:return o=e.sent,"gd-loader-frame",e.next=8,o.findRouter({where:{id:"gd-loader-frame"}}).catch(function(e){n(this,u)}.bind(this));case 8:if(s=e.sent,e.t0=!!s,!e.t0){e.next=15;break}return e.next=14,o.connect(s).catch(function(e){n(this,u),ac("[GD-IS] Failed to connect to router",(null==e?void 0:e.message)||e)}.bind(this));case 14:e.t0=e.sent;case 15:return e.t0,o.register({method:"whoami",handler:function(){return n(this,u),"[GD-IS] I am ".concat(r)}.bind(this)}),o.register({method:"onEvent",handler:function(e){var t=this;n(this,u);var r=e.event;(a.onEvent||function(e){n(this,t)}.bind(this))(r)}.bind(this)}),o.register({method:"isLoader",handler:function(){return n(this,u),!1}.bind(this)}),o.register({method:"hasRouter",handler:function(){return n(this,u),!!s}.bind(this)}),o.register({method:"isStoreVisible",handler:function(){var e;return n(this,u),(null===(e=window.gdsdk.store)||void 0===e?void 0:e.isVisible)&&window.gdsdk.store.isVisible()}.bind(this)}),s&&(o.registerProxy({alias:"whoIsLoader",method:"whoami"}),o.registerProxy({alias:"registerOnEvents",method:"registerOnEvents"}),o.registerProxy({alias:"showAd",method:"showAd"}),o.registerProxy({alias:"getLoaderInfo",method:"getLoaderInfo"})),e.next=25,o.whoami();case 25:if(e.sent,!s){e.next=36;break}return e.next=30,o.whoIsLoader();case 30:return e.sent,e.next=33,o.registerOnEvents();case 33:e.sent;case 36:return e.abrupt("return",o);case 37:case"end":return e.stop()}}),e,this)}))),eR.apply(this,arguments)}var tR=!1;function nR(){var e=this;return new Promise(function(t,r){var i=this;if(n(this,e),qI||tR)t(qI);else{var a=setInterval(function(){n(this,i),qI&&(tR=!0,clearInterval(a),t(qI))}.bind(this),100);setTimeout(function(){n(this,i),clearInterval(a),qI||(tR=!0,t(qI))}.bind(this),5e3)}}.bind(this))}var rR=function(){var e=t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(qI){e.next=2;break}return e.abrupt("return",!1);case 2:if(e.t0=qI.isStoreVisible,!e.t0){e.next=7;break}return e.next=6,qI.isStoreVisible();case 6:e.t0=e.sent;case 7:return e.abrupt("return",e.t0);case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),iR=function(){var e=this,t=C(window.location.href,!0),r=t.host,i=t.query,a=function(t){return n(this,e),"revision.gamedistribution.com"===t||"uncached-html5.gamedistribution.com"===t}.bind(this),o=a(r);null!=i&&i.gd_sdk_referrer_url&&(o=a(C(i.gd_sdk_referrer_url).host));return o},aR=function(){var e=t(d.mark((function e(){var t;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!window.isForwarderFrame,!!window.isForwarderFrame){e.next=17;break}if(!iR()){e.next=8;break}return e.abrupt("return",!0);case 8:return e.next=10,nR();case 10:if(t=e.sent,!((null==t?void 0:t.isLoader())||!1)){e.next=15;break}return e.abrupt("return",!1);case 15:e.next=18;break;case 17:case 18:return e.abrupt("return",!0);case 19:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),oR=function(){var e=t(d.mark((function e(){var t;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,oI();case 2:if(t=e.sent,null==t?void 0:t.igs){e.next=6;break}return e.abrupt("return",!1);case 6:return oc("[GD-IGS] store config available"),e.next=9,aR();case 9:if(e.sent){e.next=12;break}return e.abrupt("return",!1);case 12:return e.abrupt("return",!0);case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();function sR(e,t){var r=this,i=!1,a=null;if(e){var o=e,s=C(o,!0),u=s.query;if(Object.keys(u).some(function(e){return n(this,r),e.toLowerCase()===t}.bind(this)))i=!0,a=u[t.toLowerCase()];else if(o=null==u?void 0:u.gd_sdk_referrer_url){var c=(s=C(o,!0)).query;Object.keys(c).some(function(e){return n(this,r),e.toLowerCase()===t}.bind(this))&&(i=!0,a=u[t.toLowerCase()])}}return{exists:i,value:a}}var uR=function(){var e=t(d.mark((function e(){var t,n,r,i,a,o,s;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=!1,e.next=3,nR();case 3:if(n=e.sent,e.t1=n,!e.t1){e.next=9;break}return e.next=8,n.getLoaderInfo();case 8:e.t1=e.sent;case 9:if(e.t0=e.t1,e.t0){e.next=12;break}e.t0={};case 12:return r=e.t0,i=r.url,a=sR(i,"sandbox"),o=a.exists,s=a.value,o&&(t=!0===s||"true"===s||1===s),e.abrupt("return",t);case 17:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),cR=function(){var e=t(d.mark((function e(){var t,n,r,i,a;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,nR();case 2:if(t=e.sent,e.t1=t,!e.t1){e.next=8;break}return e.next=7,t.getLoaderInfo();case 7:e.t1=e.sent;case 8:if(e.t0=e.t1,e.t0){e.next=11;break}e.t0={};case 11:return n=e.t0,r=n.url,i=sR(r,"igs"),a=i.exists,i.value,e.abrupt("return",a);case 15:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),dR=function(){var e=t(d.mark((function e(t){var r,i,a,o,s,u,c,l,f,p,h,m=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=t.onEvent,e.next=3,oI();case 3:return a=e.sent,o=null==a?void 0:a.igs,e.next=7,oR();case 7:if(e.sent){e.next=10;break}return e.abrupt("return");case 10:return oc("[GD-IGS] store will initalize for frame",{loc:window.location.href}),"https://pm.azerioncircle.com/p/gd-sdk-igs-proxy",e.next=14,ft("https://pm.azerioncircle.com/p/gd-sdk-igs-proxy","gd-sdk-igs-proxy",{});case 14:if(!(s=null===(r=window.GD_SDK_IGS_PROXY)||void 0===r?void 0:r.create)){e.next=36;break}return c="https://html5.gamedistribution.com/igs/index.html",e.next=19,cR();case 19:return l=e.sent,e.next=22,uR();case 22:return f=e.sent,oc("[GD-IS-IGS] sandbox",f),e.next=26,s({igs:o,storeFrameUrl:c,showStoreOpener:l,sandbox:f});case 26:if(p=e.sent){e.next=29;break}return e.abrupt("return");case 29:h=!1,(null===(u=p.events)||void 0===u?void 0:u.onAny)&&p.events.onAny(function(e){var t;(n(this,m),"STORE_UI_VISIBILITY_CHANGED"===(null==e?void 0:e.name))&&(h=(null===(t=e.data)||void 0===t?void 0:t.visible)||!1);i&&i(e)}.bind(this)),p.isVisible=function(){return h},window.gdsdk.store=p,window.gdsdk.executeStoreAction=p.executeStoreAction.bind(p),i({name:"STORE_READY",data:{}}),oc("[GD-IGS] store ready");case 36:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}();function lR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function fR(e){return function(e){if(Array.isArray(e))return lR(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return lR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?lR(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var pR=Gs,hR=tg,mR=zt,vR=ur,gR=Nn,AR=Ym,bR=rb,yR=na,_R=hR&&hR.prototype;if(pR({target:"Promise",proto:!0,real:!0,forced:!!hR&&mR((function(){_R.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=AR(this,vR("Promise")),n=gR(e);return this.then(n?function(n){return bR(t,e()).then((function(){return n}))}:e,n?function(n){return bR(t,e()).then((function(){throw n}))}:e)}}),gR(hR)){var wR=vR("Promise").prototype.finally;_R.finally!==wR&&yR(_R,"finally",wR,{unsafe:!0})}var xR="\t\n\v\f\r \u2028\u2029\ufeff",kR=en,ER=Qs,SR=xR,DR=Yt("".replace),IR=RegExp("^["+SR+"]+"),RR=RegExp("(^|[^"+SR+"])["+SR+"]+$"),CR=function(e){return function(t){var n=ER(kR(t));return 1&e&&(n=DR(n,IR,"")),2&e&&(n=DR(n,RR,"$1")),n}},OR={start:CR(1),end:CR(2),trim:CR(3)},TR=ti.PROPER,PR=zt,LR=xR,MR=OR.trim;Gs({target:"String",proto:!0,forced:function(e){return PR((function(){return!!LR[e]()||"
"!=="
"[e]()||TR&&LR[e].name!==e}))}("trim")},{trim:function(){return MR(this)}});var BR=Gs,jR=yo.find,UR=am,FR="find",NR=!0;FR in[]&&Array(1)[FR]((function(){NR=!1})),BR({target:"Array",proto:!0,forced:NR},{find:function(e){return jR(this,e,arguments.length>1?arguments[1]:void 0)}}),UR(FR);var $R=Nn,GR=Zn,HR=ah,zR=$n.f,ZR=Gn,VR=Pt,KR=Yt,qR=Ls,WR=function(e,t,n){var r,i;return HR&&$R(r=t.constructor)&&r!==n&&GR(i=r.prototype)&&i!==n.prototype&&HR(e,i),e},YR=mi,QR=Wo.f,JR=cr,XR=Zb,eC=Qs,tC=hy,nC=au,rC=function(e,t,n){n in e||zR(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})},iC=na,aC=zt,oC=sn,sC=Li.enforce,uC=Fm,cC=Ou,dC=Lu,lC=Ln("match"),fC=VR.RegExp,pC=fC.prototype,hC=VR.SyntaxError,mC=KR(pC.exec),vC=KR("".charAt),gC=KR("".replace),AC=KR("".indexOf),bC=KR("".slice),yC=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,_C=/a/g,wC=/a/g,xC=new fC(_C)!==_C,kC=nC.MISSED_STICKY,EC=nC.UNSUPPORTED_Y,SC=ZR&&(!xC||kC||cC||dC||aC((function(){return wC[lC]=!1,fC(_C)!=_C||fC(wC)==wC||"/a/i"!=fC(_C,"i")})));if(qR("RegExp",SC)){for(var DC=function(e,t){var n,r,i,a,o,s,u=JR(pC,this),c=XR(e),d=void 0===t,l=[],f=e;if(!u&&c&&d&&e.constructor===DC)return e;if((c||JR(pC,e))&&(e=e.source,d&&(t=tC(f))),e=void 0===e?"":eC(e),t=void 0===t?"":eC(t),f=e,cC&&"dotAll"in _C&&(r=!!t&&AC(t,"s")>-1)&&(t=gC(t,/s/g,"")),n=t,kC&&"sticky"in _C&&(i=!!t&&AC(t,"y")>-1)&&EC&&(t=gC(t,/y/g,"")),dC&&(a=function(e){for(var t,n=e.length,r=0,i="",a=[],o={},s=!1,u=!1,c=0,d="";r<=n;r++){if("\\"===(t=vC(e,r)))t+=vC(e,++r);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:mC(yC,bC(e,r+1))&&(r+=2,u=!0),i+=t,c++;continue;case">"===t&&u:if(""===d||oC(o,d))throw new hC("Invalid capture group name");o[d]=!0,a[a.length]=[d,c],u=!1,d="";continue}u?d+=t:i+=t}return[i,a]}(e),e=a[0],l=a[1]),o=WR(fC(e,t),u?this:pC,DC),(r||i||l.length)&&(s=sC(o),r&&(s.dotAll=!0,s.raw=DC(function(e){for(var t,n=e.length,r=0,i="",a=!1;r<=n;r++)"\\"!==(t=vC(e,r))?a||"."!==t?("["===t?a=!0:"]"===t&&(a=!1),i+=t):i+="[\\s\\S]":i+=t+vC(e,++r);return i}(e),n)),i&&(s.sticky=!0),l.length&&(s.groups=l)),e!==f)try{YR(o,"source",""===f?"(?:)":f)}catch(e){}return o},IC=QR(fC),RC=0;IC.length>RC;)rC(DC,fC,IC[RC++]);pC.constructor=DC,DC.prototype=pC,iC(VR,"RegExp",DC,{constructor:!0})}uC("RegExp");var CC=Gn,OC=Yt,TC=Zs,PC=Fo,LC=OC(Po.f),MC=OC([].push),BC=function(e){return function(t){for(var n,r=PC(t),i=TC(r),a=i.length,o=0,s=[];a>o;)n=i[o++],CC&&!LC(r,n)||MC(s,e?[n,r[n]]:r[n]);return s}},jC={entries:BC(!0),values:BC(!1)}.values;Gs({target:"Object",stat:!0},{values:function(e){return jC(e)}});var UC=Gs,FC=Oa,NC=Fo,$C=wo,GC=Yt([].join);UC({target:"Array",proto:!0,forced:FC!=Object||!$C("join",",")},{join:function(e){return GC(NC(this),void 0===e?",":e)}});var HC=yo.map;Gs({target:"Array",proto:!0,forced:!ef("map")},{map:function(e){return HC(this,e,arguments.length>1?arguments[1]:void 0)}});var zC=Gn,ZC=Yt,VC=ar,KC=zt,qC=Zs,WC=hs,YC=Po,QC=rn,JC=Oa,XC=Object.assign,eO=Object.defineProperty,tO=ZC([].concat),nO=!XC||KC((function(){if(zC&&1!==XC({b:1},XC(eO({},"a",{enumerable:!0,get:function(){eO(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=XC({},e)[n]||qC(XC({},t)).join("")!=r}))?function(e,t){for(var n=QC(e),r=arguments.length,i=1,a=WC.f,o=YC.f;r>i;)for(var s,u=JC(arguments[i++]),c=a?tO(qC(u),a(u)):qC(u),d=c.length,l=0;d>l;)s=c[l++],zC&&!VC(o,u,s)||(n[s]=u[s]);return n}:XC,rO=nO;Gs({target:"Object",stat:!0,arity:2,forced:Object.assign!==rO},{assign:rO});var iO,aO=Yt,oO=2147483647,sO=/[^\0-\u007E]/,uO=/[.\u3002\uFF0E\uFF61]/g,cO="Overflow: input needs wider integers to process",dO=RangeError,lO=aO(uO.exec),fO=Math.floor,pO=String.fromCharCode,hO=aO("".charCodeAt),mO=aO([].join),vO=aO([].push),gO=aO("".replace),AO=aO("".split),bO=aO("".toLowerCase),yO=function(e){return e+22+75*(e<26)},_O=function(e,t,n){var r=0;for(e=n?fO(e/700):e>>1,e+=fO(e/t);e>455;)e=fO(e/35),r+=36;return fO(r+36*e/(e+38))},wO=function(e){var t=[];e=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=hO(e,n++);if(i>=55296&&i<=56319&&n<r){var a=hO(e,n++);56320==(64512&a)?vO(t,((1023&i)<<10)+(1023&a)+65536):(vO(t,i),n--)}else vO(t,i)}return t}(e);var n,r,i=e.length,a=128,o=0,s=72;for(n=0;n<e.length;n++)(r=e[n])<128&&vO(t,pO(r));var u=t.length,c=u;for(u&&vO(t,"-");c<i;){var d=oO;for(n=0;n<e.length;n++)(r=e[n])>=a&&r<d&&(d=r);var l=c+1;if(d-a>fO((oO-o)/l))throw dO(cO);for(o+=(d-a)*l,a=d,n=0;n<e.length;n++){if((r=e[n])<a&&++o>oO)throw dO(cO);if(r==a){for(var f=o,p=36;;){var h=p<=s?1:p>=s+26?26:p-s;if(f<h)break;var m=f-h,v=36-h;vO(t,pO(yO(h+m%v))),f=fO(m/v),p+=36}vO(t,pO(yO(f))),s=_O(o,l,c==u),o=0,c++}}o++,a++}return mO(t,"")},xO=Gs,kO=Gn,EO=G_,SO=Pt,DO=Sa,IO=Yt,RO=na,CO=Ic,OO=Gm,TO=sn,PO=nO,LO=sp,MO=yc,BO=Ep.codeAt,jO=function(e){var t,n,r=[],i=AO(gO(bO(e),uO,"."),".");for(t=0;t<i.length;t++)n=i[t],vO(r,lO(sO,n)?"xn--"+wO(n):n);return mO(r,".")},UO=Qs,FO=Hc,NO=Jm,$O=cx,GO=Li,HO=GO.set,zO=GO.getterFor("URL"),ZO=$O.URLSearchParams,VO=$O.getState,KO=SO.URL,qO=SO.TypeError,WO=SO.parseInt,YO=Math.floor,QO=Math.pow,JO=IO("".charAt),XO=IO(/./.exec),eT=IO([].join),tT=IO(1..toString),nT=IO([].pop),rT=IO([].push),iT=IO("".replace),aT=IO([].shift),oT=IO("".split),sT=IO("".slice),uT=IO("".toLowerCase),cT=IO([].unshift),dT="Invalid scheme",lT="Invalid host",fT="Invalid port",pT=/[a-z]/i,hT=/[\d+-.a-z]/i,mT=/\d/,vT=/^0x/i,gT=/^[0-7]+$/,AT=/^\d+$/,bT=/^[\da-f]+$/i,yT=/[\0\t\n\r #%/:<>?@[\\\]^|]/,_T=/[\0\t\n\r #/:<>?@[\\\]^|]/,wT=/^[\u0000-\u0020]+/,xT=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,kT=/[\t\n\r]/g,ET=function(e){var t,n,r,i;if("number"==typeof e){for(t=[],n=0;n<4;n++)cT(t,e%256),e=YO(e/256);return eT(t,".")}if("object"==typeof e){for(t="",r=function(e){for(var t=null,n=1,r=null,i=0,a=0;a<8;a++)0!==e[a]?(i>n&&(t=r,n=i),r=null,i=0):(null===r&&(r=a),++i);return i>n&&(t=r,n=i),t}(e),n=0;n<8;n++)i&&0===e[n]||(i&&(i=!1),r===n?(t+=n?":":"::",i=!0):(t+=tT(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},ST={},DT=PO({},ST,{" ":1,'"':1,"<":1,">":1,"`":1}),IT=PO({},DT,{"#":1,"?":1,"{":1,"}":1}),RT=PO({},IT,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),CT=function(e,t){var n=BO(e,0);return n>32&&n<127&&!TO(t,e)?e:encodeURIComponent(e)},OT={ftp:21,file:null,http:80,https:443,ws:80,wss:443},TT=function(e,t){var n;return 2==e.length&&XO(pT,JO(e,0))&&(":"==(n=JO(e,1))||!t&&"|"==n)},PT=function(e){var t;return e.length>1&&TT(sT(e,0,2))&&(2==e.length||"/"===(t=JO(e,2))||"\\"===t||"?"===t||"#"===t)},LT=function(e){return"."===e||"%2e"===uT(e)},MT={},BT={},jT={},UT={},FT={},NT={},$T={},GT={},HT={},zT={},ZT={},VT={},KT={},qT={},WT={},YT={},QT={},JT={},XT={},eP={},tP={},nP=function(e,t,n){var r,i,a,o=UO(e);if(t){if(i=this.parse(o))throw qO(i);this.searchParams=null}else{if(void 0!==n&&(r=new nP(n,!0)),i=this.parse(o,null,r))throw qO(i);(a=VO(new ZO)).bindURL(this),this.searchParams=a}};nP.prototype={type:"URL",parse:function(e,t,n){var r,i,a,o,s,u=this,c=t||MT,d=0,l="",f=!1,p=!1,h=!1;for(e=UO(e),t||(u.scheme="",u.username="",u.password="",u.host=null,u.port=null,u.path=[],u.query=null,u.fragment=null,u.cannotBeABaseURL=!1,e=iT(e,wT,""),e=iT(e,xT,"$1")),e=iT(e,kT,""),r=LO(e);d<=r.length;){switch(i=r[d],c){case MT:if(!i||!XO(pT,i)){if(t)return dT;c=jT;continue}l+=uT(i),c=BT;break;case BT:if(i&&(XO(hT,i)||"+"==i||"-"==i||"."==i))l+=uT(i);else{if(":"!=i){if(t)return dT;l="",c=jT,d=0;continue}if(t&&(u.isSpecial()!=TO(OT,l)||"file"==l&&(u.includesCredentials()||null!==u.port)||"file"==u.scheme&&!u.host))return;if(u.scheme=l,t)return void(u.isSpecial()&&OT[u.scheme]==u.port&&(u.port=null));l="","file"==u.scheme?c=qT:u.isSpecial()&&n&&n.scheme==u.scheme?c=UT:u.isSpecial()?c=GT:"/"==r[d+1]?(c=FT,d++):(u.cannotBeABaseURL=!0,rT(u.path,""),c=XT)}break;case jT:if(!n||n.cannotBeABaseURL&&"#"!=i)return dT;if(n.cannotBeABaseURL&&"#"==i){u.scheme=n.scheme,u.path=MO(n.path),u.query=n.query,u.fragment="",u.cannotBeABaseURL=!0,c=tP;break}c="file"==n.scheme?qT:NT;continue;case UT:if("/"!=i||"/"!=r[d+1]){c=NT;continue}c=HT,d++;break;case FT:if("/"==i){c=zT;break}c=JT;continue;case NT:if(u.scheme=n.scheme,i==iO)u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=MO(n.path),u.query=n.query;else if("/"==i||"\\"==i&&u.isSpecial())c=$T;else if("?"==i)u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=MO(n.path),u.query="",c=eP;else{if("#"!=i){u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=MO(n.path),u.path.length--,c=JT;continue}u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=MO(n.path),u.query=n.query,u.fragment="",c=tP}break;case $T:if(!u.isSpecial()||"/"!=i&&"\\"!=i){if("/"!=i){u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,c=JT;continue}c=zT}else c=HT;break;case GT:if(c=HT,"/"!=i||"/"!=JO(l,d+1))continue;d++;break;case HT:if("/"!=i&&"\\"!=i){c=zT;continue}break;case zT:if("@"==i){f&&(l="%40"+l),f=!0,a=LO(l);for(var m=0;m<a.length;m++){var v=a[m];if(":"!=v||h){var g=CT(v,RT);h?u.password+=g:u.username+=g}else h=!0}l=""}else if(i==iO||"/"==i||"?"==i||"#"==i||"\\"==i&&u.isSpecial()){if(f&&""==l)return"Invalid authority";d-=LO(l).length+1,l="",c=ZT}else l+=i;break;case ZT:case VT:if(t&&"file"==u.scheme){c=YT;continue}if(":"!=i||p){if(i==iO||"/"==i||"?"==i||"#"==i||"\\"==i&&u.isSpecial()){if(u.isSpecial()&&""==l)return lT;if(t&&""==l&&(u.includesCredentials()||null!==u.port))return;if(o=u.parseHost(l))return o;if(l="",c=QT,t)return;continue}"["==i?p=!0:"]"==i&&(p=!1),l+=i}else{if(""==l)return lT;if(o=u.parseHost(l))return o;if(l="",c=KT,t==VT)return}break;case KT:if(!XO(mT,i)){if(i==iO||"/"==i||"?"==i||"#"==i||"\\"==i&&u.isSpecial()||t){if(""!=l){var A=WO(l,10);if(A>65535)return fT;u.port=u.isSpecial()&&A===OT[u.scheme]?null:A,l=""}if(t)return;c=QT;continue}return fT}l+=i;break;case qT:if(u.scheme="file","/"==i||"\\"==i)c=WT;else{if(!n||"file"!=n.scheme){c=JT;continue}if(i==iO)u.host=n.host,u.path=MO(n.path),u.query=n.query;else if("?"==i)u.host=n.host,u.path=MO(n.path),u.query="",c=eP;else{if("#"!=i){PT(eT(MO(r,d),""))||(u.host=n.host,u.path=MO(n.path),u.shortenPath()),c=JT;continue}u.host=n.host,u.path=MO(n.path),u.query=n.query,u.fragment="",c=tP}}break;case WT:if("/"==i||"\\"==i){c=YT;break}n&&"file"==n.scheme&&!PT(eT(MO(r,d),""))&&(TT(n.path[0],!0)?rT(u.path,n.path[0]):u.host=n.host),c=JT;continue;case YT:if(i==iO||"/"==i||"\\"==i||"?"==i||"#"==i){if(!t&&TT(l))c=JT;else if(""==l){if(u.host="",t)return;c=QT}else{if(o=u.parseHost(l))return o;if("localhost"==u.host&&(u.host=""),t)return;l="",c=QT}continue}l+=i;break;case QT:if(u.isSpecial()){if(c=JT,"/"!=i&&"\\"!=i)continue}else if(t||"?"!=i)if(t||"#"!=i){if(i!=iO&&(c=JT,"/"!=i))continue}else u.fragment="",c=tP;else u.query="",c=eP;break;case JT:if(i==iO||"/"==i||"\\"==i&&u.isSpecial()||!t&&("?"==i||"#"==i)){if(".."===(s=uT(s=l))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(u.shortenPath(),"/"==i||"\\"==i&&u.isSpecial()||rT(u.path,"")):LT(l)?"/"==i||"\\"==i&&u.isSpecial()||rT(u.path,""):("file"==u.scheme&&!u.path.length&&TT(l)&&(u.host&&(u.host=""),l=JO(l,0)+":"),rT(u.path,l)),l="","file"==u.scheme&&(i==iO||"?"==i||"#"==i))for(;u.path.length>1&&""===u.path[0];)aT(u.path);"?"==i?(u.query="",c=eP):"#"==i&&(u.fragment="",c=tP)}else l+=CT(i,IT);break;case XT:"?"==i?(u.query="",c=eP):"#"==i?(u.fragment="",c=tP):i!=iO&&(u.path[0]+=CT(i,ST));break;case eP:t||"#"!=i?i!=iO&&("'"==i&&u.isSpecial()?u.query+="%27":u.query+="#"==i?"%23":CT(i,ST)):(u.fragment="",c=tP);break;case tP:i!=iO&&(u.fragment+=CT(i,DT))}d++}},parseHost:function(e){var t,n,r;if("["==JO(e,0)){if("]"!=JO(e,e.length-1))return lT;if(t=function(e){var t,n,r,i,a,o,s,u=[0,0,0,0,0,0,0,0],c=0,d=null,l=0,f=function(){return JO(e,l)};if(":"==f()){if(":"!=JO(e,1))return;l+=2,d=++c}for(;f();){if(8==c)return;if(":"!=f()){for(t=n=0;n<4&&XO(bT,f());)t=16*t+WO(f(),16),l++,n++;if("."==f()){if(0==n)return;if(l-=n,c>6)return;for(r=0;f();){if(i=null,r>0){if(!("."==f()&&r<4))return;l++}if(!XO(mT,f()))return;for(;XO(mT,f());){if(a=WO(f(),10),null===i)i=a;else{if(0==i)return;i=10*i+a}if(i>255)return;l++}u[c]=256*u[c]+i,2!=++r&&4!=r||c++}if(4!=r)return;break}if(":"==f()){if(l++,!f())return}else if(f())return;u[c++]=t}else{if(null!==d)return;l++,d=++c}}if(null!==d)for(o=c-d,c=7;0!=c&&o>0;)s=u[c],u[c--]=u[d+o-1],u[d+--o]=s;else if(8!=c)return;return u}(sT(e,1,-1)),!t)return lT;this.host=t}else if(this.isSpecial()){if(e=jO(e),XO(yT,e))return lT;if(t=function(e){var t,n,r,i,a,o,s,u=oT(e,".");if(u.length&&""==u[u.length-1]&&u.length--,(t=u.length)>4)return e;for(n=[],r=0;r<t;r++){if(""==(i=u[r]))return e;if(a=10,i.length>1&&"0"==JO(i,0)&&(a=XO(vT,i)?16:8,i=sT(i,8==a?1:2)),""===i)o=0;else{if(!XO(10==a?AT:8==a?gT:bT,i))return e;o=WO(i,a)}rT(n,o)}for(r=0;r<t;r++)if(o=n[r],r==t-1){if(o>=QO(256,5-t))return null}else if(o>255)return null;for(s=nT(n),r=0;r<n.length;r++)s+=n[r]*QO(256,3-r);return s}(e),null===t)return lT;this.host=t}else{if(XO(_T,e))return lT;for(t="",n=LO(e),r=0;r<n.length;r++)t+=CT(n[r],ST);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return TO(OT,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&TT(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,n=e.username,r=e.password,i=e.host,a=e.port,o=e.path,s=e.query,u=e.fragment,c=t+":";return null!==i?(c+="//",e.includesCredentials()&&(c+=n+(r?":"+r:"")+"@"),c+=ET(i),null!==a&&(c+=":"+a)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?o[0]:o.length?"/"+eT(o,"/"):"",null!==s&&(c+="?"+s),null!==u&&(c+="#"+u),c},setHref:function(e){var t=this.parse(e);if(t)throw qO(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new rP(e.path[0]).origin}catch(e){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+ET(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(UO(e)+":",MT)},getUsername:function(){return this.username},setUsername:function(e){var t=LO(UO(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<t.length;n++)this.username+=CT(t[n],RT)}},getPassword:function(){return this.password},setPassword:function(e){var t=LO(UO(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<t.length;n++)this.password+=CT(t[n],RT)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?ET(e):ET(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,ZT)},getHostname:function(){var e=this.host;return null===e?"":ET(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,VT)},getPort:function(){var e=this.port;return null===e?"":UO(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=UO(e))?this.port=null:this.parse(e,KT))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+eT(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,QT))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=UO(e))?this.query=null:("?"==JO(e,0)&&(e=sT(e,1)),this.query="",this.parse(e,eP)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=UO(e))?("#"==JO(e,0)&&(e=sT(e,1)),this.fragment="",this.parse(e,tP)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var rP=function(e){var t=OO(this,iP),n=NO(arguments.length,1)>1?arguments[1]:void 0,r=HO(t,new nP(e,!1,n));kO||(t.href=r.serialize(),t.origin=r.getOrigin(),t.protocol=r.getProtocol(),t.username=r.getUsername(),t.password=r.getPassword(),t.host=r.getHost(),t.hostname=r.getHostname(),t.port=r.getPort(),t.pathname=r.getPathname(),t.search=r.getSearch(),t.searchParams=r.getSearchParams(),t.hash=r.getHash())},iP=rP.prototype,aP=function(e,t){return{get:function(){return zO(this)[e]()},set:t&&function(e){return zO(this)[t](e)},configurable:!0,enumerable:!0}};if(kO&&(CO(iP,"href",aP("serialize","setHref")),CO(iP,"origin",aP("getOrigin")),CO(iP,"protocol",aP("getProtocol","setProtocol")),CO(iP,"username",aP("getUsername","setUsername")),CO(iP,"password",aP("getPassword","setPassword")),CO(iP,"host",aP("getHost","setHost")),CO(iP,"hostname",aP("getHostname","setHostname")),CO(iP,"port",aP("getPort","setPort")),CO(iP,"pathname",aP("getPathname","setPathname")),CO(iP,"search",aP("getSearch","setSearch")),CO(iP,"searchParams",aP("getSearchParams")),CO(iP,"hash",aP("getHash","setHash"))),RO(iP,"toJSON",(function(){return zO(this).serialize()}),{enumerable:!0}),RO(iP,"toString",(function(){return zO(this).serialize()}),{enumerable:!0}),KO){var oP=KO.createObjectURL,sP=KO.revokeObjectURL;oP&&RO(rP,"createObjectURL",DO(oP,KO)),sP&&RO(rP,"revokeObjectURL",DO(sP,KO))}FO(rP,"URL"),xO({global:!0,constructor:!0,forced:!EO,sham:!kO},{URL:rP});var uP=function(){function e(t){O(this,e),this.gameData=t,this.customParamKeys=["vid","_1ld","_1lp"]}return L(e,[{key:"_getFakeCustomParams",value:function(){var e={_vid:["bla_bla1","bla_bla2","bla_bla3"],_1ld:["1ld_1","1ld_2","1ld_3","1ld_4"],_1lp:["1lp_1","1lp_2"]},t={};for(var n in e){var r=e[n];t[n]=r[Math.floor(Math.random()*r.length)]}return t}},{key:"checkCustomParams",value:function(){var e=this;try{var t={},r=this.gameData.diagnostic&&this.gameData.diagnostic.cp&&this.gameData.diagnostic.cp.enabled,i=new C(location.href,!0);for(var a in i.query)t[a]=i.query[a];var o=Object.keys(t).filter(function(t){var r=this;return n(this,e),this.customParamKeys.some(function(e){return n(this,r),e===t}.bind(this))}.bind(this));return o.length>0||r?(console.log("custom-params",t,r),t):void console.log("custom-params, none")}catch(e){console.log("_checkCustomParams.Error",e)}}}]),e}(),cP=function(){function e(t,n){O(this,e),this.adContainer=t,this.onResume=n}return L(e,[{key:"show",value:function(){this.adResumeButton.style.display="block",this.adResumeButtonOverlay.style.display="block"}},{key:"hide",value:function(){this.adResumeButton.style.display="none",this.adResumeButtonOverlay.style.display="none"}},{key:"add",value:function(){var e=this;try{var t=document.createElement("div");this.adResumeButton=t,t.id="gd__resume__button",t.setAttribute("title","Resume"),this.addStyles(),t.classList.add("gd__resume__button"),t.addEventListener("click",function(){n(this,e),this.onResume()}.bind(this)),this.adContainer.appendChild(t);var r=document.createElement("div");this.adResumeButtonOverlay=r,r.id="gd__resume__button__overlay",r.classList.add("gd__resume__button__overlay"),this.adContainer.appendChild(r)}catch(e){console.log("Resume button add error",e)}}},{key:"addStyles",value:function(){var e=document.body||document.getElementsByTagName("body")[0];this.addStylesheet("gd__resume__button__style",e,'\n .gd__resume__button{\n background-image: url("https://img.gamedistribution.com/play-black.svg");\n background-color:white; \n width: 120px;\n height: 120px;\n position: absolute;\n display: none;\n z-index: 2000;\n cursor: pointer;\n top: calc(50% - 60px);\n left: calc(50% - 60px);\n margin: 0;\n border-radius: 50%;\n border: 2px solid white;\n animation: play-button 1s ease-in-out infinite alternate;\n -webkit-animation: play-button 1s ease-in-out infinite alternate;\n }\n \n .gd__resume__button__overlay {\n position: fixed;\n display: none;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: rgba(0,0,0,0.5);\n z-index: 1999;\n cursor: pointer;\n }\n @keyframes play-button {\n 0% {\n transform: scale(1.0);\n -webkit-transform: scale(1.0);\n }\n 100% {\n transform: scale(1.1);\n -webkit-transform: scale(1.1);\n }\n }\n .gd__resume__button:hover{\n filter: invert(100%) sepia(51%) saturate(0%) hue-rotate(346deg) brightness(104%) contrast(100%); \n }\n ')}},{key:"addStylesheet",value:function(e,t,n){if(!document.getElementById(e)){var r=document.createElement("style");r.type="text/css",r.id=e,r.styleSheet?r.styleSheet.cssText=n:r.appendChild(document.createTextNode(n)),t.appendChild(r)}}}]),e}(),dP=function(){function e(t,n){O(this,e),this.adContainer=t,this.onResume=n}return L(e,[{key:"show",value:function(){this.rewardLabel.style.display="block"}},{key:"hide",value:function(){this.rewardLabel.style.display="none"}},{key:"add",value:function(){try{var e=document.createElement("div");this.rewardLabel=e;var t=document.createElement("span");t.innerText="To receive the reward, please do not skip the ad",this.addStyles(),e.classList.add("gd__reward__label"),t.classList.add("gd__reward__span"),this.rewardLabel.appendChild(t),this.adContainer.appendChild(e)}catch(e){console.log(e)}}},{key:"addStyles",value:function(){var e=document.body||document.getElementsByTagName("body")[0];this.addStylesheet("gd__reward__label__style",e,"\n .gd__reward__label{\n background-color:black; \n width: 160px;\n // height: 35px;\n position: absolute;\n display: none;\n z-index: 2000;\n cursor: pointer;\n bottom: 40px;\n left: 10px;\n margin: 0;\n border-radius: 5px;\n border: .5px solid gray;\n text-align: center;\n }\n .gd__reward__label:hover{\n filter: invert(100%) sepia(51%) saturate(0%) hue-rotate(346deg) brightness(104%) contrast(100%); \n }\n .gd__reward__span{\n color: white;\n font-size: 12px;\n padding-left: 5px;\n font-family: Verdana, Arial, Helvetica, sans-serif;\n text-align: center;\n }\n ")}},{key:"addStylesheet",value:function(e,t,n){if(!document.getElementById(e)){var r=document.createElement("style");r.type="text/css",r.id=e,r.styleSheet?r.styleSheet.cssText=n:r.appendChild(document.createTextNode(n)),t.appendChild(r)}}}]),e}(),lP=function(){function e(t,n,r){O(this,e),this.adContainer=t,this.onResume=n,this.OnSkip=r}return L(e,[{key:"show",value:function(){this.skipAd.style.display="block"}},{key:"hide",value:function(){this.skipAd.style.display="none"}},{key:"add",value:function(){var e=this;try{var t=document.createElement("div");this.skipAd=t;var r=document.createElement("span");r.innerText="Skip Ad >>",this.addStyles(),t.classList.add("gd__skip__ad"),r.classList.add("gd__skip__span"),this.skipAd.appendChild(r),this.adContainer.appendChild(t),this.skipAd.addEventListener("click",function(){n(this,e),this.OnSkip()}.bind(this))}catch(e){console.log(e)}}},{key:"addStyles",value:function(){var e=document.body||document.getElementsByTagName("body")[0];this.addStylesheet("gd__skip__ad__style",e,"\n .gd__skip__ad{\n background-color:black; \n width: 260px;\n // height: 35px;\n position: absolute;\n display: none;\n z-index: 2000;\n cursor: pointer;\n bottom: 40px;\n right: 0px;\n margin: 0;\n border-radius: 5px;\n border: .5px solid gray;\n text-align: center;\n padding: 10px;\n }\n .gd__skip__ad:hover{\n filter: invert(100%) sepia(51%) saturate(0%) hue-rotate(346deg) brightness(104%) contrast(100%); \n }\n .gd__skip__span{\n color: white;\n font-size: 22px;\n padding-left: 5px;\n font-family: Verdana, Arial, Helvetica, sans-serif;\n text-align: center;\n }\n ")}},{key:"addStylesheet",value:function(e,t,n){if(!document.getElementById(e)){var r=document.createElement("style");r.type="text/css",r.id=e,r.styleSheet?r.styleSheet.cssText=n:r.appendChild(document.createTextNode(n)),t.appendChild(r)}}}]),e}(),fP=function(){function e(t){O(this,e),this.adContainer=t}return L(e,[{key:"show",value:function(){this.audioLabel.style.display="block"}},{key:"hide",value:function(){this.audioLabel.style.display="none"}},{key:"mute",value:function(){document.getElementById("game").contentWindow.postMessage("mute","*")}},{key:"unmute",value:function(){document.getElementById("game").contentWindow.postMessage("unmute","*")}},{key:"add",value:function(){try{var e=document.createElement("div");this.audioLabel=e;var t=document.createElement("span");t.innerText="Audio Ad is Playing";var n=document.createElement("span");n.innerHTML="ⓘ",this.addStyles(),e.classList.add("gd__audio__label"),t.classList.add("gd__audio__span"),n.classList.add("gd__audio__span"),this.audioLabel.appendChild(n),this.audioLabel.appendChild(t),this.adContainer.appendChild(e)}catch(e){console.log(e)}}},{key:"addStyles",value:function(){var e=document.body||document.getElementsByTagName("body")[0];this.addStylesheet("gd__audio__label__style",e,"\n .gd__audio__label{\n background-color: #ffca00; \n width: 200px;\n position: relative;\n display: none;\n z-index: 2000;\n cursor: pointer;\n top: 0px;\n margin: 0 auto;\n border-radius: 0px;\n border: 0px;\n text-align: center;\n height: 30px;\n border-bottom-left-radius: 3px;\n border-bottom-right-radius: 3px;\n padding: 5px;\n }\n .gd__audio__span{\n color: black;\n font-size: 14px;\n padding-left: 5px;\n font-family: Verdana, Arial, Helvetica, sans-serif;\n text-align: center;\n }\n ")}},{key:"addStylesheet",value:function(e,t,n){if(!document.getElementById(e)){var r=document.createElement("style");r.type="text/css",r.id=e,r.styleSheet?r.styleSheet.cssText=n:r.appendChild(document.createTextNode(n)),t.appendChild(r)}}}]),e}(),pP=function(){function e(t){O(this,e),this.adContainer=t,this.counterLabel=null,this.countdownInterval=null}return L(e,[{key:"show",value:function(){this.counterLabel&&(this.counterLabel.style.display="block",this.startCountdown(this.counterSpan,5))}},{key:"hide",value:function(){this.counterLabel&&(this.counterLabel.style.display="none"),this.countdownInterval&&(clearInterval(this.countdownInterval),this.countdownInterval=null)}},{key:"add",value:function(){try{var e=document.createElement("div");this.counterLabel=e;var t=document.createElement("span");this.counterSpan=t,t.innerText="Ad showing in 5...",t.classList.add("gd__counter__span"),this.addStyles(),e.classList.add("gd__counter__label"),e.appendChild(t),this.adContainer.appendChild(e)}catch(e){console.log(e)}}},{key:"startCountdown",value:function(e,t){var r=this,i=t;e.innerText="Ad showing in ".concat(i,"..."),this.countdownInterval=setInterval(function(){n(this,r),(i-=1)>0?e.innerText="Ad showing in ".concat(i,"..."):(clearInterval(this.countdownInterval),e.innerText="Ad is now showing!",this.hide())}.bind(this),1e3)}},{key:"addStyles",value:function(){var e=document.body||document.getElementsByTagName("body")[0];this.addStylesheet("gd__counter__label__style",e,"\n .gd__counter__label {\n position: absolute;\n background-color: rgba(0, 0, 0, 0.5);\n display: none;\n z-index: 2000;\n cursor: pointer;\n top: 0px;\n margin: 0 auto;\n width: 200px;\n height: 40px;\n border-radius: 0px;\n text-align: center;\n padding: 8px;\n top: 87%;\n right: -1px;\n border: 1px solid white;\n }\n .gd__counter__span {\n font-size: 15px;\n font-family: Verdana, Arial, Helvetica, sans-serif;\n text-align: center;\n }\n ")}},{key:"addStylesheet",value:function(e,t,n){if(!document.getElementById(e)){var r=document.createElement("style");r.type="text/css",r.id=e,r.styleSheet?r.styleSheet.cssText=n:r.appendChild(document.createTextNode(n)),t.appendChild(r)}}}]),e}(),hP=function(){function e(t,n){O(this,e),this.adContainer=n,this.infoLabel=null,this.info=t}return L(e,[{key:"show",value:function(){this.infoLabel&&(this.infoLabel.style.display="block")}},{key:"hide",value:function(){this.infoLabel&&(this.infoLabel.style.display="none")}},{key:"add",value:function(){try{var e=document.createElement("div");this.infoLabel=e;var t=document.createElement("span");this.counterSpan=t,t.innerText="".concat(this.info),t.classList.add("gd__ad_info__span"),this.addStyles(),e.classList.add("gd__ad_info__label"),e.appendChild(t),this.adContainer.appendChild(e)}catch(e){console.log(e)}}},{key:"addStyles",value:function(){var e=document.body||document.getElementsByTagName("body")[0];this.addStylesheet("gd__ad_info__label__style",e,"\n .gd__ad_info__label {\n position: absolute;\n background-color: rgba(0, 0, 0, 0.5);\n display: none;\n z-index: 2000;\n cursor: pointer;\n top: 8px;\n left: 8px;\n margin: 0 auto;\n width: 200px;\n border-radius: 0px;\n text-align: center;\n padding: 8px;\n border: 1px solid white;\n }\n .gd__ad_info__span {\n font-size: 15px;\n font-family: Verdana, Arial, Helvetica, sans-serif;\n text-align: center;\n }\n ")}},{key:"addStylesheet",value:function(e,t,n){if(!document.getElementById(e)){var r=document.createElement("style");r.type="text/css",r.id=e,r.styleSheet?r.styleSheet.cssText=n:r.appendChild(document.createTextNode(n)),t.appendChild(r)}}}]),e}(),mP=function(){function e(t){O(this,e),this.adContainer=t}return L(e,[{key:"show",value:function(){this.t4rButton.style.display="block"}},{key:"hide",value:function(){this.t4rButton.style.display="none"}},{key:"add",value:function(){try{var e=document.createElement("div"),t=document.createElement("p");this.addStyles(),t.innerText="x",e.appendChild(t),e.id="gd__exit__button",e.setAttribute("title","Exit"),e.classList.add("gd__exit__button"),this.t4rButton=e,document.body.appendChild(e)}catch(e){console.log("Exit button add error",e)}}},{key:"addStyles",value:function(){var e=document.body||document.getElementsByTagName("body")[0];this.addStylesheet("gd__exit__button__style",e,"\n .gd__exit__button{\n background-color: transparent; \n width: 50px;\n height: 50px;\n position: absolute;\n pointer-events:none; \n z-index: 2000;\n top: 17px;\n right: 17px;\n margin: 0;\n border-radius: 50px;\n border: 1px solid white;\n text-align: center; \n font-size: 16px;\n line-height: normal;\n font-family: 'Arial';\n font-weight: bolder;\n }\n .gd__exit__button:hover{\n filter: invert(100%) sepia(51%) saturate(0%) hue-rotate(346deg) brightness(104%) contrast(100%); \n }")}},{key:"addStylesheet",value:function(e,t,n){if(!document.getElementById(e)){var r=document.createElement("style");r.type="text/css",r.id=e,r.styleSheet?r.styleSheet.cssText=n:r.appendChild(document.createTextNode(n)),t.appendChild(r)}}}]),e}(),vP=new Blob([new Uint8Array([255,227,24,196,0,0,0,3,72,1,64,0,0,4,132,16,31,227,192,225,76,255,67,12,255,221,27,255,228,97,73,63,255,195,131,69,192,232,223,255,255,207,102,239,255,255,255,101,158,206,70,20,59,255,254,95,70,149,66,4,16,128,0,2,2,32,240,138,255,36,106,183,255,227,24,196,59,11,34,62,80,49,135,40,0,253,29,191,209,200,141,71,7,255,252,152,74,15,130,33,185,6,63,255,252,195,70,203,86,53,15,255,255,247,103,76,121,64,32,47,255,34,227,194,209,138,76,65,77,69,51,46,57,55,170,170,170,170,170,170,170,170,170,170,255,227,24,196,73,13,153,210,100,81,135,56,0,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170])],{type:"audio/mpeg"}),gP=new Blob([new Uint8Array([0,0,0,28,102,116,121,112,105,115,111,109,0,0,2,0,105,115,111,109,105,115,111,50,109,112,52,49,0,0,0,8,102,114,101,101,0,0,2,239,109,100,97,116,33,16,5,32,164,27,255,192,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,55,167,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,112,33,16,5,32,164,27,255,192,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,55,167,128,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,112,0,0,2,194,109,111,111,118,0,0,0,108,109,118,104,100,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,232,0,0,0,47,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,1,236,116,114,97,107,0,0,0,92,116,107,104,100,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,47,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,36,101,100,116,115,0,0,0,28,101,108,115,116,0,0,0,0,0,0,0,1,0,0,0,47,0,0,0,0,0,1,0,0,0,0,1,100,109,100,105,97,0,0,0,32,109,100,104,100,0,0,0,0,0,0,0,0,0,0,0,0,0,0,172,68,0,0,8,0,85,196,0,0,0,0,0,45,104,100,108,114,0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0,0,0,1,15,109,105,110,102,0,0,0,16,115,109,104,100,0,0,0,0,0,0,0,0,0,0,0,36,100,105,110,102,0,0,0,28,100,114,101,102,0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1,0,0,0,211,115,116,98,108,0,0,0,103,115,116,115,100,0,0,0,0,0,0,0,1,0,0,0,87,109,112,52,97,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,2,0,16,0,0,0,0,172,68,0,0,0,0,0,51,101,115,100,115,0,0,0,0,3,128,128,128,34,0,2,0,4,128,128,128,20,64,21,0,0,0,0,1,244,0,0,1,243,249,5,128,128,128,2,18,16,6,128,128,128,1,2,0,0,0,24,115,116,116,115,0,0,0,0,0,0,0,1,0,0,0,2,0,0,4,0,0,0,0,28,115,116,115,99,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,28,115,116,115,122,0,0,0,0,0,0,0,0,0,0,0,2,0,0,1,115,0,0,1,116,0,0,0,20,115,116,99,111,0,0,0,0,0,0,0,1,0,0,0,44,0,0,0,98,117,100,116,97,0,0,0,90,109,101,116,97,0,0,0,0,0,0,0,33,104,100,108,114,0,0,0,0,0,0,0,0,109,100,105,114,97,112,112,108,0,0,0,0,0,0,0,0,0,0,0,0,45,105,108,115,116,0,0,0,37,169,116,111,111,0,0,0,29,100,97,116,97,0,0,0,1,0,0,0,0,76,97,118,102,53,54,46,52,48,46,49,48,49])],{type:"video/mp4"});function AP(e){return Object.assign({muted:!1,timeout:250,inline:!1},e)}function bP(e,t){var n=e.muted,r=e.timeout,i=e.inline,a=t(),o=a.element,s=a.source,u=void 0,c=void 0,d=void 0;return o.muted=n,!0===n&&o.setAttribute("muted","muted"),!0===i&&o.setAttribute("playsinline","playsinline"),o.src=s,new Promise((function(e){u=o.play(),c=setTimeout((function(){d(!1,new Error("Timeout "+r+" ms has been reached"))}),r),d=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;o.remove(),o.srcObject=null,clearTimeout(c),e({result:t,error:n})},void 0!==u?u.then((function(){return d(!0)})).catch((function(e){return d(!1,e)})):d(!0)}))}var yP={audio:function(e){return bP(e=AP(e),(function(){return{element:document.createElement("audio"),source:URL.createObjectURL(vP)}}))},video:function(e){return bP(e=AP(e),(function(){return{element:document.createElement("video"),source:URL.createObjectURL(gP)}}))}},_P={exports:{}};!function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,a="[object Arguments]",o="[object AsyncFunction]",s="[object Function]",u="[object GeneratorFunction]",c="[object Null]",d="[object Object]",l="[object Proxy]",f="[object Undefined]",p=/^\[object .+?Constructor\]$/,h=/^(?:0|[1-9]\d*)$/,m={};m["[object Float32Array]"]=m["[object Float64Array]"]=m["[object Int8Array]"]=m["[object Int16Array]"]=m["[object Int32Array]"]=m["[object Uint8Array]"]=m["[object Uint8ClampedArray]"]=m["[object Uint16Array]"]=m["[object Uint32Array]"]=!0,m[a]=m["[object Array]"]=m["[object ArrayBuffer]"]=m["[object Boolean]"]=m["[object DataView]"]=m["[object Date]"]=m["[object Error]"]=m[s]=m["[object Map]"]=m["[object Number]"]=m[d]=m["[object RegExp]"]=m["[object Set]"]=m["[object String]"]=m["[object WeakMap]"]=!1;var v="object"==typeof i&&i&&i.Object===Object&&i,g="object"==typeof self&&self&&self.Object===Object&&self,A=v||g||Function("return this")(),b=t&&!t.nodeType&&t,y=b&&e&&!e.nodeType&&e,_=y&&y.exports===b,w=_&&v.process,x=function(){try{var e=y&&y.require&&y.require("util").types;return e||w&&w.binding&&w.binding("util")}catch(e){}}(),k=x&&x.isTypedArray;var E,S,D=Array.prototype,I=Function.prototype,R=Object.prototype,C=A["__core-js_shared__"],O=I.toString,T=R.hasOwnProperty,P=function(){var e=/[^.]+$/.exec(C&&C.keys&&C.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),L=R.toString,M=O.call(Object),B=RegExp("^"+O.call(T).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),j=_?A.Buffer:void 0,U=A.Symbol,F=A.Uint8Array,N=j?j.allocUnsafe:void 0,$=(E=Object.getPrototypeOf,S=Object,function(e){return E(S(e))}),G=Object.create,H=R.propertyIsEnumerable,z=D.splice,Z=U?U.toStringTag:void 0,V=function(){try{var e=Ae(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),K=j?j.isBuffer:void 0,q=Math.max,W=Date.now,Y=Ae(A,"Map"),Q=Ae(Object,"create"),J=function(){function e(){}return function(t){if(!Ce(t))return{};if(G)return G(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function X(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ee(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function te(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ne(e){var t=this.__data__=new ee(e);this.size=t.size}function re(e,t){var n=Ee(e),r=!n&&ke(e),i=!n&&!r&&De(e),a=!n&&!r&&!i&&Te(e),o=n||r||i||a,s=o?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],u=s.length;for(var c in e)!t&&!T.call(e,c)||o&&("length"==c||i&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||be(c,u))||s.push(c);return s}function ie(e,t,n){(void 0!==n&&!xe(e[t],n)||void 0===n&&!(t in e))&&se(e,t,n)}function ae(e,t,n){var r=e[t];T.call(e,t)&&xe(r,n)&&(void 0!==n||t in e)||se(e,t,n)}function oe(e,t){for(var n=e.length;n--;)if(xe(e[n][0],t))return n;return-1}function se(e,t,n){"__proto__"==t&&V?V(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}X.prototype.clear=function(){this.__data__=Q?Q(null):{},this.size=0},X.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},X.prototype.get=function(e){var t=this.__data__;if(Q){var r=t[e];return r===n?void 0:r}return T.call(t,e)?t[e]:void 0},X.prototype.has=function(e){var t=this.__data__;return Q?void 0!==t[e]:T.call(t,e)},X.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Q&&void 0===t?n:t,this},ee.prototype.clear=function(){this.__data__=[],this.size=0},ee.prototype.delete=function(e){var t=this.__data__,n=oe(t,e);return!(n<0)&&(n==t.length-1?t.pop():z.call(t,n,1),--this.size,!0)},ee.prototype.get=function(e){var t=this.__data__,n=oe(t,e);return n<0?void 0:t[n][1]},ee.prototype.has=function(e){return oe(this.__data__,e)>-1},ee.prototype.set=function(e,t){var n=this.__data__,r=oe(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},te.prototype.clear=function(){this.size=0,this.__data__={hash:new X,map:new(Y||ee),string:new X}},te.prototype.delete=function(e){var t=ge(this,e).delete(e);return this.size-=t?1:0,t},te.prototype.get=function(e){return ge(this,e).get(e)},te.prototype.has=function(e){return ge(this,e).has(e)},te.prototype.set=function(e,t){var n=ge(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ne.prototype.clear=function(){this.__data__=new ee,this.size=0},ne.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ne.prototype.get=function(e){return this.__data__.get(e)},ne.prototype.has=function(e){return this.__data__.has(e)},ne.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ee){var r=n.__data__;if(!Y||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new te(r)}return n.set(e,t),this.size=n.size,this};var ue,ce=function(e,t,n){for(var r=-1,i=Object(e),a=n(e),o=a.length;o--;){var s=a[ue?o:++r];if(!1===t(i[s],s,i))break}return e};function de(e){return null==e?void 0===e?f:c:Z&&Z in Object(e)?function(e){var t=T.call(e,Z),n=e[Z];try{e[Z]=void 0;var r=!0}catch(e){}var i=L.call(e);r&&(t?e[Z]=n:delete e[Z]);return i}(e):function(e){return L.call(e)}(e)}function le(e){return Oe(e)&&de(e)==a}function fe(e){return!(!Ce(e)||function(e){return!!P&&P in e}(e))&&(Ie(e)?B:p).test(function(e){if(null!=e){try{return O.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function pe(e){if(!Ce(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=ye(e),n=[];for(var r in e)("constructor"!=r||!t&&T.call(e,r))&&n.push(r);return n}function he(e,t,n,r,i){e!==t&&ce(t,(function(a,o){if(i||(i=new ne),Ce(a))!function(e,t,n,r,i,a,o){var s=_e(e,n),u=_e(t,n),c=o.get(u);if(c)return void ie(e,n,c);var l=a?a(s,u,n+"",e,t,o):void 0,f=void 0===l;if(f){var p=Ee(u),h=!p&&De(u),m=!p&&!h&&Te(u);l=u,p||h||m?Ee(s)?l=s:Oe(y=s)&&Se(y)?l=function(e,t){var n=-1,r=e.length;t||(t=Array(r));for(;++n<r;)t[n]=e[n];return t}(s):h?(f=!1,l=function(e,t){if(t)return e.slice();var n=e.length,r=N?N(n):new e.constructor(n);return e.copy(r),r}(u,!0)):m?(f=!1,v=u,g=!0?(A=v.buffer,b=new A.constructor(A.byteLength),new F(b).set(new F(A)),b):v.buffer,l=new v.constructor(g,v.byteOffset,v.length)):l=[]:function(e){if(!Oe(e)||de(e)!=d)return!1;var t=$(e);if(null===t)return!0;var n=T.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&O.call(n)==M}(u)||ke(u)?(l=s,ke(s)?l=function(e){return function(e,t,n,r){var i=!n;n||(n={});var a=-1,o=t.length;for(;++a<o;){var s=t[a],u=r?r(n[s],e[s],s,n,e):void 0;void 0===u&&(u=e[s]),i?se(n,s,u):ae(n,s,u)}return n}(e,Pe(e))}(s):Ce(s)&&!Ie(s)||(l=function(e){return"function"!=typeof e.constructor||ye(e)?{}:J($(e))}(u))):f=!1}var v,g,A,b;var y;f&&(o.set(u,l),i(l,u,r,a,o),o.delete(u));ie(e,n,l)}(e,t,o,n,he,r,i);else{var s=r?r(_e(e,o),a,o+"",e,t,i):void 0;void 0===s&&(s=a),ie(e,o,s)}}),Pe)}function me(e,t){return we(function(e,t,n){return t=q(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=q(r.length-t,0),o=Array(a);++i<a;)o[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(o),function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(e,this,s)}}(e,t,Be),e+"")}var ve=V?function(e,t){return V(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:Be;function ge(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function Ae(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return fe(n)?n:void 0}function be(e,t){var n=typeof e;return!!(t=null==t?r:t)&&("number"==n||"symbol"!=n&&h.test(e))&&e>-1&&e%1==0&&e<t}function ye(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||R)}function _e(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var we=function(e){var t=0,n=0;return function(){var r=W(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(ve);function xe(e,t){return e===t||e!=e&&t!=t}var ke=le(function(){return arguments}())?le:function(e){return Oe(e)&&T.call(e,"callee")&&!H.call(e,"callee")},Ee=Array.isArray;function Se(e){return null!=e&&Re(e.length)&&!Ie(e)}var De=K||function(){return!1};function Ie(e){if(!Ce(e))return!1;var t=de(e);return t==s||t==u||t==o||t==l}function Re(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}function Ce(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Oe(e){return null!=e&&"object"==typeof e}var Te=k?function(e){return function(t){return e(t)}}(k):function(e){return Oe(e)&&Re(e.length)&&!!m[de(e)]};function Pe(e){return Se(e)?re(e,!0):pe(e)}var Le,Me=(Le=function(e,t,n){he(e,t,n)},me((function(e,t){var n=-1,r=t.length,i=r>1?t[r-1]:void 0,a=r>2?t[2]:void 0;for(i=Le.length>3&&"function"==typeof i?(r--,i):void 0,a&&function(e,t,n){if(!Ce(n))return!1;var r=typeof t;return!!("number"==r?Se(n)&&be(t,n.length):"string"==r&&t in n)&&xe(n[t],e)}(t[0],t[1],a)&&(i=r<3?void 0:i,r=1),e=Object(e);++n<r;){var o=t[n];o&&Le(e,o,n,i)}return e})));function Be(e){return e}e.exports=Me}(_P,_P.exports);var wP=_P.exports;function xP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xP(Object(n),!0).forEach((function(t){cc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function EP(e){return null!=e&&e.error_url?"<vmap:VASTAdData>".concat(function(e){return e.promo_url?'<VAST version="3.0">\n <Ad id="'.concat(e.id,'">\n <Wrapper fallbackOnNoAd="true">\n <AdSystem>GDFP</AdSystem>\n <Error><![CDATA[').concat(e.error_url,"]]></Error>\n <Impression><![CDATA[").concat(e.impression_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.adtag_url,']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="0" />\n </Extensions>\n </Wrapper>\n </Ad>\n <Ad id="promo">\n <Wrapper>\n <AdSystem>Rainbow</AdSystem>\n <Impression><![CDATA[').concat(e.promo_imp_green_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.promo_url,']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="1" />\n </Extensions>\n </Wrapper>\n </Ad>\n </VAST>').trim():e.fallback_url?'<VAST version="3.0">\n <Ad id="'.concat(e.id,'">\n <Wrapper fallbackOnNoAd="true">\n <AdSystem>GDFP</AdSystem>\n <Error><![CDATA[').concat(e.error_url,"]]></Error>\n <Impression><![CDATA[").concat(e.impression_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.adtag_url,']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="0" />\n </Extensions>\n </Wrapper>\n </Ad>\n <Ad id="fallback">\n <Wrapper>\n <AdSystem>Rainbow</AdSystem>\n <Impression><![CDATA[').concat(e.fallback_imp_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.fallback_url,']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="1" />\n </Extensions>\n </Wrapper>\n </Ad>\n </VAST>').trim():'<VAST version="3.0">\n <Ad id="'.concat(e.id,'">\n <Wrapper>\n <AdSystem>GDFP</AdSystem>\n <Error><![CDATA[').concat(e.error_url,"]]></Error>\n <Impression><![CDATA[").concat(e.impression_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.adtag_url,"]]></VASTAdTagURI>\n </Wrapper>\n </Ad>\n </VAST>").trim()}(e),"</vmap:VASTAdData>"):'<vmap:AdTagURI templateType="vast3"><![CDATA['.concat(null==e?void 0:e.adtag_url,"]]></vmap:AdTagURI>")}var SP,DP="13998",IP="_cc".concat(DP),RP=["https://tags.crwdcntrl.net/c/".concat(DP,"/cc.js?ns=").concat(IP)],CP=function(){return!!SP&&"function"==typeof SP.bcpf&&"function"==typeof SP.add},OP=function(e,t){try{if(!CP())return;SP.add(e,t),ac("lotame add success ".concat(e," ").concat(t))}catch(e){ac("lotame add error",err)}},TP=function(e,t){try{if(!CP())return;SP.bcpw(e,t),ac("lotame send success ".concat(e," ").concat(t))}catch(e){}},PP=function(e){var t=this;try{OP("act","play"),OP("med","game"),"complete"===document.readyState?SP.bcpf():SP.bcp(),e.tags.forEach(function(e){n(this,t),TP("int","tags : ".concat(e.title.toLowerCase()))}.bind(this)),TP("int","category : ".concat(e.category.toLowerCase()))}catch(e){}},LP=function(){window.addEventListener("load",(function(){nI.once("game-data-ready",function(){var e=t(d.mark((function e(t){var n;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=1,e.t0=null!=t_&&t_.noLotamePageView,!e.t0){e.next=7;break}return e.next=6,fI();case 6:e.t0=e.sent;case 7:if(!e.t0){e.next=10;break}return e.abrupt("return");case 10:if(null!==(n=t.lotm)&&void 0!==n&&n.enabled){e.next=13;break}return e.abrupt("return");case 13:return e.next=16,ft(RP[0],"LOTCC_".concat(DP),{alternates:RP});case 16:"object"===r(window[IP])&&(SP=window[IP]),CP()&&PP(t),e.next=23;break;case 20:e.prev=20,e.t1=e.catch(1),ac("lotame init error",e.t1);case 23:case"end":return e.stop()}}),e,null,[[1,20]])})));return function(t){return e.apply(this,arguments)}}())}))},MP=function(){TP("genp","ad video"),TP("act","ad impression")},BP=function(){TP("act","ad skipped")},jP=function(){TP("act","ad click")},UP=function(){TP("act","ad complete")},FP=function(){var e=(new cD).get("partner.url.value"),t=new C(e,!0),n={isRevisionTest:!1,useTestAds:!1,disableMidrolltimer:!1};if("revision.gamedistribution.com"===t.host){var r=t.query.test,i="1"===r||"2"===r,a="1"===r;n={useTestAds:i,disableMidrolltimer:a,isRevisionTest:a||i}}return n},NP=function(){function e(){O(this,e),this.adContainer=window.document.body}return L(e,[{key:"show",value:function(e){this.adSpinner.style.display="block",this.adSpinnerOverlay.style.display="block",e?(this.adSpinner.style.display="block",this.adSpinnerFail.style.display="none",this.adSpinnerButton.style.display="none"):(this.adSpinner.style.display="none",this.adSpinnerFail.style.display="block",this.adSpinnerButton.style.display="block")}},{key:"hide",value:function(){this.adSpinner.style.display="none",this.adSpinnerOverlay.style.display="none"}},{key:"add",value:function(){var e=this;try{this.addStyles();var t=document.createElement("div");t.id="gd__spinner",t.setAttribute("title","Spinner"),t.classList.add("gd__spinner"),this.adSpinner=t;var r=document.createElement("div");r.id="gd__spinner__fail",r.setAttribute("title","Spinner"),r.classList.add("gd__spinner__fail"),r.innerHTML="No Ads Available!",this.adSpinnerFail=r;var i=document.createElement("div");i.id="gd__spinner__button",i.setAttribute("title","Spinner"),i.classList.add("gd__spinner__button"),i.onclick=function(){n(this,e),this.hide()}.bind(this);var a=document.createElement("p");a.innerText="OK!",i.appendChild(a),this.adSpinnerButton=i;var o=document.createElement("div");o.id="gd__spinner__logo",o.setAttribute("title","Spinner"),o.classList.add("gd__spinner__logo"),this.adSpinnerLogo=o;var s=document.createElement("div");s.id="gd__spinner__container",s.classList.add("gd__spinner__container"),s.appendChild(this.adSpinner),s.appendChild(this.adSpinnerFail),s.appendChild(this.adSpinnerButton),s.appendChild(this.adSpinnerLogo),this.adSpinnerContainer=s;var u=document.createElement("div");u.id="gd__spinner__overlay",u.classList.add("gd__spinner__overlay"),u.appendChild(this.adSpinnerContainer),this.adSpinnerOverlay=u,this.adContainer.appendChild(this.adSpinnerOverlay)}catch(e){console.log("Spinner error",e)}}},{key:"addStyles",value:function(){var e=document.body||document.getElementsByTagName("body")[0];this.addStylesheet("gd__spinner__style",e,'\n .gd__spinner__button{ \n text-align: center; \n width: 150px;\n height: 50px;\n position: absolute;\n display: none;\n z-index: 2000;\n cursor: pointer;\n top: calc(80% - 25px);\n left: calc(50% - 75px);\n margin: 0;\n font-size: large;\n font-family: monospace;\n background-color: #ff8c1c;\n border-radius: 50px;\n color: white;\n }\n\n .gd__spinner__fail{\n text-align: center; \n width: 300px;\n height: 50px;\n position: absolute;\n display: none;\n z-index: 2000;\n cursor: pointer;\n top: calc(65% - 25px);\n left: calc(50% - 150px);\n margin: 0;\n font-size: large;\n font-family: monospace;\n color: #ff8c1c;\n }\n\n .gd__spinner__logo{\n background: url("https://static.gamedistribution.com/android-chrome-192x192.png") no-repeat;\n background-size: cover; \n width: 100px;\n height: 100px;\n position: absolute;\n display: block;\n z-index: 2000;\n cursor: pointer;\n top: calc(30% - 50px);\n left: calc(50% - 50px);\n margin: 0;\n border-radius: 50%;\n }\n\n .gd__spinner__container{ \n background-color: black; \n width: 300px;\n height: 300px;\n position: absolute;\n z-index: 2000;\n cursor: pointer;\n top: calc(50% - 150px);\n left: calc(50% - 150px);\n margin: 0;\n border-radius: 20px;\n border: 2px solid #06b8a2;\n }\n\n\n .gd__spinner{\n background: url("https://static.gamedistribution.com/assets/loader.gif") no-repeat;\n background-size: cover; \n width: 50px;\n height: 50px;\n position: absolute;\n display: none;\n z-index: 2000;\n cursor: pointer;\n top: calc(80% - 25px);\n left: calc(50% - 25px);\n margin: 0;\n border-radius: 50%;\n }\n \n .gd__spinner__overlay {\n position: fixed;\n display: none;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: rgba(0,0,0,0.5);\n z-index: 1999;\n cursor: pointer;\n }\n ')}},{key:"addStylesheet",value:function(e,t,n){if(!document.getElementById(e)){var r=document.createElement("style");r.type="text/css",r.id=e,r.styleSheet?r.styleSheet.cssText=n:r.appendChild(document.createTextNode(n)),t.appendChild(r)}}}]),e}();function $P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function GP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$P(Object(n),!0).forEach((function(t){cc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$P(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function HP(e){var t=e.gameData,r=e.msgrt,i=e.topDomain,a=e.parentDomain,o=e.parentURL;return{send_atom_event:function(e,s){if(function(e){var r=this,i=t.dbglg;return(null==i?void 0:i.enabled)&&i.topics&&i.topics.some(function(t){return n(this,r),t===e}.bind(this))}(e)){var u={gid:t.slug,md5:t.gameId,pid:0,pnm:t.pname,ctry:t.ctry,lcl:"en",hle:1,ads:1,args:s,href:window.location.href},c=(new cD).get();return u=GP(GP({},u),c),function(e,t){try{var n=r._layout,s=r._ua,u={tp:e,ct:0,vrs:nc.version,url:o,rfr:document.referrer,tdmn:i||a,dpth:0,args:t,ua:{brnm:s.browser.name,brvs:s.browser.version,osnm:s.os.name,osvs:s.os.version,dvmd:s.device.model,w:n.w,h:n.h}};return fetch("https://tag.atom.gamedistribution.com/v1/dmp?ar=".concat(encodeURIComponent(nt.encode(JSON.stringify(u)))))}catch(e){}}(e,u=s?GP(GP({},u),s):u)}}}}function zP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ZP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zP(Object(n),!0).forEach((function(t){cc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var VP=new hD.exports.EventEmitter,KP=null,qP=function(){function e(t,r,i){var a=this;if(O(this,e),KP)return KP;KP=this;var o={debug:!1,width:640,height:360,locale:"en"};this.options=r?it(o,r):o,this.prefix="gdsdk__",this.adsLoader=null,this.adsManager=null,this.adDisplayContainer=null,this.eventBus=new Dt,this.safetyTimer=null,this.containerTransitionSpeed=0,this.adCounter={},this.adPrerollCount=0,this.adMidrollCount=0,this.adRewardedCount=0,this.preloadedAdType=null,this.requestRunning=!1,this.parentDomain=i.parentDomain,this.topDomain=i.topDomain,this.parentURL=i.parentURL,this.adDisplayContainerInitialized=!1,this.IMASampleTags={interstitial:["https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dskippablelinear&correlator=","https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dredirectlinear&correlator=","https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dredirecterror&correlator="],rewarded:["https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dlinear&correlator="]},this.atom_display,this.adType_="",this.rewardGuarantied=!1,this.imaEventList=[],this.clickCount={midroll:0,preroll:0,rewarded:0},this.userAllowedPersonalizedAds=document.location.search.indexOf("gdpr-targeting=0")>=0||document.cookie.indexOf("ogdpr_advertisement=0")>=0?"0":"1",this.parentDomain.includes("girlsgogames")&&(this.userAllowedPersonalizedAds=!1),this.thirdPartyContainer=""!==t?document.getElementById(t):null,this.options.width="number"==typeof this.options.width?this.options.width:"100%"===this.options.width?640:this.options.width.replace(/[^0-9]/g,""),this.options.height="number"==typeof this.options.height?this.options.height:"100%"===this.options.height?360:this.options.height.replace(/[^0-9]/g,"");var s=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,u=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;this.options.width=this.thirdPartyContainer?this.thirdPartyContainer.offsetWidth:s,this.options.height=this.thirdPartyContainer?this.thirdPartyContainer.offsetHeight:u,this.category="",this.tags=[],this.eventCategory="AD",this.eventBus.subscribe("LOADED",function(){n(this,a),this._clearSafetyTimer("LOADED"),this._startSafetyTimer(8e3,"LOADED")}.bind(this),"ima"),this.eventBus.subscribe("STARTED",function(){n(this,a),this._clearSafetyTimer("STARTED")}.bind(this),"ima")}var r,i,a,o,s,u,c,f,p,h,m,v,g,A,b,y,_,w,x,k,E,S,D,I,R,T,P;return L(e,[{key:"start",value:(P=t(d.mark((function e(){var r,i,a,o=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.adSystemInitialize(t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o._init_afg_script({});case 2:case"end":return e.stop()}}),e)}))));case 3:return r=e.sent,this.afgInitSuccess=r.success,e.next=7,this.adSystemInitialize(t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o._init_hl_script();case 2:return e.next=4,o._init_ima_script();case 4:o._createPlayer(),o._setUpIMA();case 6:case"end":return e.stop()}}),e)}))));case 7:if(i=e.sent,this.imaInitSuccess=i.success,a=[],this.afgInitSuccess||a.push(r.error),this.imaInitSuccess||a.push(i.error),!(a.length>0)){e.next=14;break}throw a[0];case 14:window.eventTest=function(e){n(this,o),this._broadcast(e,{message:"",status:"success"})}.bind(this),e.next=21;break;case 17:throw e.prev=17,e.t0=e.catch(0),sc("gd-adflow error on ads.start",e.t0),new Error(e.t0);case 21:case"end":return e.stop()}}),e,this,[[0,17]])}))),function(){return P.apply(this,arguments)})},{key:"adSystemInitialize",value:(T=t(d.mark((function e(t){var n;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={success:!1},e.prev=1,e.next=4,t();case 4:n.success=!0,e.next=10;break;case 7:e.prev=7,e.t0=e.catch(1),n.error=e.t0;case 10:return e.abrupt("return",n);case 12:case"end":return e.stop()}}),e,null,[[1,7]])}))),function(e){return T.apply(this,arguments)})},{key:"_getDefaultSpilAdapterConfig",value:function(){return{vast:null,url:"https://pubads.g.doubleclick.net/gampad/ads",query:{correlator:"{{CACHEBUSTER}}",description_url:"{{PAGE_URL}}",env:"vp",gdfp_req:1,impl:"s",iu:"/59392726/gd_instream",npa:0,output:"vast",sz:"640x480|400x300",tfcd:0,unviewed_position_start:1}}}},{key:"_getSpilUrl",value:(R=t(d.mark((function e(t){var n,r,i,a,o,s,u,c,l,f,p,h;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.adType,r=t.options,e.prev=1,o=null===(i=this.gameData.adflw)||void 0===i||null===(a=i.adapterConfig)||void 0===a?void 0:a.spil,s=this.nextAdPosition(n),e.next=6,this._create_dp_context(s,r);case 6:return u=e.sent,o?(ac("spil-adaptor: in _getSpilUrl, adType, adPosition, gamedata",n,s,this.gameData),c=o[s]||o.default||this._getDefaultSpilAdapterConfig()):c=this._getDefaultSpilAdapterConfig(),l=100*u.floor_price,ac("spil-adaptor: fp",u.floor_price),f=this._createCustomAdVastUrl(c,{tnl_keys:{floor_price:l}}),p=f.url,h={url:p,dp:u,hl:{bidFloorApplied:!0}},e.abrupt("return",h);case 17:e.prev=17,e.t0=e.catch(1),console.log("spil-adaptor: Error on getting spil",e.t0);case 20:case"end":return e.stop()}}),e,this,[[1,17]])}))),function(e){return R.apply(this,arguments)})},{key:"checkIfTestAdsExist",value:function(){return gt.available&>.getBoolean("gd_debug_ex")&>.getBoolean("gd_tag")||FP().useTestAds}},{key:"_getAdVast",value:function(e,r){var i=this;return new Promise(function(){var a=t(d.mark((function t(a){var o,s,u,c,l,f,p,h,m=this;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(gt.available&>.getBoolean("gd_debug_ex")&>.getBoolean("gd_tag")||FP().useTestAds)){t.next=6;break}return o=i.IMASampleTags[e].filter(function(e){return n(this,m),e.indexOf("redirecterror")<0}.bind(this)),s=Math.floor(Math.random()*o.length),u=o[s],a({url:u,tnl_keys:{tnl_ad_pos:null==r?void 0:r.adTypeFound}}),t.abrupt("return");case 6:if("spil"!==r.adapter){t.next=8;break}return t.abrupt("return",a(i._getSpilUrl({adType:e,options:r})));case 8:if(void 0!==window.idhb.requestAds){t.next=10;break}throw new Error("Prebid.js wrapper script hit an error or didn't exist!");case 10:return t.prev=10,c=i.nextAdPosition(e),null!=r&&r.adTypeFound&&(c=null==r?void 0:r.adTypeFound),i._broadcast("AD_REQUEST",{message:c}),l=i.options,"preroll"===c&&U(l.preroll)?l=l.preroll:"midroll"===c&&U(l.midroll)?l=l.midroll:"rewarded"===c&&U(l.rewarded)&&(l=l.rewarded),f="","audio"===r.adapter||"audio"===r.giftType?(i.isAudioAd=!0,f="midrollaudio"):(i.isAudioAd=!1,f="rewarded"===c?"rewardedVideo":"gdbanner"===c?"gd__banner":"midroll"===c?"midroll":"video1"),t.next=20,window.idhb.isLoaded();case 20:return t.next=22,i._create_dp_context(c,r);case 22:p=t.sent,oc("gd-adflow, before idhb",c,f),h=window.idhb.getAdserverTargetingForAdSlot(f),window.idhb.setAdserverTargeting(ZP(ZP({},h),{},{adaptor_order:r.adapterIndex})),ac("hl-order 2",window.idhb.getAdserverTargetingForAdSlot(f)),window.idhb.requestAds({slots:cc({},f,{bidFloor:(null==p?void 0:p.floor_price)||void 0}),callback:function(e,t){var r=this;n(this,m),"Missing configuration"===(null==e?void 0:e.error)&&i._broadcast("HL_CONFIG_ERROR",{status:"warning"}),!p||null!=t&&t.bidFloorApplied||fetch(p.skip_url).catch(function(e){n(this,r)}.bind(this));var o={src:"hl",tnl_keys:ZP(ZP({},window.idhb.getAdserverTargetingForAdSlot(f)),{},{tnl_ad_pos:c,tnl_asset_id:i.gameData.gameId}),url:e,dp:p,hl:t};i._extend_hl_url(o),a(o)}.bind(this)}),t.next=34;break;case 31:throw t.prev=31,t.t0=t.catch(10),new Error(t.t0);case 34:case"end":return t.stop()}}),t,this,[[10,31]])})));return function(e){return a.apply(this,arguments)}}())}},{key:"nextAdPosition",value:function(e){if(e===rt.Rewarded)return this.adRewardedCount++,"rewarded";if(e===rt.Interstitial){var t=!1===this.gameData.preroll||1===this.adPrerollCount;return t?this.adMidrollCount++:this.adPrerollCount++,t||this.adMidrollCount>0?"midroll":"preroll"}return"midroll"}},{key:"getAdPosition",value:function(e){return e===rt.Rewarded?"rewarded":e===rt.Interstitial?!1===this.gameData.preroll||1===this.adPrerollCount||this.adMidrollCount>0?"midroll":"preroll":"midroll"}},{key:"getCurrentAdPosition",value:function(e){return e===rt.Interstitial?1===this.adPrerollCount&&0===this.adMidrollCount?"preroll":"midroll":e===rt.Rewarded?"rewarded":void 0}},{key:"_requestPromo",value:function(e,t){var n=new google.ima.AdsRequest;return n.adsResponse=function(e){return'<VAST version="3.0"> \n <Ad id="promo">\n <Wrapper>\n <AdSystem>Rainbow</AdSystem>\n <Impression><![CDATA['.concat(e.promo_imp_green_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.promo_url,"]]></VASTAdTagURI> \n </Wrapper>\n </Ad>\n </VAST>").trim()}(e),n.linearAdSlotWidth=this.options.width,n.linearAdSlotHeight=this.options.height,n.nonLinearAdSlotWidth=this.options.width,n.nonLinearAdSlotHeight=this.options.height,n.forceNonLinearFullSlot=!0,this.options.vast_load_timeout&&(n.vastLoadTimeout=this.options.vast_load_timeout),n.setAdWillAutoPlay(t.autoplayAllowed),n.setAdWillPlayMuted(t.autoplayRequiresMute),this.adsLoader.requestAds(n),n}},{key:"_requestAd",value:function(e,t){var r=this;return t=t||{},new Promise(function(i){var a=this;if(n(this,r),"undefined"==typeof google)throw new Error("Unable to load ad, google IMA SDK not defined.");try{var o,s,u=null==e||null===(o=e.tnl_keys)||void 0===o?void 0:o.tnl_ad_pos;this.adSuccess=!1,this.contentPaused=!1;var c=new google.ima.AdsRequest,d=this._transformVast(e,t),l=ZP(ZP({},t),{},{adTag:d,tnl_ad_pos:u});this.adCounter[u]=this.adCounter[u]||0,this.adCounter[u]++;var f=e.dp,p=e.hl;this.current_dp=f,f&&!d.bidder&&(f.adtag_url=d.url);var h=this._isVMAP(u);this.adContext.isVMAP=h,function(){n(this,a),t.shouldFail&&(f?(f.adtag_url="dp_original_broken",f.fallback_url="dp_fallback_broken"):d.url="original_broken",ac("gd-adflow, _requestAd, dp.adtag_url",null==f?void 0:f.adtag_url),ac("gd-adflow, _requestAd, dp.fallback_url",null==f?void 0:f.fallback_url),ac("gd-adflow, _requestAd, adTag.url",d.url))}.bind(this);var m=this._getExternalVast(null===(s=t)||void 0===s?void 0:s.adType);if(m)c.adTagUrl=m;else if(h){oc("gd-adflow, _isVMAP");var v=function(e){for(var t=[],n="",r=Date.now(),i={ppos:1,lip:!0,vad_type:"linear"},a=0;a<e.length;a++){var o=new C(e[a].adtag.url,!0);o.query=kP(kP({},o.query),{},{ad_rule:0,vpos:e[a].position,pod:1,correlator:0===a?r:++r,output:"xml_vast3"}),a<e.length-1&&(o.query=kP(kP({},o.query),i)),t.push(o.toString())}for(var s=Date.now(),u=1;u<=t.length;u++){var c,d,l,f;n+='<vmap:AdBreak timeOffset="start" breakType="linear" breakId="break-'.concat(u,'">\n <vmap:AdSource id="').concat(s++,'" allowMultipleAds="false" followRedirects="true">\n ').concat(EP({id:s++,adtag_url:t[u-1],error_url:null===(c=e[u-1].dp)||void 0===c?void 0:c.error_url,impression_url:null===(d=e[u-1].dp)||void 0===d?void 0:d.impression_url,fallback_url:null===(l=e[u-1].dp)||void 0===l?void 0:l.fallback_url,fallback_imp_url:null===(f=e[u-1].dp)||void 0===f?void 0:f.fallback_imp_url}),"</vmap:AdSource>\n </vmap:AdBreak>")}return'<?xml version="1.0" encoding="UTF-8"?>\n <vmap:VMAP xmlns:vmap="http://www.iab.net/videosuite/vmap" version="1.0">\n '.concat(n,"\n </vmap:VMAP>").trim()}(this._get_vmap_context({dp:f,adtag:d,position:"preroll"===l.tnl_ad_pos?"preroll":"midroll",config:this._get_vmap_config(u)}));c.adsResponse=v}else if(f&&p.bidFloorApplied){ac("gd-adflow, vast wrapper"),f.adtag_url||(f.adtag_url=d.url);var g=function(e){return e.promo_url?e.fallback_url?'<?xml version="1.0" encoding="utf-8"?>\n <VAST version="3.0">\n <Ad id="'.concat(e.id,'">\n <Wrapper fallbackOnNoAd="true">\n <AdSystem>GDFP</AdSystem>\n <Error><![CDATA[').concat(e.error_url,"]]></Error>\n <Impression><![CDATA[").concat(e.impression_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.adtag_url,']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="0" />\n </Extensions>\n </Wrapper>\n </Ad>\n <Ad id="fallback">\n <Wrapper>\n <AdSystem>ADS</AdSystem>\n <Impression><![CDATA[').concat(e.fallback_imp_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.fallback_url,']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="1" />\n </Extensions>\n </Wrapper>\n </Ad>\n <Ad id="promo">\n <Wrapper>\n <AdSystem>Rainbow</AdSystem>\n <Impression><![CDATA[').concat(e.promo_imp_green_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.promo_url,']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="2" />\n </Extensions>\n </Wrapper>\n </Ad>\n </VAST>').trim():'<?xml version="1.0" encoding="utf-8"?>\n <VAST version="3.0">\n <Ad id="'.concat(e.id,'">\n <Wrapper fallbackOnNoAd="true">\n <AdSystem>GDFP</AdSystem>\n <Error><![CDATA[').concat(e.error_url,"]]></Error>\n <Impression><![CDATA[").concat(e.impression_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.adtag_url,']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="0" />\n </Extensions>\n </Wrapper>\n </Ad>\n <Ad id="promo">\n <Wrapper>\n <AdSystem>Rainbow</AdSystem>\n <Impression><![CDATA[').concat(e.promo_imp_green_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.promo_url,']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="1" />\n </Extensions>\n </Wrapper>\n </Ad>\n </VAST>').trim():e.fallback_url?'<?xml version="1.0" encoding="utf-8"?>\n <VAST version="3.0">\n <Ad id="'.concat(e.id,'">\n <Wrapper fallbackOnNoAd="true">\n <AdSystem>GDFP</AdSystem>\n <Error><![CDATA[').concat(e.error_url,"]]></Error>\n <Impression><![CDATA[").concat(e.impression_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.adtag_url,']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="0" />\n </Extensions>\n </Wrapper>\n </Ad>\n <Ad id="fallback">\n <Wrapper>\n <AdSystem>ADS</AdSystem>\n <Impression><![CDATA[').concat(e.fallback_imp_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.fallback_url,']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="1" />\n </Extensions>\n </Wrapper>\n </Ad>\n </VAST>').trim():'<?xml version="1.0" encoding="utf-8"?>\n <VAST version="3.0">\n <Ad id="'.concat(e.id,'">\n <Wrapper>\n <AdSystem>GDFP</AdSystem>\n <Error><![CDATA[').concat(e.error_url,"]]></Error>\n <Impression><![CDATA[").concat(e.impression_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.adtag_url,"]]></VASTAdTagURI>\n </Wrapper>\n </Ad>\n </VAST>").trim()}(f);c.adsResponse=g}else if(f&&f.fallback_url){ac("gd-adflow, vast wrapper 2");var A=function(e){return'<?xml version="1.0" encoding="utf-8"?>\n <VAST version="3.0">\n <Ad id="'.concat(e.id,'">\n <Wrapper fallbackOnNoAd="true">\n <AdSystem>GDFP</AdSystem>\n <Impression><![CDATA[').concat(e.fallback_imp_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.adtag_url,']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="0" />\n </Extensions>\n </Wrapper>\n </Ad>\n <Ad id="fallback">\n <Wrapper>\n <AdSystem>ADS</AdSystem>\n <Impression><![CDATA[').concat(e.fallback_imp_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.fallback_url,']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="1" />\n </Extensions>\n </Wrapper>\n </Ad>\n </VAST>').trim()}(f);c.adsResponse=A}else ac("gd-adflow, without dp"),c.adTagUrl=d.url;c.linearAdSlotWidth=this.options.width,c.linearAdSlotHeight=this.options.height,c.nonLinearAdSlotWidth=this.options.width,c.nonLinearAdSlotHeight=this.options.height,c.forceNonLinearFullSlot=!0,this.options.vast_load_timeout&&(c.vastLoadTimeout=this.options.vast_load_timeout),c.setAdWillAutoPlay(t.autoplayAllowed);var b=t.opusSuccess||t.autoplayRequiresMute;c.setAdWillPlayMuted(b),this.adsLoader.requestAds(c,l);try{this._broadcast("AD_SDK_REQUEST",{message:l})}catch(e){}i(c)}catch(e){throw new Error(e)}}.bind(this))}},{key:"_getExternalVast",value:function(e){var t;try{var n,r,i,a,o,s,u=this.getCurrentAdPosition(e),c=null===(n=this.gameData)||void 0===n?void 0:n.cust_vast,d=(null==c?void 0:c[u])||(null==c?void 0:c.default);if(!d)return ac("[ext-vast] no custom vast config"),null;ac("[ext-vast] has custom vast config",c);var l=null==d||null===(r=d.maps)||void 0===r||null===(i=r.position)||void 0===i?void 0:i[u],f=function(){var e,t=!1;return e=navigator.userAgent||navigator.vendor||window.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))&&(t=!0),!1===t&&window.orientation>-1&&(t=!0),t}();ac("[ext-vast] is-mobile",f);var p=f?"mobile":"desktop",h=null==d||null===(a=d.maps)||void 0===a||null===(o=a.env)||void 0===o?void 0:o[p],m=this._createCustomAdVastUrl(d,{tnl_keys:{slug:null===(s=this.gameData)||void 0===s?void 0:s.slug,mapped_position:l,mapped_env:h}});t=null==m?void 0:m.url,ac("[ext-vast] check result",t)}catch(e){sc("[ext-vast] check err",e)}return t}},{key:"cancel",value:function(e){var t,n;if(!1!==this.requestRunning){this.requestRunning=!1,this._resetAdsLoader(),this._hide("cancel"),this.activeAdContainer&&(this.activeAdContainer.style.opacity=1),this.adsManager&&this.adsManager.setVolume(null!==(t=this.adContext)&&void 0!==t&&t.muteRequested?0:1),this.t4rButton&&this.t4rButton.hide();var r=(null==e||null===(n=e.message)||void 0===n?void 0:n.indexOf("NO_VAST_URL"))>=0,i="AD_SDK_CANCELED";this._broadcast(i,{name:i,message:"Advertisement has been canceled.",status:"warning",noVast:r,analytics:{category:this.eventCategory,action:i,label:this.gameData.gameId}})}}},{key:"_checkAutoPlay",value:(I=t(d.mark((function e(){var t=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(e,r){var i=this;n(this,t);var a=navigator.userAgent.toLowerCase();a.indexOf("safari")>-1&&a.indexOf("chrome"),yP.video({inline:!0,muted:!1}).then(function(t){n(this,i);var r=t.result;t.error,e(!0===r?{autoplayAllowed:!0,autoplayRequiresMute:!1}:{autoplayAllowed:!0,autoplayRequiresMute:!0})}.bind(this))}.bind(this)));case 1:case"end":return e.stop()}}),e,this)}))),function(){return I.apply(this,arguments)})},{key:"_initDisplayContainerWithAutoPlay",value:(D=t(d.mark((function e(){var t;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._checkAutoPlay(!1);case 2:return t=e.sent,this._autoplay=t,this.video_ad_player.autoplay=t.autoplayAllowed,this.video_ad_player.volume=t.autoplayRequiresMute?0:1,this.video_ad_player.muted=!!t.autoplayRequiresMute,t.adDisplayContainerInitialized||(this.adDisplayContainer.initialize(),this.adDisplayContainerInitialized=!0),e.abrupt("return",t);case 9:case"end":return e.stop()}}),e,this)}))),function(){return D.apply(this,arguments)})},{key:"startAd",value:(S=t(d.mark((function e(t){var r,i,a,o=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=t.adType,a=t.params,this.adType_=i,this.isAudioAd=!1,this.adContext=ZP(ZP({},a),{},{adType:i}),null!==(r=this.gameData.adspn)&&void 0!==r&&r.enabled&&(this.adFlowProcessSpinner||(this.adFlowProcessSpinner=new NP,this.adFlowProcessSpinner.add()),this.adFlowProcessSpinner.show(!0)),"promo"!==(null==a?void 0:a.adapter)){e.next=7;break}return e.abrupt("return",this._startPromo(a,i));case 7:if("adsense"!==(null==a?void 0:a.adapter)){e.next=31;break}if(i!==rt.Interstitial){e.next=24;break}if("preroll"!==(null==a?void 0:a.position)){e.next=13;break}return e.abrupt("return",this._startAdsensePlacementPreroll(t));case 13:if("start"!==(null==a?void 0:a.position)){e.next=17;break}return e.abrupt("return",this._startAdsensePlacementStart(t));case 17:if("next"!==(null==a?void 0:a.position)){e.next=21;break}return e.abrupt("return",this._startAdsensePlacementNext(t));case 21:return e.abrupt("return",this._startAdsensePlacementPreroll(t));case 22:e.next=29;break;case 24:if(i!==rt.Rewarded){e.next=28;break}return e.abrupt("return",this._startAdsensePlacementRewardedAd(t));case 28:throw new Error("Unsupported ad type");case 29:e.next=44;break;case 31:if(!["ima","spil","audio"].some(function(e){return n(this,o),e===(null==a?void 0:a.adapter)}.bind(this))){e.next=42;break}if(i!==rt.Interstitial){e.next=37;break}return e.abrupt("return",this._startInterstitialAd(a));case 37:if(i!==rt.Rewarded){e.next=41;break}return e.abrupt("return",this._startRewardedAd(a));case 41:throw new Error("Unsupported ad type");case 42:["opus"].some(function(e){return n(this,o),e===(null==a?void 0:a.adapter)}.bind(this))&&this._startOpusAd(a);case 44:case"end":return e.stop()}}),e,this)}))),function(e){return S.apply(this,arguments)})},{key:"_startOpusAd",value:(E=t(d.mark((function e(t){var r,i,a,o,s,u,c,l,f,p,h,m,v,g,A,b=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i="rewarded"===t.adTypeFound?"reward":t.adTypeFound,this._send_atom_event("opus-ad.start"),!this.requestRunning){e.next=8;break}return this._broadcast("AD_IS_ALREADY_RUNNING",{status:"warning"}),this._broadcast("AD_ERROR",{message:"Ad is already running",status:"error",reason:"request-running"}),this._send_atom_event("opus-ad.already-running"),e.abrupt("return");case 8:if(a=null===(r=window.gdlocus)||void 0===r?void 0:r.adBreak){e.next=13;break}return this._send_atom_event("opus-ad.not-initialized"),this._broadcast("AD_ERROR",{message:"Locus adBreak not found",status:"error",reason:"opus-not-found"}),e.abrupt("return");case 13:this._send_atom_event("opus-ad.ready"),o=void function(){return n(this,b),!0}.bind(this),this.requestRunning=!0,s=this.gameData,u=s.gameId,c=s.slug,l=s.title,f={assetId:u,slug:c,title:l,debug:o},p=function(e){n(this,b),this.opusEventReceived=!0,this._broadcast("CONTENT_PAUSE_REQUESTED",{message:"",status:"success"}),this._broadcast("IMPRESSION",{message:"",status:"success"})}.bind(this),h=function(e){n(this,b),this.opusEventReceived=!0,this._broadcast("CONTENT_RESUME_REQUESTED",{message:"",status:"success"})}.bind(this),m=function(){n(this,b),this.opusEventReceived=!0}.bind(this),v=function(){n(this,b),this.opusEventReceived=!0,this._broadcast("COMPLETE",{message:"",status:"success"}),this._broadcast("SDK_REWARDED_WATCH_COMPLETE",{message:"",status:"success"}),this._send_atom_event("sg.ad.rw.viewed")}.bind(this),g=function(e){n(this,b),this.opusEventReceived=!0,this.resetForNext();var t="".concat(i);this.adCounter[t]=this.adCounter[t]||0,this.adCounter[t]++,"viewed"===e.breakStatus?this._broadcast("AD_SUCCESS",{message:"Ad succeeded.",status:"success"}):this._broadcast("AD_ERROR",{message:e.errorMessage,errorType:e.errorType,status:e.breakStatus,reason:"opus-error"})}.bind(this),console.log("opus-ad meta",f),A={type:i,meta:f,beforeAd:p,afterAd:h,adBreakDone:g},"reward"===i&&(A=ZP(ZP({},A),{},{adDismissed:m,adViewed:v})),this.opusEventReceived=!1,this._startTimeoutForOpus(),a&&a(A);case 30:case"end":return e.stop()}}),e,this)}))),function(e){return E.apply(this,arguments)})},{key:"preloadAd",value:(k=t(d.mark((function e(t){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t!==rt.Interstitial){e.next=4;break}return e.abrupt("return","gdsdk://preloaded");case 4:if(t!==rt.Rewarded){e.next=8;break}return e.abrupt("return","gdsdk://preloaded");case 8:throw new Error("Unsupported ad type");case 9:case"end":return e.stop()}}),e)}))),function(e){return k.apply(this,arguments)})},{key:"addAdComponents",value:function(){var e=this,t=function(){n(this,e),this.adsManager.resume()}.bind(this),r=function(){n(this,e),this.rewardGuarantied||(this._broadcast("SDK_REWARDED_WATCH_COMPLETE",{message:"",status:"success"}),this.rewardGuarantied=!1),this._broadcast("AD_SUCCESS",{message:"Ad succeeded.",status:"success"}),this._hideSkipButton(),this.cancel()}.bind(this);try{this.adResume=new cP(this.adContainer,t),this.adResume.add(),this.rewardedLabel=new dP(this.adContainer,t),this.rewardedLabel.add(),this.skipAdButton=new lP(this.adContainer,t,r),this.skipAdButton.add(),this.audioAdLabel=new fP(window.document.body),this.audioAdLabel.add(),this.audioAdLabel.hide(),this.adCounterLabel=new pP(window.document.body),this.adCounterLabel.add(),this.adCounterLabel.hide(),this.adInfoLabel=new hP("Watching multiple ads now will reduce adbreaks later",window.document.body),this.adInfoLabel.add(),this.adInfoLabel.hide()}catch(e){console.log("error on adding adResume",e)}}},{key:"loadDisplayAd",value:(x=t(d.mark((function e(r){var i=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=t(d.mark((function e(t,a){var o,s,u,c,l,f,p,h,m,v=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{ac("display_test load",r),(s=r?r.containerId:null)||a("Container id is not specified"),u=document.getElementById(s),document.getElementById(s)||a("No container is found with this id - ".concat(s)),void 0===window.idhb.requestAds&&a("Prebid.js wrapper script hit an error or didn't exist!"),c=r.slotId?r.slotId:"gd__banner@".concat(s),document.getElementById(c)||(l="\n .gd__banner{\n z-index: ".concat(kt.zIndex,";\n height: 100%;\n display: flex !important;\n align-items: center;\n justify-content: center;\n overflow: hidden;\n }"),document.getElementById("gd__banner__style")||((f=document.createElement("style")).type="text/css",f.id="gd__banner__style",f.styleSheet?f.styleSheet.cssText=l:f.appendChild(document.createTextNode(l)),u.appendChild(f)),(p=document.createElement("div")).id=c,p.classList.add("gd__banner"),u.appendChild(p)),i.atom_display=null,null!==(o=i.atom_display)&&void 0!==o&&o.params&&window.idhb.setAdserverTargeting(null===(h=i.atom_display)||void 0===h?void 0:h.params),(m={})[c]={maxSize:[u.offsetWidth,u.offsetHeight]},ac("display_test slots",m),window.idhb.requestAds({slots:m,callback:function(e){n(this,v),ac("display_test callback",JSON.stringify(e,null,2))}.bind(this)}),t()}catch(e){console.log("display_test error",e),a(e.message||e)}case 1:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)}))),function(e){return x.apply(this,arguments)})},{key:"_startInterstitialAd",value:(w=t(d.mark((function e(t){var r,i,a,o,s,u=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!this.requestRunning){e.next=4;break}return this._broadcast("AD_IS_ALREADY_RUNNING",{status:"warning"}),e.abrupt("return");case 4:if(!void function(){if(n(this,u),uc.fictionalIMAError)return this._broadcast("AD_ERROR",{message:"fictional IMA error",status:"error",skipForward:!0}),!0}.bind(this)){e.next=7;break}return e.abrupt("return");case 7:return this.requestRunning=!0,e.next=10,this._initDisplayContainerWithAutoPlay();case 10:return i=e.sent,e.next=13,this._loadInterstitialAd(ZP(ZP({},i),t));case 13:if(a=e.sent,o=a.success,a.args,o){e.next=18;break}return e.abrupt("return");case 18:null!==(r=this.adContext)&&void 0!==r&&r.muteRequested?this.adsManager.setVolume(0):(i.autoplayRequiresMute&&this.adsManager.setVolume(0),!0===(null===(s=this.gameData.advlm)||void 0===s?void 0:s.mode)&&this.adsManager.setVolume(1)),this.adsManager.init(this.options.width,this.options.height,google.ima.ViewMode.NORMAL),this.adsManager.start(),e.next=28;break;case 23:throw e.prev=23,e.t0=e.catch(0),ac("VAST_URL_2 error",e.t0),this._onError(e.t0),e.t0;case 28:case"end":return e.stop()}}),e,this,[[0,23]])}))),function(e){return w.apply(this,arguments)})},{key:"_startPromo",value:(_=t(d.mark((function e(t,n){var r,i,a,o,s;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!this.requestRunning){e.next=4;break}return this._broadcast("AD_IS_ALREADY_RUNNING",{status:"warning"}),e.abrupt("return");case 4:return this.requestRunning=!0,this.adSuccess=!1,e.next=8,this._initDisplayContainerWithAutoPlay();case 8:return i=e.sent,e.next=11,this._loadPromo(ZP(ZP({},i),t),n);case 11:if(a=e.sent,o=a.success,a.args,o){e.next=16;break}return e.abrupt("return");case 16:null!==(r=this.adContext)&&void 0!==r&&r.muteRequested?this.adsManager.setVolume(0):(i.autoplayRequiresMute&&this.adsManager.setVolume(0),!0===(null===(s=this.gameData.advlm)||void 0===s?void 0:s.mode)&&this.adsManager.setVolume(1)),this.adsManager.init(this.options.width,this.options.height,google.ima.ViewMode.NORMAL),this.adsManager.start(),this.msgrt.send("promo.adsense",{message:"".concat(t.position," success")}),e.next=27;break;case 22:throw e.prev=22,e.t0=e.catch(0),this.msgrt.send("promo.adsense.err",{message:"".concat(t.position," failure,").concat(e.t0.message?e.t0.message:e.t0,", [").concat(this.parentURL,"]")}),this._onError(e.t0),e.t0;case 27:case"end":return e.stop()}}),e,this,[[0,22]])}))),function(e,t){return _.apply(this,arguments)})},{key:"_loadPromo",value:(y=t(d.mark((function e(t,n){var r,i;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._resetAdsLoader(),e.prev=1,r=this.nextAdPosition(n),i=this._create_promo_context(r),this._requestPromo(i,ZP({adType:rt.Interstitial},t)),e.next=7,this._waitOnAdLoad();case 7:return e.abrupt("return",e.sent);case 10:throw e.prev=10,e.t0=e.catch(1),new Error(e.t0);case 13:case"end":return e.stop()}}),e,this,[[1,10]])}))),function(e,t){return y.apply(this,arguments)})},{key:"_loadInterstitialAd",value:(b=t(d.mark((function e(t){var n;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._resetAdsLoader(),e.prev=1,e.t0=this.preloadedInterstitialAdVast,e.t0){e.next=7;break}return e.next=6,this._getAdVast(rt.Interstitial,t);case 6:e.t0=e.sent;case 7:if(n=e.t0,delete this.preloadedInterstitialAdVast,n.url){e.next=12;break}throw new Error("NO_VAST_URL");case 12:return e.next=14,this._requestAd(n,ZP({adType:rt.Interstitial},t));case 14:return e.sent,e.next=17,this._waitOnAdLoad();case 17:return e.abrupt("return",e.sent);case 20:throw e.prev=20,e.t1=e.catch(1),console.log("VAST_URL error",e.t1),new Error(e.t1);case 24:case"end":return e.stop()}}),e,this,[[1,20]])}))),function(e){return b.apply(this,arguments)})},{key:"_waitOnAdLoad",value:function(){var e=this;return new Promise(function(t,r){var i=this;n(this,e);var a="videoad.preloadad";this.eventBus.unsubscribeScope(a);var o=function(e){var r=this;n(this,i),setTimeout(function(){n(this,r),this.eventBus.unsubscribeScope(a),t({success:!0,args:e})}.bind(this),1)}.bind(this),s=function(e){var r=this;n(this,i),setTimeout(function(){n(this,r),this.eventBus.unsubscribeScope(a),t({success:!1,args:e})}.bind(this),1)}.bind(this);this.eventBus.subscribe("AD_SDK_MANAGER_READY",o,a),this.eventBus.subscribe("AD_SDK_CANCELED",s,a),this.eventBus.subscribe("AD_ERROR",s,a)}.bind(this))}},{key:"_startRewardedAd",value:(A=t(d.mark((function e(t){var r,i,a,o,s,u=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!this.requestRunning){e.next=4;break}return this._broadcast("AD_IS_ALREADY_RUNNING",{status:"warning"}),e.abrupt("return");case 4:if(!void function(){if(n(this,u),uc.fictionalIMAError)return this._broadcast("AD_ERROR",{message:"fictional IMA error",status:"error",skipForward:!0}),!0}.bind(this)){e.next=7;break}return e.abrupt("return");case 7:return this.requestRunning=!0,e.next=10,this._initDisplayContainerWithAutoPlay();case 10:return i=e.sent,e.next=13,this._loadRewardedAd(ZP(ZP({},i),t));case 13:if(a=e.sent,o=a.success,a.args,o){e.next=18;break}return e.abrupt("return");case 18:null!==(r=this.adContext)&&void 0!==r&&r.muteRequested?this.adsManager.setVolume(0):(i.autoplayRequiresMute&&this.adsManager.setVolume(0),!0===(null===(s=this.gameData.advlm)||void 0===s?void 0:s.mode)&&this.adsManager.setVolume(1)),this.adsManager.init(this.options.width,this.options.height,google.ima.ViewMode.NORMAL),this.adsManager.start(),e.next=27;break;case 23:throw e.prev=23,e.t0=e.catch(0),this._onError(e.t0),e.t0;case 27:case"end":return e.stop()}}),e,this,[[0,23]])}))),function(e){return A.apply(this,arguments)})},{key:"_loadRewardedAd",value:(g=t(d.mark((function e(t){var n;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._resetAdsLoader(),e.prev=1,e.t0=this.preloadedRewardedAdVast,e.t0){e.next=7;break}return e.next=6,this._getAdVast(rt.Rewarded,t);case 6:e.t0=e.sent;case 7:return n=e.t0,delete this.preloadedRewardedAdVast,e.next=11,this._requestAd(n,ZP({adType:rt.Rewarded},t));case 11:return e.sent,e.next=14,this._waitOnAdLoad();case 14:return e.abrupt("return",e.sent);case 17:throw e.prev=17,e.t1=e.catch(1),new Error(e.t1);case 20:case"end":return e.stop()}}),e,this,[[1,17]])}))),function(e){return g.apply(this,arguments)})},{key:"_preloadInterstitialAd",value:(v=t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,e.t0=this.preloadedInterstitialAdVast,e.t0){e.next=6;break}return e.next=5,this._getAdVast(rt.Interstitial);case 5:e.t0=e.sent;case 6:return this.preloadedInterstitialAdVast=e.t0,e.abrupt("return",this.preloadedInterstitialAdVast.url);case 10:throw e.prev=10,e.t1=e.catch(0),new Error(e.t1);case 13:case"end":return e.stop()}}),e,this,[[0,10]])}))),function(){return v.apply(this,arguments)})},{key:"_preloadRewardedAd",value:(m=t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,e.t0=this.preloadedRewardedAdVast,e.t0){e.next=6;break}return e.next=5,this._getAdVast(rt.Rewarded);case 5:e.t0=e.sent;case 6:return this.preloadedRewardedAdVast=e.t0,e.abrupt("return",this.preloadedRewardedAdVast.url);case 10:throw e.prev=10,e.t1=e.catch(0),new Error(e.t1);case 13:case"end":return e.stop()}}),e,this,[[0,10]])}))),function(){return m.apply(this,arguments)})},{key:"_onError",value:function(e){this.cancel(e),this._clearSafetyTimer("ERROR")}},{key:"_hide",value:function(e){this.video_ad_player&&(this.video_ad_player.src=""),this.activeAdContainer&&(this.activeAdContainer.style.visibility="hidden")}},{key:"_show",value:function(e){var t=this;if(this.activeAdContainer){this.isAudioAd||(this.activeAdContainer.style.visibility="visible");var r=null==e?void 0:e.mode;e.t4r=this.gameData.__t4r,e.t4rac=this.gameData.__t4rac;var i=this._adrequest_user_context.t4RResult?this._adrequest_user_context.t4RResult:this._isT4R(e);this._adrequest_user_context.t4RResult=i;var a=i.success,o=i.reason,s=this._getT4ROptions(e);if("loaded"===r){var u,c,d=(null===(u=this._adrequest_user_context)||void 0===u||null===(c=u.adTag)||void 0===c?void 0:c.bidder)||"adx";this._broadcast("AD_BIDDER",{bidder:d}),a||this._broadcast("AD_T4R_NONE",{reason:o}),this.activeAdContainer.style.opacity=a?.001:1,a&&null!=e&&e.contentType.startsWith("video/")&&(this.t4rButton=new mP(this.adContainer),this.t4rButton.add(),this._broadcast("AD_T4R_VIDEO")),a&&this.adsManager.setVolume(0),a&&this._broadcast("AD_T4R"),a&&setTimeout(function(){var e;n(this,t),this.activeAdContainer.style.opacity=1,this.adsManager.setVolume(null!==(e=this.adContext)&&void 0!==e&&e.muteRequested?0:1),this.t4rButton&&this.t4rButton.hide()}.bind(this),((null==s?void 0:s.min)||1234)+Math.random()*((null==s?void 0:s.max)||3210))}else if("click"===r||"first_quartile"===r){var l;if(a&&"click"===r){var f,p=null===(f=this._adrequest_user_context)||void 0===f?void 0:f.tnl_ad_pos;this.clickCount[p]++,this._broadcast("AD_T4R_CLICK")}a||"click"!==r||this._broadcast("AD_CLICK"),this.t4rButton&&this.t4rButton.hide(),this.activeAdContainer.style.opacity=1,this.adsManager.setVolume(null!==(l=this.adContext)&&void 0!==l&&l.muteRequested?0:1)}}}},{key:"_createPlayer",value:function(){var e=this,t=document.body||document.getElementsByTagName("body")[0];this.adContainer=document.createElement("div"),this.adContainer.id="".concat(this.prefix,"advertisement"),this.adContainer.style.position=this.thirdPartyContainer?"absolute":"fixed",this.adContainer.style.zIndex=xt.zIndex,this.adContainer.style.top="0",this.adContainer.style.left="0",this.adContainer.style.width="100%",this.adContainer.style.height="100%",this.thirdPartyContainer&&(this.thirdPartyContainer.style.transform=null);var r=document.createElement("video");r.setAttribute("playsinline",!0),r.setAttribute("webkit-playsinline",!0),r.id="".concat(this.prefix,"advertisement_video"),r.style.position="absolute",r.style.backgroundColor="#000000",r.style.top="0",r.style.left="0",r.style.width=this.options.width+"px",r.style.height=this.options.height+"px",this.video_ad_player=r,this.adContainer.appendChild(r);var i=document.createElement("div");i.id="".concat(this.prefix,"advertisement_slot"),i.style.position="absolute",i.style.top="0",i.style.left="0",i.style.width=this.options.width+"px",i.style.height=this.options.height+"px",this.adContainerInner=i,this.activeAdContainer=this.adContainer,window.activeAdContainer=this.activeAdContainer,this.thirdPartyContainer?(this.adContainer.appendChild(i),this.thirdPartyContainer.appendChild(this.adContainer),this.activeAdContainer=this.thirdPartyContainer):(this.adContainer.appendChild(i),t.appendChild(this.adContainer)),this.addAdComponents(),this.activeAdContainer.style.visibility="hidden";var a=function(){n(this,e);var t=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,a=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;this.options.width=this.thirdPartyContainer?this.thirdPartyContainer.offsetWidth:t,this.options.height=this.thirdPartyContainer?this.thirdPartyContainer.offsetHeight:a,i.style.width=this.options.width+"px",i.style.height=this.options.height+"px",r.style.width=this.options.width+"px",r.style.height=this.options.height+"px"}.bind(this);window.addEventListener("resize",a),window.document.addEventListener("DOMContentLoaded",a)}},{key:"_setUpIMA",value:function(){this.adDisplayContainer=new google.ima.AdDisplayContainer(this.adContainerInner,this.video_ad_player),this.adsLoader=new google.ima.AdsLoader(this.adDisplayContainer),this.adsLoader.getSettings().setDisableCustomPlaybackForIOS10Plus(!0),this.adsLoader.getSettings().setLocale(this.options.locale),this.adsLoader.getSettings().setVpaidMode(this._getVPAIDMode()),this.adsLoader.getSettings().setAutoPlayAdBreaks(!0);var e=this.adsLoader.getSettings().getNumRedirects();this.adsLoader.getSettings().setNumRedirects(2*e),this.adsLoader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,this._onAdsManagerLoaded,!1,this),this.adsLoader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,this._onAdError,!1,this)}},{key:"_onAdsManagerLoaded",value:function(e){var t=this,r=new google.ima.AdsRenderingSettings;r.autoAlign=!1,r.enablePreloading=!1,r.restoreCustomPlaybackStateOnAdBreakComplete=!0,r.useStyledNonLinearAds=!0,r.uiElements=[google.ima.UiElements.AD_ATTRIBUTION,google.ima.UiElements.COUNTDOWN],this.adsManager=e.getAdsManager(this.video_ad_player,r),this.adsManager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,this._onAdError.bind(this),!1,this),this.adsManager.addEventListener(google.ima.AdEvent.Type.AD_BREAK_READY,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.AD_METADATA,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.ALL_ADS_COMPLETED,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.CLICK,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.COMPLETE,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.DURATION_CHANGE,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.FIRST_QUARTILE,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.IMPRESSION,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.INTERACTION,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.LINEAR_CHANGED,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.LOADED,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.LOG,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.MIDPOINT,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.PAUSED,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.RESUMED,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.SKIPPABLE_STATE_CHANGED,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.SKIPPED,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.STARTED,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.THIRD_QUARTILE,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.USER_CLOSE,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.VOLUME_CHANGED,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.VOLUME_MUTED,this._onAdEvent.bind(this),this),window.addEventListener("resize",function(){n(this,t),this.adsManager&&this.adsManager.resize(this.options.width,this.options.height,google.ima.ViewMode.NORMAL)}.bind(this)),this.adDisplayContainerInitialized||(this.adDisplayContainer.initialize(),this.adDisplayContainerInitialized=!0);var i=new Date,a=i.getHours(),o=i.getDate(),s=i.getMonth(),u=i.getFullYear(),c="AD_SDK_MANAGER_READY";this._broadcast(c,{name:c,message:"AD SDK is ready",status:"success",analytics:{category:c,action:this.parentDomain,label:"h".concat(a," d").concat(o," m").concat(s," y").concat(u)}}),this._adrequest_user_context=e.getUserRequestContext()}},{key:"_onAdEvent",value:function(e){var t,r,i,a,o,s,u=this,c=new Date,d=c.getHours(),l=c.getDate(),f=c.getMonth(),p=c.getFullYear(),h=(o=google.ima.AdEvent.Type,s=e.type,Object.keys(o).find((function(e){return o[e]===s}))),m=!1,v=(null==e||null===(t=e.getAd())||void 0===t?void 0:t.getContentType())||"",g=!v.startsWith("image")&&!v.startsWith("text"),A=null==e||null===(r=e.ad)||void 0===r||null===(i=r.data)||void 0===i?void 0:i.title,b=null==e||null===(a=e.getAd())||void 0===a?void 0:a.data.skippable;this._sendIMAEventsToHB(e);var y=document.getElementById("game"),_="";switch(e.type){case google.ima.AdEvent.Type.AD_BREAK_READY:_="Fired when an ad rule or a VMAP ad break would have played if autoPlayAdBreaks is false.";break;case google.ima.AdEvent.Type.AD_METADATA:_="Fired when an ads list is loaded.";break;case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:this.contentPaused&&(m=!0),this.isAudioAd&&(this.audioAdLabel.hide(),this.isAudioAd=!1),this.rewardGuarantied=!1,_="Fired when the ads manager is done playing all the ads.";break;case google.ima.AdEvent.Type.CLICK:_="Fired when the ad is clicked.";var w=e.getAd().getContentType();this._show({mode:"click",contentType:w}),jP();break;case google.ima.AdEvent.Type.COMPLETE:ac("gd-adflow ON COMPLETE!",e.getAd()),m=this._is_completed(e.getAd()),_="Fired when the ad completes playing.",this.adType_!==rt.Rewarded||this.rewardGuarantied||(this._broadcast("SDK_REWARDED_WATCH_COMPLETE",{message:"",status:"success"}),this.rewardGuarantied=!0);break;case google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED:this.gameData.fllc.enabled&&(y.style.display="none"),this.contentPaused=!0,_="Fired when content should be paused. This usually happens right before an ad is about to cover the content.";break;case google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED:this.gameData.fllc.enabled&&(y.style.display="block"),_="Fired when content should be resumed. This usually happens when an ad finishes or collapses.",this.contentPaused?m=!0:(this.requestRunning=!1,this._broadcast("AD_ERROR",{message:"got resume without pause, possibly with VMAP",status:"error",skipForward:!0})),this._hideAddResume(),this._hideRewardedLabel(),this._hideSkipButton(),this.t4rButton&&this.t4rButton.hide(),this._clearTimeoutForSkipAddButton();break;case google.ima.AdEvent.Type.DURATION_CHANGE:_="Fired when the ad's duration changes.";break;case google.ima.AdEvent.Type.FIRST_QUARTILE:_="Fired when the ad playhead crosses first quartile.";var x=e.getAd().getContentType();this._show({mode:"first_quartile",contentType:x});break;case google.ima.AdEvent.Type.IMPRESSION:var k,E,S,D,I,R;if(_="Fired when the impression URL has been pinged.",e.getAd(),console.log("gdsdk: eventname IMPRESSION",this.isAudioAd),this._hideAdSpinner(),this.isAudioAd&&this.audioAdLabel.show(),"preroll"===this.adContext.adTypeFound)(null===(k=this.gameData)||void 0===k||null===(E=k.pAds)||void 0===E||null===(S=E.vmap)||void 0===S?void 0:S.enabled)&&(null===(D=this.gameData)||void 0===D||null===(I=D.pAds)||void 0===I||null===(R=I.vmap)||void 0===R?void 0:R.adtr)&&this.adInfoLabel.show();break;case google.ima.AdEvent.Type.INTERACTION:_="Fired when an ad triggers the interaction callback. Ad interactions contain an interaction ID string in the ad data.";break;case google.ima.AdEvent.Type.LINEAR_CHANGED:_="Fired when the displayed ad changes from linear to nonlinear, or vice versa.";break;case google.ima.AdEvent.Type.LOADED:var C=e.getAd().getContentType();_=C,this._show({mode:"loaded",contentType:C});break;case google.ima.AdEvent.Type.LOG:e.getAdData().adError&&(_=e.getAdData());break;case google.ima.AdEvent.Type.MIDPOINT:_="Fired when the ad playhead crosses midpoint.";break;case google.ima.AdEvent.Type.PAUSED:g&&"VPAID"!==A&&this.adResume.show(),_="Fired when the ad is paused.";break;case google.ima.AdEvent.Type.RESUMED:_="Fired when the ad is resumed.",g&&(this.adResume.hide(),this.rewardedLabel.hide());break;case google.ima.AdEvent.Type.SKIPPABLE_STATE_CHANGED:_="Fired when the displayed ads skippable state is changed.";break;case google.ima.AdEvent.Type.SKIPPED:var O;m=!(null!==(O=this.adContext)&&void 0!==O&&O.isVMAP)&&this._is_completed(e.getAd()),_="Fired when the ad is skipped by the user.",BP(),this.t4rButton&&this.t4rButton.hide();break;case google.ima.AdEvent.Type.STARTED:var T;if(this.skipAdButton&&this.skipAdButton.hide(),this.rewardGuarantied=!1,this.adType_===rt.Rewarded)!b&&null!==(T=this.gameData.rwskp)&&void 0!==T&&T.enabled&&(this._skipAdButtonTimeout=setTimeout(function(){n(this,u),this.skipAdButton.show(),this._broadcast("SDK_REWARDED_WATCH_COMPLETE",{message:"",status:"success"}),this.rewardGuarantied=!0}.bind(this),3e4)),this.rewardedLabel.show();this._hideAddResume(),_="Fired when the ad starts playing.";break;case google.ima.AdEvent.Type.THIRD_QUARTILE:_="Fired when the ad playhead crosses third quartile.";break;case google.ima.AdEvent.Type.USER_CLOSE:m=this._is_completed(e.getAd()),_="Fired when the ad is closed by the user.";break;case google.ima.AdEvent.Type.VOLUME_CHANGED:_="Fired when the ad volume has changed.";break;case google.ima.AdEvent.Type.VOLUME_MUTED:_="Fired when the ad volume has been muted."}if(""!==h&&""!==_){var P=!this.contentPaused&&e.type===google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,L=!this.contentPaused&&e.type===google.ima.AdEvent.Type.ALL_ADS_COMPLETED,M=P||L;"VPAID"===A&&this.imaEventList.push(h),M||this.isAudioAd||this._broadcast(h,{name:h,message:_,status:"success",analytics:{category:h,action:this.parentDomain,label:"h".concat(d," d").concat(l," m").concat(f," y").concat(p)}})}if(m&&!this.adSuccess){this.adSuccess=!0;var B=e.getAd();"VPAID"===A&&this._setAtomEvent();var j="Rainbow"===(null==B?void 0:B.getAdSystem())&&(null==B?void 0:B.getWrapperAdIds().some(function(e){return n(this,u),"promo"===e}.bind(this)));ac("gd-adflow isPromoSuccess",j,null==B?void 0:B.getAdSystem(),null==B?void 0:B.getWrapperAdIds()),this._broadcast("AD_SUCCESS",{message:"Ad succeeded.",status:"success",isPromoSuccess:j}),this.resetForNext(e)}}},{key:"_setAtomEvent",value:function(){this.dumper||(this.dumper=new HP({msgrt:this.msgrt,gameData:this.gameData,parentDomain:this.parentDomain,parentURL:this.parentURL,topDomain:this.parentURL}),this.dumper);var e={eventList:this.imaEventList};this.dumper.send_atom_event("vpaid",e),this.imaEventList=[]}},{key:"_clearTimeoutForSkipAddButton",value:function(){this._skipAdButtonTimeout&&(clearTimeout(this._skipAdButtonTimeout),this._skipAdButtonTimeout=null)}},{key:"_run_atom_tag_aws_test",value:function(e){var t=this;try{var r,i,a,o,s;if(!((null===(r=this.gameData)||void 0===r||null===(i=r.aws_tst)||void 0===i?void 0:i.enabled)&&(null===(a=this.gameData)||void 0===a||null===(o=a.aws_tst)||void 0===o||null===(s=o.ep)||void 0===s?void 0:s.atm)))return;var u=e.type,c=e.url;if("none"===u||!c)return;c=c.replace("tag.atom.gamedistribution.com","atom-tag-prod-aws.gamedistribution.com"),fetch(c).then(function(){n(this,t)}.bind(this))}catch(e){}}},{key:"_findAtomTagUrl",value:function(e,t){var r=this,i={type:"none"};try{var a=this.current_dp,o=a.id,s=a.error_url,u=a.impression_url,c=a.fallback_imp_url,d=a.promo_imp_green_url;if(!e&&!t)return i={type:"imp_err",url:s};var l=e.getWrapperAdIds().some(function(e){return n(this,r),e==="".concat(o)}.bind(this)),f=e.getWrapperAdIds().some(function(e){return n(this,r),"fallback"===e}.bind(this)),p=e.getWrapperAdIds().some(function(e){return n(this,r),"promo"===e}.bind(this));l&&t?i={type:"normal_imp",url:u}:l&&!t?i={type:"normal_err",url:s}:p&&t?i={type:"promo_imp",url:d}:f&&t&&(i={type:"fallbacj_imp",url:c})}catch(e){}return i}},{key:"_onAdError",value:function(e){this.requestRunning=!1,this._resetAdsLoader(),this._clearSafetyTimer("ERROR"),this._hide("_onAdError"),this._sendIMAEventsToHB(e);try{var t="AD_ERROR",n=e.getError(),r=n.getErrorCode().toString()||n.getVastErrorCode().toString(),i=this._getInnerErrorCode(n);VP.emit("AD_ERROR",r),this._broadcast(t,{message:r,details:i,status:"warning",analytics:{category:t,action:i,label:r}}),this._hideAddResume(),this._clearTimeoutForSkipAddButton()}catch(e){}}},{key:"_hideAddResume",value:function(){try{this.adResume&&this.adResume.hide()}catch(e){console.log("Error on hide adResume",e)}}},{key:"_hideAdSpinner",value:function(){try{var e;null!==(e=this.gameData.adspn)&&void 0!==e&&e.enabled&&this.adFlowProcessSpinner&&this.adFlowProcessSpinner.hide()}catch(e){console.log("Error on hide adSpinner",e)}}},{key:"_hideRewardedLabel",value:function(){try{this.adType_===rt.Rewarded&&this.rewardedLabel&&this.rewardedLabel.hide()}catch(e){console.log("Error on hide adResume",e)}}},{key:"_hideSkipButton",value:function(){try{this.adType_===rt.Rewarded&&this.skipAdButton&&this.skipAdButton.hide()}catch(e){console.log("Error on hide adResume",e)}}},{key:"_sendIMAEventsToHB",value:function(e){if(window.idhb&&"function"==typeof window.idhb.onImaEvent)try{window.idhb.onImaEvent({event:e})}catch(e){}}},{key:"_resetAdsLoader",value:function(){this.adsManager&&(this.adsManager.destroy(),this.adsManager=null,this._adrequest_user_context=null),this.adsLoader&&this.adsLoader.contentComplete()}},{key:"_startSafetyTimer",value:function(e,t){var r=this;this.safetyTimer&&clearTimeout(this.safetyTimer),this.safetyTimer=window.setTimeout(function(){n(this,r),this.cancel(),this._clearSafetyTimer(t)}.bind(this),e)}},{key:"_clearSafetyTimer",value:function(e){void 0!==this.safetyTimer&&null!==this.safetyTimer&&(clearTimeout(this.safetyTimer),this.safetyTimer=void 0)}},{key:"_getVPAIDMode",value:function(){return google.ima.ImaSdkSettings.VpaidMode.ENABLED}},{key:"_getPrebidScripts",value:function(){var e=["https://hb.improvedigital.com/pbw/headerlift.min.js","http://hb.improvedigital.com/pbw/headerlift.min.js"];return this.options.hb_script?[this.options.hb_script].concat(e):e}},{key:"_getInnerErrorCode",value:function(e){if(K(e.getInnerError)){var t=e.getInnerError();if(t)return K(t.getErrorCode)&&K(t.getVastErrorCode)?t.getErrorCode().toString()||t.getVastErrorCode().toString():t.message}}},{key:"resetForNext",value:function(){this.requestRunning=!1,this._hide("resetForNext")}},{key:"_createCustomAdVastUrl",value:function(e,t){var r=this;if(e){var i=this.macros.transform(e,{get:function(e){if(n(this,r),t&&t.tnl_keys)return t.tnl_keys[e.toLowerCase()]}.bind(this)});for(var a in i.query||{}){var o=i.query[a];U(o)&&(i.query[a]=l.stringify(o))}var s=new C(i.url,!0);return wP(s.query,i.query||{}),ZP({url:s.toString()},t)}}},{key:"_transformVast",value:function(e,t){var n={url:e.url};try{var r=new C(e.url,!0),i=this._transformQuery(e,t,r);i&&(n.url=r.toString());var a=i?r:new C(e.url,!0);if(a.query.cust_params){var o=l.parse(a.query.cust_params);n.bidder=o.hb_bidder,n.cust_params=o}n.url_parsed=a}catch(e){n.hasError=!0,n.message=e.message,n.bidder="error",console.log(e.message)}return n}},{key:"_transformQuery",value:function(e,t,r){var i=this;if(e&&t&&e.tnl_keys){var a=this.options.vast_query;if(t.retry_on_success&&this.options.retry_on_success&&U(this.options.retry_on_success.vast_query)?a=this.options.retry_on_success.vast_query:t.retry_on_failure&&this.options.retry_on_failure&&U(this.options.retry_on_failure.vast_query)&&(a=this.options.retry_on_failure.vast_query),U(a=B(a))){var o=r.query;if(a.$$remove){for(var s in o){new RegExp(a.$$remove,"i").test(s)&&delete o[s]}delete a.$$remove}var u=l.parse(o.cust_params);if(a.cust_params&&a.cust_params.$$remove){for(var c in u){new RegExp(a.cust_params.$$remove,"i").test(c)&&delete u[c]}delete a.cust_params.$$remove}var d=this.macros.transform(a,{get:function(t){return n(this,i),e.tnl_keys[t.toLowerCase()]}.bind(this)});return o.cust_params=u,wP(o,d),o.cust_params=l.stringify(o.cust_params),!0}}}},{key:"_isExcludedBidderForT4R",value:function(){var e=this;try{var t,r,i,a,o=(null===(t=this._adrequest_user_context)||void 0===t||null===(r=t.adTag)||void 0===r?void 0:r.bidder)||"adx";this.msgrt.send("bidder",{message:o}),ac("ex_bidder ad request context",this._adrequest_user_context,'bidder:"'.concat(o,'"'));var s=(null===(i=this.gameData.t4rc)||void 0===i?void 0:i.bidder_exc)||[],u=(null===(a=this.gameData.t4rc)||void 0===a?void 0:a.bidder_inc)||[],c=!1;return u.length>0?c=!u.some(function(t){return n(this,e),t===o}.bind(this)):s.length>0&&(c=s.some(function(t){return n(this,e),t===o}.bind(this))),ac("ex_bidder_result",o,c),c}catch(e){console.log("ex_bidder ERR",e)}}},{key:"_isExcludedBidderForT4RWithBidderExcRate",value:function(){var e,t,n,r,i=this._isExcludedBidderForT4R(),a=null===(e=this.gameData)||void 0===e||null===(t=e.t4rc)||void 0===t?void 0:t.bidder_exc_rate,o=null!=a&&a.enabled?(null==a?void 0:a.rate)||.8:0,s=(null===(n=this._adrequest_user_context)||void 0===n||null===(r=n.adTag)||void 0===r?void 0:r.bidder)||"adx",u=Math.random();return i||"adx"!==s&&u<o}},{key:"_isT4R",value:function(e){var t=null==e?void 0:e.contentType,n={isImage:null==t?void 0:t.startsWith("image/"),isText:"text"===t,isVideo:null==t?void 0:t.startsWith("video/")},r=Object.values(this._getT4RValidators(e)||{}),i={success:!0};try{for(var a=0,o=r;a<o.length;a++){var s=(0,o[a])(n);if(!s.success){i=s;break}}}catch(e){i={success:!1,reason:"internal-error"}}return i}},{key:"_getT4RValidators",value:function(e){var t=this,r=function(r){return n(this,t),e.t4rac.enabled?{success:!0,name:"ddate"}:{success:!1,reason:"ddate",name:"ddate"}}.bind(this),i=function(e){if(n(this,t),this.gameData.publishedAt){var r=new Date(this.gameData.publishedAt);return((new Date).getTime()-r.getTime())/864e5<=10?{success:!1,reason:"pdate-1",name:"pdate"}:{success:!0,name:"pdate"}}return{success:!1,reason:"pdate-2",name:"pdate"}}.bind(this),a=function(r){var i,a,o,s;n(this,t);var u=this.gameData.meta,c=e.t4r.meta;return(null==u||null===(i=u.ast)||void 0===i?void 0:i.c)>=(null==c||null===(a=c.ast)||void 0===a?void 0:a.c)&&(null==u||null===(o=u.sit)||void 0===o?void 0:o.c)>=(null==c||null===(s=c.sit)||void 0===s?void 0:s.c)?{success:!1,reason:"meta",name:"meta"}:{success:!0,name:"meta"}}.bind(this),o=function(e){n(this,t);var r=this._isExcludedBidderForT4RWithBidderExcRate();return this.msgrt.send("bidder.ex",{message:r?"true":"false"}),{success:!r,reason:r?"bidder":null,name:"bidder"}}.bind(this),s=function(r){var i,a;n(this,t);var o=null===(i=this._adrequest_user_context)||void 0===i?void 0:i.tnl_ad_pos,s=o&&this.clickCount[o]>=(null===(a=e.t4r[o])||void 0===a?void 0:a.count);return{success:!s,reason:s?"click-count":null,name:"click-count"}}.bind(this),u=function(r){var i,a;n(this,t);var o=null===(i=this._adrequest_user_context)||void 0===i?void 0:i.tnl_ad_pos,s=o&&(null===(a=e.t4r[o])||void 0===a?void 0:a.enabled);return{success:s,reason:s?null:"rule-check",name:"rule-check"}}.bind(this),c=function(r){var i,a;if(n(this,t),!r.isVideo)return{success:!0,name:"viper-check"};var o=null===(i=this._adrequest_user_context)||void 0===i?void 0:i.tnl_ad_pos,s=(null===(a=e.t4r[o])||void 0===a?void 0:a.viper)||0;if(s>0){var u,c=Math.random()<s,d=o&&c&&(null===(u=e.t4r[o])||void 0===u?void 0:u.enabled);return{success:d,reason:d?null:"viper-check",name:"viper-check"}}return{success:!1,reason:"rule-check-viper",name:"viper-check"}}.bind(this),d=function(e){n(this,t);var r=e.isImage,i=e.isText,a=e.isVideo,o=r||i||a;return{success:o,reason:o?null:"media-format",name:"media-format"}}.bind(this);return{checkRule:u,checkMediaFormat:d,checkPublishDate:i,checkMeta:a,checkClickCount:s,checkViper:c,checkExcludedBidder:o,checkT4rActivation:r}}},{key:"_isVMAP",value:function(e){var t,n,r,i,a,o,s,u,c,d,l,f,p,h,m;if(!e)return!1;var v="preroll"===e&&(!0===(null===(t=this.gameData)||void 0===t||null===(n=t.pAds)||void 0===n?void 0:n.vmap)||!0===(null===(r=this.gameData)||void 0===r||null===(i=r.pAds)||void 0===i||null===(a=i.vmap)||void 0===a?void 0:a.enabled))||"midroll"===e&&(!0===(null===(o=this.gameData)||void 0===o||null===(s=o.mAds)||void 0===s?void 0:s.vmap)||!0===(null===(u=this.gameData)||void 0===u||null===(c=u.mAds)||void 0===c||null===(d=c.vmap)||void 0===d?void 0:d.enabled))||"rewarded"===e&&(!0===(null===(l=this.gameData)||void 0===l||null===(f=l.rAds)||void 0===f?void 0:f.vmap)||!0===(null===(p=this.gameData)||void 0===p||null===(h=p.rAds)||void 0===h||null===(m=h.vmap)||void 0===m?void 0:m.enabled));if(!v)return!1;var g=this._get_vmap_config(e),A=this.adCounter[e];return void 0!==(null==g?void 0:g.start)?A>=(null==g?void 0:g.start):v}},{key:"_getT4ROptions",value:function(e){var t,n=null===(t=this._adrequest_user_context)||void 0===t?void 0:t.tnl_ad_pos;switch(n){case"preroll":case"midroll":case"rewarded":return e.t4r[n]}}},{key:"_is_completed",value:function(e){var t=e.getContentType(),n=e.getAdPodInfo();return!(!t.startsWith("image/")&&"text"!==t&&1!==n.getTotalAds())}},{key:"_get_vmap_context",value:function(e){for(var t=e.adtag,n=e.position,r=e.config,i=e.dp,a=r.count||2,o=[],s=1;s<=a;s++){var u={};u.adtag=this._createCustomAdVastUrl(r["vast_"+s])||t,u.position=n,u.dp=r["vast_"+s]?void 0:i,o.push(u)}return o}},{key:"_get_vmap_config",value:function(e){var t,n,r,i,a,o,s,u;switch(e){case"preroll":return null===(t=this.gameData)||void 0===t||null===(n=t.pAds)||void 0===n?void 0:n.vmap;case"midroll":return null===(r=this.gameData)||void 0===r||null===(i=r.mAds)||void 0===i?void 0:i.vmap;case"rewarded":return null===(a=this.gameData)||void 0===a||null===(o=a.rAds)||void 0===o?void 0:o.vmap;default:return null===(s=this.gameData)||void 0===s||null===(u=s.pAds)||void 0===u?void 0:u.vmap}}},{key:"_isDP",value:function(e){var t,n,r;return!!e&&!0===(null===(t=this.gameData)||void 0===t||null===(n=t.dp)||void 0===n||null===(r=n[e])||void 0===r?void 0:r.enabled)}},{key:"_create_dp_display_context",value:function(){var e=this;return new Promise(function(t){var r=this;n(this,e);try{var i={id:this.topDomain||this.parentDomain,au:"display",ty:"display",aid:this.gameData.gameId,pgu:this.parentURL},a=new uP(this.gameData).checkCustomParams();a&&(i.cp=a);var o=encodeURIComponent(nt.encode(JSON.stringify(i)));fetch("https://tag.atom.gamedistribution.com/v1/atm?ar=".concat(o)).then(function(e){return n(this,r),e.json()}.bind(this)).then(function(e){if(n(this,r),!e||!e.p)return this.msgrt.send("dp.na",{message:"atom"}),t();var i=e.p/100;this.msgrt.send("dp.fp",{message:i}),t({params:{fp:i},error_url:"https://tag.atom.gamedistribution.com/v1/err?ar=".concat(o),impression_url:"https://tag.atom.gamedistribution.com/v1/imp?ar=".concat(o)})}.bind(this)).catch(function(e){n(this,r),this.msgrt.send("dp.err",{message:(null==e?void 0:e.message)||e}),t()}.bind(this))}catch(e){this.msgrt.send("dp.err",{message:(null==e?void 0:e.message)||e}),t()}}.bind(this))}},{key:"_create_promo_context",value:function(e){var t,r=this,i={id:this.topDomain||this.parentDomain,au:e||"unknown",ty:"video",aid:this.gameData.gameId,pgu:this.parentURL},a=Object.keys(i).map(function(e){return n(this,r),"".concat(e,"=").concat(encodeURIComponent(i[e]))}.bind(this)).join("&");encodeURIComponent(nt.encode(JSON.stringify(i)));var o=null===(t=this.gameData.promo)||void 0===t?void 0:t.rainbow,s=null==o?void 0:o.enabled,u="https://tag.atom.gamedistribution.com/v1/rainbow/?".concat(a),c=s?u:void 0;return function(){n(this,r),uc.promoError&&(console.log("promo-test fictional promo error"),c=void 0)}.bind(this),{promo_url:c,promo_imp_blue_url:s?"https://tag.atom.gamedistribution.com/v1/rainbow/blue":void 0,promo_imp_green_url:s?"https://tag.atom.gamedistribution.com/v1/rainbow/green":void 0}}},{key:"_create_dp_context",value:function(e,r){var i=this;return new Promise(function(){var a=t(d.mark((function t(a){var o,s,u,c,l,f=this;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,i._isDP(e)){t.next=5;break}return i.msgrt.send("dp.na",{message:"rule"}),t.abrupt("return",a());case 5:s={id:i.topDomain||i.parentDomain,au:e||"unknown",ty:"video",aid:i.gameData.gameId,pgu:i.parentURL},(u=new uP(i.gameData).checkCustomParams())&&(s.cp=u),c=encodeURIComponent(nt.encode(JSON.stringify(s))),ac("gd-adflow isLastAdapter",null==r?void 0:r.adapterIndex,null==r?void 0:r.isLastAdapter),l=null===(o=i.gameData.promo)||void 0===o?void 0:o.rainbow,ac("gd-adflow promo_enabled",!1,null==l?void 0:l.enabled,null==r?void 0:r.isLastAdapter),fetch("https://tag.atom.gamedistribution.com/v1/atm?ar=".concat(c)).then(function(e){return n(this,f),e.json()}.bind(this)).then(function(e){if(n(this,f),!e||!e.p)return i.msgrt.send("dp.na",{message:"atom"}),a();var t=e.p/100;i.msgrt.send("dp.fp",{message:t}),a({id:Date.now(),floor_price:t,error_url:"https://tag.atom.gamedistribution.com/v1/err?ar=".concat(c,"&ec=[ERRORCODE]"),impression_url:"https://tag.atom.gamedistribution.com/v1/imp?ar=".concat(c),skip_url:"https://tag.atom.gamedistribution.com/v1/skp?ar=".concat(c),promo_url:void 0,promo_imp_blue_url:void 0,promo_imp_green_url:void 0})}.bind(this)).catch(function(e){n(this,f),i.msgrt.send("dp.err",{message:(null==e?void 0:e.message)||e}),a()}.bind(this)),t.next=20;break;case 16:t.prev=16,t.t0=t.catch(0),i.msgrt.send("dp.err",{message:(null===t.t0||void 0===t.t0?void 0:t.t0.message)||t.t0}),a();case 20:case"end":return t.stop()}}),t,this,[[0,16]])})));return function(e){return a.apply(this,arguments)}}())}},{key:"_extend_dp_with_adsense",value:function(e,t){if(e&&t)try{var n,r=new C(t.vastUrl,!0);if(null===(n=r.query)||void 0===n||!n.cust_params)return;var i=l.parse(r.query.cust_params);if(!i.tnl_asset_id)return;i.adsense=1,r.query.cust_params=l.stringify(i,!1),e.fallback_url=r.toString(),e.fallback_imp_url="https://tag.atom.gamedistribution.com/v1/rainbow/green"}catch(e){}}},{key:"_extend_hl_url",value:function(e){e.dp;var t=e.hl;e.src;var n=e.tnl_keys,r=!0!==(null==t?void 0:t.bidFloorApplied)?0:1;0===r&&null!=n&&n.hasOwnProperty("fp")?r=2:1!==r||null!=n&&n.hasOwnProperty("fp")||(r=3),n.bfa=r;try{var i,a=new C(e.url,!0);if(null===(i=a.query)||void 0===i||!i.cust_params)return;var o=l.parse(a.query.cust_params);o.bfa=r,o.adsense=0,a.query.cust_params=l.stringify(o,!1),e.url=a.toString(),t.vastUrl=e.url}catch(e){}finally{this.msgrt.send("bfa",{message:r})}}},{key:"_init_hl_script",value:(h=t(d.mark((function e(t){var r,i,a,o,s,u,c,l,f,p,h,m,v=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=this._getPrebidScripts(),s=o[0],u=function(){return n(this,v),!1}.bind(this),window.idhb=window.idhb||{iabCmpExists:u},window.idhb.options=window.idhb.options||{},Object.assign(window.idhb.options,{assetId:this.gameData.gameId,configUrl:this.topDomain||this.parentDomain,parentUrl:this.parentURL,pageType:"gd"}),"undefined"===window.idhb.options.configUrl&&(window.idhb.options.configUrl=null),window.idhb.que=window.idhb.que||[],(c=new URL(s)).searchParams.append("referer",window.idhb.options.configUrl),s=c.href,e.next=13,ft(s,"gdsdk_prebid",{alternates:o,error_prefix:"Blocked:",exists:function(){return n(this,v),window.idhb.requestAds}.bind(this)});case 13:return e.next=15,this.checkOpphbPath();case 15:l=st("ch",window.location.href),f=st("ch_date",window.location.href),p={tnl_content_category:this.category.toLowerCase()},l&&(p.channel=l),f&&(p.ch_date=f),(h=st("hl_label",this.parentURL)||st("hl_label",window.location.href))&&(p.label=h),window.idhb.setAdserverTargeting(p),window.idhb.allowPersonalizedAds(!!parseInt(this.userAllowedPersonalizedAds)),null!=(m=window.idhb.getConfig())&&null!==(r=m.hbw)&&void 0!==r&&null!==(i=r.slots)&&void 0!==i&&null!==(a=i.gd__banner)&&void 0!==a&&a.sizes&&(m.hbw.slots.gd__banner.sizes=[[120,600],[160,600],[250,250],[300,50],[300,100],[300,250],[300,600],[320,50],[320,480],[336,280],[728,90]],window.idhb.setConfig(m)),window.idhb.addEventListener("slotRenderEnded",function(e){var t=this;n(this,v);try{var r,i,a=e.slotId.split("@");a=1===a.length?a[0]:a[1],e.isEmpty?(null!==(r=this.atom_display)&&void 0!==r&&r.error_url&&(fetch(this.atom_display.error_url).catch(function(e){n(this,t)}.bind(this)),delete this.atom_display),ac("display_test DISPLAYAD_ERR",e),this._broadcast("DISPLAYAD_ERROR",{message:a,status:"warning"})):(null!==(i=this.atom_display)&&void 0!==i&&i.impression_url&&(fetch(this.atom_display.impression_url).catch(function(e){n(this,t)}.bind(this)),delete this.atom_display),ac("display_test DISPLAYAD_IMPRESSION"),this._broadcast("DISPLAYAD_IMPRESSION",{message:a,status:"success"}))}catch(e){}}.bind(this));case 27:case"end":return e.stop()}}),e,this)}))),function(e){return h.apply(this,arguments)})},{key:"checkOpphbPath",value:(p=t(d.mark((function e(){var t,n,r,i,a,o;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,r=this.topDomain||this.parentDomain||"",i=(null===(t=this.gameData)||void 0===t?void 0:t.gameId)||"",a=(null===(n=this.options)||void 0===n?void 0:n.width)||640,e.next=6,fetch("https://pub.headerlift.com/opphb?page_url=".concat(r,"&page_type=gd&page_width=").concat(a,"&aid=").concat(i));case 6:o=e.sent,oc("opphb load success",o),e.next=13;break;case 10:throw e.prev=10,e.t0=e.catch(0),new Error("Blocked: https://pub.headerlift.com/opphb");case 13:case"end":return e.stop()}}),e,this,[[0,10]])}))),function(){return p.apply(this,arguments)})},{key:"_init_ima_script",value:(f=t(d.mark((function e(t){var r,i,a=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=["https://imasdk.googleapis.com/js/sdkloader/ima3_debug.js","https://imasdk.googleapis.com/js/sdkloader/ima3.js","http://imasdk.googleapis.com/js/sdkloader/ima3_debug.js","http://imasdk.googleapis.com/js/sdkloader/ima3.js"],i=this.options.debug?r[0]:r[1],e.next=4,ft(i,"gdsdk_ima",{alternates:r,error_prefix:"Blocked:",exists:function(){return n(this,a),window.google&&window.google.ima}.bind(this)});case 4:case"end":return e.stop()}}),e,this)}))),function(e){return f.apply(this,arguments)})},{key:"_init_afg_script",value:(c=t(d.mark((function e(t){var r,i,a,o,s,u,c=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.gameData.afg_disabled){e.next=3;break}return e.abrupt("return");case 3:return(u={}).crossorigin="anonymous",u["data-ad-client"]=(null==t||null===(r=t.adsense_client)||void 0===r?void 0:r.length)>0?t.adsense_client:"ca-pub-2316275586951220",u["data-ad-frequency-hint"]="30s",u.allow="autoplay",(null==t||null===(i=t.adsense_channel)||void 0===i?void 0:i.length)>0&&(u["data-ad-channel"]=t.adsense_channel),(null==t||null===(a=t.adsense_host)||void 0===a?void 0:a.length)>0&&(u["data-ad-host"]=t.adsense_host),!0===(null==t?void 0:t.adsense_adbreak_test)&&(u["data-adbreak-test"]="on"),null!==(o=this.gameData.sdk.afg)&&void 0!==o&&o.enabled&&null!==(s=this.gameData.sdk.afg)&&void 0!==s&&s.use_own&&(u["data-ad-client"]=this.gameData.sdk.afg.adsense_client,u["data-ad-slot"]=this.gameData.sdk.afg.adsense_ad_slot,u["data-ad-format"]="auto"),e.next=16,ft("https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js","afg",{error_prefix:"Blocked:",exists:function(){return n(this,c),!!window.adsbygoogle}.bind(this),attrs:u});case 16:window.adsbygoogle=window.adsbygoogle||[],window.adsbygoogle.push({sound:"on",preloadAdBreaks:"on"});case 18:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"fixOutOfBounds",value:function(){try{if(!(this.gameData.afgszf&&this.gameData.afgszf.enabled))return;for(var e=this.gameData.afgszf,t=e.height,n=e.scrolls,r=t||"120vh",i=n||!0,a=document.getElementsByClassName("adsbygoogle"),o=0;o<a.length;o++){var s,u=a[o],c=u&&(null===(s=u.children[0])||void 0===s?void 0:s.children[0]);c&&"IFRAME"===c.tagName&&c.style.height!==r&&(ac("out-of-bounds fix apply"),c.style.height=r,i&&(c.parentElement.style.overflow="auto"))}}catch(e){ac("out-of-bounds error: ".concat(e.message))}}},{key:"clearSession",value:function(){this.requestRunning=!1}},{key:"_startAdsensePlacementRewardedAd",value:(u=t(d.mark((function e(t){var r,i,a,o,s,u,c,l,f=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.params,e.prev=1,!this.requestRunning){e.next=5;break}return this._broadcast("AD_IS_ALREADY_RUNNING",{status:"warning"}),e.abrupt("return");case 5:if(!void function(){if(n(this,f),uc.fictionalAdSenseError||t.params.shouldFail)return this._broadcast("AD_ERROR",{message:"fictional adsense rewarded error",status:"error",skipForward:!0}),!0}.bind(this)){e.next=8;break}return e.abrupt("return");case 8:this.requestRunning=!0,this._send_atom_event("sg.ad.rw.requested"),r=!1,i=function(){n(this,f),r=!0,this.fixOutOfBounds(),this._broadcast("CONTENT_PAUSE_REQUESTED",{message:"",status:"success"}),this._broadcast("IMPRESSION",{message:"",status:"success"})}.bind(this),a=function(){n(this,f),r=!0,this._broadcast("CONTENT_RESUME_REQUESTED",{message:"",status:"success"})}.bind(this),o=function(){n(this,f),r=!0,this._send_atom_event("sg.ad.rw.dismissed")}.bind(this),s=function(){n(this,f),r=!0,this._broadcast("COMPLETE",{message:"",status:"success"}),this._broadcast("SDK_REWARDED_WATCH_COMPLETE",{message:"",status:"success"}),this._send_atom_event("sg.ad.rw.viewed")}.bind(this),u=function(e){n(this,f),r=!0,e()}.bind(this),c=function(e){n(this,f),r=!0,this.resetForNext();var t="rewarded";this.adCounter[t]=this.adCounter[t]||0,this.adCounter[t]++,"viewed"===e.breakStatus?this._broadcast("AD_SUCCESS",{message:"Ad succeeded.",status:"success"}):(this._broadcast("AD_ERROR",{message:e.breakStatus,status:"error",skipForward:!0}),"dismissed"!==e.breakStatus&&this._send_atom_event("sg.dbg.rw",e))}.bind(this),l=function(e){window.adsbygoogle.push(e)},setTimeout(function(){n(this,f),r||(oc("gd-adflow adsense.reward timeout happened!"),this.requestRunning=!1,this._broadcast("AD_ERROR",{message:"timeout",status:"error",skipForward:!0}),this._send_atom_event("sg.dbg.rw",{breakStatus:"timeout"}))}.bind(this),1e3),l({type:"reward",name:"reward-in-game",beforeAd:i,afterAd:a,adDismissed:o,adViewed:s,beforeReward:u,adBreakDone:c}),e.next=26;break;case 22:throw e.prev=22,e.t0=e.catch(1),this._onError(e.t0),e.t0;case 26:case"end":return e.stop()}}),e,this,[[1,22]])}))),function(e){return u.apply(this,arguments)})},{key:"_startAdsensePlacementPreroll",value:(s=t(d.mark((function e(t){var r,i,a=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.params,e.prev=1,!this.requestRunning){e.next=5;break}return this._broadcast("AD_IS_ALREADY_RUNNING",{status:"warning"}),e.abrupt("return");case 5:if(!void function(){if(n(this,a),uc.fictionalAdSenseError||t.params.shouldFail)return this._broadcast("AD_ERROR",{message:"fictional adsense preroll error",status:"error"}),!0}.bind(this)){e.next=8;break}return e.abrupt("return");case 8:this.requestRunning=!0,this._send_atom_event("sg.ad.pr.requested"),this.adPlacementEventReceived=!1,r=function(){n(this,a),this.adPlacementEventReceived=!0}.bind(this),i=function(e){n(this,a),this.adPlacementEventReceived=!0,this.resetForNext();var t="preroll";this.adCounter[t]=this.adCounter[t]||0,this.adCounter[t]++,"viewed"===e.breakStatus?(this._send_atom_event("sg.ad.pr.viewed"),this._broadcast("CONTENT_PAUSE_REQUESTED",{message:"",status:"success"}),this._broadcast("IMPRESSION",{message:"",status:"success"}),this._broadcast("COMPLETE",{message:"",status:"success"}),this._broadcast("AD_SUCCESS",{message:"Ad succeeded.",status:"success"}),this._broadcast("CONTENT_RESUME_REQUESTED",{message:"",status:"success"})):(this._broadcast("AD_ERROR",{message:e.breakStatus,status:"error"}),this._send_atom_event("sg.dbg.pr",e))}.bind(this),this._startTimeoutForAdBreak({adType:"preroll"}),o={type:"preroll",beforeAd:r,adBreakDone:i},window.adsbygoogle.push(o),e.next=22;break;case 18:throw e.prev=18,e.t0=e.catch(1),this._onError(e.t0),e.t0;case 22:case"end":return e.stop()}var o}),e,this,[[1,18]])}))),function(e){return s.apply(this,arguments)})},{key:"_startAdsensePlacementStart",value:(o=t(d.mark((function e(t){var r,i,a,o=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.params,e.prev=1,!this.requestRunning){e.next=5;break}return this._broadcast("AD_IS_ALREADY_RUNNING",{status:"warning"}),e.abrupt("return");case 5:if(!void function(){if(n(this,o),uc.fictionalAdSenseError||t.params.shouldFail)return this._broadcast("AD_ERROR",{message:"fictional adsense preroll error 2",status:"error"}),!0}.bind(this)){e.next=8;break}return e.abrupt("return");case 8:this.requestRunning=!0,this._send_atom_event("sg.ad.pr.requested"),r=function(){n(this,o),this.adPlacementEventReceived=!0,this.fixOutOfBounds(),this._broadcast("CONTENT_PAUSE_REQUESTED",{message:"",status:"success"}),this._broadcast("IMPRESSION",{message:"",status:"success"})}.bind(this),i=function(){n(this,o),this.adPlacementEventReceived=!0,this._broadcast("CONTENT_RESUME_REQUESTED",{message:"",status:"success"})}.bind(this),this.adPlacementEventReceived=!1,a=function(e){n(this,o),this.adPlacementEventReceived=!0,this.resetForNext();var t="preroll";this.adCounter[t]=this.adCounter[t]||0,this.adCounter[t]++,"viewed"===e.breakStatus?(this._send_atom_event("sg.ad.pr.viewed"),this._broadcast("COMPLETE",{message:"",status:"success"}),this._broadcast("AD_SUCCESS",{message:"Ad succeeded.",status:"success"})):(this._broadcast("AD_ERROR",{message:e.breakStatus,status:"error"}),this._send_atom_event("sg.dbg.pr",e))}.bind(this),this._startTimeoutForAdBreak({adType:"preroll"}),s={type:"start",name:"start-in-game",beforeAd:r,afterAd:i,adBreakDone:a},window.adsbygoogle.push(s),e.next=23;break;case 19:throw e.prev=19,e.t0=e.catch(1),this._onError(e.t0),e.t0;case 23:case"end":return e.stop()}var s}),e,this,[[1,19]])}))),function(e){return o.apply(this,arguments)})},{key:"_startTimeoutForAdBreak",value:function(e){var t,r,i,a,o,s,u=this;if(null===(t=this.gameData)||void 0===t||null===(r=t.ad_blcks)||void 0===r||null===(i=r.adsenseTimeout)||void 0===i?void 0:i.enabled){null==e||e.adType,null===(a=this.gameData)||void 0===a||null===(o=a.ad_blcks)||void 0===o||null===(s=o.adsenseTimeout)||void 0===s||s.timeout;var c=setTimeout(function(){n(this,u),this.adPlacementEventReceived||(this._broadcast("AD_ERROR",{message:"timeout-_startTimeoutForAdBreak",status:"error"}),this.adPlacementEventReceived=!1,this.requestRunning=!1),clearTimeout(c)}.bind(this),5e3)}}},{key:"_startTimeoutForOpus",value:function(){var e=this,t=setTimeout(function(){n(this,e),this.opusEventReceived||(this._broadcast("AD_ERROR",{message:"opus-sdk-timeout",status:"error",reason:"forced-sdk-timeout"}),this.opusEventReceived=!1,this.requestRunning=!1),clearTimeout(t)}.bind(this),8e3)}},{key:"_startAdsensePlacementNext",value:(a=t(d.mark((function e(t){var r,i,a,o=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.params,e.prev=1,!this.requestRunning){e.next=5;break}return this._broadcast("AD_IS_ALREADY_RUNNING",{status:"warning"}),e.abrupt("return");case 5:if(!void function(){if(n(this,o),uc.fictionalAdSenseError||t.params.shouldFail)return this._broadcast("AD_ERROR",{message:"fictional adsense midroll error",status:"error"}),!0}.bind(this)){e.next=8;break}return e.abrupt("return");case 8:this.requestRunning=!0,this._send_atom_event("sg.ad.mr.requested"),r=function(){n(this,o),this.adPlacementEventReceived=!0,this.fixOutOfBounds(),this._broadcast("CONTENT_PAUSE_REQUESTED",{message:"",status:"success"}),this._broadcast("IMPRESSION",{message:"",status:"success"})}.bind(this),i=function(){n(this,o),this.adPlacementEventReceived=!0,this._broadcast("CONTENT_RESUME_REQUESTED",{message:"",status:"success"})}.bind(this),this.adPlacementEventReceived=!1,a=function(e){n(this,o),this.adPlacementEventReceived=!0,this.resetForNext();var t="midroll";this.adCounter[t]=this.adCounter[t]||0,this.adCounter[t]++,"viewed"===e.breakStatus?(this._send_atom_event("sg.ad.mr.viewed"),this._broadcast("COMPLETE",{message:"",status:"success"}),this._broadcast("AD_SUCCESS",{message:"Ad succeeded.",status:"success"})):(this._broadcast("AD_ERROR",{message:e.breakStatus,status:"error"}),this._send_atom_event("sg.dbg.mr",e))}.bind(this),this._startTimeoutForAdBreak({adType:"midroll"}),s={type:"next",name:"next-in-game",beforeAd:r,afterAd:i,adBreakDone:a},window.adsbygoogle.push(s),e.next=23;break;case 19:throw e.prev=19,e.t0=e.catch(1),this._onError(e.t0),e.t0;case 23:case"end":return e.stop()}var s}),e,this,[[1,19]])}))),function(e){return a.apply(this,arguments)})},{key:"_send",value:function(e,t){try{var n=this.msgrt,r=n._layout,i=n._ua,a={tp:e,ct:0,vrs:this.PackageJSON.version,url:this.parentURL,rfr:document.referrer,tdmn:this.topDomain||this.parentDomain,dpth:0,args:t,ua:{brnm:i.browser.name,brvs:i.browser.version,osnm:i.os.name,osvs:i.os.version,dvmd:i.device.model,w:r.w,h:r.h}};return fetch("https://tag.atom.gamedistribution.com/v1/dmp?ar=".concat(encodeURIComponent(nt.encode(JSON.stringify(a)))))}catch(e){}}},{key:"_send_atom_event",value:function(e,t){var n={gid:this.gameData.slug,md5:this.gameData.gameId,pid:0,pnm:this.gameData.pname,ctry:this.gameData.ctry,lcl:"en",hle:1,ads:1,args:t,href:window.location.href},r=(new cD).get();return n=ZP(ZP({},n),r),n=t?ZP(ZP({},n),t):n,this._send(e,n)}},{key:"_isAfgPositionNext",value:function(e){return void 0!==e.adTimestamp}},{key:"_isAfgPositionStart",value:function(e){if(void 0!==e.adTimestamp)return!1;var t="preroll";return this.adCounter[t]=this.adCounter[t]||0,0===this.adCounter[t]}},{key:"attachAfgPosition",value:function(e){var t=e.params.position;switch(t){case"preroll":case"start":case"pause":case"next":case"browse":case"reward":return}var n=e.adType;if(n===rt.Rewarded)t="reward";else if(n===rt.Interstitial){var r,i;if(this._isAfgPositionStart(e))t=null===(r=this.gameData.pAds)||void 0===r||!r.enabled||null!==(i=this.gameData.loader)&&void 0!==i&&i.enabled?"start":"next";else this._isAfgPositionNext(e)&&(t="next")}t||(t="preroll"),e.params.position=t}},{key:"_broadcast",value:function(e,t){var r=this,i=!1;["AD_ERROR"].some(function(t){return n(this,r),t===e}.bind(this))&&(i=!this.adContext.isLastAdapter||this.adContext.extraPromoRunOnFail);var a=this.getCurrentAdPosition(this.adContext.adType);this.eventBus.broadcast(e,ZP(ZP({},t),{},{skipForward:i,adPosition:a}))}},{key:"_findAdPosition",value:function(){var e;return this.getCurrentAdPosition(null===(e=this.adContext)||void 0===e?void 0:e.adType)}},{key:"mute",value:(i=t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.adContext&&(this.adContext.muteRequested=!0),this.adsManager&&this.adsManager.setVolume(0);case 2:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"terminate",value:(r=t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.cancel();case 1:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})}]),e}(),WP=L((function e(n){var r=this;O(this,e),cc(this,"load",t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Fb(r.moduleName);case 2:r.module=e.sent;case 3:case"end":return e.stop()}}),e)})))),cc(this,"promo",t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r.module){e.next=3;break}return e.next=3,r.load();case 3:return e.abrupt("return",r.module[r.moduleDefault]);case 4:case"end":return e.stop()}}),e)}))));var i=n.package||"gd-sdk-stone-dynamic",a=n.package_version||"1.1.1",o=n.template||"puzzle",s=n.dependencies||[];this.moduleName="GDPromoByOrbit",this.moduleDefault=o.charAt(0).toUpperCase()+o.slice(1),this.moduleConfig={source:"https://pm.azerioncircle.com/@bygd/".concat(i,"/").concat(a,"/dist/").concat(o.toLowerCase(),"/iife/index.js"),dependencies:s},jb(this.moduleName,this.moduleConfig)})),YP=L((function e(n){var r=this;O(this,e),cc(this,"load",t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Fb(r.moduleName);case 2:r.module=e.sent;case 3:case"end":return e.stop()}}),e)})))),cc(this,"splash",t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r.module){e.next=3;break}return e.next=3,r.load();case 3:return e.abrupt("return",r.module[r.moduleDefault]);case 4:case"end":return e.stop()}}),e)}))));var i=n.package||"gd-sdk-air-dynamic",a=n.package_version||"1.2.0",o=n.template||"pluto",s=n.dependencies||[];this.moduleName=n.module_name||"GDSplashDynamic",this.moduleDefault=n.module_instance||o.charAt(0).toUpperCase()+o.slice(1),this.moduleConfig={source:"https://pm.azerioncircle.com/@bygd/".concat(i,"/").concat(a,"/dist/").concat(o.toLowerCase(),"/iife/index.js"),dependencies:s},jb(this.moduleName,this.moduleConfig)})),QP=function(e,t){console.log(e,t)},JP={},XP={},eL=null;function tL(){for(var e,t=window,n=null,r=null;!e;){try{if("function"==typeof t.__tcfapi||"function"==typeof t.__cmp){"function"==typeof t.__tcfapi?(r=2,n=t.__tcfapi):(r=1,n=t.__cmp),e=t;break}}catch(e){}try{if(t.frames.__tcfapiLocator){r=2,e=t;break}}catch(e){}try{if(t.frames.__cmpLocator){r=1,e=t;break}}catch(e){}if(t===window.top)break;t=t.parent}return JP.version=r,JP.frame=e,JP.function=n,JP.version}function nL(e){var t=this;return eL||(eL=new Promise(function(r){function i(t,n){if(QP("Received a response from CMP",t),n){var i,a;if(!1!==t.gdprApplies)return"tcloaded"===t.eventStatus||"useractioncomplete"===t.eventStatus?(("boolean"!=typeof(a=(i=t)&&"boolean"==typeof i.gdprApplies?i.gdprApplies:e.defaultGdprScope)||!0===a&&"string"!=typeof i.tcString)&&r({result:"cmpUnexpectedResponse",cmp:JP,consentData:i}),void r({result:"ok",consentData:t})):void 0;r({result:"ok",consentData:t})}else r({result:"cmpCallFailed"})}n(this,t),tL(),JP.frame?2===JP.version?(QP("TCF v2 CMP found. Fetching the consent."),JP.function?(QP("CMP API is directly accessible, calling it now..."),JP.function("addEventListener",JP.version,i)):(QP("CMP API is outside the current iframe, calling it now..."),function(e,t,r){var i=this,a="__tcfapi";function o(e){var t="".concat(a,"Return"),n="string"==typeof e.data&&e.data.indexOf(t)>=0?JSON.parse(e.data):e.data;if(n[t]&&n[t].callId){var r=n[t];void 0!==XP[r.callId]&&XP[r.callId](r.returnValue,r.success)}}window[a]=function(e,r,o,s){n(this,i);var u=Math.random()+"",c=cc({},"".concat(a,"Call"),{command:e,parameter:s,callId:u,version:r});XP[u]=o,t.postMessage(c,"*")}.bind(this),window.addEventListener("message",o,!1),window[a](e,JP.version,r)}("addEventListener",JP.frame,i))):r({result:"cmpVersionNotV2",cmp:JP}):r({result:"cmpNotFound"})}.bind(this)),eL)}var rL=function(){function e(){O(this,e),this.productName="Game Distribution"}var n;return L(e,[{key:"checkIfExcluded",value:function(e){try{var t,n;return!(null===(t=e.diagnostic)||void 0===t||null===(n=t.gameDock)||void 0===n||!n.excluded)}catch(e){return console.log("Error on checkIfExclude check",e),!1}}},{key:"track",value:(n=t(d.mark((function e(t,n){var r,i,a,o,s,u,c;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.checkIfExcluded(n)){e.next=3;break}return e.abrupt("return");case 3:if(a=null==t||null===(r=t.visitor)||void 0===r||null===(i=r.visitorData)||void 0===i?void 0:i.visitorId){e.next=6;break}return e.abrupt("return");case 6:return o=encodeURIComponent(this.productName),s=encodeURIComponent(a),e.prev=8,u="https://tracker-v4.gamedock.io/v1/events-tracker/track/product/".concat(o,"/user_id/").concat(s),e.next=12,fetch(u,{method:"POST"});case 12:e.sent,e.next=28;break;case 15:return e.prev=15,e.t0=e.catch(8),console.log("GAME_DOCK. fail v4",e.t0),e.prev=18,c="https://tracker.gamedock.io/v1/events-tracker/track/product/".concat(o,"/user_id/").concat(s),e.next=22,fetch(c,{method:"POST"});case 22:e.sent,e.next=28;break;case 25:e.prev=25,e.t1=e.catch(18),console.log("GAME_DOCK. fail v6",e.t1);case 28:case"end":return e.stop()}}),e,this,[[8,15],[18,25]])}))),function(e,t){return n.apply(this,arguments)})}]),e}(),iL=new rL;function aL(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return oL(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oL(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function oL(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var sL,uL=function(e){var t=this,r=e.src,i=e.attributes,a=e.target,o=e.isAsync;return new Promise(function(e,s){var u=this;n(this,t);try{var c=document.createElement("script");if(c.async=null==o||o,c.type="text/javascript",c.onload=function(){n(this,u),e()}.bind(this),c.onerror=function(){n(this,u);var e="Error on script load, Error: ".concat(r);console.log(e),s(e)}.bind(this),c.src=r,i){var d,l=aL(i);try{for(l.s();!(d=l.n()).done;){var f=d.value,p=f.key,h=f.value;c.setAttribute(p,h)}}catch(e){l.e(e)}finally{l.f()}}a||(a=document.head),a.appendChild(c)}catch(e){var m="Error on script load catch, Error: ".concat(r);console.log(m,e),s(m)}}.bind(this))},cL="ffd4774b-99ae-4464-8f40-3afa12b4692e",dL=function(){var e=t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,uL({src:"https://cdn.cookielaw.org/consent/tcf.stub.js",attributes:[{key:"id",value:"gd-cookie-pro-tcf-stub"},{key:"charset",value:"UTF-8"}],isAsync:!1});case 3:return e.next=5,uL({src:"https://cdn.cookielaw.org/consent/".concat(cL,"/OtAutoBlock.js"),attributes:[{key:"id",value:"gd-cookie-pro-autoblock"}],isAsync:!1});case 5:return e.next=7,uL({src:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",attributes:[{key:"id",value:"gd-cookie-pro-stub"},{key:"charset",value:"UTF-8"},{key:"data-domain-script",value:cL}],isAsync:!1});case 7:n=void 0,r=void 0,i=void 0,n=(t={inlineScript:"function OptanonWrapper() { }"}).inlineScript,r=t.target,(i=document.createElement("script")).text=n,r||(r=document.head),r.appendChild(i),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),console.log("GD: CMP error on load",e.t0);case 13:case"end":return e.stop()}var t,n,r,i}),e,null,[[0,10]])})));return function(){return e.apply(this,arguments)}}(),lL=new hD.exports.EventEmitter,fL={"https://games.softgames.com":{"splash-hidden":"splash-hidden"},"https://sg.gamedistribution.com":{"splash-hidden":"splash-hidden"},"https://html5.gamedistribution.com":{key:"value"}},pL=!1,hL="CONTENT_PAUSE_REQUESTED",mL="CONTENT_RESUME_REQUESTED",vL="SDK_GAME_START",gL=function(e){if("gd-sdk-on-event"===(null==e?void 0:e.type)){var t,n,r,i;if(!("midroll"===(null==e||null===(t=e.event)||void 0===t?void 0:t.adPosition)))return;var a=(null===(n=e.event)||void 0===n?void 0:n.name)===mL||(null===(r=e.event)||void 0===r?void 0:r.name)===vL;if((null===(i=e.event)||void 0===i?void 0:i.name)===hL&&(pL=!0),a&&pL){pL=!1;window.parent.postMessage({type:"sg-game-event",eventName:"levelFinish",data:{score:100}},"*")}}};window.addEventListener("message",(function(e){var t=this,r=e.data,i=e.origin,a=r.type;if(Object.keys(fL).some(function(e){return n(this,t),e===i}.bind(this))&&(null==r||!r.__tcfapiCall)){var o=!r.type||!r.type.startsWith("gd-sdk")&&!("parent-data-response"===r.type)||"sg-game-event"===r.type;gL(r);var s=function(){n(this,t);try{var r,i;return null==e||null===(r=e.source)||void 0===r||null===(i=r.location)||void 0===i?void 0:i.href}catch(e){}}.bind(this);if(window.parent&&o){if("https://html5.gamedistribution.com"===i){var u=s();if(!u)return;var c=u&&["9555f04e1900482aaaef710cd2f8c440"].some(function(e){return n(this,t),u.indexOf(e)>0}.bind(this)),d=["sg-game-event"].some(function(e){return n(this,t),e===(null==r?void 0:r.type)}.bind(this));if(!c&&!d)return}var l=r.eventName,f=r.data;window.mpHelper&&("levelStart"!==l&&"levelFinish"!==l||window.mpHelper.sendStat("level",f.level),"levelFinish"===l&&window.mpHelper.sendStat("score",f.score)),window.parent.postMessage(r,"*")}if(a){var p=fL[i][a];p&&lL.emit(p,r)}}}),!1),function(){for(var e=new Dt,t=0,n=[hL,mL,vL];t<n.length;t++){var r=n[t];e.subscribe(r,(function(e){gL({type:"gd-sdk-on-event",event:e})}))}}();var AL=new Uint8Array(16);function bL(){if(!sL&&!(sL="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return sL(AL)}var yL=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var _L=[],wL=0;wL<256;++wL)_L.push((wL+256).toString(16).substr(1));function xL(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(_L[e[t+0]]+_L[e[t+1]]+_L[e[t+2]]+_L[e[t+3]]+"-"+_L[e[t+4]]+_L[e[t+5]]+"-"+_L[e[t+6]]+_L[e[t+7]]+"-"+_L[e[t+8]]+_L[e[t+9]]+"-"+_L[e[t+10]]+_L[e[t+11]]+_L[e[t+12]]+_L[e[t+13]]+_L[e[t+14]]+_L[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&yL.test(e)}(n))throw TypeError("Stringified UUID is invalid");return n}function kL(e,t,n){var r=(e=e||{}).random||(e.rng||bL)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return xL(r)}function EL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var SL="__msgr",DL=kL(),IL=function(e){try{var t=CL(e,e.event),n=PL(window);n&&n!==window.top&&n.postMessage(t,"https://html5.gamedistribution.com")}catch(e){console.error("Error sending event message:",e)}},RL=function(e,t){var n=document.createElement("iframe");return n.src=e,n.style.display="none",n.name=t,n},CL=function(e,t){var n;return{gameId:e.gameId||e.game.gameId,target:(null===(n=e.evnts)||void 0===n?void 0:n.domain)||e.game.evnts.domain,type:"gd-system",token:DL,event_name:t,timestamp:Date.now()}},OL=function(e){var t=this;setInterval(function(){n(this,t);var r=CL(e,"Heartbeat");LL(r)}.bind(this),1e3*e.evnts.heartbeatDuration)},TL=function(e){try{var t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?EL(Object(n),!0).forEach((function(t){cc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e.data);if(!t.event_name)return;t.token=DL,LL(t)}catch(e){console.error("GD Messager Error:",e.message)}},PL=function e(t){try{var n,r,i=null==t?void 0:t.parent;return"game"===(null==i||null===(n=i.document)||void 0===n||null===(r=n.activeElement)||void 0===r?void 0:r.id)?i:e(i)}catch(e){return t}},LL=function(e){try{window[SL]&&window[SL].postMessage(e,"*")}catch(e){console.log("GD Messager initialization, please wait....")}},ML=function(){function e(t){O(this,e),this.adContainer=document.getElementById("gdsdk__advertisement"),this.adContainerInner=document.getElementById("gdsdk__advertisement_slot"),this._adRequest=t.adRequest,this._gameData=t._gameData,this._msgrt=t._msgrt,this._adInstance=t._adInstance,this._eventBus=t._eventBus,this.blockedAdsMap=t._blockedAdsMap,this._parentURL=t._parentURL,this._parentDomain=t._parentDomain,this._onResumeGame=t._onResumeGame.bind(t),this._onPauseGame=t._onPauseGame.bind(t),this._onRewardedWatchComplete=t._onRewardedWatchComplete.bind(t),this._onAdError=t._onAdError.bind(t),this._promoShowSuccess=!1}var r,i,a;return L(e,[{key:"run",value:function(e){var r=e.duration,i=this;return new Promise(function(){var e=t(d.mark((function e(t,a){var o,s=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,i.add();case 3:o=i.show(),setTimeout(function(){n(this,s);try{i.hide(),t({success:o})}catch(e){a(e)}}.bind(this),1e3*r),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),a(e.t0);case 10:case"end":return e.stop()}}),e,this,[[0,7]])})));return function(t,n){return e.apply(this,arguments)}}())}},{key:"show",value:function(){return this.promo_data.game?(this.adContainer.style.visibility="visible",this.promo.style.display="block",this._onPauseGame("Pause the game for the promo","success"),this._promoShowSuccess=!0):this._onAdError("Promo not found"),this._promoShowSuccess}},{key:"hide",value:function(){var e;(this.promo.remove(),this.adContainer.style.visibility="hidden",this._promoShowSuccess)&&("reward"===(null===(e=this._adRequest.params)||void 0===e?void 0:e.position)&&this._onRewardedWatchComplete());this._onResumeGame("Advertisement(s) are done. Start / resume the game.","success")}},{key:"add",value:(a=t(d.mark((function e(){var n,r,i,a=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.fetch_promo();case 3:this.promo_data=e.sent,n=document.createElement("div"),this.promo=n,r=this.promo_data,this.promo.addEventListener("click",function(){var e=t(d.mark((function e(t){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.preventDefault(),console.log(r),a.track_click(r.click_tracking),window.open(r.click_through,"_blank");case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),(i=document.createElement("iframe")).src=this.promo_data.renderer_url,i.setAttribute("frameborder",0),this.addStyles(),this.promo.classList.add("gd__promo"),i.classList.add("gd__promo__iframe"),this.promo.appendChild(i),this.adContainer.appendChild(this.promo),e.next=21;break;case 18:e.prev=18,e.t0=e.catch(0),console.log(e.t0);case 21:case"end":return e.stop()}}),e,this,[[0,18]])}))),function(){return a.apply(this,arguments)})},{key:"addStyles",value:function(){var e="\n .gd__promo{\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: transparent;\n z-index: 1;\n cursor: pointer;\n }\n .gd__promo__iframe{\n position: relative;\n z-index: -1;\n width:".concat(this.adContainerInner.style.width,";\n height:").concat(this.adContainerInner.style.height,";\n }\n "),t=document.body||document.getElementsByTagName("body")[0];this.addStylesheet("gd__promo__style",t,e)}},{key:"addStylesheet",value:function(e,t,n){if(!document.getElementById(e)){var r=document.createElement("style");r.id=e,r.styleSheet?r.styleSheet.cssText=n:r.appendChild(document.createTextNode(n)),t.appendChild(r)}}},{key:"fetch_promo",value:(i=t(d.mark((function e(){var t,r=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("https://tag.atom.gamedistribution.com/v1/rainbow/pick?id=".concat(this._parentDomain,"&aid=").concat(this._gameData.gameId)).then(function(e){return n(this,r),e.json()}.bind(this));case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"track_click",value:(r=t(d.mark((function e(t){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(t);case 2:case"end":return e.stop()}}),e)}))),function(e){return r.apply(this,arguments)})}]),e}();function BL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?BL(Object(n),!0).forEach((function(t){cc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var UL,FL,NL=function(){var e=t(d.mark((function e(){var t;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return"https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.3.1/socket.io.js",t=["https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.3.1/socket.io.js"],e.next=4,ft(t[0],"soecket.io.js",{alternates:t});case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),$L=[],GL=0,HL=!1,zL=function(){var e=t(d.mark((function e(r){var i,a,o,s,u,c,l,f,p=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=r.args,a=r.onError,e.prev=1,!window.isForwarderFrame){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,nR();case 7:if(!(o=e.sent)){e.next=18;break}return e.next=11,o.isLoader();case 11:if(!(s=e.sent)&&(s||o.hasRouter())){e.next=16;break}o.register({method:"sendSocketEvent",handler:function(e){n(this,p),KL(e.topic,e.args)}.bind(this)}),e.next=18;break;case 16:return o.registerProxy({alias:"sendSocketEvent",method:"sendSocketEvent"}),e.abrupt("return");case 18:if(u=new C(window.location.href),c=!["html5.gamedistribution.com","revision.gamedistribution.com"].some(function(e){return n(this,p),e.toLowerCase()===u.host.toLowerCase()}.bind(this)),!(c&&o&&o.hasRouter())){e.next=24;break}return e.abrupt("return");case 24:return c&&o&&o.hasRouter(),e.next=27,NL();case 27:UL=kL(),l={json:JSON.stringify(i)},f=["wss://ws.gamedistribution.com"],i.isHwp&&f.push("wss://ws-acc-hwp.gamedistribution.com"),$L=f.map(function(e){var r=this;n(this,p);var a=io(e,{query:l,upgrade:!1,transports:["websocket"],reconnectionDelay:6e4,autoConnect:!1});return a.on("connect",function(){n(this,r)}.bind(this)),a.on("after-connect",function(){var e=t(d.mark((function e(t){var n,r,o,s,u,c,l;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return FL=FL||(null==t?void 0:t.serverDate),n=i.gameId,r=i.failed,e.next=4,$D({gameId:n,serverDate:FL});case 4:o=e.sent,s=o.visit,u=o.mode,c=o.errors,i.visit=jL(jL({},s),{},{stm:u,errors:c}),r&&(i.gameId=n?"failed:wrong":"failed:empty"),l={json:JSON.stringify(i)},a.emit("client-info",{clientId:UL,counter:GL++,serverDate:FL,query:l}),HL=!0;case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),a.on("disconnect",function(){n(this,r)}.bind(this)),a.connect(),a}.bind(this)),e.next=37;break;case 34:e.prev=34,e.t0=e.catch(1),a&&a(e.t0);case 37:case"end":return e.stop()}}),e,this,[[1,34]])})));return function(t){return e.apply(this,arguments)}}(),ZL=!1,VL=[];function KL(e,t){return qL.apply(this,arguments)}function qL(){return qL=t(d.mark((function e(t,r){var i,a,o,s=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,nR();case 2:if(!(i=e.sent)){e.next=11;break}return e.next=6,i.isLoader();case 6:if(e.sent||!i.hasRouter()){e.next=11;break}return e.next=10,i.sendSocketEvent({topic:t,args:r});case 10:return e.abrupt("return");case 11:if("play"!==t){e.next=15;break}if(!ZL){e.next=14;break}return e.abrupt("return");case 14:ZL=!0;case 15:a=function(e,t){var r=this;n(this,s);try{var i={json:JSON.stringify(t||{})};$L.forEach(function(t){n(this,r),t.emit("socket-event",{topic:e,clientId:UL,counter:GL,serverDate:FL,query:i})}.bind(this))}catch(e){sc("game-session: Error on sending socket-event",e.message)}}.bind(this),o=function(){n(this,s),a(t,r)}.bind(this),VL.push(o);case 19:case"end":return e.stop()}}),e,this)}))),qL.apply(this,arguments)}function WL(e){var t=this,r={preroll:["preroll","start"],midroll:["next"],rewarded:["reward"]},i=Object.keys(r).find(function(i){var a=this;return n(this,t),r[i].some(function(t){return n(this,a),t===e.params.position}.bind(this))}.bind(this));return i||"midroll"}function YL(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return QL(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return QL(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function QL(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function JL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}setInterval((function(){if(0!==VL.length&&$L.length>0&&HL){for(var e=function(){var e=this,i=r[t];i(),VL=VL.filter(function(t){return n(this,e),t!==i}.bind(this))},t=0,r=fR(VL);t<r.length;t++)e();ac("game-session: commands length",VL.length)}}),100);var XL=3,eM=1,tM=5,nM={lastImpressionDate:null,lastInterstitialImpressionDate:null,firstInterstitialImpressionDate:null,imps:0};var rM=new function(){var e={};return{count:function(t){e[t]=e[t]||0,e[t]++},get:function(t){return e[t]=e[t]||0,e[t]},getAll:function(){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?JL(Object(n),!0).forEach((function(t){cc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e)}}};function iM(){return aM.apply(this,arguments)}function aM(){return(aM=t(d.mark((function e(){var t,r,i,a,o,s,u,c,l,f,p;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={},e.next=3,oI();case 3:if(i=e.sent,a=i.compensation||{enabled:!1},o=null==i||null===(t=i.adTimer)||void 0===t?void 0:t.enabled,r.ruleEnabled=(null==a?void 0:a.enabled)&&o,!(void 0===(null==a?void 0:a.exctg)||(null==a?void 0:a.exctg))){e.next=29;break}s=["co-op","multiplayer","IAPs"],u=(null==i?void 0:i.tags)||[],c=!1,l=YL(u),e.prev=13,p=d.mark((function e(){var t,r=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=f.value,s.some(function(e){return n(this,r),e===t.title}.bind(this))&&(c=!0);case 2:case"end":return e.stop()}}),e,this)})),l.s();case 16:if((f=l.n()).done){e.next=20;break}return e.delegateYield(p(),"t0",18);case 18:e.next=16;break;case 20:e.next=25;break;case 22:e.prev=22,e.t1=e.catch(13),l.e(e.t1);case 25:return e.prev=25,l.f(),e.finish(25);case 28:r.disabledByTag=c;case 29:return r.isLowScoreGame=oM(i),r.enabled=r.ruleEnabled&&!r.disabledByTag&&r.isLowScoreGame,i.hasActiveCompensations=r.enabled,e.abrupt("return",r);case 33:case"end":return e.stop()}}),e,null,[[13,22,25,28]])})))).apply(this,arguments)}function oM(e){var t=!1,n=e.compensation||{enabled:!1},r=null==e?void 0:e.adsc;if(1===(null==r?void 0:r.s)&&null!=r&&r.t){var i=null==r?void 0:r.t,a=(null==n?void 0:n.esc)||eM,o=(null==n?void 0:n.ascl)||tM,s=i||{},u=s.adsc,c=s.reqsc,d=s.pdur,l=s.rspdur;s.aspdur,t=(l||c/(d/XL))<=a&&u<o}return t}var sM=!1;function uM(){return cM.apply(this,arguments)}function cM(){return(cM=t(d.mark((function e(){var t;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!sM){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,iM();case 4:(t=e.sent).enabled,t.override,t.giftEnabled,t.midrollPlusEnabled,sM=!0;case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function dM(e){var t=e.rateType,n=e.gameData,r=!1;if(n.hasActiveCompensations){var i=n.compensation,a="gift"===t?null==i?void 0:i.gftr:null==i?void 0:i.mpr;a=void 0===a?1:a,r=Math.random()<=a}else r=!0;return r}function lM(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return fM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fM(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function fM(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var pM=!1,hM=3,mM=5,vM=1,gM=60,AM=10;function bM(){return yM.apply(this,arguments)}function yM(){return(yM=t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return nM.imps++,nM.lastImpressionDate=new Date,nM.lastInterstitialImpressionDate=new Date,nM.firstInterstitialImpressionDate||(nM.firstInterstitialImpressionDate=nM.lastInterstitialImpressionDate),e.abrupt("return",!0);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function _M(e){return wM.apply(this,arguments)}function wM(){return wM=t(d.mark((function e(r){var i,a,o,s,u,c,l,f,p,h,m,v,g,A,b,y,_,w,x,k,E,S,D,I,R,C,O,T,P,L,M,B,j,U,F,N,$,G,H,z,Z,V,K,q,W,Y,Q,J,X,ee,te,ne,re,ie,ae,oe,se,ue,ce,de,le,fe,pe,he,me,ve,ge=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(E=r.gameData,S=r.executeCompensation,D=function(){var e=t(d.mark((function e(t){var n,r,i;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,n=(null==t?void 0:t.whenAvailable)||!1,!S){e.next=8;break}return e.next=5,S({whenAvailable:n});case 5:e.t0=e.sent,e.next=11;break;case 8:return e.next=10,bM();case 10:e.t0=e.sent;case 11:return r=e.t0,i=r.args,e.abrupt("return",null==i?void 0:i.success);case 16:return e.prev=16,e.t1=e.catch(0),e.next=20,bM();case 20:case"end":return e.stop()}}),e,null,[[0,16]])})));return function(t){return e.apply(this,arguments)}}(),I=!pM,!pM){e.next=5;break}return e.abrupt("return");case 5:if(pM=!0,R=E.adsc){e.next=10;break}return e.abrupt("return");case 10:if(C=R.s,O=R.t,1===C){e.next=13;break}return e.abrupt("return");case 13:if(T=E.compensation||{enabled:!1},P=null==T?void 0:T.enabled,L=null==E||null===(i=E.adTimer)||void 0===i?void 0:i.enabled,M=null==E||null===(a=E.adTimer)||void 0===a?void 0:a.tl,(B=(null==E||null===(o=E.pAds)||void 0===o||null===(s=o.vmap)||void 0===s?void 0:s.enabled)&&(null==E||null===(u=E.pAds)||void 0===u||null===(c=u.vmap)||void 0===c||null===(l=c.adtr)||void 0===l?void 0:l.disabled)||!1)&&ac("[compensation] disabled by preroll vmap",{pAds:null==E?void 0:E.pAds}),P&&L&&!B){e.next=23;break}return e.abrupt("return");case 23:if(!((j=null!=E&&null!==(f=E.pAds)&&void 0!==f&&null!==(p=f.vmap)&&void 0!==p&&p.enabled&&null!=E&&null!==(h=E.pAds)&&void 0!==h&&null!==(m=h.vmap)&&void 0!==m&&null!==(v=m.adtr)&&void 0!==v&&v.delay?null==E||null===(g=E.pAds)||void 0===g||null===(A=g.vmap)||void 0===A||null===(b=A.adtr)||void 0===b?void 0:b.delay:0)>0)){e.next=30;break}return e.next=29,new Promise(function(e){var t=this;n(this,ge),setTimeout(function(){n(this,t),e()}.bind(this),1e3*j)}.bind(this));case 29:case 30:if(!(void 0===(null==T?void 0:T.exctg)||(null==T?void 0:T.exctg))){e.next=54;break}U=["co-op","multiplayer","IAPs"],F=(null==E?void 0:E.tags)||[],N=!1,$=lM(F),e.prev=36,H=d.mark((function e(){var t,r=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=G.value,U.some(function(e){return n(this,r),e===t.title}.bind(this))&&(N=!0);case 2:case"end":return e.stop()}}),e,this)})),$.s();case 39:if((G=$.n()).done){e.next=43;break}return e.delegateYield(H(),"t0",41);case 41:e.next=39;break;case 43:e.next=48;break;case 45:e.prev=45,e.t1=e.catch(36),$.e(e.t1);case 48:return e.prev=48,$.f(),e.finish(48);case 51:if(!N){e.next=54;break}return e.abrupt("return");case 54:if(z=(null==E||null===(y=E.adTimer)||void 0===y?void 0:y.resetOnRewarded)||!1,Z=(null==E||null===(_=E.adTimer)||void 0===_?void 0:_.delayAfterRewarded)||0,V=(null==T?void 0:T.esc)||vM,K=void 0===(null==T?void 0:T.depgft)||(null==T?void 0:T.depgft),q=null!=T&&T.depgftr?null==T?void 0:T.depgftr:1,W=(null==T?void 0:T.onst)||!1,Y=(null==T?void 0:T.sl)||3,Q=M||(null==T?void 0:T.tl)||180,J=(null==E||null===(w=E.gft)||void 0===w?void 0:w.midroll.enabled)||!1,X=(null==E||null===(x=E.midroll_plus)||void 0===x?void 0:x.enabled)||!1,(!J||!X)&&(Q/=q),ee=void 0===(null==T?void 0:T.tc)||(null==T?void 0:T.tc),te=(null==T?void 0:T.ascl)||mM,!K){e.next=76;break}if(ie=(null==E||null===(ne=E.gft)||void 0===ne?void 0:ne.midroll.enabled)||!1,ae=(null==E||null===(re=E.midroll_plus)||void 0===re?void 0:re.enabled)||!1,ie&&ae){e.next=76;break}return e.abrupt("return");case 76:if(se=(oe=O||{}).adsc,ue=oe.reqsc,ce=oe.pdur,de=oe.rspdur,oe.aspdur,(de||ue/(ce/hM))<=V&&se<te){e.next=83;break}return e.abrupt("return");case 83:if(le=Math.ceil(ce/hM),!W||!I){e.next=90;break}return e.next=90,D({whenAvailable:!0});case 90:return fe=0,pe=1,he=function(){n(this,ge),fe=0,pe=1}.bind(this),null===(k=E.sdkfw)||void 0===k||k.enabled,e.next=96,nR();case 96:if(me=e.sent,e.t2=me,!e.t2){e.next=102;break}return e.next=101,me.isLoader();case 101:e.t2=e.sent;case 102:e.t2,ve=setInterval(t(d.mark((function e(){var t,r,i,a,o,s,u=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(ee&&nM.imps>=le)){e.next=4;break}return clearInterval(ve),e.abrupt("return");case 4:if(t=new Date,r=z?nM.lastImpressionDate:nM.lastInterstitialImpressionDate,i=r?xM(r,t):Q+1,!((a=Q-i)>0)){e.next=21;break}if(!(a<=gM-AM)){e.next=18;break}return e.next=16,new Promise(function(e){var t=this;n(this,u),setTimeout(function(){n(this,t),e()}.bind(this),1e3*a)}.bind(this));case 16:e.next=21;break;case 18:return he(),e.abrupt("return");case 21:if(++fe%pe==0){e.next=25;break}return e.abrupt("return");case 25:if(z){e.next=35;break}if(o=nM.lastImpressionDate?xM(nM.lastImpressionDate,new Date):Q+1,!((s=Z-o)>0)){e.next=32;break}return e.next=32,new Promise(function(e){var t=this;n(this,u),setTimeout(function(){n(this,t),e()}.bind(this),1e3*s)}.bind(this));case 32:e.next=36;break;case 35:case 36:return e.next=38,D({});case 38:e.sent?he():(fe=0,pe=pe+1>Y?Y:pe+1);case 40:case"end":return e.stop()}}),e,this)}))),1e3*gM);case 105:case"end":return e.stop()}}),e,this,[[36,45,48,51]])}))),wM.apply(this,arguments)}function xM(e,t){var n=e.getTime();return(t.getTime()-n)/1e3}function kM(e){return EM.apply(this,arguments)}function EM(){return EM=t(d.mark((function e(t){var n,r,i,a,o,s,u,c,l,f,p;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.gameId,i=t.adTypeFound,a=t.ad_skip_rule,o=rM.get(i),(s=null==a?void 0:a[i])&&s.enabled){e.next=7;break}return e.abrupt("return",!1);case 7:if((u=(null==s?void 0:s.skip_sessions)||0)&&0!==u){e.next=11;break}return e.abrupt("return",!1);case 11:if((c=(null==s?void 0:s.skips)||0)&&0!==c){e.next=15;break}return e.abrupt("return",!1);case 15:return e.next=17,FD({gameId:r});case 17:if((l=e.sent)&&!((null===(n=l.errors)||void 0===n?void 0:n.length)>0)){e.next=21;break}return e.abrupt("return",!1);case 21:return l.fv,l.lv,f=l.vc,p=f<=u&&("preroll"===i||o<=c),e.abrupt("return",p);case 25:case"end":return e.stop()}}),e)}))),EM.apply(this,arguments)}function SM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function DM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?SM(Object(n),!0).forEach((function(t){cc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function IM(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return RM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return RM(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function RM(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var CM,OM=function(){function e(t){var r=this;O(this,e),this._gameData=t._gameData,this._msgrt=t.msgrt,this._adInstance=t.adInstance,this._eventBus=t.eventBus,this.blockedAdsMap=t.blockedAdsMap,this._parentURL=t._parentURL,this._parentDomain=t._parentDomain,this._onResumeGame=t.onResumeGame.bind(t),this._onPauseGame=t.onPauseGame.bind(t),this._onRewardedWatchComplete=t.onRewardedWatchComplete.bind(t),this._onAdError=t.onAdError.bind(t),this._setAdRequestTimer=t._setAdRequestTimer.bind(t),this._giveGift=t._giveGift.bind(t),this._executeMidrollPlus=t._executeMidrollPlus.bind(t),this.executeCompensation=t.executeCompensation.bind(t),this._runAutoResume=t._runAutoResume.bind(t),this.send_atom_event=t.send_atom_event.bind(t),this.get_session_id=t.get_session_id.bind(t),this.get_ad_system_init_result=t.get_ad_system_init_result.bind(t),this.eventBus=new Dt,this.isOpusReady=function(){return n(this,r),t.isOpusReady}.bind(this),this._adCounterLabel=t.adInstance.adCounterLabel,this._adInfoLabel=t.adInstance.adInfoLabel,this._muteRequested=!1,this._terminateRequested=!1,this._adSession=null,this._registerForEvents(),document.addEventListener("visibilitychange",function(){n(this,r),"visible"===document.visibilityState?this._sendTabChange("tab-visible"):this._sendTabChange("tab-invisible")}.bind(this))}var r,i,a;return L(e,[{key:"_registerForEvents",value:function(){var e=this;this.eventBus.subscribe("HL_CONFIG_ERROR",function(t){n(this,e),this.hasHLConfigError=!0}.bind(this))}},{key:"getTimeDiff",value:function(e,t){var n=e.getTime();return(t.getTime()-n)/1e3}},{key:"skipMidrollOnLongVMAP",value:(a=t(d.mark((function e(t){var n,r,i,a,o,s,u,c,l,f,p,h,m,v,g,A,b,y,_,w;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("midroll"===t){e.next=2;break}return e.abrupt("return",!1);case 2:if((null===(n=this._gameData)||void 0===n||null===(r=n.pAds)||void 0===r?void 0:r.vmap.enabled)&&(null===(i=this._gameData)||void 0===i||null===(a=i.pAds)||void 0===a||null===(o=a.vmap)||void 0===o?void 0:o.adtr)){e.next=5;break}return e.abrupt("return",!1);case 5:if(null!==(s=this._gameData)&&void 0!==s&&null!==(u=s.visit)&&void 0!==u&&u.vc&&0!==(null===(c=this._gameData)||void 0===c||null===(l=c.visit)||void 0===l?void 0:l.vc)){e.next=7;break}return e.abrupt("return",!1);case 7:if(y=(null===(f=this._gameData)||void 0===f||null===(p=f.pAds)||void 0===p||null===(h=p.vmap)||void 0===h||null===(m=h.adtr)||void 0===m?void 0:m.skipDuration)||(null===(v=this._gameData)||void 0===v||null===(g=v.pAds)||void 0===g||null===(A=g.vmap)||void 0===A||null===(b=A.adtr)||void 0===b?void 0:b.delay)||360,nM.firstInterstitialImpressionDate){e.next=10;break}return e.abrupt("return",!1);case 10:return _=this.getTimeDiff(nM.firstInterstitialImpressionDate,new Date),(w=_<y)&&oc("gd-adflow skipped by long vmap",{elapsed:_}),e.abrupt("return",w);case 15:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"runAdFlow",value:(i=t(d.mark((function e(t){var r,i,a,o,s,u,c,l,f,p,h,m,v,g,A,b,y,_,w,x,k,E,S,D,I,R,C,O,T,P,L,M,B,j,U,F,N,$,G,H,z,Z,V,K,q,W,Y,Q,J,X,ee,te,ne,re,ie,ae,oe,se,ue,ce,de,le,fe,pe,he,me,ve,ge,Ae=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._adInstance.adCounter,null===(r=t.params)||void 0===r||!r.isCompensation||!this._gameData.compensation.clbl){e.next=7;break}return this._adCounterLabel.show(),p=function(e){var t=this;return n(this,Ae),new Promise(function(r){return n(this,t),setTimeout(r,e)}.bind(this))}.bind(this),e.next=7,p(1e3*this._gameData.compensation.ctl);case 7:return e.next=9,nR();case 9:return!(h=e.sent)||h.isLoader(),this.adRequest=t,m=WL(t),t.params.adTypeFound=m,ac("gd-adflow, adTypeFound",m,t.params.position),rM.count(m),ac("gd-adflow, counters",{counters:rM.getAll()}),v=this._gameData,g=v.gameId,A=v.ad_skip,e.next=21,kM({gameId:g,ad_skip_rule:A,adTypeFound:m});case 21:if(!e.sent){e.next=28;break}return this._adInstance.adCounter[m]=this._adInstance.adCounter[m]||0,this._adInstance.adCounter[m]++,this._onResumeGame("Advertisement(s) are done. Start / resume the game.","success"),_M({gameData:this._gameData,executeCompensation:this.executeCompensation}),e.abrupt("return");case 28:return e.next=30,this.skipMidrollOnLongVMAP(m);case 30:if(!e.sent){e.next=34;break}return this._onResumeGame("Advertisement(s) are done. Start / resume the game.","success"),e.abrupt("return");case 34:(b=this._getAdFlow(m)).find(function(e){return n(this,Ae),"opus"===e}.bind(this))&&!this.isOpusReady()&&(b=b.filter(function(e){return n(this,Ae),"opus"!==e}.bind(this)),this._msgrt.send("opus.sdk",{message:"Not ready"})),y=this._gameData,_=y.afg_disabled,w=null===(i=t.params)||void 0===i?void 0:i.isGift,x=null===(a=t.params)||void 0===a?void 0:a.isMidrollPlus,k=null===(o=t.params)||void 0===o?void 0:o.isCompensation,null===(s=t.params)||void 0===s||s.position,E=null===(u=y.promo)||void 0===u?void 0:u.rainbow,S=(null==E?void 0:E.enabled)&&(null===(c=E.position)||void 0===c?void 0:c[m]),D=null==E?void 0:E.gift,I=S&&null!=E&&E.duration?null==E?void 0:E.duration:5,R=_?b.filter(function(e){return n(this,Ae),"adsense"!==e}.bind(this)):b,C=this.get_ad_system_init_result(),O=C.afg,T=C.ima,P=null==y||null===(l=y.ad_blcks)||void 0===l||null===(f=l.removeOtherAdaptors)||void 0===f?void 0:f.enabled,this.anyAdBlocking=!O||!T,this.bothAdBlocking=!O&&!T,this.adsBlocked=P&&this.anyAdBlocking||this.bothAdBlocking,this.adsBlocked?(oc("gd-adflow adsBlocked so changing the flow"),R=[]):(O||(R=R.filter(function(e){return n(this,Ae),"adsense"!==e}.bind(this))),T||(R=R.filter(function(e){return n(this,Ae),"ima"!==e}.bind(this)))),L=!1,M=!1,B=[],j=0,U=!1,N=!1,$={reqs:0,imps:0},G={},H=!1,z=!1,Z=IM(R),e.prev=68,Z.s();case 70:if((V=Z.n()).done){e.next=124;break}if(K=V.value,!this._terminateRequested){e.next=74;break}return e.abrupt("break",124);case 74:if(t.params.adapter=K,q=j===R.length-1,W=w&&D||!w,Y=q&&S&&W,t.params=DM(DM({},t.params),{},{adapterIndex:j,isLastAdapter:q,shouldFail:!1,extraPromoRunOnFail:Y,muteRequested:this._muteRequested}),!this._muteRequested||"adsense"!==K){e.next=81;break}return e.abrupt("continue",122);case 81:return function(){n(this,Ae),uc.firstSuccessOrder&&!isNaN(uc.firstSuccessOrder)&&(t.params.shouldFail=j<uc.firstSuccessOrder)}.bind(this),oc("gd-adflow, before adInvoke",j,K,t.params.shouldFail),e.next=85,this.adInvoke(t);case 85:if(Q=e.sent,J=Q.success,X=Q.args,ee=Q.isSkipped,te=Q.noVast,ne=Q.t4r,re=Q.adContext,ie=Q.isCanceled,(ae=(null==re?void 0:re.isVMAP)||!1)&&$.reqs++,ae&&(J||ie)&&$.imps++,oe=null==X?void 0:X.reason,se=null==X?void 0:X.message,ue=null==X?void 0:X.errorType,G[K]=G[K]||{req:0,imp:0,fail:0},G[K].req++,J?G[K].imp++:(G[K].fail++,G[K].failReason=oe,G[K].failMessage=se,G[K].failType=ue),!J){e.next=111;break}return oc("gd-adflow, adapter-result-success",j,K,X),L=!0,N=ae,M=!(null==X||!X.isPromoSuccess),F=ne,e.abrupt("break",124);case 111:if(oc("gd-adflow, adapter-result-failure",j,K,X.message),"opus"===K&&"[FC] No ad available"===(null==X?void 0:X.message)&&(t.params.opusSuccess=!0,H=!0),ie&&!z&&(z=!0),j++,B.push(X.message),!ee){e.next=118;break}return e.abrupt("break",124);case 118:if(!te){e.next=121;break}return this._runAutoResume(),e.abrupt("break",124);case 121:U=Y;case 122:e.next=70;break;case 124:e.next=129;break;case 126:e.prev=126,e.t0=e.catch(68),Z.e(e.t0);case 129:return e.prev=129,Z.f(),e.finish(129);case 132:if(this._adInfoLabel.hide(),!U){e.next=139;break}return e.next=136,new ML(this).run({duration:I});case 136:e.sent.success&&(M=!0);case 139:return function(){var e;n(this,Ae),uc.disableGift&&null!==(e=y.gft)&&void 0!==e&&e[m].enabled&&(y.gft[m].enabled=!1)}.bind(this),ce=B.join(" /n"),L||H?(nM.imps++,nM.lastImpressionDate=new Date,"rewarded"!==m&&(nM.lastInterstitialImpressionDate=new Date,nM.firstInterstitialImpressionDate||(nM.firstInterstitialImpressionDate=nM.lastInterstitialImpressionDate)),this._setAdRequestTimer(),this._onResumeGame("Advertisement(s) are done. Start / resume the game.","success"),this._giveGift(m),"midroll"===m&&this._executeMidrollPlus()):(this._onResumeGame(ce,"warning"),this._giveGift(m),"midroll"===m&&this._executeMidrollPlus()),_M({gameData:y,executeCompensation:this.executeCompensation}),de="-1",le="none",L?(de="index_".concat(j),le=R[j]):M?(de="promo",le="promo"):H&&(de="opus",le="opus"),fe=this.get_session_id(),this.anyAdBlocking&&"-1"===de?(pe="rewarded"===m?"rewarded":this.blockedAdsMap.preroll?"midroll":"preroll",this.blockedAdsMap[pe]=this.blockedAdsMap[pe]?this.blockedAdsMap[pe]+1:1,ac("gd-adflow, blocked-ad",JSON.stringify(this.blockedAdsMap)),this._msgrt.send("adflow.blocked.pos",{message:"".concat(pe)}),this.send_atom_event("gd.adflow",{adBlocker:!0,afgBlocked:!O,imaBlocked:!T,isGift:w,isMidrollPlus:x,adType:pe,sessionId:fe,successAdapter:"none",adFlowIndex:de,adapterResults:G,ctry:y.ctry})):(cc(he={},"adflow.all.index",{message:"".concat(de)}),cc(he,"adflow.all.success_adapter",{message:"".concat(le)}),cc(he,"adflow.".concat(m,".index"),{message:"".concat(de)}),cc(he,"adflow.".concat(m,".success_adapter"),{message:"".concat(le)}),me=he,Object.keys(me).forEach(function(e){n(this,Ae);var t=me[e];this._msgrt.send(e,t)}.bind(this)),this.send_atom_event("gd.adflow",{adFlowIndex:de,successAdapter:le,adBlocker:!1,afgBlocked:!O,imaBlocked:!T,isGift:w,isMidrollPlus:x,isCompensation:k,adType:m,sessionId:fe,t4r:F,adapterResults:G,ctry:y.ctry})),ve={adType:m,imp:"-1"!==de&&"promo"!==de||H,promo:"promo"===de,opus:H,blocked:this.anyAdBlocking&&"-1"===de,hasHLConfigError:this.hasHLConfigError,isGift:w,isMidrollPlus:x,isCompensation:k,isVMAP:!H&&N,isAppliedVMAP:!H&&N&&(null==y?void 0:y.vmapByTagsApplied),VMAPs:$},this._adSession=ve,KL("ad-session",{adSession:ve}),H&&z&&KL("ad-session",{adSession:DM(DM({},ve),{},{opus:!1,cancel:!0,isVMAP:N,isAppliedVMAP:N&&(null==y?void 0:y.vmapByTagsApplied)})}),ge={adType:m},this.eventBus.broadcast("AD_FLOW_COMPLETE",ge),e.abrupt("return",DM(DM({},ge),{},{args:{success:L,isGift:w,isMidrollPlus:x}}));case 159:case"end":return e.stop()}}),e,this,[[68,126,129,132]])}))),function(e){return i.apply(this,arguments)})},{key:"adInvoke",value:(r=t(d.mark((function e(r){var i=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=t(d.mark((function e(t,a){var o,s,u,c,l=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o="main.showad.".concat(r.params.adapter,".").concat(r.params.adapterIndex),ac("adInvoke.start",{scopeName:o,adRequest:JSON.stringify(r)}),s={},u=function(e){n(this,l);var a=i._adInstance.adContext;ac("adInvoke.failure",{args:e,adRequest:JSON.stringify(r),adContext:a}),i._eventBus.unsubscribeScope(o);var s="dismissed"===(null==e?void 0:e.message),u="AD_SDK_CANCELED"===(null==e?void 0:e.name);t({success:!1,args:e,isSkipped:s,isCanceled:u,noVast:e.noVast,adContext:a})}.bind(this),c=function(e){n(this,l);var a=i._adInstance.adContext;ac("adInvoke.success",{args:e,adRequest:JSON.stringify(r),adContext:a}),i._eventBus.unsubscribeScope(o),t({success:!0,args:e,t4r:s,adContext:a})}.bind(this),i._eventBus.subscribe("AD_ERROR",u,o),i._eventBus.subscribe("AD_SDK_CANCELED",u,o),i._eventBus.subscribe("AD_SUCCESS",c,o),i._eventBus.subscribe("AD_T4R",function(){n(this,l),s.loaded=!0}.bind(this),o),i._eventBus.subscribe("AD_T4R_CLICK",function(){n(this,l),s.t4rClick=!0}.bind(this),o),i._eventBus.subscribe("AD_T4R_VIDEO",function(){n(this,l),s.t4rVideo=!0}.bind(this),o),i._eventBus.subscribe("AD_CLICK",function(){n(this,l),s.click=!0}.bind(this),o),i._eventBus.subscribe("AD_BIDDER",function(e){n(this,l),s.bidder=null==e?void 0:e.bidder}.bind(this),o),i._eventBus.subscribe("AD_T4R_NONE",function(e){n(this,l),s.fail_reason=null==e?void 0:e.reason}.bind(this),o),e.prev=14,e.next=17,i._adInstance.startAd(r);case 17:e.next=23;break;case 19:e.prev=19,e.t0=e.catch(14),sc("gd-adflow startAd error",e.t0),t({success:!1,err:e.t0});case 23:case"end":return e.stop()}}),e,this,[[14,19]])})));return function(t,n){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)}))),function(e){return r.apply(this,arguments)})},{key:"_getAdFlow",value:function(e){var t,r,i,a,o,s,u,c,d=this,l=void function(){if(n(this,d),uc.customAdFlow)return JSON.parse(uc.customAdFlow)}.bind(this),f=this._gameData.adflw;l&&(f=l);var p=null!==(t=f)&&void 0!==t&&null!==(r=t.adapters)&&void 0!==r&&r.default?null===(i=f)||void 0===i||null===(a=i.adapters)||void 0===a?void 0:a.default:["ima","adsense"];return p=null!==(o=f)&&void 0!==o&&null!==(s=o.adapters)&&void 0!==s&&s[e]?null===(u=f)||void 0===u||null===(c=u.adapters)||void 0===c?void 0:c[e]:p}},{key:"_sendTabChange",value:function(e){var t=this;if("tab-invisible"===e&&this._adSession){var r=this._adSession;r.tabState=e,this.eventBus.subscribe("STARTED",function(){n(this,t),"hidden"===document.visibilityState&&(r.tabState=r.tabState+"-STARTED",KL("ad-session-tab",{adSession:r}))}.bind(this)),this.eventBus.subscribe("IMPRESSION",function(){n(this,t),"hidden"===document.visibilityState&&(r.tabState=r.tabState+"-IMPRESSION",KL("ad-session-tab",{adSession:r}))}.bind(this))}}},{key:"mute",value:function(){var e=this;this._muteRequested=!0,this._adInstance.mute().catch(function(t){n(this,e)}.bind(this))}},{key:"terminate",value:function(){var e=this;this._terminateRequested=!0,this._adInstance.terminate().catch(function(t){n(this,e)}.bind(this)),this._setAdRequestTimer()}}]),e}(),TM=new hD.exports.EventEmitter,PM=["https://games.softgames.com","https://sg.gamedistribution.com","https://minigame-stg.aeriagames.jp","https://minigame.aeriagames.jp","https://html5.gamedistribution.com","http://localhost:3005","https://yjgames.gamedistribution.com","https://portal-staging-sgweb.gamedistribution.com/"];window.addEventListener("message",(function(e){var t=this,r=e.data,i=e.origin,a=e.source;if(PM.some(function(e){return n(this,t),e===i}.bind(this))&&(null==r||!r.__tcfapiCall)){var o=r.system;r.action;var s="aeriaExternalHostsConnector"===o;if("Softgames"===o)CM=a,(window.parent||window).postMessage(r,"*"),TM.emit("aeria-event",r);else if(s){CM&&CM.postMessage(r,"*");var u=window.parent||window;u&&u.postMessage(r,"*")}}}),!1);var LM="https://html5.gamedistribution.com",MM="parent-data-request",BM="parent-data-response",jM=function(){function e(){O(this,e)}var r;return L(e,[{key:"init",value:function(e){var t=this;this._registerForDataRequests(e),this._askForParentFrameData().then(function(r){if(n(this,t),r){var i=r.adRequestTimer;e.adRequestTimer=i,ac("gd-frame-data-bridge, adRequestTimer on init ",e.adRequestTimer)}}.bind(this))}},{key:"_registerForDataRequests",value:function(e){var t=this;window.addEventListener("message",function(r){n(this,t);var i=r.data,a=r.origin,o=r.source,s=i.type;if(i.value,a===LM&&s===MM){var u={adRequestTimer:e.adRequestTimer};o.postMessage({type:BM,value:u})}}.bind(this))}},{key:"_askForParentFrameData",value:(r=t(d.mark((function e(){var t=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(e,r){var i=this;n(this,t);var a=!1;window.addEventListener("message",(function(t){var n=t.data,r=t.origin;t.source;var i=n.type,o=n.value;r===LM&&i===BM&&(e(o),a=!0)})),setTimeout(function(){n(this,i),a||e()}.bind(this),1e3);var o={type:MM};window.parent.postMessage(o,"*")}.bind(this)));case 1:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})}]),e}(),UM=new jM,FM={SDKExistsOnUpperFrame:!1};function NM(){return $M.apply(this,arguments)}function $M(){return $M=t(d.mark((function e(){var t,n;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t=["https://pm.azerioncircle.com/p/gd-blck-rmv/"],e.next=4,ft(t[0],"blckrmv",{alternates:t});case 4:return n=window.GD_BLCK_RMV||{},console.log("new blocker",n),e.abrupt("return",n.AdBlockerPage);case 9:e.prev=9,e.t0=e.catch(0),console.log("new blcoker error => ",e.t0.message);case 12:case"end":return e.stop()}}),e,null,[[0,9]])}))),$M.apply(this,arguments)}var GM=async()=>{const e={},t={};function n(){let t,n=window,r=null,i=null;for(;!t;){try{if("function"==typeof n.__tcfapi||"function"==typeof n.__cmp){"function"==typeof n.__tcfapi?(i=2,r=n.__tcfapi):(i=1,r=n.__cmp),t=n;break}}catch(e){}try{if(n.frames.__tcfapiLocator){i=2,t=n;break}}catch(e){}try{if(n.frames.__cmpLocator){i=1,t=n;break}}catch(e){}if(n===window.top)break;n=n.parent}return e.version=i,e.frame=t,e.function=r,e.version}function r(r={}){return new Promise((i=>{function a(t,n){if(n){if(!1!==t.gdprApplies)return"tcloaded"===t.eventStatus||"useractioncomplete"===t.eventStatus?(function(t){const n=t&&"boolean"==typeof t.gdprApplies?t.gdprApplies:r.defaultGdprScope;("boolean"!=typeof n||!0===n&&"string"!=typeof t.tcString)&&i({result:"cmpUnexpectedResponse",cmp:e,consentData:t})}(t),void i({result:"ok",consentData:t})):void 0;i({result:"ok",consentData:t})}else i({result:"cmpCallFailed"})}n(),e.frame?2===e.version?e.function?e.function("addEventListener",e.version,a):function(n,r,i){const a="__tcfapi";function o(e){const n=`${a}Return`,r="string"==typeof e.data&&e.data.indexOf(n)>=0?JSON.parse(e.data):e.data;if(r[n]&&r[n].callId){const e=r[n];void 0!==t[e.callId]&&t[e.callId](e.returnValue,e.success)}}window[a]=(e,n,i,o)=>{const s=Math.random()+"",u={[`${a}Call`]:{command:e,parameter:o,callId:s,version:n}};t[s]=i,r.postMessage(u,"*")},window.addEventListener("message",o,!1),window[a](n,e.version,i)}("addEventListener",e.frame,a):i({result:"cmpVersionNotV2",cmp:e}):i({result:"cmpNotFound"})}))}return{findCmp:n,findUsp:function(){let e,t,n=window;for(;!e;){try{if("function"==typeof n.__uspapi){t=n.__uspapi,e=n;break}}catch(e){}try{if(n.frames.__uspapiLocator){e=n;break}}catch(e){}if(n===window.top)break;n=n.parent}return{uspapiFrame:e,uspapiFunction:t}},lookupIabConsent:function(){return new Promise((e=>{try{r().then(e).catch((t=>e({result:"cmpLookupFailed"})))}catch(t){e({result:"cmpLookupFailed"})}}))},getGoogleAdType:function(e){if(!e||!e.vendor)return{type:"unknown"};const t=e.vendor.consents[755],n=e.vendor.legitimateInterests[755];if(!t)return{type:"not-allowed"};const{consents:r,legitimateInterests:i}=e.purpose;let a=Object.keys({1:!0,3:!0,4:!0}).every((e=>r[e])),o=[2,7,9,10].every((e=>r[e]||i[e]&&n));return a&&o?{type:"personalized"}:(r[1]||i[1])&&o?{type:"non-personalized"}:{type:"limited"}}}};function HM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?HM(Object(n),!0).forEach((function(t){cc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ZM=function(){oc("gtag: GA not initialized",arguments)};function VM(e){return KM.apply(this,arguments)}function KM(){return KM=t(d.mark((function e(t){var i,a,o,s,u,c,l,f,p,h,m,v,g=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=t.onError,a=t.args,s="gdSDKDataLayer",u="https://www.googletagmanager.com/gtag/js?id=".concat(o="G-PLRTBHGSEL","&l=").concat(s),c=[u],e.prev=5,e.next=8,ft(c[0],"gdsdk_google_analytics",{alternates:c,error_prefix:"Blocked:",exists:function(){return n(this,g),window[s]}.bind(this)});case 8:return window[s]=window[s]||[],ZM=function(){window[s].push(arguments)},ZM("js",new Date),e.next=14,GM();case 14:return l=e.sent,f=l.lookupIabConsent,p=l.getGoogleAdType,e.next=19,f();case 19:h=e.sent,m=p(h.consentData),v=zM(zM({},v=a||{}),{},{cookie_flags:"SameSite=None;Secure",cmp:h.result,gdpr:"ok"===h.result?"object"===r(h.consentData)?!0===h.consentData.gdprApplies:"N/A":h.result,google_ads:null==m?void 0:m.type}),ZM("config",o,v),e.next=31;break;case 27:e.prev=27,e.t0=e.catch(5),sc("gtag: load GA error",e.t0),i&&i(e.t0);case 31:case"end":return e.stop()}}),e,this,[[5,27]])}))),KM.apply(this,arguments)}new C("https://securepubads.g.doubleclick.net/gampad/ads?env=vp&gdfp_req=1&output=xml_vast4&unviewed_position_start=1&correlator=3792570314314042&sz=640x480&url=https%3A%2F%2Fwww.gry.pl%2Fgra%2Fkings-and-queens-match&iu=%2F1015413%2FTNL_NS-18101700058%2FTNL_T-17110972893&description_url=https%3A%2F%2Fwww.gry.pl%2Fgra%2Fkings-and-queens-match&max_ad_duration=300000&cust_params=hb_uuid%3Dcefbef16-53a9-4f49-9d3b-13e47e1066ad%26hb_cache_id%3Dundefined%26tnl_paid%3D866%26tnl_pid%3DP-17110700559%26tnl_system%3D1%26tid%3DTNL_T-17110972893%26tnl_ad_type%3Dvideo_image%26tnl_asset_id%3Daeac8455b2024f25abfa943ec96aa749%26tnl_ad_pos%3Dpreroll%26nsid%3DTNL_NS-18101700058%26tnl_pt%3D22%26hb_cache_host%3Dprebid.adnxs.com%26hb_format%3Dvideo%26hb_size%3D0x0%26hb_pb%3D1.15%26hb_adid%3D259407b5792767%26hb_bidder%3Dimprovedigital%26hb_cache_host_improv%3Dprebid.adnxs.com%26hb_uuid_improvedigit%3Dcefbef16-53a9-4f49-9d3b-13e47e1066ad%26hb_format_improvedig%3Dvideo%26hb_size_improvedigit%3D0x0%26hb_pb_improvedigital%3D1.15%26hb_adid_improvedigit%3D259407b5792767%26hb_bidder_improvedig%3Dimprovedigital%26tnl_wog%3D0%26gdGameId%3Daeac8455b2024f25abfa943ec96aa749%26tnl_content_category%3Dpuzzle%26adaptor_order%3D0%26pbct%3D2%26tnl_test%3Da%26fp%3D0.9%26fpt%3D99%26bfa%3D1%26adsense%3D0&gdpr=1&gdpr_consent=CP6lKcgP6lKcgAcABBENApEsAP_gAEPgAAYgg1NV_H__bX9j8Xr1aft0eY1H99j7rsQxBhfJk-4FyDvW_JwXn2EyNA26pqYKmRIEuzZBIQFkHIDURUigSogVrSDMYkGMgTNIJ6BkgFMRY2dYCFxvmQlDMQIY5vp9d3d52D-9_dv83dziz8FHvzU5PmckcICdA58tDfl9bRCb-5IAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHs87_XU-9_AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEQaoJIACgAHgAkABcADUAHAAUwAtgBmAD4AH4AYAAygBmgDkAHcAP8Ag4BHQCRAElAKiAXMAvQBfQDPgHUAPaAfYBEwCVQExAJnAUgApoBUgCuQFswLcAt0Bf4DBIGRgZIAywBmYDRgGrgNvAboA3wBywDtgHcgPFgfaB90EqASpAlhBLMEtIJbglxBLoEuwJfQTABMECYYExQJjgTJgmYCZwE0gJqATYgm2CbkE3gTfCCgEGoA8EADAFyAMEAtIQCAAAEAA0ADgAPAAyACwAI4AUAArgBbAEWAJcAX0A1ADVAHOAPIAfIBAwCDgEcAJ2AT-AoYCigF2AM4AbwA9AB8gENgIvAR6AkUBJYCVgEywJsAm0BS4CnwFhQLEAsUBdQC7gF5AMCgYeBiADFoGQgZGAyYBlwDPwGhANGAaYA1MBroDaAG3AN0AcEA6gB2ADuoHkgeUA96B8gHyhIG4ACAAFwAUABUADgAHgAQAAwgBkAGoAPAAiABMACqAG8APQAhIBDAESAI4ASwAmgBhgDLAGyAO-AewB8QD7AP0AgEBFwEYAI0AUEAqABVwC5gGKANoAbgA4gCRAE7AKHAUeApEBbAC5AF3gLzAYMAw0BkgDJwGcwNYA1kBuoDkwHLgPHDAUAAAgAGAAcABQAEUAJwAsABhADwAPYAhACIAEcAJgAVAArwBbAFyAOYA8ACGAESAIsAS4ApABWgDOAGpANkA4ABxgDnAHkAPwAgABGACTAE6AKKAUuArwCvgF2AL8AZwA2wBvADjgHNAOoAdkA9QB-wEJAIbARUAi8BHUCRAJFASXAloCXgE2AJ2AUJApECkgFigLRAXIAugBdwC9AGBAMPAYyAx6BkYGSAMnAZyAzwBoQDTAGtANdAboA6gB3AD3hAE8AAIABgAHAAUABFACcALAAYQA8AD2AIQAiABHACYAFcALcAcwB3AEMAIkARYAlwBSACtAGcANSAbIBwADjAHOAPIAfIA_ACAAEYAJNAToBOwCigFLgK8Ar4BdgC_AGcANQAbYA3gBxwDmgHZAPUAfIA_YCEgENgIvAR3AkQCRQElwJaAl4BNgCdgFCAKSgWIBYoC0QFyALoAXcAvQBgQDDwGMgMeAZIAycBnIDQgGmANaAa6A3QB1ADuAHvCgEYAIoAVABYAEIAJgAXAA8ACOAFIANQAcABHACiwFeAV8AuwBnADeAHNAOyAfsBHoCRQEvAJsAWKAtEBbAC7gF6AMPAZyAzwBoQDWoGuga8A94YAgABFACoALAAhABMAEcAKQAagA4ACOAFFgK8Ar4BdgDOAG8AOaAdkA_YCPQEvAJsAWiAtgBdwC9AGHgM5AZ4A0IBrQDXQHvAPiHAXoADAARAA4ADwALgAZABYADmAHwAfgBHACaAFAAKYAVwAtgBfADQAIQARYAjgBLgCkAFkAL4AYUAzQDOAGoAOcAdwA8gB8wEAAQOAg4CEAERAI4ATgAncBPgE_AKKAUsAqABWQC7AF6AM4AbwA44B0gD0AHyAQ2AiIBFQCPQEigJLASsAmIBMsCbAJtAUgApMBS4CqgFiALUAWzAugC6gF3AL6AYFAxADEwGLAMhAZNAy4DLwGfgNCAaNA0wDTQGpwNdA2ABtADbgHHgOWAc-A7AB3EDyQPKAekA94B8QD5QH2gPxHQRQAFwAUABUADgAIAAXQAwADUAHgARAAmABVgC4ALoAYgAzABvAD1AIYAiQBLACaAFGAMMAZQA0QBsgDvAHtAPsA_QB_wEWARgAoIBVwCxAFzALyAYoA2gBuADiAHUAReAkQBMgCdgFDgKPAU0AsUBbAC4AFyALtAXeAvMBgwDDQGPAMkAZOAyoBlgDOQGiANVAawA3UBxYDkwHLgPHAfWQAXAAIAAyACwAJoAXwA0ACkAFlALkAvgBnADUAHOARwAnABPoChgKKAUsArIBYgC0gF2AN4Ac0A7IB6AEewJsAm0BSYCxAFtALuAXkAwIBiUDPAM_AaEA1MBroDYAG3AOfAdGA7CB5IHlAPeAfEQgPAALAAoAC4AGIATAAqgBcADEAG8APQAjgB3gD_AJSAUEAq4BcwDFAG0AOoApoBYoC0QFwALkAZOAzkBogDVQHjkgF4ABgAHAAXAAyACwAHIARwAmgBUAC-AGQANoAeABCACkAFkAM6AagBqgDuAIAARyApoCoAFZALSAXYA3gB8gEVAI6AR6AkUBKwCWoE2ATaApMBVICxAF3AMWAZZAzwDPwGhANdAbAA7AB5QD3iUB0ABAACwAKAAcgBgAGIAPAAiABMACqAFwAMUAhgCJAEcAKMAbIA7wB-AFXAMUAdQBF4CRAFHgLFAWwAvMBk4DOQGsFIFwAC4AKAAqABwAEEAMAA1AB4AEQAJgAUgAqgBiADNAIYAiQBRgDKAGiANkAd8A_AD9AIsARgAoIBVwC5gF5AMUAbQA3ACLwEiAJ2AUOAsUBbAC4AFyALtAXmAw0BkgDJwGcwNYA1kBuoDkwHjlAIgAFwAMgAsAByAEcAJoAVAAvgBkADaAHgAQgAiwBHACZAFIALIAXwAwgBnQDUANUAc4A7oB8gH2AQAAjgBIgCdgFDAKXAVkBWwCxQF1AXYA14BvADtgHoAP-AjoBHoCRQElgJigTYBNoCkAFPgLEAXQAu4BeQC-gGBAMWAZMAy6BngGfgNCAaJA1IDU4GugbAA4IB0wDsAHcAPKAe8A-IB8oA.f_wACHwAAAAA&plcmt=1&vpmute=1&vpa=auto&sdkv=h.3.633.0&osd=2&frm=2&vis=1&sdr=1&hl=en&afvsz=200x200%2C250x250%2C300x250%2C336x280%2C450x50%2C468x60%2C480x70&is_amp=1&uach=WyJtYWNPUyIsIjE0LjQuMSIsImFybSIsIiIsIjEyMy4wLjYzMTIuMTIyIixudWxsLDAsbnVsbCwiNjQiLFtbIkdvb2dsZSBDaHJvbWUiLCIxMjMuMC42MzEyLjEyMiJdLFsiTm90OkEtQnJhbmQiLCI4LjAuMC4wIl0sWyJDaHJvbWl1bSIsIjEyMy4wLjYzMTIuMTIyIl1dLDBd&u_so=p&ctv=0&sdki=445&ptt=20&adk=2541783110&sdk_apis=2%2C7%2C8&omid_p=Google1%2Fh.3.633.0&sid=E657451B-8F2F-4921-A55A-21D1A6F3C39E&nel=1&eid=44777649%2C44781409%2C44785452%2C95321947%2C95322027%2C95323893%2C95324128%2C95324210%2C95326337&ref=https%3A%2F%2Fwww.gry.pl%2F&top=https%3A%2F%2Fwww.gry.pl%2F&loc=https%3A%2F%2Fhtml5.gamedistribution.com%2Faeac8455b2024f25abfa943ec96aa749%2F%3Ftimestamp%3D1713336375%26countryCode%3Dpl%26siteid%3D88%26channelid%3D1%26siteLocale%3Dpl%26locale%3Dpl%26gd_sdk_referrer_url%3Dhttps%253A%252F%252Fwww.gry.pl%252Fgra%252Fkings-and-queens-match&dlt=1713336379046&idt=2621&dt=1713336390920&scor=3473667703821297&ged=ve4_td12_tt10_pd12_la2000_er0.0.156.300_vi0.0.600.510_vp100_eb24427",!0),new C("https://securepubads.g.doubleclick.net/gampad/ads?env=vp&gdfp_req=1&output=xml_vast4&unviewed_position_start=1&correlator=2275053868608838&sz=640x480&url=https%3A%2F%2Fwww.gry.pl%2Fgra%2Fkings-and-queens-match&iu=%2F1015413%2FTNL_NS-18101700058%2FTNL_T-17110972893&description_url=https%3A%2F%2Fwww.gry.pl%2Fgra%2Fkings-and-queens-match&max_ad_duration=300000&vpa=auto&vpmute=0&plcmt=1&cust_params=tnl_paid%3D866%26tnl_pid%3DP-17110700559%26tnl_system%3D1%26tid%3DTNL_T-17110972893%26tnl_ad_type%3Dvideo_image%26tnl_asset_id%3Daeac8455b2024f25abfa943ec96aa749%26tnl_ad_pos%3Dpreroll%26nsid%3DTNL_NS-18101700058%26tnl_pt%3D22%26gd_opus%3D1%26fp%3D0.9%26gd_np%3D1%26bfa%3D1%26fpt%3D99%26tnl_wog%3D0&sdkv=h.3.633.0&osd=2&frm=0&vis=1&sdr=1&hl=en&afvsz=200x200%2C250x250%2C300x250%2C336x280%2C450x50%2C468x60%2C480x70&is_amp=0&uach=WyJtYWNPUyIsIjE0LjQuMSIsImFybSIsIiIsIjEyMy4wLjYzMTIuMTIyIixudWxsLDAsbnVsbCwiNjQiLFtbIkdvb2dsZSBDaHJvbWUiLCIxMjMuMC42MzEyLjEyMiJdLFsiTm90OkEtQnJhbmQiLCI4LjAuMC4wIl0sWyJDaHJvbWl1bSIsIjEyMy4wLjYzMTIuMTIyIl1dLDBd&u_so=p&ctv=0&gdpr=1&gdpr_consent=CP6lKcgP6lKcgAcABBENApEsAP_gAEPgAAYgg1NV_H__bX9j8Xr1aft0eY1H99j7rsQxBhfJk-4FyDvW_JwXn2EyNA26pqYKmRIEuzZBIQFkHIDURUigSogVrSDMYkGMgTNIJ6BkgFMRY2dYCFxvmQlDMQIY5vp9d3d52D-9_dv83dziz8FHvzU5PmckcICdA58tDfl9bRCb-5IAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHs87_XU-9_AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEQaoJIACgAHgAkABcADUAHAAUwAtgBmAD4AH4AYAAygBmgDkAHcAP8Ag4BHQCRAElAKiAXMAvQBfQDPgHUAPaAfYBEwCVQExAJnAUgApoBUgCuQFswLcAt0Bf4DBIGRgZIAywBmYDRgGrgNvAboA3wBywDtgHcgPFgfaB90EqASpAlhBLMEtIJbglxBLoEuwJfQTABMECYYExQJjgTJgmYCZwE0gJqATYgm2CbkE3gTfCCgEGoA8EADAFyAMEAtIQCAAAEAA0ADgAPAAyACwAI4AUAArgBbAEWAJcAX0A1ADVAHOAPIAfIBAwCDgEcAJ2AT-AoYCigF2AM4AbwA9AB8gENgIvAR6AkUBJYCVgEywJsAm0BS4CnwFhQLEAsUBdQC7gF5AMCgYeBiADFoGQgZGAyYBlwDPwGhANGAaYA1MBroDaAG3AN0AcEA6gB2ADuoHkgeUA96B8gHyhIG4ACAAFwAUABUADgAHgAQAAwgBkAGoAPAAiABMACqAG8APQAhIBDAESAI4ASwAmgBhgDLAGyAO-AewB8QD7AP0AgEBFwEYAI0AUEAqABVwC5gGKANoAbgA4gCRAE7AKHAUeApEBbAC5AF3gLzAYMAw0BkgDJwGcwNYA1kBuoDkwHLgPHDAUAAAgAGAAcABQAEUAJwAsABhADwAPYAhACIAEcAJgAVAArwBbAFyAOYA8ACGAESAIsAS4ApABWgDOAGpANkA4ABxgDnAHkAPwAgABGACTAE6AKKAUuArwCvgF2AL8AZwA2wBvADjgHNAOoAdkA9QB-wEJAIbARUAi8BHUCRAJFASXAloCXgE2AJ2AUJApECkgFigLRAXIAugBdwC9AGBAMPAYyAx6BkYGSAMnAZyAzwBoQDTAGtANdAboA6gB3AD3hAE8AAIABgAHAAUABFACcALAAYQA8AD2AIQAiABHACYAFcALcAcwB3AEMAIkARYAlwBSACtAGcANSAbIBwADjAHOAPIAfIA_ACAAEYAJNAToBOwCigFLgK8Ar4BdgC_AGcANQAbYA3gBxwDmgHZAPUAfIA_YCEgENgIvAR3AkQCRQElwJaAl4BNgCdgFCAKSgWIBYoC0QFyALoAXcAvQBgQDDwGMgMeAZIAycBnIDQgGmANaAa6A3QB1ADuAHvCgEYAIoAVABYAEIAJgAXAA8ACOAFIANQAcABHACiwFeAV8AuwBnADeAHNAOyAfsBHoCRQEvAJsAWKAtEBbAC7gF6AMPAZyAzwBoQDWoGuga8A94YAgABFACoALAAhABMAEcAKQAagA4ACOAFFgK8Ar4BdgDOAG8AOaAdkA_YCPQEvAJsAWiAtgBdwC9AGHgM5AZ4A0IBrQDXQHvAPiHAXoADAARAA4ADwALgAZABYADmAHwAfgBHACaAFAAKYAVwAtgBfADQAIQARYAjgBLgCkAFkAL4AYUAzQDOAGoAOcAdwA8gB8wEAAQOAg4CEAERAI4ATgAncBPgE_AKKAUsAqABWQC7AF6AM4AbwA44B0gD0AHyAQ2AiIBFQCPQEigJLASsAmIBMsCbAJtAUgApMBS4CqgFiALUAWzAugC6gF3AL6AYFAxADEwGLAMhAZNAy4DLwGfgNCAaNA0wDTQGpwNdA2ABtADbgHHgOWAc-A7AB3EDyQPKAekA94B8QD5QH2gPxHQRQAFwAUABUADgAIAAXQAwADUAHgARAAmABVgC4ALoAYgAzABvAD1AIYAiQBLACaAFGAMMAZQA0QBsgDvAHtAPsA_QB_wEWARgAoIBVwCxAFzALyAYoA2gBuADiAHUAReAkQBMgCdgFDgKPAU0AsUBbAC4AFyALtAXeAvMBgwDDQGPAMkAZOAyoBlgDOQGiANVAawA3UBxYDkwHLgPHAfWQAXAAIAAyACwAJoAXwA0ACkAFlALkAvgBnADUAHOARwAnABPoChgKKAUsArIBYgC0gF2AN4Ac0A7IB6AEewJsAm0BSYCxAFtALuAXkAwIBiUDPAM_AaEA1MBroDYAG3AOfAdGA7CB5IHlAPeAfEQgPAALAAoAC4AGIATAAqgBcADEAG8APQAjgB3gD_AJSAUEAq4BcwDFAG0AOoApoBYoC0QFwALkAZOAzkBogDVQHjkgF4ABgAHAAXAAyACwAHIARwAmgBUAC-AGQANoAeABCACkAFkAM6AagBqgDuAIAARyApoCoAFZALSAXYA3gB8gEVAI6AR6AkUBKwCWoE2ATaApMBVICxAF3AMWAZZAzwDPwGhANdAbAA7AB5QD3iUB0ABAACwAKAAcgBgAGIAPAAiABMACqAFwAMUAhgCJAEcAKMAbIA7wB-AFXAMUAdQBF4CRAFHgLFAWwAvMBk4DOQGsFIFwAC4AKAAqABwAEEAMAA1AB4AEQAJgAUgAqgBiADNAIYAiQBRgDKAGiANkAd8A_AD9AIsARgAoIBVwC5gF5AMUAbQA3ACLwEiAJ2AUOAsUBbAC4AFyALtAXmAw0BkgDJwGcwNYA1kBuoDkwHjlAIgAFwAMgAsAByAEcAJoAVAAvgBkADaAHgAQgAiwBHACZAFIALIAXwAwgBnQDUANUAc4A7oB8gH2AQAAjgBIgCdgFDAKXAVkBWwCxQF1AXYA14BvADtgHoAP-AjoBHoCRQElgJigTYBNoCkAFPgLEAXQAu4BeQC-gGBAMWAZMAy6BngGfgNCAaJA1IDU4GugbAA4IB0wDsAHcAPKAe8A-IB8oA.f_wACHwAAAAA&sdki=445&ptt=20&adk=1748861338&sdk_apis=2%2C7%2C8&omid_p=Google1%2Fh.3.633.0&media_url=blob%3Ahttps%253a%2F%2Fwww.gry.pl%2Ffa4fae4b-f435-43b4-9cee-af65696fe59e&sid=D3F4C4E1-4002-4BEE-A1F2-2638CD3B9197&a3p=EloKDWNyd2RjbnRybC5uZXQSQGE0MmZkMWJkNGI5MjgyOTY5NzUxNDUyYzVlNmUxNmQ1MzkzODYxY2E5Y2U2MGUzNjk3Y2ZlNTExMTQxYjFhZjgYucX8se4xSAASxgEKCHJ0YmhvdXNlEqwBWVNmZ3hFVno0OXBMOFI2c3ltSWtSdUFNdFg4d2Y0clBkdVMwTlVuLzZpUnhJZWh0cnRjVUtLSjFraHJDQWZERmp1N1pDNHJEc1lxMkduKzJFTFMxRmgzWlEzTUxaK0owbXZoTDR4UFlNc2JUbmlGNkczTWRaZjZQK3hEVVkwTU1FUlpkZzlKMjArcjlQNUtQOFBmWVhMaEkwRitGMUNhYUNwQS9aRVNNMVNnPRjBxfyx7jFIAFICCGoSGQoKdWlkYXBpLmNvbRjDz9ay7jFIAFICCGQSPgoFb3BlbngSLGV5SnBJam9pZEZoNU5XbDNSakZUT0ZjNVoxTlZRbFl5YWtRemR6MDlJbjA9GJ3I_LHuMUgA&nel=1&eid=44776494%2C44777649%2C44781409%2C95321947%2C95322027%2C95323893%2C95324128%2C95324210%2C95326337&top=https%3A%2F%2Fwww.gry.pl%2Fgra%2Fkings-and-queens-match&loc=https%3A%2F%2Fwww.gry.pl%2Fgra%2Fkings-and-queens-match&dt=1713336184147&cookie=ID%3Da17ef48e823e6627%3AT%3D1709727355%3ART%3D1713335981%3AS%3DALNI_MY20KDMmAY5MP3sMYIZndoHFyvxhg&gpic=UID%3D00000d6b0028013d%3AT%3D1709727355%3ART%3D1713335981%3AS%3DALNI_MZ7af9EvfEMcTpwOjK9LSfd-RfFCQ&scor=3968881391553945&ged=ve4_td21_tt0_pd21_la21000_er271.162.427.462_vi0.0.873.1064_vp100_eb24171",!0);var qM,WM=function(e){var t=this,r=e.handler,i=e.timeout,a=e.interval,o=r||function(){return n(this,t),!0}.bind(this),s=i||1e3,u=a||10;return new Promise(function(e,i){var a=this;if(n(this,t),r())e(!0);else{var c=!1,d=setInterval(function(){n(this,a);try{o()&&(clearInterval(d),c=!0,e(!0))}catch(t){clearInterval(d),e(!1)}}.bind(this),u);setTimeout(function(){n(this,a),clearInterval(d),c||e(!1)}.bind(this),s)}}.bind(this))},YM=function(){var e=t(d.mark((function e(t){var r,i,a,o,s,u=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.topic,i=t.args,e.next=3,oI();case 3:if(a=e.sent,o=a.console_logs,s=o&&o.allowed.some(function(e){return n(this,u),e===r}.bind(this)),s){e.next=8;break}return e.abrupt("return");case 8:console.log({topic:r,args:i});case 9:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}();function QM(){return JM.apply(this,arguments)}function JM(){return JM=t(d.mark((function e(){var t,n;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!qM){e.next=2;break}return e.abrupt("return",qM);case 2:return e.next=4,GM();case 4:return t=e.sent,n=t.lookupIabConsent,t.getGoogleAdType,e.next=9,n();case 9:return qM=e.sent,e.next=12,YM({topic:"cmp-decoded",args:{key:"[consent-check] cmp-decoded",cmp:qM}});case 12:return e.abrupt("return",qM);case 13:case"end":return e.stop()}}),e)}))),JM.apply(this,arguments)}function XM(){return eB.apply(this,arguments)}function eB(){return eB=t(d.mark((function e(){var t,r,i,a,o,s,u,c,l,f,p,h,m,v=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,QM();case 2:if(a=e.sent,(o=(null==a?void 0:a.consentData)||{}).gdprApplies){e.next=7;break}return oc("[consent-check] gdprApplies=false"),e.abrupt("return",!1);case 7:return s=(null===(t=o.purpose)||void 0===t?void 0:t.consents)||{},u=(null===(r=o.vendor)||void 0===r?void 0:r.consents)||{},c=(null===(i=o.publisher)||void 0===i?void 0:i.consents)||{},l=function(e){return n(this,v),0===Object.keys(e).length}.bind(this),f=l(s),p=l(u),h=l(c),oc("[consent-check]",{fullyRejected:m=f&&p&&h,emptyPurpose:f,emptyVendor:p,emptyPublisher:h}),e.abrupt("return",m);case 17:case"end":return e.stop()}}),e,this)}))),eB.apply(this,arguments)}function tB(){return nB.apply(this,arguments)}function nB(){return nB=t(d.mark((function e(){var t,n,r,i,a;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,QM();case 2:if(i=e.sent,(a=(null==i?void 0:i.consentData)||{}).gdprApplies){e.next=6;break}return e.abrupt("return",!1);case 6:return null===(t=a.purpose)||void 0===t||t.consents,null===(n=a.vendor)||void 0===n||n.consents,null===(r=a.publisher)||void 0===r||r.consents,e.abrupt("return",!1);case 11:case"end":return e.stop()}}),e)}))),nB.apply(this,arguments)}function rB(){return iB.apply(this,arguments)}function iB(){return(iB=t(d.mark((function e(){var t,n,r,i;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,oI();case 3:if(t=e.sent,null!=(n=t.disable_ads_by_cmp)&&n.enabled){e.next=8;break}return oc("[consent-check] returned by no rule",n),e.abrupt("return",!1);case 8:if(r="all-rejected"===(null==n?void 0:n.mode),e.t0=r,!e.t0){e.next=14;break}return e.next=13,XM();case 13:e.t0=e.sent;case 14:if(!e.t0){e.next=17;break}return oc("[consent-check] fully rejected"),e.abrupt("return",!0);case 17:if(i="some-rejected"===(null==n?void 0:n.mode),e.t1=i,!e.t1){e.next=23;break}return e.next=22,tB();case 22:e.t1=e.sent;case 23:if(!e.t1){e.next=26;break}return oc("[consent-check] partially rejected"),e.abrupt("return",!0);case 26:e.next=31;break;case 28:e.prev=28,e.t2=e.catch(0),sc("[consent-check] error on checkIfAdsDisabledByConsent",e.t2.message);case 31:return e.abrupt("return",!1);case 32:case"end":return e.stop()}}),e,null,[[0,28]])})))).apply(this,arguments)}function aB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?aB(Object(n),!0).forEach((function(t){cc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aB(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var sB=kL(),uB=null,cB=null,dB=function(){function e(t){var r,i,a,o,s=this;if(O(this,e),cc(this,"_whichFrameV2",function(){var e=this;n(this,s);var t=C(window.location.href,!0),r=t.host,i=t.query,a="html5.gamedistribution.com"!==r,o=function(t){return n(this,e),"revision.gamedistribution.com"===t||"uncached-html5.gamedistribution.com"===t}.bind(this),u=o(r);null!=i&&i.gd_sdk_referrer_url&&(u=o(C(i.gd_sdk_referrer_url).host));return this._isMasterGameURL()&&!(this._isTokenGameURL()||a)||u?"loader-frame":"game-frame"}.bind(this)),uB)return uB;uB=this,this.isOpusReady=!1,this.isMidrollPlusExecuted=!1,this.blockedAdsMap={},this.blockingDetectedKey="d8d9b9b63e704668a29559970c1818be",this._defaults=this._getDefaultOptions(),this._extendDefaultOptions(this._defaults,t),this._version=t.version||"0.0.0",this._bridge=this._getBridgeContext(),this._location=new cD,this._location.print();var u=this._location.get(),c=(null==u||null===(r=u.top)||void 0===r||null===(i=r.domain)||void 0===i?void 0:i.value)||(null==u||null===(a=u.partner.domain)||void 0===a?void 0:a.value),d=null==u||null===(o=u.partner.url)||void 0===o?void 0:o.value;this._parentURL=0===this._bridge.depth?encodeURIComponent(this._bridge.parentURL):this._bridge.parentURL,this._parentURL=this._parentURL||d,this._parentDomain=this._bridge.parentDomain,this._topDomain=this._bridge.topDomain,this._topDomain=this._topDomain||c,ac("locs found:",this._topDomain,this._parentURL),this._isFullScreen=!1,this._giftCount={preroll:0,midroll:0,rewarded:0},this._mplus_count=0,WI({whichFrame:this._whichFrameV2(),options:{showAd:this.showAd.bind(this),onEvent:this._onEvent.bind(this)}}),this._setConsoleBanner(),this._initializeMessageRouter(),this._checkConsole(),this._subscribeToEvents(),this.sdkReady=new Promise(this._initializeSDKWithGameData.bind(this)),this.sdkReady.then(function(e){n(this,s),this._sdk_ready=!0}.bind(this)).catch(function(e){n(this,s),this._sdk_ready=!1}.bind(this)).finally(function(){var e,t,r,i,a=this;if((n(this,s),null===(e=this._gameData)||void 0===e||null===(t=e.directTokenUse)||void 0===t?void 0:t.enabled)&&this._blockDirectTokenURLEmbedding().blocked)return;this.dumper=new HP({msgrt:this.msgrt,gameData:this._gameData,parentDomain:this._parentDomain,parentURL:this._parentURL,topDomain:this._parentURL}),this.dumper,this._initGameSessionTracking(),this._sendLoadedEvent(2),!0===(null===(r=this._gameData.lp)||void 0===r?void 0:r.load)&&this._sendLoadedEvent(1),this._sendLoaderDataEvent(),this._checkSplashAndPromoScreens(),this._initBlockingExternals(),this._initUnityHandler(),this._checkFullscreen(),null!==(i=this._gameData.evnts)&&void 0!==i&&i.enabled&&this._isLoaderGameURL()&&(!function(e){var t=this;if(!window[SL]){var r=RL("https://static.gamedistribution.com/message/index.html",SL);if(document.body.appendChild(r),window!==window.top){var i=[CL(e,"TokenGenerated"),CL(e,"PageLoaded")];r.onload=function(){var e=this;return n(this,t),i.forEach(function(t){return n(this,e),LL(t)}.bind(this))}.bind(this),OL(e)}window.addEventListener("message",function(e){return n(this,t),TL(e)}.bind(this),!1)}}(this._gameData),this._gameData.evnts.gameId===this.options.gameId&&setInterval(function(){n(this,a),this._send_gametag_data("heartbeat")}.bind(this),1e3*this._gameData.evnts.heartbeatDuration)),UM.init(this),this._send_gametag_data("sdk_init"),this.fixScore(),this._stableAdFlowForTest(),dR({onEvent:function(e){n(this,a);var t=e.name,r=e.data;(this._onEvent({name:t,message:"In Game Store : ".concat(t),status:"success",data:r,isStoreEvent:!0}),"STORE_UI_VISIBILITY_CHANGED"===t)&&(r.visible?this.onPauseGame("In game store opened","success"):this.onResumeGame("In game store closed","success"))}.bind(this)})}.bind(this)),this._registerSGBridge(),ac("which-frame",this._whichFrame()),this._loadLocus()}var r,i,a,o,s,u,c,f,p,h,m,v,g,A,b,y,_,w,x,k,E,S;return L(e,[{key:"_stableAdFlowForTest",value:function(){try{(gt.available&>.getBoolean("gd_debug_ex")&>.getBoolean("gd_tag")||FP().useTestAds)&&(this._gameData.adflw.adapters={default:["ima"],preroll:["ima"],midroll:["ima"],rewarded:["ima"]},console.log(this._gameData))}catch(e){console.log(e.message)}}},{key:"_getVisitorId",value:(S=t(d.mark((function e(){var t,r,i,a,o,s=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,WM({handler:function(){return n(this,s),!!cB}.bind(this),timeout:1e3,interval:10});case 2:return a=e.sent,o=a?null===(t=cB)||void 0===t||null===(r=t.visitor)||void 0===r||null===(i=r.visitorData)||void 0===i?void 0:i.visitorId:"noVisitorId",e.abrupt("return",o);case 5:case"end":return e.stop()}}),e,this)}))),function(){return S.apply(this,arguments)})},{key:"_initGameSessionTracking",value:(E=t(d.mark((function e(){var t,r,i,a,o,s,u,c,l,f,p,h,m,v,g,A,b,y,_,w,x,k,E,S,D,I,R,C,O,T,P,L=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===(t=this._gameData)||void 0===t||null===(r=t.gs_trc)||void 0===r?void 0:r.enabled){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,this._getVisitorId();case 5:p=e.sent,h=this._gameData,m=h.category,v=h.dname,g=h.pname,A=h.gameId,b=h.slug,y=h.title,_=h.ctry,w=h.failed,x=this._topDomain||this._parentDomain,k=new cD,E=k.get(),S=this.msgrt._ua,D=document.referrer,I=this.msgrt._layout,R=nc.version,C=(null===(i=this._gameData)||void 0===i||null===(a=i.hwei)||void 0===a?void 0:a.enabled)&&(null===(o=this._gameData)||void 0===o||null===(s=o.hwei)||void 0===s?void 0:s.gs.enabled),O=(null===(u=this._gameData)||void 0===u||null===(c=u.gft)||void 0===c?void 0:c.midroll.enabled)||!1,T=(null===(l=this._gameData)||void 0===l||null===(f=l.midroll_plus)||void 0===f?void 0:f.enabled)||!1,P={args:{rfr:D,category:m,dname:v,pname:g,gameId:A,slug:b,title:y,ctry:_,domain:x,loc:E,ua:S,layout:I,version:R,visitorId:p,hasGft:O,hasMp:T,failed:w,isHwp:C},onError:function(e){n(this,L),this._sendSDKError(e)}.bind(this)},zL(P);case 21:case"end":return e.stop()}}),e,this)}))),function(){return E.apply(this,arguments)})},{key:"_initUnityHandler",value:function(){var e=this;window.addEventListener("DOMNodeInserted",function(){if(n(this,e),this._gameData.block_exts&&this._removeExternalsInHtml({enabled:!1}),document.getElementsByClassName("webgl-content")[0]){var t=document.getElementsByClassName("webgl-content")[0].getElementsByClassName("footer")[0];t&&t.setAttribute("style","display:none")}}.bind(this))}},{key:"_send_gametag_data",value:(k=t(d.mark((function e(t){var n;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this._getGdModeIfExist()&&(n=lt()||"web",this.adInstance._send("tg.created",{gmid:this.options.gameId,dvc:n,qint:t}));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return k.apply(this,arguments)})},{key:"_loadCMP",value:(x=t(d.mark((function e(){var t,n,r,i,a,o;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._isMasterGameURL()){e.next=12;break}if(r=new cD,0!==(null==(i=r.get("depth"))?void 0:i.value)||null===(t=this._gameData)||void 0===t||null===(n=t.cmp)||void 0===n||!n.enabled){e.next=12;break}if(null===(a=this._gameData)||void 0===a||null===(o=a.cmp)||void 0===o||!o.checkDepthOnly){e.next=9;break}return e.next=7,dL();case 7:e.next=12;break;case 9:if("html5.gamedistribution.com"!==this._topDomain){e.next=12;break}return e.next=12,dL();case 12:case"end":return e.stop()}}),e,this)}))),function(){return x.apply(this,arguments)})},{key:"testConsent",value:function(){try{tL();t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,nL({});case 2:e.sent;case 3:case"end":return e.stop()}}),e)})))()}catch(e){console.log("find CMP error",e)}}},{key:"_sendLoaderDataEvent",value:function(){try{this.options.onLoaderEvent&&this.options.onLoaderEvent({name:"LOADER_DATA",message:{game:this._gameData,bridge:this._bridge},status:this._sdk_ready?"success":"error"})}catch(e){}}},{key:"_registerSGBridge",value:function(){var e=this;lL.on("splash-hidden",function(t){n(this,e),this._hideCMPButton()}.bind(this))}},{key:"_hideCMPButton",value:function(){var e=document.getElementById("ot-sdk-btn-floating");e&&(e.style.display="none")}},{key:"_sendLoadedEvent",value:function(e){if(this._isLoaded||(this._isLoaded={}),!this._isLoaded[e]){this._isLoaded[e]=!0;var t="loader-frame"===this._whichFrame()&&(this._isHostHTML5Domain()||this._isExternalHoster());C(location.href,!0);if(this._whichFrame(),this._isMasterGameURL(),this._isExtHostedGameURL(),this._isTokenGameURL(),this._isHostHTML5Domain(),this._isExternalHoster(),location.href,document.referrer,t)try{ac("which-frame, sending tunnel event",this._whichFrame()),this._sendTunnlEvent(e),this.msgrt.send("loaded",{message:this._hasBlocker?"Has Blocker":"No Blocker"})}catch(e){}}}},{key:"_sendGamedockGamePlay",value:function(){var e=this._isTokenGameURL();if(!(this._gameData.loader.enabled&&e||this._gameDockGamePlaySent))try{this._sendGamedockEvent("gameplay"),this._gameDockGamePlaySent=!0}catch(e){}}},{key:"_safeInit",value:function(){this._checkUserDeclinedTracking(),this._checkWhitelabelPartner();var e=this._gameData.diagnostic;void 0!==e&&void 0!==e.close_ga&&!1!==e.close_ga||this._loadGoogleAnalytics(),void 0!==e&&void 0!==e.close_gamedock&&!1!==e.close_gamedock||!this._bridge.isCoreSDKMode&&!this._bridge.noGamedockSDK&&this._loadGamedockTracker(),void 0!==e&&void 0!==e.close_minijuegos&&!1!==e.close_minijuegos||(console.log("noMinijuegosSDK",!this._bridge.isCoreSDKMode,!this._bridge.noMinijuegosSDK,document.location.search.indexOf("mp_game_id")>=0),!this._bridge.isCoreSDKMode&&!this._bridge.noMinijuegosSDK&&document.location.search.indexOf("mp_game_id")>=0&&this._loadMiniJuegosGratisTracker())}},{key:"_initializeSDKWithGameData",value:(w=t(d.mark((function e(t,r){var i,a,o,s,u,c,l=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this._getGameData();case 3:return this._gameData=e.sent,e.next=6,this._loadCMP();case 6:return this._bridge.isCoreSDKMode=(null===(i=this._gameData.disableAds)||void 0===i?void 0:i.default)||!1,this._safeInit(),this._checkGameId(),this._checkGameDeleted(),this._checkBlocking(),this._changeMidrollInDebugMode(),s=void 0===this._gameData.diagnostic||void 0===(null===(a=this._gameData.diagnostic)||void 0===a?void 0:a.close_ads)||!1===(null===(o=this._gameData.diagnostic)||void 0===o?void 0:o.close_ads),e.next=15,rB();case 15:return u=e.sent,oc("[ad-system-init] allowed",{adSystemInitAllowed:c=s&&!u,notDisabledByModuleClose:s,disabledByConsent:u}),c&&(this.videoAdReady=this._initializeVideoAd().then(function(){n(this,l),(this._isMasterGameURL()||this._isExtHostedGameURL())&&(this.msgrt.send("adblocker.flw",{message:"ok"}),this.msgrt.send("adblocker.adapters",{message:"none"})),this._checkAdBlockerRemoval()}.bind(this)).catch(function(e){n(this,l);var t="".concat(e).startsWith("Error: Blocked:");oc("gd-adflow adsBlocked",t,e);var r=this.get_ad_system_init_result(),i=r.ima,a=r.afg;if(this.adsBlocked=!i&&!a,this._isMasterGameURL()||this._isExtHostedGameURL()){this.msgrt.send("adblocker.flw",{message:"".concat(this.adsBlocked?"blocked":"ok")});var o=i||a?i?a?"none":"adsense":"ima":"all";this.msgrt.send("adblocker.adapters",{message:"".concat(o)})}this._sendSDKError(e),this._checkAdBlocker(),console.error(e.message||e)}.bind(this))),e.next=21,uM();case 21:t(this._gameData),e.next=29;break;case 24:e.prev=24,e.t0=e.catch(0),this._sendSDKError(e.t0),this.onResumeGame(e.t0.message,"warning"),r(e.t0);case 29:case"end":return e.stop()}}),e,this,[[0,24]])}))),function(e,t){return w.apply(this,arguments)})},{key:"_getDefaultOptions",value:function(){return{debug:!1,testing:!1,gameId:"4f3d7d38d24b740c95da2b03dc3a2333",prefix:"gdsdk__",onEvent:function(e){},onLoaderEvent:function(e){},flashSettings:{adContainerId:"",splashContainerId:""},advertisementSettings:{},resumeGame:function(){},pauseGame:function(){},onInit:function(e){},onError:function(e){},loader:{}}}},{key:"_checkAdBlockerRemoval",value:function(){gt.getBoolean(this.blockingDetectedKey)&&(gt.set(this.blockingDetectedKey,!1),this.send_atom_event("ad-blocker-removed"))}},{key:"_checkAdBlocker",value:(_=t(d.mark((function e(){var t,n,r,i,a;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,t=this.get_ad_system_init_result(),n=t.ima,r=t.afg,n&&r){e.next=12;break}if(gt.set(this.blockingDetectedKey,!0),null===(i=this._gameData.rmblck)||void 0===i||!i.enabled){e.next=12;break}if(this.adBlockerPage){e.next=12;break}return e.next=9,NM();case 9:a=e.sent,this.adBlockerPage=new a(this._gameData),this.adBlockerPage.add();case 12:e.next=17;break;case 14:e.prev=14,e.t0=e.catch(0),console.log(e.t0.message);case 17:case"end":return e.stop()}}),e,this,[[0,14]])}))),function(){return _.apply(this,arguments)})},{key:"_extendDefaultOptions",value:function(e,t){var n=B(e);this.options=t?it(n,t):n,this.options.gameId=this.options.gameId.trim()}},{key:"_setConsoleBanner",value:function(){if(!this._bridge.noConsoleBanner){var e=nc.version,t=console.log("%c %c %c GameDistribution.com HTML5 SDK | Version: "+e+" %c %c %c","background: #9854d8","background: #6c2ca7","color: #fff; background: #450f78;","background: #6c2ca7","background: #9854d8","background: #ffffff");console.log.apply(console,t)}}},{key:"_shouldSendTunnlEvent",value:function(e){return this.tunnlEventCounts||(this.tunnlEventCounts={}),this.tunnlEventCounts[e]||(this.tunnlEventCounts[e]=0),this.tunnlEventCounts[e]++,1===this.tunnlEventCounts[e]}},{key:"_sendTunnlEvent",value:function(e){var t=this;if(this._shouldSendTunnlEvent(e)){void 0!==this._topDomain&&"undefined"!==this._topDomain||(this._topDomain=void 0);var r={page_url:this._topDomain||this._parentDomain,game_id:this.options.gameId,eventtype:e,ts:Date.now()};fetch("https://hlana.gamedistribution.com/event?".concat(l.stringify(r))).catch(function(i){n(this,t),this._sendHLAnalyicsLog({query:oB(oB({},r),{},{error:null==i?void 0:i.message}),eventType:-e})}.bind(this)),this._sendHLAnalyicsLog({query:r,eventType:e}),this.adInstance._send_atom_event("hl.config",r),this._send_gametag_data("sdk_gameplay")}}},{key:"_sendHLAnalyicsLog",value:function(e){var t,n=e.query,r=e.eventType;if(1===r?t="hl.gameplay":2===r?t="hl.gameload":3===r?t="hl.adblock":-1===r?t="hl.gameplay.error":-2===r?t="hl.gameload.error":-3===r&&(t="hl.adblock.error"),t)try{this.dumper.send_atom_event(t,n)}catch(e){console.log("Error on sending dump!",e)}}},{key:"_sendAdRequestContext",value:function(e){this.msgrt.send("adctx",{message:e.adTag.bidder})}},{key:"_checkWhitelabelPartner",value:function(){this._whitelabelPartner=!1;var e=ut();e.hasOwnProperty("xanthophyll")&&"true"===e.xanthophyll&&(this._whitelabelPartner=!0,yt("White label publisher","".concat(this._whitelabelPartner),"success"))}},{key:"_checkRevisionOrigin",value:function(){var e=this;return[document.location.origin].concat(fR(document.location.ancestorOrigins)).find(function(t){return n(this,e),"revision.gamedistribution.com"===C(t,!0).hostname}.bind(this))}},{key:"_checkConsole",value:function(){try{if(!gt.available)return;if("developer.gamedistribution.com"===this._parentDomain||"developer.gamedistribution.com"===this._topDomain||"developer-acc.gamedistribution.com"===this._parentDomain||"developer-acc.gamedistribution.com"===this._topDomain)this._checkRevisionOrigin()&&(gt.set("gd_debug_ex",!0),gt.set("gd_disable_midroll_timer",!0),gt.set("gd_tag",!0));else"localhost:3000"===this._parentDomain&&(gt.set("gd_debug_ex",!0),gt.set("gd_disable_midroll_timer",!0));gt.getBoolean("gd_debug_ex")&&(this.openConsole(),this.msgrt.send("dev.console",{message:this._parentDomain}))}catch(e){}}},{key:"_checkUserDeclinedTracking",value:function(){this._userDeclinedTracking=this._bridge.isCoreSDKMode||document.location.search.indexOf("gdpr-tracking=0")>=0||document.cookie.indexOf("ogdpr_tracking=0")>=0}},{key:"_initializeMessageRouter",value:function(){this.msgrt=new Rt({gameId:this.options.gameId,hours:(new Date).getHours(),topDomain:this._topDomain,domain:this._parentDomain,referrer:this._parentURL,depth:pt(),version:nc.version,tracking:this._userDeclinedTracking,whitelabel:this._whitelabelPartner,platform:lt(),byloader:this._bridge.isTokenGameURL,isTokenGameURL:this._bridge.isTokenGameURL,isMasterGameURL:this._bridge.isMasterGameURL,isExtHostedGameURL:this._bridge.isExtHostedGameURL,byloaderVersion:this._bridge.version})}},{key:"_loadGamedockTracker",value:function(){var e=this;try{var t=[this._gameData.gmky.url];ft(t[0],"GamedockSDK",{alternates:t}).then(function(){var t,r;n(this,e),cB=this._initGamedockTracker(window.GamedockSDK),this._sendGamedockEvent("pageview"),null!==(t=this._gameData.diagnostic)&&void 0!==t&&null!==(r=t.gameDock)&&void 0!==r&&r.adViewEvent&&cB.tracking.enableHeartBeatForPage({pageId:this.options.gameId,pageType:"game"},this._gameData.diagnostic.gameDock.heartbeatConfig),iL.track(cB,this._gameData)}.bind(this)).catch(function(t){n(this,e),this._sendSDKError(t)}.bind(this))}catch(e){}}},{key:"_initGamedockTracker",value:function(e){if(!this._bridge.isCoreSDKMode)return e.initialize("gd",this._parentDomain)}},{key:"_sendGamedockEvent",value:function(e){var t,n;null===(t=cB)||void 0===t||null===(n=t.tracking)||void 0===n||n.trackEvent(e,{pageId:this.options.gameId,pageType:"game"})}},{key:"_loadMiniJuegosGratisTracker",value:function(){var e=this;window.mpConfig={game:this.options.gameId,partner:"game-distribution"};var t=["https://ext.minijuegosgratis.com/external-host/main.js"];console.log("noMinijuegosSDK loading"),ft(t[0],"MinijuegosSDK",{alternates:t}).catch(function(t){n(this,e),this._sendSDKError(t)}.bind(this))}},{key:"_loadLocus",value:function(){var e=t(d.mark((function e(){var t,r=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,pI();case 2:if(e.sent){e.next=6;break}return console.log("locus-disabled"),e.abrupt("return");case 6:t=["https://pm.azerioncircle.com/p/locus/"],window.gdlocus=window.gdlocus||{cmd:[]},window.gdlocus.cmd.push(function(){n(this,r),this.isOpusReady=!0,window.gdlocus.iservice.register({method:"muteAdFlow",handler:this._muteFlowSound.bind(this)}),window.gdlocus.iservice.register({method:"terminateAdFlow",handler:this._terminateFlow.bind(this)})}.bind(this)),ft(t[0],"locus",{alternates:t}).catch(function(e){n(this,r),this._sendSDKError(e)}.bind(this)).then(function(){n(this,r)}.bind(this));case 10:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"_muteFlowSound",value:(y=t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._adFlow){e.next=2;break}return e.abrupt("return");case 2:this._adFlow.mute();case 3:case"end":return e.stop()}}),e,this)}))),function(){return y.apply(this,arguments)})},{key:"_terminateFlow",value:(b=t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._adFlow){e.next=2;break}return e.abrupt("return");case 2:this._adFlow.terminate();case 3:case"end":return e.stop()}}),e,this)}))),function(){return b.apply(this,arguments)})},{key:"_loadGoogleAnalytics",value:function(){var e=this;if(!this._bridge.isCoreSDKMode){var t=this._gameData,r=t.gameId,i=t.slug,a=t.title,o=new cD,s={provider:"gd-sdk",page_depth:o.get("depth.value"),partner_domain_from:o.get("partner.domain.from"),top_domain_from:o.get("top.domain.from"),top_domain:this._topDomain,parent_domain:this._parentDomain,parent_url:this._parentURL,game_id:r,game_slug:i,game_title:a};VM({onError:function(t){n(this,e),this._sendSDKError(t)}.bind(this),args:s})}}},{key:"_getCleanUrl",value:function(e){var t=e;try{var n=new C(e,!0);t="".concat(n.protocol,"//").concat(n.hostname,"/").concat(n.pathname)}catch(e){}return t}},{key:"_subscribeToEvents",value:function(){var e=this;this.eventBus=new Dt,_t.forEach(function(t){var r=this;return n(this,e),this.eventBus.subscribe(t,function(e){return n(this,r),this._onEvent(e)}.bind(this),"sdk")}.bind(this)),wt.forEach(function(t){var r=this;return n(this,e),this.eventBus.subscribe(t,function(e){return n(this,r),this._onEvent(e)}.bind(this),"ima")}.bind(this)),this.eventBus.subscribe("COMPLETE",function(){n(this,e);var t=this._getDeveloperDomains(),r=t.developerDomain,i=t.gameApiDomain;if(r){fetch("https://".concat(i,"/game/v2/hasapi/").concat(this.options.gameId,"?timestamp=").concat((new Date).valueOf()));try{var a=JSON.stringify({type:"GD_SDK_IMPLEMENTED",gameID:this.options.gameId});window.location!==window.top.location?window.top.postMessage(a,"*"):null!==window.opener&&window.opener.location!==window.location&&window.opener.postMessage(a,"*")}catch(e){}}UP()}.bind(this),"ima"),this.eventBus.subscribe("CONTENT_PAUSE_REQUESTED",function(){return n(this,e),this.onPauseGame("New advertisements requested and loaded","success")}.bind(this),"ima"),this.eventBus.subscribe("IMPRESSION",function(t){var r,i;n(this,e),this.msgrt.send("ad.impression"),MP(),null!==(r=this._gameData.diagnostic)&&void 0!==r&&null!==(i=r.gameDock)&&void 0!==i&&i.adViewEvent&&iL.track(cB,this._gameData)}.bind(this),"ima"),this.eventBus.subscribe("AD_ERROR",function(t){n(this,e),this.msgrt.send("ad.error",{message:t.message,details:t.details})}.bind(this),"ima"),this.eventBus.subscribe("AD_SDK_REQUEST",function(t){n(this,e),this._sendAdRequestContext(t.message)}.bind(this),"sdk"),this.eventBus.subscribe("SDK_ERROR",function(t){if(n(this,e),t.message.startsWith("Blocked:")){var r=t.message.replace("Blocked:","").trim(),i=this._getCleanUrl(r),a="Blocked: ".concat(i);if(!this._bridge.noBlockerEvent&&(this.msgrt.send("error",{message:a}),!this._hasBlocker)){this._hasBlocker=!0;this.msgrt.send("adblck.src",{message:a});var o=this.get_ad_system_init_result(),s=o.ima,u=o.afg;(!s||!u)&&this._sendTunnlEvent(3)}}else this.msgrt.send("error",{message:t.message})}.bind(this),"sdk"),this.eventBus.subscribe("AD_REQUEST_KEYS_EMPTY",function(t){n(this,e),this.msgrt.send("tunnl.keys.empty",{message:t.message,details:t.details})}.bind(this),"sdk"),this.eventBus.subscribe("AD_REQUEST_KEYS_FALLBACK",function(t){n(this,e),this.msgrt.send("tunnl.keys.fallback",{message:t.message,details:t.details})}.bind(this),"sdk"),this.eventBus.subscribe("AD_T4R",function(t){return n(this,e),this.msgrt.send("adt4r")}.bind(this),"sdk")}},{key:"_checkGameId",value:function(){this.options.gameId===this._defaults.gameId&&this._sendSDKError("Please check if your GAME ID is correct. Otherwise, no revenue will be reported.")}},{key:"_getDefaultGameData",value:function(){return{gameId:this.options.gameId,disableAds:{},preroll:!0,midroll:12e4,rewardedAds:!1,title:"",tags:[],category:"",assets:[],dmain:!0,sdk:{},loader:{},splash:{},promo:{},dAds:{},pAds:{},mAds:{},rAds:{}}}},{key:"_getGameDataUrl",value:function(){var e=void 0!==this._topDomain&&"undefined"!==this._topDomain?this._topDomain:this._parentDomain,t=TD().config;return"https://".concat(t.gameAPI,"/game/v4/get/").concat(this.options.gameId.replace(/-/g,""),"/?domain=").concat(e,"&v=").concat(nc.version,"&localTime=").concat((new Date).getHours())}},{key:"_checkBlocking",value:(A=t(d.mark((function e(){var t,n,r;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=!0,n=this._gameData,r=this._parentDomain.indexOf("gamedistribution.com")>=0,t=(t=void 0===this._gameData.dmain||this._gameData.dmain)||r,(n.bloc_gard&&!0===n.bloc_gard.enabled||!t)&&this._redirectToBlocking(!1,!t);case 7:case"end":return e.stop()}}),e,this)}))),function(){return A.apply(this,arguments)})},{key:"_blockDirectTokenURLEmbedding",value:function(){var e,t,n=this._checkTokenGameUrl(),r=new cD,i="html5.gamedistribution.com"!==C(document.referrer).host,a=n&&!FM.SDKExistsOnUpperFrame&&r.get("depth.value")>0&&i;if(a&&(null===(e=this._gameData)||void 0===e||null===(t=e.directTokenUse)||void 0===t?void 0:t.enabled)){var o,s,u=null===(o=this._gameData)||void 0===o||null===(s=o.directTokenUse)||void 0===s?void 0:s.behavior;"to-loader"===u?this._redirectToLoaderFrame():"to-blocked-page"===u&&this._redirectToBlocking(!0)}return{blocked:a}}},{key:"_redirectToBlocking",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.msgrt.send("blocked");var i=this._gameData;setTimeout(t(d.mark((function t(){return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e){t.next=9;break}return t.prev=1,t.next=4,n.adInstance._send_atom_event("token-blocked");case 4:t.next=9;break;case 6:t.prev=6,t.t0=t.catch(1),console.log("Could not send dump.token-blocked",t.t0);case 9:window.location.href="https://html5.api.gamedistribution.com/blocked.html?".concat(l.stringify({domain:n._parentDomain,id:i.gameId,img:n._get_game_thumbnail_url(),title:i.title,unregistered:r,utm_source:n._parentDomain,utm_medium:(null==i?void 0:i.slug)||(null==i?void 0:i.title)||(null==i?void 0:i.gameId)||"unknown",utm_campaign:"block-and-redirect"}));case 10:case"end":return t.stop()}}),t,null,[[1,6]])}))),100)}},{key:"_redirectToLoaderFrame",value:function(){var e=this,n=this._gameData;setTimeout(t(d.mark((function t(){var r,i,a,o;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.adInstance._send_atom_event("loader-redirect");case 3:t.next=8;break;case 5:t.prev=5,t.t0=t.catch(0),console.log("Could not send dump.loader-redirect",t.t0);case 8:r=C(location.href,!0),i=oB(oB({},r.query),{},{rd:"1"}),a=l.stringify(i),o="https://html5.gamedistribution.com/".concat(n.gameId,"/?").concat(a),window.location.href=o;case 13:case"end":return t.stop()}}),t,null,[[0,5]])}))),100)}},{key:"_checkGameDeleted",value:function(){var e=this;6!==this._gameData.status&&4!==this._gameData.activeStatus||(console.log("%c %c %c This game was deleted, please remove it in your website... ","background: #F2181A","background: #F23818","color: #fff; background: #F23818;","background: #F55E60","background: #F55E60","background: #c4161e; color: #fff;"),setTimeout(function(){n(this,e),document.location="https://html5.api.gamedistribution.com/deleted.html"}.bind(this),100))}},{key:"_changeMidrollInDebugMode",value:function(){var e=this._gameData;FP().disableMidrolltimer?e.midroll=0:gt.available&>.getBoolean("gd_debug_ex")&&(gt.getBoolean("gd_disable_midroll_timer")?e.midroll=0:e.midroll=this._getDefaultGameData().midroll)}},{key:"_checkSplashAndPromoScreens",value:function(){var e,t,n,r;!1===(null===(e=this._gameData.loader)||void 0===e?void 0:e.mobile)&&this._getisMobile()&&(this._gameData.loader.enabled=!1);var i,a=this._gameData,o=a.gdpr&&!0===a.gdpr.consent,s=a.loader,u=null===(t=a.promo)||void 0===t?void 0:t[null===(n=a.promo)||void 0===n||null===(r=n.template)||void 0===r?void 0:r.preroll];(a.preroll||(this.adRequestTimer=Date.now()),this.options.loader.enabled)?null!=u&&u.enabled?this._createPromoBeforeSplash(a,o):s.enabled&&!0!==(null===(i=s.splash)||void 0===i?void 0:i.skip)?this._createSplash(a,o):this.onResumeGame("Skipped splash.","success"):s.enabled||this._bridge.isTokenGameURL&&this._bridge.isExtHostedGameURL||(this.options.advertisementSettings.autoplay||o?null!=u&&u.enabled?this._createPromoBeforeSplash(a,o):!1!==s.enabled&&this._createSplash(a,o):null!=u&&u.enabled&&this._createPromo(a,o))}},{key:"_initializeVideoAd",value:(g=t(d.mark((function e(){var t;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._bridge.isCoreSDKMode){e.next=2;break}return e.abrupt("return");case 2:return(t=this._gameData).sdk.enabled&&(this.options.advertisementSettings=it(this.options.advertisementSettings,t.sdk)),this.macros=new It({game:t,bridge:this._bridge}),this.adInstance=new qP(this.options.flashSettings.adContainerId,this.options.advertisementSettings,{parentURL:this._parentURL,parentDomain:this._parentDomain,topDomain:this._topDomain}),this.adInstance.gameId=t.gameId,this.adInstance.category=t.category,this.adInstance.tags=t.tags,this.adInstance.noPreroll=this._bridge.noPreroll,this.adInstance.macros=this.macros,this.adInstance.gameData=t,this.adInstance.msgrt=this.msgrt,this.adInstance.PackageJSON=nc,this.adInstance._send_atom_event("gd.location"),e.next=17,this.adInstance.start();case 17:case"end":return e.stop()}}),e,this)}))),function(){return g.apply(this,arguments)})},{key:"_sendSDKReady",value:function(){var e="Everything is ready.";this.eventBus.broadcast("SDK_READY",{message:e,status:"success"});try{this.options.onInit(e)}catch(e){yt("DEVELOPER_ERROR",e.message,"warning")}}},{key:"_sendSDKError",value:function(e){e=e.message?e:{message:e};this.eventBus.broadcast("SDK_ERROR",{message:e.message,status:"error"});try{this.options.onError(e)}catch(e){yt("DEVELOPER_ERROR",e.message,"warning")}}},{key:"IscForwardOnEvent",value:(v=t(d.mark((function e(t){var n,r,i,a,o;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=!1,e.prev=1,e.next=4,nR();case 4:if(!(r=e.sent)){e.next=14;break}return e.next=8,r.isLoader();case 8:if(o=e.sent,!((null===(i=this._gameData)||void 0===i||null===(a=i.isv_fw)||void 0===a?void 0:a.enabled)&&o&&r.onEvent)){e.next=14;break}return n=!0,r.onEvent({event:t}),e.abrupt("return",n);case 14:e.next=19;break;case 16:e.prev=16,e.t0=e.catch(1),ac("[GD-IS] error on onEvent forward",e.t0);case 19:return e.abrupt("return",n);case 20:case"end":return e.stop()}}),e,this,[[1,16]])}))),function(e){return v.apply(this,arguments)})},{key:"_onEvent",value:(m=t(d.mark((function e(t){var n,r;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.IscForwardOnEvent(t);case 2:if(!e.sent){e.next=5;break}return e.abrupt("return");case 5:if(ac("[GD-IS] onEvent executing",{event:null==t?void 0:t.name,e:t,location:window.location.href}),yt(t.name,t.message,t.status),!t.skipForward){e.next=9;break}return e.abrupt("return");case 9:oc("[developer-event]".concat(t.isStoreEvent?"[store]":""),{name:t.name,data:t.data||{},source:"core"}),null!==(n=this._gameData)&&void 0!==n&&null!==(r=n.evnts)&&void 0!==r&&r.enabled&&IL({event:t.name,game:this._gameData});try{this.options.onEvent({name:t.name,message:t.message,status:t.status,data:t.data||{},isStoreEvent:t.isStoreEvent||!1,skipForward:t.skipForward,adPosition:t.adPosition})}catch(e){yt("DEVELOPER_ERROR",e.message,"warning")}case 12:case"end":return e.stop()}}),e,this)}))),function(e){return m.apply(this,arguments)})},{key:"_getGameData",value:(h=t(d.mark((function e(){var t;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,oI();case 2:return t=e.sent,this.msgrt.setGameData(t),n=t.diagnostic,bt=n,e.abrupt("return",t);case 6:case"end":return e.stop()}var n}),e,this)}))),function(){return h.apply(this,arguments)})},{key:"_createSplash",value:(p=t(d.mark((function e(r,i){var a,o,s,u,c=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._getSplashTemplate(r);case 2:return a=e.sent,o=new a(oB(oB({},this.options),{},{isConsentDomain:i,version:nc.version}),r,this._parentDomain),e.next=6,mI();case 6:s=e.sent,u=s.enabled,o.on("playClick",function(){var e,a,s,l=this;if(n(this,c),((null===(e=window.gdlocus)||void 0===e?void 0:e.firstUserAction)||t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:console.log("gd-adflow locus-first-user-action is not defined");case 1:case"end":return e.stop()}}),e)}))))({game_id:r.gameId}).catch(function(e){n(this,l),console.log("gd-adflow locus-first-user-action error",e)}.bind(this)),i){var f=new Date;f.setDate(f.getDate()+90),document.cookie="ogdpr_tracking=1; expires=".concat(f.toUTCString(),"; path=/")}if(this._hideCMPButton(),KL("play"),u)window.gdsdk.showAd(rt.Interstitial,{position:"preroll"}).catch(function(e){n(this,l),o.hide()}.bind(this));else{var p={position:"preroll"};(function(){n(this,l),uc.firstAdapterModeAdsense&&(console.log("promo-test, set first adapter to adssense 1"),p.adapter="adsense")}).bind(this),this.showAd(rt.Interstitial,p).catch(function(e){n(this,l)}.bind(this))}null!==(a=this._gameData)&&void 0!==a&&null!==(s=a.evnts)&&void 0!==s&&s.enabled&&(IL({event:"FirstInteraction",game:this._gameData}),this._send_gametag_data("first_interaction"))}.bind(this)),this.onPauseGame("Pause the game and wait for a user gesture","success"),this.eventBus.subscribe("SDK_GAME_PAUSE",function(){n(this,c),o.hide()}.bind(this)),this.eventBus.subscribe("SDK_GAME_START",function(){n(this,c),o.hide()}.bind(this));case 12:case"end":return e.stop()}}),e,this)}))),function(e,t){return p.apply(this,arguments)})},{key:"_createPromoBeforeSplash",value:(f=t(d.mark((function e(t,r){var i,a,o,s,u=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this._createPrerollPromoTemplate(t);case 3:o=e.sent,(s=new o(oB(oB({},this.options),{},{isConsentDomain:r,version:nc.version,template:null===(i=t.promo)||void 0===i||null===(a=i.template)||void 0===a?void 0:a.preroll}),t)).on("done",function(){n(this,u),s.hide(),this._createSplash(t,r)}.bind(this)),s.on("promoButtonClicked",function(){n(this,u),s.hide(),this.onResumeGame("Resumed after the promo","warning")}.bind(this)),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(0),console.log(e.t0),this._createSplash(t,r);case 13:case"end":return e.stop()}}),e,this,[[0,9]])}))),function(e,t){return f.apply(this,arguments)})},{key:"_createPromo",value:(c=t(d.mark((function e(t,r){var i,a,o,s,u=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this._createPrerollPromoTemplate(t);case 3:o=e.sent,(s=new o(oB(oB({},this.options),{},{isConsentDomain:r,version:nc.version,template:null===(i=t.promo)||void 0===i||null===(a=i.template)||void 0===a?void 0:a.preroll}),t)).on("done",function(){n(this,u),s.hide(),this.onResumeGame("Resumed after the promo","warning")}.bind(this)),s.on("promoButtonClicked",function(){n(this,u),s.hide(),this.onResumeGame("Resumed after the promo","warning")}.bind(this)),this.onPauseGame("Pause the game for the promo","success"),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),this.onResumeGame("Resumed after the promo","warning");case 13:case"end":return e.stop()}}),e,this,[[0,10]])}))),function(e,t){return c.apply(this,arguments)})},{key:"showBanner",value:function(){var e=this;this.showAd(rt.Interstitial).catch(function(){n(this,e)}.bind(this))}},{key:"IscForwardShowAd",value:(u=t(d.mark((function e(t){var n,r,i,a,o,s,u,c,l,f=arguments;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=f.length>1&&void 0!==f[1]?f[1]:{},a={forwarded:r=!1,result:i},e.prev=3,null===(o=this._gameData)||void 0===o||null===(s=o.isv_fw)||void 0===s?void 0:s.enabled){e.next=7;break}return e.abrupt("return",a);case 7:return e.next=10,nR();case 10:if(u=e.sent){e.next=13;break}return e.abrupt("return",a);case 13:return e.next=16,u.isLoader();case 16:if(c=e.sent,l=u.hasRouter(),c||!l){e.next=26;break}return oc("[GD-IS] forwarding ad call",{location:window.location.href}),r=!0,e.next=25,u.showAd({adType:t,params:n});case 25:i=e.sent;case 26:e.next=32;break;case 29:e.prev=29,e.t0=e.catch(3),ac("[GD-IS] error on showAd forward",e.t0);case 32:return e.abrupt("return",{forwarded:r,result:i});case 33:case"end":return e.stop()}}),e,this,[[3,29]])}))),function(e){return u.apply(this,arguments)})},{key:"showAd",value:(s=t(d.mark((function e(n){var r,i=this,a=arguments;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=a.length>1&&void 0!==a[1]?a[1]:{},e.abrupt("return",new Promise(function(){var e=t(d.mark((function e(t,a){var o,s,u,c,l,f,p,h,m;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,e.t0=null===(o=i._gameData)||void 0===o?void 0:o.igs,!e.t0){e.next=6;break}return e.next=5,rR();case 5:e.t0=e.sent;case 6:if(!e.t0){e.next=10;break}return oc("[GD-IS-IGS] store-visible so ad was skipped",{loc:window.location.href}),e.abrupt("return");case 10:return e.next=12,i.IscForwardShowAd(n,r);case 12:if(u=e.sent,c=u.forwarded,l=u.result,!c){e.next=18;break}return t(l),e.abrupt("return");case 18:return KL("play"),f={adType:n||"interstitial",params:r,adTimestamp:i.adRequestTimer},e.next=24,i.sdkReady;case 24:return p=e.sent,e.next=27,i.videoAdReady;case 27:if(null!==(s=i._gameData.lp)&&void 0!==s&&s.load||i._sendLoadedEvent(1),i._sendGamedockGamePlay(),i._rejectAdIfGameBlocked({gameData:p,adRequest:f}),i._rejectAdIfUnsupportedType({adRequest:f}),"rewarded"===n&&i._setGameRewardedFlag(),null!=r&&r.isGift||null!=r&&r.isCompensation||i._rejectAdIfAdRateHits({gameData:p,adRequest:f}),r&&(r.isGift||r.isMidrollPlus||r.isCompensation)||!i.adBlockerPage||(i._setAdRequestTimer(),i.adBlockerPage.show()),i.adInstance.attachAfgPosition(f),!i._autoResumeIfAdsAreDisabled(WL(f))){e.next=39;break}return e.abrupt("return",t());case 39:if(i._rejectAdIfAdDisabled({gameData:p,adRequest:f}),!i.adFlowRunning){e.next=42;break}return e.abrupt("return",t());case 42:return i.adFlowRunning=!0,h=new OM(i),i._adFlow=h,e.next=47,h.runAdFlow(f);case 47:m=e.sent,i.adFlowRunning=!1,i._adFlow=null,t(m),i._post_message({topic:"adrequest.instream"}),e.next=61;break;case 54:e.prev=54,e.t1=e.catch(0),i.adFlowRunning=!1,i._adFlow=null,i.onAdError(e.t1.message),i.onResumeGame(e.t1.message,"warning"),a(e.t1.message);case 61:case"end":return e.stop()}}),e,null,[[0,54]])})));return function(t,n){return e.apply(this,arguments)}}()));case 2:case"end":return e.stop()}}),e)}))),function(e){return s.apply(this,arguments)})},{key:"_autoResumeIfAdsAreDisabled",value:function(e){var t,n=!1,r=null===(t=this._gameData.diagnostic)||void 0===t?void 0:t.close_ads,i=this._gameData.disableAds[e],a=r||i;return ac("gd-adflow autoresume result: adModuleDisabled,adDisabled",r,i,e,this._gameData.diagnostic,this._gameData.disableAds),a&&(this._runAutoResume(),n=!0),n}},{key:"_runAutoResume",value:function(){var e=this,t="CONTENT_PAUSE_REQUESTED",r="CONTENT_RESUME_REQUESTED";this.eventBus.broadcast(t,{name:t,message:"Auto pause when ads are disabled"}),setTimeout(function(){n(this,e),this.eventBus.broadcast(r,{name:r,message:"Auto resume when ads are disabled"}),this.onResumeGame("Advertisement(s) are cancelled. Start / resume the game.","success")}.bind(this),3e3)}},{key:"_giveGift",value:function(e){var t,n,r,i,a,o,s,u,c,d,l,f,p,h,m;switch(e){case"preroll":null!==(t=this._gameData)&&void 0!==t&&null!==(n=t.gft)&&void 0!==n&&n[e].enabled&&(null===(r=this._gameData)||void 0===r||null===(i=r.gft)||void 0===i||null===(a=i[e].durations[this._giftCount[e]])||void 0===a?void 0:a.after)===this.adInstance.adPrerollCount&&this.decideToGiveAGift(e);break;case"midroll":null!==(o=this._gameData)&&void 0!==o&&null!==(s=o.gft)&&void 0!==s&&s[e].enabled&&(null===(u=this._gameData)||void 0===u||null===(c=u.gft)||void 0===c||null===(d=c[e].durations[this._giftCount[e]])||void 0===d?void 0:d.after)===this.adInstance.adMidrollCount&&this.decideToGiveAGift(e);break;case"rewarded":null!==(l=this._gameData)&&void 0!==l&&null!==(f=l.gft)&&void 0!==f&&f[e].enabled&&(null===(p=this._gameData)||void 0===p||null===(h=p.gft)||void 0===h||null===(m=h[e].durations[this._giftCount[e]])||void 0===m?void 0:m.after)===this.adInstance.adRewardedCount&&this.decideToGiveAGift(e)}}},{key:"_setAdRequestTimer",value:function(){this.adRequestTimer=Date.now()}},{key:"clearSession",value:function(){this.adInstance.clearSession()}},{key:"_attachAfgFallback",value:function(e){var t=e.gameData,n=e.adRequest;if(!t.afg_disabled&&!n.params.hasOwnProperty("fallback_adsense"))switch(n.params.position){case"preroll":case"start":case"next":n.params.fallback_adsense=!0}}},{key:"_rejectAdIfGameBlocked",value:function(e){var t=e.gameData;if(t.bloc_gard&&!0===t.bloc_gard.enabled)throw new Error("Game or domain is blocked.")}},{key:"_rejectAdIfAdDisabled",value:function(e){var t=e.gameData,n=WL(e.adRequest);if(t.disableAds[n]||this._whitelabelPartner)throw new Error("Advertisements are disabled.")}},{key:"_rejectAdIfUnsupportedType",value:function(e){var t=e.adRequest;if(t.adType){if(t.adType!==rt.Interstitial&&t.adType!==rt.Rewarded)throw new Error("Unsupported an advertisement type: ",t.adType)}else t.adType=rt.Interstitial}},{key:"_rejectAdIfRewardedDisabled",value:function(e){var t=e.gameData;if(e.adRequest.adType===rt.Rewarded&&!t.rewardedAds)throw new Error("Rewarded ads are disabled.")}},{key:"_rejectAdIfAdRateHits",value:function(e){var t,n,r,i,a,o,s=e.gameData,u=e.adRequest,c=null;u.adType===rt.Interstitial&&null!==(t=s.diagnostic)&&void 0!==t&&null!==(n=t.useMidrollIndex)&&void 0!==n&&n.enabled&&this.adInstance.noPreroll?this.adInstance.adMidrollCount>(null===(r=s.diagnostic)||void 0===r||null===(i=r.useMidrollIndex)||void 0===i?void 0:i.indexes.length)-1||(c=6e4*(null===(a=s.diagnostic)||void 0===a||null===(o=a.useMidrollIndex)||void 0===o?void 0:o.indexes[this.adInstance.adMidrollCount])):c=s.midroll;if(u.adType===rt.Interstitial&&void 0!==this.adRequestTimer&&Date.now()-this.adRequestTimer<c)throw new Error("The advertisement was requested too soon.")}},{key:"preloadAd",value:(o=t(d.mark((function e(n){var r=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=t(d.mark((function e(t,i){var a,o;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,r.sdkReady;case 3:return a=e.sent,e.next=6,r.videoAdReady;case 6:if(!a.bloc_gard||!0!==a.bloc_gard.enabled){e.next=8;break}throw new Error("Game or domain is blocked.");case 8:if(!a.disableAds[n]&&!r._whitelabelPartner){e.next=10;break}throw new Error("Advertisements are disabled for this ad type => ".concat(n,"..."));case 10:if(n){e.next=14;break}n=rt.Rewarded,e.next=16;break;case 14:if(n===rt.Interstitial||n===rt.Rewarded){e.next=16;break}throw new Error("Unsupported an advertisement type:"+n);case 16:if(!r.adInstance){e.next=22;break}return e.next=19,r.adInstance.preloadAd(n);case 19:e.t0=e.sent,e.next=23;break;case 22:e.t0="gdsdk://preloaded";case 23:o=e.t0,t(o),e.next=30;break;case 27:e.prev=27,e.t1=e.catch(0),i(e.t1);case 30:case"end":return e.stop()}}),e,null,[[0,27]])})));return function(t,n){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)}))),function(e){return o.apply(this,arguments)})},{key:"cancelAd",value:(a=t(d.mark((function e(){var n=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=t(d.mark((function e(t,r){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{n.adInstance.cancel(),n.onResumeGame("Advertisement(s) are cancelled. Start / resume the game.","success"),r()}catch(e){n.onResumeGame("Advertisement(s) are cancelled. Start / resume the game.","success"),t(e.message)}case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)}))),function(){return a.apply(this,arguments)})},{key:"showDisplayAd",value:function(e){var n=this;return new Promise(function(){var r=t(d.mark((function t(r,i){var a;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,n.sdkReady;case 3:return a=t.sent,t.next=6,n.videoAdReady;case 6:if(!a.dAds.enabled){t.next=13;break}return t.next=9,n.adInstance.loadDisplayAd(e);case 9:n._post_message({topic:"adrequest.display"}),r(),t.next=14;break;case 13:i("Display-Ads are disabled.");case 14:t.next=19;break;case 16:t.prev=16,t.t0=t.catch(0),i(t.t0.message||t.t0);case 19:case"end":return t.stop()}}),t,null,[[0,16]])})));return function(e,t){return r.apply(this,arguments)}}())}},{key:"onResumeGame",value:function(e,t){var n,r;try{this._allowExternals({enabled:!1}),this.options.resumeGame()}catch(e){console.log("gd-adflow error onResumeGame",e),yt("DEVELOPER_ERROR",e.message,"warning")}var i="SDK_GAME_START";this.eventBus.broadcast(i,{name:i,message:e,status:t,analytics:{category:"SDK",action:i,label:this.options.gameId+""},adPosition:null===(n=this.adInstance)||void 0===n?void 0:n._findAdPosition()}),this.adInstance&&this.adInstance._hideAddResume(),this.adInstance&&this.adInstance._hideAdSpinner(),this.adInstance&&this.adInstance._clearTimeoutForSkipAddButton(),null===(r=this._gameData.evnts)||void 0===r||!r.enabled||this._isMasterGameURL()&&!this._isExtHostedGameURL()||(IL({event:"GameStarted",game:this._gameData}),this._send_gametag_data("game_started"))}},{key:"onPauseGame",value:function(e,t){var n;this._allowExternals({enabled:!0});try{this.options.pauseGame()}catch(e){yt("DEVELOPER_ERROR",e.message,"warning")}var r="SDK_GAME_PAUSE";this.eventBus.broadcast(r,{name:r,message:e,status:t,analytics:{category:"SDK",action:r,label:this.options.gameId+""}}),null===(n=this._gameData.evnts)||void 0===n||!n.enabled||this._isMasterGameURL()&&!this._isExtHostedGameURL()||(IL({event:"GamePaused",game:this._gameData}),this._send_gametag_data("game_paused"))}},{key:"onRewardedWatchComplete",value:function(){this.eventBus.broadcast("SDK_REWARDED_WATCH_COMPLETE",{message:"",status:"success"})}},{key:"onAdError",value:function(e){this.eventBus.broadcast("AD_ERROR",{message:e,status:"error"})}},{key:"openConsole",value:function(){try{new Ot(this).start(),gt.set("gd_debug_ex",!0)}catch(e){console.log(e)}}},{key:"_initBlockingExternals",value:function(){var e=this._gameData;(e.failed||e.block_exts&&e.block_exts.enabled)&&(this.window_open=window.open,this._allowExternals({enabled:!1}),this._removeExternalsInHtml({enabled:!1}))}},{key:"_checkFullscreen",value:function(){var e=this;try{var t=this._gameData;t.sdk.fullscreen&&"auto"===t.sdk.fullscreen&&document.addEventListener("click",function(){if(n(this,e),!this._isFullScreen){var t=document.body,r=t.requestFullScreen||t.webkitRequestFullScreen||t.mozRequestFullScreen||t.msRequestFullscreen;if(r)r.call(t);else if(void 0!==window.ActiveXObject){var i=new ActiveXObject("WScript.Shell");null!==i&&i.SendKeys("{F11}")}this._isFullScreen=!0}}.bind(this))}catch(e){console.log("Fullscreen error handled...",e)}}},{key:"_allowExternals",value:function(e){var t=this;void 0!==this.window_open&&(!1===e.enabled?window.open=function(e){n(this,t),this.msgrt.send("external",{message:"C> ".concat(e)}),(e.startsWith("https://play.google.com")||e.startsWith("https://itunes.apple.com"))&&this.window_open.call(null,e)}.bind(this):window.open=this.window_open)}},{key:"_shouldAllowExternalUrl",value:function(e){var t,r,i=this,a=new C(e),o=a.host;return a.href,r=((null===(t=this._gameData.urlBlockExc)||void 0===t?void 0:t.hosts)||[]).some(function(e){return n(this,i),e===o}.bind(this)),r}},{key:"_removeExternalsInHtml",value:function(e){var t=this;!1===e.enabled&&window.document.querySelectorAll("a").forEach(function(e){var r=this;n(this,t);var i=!!(e.innerText.toLowerCase().includes("start")||e.innerText.toLowerCase().includes("play")||e.innerText.toLowerCase().includes("continue")),a=e.getAttribute("href");if(!this._shouldAllowExternalUrl(a)){var o=e.getAttribute("href");e.removeAttribute("href"),i||(e.onclick=function(e){return n(this,r),e.preventDefault(),this.msgrt.send("external",{message:"H> ".concat(o)}),!1}.bind(this))}}.bind(this))}},{key:"_getBridgeContext",value:function(){var e=this._isTokenGameURL(),t=this._isMasterGameURL(),n=this._isExtHostedGameURL(),r=e||n?this._getTokenGameURLConfig():{};r=r||{};var i=decodeURIComponent((e||n)&&r.parentURL?r.parentURL:ot()),a=decodeURIComponent((e||n)&&r.parentDomain?r.parentDomain:at()),o=decodeURIComponent((e||n)&&r.topDomain?r.topDomain:n&&0===pt()?a:vt()),s=(e||n)&&r.loaderEnabled,u=(e||n)&&r.loaderEnabled,c=(e||n)&&r.loaderEnabled,d=(e||n)&&r.loaderEnabled,l=(e||n)&&r.loaderEnabled,f=(e||n)&&r.loaderEnabled,p=(e||n)&&r.loaderEnabled,h=(e||n)&&r.loaderEnabled,m=(e||n)&&r.loaderEnabled&&r.hasImpression&&r.version>="1.1.24";return{isTokenGameURL:e,isMasterGameURL:t,isExtHostedGameURL:n,noConsoleBanner:s,noLoadedEvent:u,noBlockerEvent:c,noPreroll:h,parentURL:i,parentDomain:a,topDomain:o&&o.length?o:a,noGAPageView:d,noLotamePageView:l,noGamedockSDK:f,noMinijuegosSDK:p,version:r.version,pauseGameOnStartup:m,depth:pt(),domainMatched:a===o,exports:{formatTokenURLSearch:this._formatTokenURLSearch.bind(this),extendUrlQuery:this._extendUrlQuery.bind(this),base64Encode:this._base64_encode.bind(this)}}}},{key:"_isHostHTML5Domain",value:function(){var e=new C(location.href);return"html5.gamedistribution.com"===(null==e?void 0:e.host.toLowerCase())}},{key:"_isExternalHoster",value:function(){var e,t;return null===(e=this._gameData)||void 0===e||null===(t=e.extHosting)||void 0===t?void 0:t.enabled}},{key:"_whichFrame",value:function(){return(this._isMasterGameURL()||this._isExtHostedGameURL())&&!this._isTokenGameURL()?"loader-frame":"game-frame"}},{key:"_isMasterGameURL",value:function(){var e=/http[s]?:\/\/(html5\.gamedistribution\.com\/[A-Fa-f0-9]{32})(.*)$/i;return e.test(location.href)||!this._isTokenGameURL()&&e.test(document.referrer)}},{key:"_checkTokenGameUrl",value:function(){var e=C(location.href),t=e.origin,n=e.pathname,r="".concat(t).concat(n);return/http[s]?:\/\/(html5\.gamedistribution\.com\/[A-Za-z0-9]{8})\/(.*)$/i.test(r)}},{key:"_isTokenGameURL",value:function(){var e,t=/http[s]?:\/\/(html5\.gamedistribution\.com\/[A-Za-z0-9]{8})\/(.*)$/i,n="1"===(null===(e=C(location.href,!0).query)||void 0===e?void 0:e.rd);return t.test(location.href)||!n&&t.test(document.referrer)}},{key:"_isExtHostedGameURL",value:function(){var e=/^http[s]?:\/\/.*?gd_sdk_referrer_url=.*$/i;return e.test(location.href)||e.test(document.referrer)}},{key:"_isLoaderGameURL",value:function(){return/http[s]?:\/\/(html5\.gamedistribution\.com\/[A-Fa-f0-9]{32})(.*)$/i.test(location.href)&&location.href.startsWith("https://html5.gamedistribution.com")}},{key:"_getTokenGameURLConfig",value:function(){try{var e,t=/http[s]?:\/\/html5\.gamedistribution\.com\/[A-Za-z0-9]{8}\/[A-Fa-f0-9]{32}\/.*/i;if(t.test(location.href)){var n=new C(location.href,!0);if(!n.query.gd_zone_config)return;e=n.query.gd_zone_config}else if(t.test(document.referrer)){var r=new C(document.referrer,!0);if(!r.query.gd_zone_config)return;e=r.query.gd_zone_config}else{var i=new C(location.href,!0);if(!i.query.gd_zone_config)return;e=i.query.gd_zone_config}return JSON.parse(nt.decode(decodeURIComponent(e)))}catch(e){}}},{key:"_getSplashTemplate",value:function(e){var t=e.splash;return new YP(t).splash()}},{key:"_createPrerollPromoTemplate",value:(i=t(d.mark((function e(t){var n,r,i,a,o;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=null===(n=t.promo)||void 0===n?void 0:n[null===(r=t.promo)||void 0===r||null===(i=r.template)||void 0===i?void 0:i.preroll],o=new WP(a),e.abrupt("return",o.promo());case 3:case"end":return e.stop()}}),e)}))),function(e){return i.apply(this,arguments)})},{key:"_formatTokenURLSearch",value:function(e){var t="";try{t=encodeURIComponent(nt.encode(JSON.stringify(e)))}catch(e){}try{var n=new C(location.href,!0);return n.query=n.query||{},n.query.gd_zone_config=t,"?".concat(l.stringify(n.query))}catch(e){return"?gd_zone_config=".concat(t)}}},{key:"_extendUrlQuery",value:function(e,t){var n=new C(e,!0);return n.query=oB(oB({},n.query),t),n.toString()}},{key:"_base64_encode",value:function(e){return nt.encode(JSON.stringify(e))}},{key:"session",value:function(){var e=this;return new Promise(function(){var n=t(d.mark((function t(n,r){var i;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.sdkReady;case 3:t.next=7;break;case 5:t.prev=5,t.t0=t.catch(0);case 7:i=e._gameData,n({ads:{display:{enabled:i.dAds.enabled},rewarded:{enabled:i.rewardedAds}},location:{parentDomain:e._bridge.parentDomain,topDomain:e._bridge.topDomain,parentURL:e._bridge.parentURL,depth:e._bridge.depth,loadedByGameZone:e._bridge.isTokenGameURL}});case 9:case"end":return t.stop()}}),t,null,[[0,5]])})));return function(e,t){return n.apply(this,arguments)}}())}},{key:"sendGenericEvent",value:function(e){console.log("Received generic event",e,this._isMasterGameURL());try{var t,n;if("track-milestone"==e.eventName)cB.tracking.trackEvent("milestoneAchieved",{pageId:this.options.gameId,pageType:"game",isAuthorized:null===(t=e.data)||void 0===t?void 0:t.isAuthorized,milestoneDescription:null===(n=e.data)||void 0===n?void 0:n.milestoneDescription});else if("game_event"==e.eventName)return this._gameEventPostMessage(e)}catch(e){console.log(e.message)}}},{key:"_gameEventPostMessage",value:function(e){if(void 0!==e.data.level&&this._numberValidator(e.data.level))if(void 0!==e.data.score&&this._numberValidator(e.data.score)){var t={type:e.eventName,data:e.data};window.location!==window.top.location&&window.top.postMessage(t,"*")}else console.log("Level data type should be number!");else console.log("Level data type should be number!")}},{key:"_numberValidator",value:function(e){return"number"==typeof e&&/^\d*$/.test(e)}},{key:"_getisMobile",value:function(){var e,t=!1;return e=navigator.userAgent||navigator.vendor||window.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))&&(t=!0),!1===t&&window.orientation>-1&&(t=!0),t}},{key:"_get_game_thumbnail_url",value:function(){var e=this,t=this._gameData,r=t.assets.find(function(t){return n(this,e),t.hasOwnProperty("name")&&512===t.width&&512===t.height}.bind(this));return r||(r=t.assets.length>0?t.assets[0]:{name:"logo.svg"}),"https://img.gamedistribution.com/".concat(r.name)}},{key:"_post_message",value:function(e){var t,n=e.topic,r=e.data,i=null!==(t=location.ancestorOrigins)&&void 0!==t&&t.length?location.ancestorOrigins[location.ancestorOrigins.length-1]:"*";try{var a=window.top||window.parent;a&&a.postMessage({source:"gdsdk",topic:n,data:r},i)}catch(e){console.error((null==e?void 0:e.message)||e)}}},{key:"fixScore",value:function(){var e,t,r,i,a=this;if(null===(e=this._gameData)||void 0===e||null===(t=e.fix_score)||void 0===t?void 0:t.enabled){var o=(null===(r=this._gameData)||void 0===r||null===(i=r.fix_score)||void 0===i?void 0:i.wait)||10;setTimeout(function(){var e=this;n(this,a),this.showAd(rt.Interstitial,{position:"midroll"}).catch(function(t){n(this,e)}.bind(this))}.bind(this),1e3*o)}}},{key:"executeCompensation",value:(r=t(d.mark((function e(r){var i,a,o,s,u,c,l=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=(null==r?void 0:r.whenAvailable)||!1,a=!this.adInstance.requestRunning&&!this.adFlowRunning,o=function(){var e=t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l.showAd(rt.Interstitial,{position:"midroll",isCompensation:!0});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!a){e.next=10;break}return e.next=7,o();case 7:return s=e.sent,e.abrupt("return",s);case 10:if(!i){e.next=17;break}return u=!1,e.next=15,new Promise(function(e,r){var i=this;n(this,l);var a=!1,s=setInterval(t(d.mark((function t(){var n;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i.adInstance.requestRunning||i.adFlowRunning){t.next=19;break}return clearInterval(s),t.prev=4,t.next=7,o();case 7:n=t.sent,a=!0,e(n),u=!0,t.next=19;break;case 14:t.prev=14,t.t0=t.catch(4),ac("[compensation] execution error after became available",t.t0),e({err:t.t0,success:!1}),u=!0;case 19:case"end":return t.stop()}}),t,null,[[4,14]])}))),1e3);setTimeout(function(){n(this,i),a||u||e({success:!1})}.bind(this),6e4)}.bind(this));case 15:return c=e.sent,e.abrupt("return",c);case 17:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"decideToGiveAGift",value:function(e){var r=this;try{var i,a=null===(i=this._gameData)||void 0===i?void 0:i.gft[e],o="gift";if(!dM({rateType:o,gameData:this._gameData}))return void ac("[compensation] rate check did not pass for ".concat(o));ac("[compensation] rate check passed for ".concat(o));var s=setInterval(t(d.mark((function t(){var i=this;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r.adInstance.requestRunning||r.adFlowRunning?console.log("Advertisement already running..."):(ac("gd-adflow WILL GIVE GIFT!!!"),r.showAd(rt.Interstitial,{position:e,isGift:!0}).catch(function(e){n(this,i)}.bind(this)),clearInterval(s),r._giftCount[e]++);case 1:case"end":return t.stop()}}),t,this)}))),1e3*a.durations[this._giftCount[e]].wait)}catch(e){console.log("Advertisement Error...")}}},{key:"send_atom_event",value:function(e,t){this.adInstance._send_atom_event(e,t)}},{key:"get_session_id",value:function(){return sB}},{key:"get_ad_system_init_result",value:function(){return{afg:this.adInstance.afgInitSuccess,ima:this.adInstance.imaInitSuccess}}},{key:"_getDeveloperDomains",value:function(){var e,t;return"developer.gamedistribution.com"===this._topDomain||"developer-acc.gamedistribution.com"===this._topDomain?e=this._topDomain:!0===new RegExp("^localhost").test(this._parentDomain)&&(e="localhost"),e&&(t={"developer-acc.gamedistribution.com":"game-api-acc-real-aws.gamedistribution.com","developer.gamedistribution.com":"game.api.gamedistribution.com",localhost:"game-api-acc-real-aws.gamedistribution.com"}[e]),{developerDomain:e,gameApiDomain:t}}},{key:"_setGameRewardedFlag",value:function(){try{var e=this._getDeveloperDomains(),t=e.developerDomain,n=e.gameApiDomain;if(t){fetch("https://".concat(n,"/game/v2/hasrewarded/").concat(this.options.gameId,"?timestamp=").concat((new Date).valueOf()));try{var r=JSON.stringify({type:"GD_SDK_REWARDED_SET",gameID:this.options.gameId});window.location!==window.top.location?window.top.postMessage(r,"*"):null!==window.opener&&window.opener.location!==window.location&&window.opener.postMessage(r,"*")}catch(e){}}}catch(e){}}},{key:"_getGdModeIfExist",value:function(){var e=this,t=new Proxy(new URLSearchParams(window.location.search),{get:function(t,r){return n(this,e),t.get(r)}.bind(this)});return!t.gd_mode&&window.location.search.includes("gd_mode")?window.location.search.split("gd_mode=")[1]:t.gd_mode}},{key:"_executeMidrollPlus",value:function(){var e,t=this;if(!(this.adInstance&&this.adInstance.checkIfTestAdsExist())){if(dM({rateType:"midroll+",gameData:this._gameData})&&null!==(e=this._gameData.midroll_plus)&&void 0!==e&&e.enabled&&!this.isMidrollPlusExecuted){var r;this.isMidrollPlusExecuted=!0;var i=this._gameData.midroll_plus.type||"midroll";if(null!==(r=this._gameData.midroll_plus)&&void 0!==r&&r.interval)var a=setInterval(function(){var e,r,o=this;(n(this,t),this.adFlowRunning)||(this.showAd(rt.Interstitial,{position:"midroll",giftType:i,isMidrollPlus:!0}).catch(function(e){n(this,o)}.bind(this)),this._mplus_count++,"infinite"!==(null===(e=this._gameData.midroll_plus)||void 0===e?void 0:e.interval)&&this._mplus_count===(null===(r=this._gameData.midroll_plus)||void 0===r?void 0:r.interval)&&clearInterval(a))}.bind(this),6e4*this._gameData.midroll_plus.timer);else setTimeout(function(){var e=this;n(this,t),this.showAd(rt.Interstitial,{position:"midroll",giftType:i,isMidrollPlus:!0}).catch(function(t){n(this,e)}.bind(this))}.bind(this),this._gameData.midroll)}}}}]),e}();function lB(){return lB=t(d.mark((function e(){var t,r=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,pI();case 2:if(e.sent){e.next=6;break}return console.log("locus-disabled on proxy level"),e.abrupt("return");case 6:t=["https://pm.azerioncircle.com/p/locus/"],console.log("locus loading"),ft(t[0],"locus",{alternates:t}).catch(function(e){n(this,r),this._sendSDKError(e)}.bind(this));case 9:case"end":return e.stop()}}),e,this)}))),lB.apply(this,arguments)}var fB,pB=new hD.exports.EventEmitter,hB=function(e){var t=this;!function(){lB.apply(this,arguments)}();var r,i=function(e){var r=this;return n(this,t),new Promise(function(t,i){var a=this;n(this,r);var o=function(e){n(this,a),"SDK_GAME_START"===e.name&&(pB.off("sdk-event",o),t())}.bind(this);pB.on("sdk-event",o),v("showAd",{adType:e})}.bind(this))}.bind(this),a=function(){return n(this,t),r||(r=new dB(e)),r}.bind(this),o=function(){var e;return n(this,t),(null===(e=window.gdsdk.store)||void 0===e?void 0:e.isVisible)&&window.gdsdk.store.isVisible()}.bind(this),s=function(e){if(n(this,t),!o())return i(e);oc("[GD-IS-IGS] store-visible so ad was skipped",{loc:window.location.href})}.bind(this),u=function(e){return n(this,t),"gdsdk://preloaded"}.bind(this),c=function(e){return n(this,t),a().showDisplayAd(e)}.bind(this),d=function(){return n(this,t),v("cancelAd")}.bind(this),l=function(){return n(this,t),v("openConsole")}.bind(this),f=function(){return n(this,t),v("showBanner")}.bind(this),p=function(){return n(this,t),v("session")}.bind(this),h=function(e){return n(this,t),v("sendGenericEvent",{options:e})}.bind(this),m=function(){n(this,t),console.log("_sendSDKReady")}.bind(this),v=function(e,r){var i=this;return n(this,t),r||(r={}),new Promise(function(t,a){n(this,i);try{var o={type:"gd-sdk",method:e,options:r};window.parent.postMessage(o,"*"),t()}catch(e){console.log("gd:adp:m:s:error",e),t()}}.bind(this))}.bind(this),g=function(){n(this,t);window.addEventListener("message",(function(e){var t=e.data;e.origin,e.source;var n=t.type,r=t.event;"gd-sdk-on-event"===n&&r&&b(r)}),!1)}.bind(this),A=function(){n(this,t),g(),v("init")}.bind(this),b=function(r){n(this,t);try{pB.emit("sdk-event",r),e.onEvent&&(oc("[developer-event]".concat(r.isStoreEvent?"[store]":""),{name:r.name,data:r.data,source:"proxy"}),e.onEvent(r)),"SDK_GAME_PAUSE"===r.name?e.pauseGame&&e.pauseGame():"SDK_GAME_START"===r.name&&e.resumeGame&&e.resumeGame()}catch(e){console.log("DEVELOPER ERROR on forwarder-sdk")}}.bind(this);return{showBanner:f,showAd:s,preloadAd:u,showDisplayAd:c,cancelAd:d,openConsole:l,getSession:p,onEvent:b,init:A,_sendSDKReady:m,sendGenericEvent:h}},mB=function(){var e=t(d.mark((function e(t){var r,i=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=hB(t)).init(),e.next=4,WI({whichFrame:"game-frame",options:{onEvent:r.onEvent.bind(r)}});case 4:return dR({onEvent:function(e){n(this,i);var t=e.name,a=e.data;(r.onEvent({name:t,message:"In Game Store: ".concat(t),status:"success",data:a,isStoreEvent:!0}),"STORE_UI_VISIBILITY_CHANGED"===t)&&(a.visible?r.onEvent({name:"SDK_GAME_PAUSE",message:"SDK_GAME_PAUSE",status:"success"}):r.onEvent({name:"SDK_GAME_START",message:"SDK_GAME_START",status:"success"}))}.bind(this)}),e.abrupt("return",r);case 6:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),vB=function(){var e=this,t=function(){n(this,e);return/http[s]?:\/\/(html5\.gamedistribution\.com\/[A-Fa-f0-9]{32})(.*)$/i.test(location.href)}.bind(this),r=function(){n(this,e);return/http[s]?:\/\/(html5\.gamedistribution\.com\/[A-Za-z0-9]{8})\/(.*)$/i.test(location.href)}.bind(this),i=function(){n(this,e);return/^http[s]?:\/\/.*?gd_sdk_referrer_url=.*$/i.test(location.href)}.bind(this),a=function(){n(this,e);var i="html5.gamedistribution.com"!==C(window.location.href).host;return t()&&!(r()||i)?"loader-frame":"game-frame"}.bind(this);return{isMasterGameURL:t,isTokenGameURL:r,isExtHostedGameURL:i,whichFrame:a}},gB="gd-sdk-frame-handshake-request",AB="gd-sdk-frame-handshake-response",bB=function(e){var t=this;return new Promise(function(e,r){var i=this;n(this,t);var a={type:gB},o=!1;window.addEventListener("message",(function(t){var n=t.data,r=t.origin,i=t.source,a=n.type;if(a===gB){var s={type:AB};i.postMessage(s,r)}else a===AB&&(o=!0,e({origin:r,source:i}))})),setTimeout(function(){n(this,i),o||e()}.bind(this),200),window.parent!==window?window.parent.postMessage(a,"*"):e()}.bind(this))},yB=function(){var e=t(d.mark((function e(){var t,n,r,i,a,o,s;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fI();case 2:return t=e.sent,e.next=6,bB();case 6:if(n=e.sent,FM.SDKExistsOnUpperFrame=!!n,t){e.next=10;break}return e.abrupt("return",!1);case 10:return r=vB(),i=r.isMasterGameURL,r.isTokenGameURL,a=i(),e.next=14,hI();case 14:return o=e.sent,s=!1,s=o?!a&&!!n:!a,e.abrupt("return",s);case 18:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),_B={},wB=function(e){try{if(e.skipForward)return void ac("gd-adflow fw-skip-forward",e);if(ac("gd-adflow fw-forwarding",e),_B.source){var t={type:"gd-sdk-on-event",event:e};_B.source.postMessage(t,_B.origin)}}catch(e){console.log("gd-sdk forwardEvent err",e)}},xB=function(){wB({name:"SDK_READY",status:"success",message:"Everything is ready."}),wB({name:"SDK_GAME_START",status:"success",message:"Advertisement(s) are done. Start / resume the game."}),wB({name:"CONTENT_RESUME_REQUESTED",status:"success",message:"Fired when content should be resumed. This usually happens when an ad finishes or collapses."})},kB=function(e){window.addEventListener("message",(function(r){var i=r.data,a=r.origin,o=r.source,s=i.type,u=i.method,c=i.options;if("gd-sdk-self"!==s){if("gd-sdk"===s){if(!_B.source&&"init"===u)return function(e){var t=e.source,n=e.origin;_B={source:t,origin:n}}({source:o,origin:a}),void xB();var l=e[u];l&&t(d.mark((function t(){var r,i=this;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,function(){n(this,i),"showAd"===u&&uc.firstAdapterModeAdsense&&"rewarded"!==c.adType&&(console.log("promo-test, set first adapter to adssense 3"),c.params=c.params?c.params:{},c.params.adapter="adsense")}.bind(this),!(r=l.apply(e,Object.values(c)))||!r.then){t.next=6;break}return t.next=6,r;case 6:t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),console.log("gd:adp:m:r onFrameMessage error",t.t0);case 11:case"end":return t.stop()}}),t,this,[[0,8]])})))()}}else{var f={type:"gd-sdk",method:u,options:c};window.postMessage(f,location.origin)}}),!1)},EB=function(e){!function(e){var t=e.onEvent;e.onEvent=function(e){wB(e),t.apply(this,arguments)}}(e);var t=new dB(e);return kB(t),t},SB=function(){function e(){O(this,e),this.moduleName="GDAeria",this.moduleConfig={source:"https://pm.azerioncircle.com/@bygd/gd-sdk-aeria/1.0.1/dist/default/iife/index.js",dependencies:[]},jb(this.moduleName,this.moduleConfig)}var n,r;return L(e,[{key:"load",value:(r=t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Fb(this.moduleName);case 3:this.module=e.sent,ac("aeria module load success",this.module),e.next=11;break;case 7:e.prev=7,e.t0=e.catch(0),console.log("aeria module load error",e.t0),this.module=null;case 11:case"end":return e.stop()}}),e,this,[[0,7]])}))),function(){return r.apply(this,arguments)})},{key:"runYMenu",value:(n=t(d.mark((function e(t){var n;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.gameId,this.module){e.next=4;break}return e.next=4,this.load();case 4:(new this.module.Aeria).renderYMenu({gameId:n});case 6:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})}]),e}(),DB=function(){var e=t(d.mark((function e(){var n,r,i,a,o,s,u,c,l,f,p,h,m,v,g,A;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=function(){var e,t=(e=new cD).get("partner.domain.value")||e.get("top.domain.value");return{isAeriaDomain:"minigame.aeriagames.jp"===t||"minigame-stg.aeriagames.jp"===t,isAeriaStagingDomain:"minigame-stg.aeriagames.jp"===t}}(),r=n.isAeriaDomain,i=n.isAeriaStagingDomain,!r){e.next=21;break}return s=function(){var e=(new cD).get("partner.url.value");return new C(e,!0)},u=function(){var e="ae-soft-323";try{var t=s(),n=t.pathname,r=n.split("/"),i=r[r.length-1];oc("aeria-ylogin:loc",t,n,i),e=i}catch(e){sc("Error on getting aeria game id",e)}return e}(),c={action:"score",data:{gameId:u,score:100},env:i?"staging":"production",system:"Softgames"},l=function(){var e=window.parent||window,t=c;e.postMessage(t,"*")},f=new Dt,e.next=13,oI();case 13:p=e.sent,h=null==p||null===(a=p.aeria)||void 0===a?void 0:a.yMenuExcluded,m=null==p||null===(o=p.aeria)||void 0===o?void 0:o.yLoginExcluded,f.subscribe("AD_FLOW_COMPLETE",(function(e){"midroll"===e.adType&&(m||l())})),v=function(){var e=t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(new SB).runYMenu({gameId:u});case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),g=vB(),A=g.whichFrame,"game-frame"===A()&&(h||v());case 21:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),IB=function(e){try{var t=lD(e);e.gameId||t.send("nogameid",{message:"".concat(t_.parentURL)})}catch(e){}},RB=function(){var e=t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,DB();case 3:e.next=8;break;case 5:e.prev=5,e.t0=e.catch(0),console.log("error on creating some bridge module");case 8:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(){return e.apply(this,arguments)}}(),CB=function(){var e=t(d.mark((function e(t){var n,r;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,IB(t),aI(t),e.next=5,yB();case 5:return n=e.sent,e.next=8,RB();case 8:if(window.isForwarderFrame=n,!n){e.next=15;break}return e.next=12,mB(t);case 12:e.t0=e.sent,e.next=16;break;case 15:e.t0=EB(t);case 16:return r=e.t0,vI(),e.abrupt("return",r);case 21:return e.prev=21,e.t1=e.catch(0),console.log("gd:adp: sdk adaptor create failed, fallback to default adapter",e.t1),e.abrupt("return",EB(t));case 25:case"end":return e.stop()}}),e,null,[[0,21]])})));return function(t){return e.apply(this,arguments)}}(),OB={create:CB};function TB(){return(TB=t(d.mark((function e(t,n){var r;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,bI();case 2:if(!e.sent){e.next=7;break}e.t0=window.gdsdk,e.next=10;break;case 7:return e.next=9,BB(t);case 9:e.t0=e.sent;case 10:return r=e.t0,e.abrupt("return",n(r));case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var PB,LB,MB=!1;function BB(e){var t=this;return new Promise(function(r,i){var a=this;if(n(this,t),fB)return r(fB);if(MB)var o=setInterval(function(){n(this,a),fB&&(MB=!1,clearInterval(o),r(fB))}.bind(this),100);else MB=!0,OB.create(e).then(function(e){n(this,a),fB=e,e._sendSDKReady(),MB=!1,r(fB)}.bind(this))}.bind(this))}function jB(e){return BB(e),{invoke:function(t){return function(e,t){return TB.apply(this,arguments)}(e,t)}}}function UB(e,r){var i=this;return new Promise(function(a,o){var s,u=this;n(this,i);var c=function(e){var t="https://pm.azerioncircle.com/pkg/@bygd/gd-sdk-wrp/dist/default/iife/index.js";return e&&(t="https://pm.azerioncircle.com/@bygd/gd-sdk-wrp/".concat(e,"/dist/default/iife/index.js")),[t]}(null==r||null===(s=r.game)||void 0===s?void 0:s.version);FB({text:"sdk-wrapper-script-load"}),ft(c[0],"gd-sdk-wrp",{alternates:c}).catch(function(e){n(this,u),FB({text:"sdk-wrapper load error",error:e.message}),this._sendSDKError(e),o(e)}.bind(this)).then(t(d.mark((function t(){var n,i;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,FB({text:"sdk-wrapper load success"}),n=window.GDSDKWRP.GDSDKWRP,i=new n,FB({text:"sdk-wrapper before gdSdkWrp.init"}),t.next=7,i.init(e,r);case 7:LB=t.sent,FB({text:"sdk-wrapper after gdSdkWrp.init"}),a(LB),t.next=16;break;case 12:t.prev=12,t.t0=t.catch(0),FB({text:"sdk-wrapper load error 2",error:t.t0.message}),o(t.t0);case 16:case"end":return t.stop()}}),t,null,[[0,12]])}))))}.bind(this))}function FB(e){try{var t={tp:"gd.wrp",args:e};fetch("https://tag.atom.gamedistribution.com/v1/dmp?ar=".concat(encodeURIComponent(nt.encode(JSON.stringify(t))))),console.log(fR(Object.values(e)))}catch(e){}}function NB(e){if(e){var t=e.name,n=e.message,r=e.status;try{FB({text:"samsung-wrp send-game-event",evt:e,hasOptions:!!PB}),PB&&PB.onEvent({name:t,message:n,status:r})}catch(t){FB({text:"samsung-wrp DEVELOPER-ERROR",evt:e,err:t})}}}function $B(e){return GB.apply(this,arguments)}function GB(){return(GB=t(d.mark((function e(t){var n,r,i,a,o,s,u,c,l;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return PB=t,aI(t),e.next=4,oI();case 4:if(a=e.sent,!LB){e.next=7;break}return e.abrupt("return",LB);case 7:if(o=null==a||null===(n=a.sdk_wrp)||void 0===n?void 0:n.enabled,s=null==a||null===(r=a.sdk_wrp)||void 0===r?void 0:r.version,u=null==a?void 0:a.gameId,c=null==a?void 0:a.title,zB("isWrapEnabled ".concat(o)),o){e.next=14;break}return e.abrupt("return");case 14:return l=null==a||null===(i=a.sdk_wrp)||void 0===i?void 0:i.wrapper,e.next=17,UB(l,{onEvent:NB,game:{gameId:u,title:c,version:s}});case 17:return LB=e.sent,e.abrupt("return",LB);case 19:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function HB(){return HB=t(d.mark((function e(t){var n,r,i;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t._get_developer_sets,zB("beforeGetDeveloperSettings"),r=n(),zB("afterGetDeveloperSettings"),e.prev=4,e.next=7,$B(r);case 7:i=e.sent,zB("after get SDK wrapper: ".concat(!!i)),i&&(zB("setting SDK Wrapper as gd-sdk"),window.sdkWrapper=i,window.gdsdk=i,window.gdApi=window.gdsdk),e.next=16;break;case 12:e.prev=12,e.t0=e.catch(4),console.log("Error on SDK wrapper init",e.t0),zB("Error on SDK wrapper init: ".concat(e.t0.message));case 16:case"end":return e.stop()}}),e,null,[[4,12]])}))),HB.apply(this,arguments)}function zB(e){window.sdkLog.push(e)}function ZB(){var e={};try{"object"===("undefined"==typeof GD_OPTIONS?"undefined":r(GD_OPTIONS))&&GD_OPTIONS?e=GD_OPTIONS:window.gdApi&&"object"===r(window.gdApi.q[0][0])&&window.gdApi.q[0][0]&&((e=window.gdApi.q[0][0]).hasOwnProperty("advertisementSettings")||(e.advertisementSettings={autoplay:!0}))}catch(e){console.log("_get_developer_sets failed",e)}return e}window.sdkLog=[],"img.samsungapps.com"===function(){var e,t,n=C(window.location.href,!0),r=n.host,i=n.query,a=r,o=null==i?void 0:i.gd_sdk_referrer_url;return o&&(o=o.startsWith("https://")||o.startsWith("http://")?o:"https://".concat(o),null!==(t=e=C(o,!0))&&void 0!==t&&t.host&&(a=e.host)),a}()?zB("skipped normal SDK init!"):(!function(){LP();var e=jB(ZB());function r(){var r=this;this.AdType=rt,this.preloadAd=function(){var r=t(d.mark((function t(r){var i,a=this;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.invoke(function(e){return n(this,a),e.preloadAd(r)}.bind(this));case 2:return i=t.sent,oc("[developer-event] preloadAd check",i),t.abrupt("return",i);case 5:case"end":return t.stop()}}),t,this)})));return function(e){return r.apply(this,arguments)}}(),this.showAd=function(){var r=t(d.mark((function t(r,i){var a,o=this;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.invoke(function(e){var t=this;if(n(this,o),r===rt.Display)return e.showDisplayAd(i);var a={};return function(){n(this,t),uc.firstAdapterModeAdsense&&(console.log("promo-test, set first adapter to adssense 2"),a.adapter="adsense")}.bind(this),e.showAd(r,a)}.bind(this));case 2:return a=t.sent,oc("[developer-event] after showAd",a),t.abrupt("return",a);case 5:case"end":return t.stop()}}),t,this)})));return function(e,t){return r.apply(this,arguments)}}(),this.cancelAd=function(){var t=this;return e.invoke(function(e){return n(this,t),e.cancelAd()}.bind(this))},this.openConsole=function(){var t=this;return e.invoke(function(e){return n(this,t),e.openConsole()}.bind(this))},this.getSession=function(){var t=this;return e.invoke(function(e){return n(this,t),e.session()}.bind(this))},this.sendEvent=function(t){var r=this;return e.invoke(function(e){return n(this,r),e.sendGenericEvent(t)}.bind(this))},this.leaderboard={show:function(){n(this,r),$b.showLeaderboard()}.bind(this),addScore:function(e){n(this,r),$b.addScore(e)}.bind(this)}}r.prototype=new function(){this.showBanner=function(){var t=this;return e.invoke(function(e){return n(this,t),e.showBanner()}.bind(this))},this.play=function(){},this.customLog=function(){}},window.gdsdk=new r,window.gdApi=window.gdsdk}(),zB("afterSDKInit")),function(e){HB.apply(this,arguments)}({_get_developer_sets:ZB})}();
|
|
39
|
+
const{deleteProperty:JS}=Reflect,XS=function(e){return"object"==typeof e?null===e:"function"!=typeof e},eD=function(e){var t,n;return!1!==QS(e)&&("function"==typeof(t=e.constructor)&&(!1!==QS(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")))},tD=e=>"object"==typeof e&&null!==e||"function"==typeof e,nD=e=>{if(!XS(e))throw new TypeError("Object keys must be strings or symbols");if((e=>"__proto__"===e||"constructor"===e||"prototype"===e)(e))throw new Error(`Cannot set unsafe key: "${e}"`)},rD=(e,t,n)=>{const r=(e=>Array.isArray(e)?e.flat().map(String).join(","):e)(t?((e,t)=>{if("string"!=typeof e||!t)return e;let n=e+";";return void 0!==t.arrays&&(n+=`arrays=${t.arrays};`),void 0!==t.separator&&(n+=`separator=${t.separator};`),void 0!==t.split&&(n+=`split=${t.split};`),void 0!==t.merge&&(n+=`merge=${t.merge};`),void 0!==t.preservePaths&&(n+=`preservePaths=${t.preservePaths};`),n})(e,t):e);nD(r);const i=oD.cache.get(r)||n();return oD.cache.set(r,i),i},iD=(e,t)=>t&&"function"==typeof t.split?t.split(e):"symbol"==typeof e?[e]:Array.isArray(e)?e:rD(e,t,(()=>((e,t={})=>{const n=t.separator||".",r="/"!==n&&t.preservePaths;if("string"==typeof e&&!1!==r&&/\//.test(e))return[e];const i=[];let a="";const o=e=>{let t;""!==e.trim()&&Number.isInteger(t=Number(e))?i.push(t):i.push(e)};for(let t=0;t<e.length;t++){const r=e[t];"\\"!==r?r!==n?a+=r:(o(a),a=""):a+=e[++t]}return a&&o(a),i})(e,t))),aD=(e,t,n,r)=>{if(nD(t),void 0===n)JS(e,t);else if(r&&r.merge){const i="function"===r.merge?r.merge:Object.assign;i&&eD(e[t])&&eD(n)?e[t]=i(e[t],n):e[t]=n}else e[t]=n;return e},oD=(e,t,n,r)=>{if(!t||!tD(e))return e;const i=iD(t,r);let a=e;for(let e=0;e<i.length;e++){const t=i[e],o=i[e+1];if(nD(t),void 0===o){aD(a,t,n,r);break}"number"!=typeof o||Array.isArray(a[t])?(tD(a[t])||(a[t]={}),a=a[t]):a=a[t]=[]}return e};oD.split=iD,oD.cache=new Map,oD.clear=()=>{oD.cache=new Map};var sD,uD=oD;function cD(e){var t=this,r={},i=(null==e?void 0:e._ancestor_origins)||window.location.ancestorOrigins,a=(null==e?void 0:e.self_url)||window.location.href,o=(null==e?void 0:e.self_origin)||window.location.origin,s=(null==e?void 0:e.referrer_url)||document.referrer;function u(e){return VS(r,e)}function c(e,t){return uD(r,e,t)}var d=function(){var e;n(this,t),function(){var e=0,t=window;try{for(;t!=t.parent;)e++,t=t.parent}catch(e){c("depth.error",e.message)}c("depth.value",e)}(),function(){var e=i,t=r.depth.value,n=o;if(c("top.domain.from","fallback"),e&&e.length>0)n=e[e.length-1],c("top.domain.from","origins");else if(0===t)n=o,c("top.domain.from","self-top");else if(1===t){var a=l(s);a&&(n=a.origin,c("top.domain.from","referrer"))}c("top.domain.value",n.replace(/^https?:\/\/(www\.)?(.*)$/i,"$2"))}(),function(){var e=f();if(e)if(HS(e))c("partner.domain.value",e),c("partner.domain.from","partner-domain");else{var t=l(e,!1);if(t)c("partner.domain.value",t.origin.replace(/^https?:\/\/(www\.)?(.*)$/i,"$2")),c("partner.domain.from","partner-url");else c("partner.domain.value",r.top.domain.value),c("partner.domain.from","partner-fallback")}else c("partner.domain.value",r.top.domain.value),c("partner.domain.from","fallback")}(),e=f(),0===r.depth.value?(c("partner.url.value",a),c("partner.url.from","self-top")):e?HS(e)?(c("partner.url.value",a),c("partner.url.from","partner-domain")):(c("partner.url.value",e),c("partner.url.from","partner-url")):(c("partner.url.value",s),c("partner.url.from","fallback"))}.bind(this);function l(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(e&&""!==e)try{return new C(e,t)}catch(e){console.log(e)}}function f(){for(var t=(null==e?void 0:e.urls)||[a,s],n=0;n<t.length;n++){var r,i=l(t[n]);if(i){var o=null===(r=i.query)||void 0===r?void 0:r.gd_sdk_referrer_url;if(o&&(o=(o=decodeURIComponent(o)).startsWith("https://")||o.startsWith("http://")?o:"https://".concat(o),gS.isURL(o)))return o}}}return d(),{get:u,print:function(e){console.log(u(e))}}}var dD,lD=function(e){var t=this;if(!sD){var r={gameId:e.gameId,hours:(new Date).getHours(),topDomain:t_.topDomain,domain:t_.parentDomain,referrer:t_.parentURL,depth:pt(),version:nc.version,byloader:t_.isTokenGameURL,isTokenGameURL:t_.isTokenGameURL,isMasterGameURL:t_.isMasterGameURL,isExtHostedGameURL:t_.isExtHostedGameURL,byloaderVersion:t_.version,tracking:n_.userDeclinedTracking,whitelabel:n_.whitelabelPartner,platform:lt()};sD=new Rt(r)}return sD||{send:function(){n(this,t)}.bind(this)}},fD={getGameData:function(e){var t=this;try{var r=e.replace("game.api.gamedistribution.com","game-api.gamedistribution.com");fetch(r).then(function(e){n(this,t)}.bind(this)).catch(function(e){n(this,t)}.bind(this))}catch(e){}},getGameLoaderIndex:function(e){var t=this;try{var r="https://html5-prod-aws.gamedistribution.com/".concat(e,"/");fetch(r).then(function(e){n(this,t)}.bind(this)).catch(function(e){n(this,t)}.bind(this))}catch(e){}}},pD={getGameData:function(e){var t=this;try{var r=e.replace("game.api.gamedistribution.com","game-api-acc-real-hwp.gamedistribution.com");fetch(r).then(function(e){n(this,t)}.bind(this)).catch(function(e){n(this,t)}.bind(this))}catch(e){}}},hD={exports:{}},mD="object"==typeof Reflect?Reflect:null,vD=mD&&"function"==typeof mD.apply?mD.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};dD=mD&&"function"==typeof mD.ownKeys?mD.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var gD=Number.isNaN||function(e){return e!=e};function AD(){AD.init.call(this)}hD.exports=AD,hD.exports.once=function(e,t){return new Promise((function(n,r){function i(n){e.removeListener(t,a),r(n)}function a(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}ID(e,t,a,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&ID(e,"error",t,n)}(e,i,{once:!0})}))},AD.EventEmitter=AD,AD.prototype._events=void 0,AD.prototype._eventsCount=0,AD.prototype._maxListeners=void 0;var bD=10;function yD(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function _D(e){return void 0===e._maxListeners?AD.defaultMaxListeners:e._maxListeners}function wD(e,t,n,r){var i,a,o,s;if(yD(n),void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),a=e._events),o=a[t]),void 0===o)o=a[t]=n,++e._eventsCount;else if("function"==typeof o?o=a[t]=r?[n,o]:[o,n]:r?o.unshift(n):o.push(n),(i=_D(e))>0&&o.length>i&&!o.warned){o.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=o.length,s=u,console&&console.warn&&console.warn(s)}return e}function xD(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function kD(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=xD.bind(r);return i.listener=n,r.wrapFn=i,i}function ED(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):DD(i,i.length)}function SD(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function DD(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function ID(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(a){r.once&&e.removeEventListener(t,i),n(a)}))}}Object.defineProperty(AD,"defaultMaxListeners",{enumerable:!0,get:function(){return bD},set:function(e){if("number"!=typeof e||e<0||gD(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");bD=e}}),AD.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},AD.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||gD(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},AD.prototype.getMaxListeners=function(){return _D(this)},AD.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var o=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw o.context=a,o}var s=i[e];if(void 0===s)return!1;if("function"==typeof s)vD(s,this,t);else{var u=s.length,c=DD(s,u);for(n=0;n<u;++n)vD(c[n],this,t)}return!0},AD.prototype.addListener=function(e,t){return wD(this,e,t,!1)},AD.prototype.on=AD.prototype.addListener,AD.prototype.prependListener=function(e,t){return wD(this,e,t,!0)},AD.prototype.once=function(e,t){return yD(t),this.on(e,kD(this,e,t)),this},AD.prototype.prependOnceListener=function(e,t){return yD(t),this.prependListener(e,kD(this,e,t)),this},AD.prototype.removeListener=function(e,t){var n,r,i,a,o;if(yD(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){o=n[a].listener,i=a;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,o||t)}return this},AD.prototype.off=AD.prototype.removeListener,AD.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,a=Object.keys(n);for(r=0;r<a.length;++r)"removeListener"!==(i=a[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},AD.prototype.listeners=function(e){return ED(this,e,!0)},AD.prototype.rawListeners=function(e){return ED(this,e,!1)},AD.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):SD.call(e,t)},AD.prototype.listenerCount=SD,AD.prototype.eventNames=function(){return this._eventsCount>0?dD(this._events):[]};var RD={prod:["html5.gamedistribution.com","revision.gamedistribution.com"],acc:["html5-acc-real-aws.gamedistribution.com","acceptance-revision.gamedistribution.com"]},CD={gameAPI:"game.api.gamedistribution.com"},OD={gameAPI:"game-api-acc-real-aws.gamedistribution.com"},TD=function(){var e=this,t=RD.acc.some(function(t){var r;return n(this,e),t===(null===(r=window.location.host)||void 0===r?void 0:r.toLowerCase())}.bind(this));return{env:t?"acc":"prod",config:t?OD:CD}},PD=function(e){var t=this,r=e.url;return new Promise(function(e,i){n(this,t);var a=new XMLHttpRequest;a.open("GET",r,!0),a.onreadystatechange=function(){if(4==a.readyState)if(200==a.status){var t=JSON.parse(a.responseText);e(t)}else i(Error("Error occured on request: ".concat(a.status,", ").concat(a.statusText)))},a.onerror=function(e){i(e)},a.send()}.bind(this))},LD=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"GD",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ObjectStore";O(this,e),this.dbName=t,this.storeName=n,this.db=null,this.init()}var r,i,a,o;return L(e,[{key:"init",value:function(){var e=this;return new Promise(function(t,r){var i=this;n(this,e);var a=indexedDB.open(this.dbName,1);a.onerror=function(e){n(this,i),console.error("Database error:",e.target.error),r(e.target.error)}.bind(this),a.onsuccess=function(e){n(this,i),this.db=e.target.result,t(this.db)}.bind(this),a.onupgradeneeded=function(e){n(this,i);var t=e.target.result;t.objectStoreNames.contains(this.storeName)||t.createObjectStore(this.storeName,{keyPath:"key"})}.bind(this)}.bind(this))}},{key:"getItem",value:(o=t(d.mark((function e(t){var r=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.db){e.next=3;break}return e.next=3,this.init();case 3:return e.abrupt("return",new Promise(function(e,i){var a=this;n(this,r);var o=this.db.transaction([this.storeName],"readonly").objectStore(this.storeName).get(t);o.onerror=function(e){n(this,a),console.error("Get item error:",e.target.error),i(e.target.error)}.bind(this),o.onsuccess=function(t){n(this,a),o.result?e(o.result.value):e(null)}.bind(this)}.bind(this)));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"setItem",value:(a=t(d.mark((function e(t,r){var i=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.db){e.next=3;break}return e.next=3,this.init();case 3:return e.abrupt("return",new Promise(function(e,a){var o=this;n(this,i);var s=this.db.transaction([this.storeName],"readwrite").objectStore(this.storeName).put({key:t,value:r});s.onerror=function(e){n(this,o),console.error("Set item error:",e.target.error),a(e.target.error)}.bind(this),s.onsuccess=function(t){n(this,o),e()}.bind(this)}.bind(this)));case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return a.apply(this,arguments)})},{key:"removeItem",value:(i=t(d.mark((function e(t){var r=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.db){e.next=3;break}return e.next=3,this.init();case 3:return e.abrupt("return",new Promise(function(e,i){var a=this;n(this,r);var o=this.db.transaction([this.storeName],"readwrite").objectStore(this.storeName).delete(t);o.onerror=function(e){n(this,a),console.error("Remove item error:",e.target.error),i(e.target.error)}.bind(this),o.onsuccess=function(t){n(this,a),e()}.bind(this)}.bind(this)));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"clear",value:(r=t(d.mark((function e(){var t=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.db){e.next=3;break}return e.next=3,this.init();case 3:return e.abrupt("return",new Promise(function(e,r){var i=this;n(this,t);var a=this.db.transaction([this.storeName],"readwrite").objectStore(this.storeName).clear();a.onerror=function(e){n(this,i),console.error("Clear store error:",e.target.error),r(e.target.error)}.bind(this),a.onsuccess=function(t){n(this,i),e()}.bind(this)}.bind(this)));case 4:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})}]),e}(),MD=function(){function e(n){var r=n.mode;O(this,e),this.setItem=function(){var e=t(d.mark((function e(t,n){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),this.getItem=function(){var e=t(d.mark((function e(t){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),"indexed-db"===r?(this.indexedStore=new LD,this.setItem=this.indexedStore.setItem.bind(this.indexedStore),this.getItem=this.indexedStore.getItem.bind(this.indexedStore)):"local-storage"===r&&(this.setItem=function(){var e=t(d.mark((function e(t,n){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",gt.set(t,n));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),this.getItem=function(){var e=t(d.mark((function e(t){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",gt.getString(t));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())}var n,r;return L(e,[{key:"set",value:(r=t(d.mark((function e(t,n){var r;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=JSON.stringify(n),e.next=3,this.setItem(t,r);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"get",value:(n=t(d.mark((function e(t){var n;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getItem(t);case 2:return n=e.sent,e.abrupt("return",n?JSON.parse(n):null);case 4:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})}]),e}();function BD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?BD(Object(n),!0).forEach((function(t){cc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var UD="_gd_vs";function FD(e){return ND.apply(this,arguments)}function ND(){return ND=t(d.mark((function e(t){var n,r,i;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.gameId,i=[],!window.indexedDB){e.next=13;break}return e.prev=3,e.next=6,KD({gameId:n});case 6:r=e.sent,e.next=13;break;case 9:e.prev=9,e.t0=e.catch(3),sc("visit-get error, indexedDb",e.t0.message),i.push(e.t0.message);case 13:if(r||!gt.available){e.next=24;break}return e.prev=14,e.next=17,WD({gameId:n});case 17:r=e.sent,e.next=24;break;case 20:e.prev=20,e.t1=e.catch(14),sc("visit-get error, Ls",e.t1.message),i.push(e.t1.message);case 24:return e.abrupt("return",jD(jD({},r),{},{errors:i}));case 25:case"end":return e.stop()}}),e,null,[[3,9],[14,20]])}))),ND.apply(this,arguments)}function $D(e){return GD.apply(this,arguments)}function GD(){return GD=t(d.mark((function e(t){var n,r,i,a;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.gameId,r=t.serverDate,a=[],!window.indexedDB){e.next=13;break}return e.prev=3,e.next=6,ZD({gameId:n,serverDate:r});case 6:i=e.sent,e.next=13;break;case 9:e.prev=9,e.t0=e.catch(3),sc("visit-update error, indexedDb",e.t0.message),a.push(e.t0.message);case 13:if(i||!gt.available){e.next=24;break}return e.prev=14,e.next=17,HD({gameId:n,serverDate:r});case 17:i=e.sent,e.next=24;break;case 20:e.prev=20,e.t1=e.catch(14),sc("visit-update error, Ls",e.t1.message),a.push(e.t1.message);case 24:return e.abrupt("return",jD(jD({},i),{},{errors:a}));case 25:case"end":return e.stop()}}),e,null,[[3,9],[14,20]])}))),GD.apply(this,arguments)}function HD(e){return zD.apply(this,arguments)}function zD(){return zD=t(d.mark((function e(t){var n,r,i,a,o,s;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.gameId,r=t.serverDate,a=new MD({mode:i="local-storage"}),e.next=5,a.get(UD);case 5:return(o=e.sent)||(o={gids:{}}),o.gids[n]||(o.gids[n]={fv:r,vc:0}),(s=o.gids[n]).vc++,s.lv=r,e.next=13,a.set(UD,o);case 13:return e.abrupt("return",{visit:s,mode:i});case 14:case"end":return e.stop()}}),e)}))),zD.apply(this,arguments)}function ZD(e){return VD.apply(this,arguments)}function VD(){return VD=t(d.mark((function e(t){var n,r,i,a,o;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.gameId,r=t.serverDate,a=new MD({mode:i="indexed-db"}),e.next=5,a.get(n);case 5:return(o=e.sent)||(o={fv:r,vc:0}),o.vc++,o.lv=r,e.next=11,a.set(n,o);case 11:return e.abrupt("return",{visit:o,mode:i});case 12:case"end":return e.stop()}}),e)}))),VD.apply(this,arguments)}function KD(e){return qD.apply(this,arguments)}function qD(){return qD=t(d.mark((function e(t){var n,r,i;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.gameId,"indexed-db",r=new MD({mode:"indexed-db"}),e.next=5,r.get(n);case 5:return(i=e.sent)||(i={fv:null,vc:0}),e.abrupt("return",i);case 8:case"end":return e.stop()}}),e)}))),qD.apply(this,arguments)}function WD(e){return YD.apply(this,arguments)}function YD(){return YD=t(d.mark((function e(t){var n,r,i,a;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.gameId,"local-storage",r=new MD({mode:"local-storage"}),e.next=5,r.get(UD);case 5:return(i=e.sent)||(i={gids:{}}),i.gids[n]||(i.gids[n]={fv:null,vc:0}),a=i.gids[n],e.abrupt("return",a);case 10:case"end":return e.stop()}}),e)}))),YD.apply(this,arguments)}function QD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function JD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?QD(Object(n),!0).forEach((function(t){cc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var XD,eI,tI,nI=new hD.exports.EventEmitter,rI=[],iI=function(e){rI.push(e)},aI=function(e){XD=lD(tI=e)},oI=function(){var e=t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(eI){e.next=7;break}return e.next=3,fI(tI);case 3:eI=e.sent,nI.emit("game-data-ready",eI),sI(),uI();case 7:return e.abrupt("return",eI);case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),sI=function(){var e,n;if(null!==(e=eI)&&void 0!==e&&null!==(n=e.aws_tst)&&void 0!==n&&n.enabled){var r,i,a,o,s;if(dI(),null!==(r=eI)&&void 0!==r&&null!==(i=r.aws_tst)&&void 0!==i&&null!==(a=i.ep)&&void 0!==a&&a.api&&null!==(o=eI)&&void 0!==o&&o.url)fD.getGameData(null===(s=eI)||void 0===s?void 0:s.url);setInterval(t(d.mark((function e(){var t;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fI(tI);case 3:eI=e.sent,ac("gd-aws-test, new game data received",null===(t=eI)||void 0===t?void 0:t.aws_tst),e.next=9;break;case 7:e.prev=7,e.t0=e.catch(0);case 9:case"end":return e.stop()}}),e,null,[[0,7]])}))),3e5)}},uI=function(){var e,n;if(null!==(e=eI)&&void 0!==e&&null!==(n=e.hwei)&&void 0!==n&&n.enabled){var r,i,a;if(dI(),null!==(r=eI)&&void 0!==r&&null!==(i=r.hwei)&&void 0!==i&&i.gameApi.enabled)pD.getGameData(null===(a=eI)||void 0===a?void 0:a.url);setInterval(t(d.mark((function e(){var t;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fI(tI);case 3:eI=e.sent,ac("gd-aws-test, new game data received",null===(t=eI)||void 0===t?void 0:t.aws_tst),e.next=9;break;case 7:e.prev=7,e.t0=e.catch(0);case 9:case"end":return e.stop()}}),e,null,[[0,7]])}))),3e5)}},cI=!1,dI=function(){if(!cI){cI=!0;var e=window.fetch;window.fetch=t(d.mark((function t(){var r,i,a,o,s,u,c,l,f,p,h,m,v,g,A,b,y,_,w,x,k,E,S,D,I,R,C,O,T,P,L,M,B,j=this,U=arguments;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(A=U.length,b=new Array(A),y=0;y<A;y++)b[y]=U[y];_=b[0],w=b[1],x=null===(r=eI)||void 0===r||null===(i=r.aws_tst)||void 0===i||null===(a=i.ep)||void 0===a?void 0:a.atm,k=null===(o=eI)||void 0===o||null===(s=o.aws_tst)||void 0===s||null===(u=s.ep)||void 0===u?void 0:u.msgrt,E=(null===(c=eI)||void 0===c||null===(l=c.hwei)||void 0===l?void 0:l.enabled)&&(null===(f=eI)||void 0===f||null===(p=f.hwei)||void 0===p?void 0:p.atom.enabled),S=(null===(h=eI)||void 0===h||null===(m=h.hwei)||void 0===m?void 0:m.enabled)&&(null===(v=eI)||void 0===v||null===(g=v.hwei)||void 0===g?void 0:g.msgrt.enabled),D=function(t,r){var i=this;n(this,j);var a=_.replace(t,r);e(a,w).then(function(){n(this,i)}.bind(this))}.bind(this);try{x&&_.indexOf("tag.atom")>0&&D("tag.atom.gamedistribution.com","atom-tag-prod-aws.gamedistribution.com"),k&&_.indexOf("msgrt.gamedistribution.com")>0&&(ac("gd-aws-test hook",null===(I=eI)||void 0===I?void 0:I.aws_tst,null===(R=eI)||void 0===R||null===(C=R.aws_tst)||void 0===C||null===(O=C.ep)||void 0===O?void 0:O.msgrt),D("msgrt.gamedistribution.com","msgrt-prod-aws.gamedistribution.com"),null!==(T=eI)&&void 0!==T&&null!==(P=T.hwei)&&void 0!==P&&null!==(L=P.msgrt)&&void 0!==L&&L.enabled&&null!==(M=eI)&&void 0!==M&&M.url&&D("msgrt.gamedistribution.com","msgrt-hwp.gamedistribution.com")),E&&_.indexOf("tag.atom")>0&&D("tag.atom.gamedistribution.com","atom-tag-acc-real-hwp.gamedistribution.com"),S&&_.indexOf("msgrt.gamedistribution.com")>0&&D("msgrt.gamedistribution.com","msgrt-hwp.gamedistribution.com")}catch(e){}return t.next=11,e(_,w);case 11:return B=t.sent,t.abrupt("return",B);case 13:case"end":return t.stop()}}),t,this)})))}},lI=["gamedistribution.com","html5.gamedistribution.com"],fI=function(e){var r=this;XD.send("gdfw.loading",{message:"loading"}),rI=[],iI("1"),iI("2"),new cD,iI("3");var i=function(){var e=this,t=new cD,r=t.get("top.domain.value"),i=t.get("partner.domain.value"),a=lI.some(function(t){return n(this,e),t===(null==i?void 0:i.toLowerCase())}.bind(this)),o=at();return(a||o!==i)&&r||i}();iI("4");var a=function(){return n(this,r),{gameId:e.gameId,disableAds:{},preroll:!0,midroll:12e4,rewardedAds:!1,title:"",tags:[],category:"",assets:[],dmain:!0,sdk:{},loader:{},splash:{},promo:{},dAds:{},pAds:{},mAds:{},rAds:{},gs_trc:{enabled:!0}}}.bind(this);iI("5");var o=function(){n(this,r);var t=s(),a=t?"&mode=".concat(t):"",o=TD().config,u="https://".concat(o.gameAPI);return"".concat(u,"/game/v4/get/").concat(e.gameId.replace(/-/g,""),"/?domain=").concat(i).concat(a,"&v=").concat(nc.version,"&localTime=").concat((new Date).getHours())}.bind(this);iI("6");var s=function(){var e=this;n(this,r);var t=new Proxy(new URLSearchParams(window.location.search),{get:function(t,r){return n(this,e),t.get(r)}.bind(this)});return!t.gd_mode&&window.location.search.includes("gd_mode")?window.location.search.split("gd_mode=")[1]:t.gd_mode}.bind(this);iI("7");var u=function(e){var t=this,r=(null==e?void 0:e.vmap_by_tags)||{},i=r.enabled,a=r.tags;if(i){var o,s,u=a||["co-op","multiplayer","IAPs"];if(e.tags.some(function(e){var r=this;return n(this,t),u.some(function(t){return n(this,r),t===e.title}.bind(this))}.bind(this)))((null===(o=e.adsc)||void 0===o||null===(s=o.t)||void 0===s?void 0:s.rspdur)||0)<1&&(e.mAds=JD(JD({},e.mAds||{}),{vmap:{enabled:!0}}),e.pAds=JD(JD({},e.pAds||{}),{vmap:{enabled:!0}}),e.rAds=JD(JD({},e.rAds||{}),{vmap:{enabled:!0}}),e.vmapByTagsApplied=!0)}},c=function(){var e=t(d.mark((function e(t){var n;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,FD({gameId:t.gameId});case 2:return n=e.sent,t.visit=n,e.abrupt("return",n);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),l=function(){var e=t(d.mark((function e(t){var n,r,i,a,o,s;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(r=t.visit)&&0===(null===(n=r.errors)||void 0===n?void 0:n.length)&&0===r.vc&&((null==t||null===(i=t.pAds)||void 0===i||null===(a=i.vmap)||void 0===a?void 0:a.enabled)&&(null==t||null===(o=t.pAds)||void 0===o||null===(s=o.vmap)||void 0===s?void 0:s.adtr))&&(t.pAds.vmap.enabled=!1);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return new Promise(function(e){var i=this;n(this,r),iI("7.1");var s=a();try{iI("7.2");var f=o();iI("7.3"),fetch(f).then(function(){var e=t(d.mark((function e(t){var n;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return iI("7.4"),e.prev=1,e.next=4,t.json();case 4:n=e.sent,e.next=13;break;case 7:return e.prev=7,e.t0=e.catch(1),ac("gameData fetch error, fallback to other ajax api",e.t0),e.next=12,PD({url:f});case 12:n=e.sent;case 13:return e.abrupt("return",n);case 14:case"end":return e.stop()}}),e,null,[[1,7]])})));return function(t){return e.apply(this,arguments)}}()).then(function(){var r=t(d.mark((function t(r){var i,a,o,p,h,m,v,g=this;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(iI("7.5"),!r.success){t.next=23;break}return p=r.result.game,iI("7.6"),h={company:p.company,gameId:p.gameMd5,slug:p.slug,pname:p.pname,dname:p.dname,status:p.status,activeStatus:p.activeStatus,description:p.description,disableAds:p.enableAds,preroll:p.preRoll,midroll:6e4*p.timeAds,rewardedAds:p.rewardedAds,title:p.title,publishedAt:p.publishedAt,tags:p.tags,category:p.category,assets:p.assets,disp_2nd_prer:p.disp_2nd_prer,ctry_vst:p.ctry_vst,ctry:p.ctry,crtv:p.crtv,dmain:p.dmain,dmn:p.dmn,aws_tst:p.aws_tst,meta:p.meta,adsc:p.adsc,igs:p.igs,adspn:rc(p.adspn)||{},__t4r:rc(p.__t4r)||{},block_exts:rc(p.push_cuda),bloc_gard:rc(p.bloc_gard),cookie:rc(p.cookie),gdpr:rc(p.gdpr),diagnostic:rc(p.diagnostic),cmp:rc(p.cmp),gft:rc(p.gft)||{},sdk:rc(p.sdk)||{},sdkfw:rc(p.sdkfw)||{},loader:rc(p.loader)||{},splash:rc(p.splash)||{},promo:rc(p.promo)||{},dAds:rc(p.dads)||{},pAds:rc(p.pads)||{},mAds:rc(p.mads)||{},rAds:rc(p.rads)||{},lp:rc(p.lp)||{},extsc:rc(p.extsc)||{},evnts:rc(p.evnts)||{},dp:rc(p.dp)||{},adflw:rc(p.adflw)||{},afgszf:rc(p.afgszf)||{},fllc:rc(p.fllc)||{},lotm:rc(p.lotm)||{},t4rc:rc(p.t4rc)||{},midroll_plus:rc(p.midroll_plus)||{},gmky:rc(p.gmky)||{},urlBlockExc:rc(p.url_blck_exc)||{},sdk_wrp:rc(p.sdk_wrp)||{},dbglg:rc(p.dbglg)||{},extHosting:rc(p.ext_hosting)||{},directTokenUse:rc(p.dtu)||{},aeria:rc(p.aeria)||{},advlm:rc(p.advlm)||{},ad_blcks:rc(p.ad_blcks)||{},rmblck:rc(p.rmblck)||{},gs_trc:rc(p.gs_trc)||{},rwskp:rc(p.rwskp)||{},isv_fw:rc(p.isv_fw)||{},ext_vst:rc(p.ext_vst)||{},fix_score:rc(p.fix_score)||{},compensation:rc(p.comps)||{},adTimer:rc(p.adtr)||{},cust_vast:rc(p.cust_vast)||{},console_logs:rc(p.c_logs)||{},disable_ads_by_cmp:rc(p.dads_by_cmp)||{},ad_skip:rc(p.adskp)||{},__t4rac:rc(p.__t4rac)||{},vmap_by_tags:rc(p.vmap_by_tags)||{},hwei:rc(p.hwei)||{}},iI("7.7"),m=it(B(s),h),iI("7.8"),u(m),t.next=11,c(m);case 11:return t.next=13,l(m);case 13:m.afg_disabled=!1===(null===(i=m.sdk)||void 0===i||null===(a=i.afg)||void 0===a?void 0:a.enabled),m.url=f,function(){n(this,g),void 0!==uc.afgEnabled&&(m.afg_disabled=!uc.afgEnabled),void 0!==uc.promoEnabled&&(m.promo=m.promo||{},m.promo=JD(JD({},m.promo),{},{rainbow:{enabled:uc.promoEnabled}}))}.bind(this),iI("7.9"),null!==(o=m.pAds)&&void 0!==o&&o.enabled&&(m.preroll=!0),iI("7.10"),XD.send("gdfw.success",{message:"success"}),e(m),t.next=27;break;case 23:s.failed=!0,v=rI[rI.length-1],XD.send("gdfw.err",{message:"".concat(v,": json error")}),e(s);case 27:case"end":return t.stop()}}),t,this)})));return function(e){return r.apply(this,arguments)}}()).catch(function(t){n(this,i);var r=rI[rI.length-1];XD.send("gdfw.err",{message:"".concat(r,": ").concat(t.message?t.message:t)}),s.failed=!0,e(s)}.bind(this))}catch(t){var p=rI[rI.length-1];XD.send("gdfw.err",{message:"".concat(p,": global ").concat(t.message?t.message:t)}),s.failed=!0,e(s)}}.bind(this))},pI=function(){var e=t(d.mark((function e(){var t,n;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,oI();case 2:return n=e.sent,e.abrupt("return",!(null==n||null===(t=n.sdkfw)||void 0===t||!t.enabled));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),hI=function(){var e=t(d.mark((function e(){var t,n,r;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,oI();case 2:return n=e.sent,r=null==n||null===(t=n.diagnostic)||void 0===t||!t.close_ga,e.abrupt("return",r);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),mI=function(){var e=t(d.mark((function e(){var t,n;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,oI();case 2:return n=e.sent,e.next=5,pI();case 5:if(e.t0=e.sent,!e.t0){e.next=8;break}e.t0=!(null==n||null===(t=n.sdkfw)||void 0===t||!t.handshake);case 8:return e.abrupt("return",e.t0);case 9:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),vI=function(){var e=t(d.mark((function e(){var t,n,r,i,a,o,s,u;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,oI();case 2:return s=e.sent,u=!(null==s||null===(t=s.extsc)||void 0===t||!t.enabled),e.abrupt("return",{enabled:u,path:u?null==s||null===(n=s.extsc)||void 0===n?void 0:n.path:"",name:u?null==s||null===(r=s.extsc)||void 0===r?void 0:r.name:"",ref:u?null==s||null===(i=s.extsc)||void 0===i?void 0:i.ref:"",loadedFlag:u?null==s||null===(a=s.extsc)||void 0===a?void 0:a.loadedFlag:void 0,loadedFlagCheck:!!u&&!(null==s||null===(o=s.extsc)||void 0===o||!o.loadedFlagCheck)});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),gI=function(){var e=t(d.mark((function e(){var t,r,i,a,o,s=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,vI();case 2:if((t=e.sent).enabled){e.next=5;break}return e.abrupt("return");case 5:return r=t.path,i=t.name,a=t.ref,e.prev=6,o={},e.next=10,ft(r,i,{error_prefix:"Blocked:",exists:function(){return n(this,s),!!a&&!!window[a]}.bind(this),attrs:o});case 10:e.next=16;break;case 12:e.prev=12,e.t0=e.catch(6),console.log("extsc: error on external partner script load",i,e.t0),yt("DEVELOPER_ERROR",e.t0,"warning");case 16:case"end":return e.stop()}}),e,this,[[6,12]])})));return function(){return e.apply(this,arguments)}}(),AI=!1,bI=!1,yI=function(){return new Promise(function(){var e=t(d.mark((function e(t,r){var i,a,o,s,u,c=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!AI){e.next=4;break}return e.abrupt("return",t(bI));case 4:AI=!0;case 5:return e.next=7,vI();case 7:if((i=e.sent).enabled){e.next=10;break}return e.abrupt("return",t(!1));case 10:if(a=i.loadedFlag,!(o=i.loadedFlagCheck)||a){e.next=13;break}return e.abrupt("return",t(!1));case 13:if(o){e.next=16;break}return bI=!0,e.abrupt("return",t(!0));case 16:s=!0,setTimeout(function(){n(this,c),s&&(s=!1,AI=!0,t(!1))}.bind(this),5e3),u=setInterval(function(){n(this,c),s&&o&&window[a]?(s=!1,AI=!0,bI=!0,clearInterval(u),t(!0)):s||clearInterval(u)}.bind(this),100);case 19:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}())};let _I=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&n[e]];return t};var wI={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(e,t,r,a,o){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new i(r,a||e,o),u=n?n+t:t;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],s]:e._events[u].push(s):(e._events[u]=s,e._eventsCount++),e}function o(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,i=[];if(0===this._eventsCount)return i;for(r in e=this._events)t.call(e,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,a=r.length,o=new Array(a);i<a;i++)o[i]=r[i].fn;return o},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,i,a,o){var s=n?n+e:e;if(!this._events[s])return!1;var u,c,d=this._events[s],l=arguments.length;if(d.fn){switch(d.once&&this.removeListener(e,d.fn,void 0,!0),l){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,t),!0;case 3:return d.fn.call(d.context,t,r),!0;case 4:return d.fn.call(d.context,t,r,i),!0;case 5:return d.fn.call(d.context,t,r,i,a),!0;case 6:return d.fn.call(d.context,t,r,i,a,o),!0}for(c=1,u=new Array(l-1);c<l;c++)u[c-1]=arguments[c];d.fn.apply(d.context,u)}else{var f,p=d.length;for(c=0;c<p;c++)switch(d[c].once&&this.removeListener(e,d[c].fn,void 0,!0),l){case 1:d[c].fn.call(d[c].context);break;case 2:d[c].fn.call(d[c].context,t);break;case 3:d[c].fn.call(d[c].context,t,r);break;case 4:d[c].fn.call(d[c].context,t,r,i);break;default:if(!u)for(f=1,u=new Array(l-1);f<l;f++)u[f-1]=arguments[f];d[c].fn.apply(d[c].context,u)}}return!0},s.prototype.on=function(e,t,n){return a(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return a(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,i){var a=n?n+e:e;if(!this._events[a])return this;if(!t)return o(this,a),this;var s=this._events[a];if(s.fn)s.fn!==t||i&&!s.once||r&&s.context!==r||o(this,a);else{for(var u=0,c=[],d=s.length;u<d;u++)(s[u].fn!==t||i&&!s[u].once||r&&s[u].context!==r)&&c.push(s[u]);c.length?this._events[a]=1===c.length?c[0]:c:o(this,a)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&o(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s}(wI);var xI=wI.exports;function kI({window:e,serviceId:t}){return e&&t?t===this.serviceId?Promise.reject(new Error("[IS] Cannot connect to self")):new Promise(((n,r)=>{const i=_I();this.transactionHandler[i]=e=>{if("object"!=typeof e.data)return;const{contextId:t,scriptId:i,serviceId:a,messageId:o,sender:s}=e.data||{};t&&i&&a&&o&&s&&0!==e.ports.length&&(e.ports[0].start(),this.router=e.ports[0],this.router.onmessage=this.handleMessage.bind(this),this.router.serviceId=a,this.router.onmessageerror=e=>{console.error(`[IS] ${this.id}: Error received from router`,e?.message||e)},this.verbose&&console.log(`[IS] ${this.id}: Communication channel established with ${s}`),this.api.proxy({method:"echo",args:{ts:Date.now()}}).then((t=>{e.data.elapsed=Date.now()-e.data.ts;const r=Date.now()-t.ts;this.verbose&&console.log(`[IS] ${this.id}: Connection echo test response received from ${s} in ${r} ms`),n(e.data.body)})).catch((e=>{r(e)})))};const a=this.createMessage({transactionId:i,method:"connect"});a.body={where:{serviceId:t}},e.postMessage(a,"*"),this.setupTransactionTimeout({transactionId:i,reject:r})})):Promise.reject(new Error("[IS] Target window and service ID are required to connect to a service"))}function EI(){}function SI(e){return e}function DI({method:e,handler:t,configurable:n=!1}){if(this.api[e])throw new Error(`[IS] Cannot register method ${e} as it is already registered.`);this.registeredHandlers[e]=t,Object.defineProperty(this.api,e,{get:()=>t,enumerable:!1,configurable:n}),this.verbose&&console.log(`[IS] ${this.id}: Registered handler for ${e}`)}function II({alias:e,method:t,service:n,configurable:r=!1}){this.api.register({method:e,handler:(e,r)=>this.api.proxy({method:t,service:n,args:e,options:r}),configurable:r}),this.verbose&&console.log(`[IS] ${this.id}: Registered proxy for ${e} to ${n}`)}const RI={services:{}};function CI({method:e,args:t,service:n,options:r={}}){return new Promise(((i,a)=>{const o=_I();this.transactionHandler[o]=e=>{e.data.elapsed=Date.now()-e.data.ts,e.data.error?a(e.data.error):i(e.data?.body)};const s=(n||"").split("/"),u=s.shift(),c=this.clients[u];if(void 0===c){if(!this.router)return delete this.transactionHandler[o],a(new Error(`No router registered for ${this.id}`));r?.callback&&this.api.register({method:o,handler:r.callback,configurable:!0});const i=this.createMessage({transactionId:o,method:e,hasCallback:!!r?.callback});t&&(i.body=t),n&&(i.service=n),this.router.postMessage(i),this.setupTransactionTimeout({transactionId:o,reject:a,timeout:r?.timeout})}else{const n=this.createMessage({transactionId:o,method:e,hasCallback:!!r?.callback});r?.callback&&this.api.register({method:o,handler:r.callback,configurable:!0}),t&&(n.body=t),s.length>0&&(n.service=s.join("/")),c.postMessage(n),this.setupTransactionTimeout({transactionId:o,reject:a,timeout:r?.timeout})}}))}function OI(){window.removeEventListener("message",this.handleMessage)}function TI({where:e,service:t}={}){if((e=e||{}).hasOwnProperty("serviceId"))if(Array.isArray(e.serviceId)){if(e.serviceId.length&&!e.serviceId.includes(t.serviceId))return!1}else if(e.serviceId!==t.serviceId)return!1;if(e.hasOwnProperty("contextId"))if(Array.isArray(e.contextId)){if(e.contextId.length&&!e.contextId.includes(t.contextId))return!1}else if(e.contextId!==t.contextId)return!1;if(e.hasOwnProperty("scriptId"))if(Array.isArray(e.scriptId)){if(e.scriptId.length&&!e.scriptId.includes(t.scriptId))return!1}else if(e.scriptId!==t.scriptId)return!1;if(e.hasOwnProperty("id"))if(Array.isArray(e.id)){if(e.id.length&&!e.id.includes(t.id))return!1}else if(e.id!==t.id)return!1;if(e.hasOwnProperty("client")){const n=Object.keys(t.clients);if(Array.isArray(e.client)){if(e.client.length&&!e.client.some((e=>n.includes(e))))return!1}else if(!n.includes(e.client))return!1}return!0}async function PI({timeout:e=1e3,interval:t=100,where:n={}}={}){const r=Date.now();let i=Math.floor(e/t);const a=BI.bind(this);for(;i>0;){const e=await a({timeout:t,where:n});if(e)return this.verbose&&console.log(`[IS] ${this.id}: Router found in ${Date.now()-r}ms`),e;i--}return this.verbose&&console.log(`[IS] ${this.id}: Router not found in ${Date.now()-r}ms`),null}function LI({window:e,timeout:t,where:n}={}){return new Promise(((r,i)=>{const a=_I();this.transactionHandler[a]=e=>{if("object"!=typeof e.data)return;const{contextId:t,scriptId:n,serviceId:i,messageId:a,sender:o}=e.data;t&&n&&i&&a&&o&&r(e.data)};const o=this.createMessage({transactionId:a,method:"are-you-router"});o.body={where:n},e.postMessage(o,"*"),this.setupTransactionTimeout({transactionId:a,reject:i,timeout:t})}))}function MI({where:e}={}){const t=RI.services,n=Object.keys(t),r=this.serviceId;for(let i=0;i<n.length;i++){const a=t[n[i]];if(a.serviceId!==r&&(TI({where:e,service:a})&&a.router_enabled))return a}return null}async function BI({timeout:e,where:t}={}){const n=MI.call(this,{where:t});if(n)return{window:window,serviceId:n.serviceId,contextId:n.contextId,scriptId:n.scriptId};let r=window.parent;for(;r!==window;){const n=await LI.call(this,{window:r,timeout:e,where:t}).catch((e=>{this.verbose&&console.log(`[IS] ${this.id}: ${e.message}`)}));if(n)return{window:r,serviceId:n.serviceId,contextId:n.contextId,scriptId:n.scriptId};if(r===r.parent)break;r=r.parent}return null}function jI({method:e}){this.api[e]&&(delete this.api[e],delete this.registeredHandlers[e],this.verbose&&console.log(`[IS] ${this.id}: Unregistered handler for ${e}`))}function UI(){return _I()}async function FI(e){const{transactionId:t,messageId:n,serviceId:r,method:i,sender:a,body:o}=e.data;if(this.serviceId===r)return;if(!TI({where:o?.where,service:this}))return;const s=new MessageChannel;s.port1.start(),this.clients[a]=s.port1,this.clients[a].onmessage=this.handleMessage.bind(this),this.clients[a].serviceId=r,this.clients[a].onmessageerror=e=>{console.error(`[IS] ${this.id}: Error received from ${a}`,e?.message||e)};const u=this.createMessage({transactionId:t,replyTo:n});u.body=o,e.source.postMessage(u,"*",[s.port2]),this.verbose&&console.log(`[IS] ${this.id}: Connection received from ${a}`);try{this.ee.emit("connected",{contextId:e.data.contextId,scriptId:e.data.scriptId,serviceId:r,service:a})}catch(e){this.verbose&&console.log(`[IS] ${this.id}: Error while emitting connected event`,e.message)}}async function NI(e){const{transactionId:t,messageId:n,serviceId:r,body:i}=e.data;if(!0!==this.router_enabled)return;if(this.serviceId===r)return;if(!TI({where:i?.where,service:this}))return;const a=this.createMessage({transactionId:t,replyTo:n});a.body=i,e.source.postMessage(a,"*")}async function $I(e){const{transactionId:t,messageId:n,method:r,service:i}=e.data,a=this.createMessage({transactionId:t,replyTo:n});try{const t=await this.api.proxy({method:r,args:e.data.body,service:i});a.body=t,e.target.postMessage(a)}catch(t){a.error=t?.message||t,e.target.postMessage(a)}}async function GI(e){const{transactionId:t,messageId:n,method:r}=e.data,i=this.registeredHandlers[r],a=this.createMessage({transactionId:t,replyTo:n});try{const t=await i(e.data.body,e.data);a.body=t,e.target.postMessage(a)}catch(t){a.error=t?.message||t,e.target.postMessage(a)}}async function HI(e){const{transactionId:t}=e.data,n=this.transactionHandler[t];delete this.transactionHandler[t],await n(e)}async function zI(e){if("object"!=typeof e.data)return;const{transactionId:t,contextId:n,scriptId:r,messageId:i,serviceId:a,method:o,service:s}=e.data;if(t&&n&&r&&i&&a)switch(this.verbose&&console.log(`[IS] ${this.id}`,e.data),o){case"connect":await FI.call(this,e);break;case"are-you-router":await NI.call(this,e);break;default:o&&s?await $I.call(this,e):o&&this.registeredHandlers[o]?await GI.call(this,e):this.transactionHandler[t]&&await HI.call(this,e)}}function ZI({transactionId:e,reject:t,timeout:n=1e3}){const r=setTimeout((()=>{clearTimeout(r),delete this.transactionHandler[e],this.api.unregister({method:e}),t(new Error("[IS] timeout"))}),n)}async function VI(){const e="INTERSERVICE_CONTEXT_ID";window[e]||Object.defineProperty(window,e,{value:_I(),enumerable:!1,configurable:!1}),this.contextId=window[e],this.scriptId=await async function(e){if(!e)return null;const t=(new TextEncoder).encode(e),n=await crypto.subtle.digest("SHA-1",t),r=Array.from(new Uint8Array(n)).map((e=>e.toString(16).padStart(2,"0"))).join("");return r}(document.currentScript&&document.currentScript.src||new URL("index.js",document.baseURI).href)}function KI(e){return{ts:Date.now(),contextId:this.contextId,scriptId:this.scriptId,serviceId:this.serviceId,messageId:_I(),sender:this.id,...e}}async function qI({id:e,verbose:t,router:n}){const r={api:{}};function i(e,t){Object.defineProperty(r.api,e,{get:()=>t,enumerable:!1,configurable:!1})}function a(e,t){const n=t.bind(r);r.api.register({method:e,handler:n})}return await async function(){if(!/^([a-z\-_]+)$/.test(e))throw new Error("[IS] Invalid ID format. ID should be lowercase and can include '-' and '_'.");this.router_enabled=n,this.serviceId=_I(),this.id=e,this.verbose=t,this.ee=new xI,this.router=null,this.clients={},this.transactionHandler={},this.registeredHandlers={},this.setupTransactionTimeout=ZI.bind(this),this.handleMessage=zI.bind(this),this.createMessage=KI.bind(this),await VI.apply(this),window.addEventListener("message",this.handleMessage),RI.services[this.id]=this}.apply(r),i("connect",kI.bind(r)),i("findRouter",PI.bind(r)),i("register",DI.bind(r)),i("unregister",jI.bind(r)),i("registerProxy",II.bind(r)),i("proxy",CI.bind(r)),i("dispose",OI.bind(r)),i("newId",UI.bind(r)),i("on",r.ee.on.bind(r.ee)),i("once",r.ee.once.bind(r.ee)),i("off",r.ee.off.bind(r.ee)),i("addListener",r.ee.addListener.bind(r.ee)),i("removeListener",r.ee.removeListener.bind(r.ee)),i("removeAllListeners",r.ee.removeAllListeners.bind(r.ee)),a("ping",EI),a("echo",SI),r.api}var WI;function YI(e){return QI.apply(this,arguments)}function QI(){return QI=t(d.mark((function e(t){var n,r,i,a;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.whichFrame,r=t.options,e.prev=1,i="gd-".concat(n),a=!1,!("loader-frame"===n)){e.next=12;break}return e.next=9,JI({id:i,verbose:a,options:r});case 9:WI=e.sent,e.next=15;break;case 12:return e.next=14,eR({id:i,verbose:a,options:r});case 14:WI=e.sent;case 15:e.next=20;break;case 17:e.prev=17,e.t0=e.catch(1),ac("[GD-IS] GD interservice create error",e.t0);case 20:case"end":return e.stop()}}),e,null,[[1,17]])}))),QI.apply(this,arguments)}function JI(e){return XI.apply(this,arguments)}function XI(){return XI=t(d.mark((function e(r){var i,a,o,s,u=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.id,a=r.verbose,o=r.options,e.next=4,qI({id:i,verbose:a,router:!0});case 4:return(s=e.sent).on("connected",function(e){n(this,u),"gd-game-frame"===e.service&&s.registerProxy({alias:"isStoreVisible",method:"isStoreVisible",service:"gd-game-frame"})}.bind(this)),s.register({method:"whoami",handler:function(){return n(this,u),"[GD-IS] I am ".concat(i)}.bind(this)}),s.register({method:"isLoader",handler:function(){return n(this,u),!0}.bind(this)}),s.register({method:"hasRouter",handler:function(){return n(this,u),!1}.bind(this)}),s.register({method:"showAd",handler:function(){var e=t(d.mark((function e(n){var r,i,a;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=o.showAd?o.showAd:function(){var e=t(d.mark((function e(t){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",!0);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),i=n.adType,a=n.params,e.next=4,r(i,a);case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}),s.register({method:"getLoaderInfo",handler:function(){return n(this,u),{url:window.location.href}}.bind(this)}),s.register({method:"registerOnEvents",handler:function(){var e=t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s.registerProxy({alias:"onEvent",method:"onEvent",service:"gd-game-frame"}),e.abrupt("return","[GD-IS] gd-game-frame registered for onEvents");case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()}),e.next=14,s.whoami();case 14:return e.sent,e.abrupt("return",s);case 17:case"end":return e.stop()}}),e,this)}))),XI.apply(this,arguments)}function eR(e){return tR.apply(this,arguments)}function tR(){return tR=t(d.mark((function e(t){var r,i,a,o,s,u=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.id,i=t.verbose,a=t.options,e.next=4,qI({id:r,verbose:i,router:!1});case 4:return o=e.sent,"gd-loader-frame",e.next=8,o.findRouter({where:{id:"gd-loader-frame"}}).catch(function(e){n(this,u)}.bind(this));case 8:if(s=e.sent,e.t0=!!s,!e.t0){e.next=15;break}return e.next=14,o.connect(s).catch(function(e){n(this,u),ac("[GD-IS] Failed to connect to router",(null==e?void 0:e.message)||e)}.bind(this));case 14:e.t0=e.sent;case 15:return e.t0,o.register({method:"whoami",handler:function(){return n(this,u),"[GD-IS] I am ".concat(r)}.bind(this)}),o.register({method:"onEvent",handler:function(e){var t=this;n(this,u);var r=e.event;(a.onEvent||function(e){n(this,t)}.bind(this))(r)}.bind(this)}),o.register({method:"isLoader",handler:function(){return n(this,u),!1}.bind(this)}),o.register({method:"hasRouter",handler:function(){return n(this,u),!!s}.bind(this)}),o.register({method:"isStoreVisible",handler:function(){var e;return n(this,u),(null===(e=window.gdsdk.store)||void 0===e?void 0:e.isVisible)&&window.gdsdk.store.isVisible()}.bind(this)}),s&&(o.registerProxy({alias:"whoIsLoader",method:"whoami"}),o.registerProxy({alias:"registerOnEvents",method:"registerOnEvents"}),o.registerProxy({alias:"showAd",method:"showAd"}),o.registerProxy({alias:"getLoaderInfo",method:"getLoaderInfo"})),e.next=25,o.whoami();case 25:if(e.sent,!s){e.next=36;break}return e.next=30,o.whoIsLoader();case 30:return e.sent,e.next=33,o.registerOnEvents();case 33:e.sent;case 36:return e.abrupt("return",o);case 37:case"end":return e.stop()}}),e,this)}))),tR.apply(this,arguments)}var nR=!1;function rR(){var e=this;return new Promise(function(t,r){var i=this;if(n(this,e),WI||nR)t(WI);else{var a=setInterval(function(){n(this,i),WI&&(nR=!0,clearInterval(a),t(WI))}.bind(this),100);setTimeout(function(){n(this,i),clearInterval(a),WI||(nR=!0,t(WI))}.bind(this),5e3)}}.bind(this))}var iR=function(){var e=t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(WI){e.next=2;break}return e.abrupt("return",!1);case 2:if(e.t0=WI.isStoreVisible,!e.t0){e.next=7;break}return e.next=6,WI.isStoreVisible();case 6:e.t0=e.sent;case 7:return e.abrupt("return",e.t0);case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),aR=function(){var e=this,t=C(window.location.href,!0),r=t.host,i=t.query,a=function(t){return n(this,e),"revision.gamedistribution.com"===t||"uncached-html5.gamedistribution.com"===t}.bind(this),o=a(r);null!=i&&i.gd_sdk_referrer_url&&(o=a(C(i.gd_sdk_referrer_url).host));return o},oR=function(){var e=t(d.mark((function e(){var t;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!window.isForwarderFrame,!!window.isForwarderFrame){e.next=17;break}if(!aR()){e.next=8;break}return e.abrupt("return",!0);case 8:return e.next=10,rR();case 10:if(t=e.sent,!((null==t?void 0:t.isLoader())||!1)){e.next=15;break}return e.abrupt("return",!1);case 15:e.next=18;break;case 17:case 18:return e.abrupt("return",!0);case 19:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),sR=function(){var e=t(d.mark((function e(){var t;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,oI();case 2:if(t=e.sent,null==t?void 0:t.igs){e.next=6;break}return e.abrupt("return",!1);case 6:return oc("[GD-IGS] store config available"),e.next=9,oR();case 9:if(e.sent){e.next=12;break}return e.abrupt("return",!1);case 12:return e.abrupt("return",!0);case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();function uR(e,t){var r=this,i=!1,a=null;if(e){var o=e,s=C(o,!0),u=s.query;if(Object.keys(u).some(function(e){return n(this,r),e.toLowerCase()===t}.bind(this)))i=!0,a=u[t.toLowerCase()];else if(o=null==u?void 0:u.gd_sdk_referrer_url){var c=(s=C(o,!0)).query;Object.keys(c).some(function(e){return n(this,r),e.toLowerCase()===t}.bind(this))&&(i=!0,a=u[t.toLowerCase()])}}return{exists:i,value:a}}var cR=function(){var e=t(d.mark((function e(){var t,n,r,i,a,o,s;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=!1,e.next=3,rR();case 3:if(n=e.sent,e.t1=n,!e.t1){e.next=9;break}return e.next=8,n.getLoaderInfo();case 8:e.t1=e.sent;case 9:if(e.t0=e.t1,e.t0){e.next=12;break}e.t0={};case 12:return r=e.t0,i=r.url,a=uR(i,"sandbox"),o=a.exists,s=a.value,o&&(t=!0===s||"true"===s||1===s),e.abrupt("return",t);case 17:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),dR=function(){var e=t(d.mark((function e(){var t,n,r,i,a;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,rR();case 2:if(t=e.sent,e.t1=t,!e.t1){e.next=8;break}return e.next=7,t.getLoaderInfo();case 7:e.t1=e.sent;case 8:if(e.t0=e.t1,e.t0){e.next=11;break}e.t0={};case 11:return n=e.t0,r=n.url,i=uR(r,"igs"),a=i.exists,i.value,e.abrupt("return",a);case 15:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),lR=function(){var e=t(d.mark((function e(t){var r,i,a,o,s,u,c,l,f,p,h,m=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=t.onEvent,e.next=3,oI();case 3:return a=e.sent,o=null==a?void 0:a.igs,e.next=7,sR();case 7:if(e.sent){e.next=10;break}return e.abrupt("return");case 10:return oc("[GD-IGS] store will initalize for frame",{loc:window.location.href}),"https://pm.azerioncircle.com/p/gd-sdk-igs-proxy",e.next=14,ft("https://pm.azerioncircle.com/p/gd-sdk-igs-proxy","gd-sdk-igs-proxy",{});case 14:if(!(s=null===(r=window.GD_SDK_IGS_PROXY)||void 0===r?void 0:r.create)){e.next=36;break}return c="https://html5.gamedistribution.com/igs/index.html",e.next=19,dR();case 19:return l=e.sent,e.next=22,cR();case 22:return f=e.sent,oc("[GD-IS-IGS] sandbox",f),e.next=26,s({igs:o,storeFrameUrl:c,showStoreOpener:l,sandbox:f});case 26:if(p=e.sent){e.next=29;break}return e.abrupt("return");case 29:h=!1,(null===(u=p.events)||void 0===u?void 0:u.onAny)&&p.events.onAny(function(e){var t;(n(this,m),"STORE_UI_VISIBILITY_CHANGED"===(null==e?void 0:e.name))&&(h=(null===(t=e.data)||void 0===t?void 0:t.visible)||!1);i&&i(e)}.bind(this)),p.isVisible=function(){return h},window.gdsdk.store=p,window.gdsdk.executeStoreAction=p.executeStoreAction.bind(p),i({name:"STORE_READY",data:{}}),oc("[GD-IGS] store ready");case 36:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}();function fR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function pR(e){return function(e){if(Array.isArray(e))return fR(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return fR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fR(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var hR=Gs,mR=tg,vR=zt,gR=ur,AR=Nn,bR=Ym,yR=rb,_R=na,wR=mR&&mR.prototype;if(hR({target:"Promise",proto:!0,real:!0,forced:!!mR&&vR((function(){wR.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=bR(this,gR("Promise")),n=AR(e);return this.then(n?function(n){return yR(t,e()).then((function(){return n}))}:e,n?function(n){return yR(t,e()).then((function(){throw n}))}:e)}}),AR(mR)){var xR=gR("Promise").prototype.finally;wR.finally!==xR&&_R(wR,"finally",xR,{unsafe:!0})}var kR="\t\n\v\f\r \u2028\u2029\ufeff",ER=en,SR=Qs,DR=kR,IR=Yt("".replace),RR=RegExp("^["+DR+"]+"),CR=RegExp("(^|[^"+DR+"])["+DR+"]+$"),OR=function(e){return function(t){var n=SR(ER(t));return 1&e&&(n=IR(n,RR,"")),2&e&&(n=IR(n,CR,"$1")),n}},TR={start:OR(1),end:OR(2),trim:OR(3)},PR=ti.PROPER,LR=zt,MR=kR,BR=TR.trim;Gs({target:"String",proto:!0,forced:function(e){return LR((function(){return!!MR[e]()||"
"!=="
"[e]()||PR&&MR[e].name!==e}))}("trim")},{trim:function(){return BR(this)}});var jR=Gs,UR=yo.find,FR=am,NR="find",$R=!0;NR in[]&&Array(1)[NR]((function(){$R=!1})),jR({target:"Array",proto:!0,forced:$R},{find:function(e){return UR(this,e,arguments.length>1?arguments[1]:void 0)}}),FR(NR);var GR=Nn,HR=Zn,zR=ah,ZR=$n.f,VR=Gn,KR=Pt,qR=Yt,WR=Ls,YR=function(e,t,n){var r,i;return zR&&GR(r=t.constructor)&&r!==n&&HR(i=r.prototype)&&i!==n.prototype&&zR(e,i),e},QR=mi,JR=Wo.f,XR=cr,eC=Zb,tC=Qs,nC=hy,rC=au,iC=function(e,t,n){n in e||ZR(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})},aC=na,oC=zt,sC=sn,uC=Li.enforce,cC=Fm,dC=Ou,lC=Lu,fC=Ln("match"),pC=KR.RegExp,hC=pC.prototype,mC=KR.SyntaxError,vC=qR(hC.exec),gC=qR("".charAt),AC=qR("".replace),bC=qR("".indexOf),yC=qR("".slice),_C=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,wC=/a/g,xC=/a/g,kC=new pC(wC)!==wC,EC=rC.MISSED_STICKY,SC=rC.UNSUPPORTED_Y,DC=VR&&(!kC||EC||dC||lC||oC((function(){return xC[fC]=!1,pC(wC)!=wC||pC(xC)==xC||"/a/i"!=pC(wC,"i")})));if(WR("RegExp",DC)){for(var IC=function(e,t){var n,r,i,a,o,s,u=XR(hC,this),c=eC(e),d=void 0===t,l=[],f=e;if(!u&&c&&d&&e.constructor===IC)return e;if((c||XR(hC,e))&&(e=e.source,d&&(t=nC(f))),e=void 0===e?"":tC(e),t=void 0===t?"":tC(t),f=e,dC&&"dotAll"in wC&&(r=!!t&&bC(t,"s")>-1)&&(t=AC(t,/s/g,"")),n=t,EC&&"sticky"in wC&&(i=!!t&&bC(t,"y")>-1)&&SC&&(t=AC(t,/y/g,"")),lC&&(a=function(e){for(var t,n=e.length,r=0,i="",a=[],o={},s=!1,u=!1,c=0,d="";r<=n;r++){if("\\"===(t=gC(e,r)))t+=gC(e,++r);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:vC(_C,yC(e,r+1))&&(r+=2,u=!0),i+=t,c++;continue;case">"===t&&u:if(""===d||sC(o,d))throw new mC("Invalid capture group name");o[d]=!0,a[a.length]=[d,c],u=!1,d="";continue}u?d+=t:i+=t}return[i,a]}(e),e=a[0],l=a[1]),o=YR(pC(e,t),u?this:hC,IC),(r||i||l.length)&&(s=uC(o),r&&(s.dotAll=!0,s.raw=IC(function(e){for(var t,n=e.length,r=0,i="",a=!1;r<=n;r++)"\\"!==(t=gC(e,r))?a||"."!==t?("["===t?a=!0:"]"===t&&(a=!1),i+=t):i+="[\\s\\S]":i+=t+gC(e,++r);return i}(e),n)),i&&(s.sticky=!0),l.length&&(s.groups=l)),e!==f)try{QR(o,"source",""===f?"(?:)":f)}catch(e){}return o},RC=JR(pC),CC=0;RC.length>CC;)iC(IC,pC,RC[CC++]);hC.constructor=IC,IC.prototype=hC,aC(KR,"RegExp",IC,{constructor:!0})}cC("RegExp");var OC=Gn,TC=Yt,PC=Zs,LC=Fo,MC=TC(Po.f),BC=TC([].push),jC=function(e){return function(t){for(var n,r=LC(t),i=PC(r),a=i.length,o=0,s=[];a>o;)n=i[o++],OC&&!MC(r,n)||BC(s,e?[n,r[n]]:r[n]);return s}},UC={entries:jC(!0),values:jC(!1)}.values;Gs({target:"Object",stat:!0},{values:function(e){return UC(e)}});var FC=Gs,NC=Oa,$C=Fo,GC=wo,HC=Yt([].join);FC({target:"Array",proto:!0,forced:NC!=Object||!GC("join",",")},{join:function(e){return HC($C(this),void 0===e?",":e)}});var zC=yo.map;Gs({target:"Array",proto:!0,forced:!ef("map")},{map:function(e){return zC(this,e,arguments.length>1?arguments[1]:void 0)}});var ZC=Gn,VC=Yt,KC=ar,qC=zt,WC=Zs,YC=hs,QC=Po,JC=rn,XC=Oa,eO=Object.assign,tO=Object.defineProperty,nO=VC([].concat),rO=!eO||qC((function(){if(ZC&&1!==eO({b:1},eO(tO({},"a",{enumerable:!0,get:function(){tO(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=eO({},e)[n]||WC(eO({},t)).join("")!=r}))?function(e,t){for(var n=JC(e),r=arguments.length,i=1,a=YC.f,o=QC.f;r>i;)for(var s,u=XC(arguments[i++]),c=a?nO(WC(u),a(u)):WC(u),d=c.length,l=0;d>l;)s=c[l++],ZC&&!KC(o,u,s)||(n[s]=u[s]);return n}:eO,iO=rO;Gs({target:"Object",stat:!0,arity:2,forced:Object.assign!==iO},{assign:iO});var aO,oO=Yt,sO=2147483647,uO=/[^\0-\u007E]/,cO=/[.\u3002\uFF0E\uFF61]/g,dO="Overflow: input needs wider integers to process",lO=RangeError,fO=oO(cO.exec),pO=Math.floor,hO=String.fromCharCode,mO=oO("".charCodeAt),vO=oO([].join),gO=oO([].push),AO=oO("".replace),bO=oO("".split),yO=oO("".toLowerCase),_O=function(e){return e+22+75*(e<26)},wO=function(e,t,n){var r=0;for(e=n?pO(e/700):e>>1,e+=pO(e/t);e>455;)e=pO(e/35),r+=36;return pO(r+36*e/(e+38))},xO=function(e){var t=[];e=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=mO(e,n++);if(i>=55296&&i<=56319&&n<r){var a=mO(e,n++);56320==(64512&a)?gO(t,((1023&i)<<10)+(1023&a)+65536):(gO(t,i),n--)}else gO(t,i)}return t}(e);var n,r,i=e.length,a=128,o=0,s=72;for(n=0;n<e.length;n++)(r=e[n])<128&&gO(t,hO(r));var u=t.length,c=u;for(u&&gO(t,"-");c<i;){var d=sO;for(n=0;n<e.length;n++)(r=e[n])>=a&&r<d&&(d=r);var l=c+1;if(d-a>pO((sO-o)/l))throw lO(dO);for(o+=(d-a)*l,a=d,n=0;n<e.length;n++){if((r=e[n])<a&&++o>sO)throw lO(dO);if(r==a){for(var f=o,p=36;;){var h=p<=s?1:p>=s+26?26:p-s;if(f<h)break;var m=f-h,v=36-h;gO(t,hO(_O(h+m%v))),f=pO(m/v),p+=36}gO(t,hO(_O(f))),s=wO(o,l,c==u),o=0,c++}}o++,a++}return vO(t,"")},kO=Gs,EO=Gn,SO=G_,DO=Pt,IO=Sa,RO=Yt,CO=na,OO=Ic,TO=Gm,PO=sn,LO=rO,MO=sp,BO=yc,jO=Ep.codeAt,UO=function(e){var t,n,r=[],i=bO(AO(yO(e),cO,"."),".");for(t=0;t<i.length;t++)n=i[t],gO(r,fO(uO,n)?"xn--"+xO(n):n);return vO(r,".")},FO=Qs,NO=Hc,$O=Jm,GO=cx,HO=Li,zO=HO.set,ZO=HO.getterFor("URL"),VO=GO.URLSearchParams,KO=GO.getState,qO=DO.URL,WO=DO.TypeError,YO=DO.parseInt,QO=Math.floor,JO=Math.pow,XO=RO("".charAt),eT=RO(/./.exec),tT=RO([].join),nT=RO(1..toString),rT=RO([].pop),iT=RO([].push),aT=RO("".replace),oT=RO([].shift),sT=RO("".split),uT=RO("".slice),cT=RO("".toLowerCase),dT=RO([].unshift),lT="Invalid scheme",fT="Invalid host",pT="Invalid port",hT=/[a-z]/i,mT=/[\d+-.a-z]/i,vT=/\d/,gT=/^0x/i,AT=/^[0-7]+$/,bT=/^\d+$/,yT=/^[\da-f]+$/i,_T=/[\0\t\n\r #%/:<>?@[\\\]^|]/,wT=/[\0\t\n\r #/:<>?@[\\\]^|]/,xT=/^[\u0000-\u0020]+/,kT=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,ET=/[\t\n\r]/g,ST=function(e){var t,n,r,i;if("number"==typeof e){for(t=[],n=0;n<4;n++)dT(t,e%256),e=QO(e/256);return tT(t,".")}if("object"==typeof e){for(t="",r=function(e){for(var t=null,n=1,r=null,i=0,a=0;a<8;a++)0!==e[a]?(i>n&&(t=r,n=i),r=null,i=0):(null===r&&(r=a),++i);return i>n&&(t=r,n=i),t}(e),n=0;n<8;n++)i&&0===e[n]||(i&&(i=!1),r===n?(t+=n?":":"::",i=!0):(t+=nT(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},DT={},IT=LO({},DT,{" ":1,'"':1,"<":1,">":1,"`":1}),RT=LO({},IT,{"#":1,"?":1,"{":1,"}":1}),CT=LO({},RT,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),OT=function(e,t){var n=jO(e,0);return n>32&&n<127&&!PO(t,e)?e:encodeURIComponent(e)},TT={ftp:21,file:null,http:80,https:443,ws:80,wss:443},PT=function(e,t){var n;return 2==e.length&&eT(hT,XO(e,0))&&(":"==(n=XO(e,1))||!t&&"|"==n)},LT=function(e){var t;return e.length>1&&PT(uT(e,0,2))&&(2==e.length||"/"===(t=XO(e,2))||"\\"===t||"?"===t||"#"===t)},MT=function(e){return"."===e||"%2e"===cT(e)},BT={},jT={},UT={},FT={},NT={},$T={},GT={},HT={},zT={},ZT={},VT={},KT={},qT={},WT={},YT={},QT={},JT={},XT={},eP={},tP={},nP={},rP=function(e,t,n){var r,i,a,o=FO(e);if(t){if(i=this.parse(o))throw WO(i);this.searchParams=null}else{if(void 0!==n&&(r=new rP(n,!0)),i=this.parse(o,null,r))throw WO(i);(a=KO(new VO)).bindURL(this),this.searchParams=a}};rP.prototype={type:"URL",parse:function(e,t,n){var r,i,a,o,s,u=this,c=t||BT,d=0,l="",f=!1,p=!1,h=!1;for(e=FO(e),t||(u.scheme="",u.username="",u.password="",u.host=null,u.port=null,u.path=[],u.query=null,u.fragment=null,u.cannotBeABaseURL=!1,e=aT(e,xT,""),e=aT(e,kT,"$1")),e=aT(e,ET,""),r=MO(e);d<=r.length;){switch(i=r[d],c){case BT:if(!i||!eT(hT,i)){if(t)return lT;c=UT;continue}l+=cT(i),c=jT;break;case jT:if(i&&(eT(mT,i)||"+"==i||"-"==i||"."==i))l+=cT(i);else{if(":"!=i){if(t)return lT;l="",c=UT,d=0;continue}if(t&&(u.isSpecial()!=PO(TT,l)||"file"==l&&(u.includesCredentials()||null!==u.port)||"file"==u.scheme&&!u.host))return;if(u.scheme=l,t)return void(u.isSpecial()&&TT[u.scheme]==u.port&&(u.port=null));l="","file"==u.scheme?c=WT:u.isSpecial()&&n&&n.scheme==u.scheme?c=FT:u.isSpecial()?c=HT:"/"==r[d+1]?(c=NT,d++):(u.cannotBeABaseURL=!0,iT(u.path,""),c=eP)}break;case UT:if(!n||n.cannotBeABaseURL&&"#"!=i)return lT;if(n.cannotBeABaseURL&&"#"==i){u.scheme=n.scheme,u.path=BO(n.path),u.query=n.query,u.fragment="",u.cannotBeABaseURL=!0,c=nP;break}c="file"==n.scheme?WT:$T;continue;case FT:if("/"!=i||"/"!=r[d+1]){c=$T;continue}c=zT,d++;break;case NT:if("/"==i){c=ZT;break}c=XT;continue;case $T:if(u.scheme=n.scheme,i==aO)u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=BO(n.path),u.query=n.query;else if("/"==i||"\\"==i&&u.isSpecial())c=GT;else if("?"==i)u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=BO(n.path),u.query="",c=tP;else{if("#"!=i){u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=BO(n.path),u.path.length--,c=XT;continue}u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=BO(n.path),u.query=n.query,u.fragment="",c=nP}break;case GT:if(!u.isSpecial()||"/"!=i&&"\\"!=i){if("/"!=i){u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,c=XT;continue}c=ZT}else c=zT;break;case HT:if(c=zT,"/"!=i||"/"!=XO(l,d+1))continue;d++;break;case zT:if("/"!=i&&"\\"!=i){c=ZT;continue}break;case ZT:if("@"==i){f&&(l="%40"+l),f=!0,a=MO(l);for(var m=0;m<a.length;m++){var v=a[m];if(":"!=v||h){var g=OT(v,CT);h?u.password+=g:u.username+=g}else h=!0}l=""}else if(i==aO||"/"==i||"?"==i||"#"==i||"\\"==i&&u.isSpecial()){if(f&&""==l)return"Invalid authority";d-=MO(l).length+1,l="",c=VT}else l+=i;break;case VT:case KT:if(t&&"file"==u.scheme){c=QT;continue}if(":"!=i||p){if(i==aO||"/"==i||"?"==i||"#"==i||"\\"==i&&u.isSpecial()){if(u.isSpecial()&&""==l)return fT;if(t&&""==l&&(u.includesCredentials()||null!==u.port))return;if(o=u.parseHost(l))return o;if(l="",c=JT,t)return;continue}"["==i?p=!0:"]"==i&&(p=!1),l+=i}else{if(""==l)return fT;if(o=u.parseHost(l))return o;if(l="",c=qT,t==KT)return}break;case qT:if(!eT(vT,i)){if(i==aO||"/"==i||"?"==i||"#"==i||"\\"==i&&u.isSpecial()||t){if(""!=l){var A=YO(l,10);if(A>65535)return pT;u.port=u.isSpecial()&&A===TT[u.scheme]?null:A,l=""}if(t)return;c=JT;continue}return pT}l+=i;break;case WT:if(u.scheme="file","/"==i||"\\"==i)c=YT;else{if(!n||"file"!=n.scheme){c=XT;continue}if(i==aO)u.host=n.host,u.path=BO(n.path),u.query=n.query;else if("?"==i)u.host=n.host,u.path=BO(n.path),u.query="",c=tP;else{if("#"!=i){LT(tT(BO(r,d),""))||(u.host=n.host,u.path=BO(n.path),u.shortenPath()),c=XT;continue}u.host=n.host,u.path=BO(n.path),u.query=n.query,u.fragment="",c=nP}}break;case YT:if("/"==i||"\\"==i){c=QT;break}n&&"file"==n.scheme&&!LT(tT(BO(r,d),""))&&(PT(n.path[0],!0)?iT(u.path,n.path[0]):u.host=n.host),c=XT;continue;case QT:if(i==aO||"/"==i||"\\"==i||"?"==i||"#"==i){if(!t&&PT(l))c=XT;else if(""==l){if(u.host="",t)return;c=JT}else{if(o=u.parseHost(l))return o;if("localhost"==u.host&&(u.host=""),t)return;l="",c=JT}continue}l+=i;break;case JT:if(u.isSpecial()){if(c=XT,"/"!=i&&"\\"!=i)continue}else if(t||"?"!=i)if(t||"#"!=i){if(i!=aO&&(c=XT,"/"!=i))continue}else u.fragment="",c=nP;else u.query="",c=tP;break;case XT:if(i==aO||"/"==i||"\\"==i&&u.isSpecial()||!t&&("?"==i||"#"==i)){if(".."===(s=cT(s=l))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(u.shortenPath(),"/"==i||"\\"==i&&u.isSpecial()||iT(u.path,"")):MT(l)?"/"==i||"\\"==i&&u.isSpecial()||iT(u.path,""):("file"==u.scheme&&!u.path.length&&PT(l)&&(u.host&&(u.host=""),l=XO(l,0)+":"),iT(u.path,l)),l="","file"==u.scheme&&(i==aO||"?"==i||"#"==i))for(;u.path.length>1&&""===u.path[0];)oT(u.path);"?"==i?(u.query="",c=tP):"#"==i&&(u.fragment="",c=nP)}else l+=OT(i,RT);break;case eP:"?"==i?(u.query="",c=tP):"#"==i?(u.fragment="",c=nP):i!=aO&&(u.path[0]+=OT(i,DT));break;case tP:t||"#"!=i?i!=aO&&("'"==i&&u.isSpecial()?u.query+="%27":u.query+="#"==i?"%23":OT(i,DT)):(u.fragment="",c=nP);break;case nP:i!=aO&&(u.fragment+=OT(i,IT))}d++}},parseHost:function(e){var t,n,r;if("["==XO(e,0)){if("]"!=XO(e,e.length-1))return fT;if(t=function(e){var t,n,r,i,a,o,s,u=[0,0,0,0,0,0,0,0],c=0,d=null,l=0,f=function(){return XO(e,l)};if(":"==f()){if(":"!=XO(e,1))return;l+=2,d=++c}for(;f();){if(8==c)return;if(":"!=f()){for(t=n=0;n<4&&eT(yT,f());)t=16*t+YO(f(),16),l++,n++;if("."==f()){if(0==n)return;if(l-=n,c>6)return;for(r=0;f();){if(i=null,r>0){if(!("."==f()&&r<4))return;l++}if(!eT(vT,f()))return;for(;eT(vT,f());){if(a=YO(f(),10),null===i)i=a;else{if(0==i)return;i=10*i+a}if(i>255)return;l++}u[c]=256*u[c]+i,2!=++r&&4!=r||c++}if(4!=r)return;break}if(":"==f()){if(l++,!f())return}else if(f())return;u[c++]=t}else{if(null!==d)return;l++,d=++c}}if(null!==d)for(o=c-d,c=7;0!=c&&o>0;)s=u[c],u[c--]=u[d+o-1],u[d+--o]=s;else if(8!=c)return;return u}(uT(e,1,-1)),!t)return fT;this.host=t}else if(this.isSpecial()){if(e=UO(e),eT(_T,e))return fT;if(t=function(e){var t,n,r,i,a,o,s,u=sT(e,".");if(u.length&&""==u[u.length-1]&&u.length--,(t=u.length)>4)return e;for(n=[],r=0;r<t;r++){if(""==(i=u[r]))return e;if(a=10,i.length>1&&"0"==XO(i,0)&&(a=eT(gT,i)?16:8,i=uT(i,8==a?1:2)),""===i)o=0;else{if(!eT(10==a?bT:8==a?AT:yT,i))return e;o=YO(i,a)}iT(n,o)}for(r=0;r<t;r++)if(o=n[r],r==t-1){if(o>=JO(256,5-t))return null}else if(o>255)return null;for(s=rT(n),r=0;r<n.length;r++)s+=n[r]*JO(256,3-r);return s}(e),null===t)return fT;this.host=t}else{if(eT(wT,e))return fT;for(t="",n=MO(e),r=0;r<n.length;r++)t+=OT(n[r],DT);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return PO(TT,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&PT(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,n=e.username,r=e.password,i=e.host,a=e.port,o=e.path,s=e.query,u=e.fragment,c=t+":";return null!==i?(c+="//",e.includesCredentials()&&(c+=n+(r?":"+r:"")+"@"),c+=ST(i),null!==a&&(c+=":"+a)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?o[0]:o.length?"/"+tT(o,"/"):"",null!==s&&(c+="?"+s),null!==u&&(c+="#"+u),c},setHref:function(e){var t=this.parse(e);if(t)throw WO(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new iP(e.path[0]).origin}catch(e){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+ST(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(FO(e)+":",BT)},getUsername:function(){return this.username},setUsername:function(e){var t=MO(FO(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<t.length;n++)this.username+=OT(t[n],CT)}},getPassword:function(){return this.password},setPassword:function(e){var t=MO(FO(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<t.length;n++)this.password+=OT(t[n],CT)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?ST(e):ST(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,VT)},getHostname:function(){var e=this.host;return null===e?"":ST(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,KT)},getPort:function(){var e=this.port;return null===e?"":FO(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=FO(e))?this.port=null:this.parse(e,qT))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+tT(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,JT))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=FO(e))?this.query=null:("?"==XO(e,0)&&(e=uT(e,1)),this.query="",this.parse(e,tP)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=FO(e))?("#"==XO(e,0)&&(e=uT(e,1)),this.fragment="",this.parse(e,nP)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var iP=function(e){var t=TO(this,aP),n=$O(arguments.length,1)>1?arguments[1]:void 0,r=zO(t,new rP(e,!1,n));EO||(t.href=r.serialize(),t.origin=r.getOrigin(),t.protocol=r.getProtocol(),t.username=r.getUsername(),t.password=r.getPassword(),t.host=r.getHost(),t.hostname=r.getHostname(),t.port=r.getPort(),t.pathname=r.getPathname(),t.search=r.getSearch(),t.searchParams=r.getSearchParams(),t.hash=r.getHash())},aP=iP.prototype,oP=function(e,t){return{get:function(){return ZO(this)[e]()},set:t&&function(e){return ZO(this)[t](e)},configurable:!0,enumerable:!0}};if(EO&&(OO(aP,"href",oP("serialize","setHref")),OO(aP,"origin",oP("getOrigin")),OO(aP,"protocol",oP("getProtocol","setProtocol")),OO(aP,"username",oP("getUsername","setUsername")),OO(aP,"password",oP("getPassword","setPassword")),OO(aP,"host",oP("getHost","setHost")),OO(aP,"hostname",oP("getHostname","setHostname")),OO(aP,"port",oP("getPort","setPort")),OO(aP,"pathname",oP("getPathname","setPathname")),OO(aP,"search",oP("getSearch","setSearch")),OO(aP,"searchParams",oP("getSearchParams")),OO(aP,"hash",oP("getHash","setHash"))),CO(aP,"toJSON",(function(){return ZO(this).serialize()}),{enumerable:!0}),CO(aP,"toString",(function(){return ZO(this).serialize()}),{enumerable:!0}),qO){var sP=qO.createObjectURL,uP=qO.revokeObjectURL;sP&&CO(iP,"createObjectURL",IO(sP,qO)),uP&&CO(iP,"revokeObjectURL",IO(uP,qO))}NO(iP,"URL"),kO({global:!0,constructor:!0,forced:!SO,sham:!EO},{URL:iP});var cP=function(){function e(t){O(this,e),this.gameData=t,this.customParamKeys=["vid","_1ld","_1lp"]}return L(e,[{key:"_getFakeCustomParams",value:function(){var e={_vid:["bla_bla1","bla_bla2","bla_bla3"],_1ld:["1ld_1","1ld_2","1ld_3","1ld_4"],_1lp:["1lp_1","1lp_2"]},t={};for(var n in e){var r=e[n];t[n]=r[Math.floor(Math.random()*r.length)]}return t}},{key:"checkCustomParams",value:function(){var e=this;try{var t={},r=this.gameData.diagnostic&&this.gameData.diagnostic.cp&&this.gameData.diagnostic.cp.enabled,i=new C(location.href,!0);for(var a in i.query)t[a]=i.query[a];var o=Object.keys(t).filter(function(t){var r=this;return n(this,e),this.customParamKeys.some(function(e){return n(this,r),e===t}.bind(this))}.bind(this));return o.length>0||r?(console.log("custom-params",t,r),t):void console.log("custom-params, none")}catch(e){console.log("_checkCustomParams.Error",e)}}}]),e}(),dP=function(){function e(t,n){O(this,e),this.adContainer=t,this.onResume=n}return L(e,[{key:"show",value:function(){this.adResumeButton.style.display="block",this.adResumeButtonOverlay.style.display="block"}},{key:"hide",value:function(){this.adResumeButton.style.display="none",this.adResumeButtonOverlay.style.display="none"}},{key:"add",value:function(){var e=this;try{var t=document.createElement("div");this.adResumeButton=t,t.id="gd__resume__button",t.setAttribute("title","Resume"),this.addStyles(),t.classList.add("gd__resume__button"),t.addEventListener("click",function(){n(this,e),this.onResume()}.bind(this)),this.adContainer.appendChild(t);var r=document.createElement("div");this.adResumeButtonOverlay=r,r.id="gd__resume__button__overlay",r.classList.add("gd__resume__button__overlay"),this.adContainer.appendChild(r)}catch(e){console.log("Resume button add error",e)}}},{key:"addStyles",value:function(){var e=document.body||document.getElementsByTagName("body")[0];this.addStylesheet("gd__resume__button__style",e,'\n .gd__resume__button{\n background-image: url("https://img.gamedistribution.com/play-black.svg");\n background-color:white; \n width: 120px;\n height: 120px;\n position: absolute;\n display: none;\n z-index: 2000;\n cursor: pointer;\n top: calc(50% - 60px);\n left: calc(50% - 60px);\n margin: 0;\n border-radius: 50%;\n border: 2px solid white;\n animation: play-button 1s ease-in-out infinite alternate;\n -webkit-animation: play-button 1s ease-in-out infinite alternate;\n }\n \n .gd__resume__button__overlay {\n position: fixed;\n display: none;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: rgba(0,0,0,0.5);\n z-index: 1999;\n cursor: pointer;\n }\n @keyframes play-button {\n 0% {\n transform: scale(1.0);\n -webkit-transform: scale(1.0);\n }\n 100% {\n transform: scale(1.1);\n -webkit-transform: scale(1.1);\n }\n }\n .gd__resume__button:hover{\n filter: invert(100%) sepia(51%) saturate(0%) hue-rotate(346deg) brightness(104%) contrast(100%); \n }\n ')}},{key:"addStylesheet",value:function(e,t,n){if(!document.getElementById(e)){var r=document.createElement("style");r.type="text/css",r.id=e,r.styleSheet?r.styleSheet.cssText=n:r.appendChild(document.createTextNode(n)),t.appendChild(r)}}}]),e}(),lP=function(){function e(t,n){O(this,e),this.adContainer=t,this.onResume=n}return L(e,[{key:"show",value:function(){this.rewardLabel.style.display="block"}},{key:"hide",value:function(){this.rewardLabel.style.display="none"}},{key:"add",value:function(){try{var e=document.createElement("div");this.rewardLabel=e;var t=document.createElement("span");t.innerText="To receive the reward, please do not skip the ad",this.addStyles(),e.classList.add("gd__reward__label"),t.classList.add("gd__reward__span"),this.rewardLabel.appendChild(t),this.adContainer.appendChild(e)}catch(e){console.log(e)}}},{key:"addStyles",value:function(){var e=document.body||document.getElementsByTagName("body")[0];this.addStylesheet("gd__reward__label__style",e,"\n .gd__reward__label{\n background-color:black; \n width: 160px;\n // height: 35px;\n position: absolute;\n display: none;\n z-index: 2000;\n cursor: pointer;\n bottom: 40px;\n left: 10px;\n margin: 0;\n border-radius: 5px;\n border: .5px solid gray;\n text-align: center;\n }\n .gd__reward__label:hover{\n filter: invert(100%) sepia(51%) saturate(0%) hue-rotate(346deg) brightness(104%) contrast(100%); \n }\n .gd__reward__span{\n color: white;\n font-size: 12px;\n padding-left: 5px;\n font-family: Verdana, Arial, Helvetica, sans-serif;\n text-align: center;\n }\n ")}},{key:"addStylesheet",value:function(e,t,n){if(!document.getElementById(e)){var r=document.createElement("style");r.type="text/css",r.id=e,r.styleSheet?r.styleSheet.cssText=n:r.appendChild(document.createTextNode(n)),t.appendChild(r)}}}]),e}(),fP=function(){function e(t,n,r){O(this,e),this.adContainer=t,this.onResume=n,this.OnSkip=r}return L(e,[{key:"show",value:function(){this.skipAd.style.display="block"}},{key:"hide",value:function(){this.skipAd.style.display="none"}},{key:"add",value:function(){var e=this;try{var t=document.createElement("div");this.skipAd=t;var r=document.createElement("span");r.innerText="Skip Ad >>",this.addStyles(),t.classList.add("gd__skip__ad"),r.classList.add("gd__skip__span"),this.skipAd.appendChild(r),this.adContainer.appendChild(t),this.skipAd.addEventListener("click",function(){n(this,e),this.OnSkip()}.bind(this))}catch(e){console.log(e)}}},{key:"addStyles",value:function(){var e=document.body||document.getElementsByTagName("body")[0];this.addStylesheet("gd__skip__ad__style",e,"\n .gd__skip__ad{\n background-color:black; \n width: 260px;\n // height: 35px;\n position: absolute;\n display: none;\n z-index: 2000;\n cursor: pointer;\n bottom: 40px;\n right: 0px;\n margin: 0;\n border-radius: 5px;\n border: .5px solid gray;\n text-align: center;\n padding: 10px;\n }\n .gd__skip__ad:hover{\n filter: invert(100%) sepia(51%) saturate(0%) hue-rotate(346deg) brightness(104%) contrast(100%); \n }\n .gd__skip__span{\n color: white;\n font-size: 22px;\n padding-left: 5px;\n font-family: Verdana, Arial, Helvetica, sans-serif;\n text-align: center;\n }\n ")}},{key:"addStylesheet",value:function(e,t,n){if(!document.getElementById(e)){var r=document.createElement("style");r.type="text/css",r.id=e,r.styleSheet?r.styleSheet.cssText=n:r.appendChild(document.createTextNode(n)),t.appendChild(r)}}}]),e}(),pP=function(){function e(t){O(this,e),this.adContainer=t}return L(e,[{key:"show",value:function(){this.audioLabel.style.display="block"}},{key:"hide",value:function(){this.audioLabel.style.display="none"}},{key:"mute",value:function(){document.getElementById("game").contentWindow.postMessage("mute","*")}},{key:"unmute",value:function(){document.getElementById("game").contentWindow.postMessage("unmute","*")}},{key:"add",value:function(){try{var e=document.createElement("div");this.audioLabel=e;var t=document.createElement("span");t.innerText="Audio Ad is Playing";var n=document.createElement("span");n.innerHTML="ⓘ",this.addStyles(),e.classList.add("gd__audio__label"),t.classList.add("gd__audio__span"),n.classList.add("gd__audio__span"),this.audioLabel.appendChild(n),this.audioLabel.appendChild(t),this.adContainer.appendChild(e)}catch(e){console.log(e)}}},{key:"addStyles",value:function(){var e=document.body||document.getElementsByTagName("body")[0];this.addStylesheet("gd__audio__label__style",e,"\n .gd__audio__label{\n background-color: #ffca00; \n width: 200px;\n position: relative;\n display: none;\n z-index: 2000;\n cursor: pointer;\n top: 0px;\n margin: 0 auto;\n border-radius: 0px;\n border: 0px;\n text-align: center;\n height: 30px;\n border-bottom-left-radius: 3px;\n border-bottom-right-radius: 3px;\n padding: 5px;\n }\n .gd__audio__span{\n color: black;\n font-size: 14px;\n padding-left: 5px;\n font-family: Verdana, Arial, Helvetica, sans-serif;\n text-align: center;\n }\n ")}},{key:"addStylesheet",value:function(e,t,n){if(!document.getElementById(e)){var r=document.createElement("style");r.type="text/css",r.id=e,r.styleSheet?r.styleSheet.cssText=n:r.appendChild(document.createTextNode(n)),t.appendChild(r)}}}]),e}(),hP=function(){function e(t){O(this,e),this.adContainer=t,this.counterLabel=null,this.countdownInterval=null}return L(e,[{key:"show",value:function(){this.counterLabel&&(this.counterLabel.style.display="block",this.startCountdown(this.counterSpan,5))}},{key:"hide",value:function(){this.counterLabel&&(this.counterLabel.style.display="none"),this.countdownInterval&&(clearInterval(this.countdownInterval),this.countdownInterval=null)}},{key:"add",value:function(){try{var e=document.createElement("div");this.counterLabel=e;var t=document.createElement("span");this.counterSpan=t,t.innerText="Ad showing in 5...",t.classList.add("gd__counter__span"),this.addStyles(),e.classList.add("gd__counter__label"),e.appendChild(t),this.adContainer.appendChild(e)}catch(e){console.log(e)}}},{key:"startCountdown",value:function(e,t){var r=this,i=t;e.innerText="Ad showing in ".concat(i,"..."),this.countdownInterval=setInterval(function(){n(this,r),(i-=1)>0?e.innerText="Ad showing in ".concat(i,"..."):(clearInterval(this.countdownInterval),e.innerText="Ad is now showing!",this.hide())}.bind(this),1e3)}},{key:"addStyles",value:function(){var e=document.body||document.getElementsByTagName("body")[0];this.addStylesheet("gd__counter__label__style",e,"\n .gd__counter__label {\n position: absolute;\n background-color: rgba(0, 0, 0, 0.5);\n display: none;\n z-index: 2000;\n cursor: pointer;\n top: 0px;\n margin: 0 auto;\n width: 200px;\n height: 40px;\n border-radius: 0px;\n text-align: center;\n padding: 8px;\n top: 87%;\n right: -1px;\n border: 1px solid white;\n }\n .gd__counter__span {\n font-size: 15px;\n font-family: Verdana, Arial, Helvetica, sans-serif;\n text-align: center;\n }\n ")}},{key:"addStylesheet",value:function(e,t,n){if(!document.getElementById(e)){var r=document.createElement("style");r.type="text/css",r.id=e,r.styleSheet?r.styleSheet.cssText=n:r.appendChild(document.createTextNode(n)),t.appendChild(r)}}}]),e}(),mP=function(){function e(t,n){O(this,e),this.adContainer=n,this.infoLabel=null,this.info=t}return L(e,[{key:"show",value:function(){this.infoLabel&&(this.infoLabel.style.display="block")}},{key:"hide",value:function(){this.infoLabel&&(this.infoLabel.style.display="none")}},{key:"add",value:function(){try{var e=document.createElement("div");this.infoLabel=e;var t=document.createElement("span");this.counterSpan=t,t.innerText="".concat(this.info),t.classList.add("gd__ad_info__span"),this.addStyles(),e.classList.add("gd__ad_info__label"),e.appendChild(t),this.adContainer.appendChild(e)}catch(e){console.log(e)}}},{key:"addStyles",value:function(){var e=document.body||document.getElementsByTagName("body")[0];this.addStylesheet("gd__ad_info__label__style",e,"\n .gd__ad_info__label {\n position: absolute;\n background-color: rgba(0, 0, 0, 0.5);\n display: none;\n z-index: 2000;\n cursor: pointer;\n top: 8px;\n left: 8px;\n margin: 0 auto;\n width: 200px;\n border-radius: 0px;\n text-align: center;\n padding: 8px;\n border: 1px solid white;\n }\n .gd__ad_info__span {\n font-size: 15px;\n font-family: Verdana, Arial, Helvetica, sans-serif;\n text-align: center;\n }\n ")}},{key:"addStylesheet",value:function(e,t,n){if(!document.getElementById(e)){var r=document.createElement("style");r.type="text/css",r.id=e,r.styleSheet?r.styleSheet.cssText=n:r.appendChild(document.createTextNode(n)),t.appendChild(r)}}}]),e}(),vP=function(){function e(t){O(this,e),this.adContainer=t}return L(e,[{key:"show",value:function(){this.t4rButton.style.display="block"}},{key:"hide",value:function(){this.t4rButton.style.display="none"}},{key:"add",value:function(){try{var e=document.createElement("div"),t=document.createElement("p");this.addStyles(),t.innerText="x",e.appendChild(t),e.id="gd__exit__button",e.setAttribute("title","Exit"),e.classList.add("gd__exit__button"),this.t4rButton=e,document.body.appendChild(e)}catch(e){console.log("Exit button add error",e)}}},{key:"addStyles",value:function(){var e=document.body||document.getElementsByTagName("body")[0];this.addStylesheet("gd__exit__button__style",e,"\n .gd__exit__button{\n background-color: transparent; \n width: 50px;\n height: 50px;\n position: absolute;\n pointer-events:none; \n z-index: 2000;\n top: 17px;\n right: 17px;\n margin: 0;\n border-radius: 50px;\n border: 1px solid white;\n text-align: center; \n font-size: 16px;\n line-height: normal;\n font-family: 'Arial';\n font-weight: bolder;\n }\n .gd__exit__button:hover{\n filter: invert(100%) sepia(51%) saturate(0%) hue-rotate(346deg) brightness(104%) contrast(100%); \n }")}},{key:"addStylesheet",value:function(e,t,n){if(!document.getElementById(e)){var r=document.createElement("style");r.type="text/css",r.id=e,r.styleSheet?r.styleSheet.cssText=n:r.appendChild(document.createTextNode(n)),t.appendChild(r)}}}]),e}(),gP=new Blob([new Uint8Array([255,227,24,196,0,0,0,3,72,1,64,0,0,4,132,16,31,227,192,225,76,255,67,12,255,221,27,255,228,97,73,63,255,195,131,69,192,232,223,255,255,207,102,239,255,255,255,101,158,206,70,20,59,255,254,95,70,149,66,4,16,128,0,2,2,32,240,138,255,36,106,183,255,227,24,196,59,11,34,62,80,49,135,40,0,253,29,191,209,200,141,71,7,255,252,152,74,15,130,33,185,6,63,255,252,195,70,203,86,53,15,255,255,247,103,76,121,64,32,47,255,34,227,194,209,138,76,65,77,69,51,46,57,55,170,170,170,170,170,170,170,170,170,170,255,227,24,196,73,13,153,210,100,81,135,56,0,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170,170])],{type:"audio/mpeg"}),AP=new Blob([new Uint8Array([0,0,0,28,102,116,121,112,105,115,111,109,0,0,2,0,105,115,111,109,105,115,111,50,109,112,52,49,0,0,0,8,102,114,101,101,0,0,2,239,109,100,97,116,33,16,5,32,164,27,255,192,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,55,167,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,112,33,16,5,32,164,27,255,192,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,55,167,128,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,112,0,0,2,194,109,111,111,118,0,0,0,108,109,118,104,100,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,232,0,0,0,47,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,1,236,116,114,97,107,0,0,0,92,116,107,104,100,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,47,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,36,101,100,116,115,0,0,0,28,101,108,115,116,0,0,0,0,0,0,0,1,0,0,0,47,0,0,0,0,0,1,0,0,0,0,1,100,109,100,105,97,0,0,0,32,109,100,104,100,0,0,0,0,0,0,0,0,0,0,0,0,0,0,172,68,0,0,8,0,85,196,0,0,0,0,0,45,104,100,108,114,0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0,0,0,1,15,109,105,110,102,0,0,0,16,115,109,104,100,0,0,0,0,0,0,0,0,0,0,0,36,100,105,110,102,0,0,0,28,100,114,101,102,0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1,0,0,0,211,115,116,98,108,0,0,0,103,115,116,115,100,0,0,0,0,0,0,0,1,0,0,0,87,109,112,52,97,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,2,0,16,0,0,0,0,172,68,0,0,0,0,0,51,101,115,100,115,0,0,0,0,3,128,128,128,34,0,2,0,4,128,128,128,20,64,21,0,0,0,0,1,244,0,0,1,243,249,5,128,128,128,2,18,16,6,128,128,128,1,2,0,0,0,24,115,116,116,115,0,0,0,0,0,0,0,1,0,0,0,2,0,0,4,0,0,0,0,28,115,116,115,99,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,28,115,116,115,122,0,0,0,0,0,0,0,0,0,0,0,2,0,0,1,115,0,0,1,116,0,0,0,20,115,116,99,111,0,0,0,0,0,0,0,1,0,0,0,44,0,0,0,98,117,100,116,97,0,0,0,90,109,101,116,97,0,0,0,0,0,0,0,33,104,100,108,114,0,0,0,0,0,0,0,0,109,100,105,114,97,112,112,108,0,0,0,0,0,0,0,0,0,0,0,0,45,105,108,115,116,0,0,0,37,169,116,111,111,0,0,0,29,100,97,116,97,0,0,0,1,0,0,0,0,76,97,118,102,53,54,46,52,48,46,49,48,49])],{type:"video/mp4"});function bP(e){return Object.assign({muted:!1,timeout:250,inline:!1},e)}function yP(e,t){var n=e.muted,r=e.timeout,i=e.inline,a=t(),o=a.element,s=a.source,u=void 0,c=void 0,d=void 0;return o.muted=n,!0===n&&o.setAttribute("muted","muted"),!0===i&&o.setAttribute("playsinline","playsinline"),o.src=s,new Promise((function(e){u=o.play(),c=setTimeout((function(){d(!1,new Error("Timeout "+r+" ms has been reached"))}),r),d=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;o.remove(),o.srcObject=null,clearTimeout(c),e({result:t,error:n})},void 0!==u?u.then((function(){return d(!0)})).catch((function(e){return d(!1,e)})):d(!0)}))}var _P={audio:function(e){return yP(e=bP(e),(function(){return{element:document.createElement("audio"),source:URL.createObjectURL(gP)}}))},video:function(e){return yP(e=bP(e),(function(){return{element:document.createElement("video"),source:URL.createObjectURL(AP)}}))}},wP={exports:{}};!function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,a="[object Arguments]",o="[object AsyncFunction]",s="[object Function]",u="[object GeneratorFunction]",c="[object Null]",d="[object Object]",l="[object Proxy]",f="[object Undefined]",p=/^\[object .+?Constructor\]$/,h=/^(?:0|[1-9]\d*)$/,m={};m["[object Float32Array]"]=m["[object Float64Array]"]=m["[object Int8Array]"]=m["[object Int16Array]"]=m["[object Int32Array]"]=m["[object Uint8Array]"]=m["[object Uint8ClampedArray]"]=m["[object Uint16Array]"]=m["[object Uint32Array]"]=!0,m[a]=m["[object Array]"]=m["[object ArrayBuffer]"]=m["[object Boolean]"]=m["[object DataView]"]=m["[object Date]"]=m["[object Error]"]=m[s]=m["[object Map]"]=m["[object Number]"]=m[d]=m["[object RegExp]"]=m["[object Set]"]=m["[object String]"]=m["[object WeakMap]"]=!1;var v="object"==typeof i&&i&&i.Object===Object&&i,g="object"==typeof self&&self&&self.Object===Object&&self,A=v||g||Function("return this")(),b=t&&!t.nodeType&&t,y=b&&e&&!e.nodeType&&e,_=y&&y.exports===b,w=_&&v.process,x=function(){try{var e=y&&y.require&&y.require("util").types;return e||w&&w.binding&&w.binding("util")}catch(e){}}(),k=x&&x.isTypedArray;var E,S,D=Array.prototype,I=Function.prototype,R=Object.prototype,C=A["__core-js_shared__"],O=I.toString,T=R.hasOwnProperty,P=function(){var e=/[^.]+$/.exec(C&&C.keys&&C.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),L=R.toString,M=O.call(Object),B=RegExp("^"+O.call(T).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),j=_?A.Buffer:void 0,U=A.Symbol,F=A.Uint8Array,N=j?j.allocUnsafe:void 0,$=(E=Object.getPrototypeOf,S=Object,function(e){return E(S(e))}),G=Object.create,H=R.propertyIsEnumerable,z=D.splice,Z=U?U.toStringTag:void 0,V=function(){try{var e=Ae(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),K=j?j.isBuffer:void 0,q=Math.max,W=Date.now,Y=Ae(A,"Map"),Q=Ae(Object,"create"),J=function(){function e(){}return function(t){if(!Ce(t))return{};if(G)return G(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function X(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ee(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function te(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ne(e){var t=this.__data__=new ee(e);this.size=t.size}function re(e,t){var n=Ee(e),r=!n&&ke(e),i=!n&&!r&&De(e),a=!n&&!r&&!i&&Te(e),o=n||r||i||a,s=o?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],u=s.length;for(var c in e)!t&&!T.call(e,c)||o&&("length"==c||i&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||be(c,u))||s.push(c);return s}function ie(e,t,n){(void 0!==n&&!xe(e[t],n)||void 0===n&&!(t in e))&&se(e,t,n)}function ae(e,t,n){var r=e[t];T.call(e,t)&&xe(r,n)&&(void 0!==n||t in e)||se(e,t,n)}function oe(e,t){for(var n=e.length;n--;)if(xe(e[n][0],t))return n;return-1}function se(e,t,n){"__proto__"==t&&V?V(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}X.prototype.clear=function(){this.__data__=Q?Q(null):{},this.size=0},X.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},X.prototype.get=function(e){var t=this.__data__;if(Q){var r=t[e];return r===n?void 0:r}return T.call(t,e)?t[e]:void 0},X.prototype.has=function(e){var t=this.__data__;return Q?void 0!==t[e]:T.call(t,e)},X.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Q&&void 0===t?n:t,this},ee.prototype.clear=function(){this.__data__=[],this.size=0},ee.prototype.delete=function(e){var t=this.__data__,n=oe(t,e);return!(n<0)&&(n==t.length-1?t.pop():z.call(t,n,1),--this.size,!0)},ee.prototype.get=function(e){var t=this.__data__,n=oe(t,e);return n<0?void 0:t[n][1]},ee.prototype.has=function(e){return oe(this.__data__,e)>-1},ee.prototype.set=function(e,t){var n=this.__data__,r=oe(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},te.prototype.clear=function(){this.size=0,this.__data__={hash:new X,map:new(Y||ee),string:new X}},te.prototype.delete=function(e){var t=ge(this,e).delete(e);return this.size-=t?1:0,t},te.prototype.get=function(e){return ge(this,e).get(e)},te.prototype.has=function(e){return ge(this,e).has(e)},te.prototype.set=function(e,t){var n=ge(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ne.prototype.clear=function(){this.__data__=new ee,this.size=0},ne.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ne.prototype.get=function(e){return this.__data__.get(e)},ne.prototype.has=function(e){return this.__data__.has(e)},ne.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ee){var r=n.__data__;if(!Y||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new te(r)}return n.set(e,t),this.size=n.size,this};var ue,ce=function(e,t,n){for(var r=-1,i=Object(e),a=n(e),o=a.length;o--;){var s=a[ue?o:++r];if(!1===t(i[s],s,i))break}return e};function de(e){return null==e?void 0===e?f:c:Z&&Z in Object(e)?function(e){var t=T.call(e,Z),n=e[Z];try{e[Z]=void 0;var r=!0}catch(e){}var i=L.call(e);r&&(t?e[Z]=n:delete e[Z]);return i}(e):function(e){return L.call(e)}(e)}function le(e){return Oe(e)&&de(e)==a}function fe(e){return!(!Ce(e)||function(e){return!!P&&P in e}(e))&&(Ie(e)?B:p).test(function(e){if(null!=e){try{return O.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function pe(e){if(!Ce(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=ye(e),n=[];for(var r in e)("constructor"!=r||!t&&T.call(e,r))&&n.push(r);return n}function he(e,t,n,r,i){e!==t&&ce(t,(function(a,o){if(i||(i=new ne),Ce(a))!function(e,t,n,r,i,a,o){var s=_e(e,n),u=_e(t,n),c=o.get(u);if(c)return void ie(e,n,c);var l=a?a(s,u,n+"",e,t,o):void 0,f=void 0===l;if(f){var p=Ee(u),h=!p&&De(u),m=!p&&!h&&Te(u);l=u,p||h||m?Ee(s)?l=s:Oe(y=s)&&Se(y)?l=function(e,t){var n=-1,r=e.length;t||(t=Array(r));for(;++n<r;)t[n]=e[n];return t}(s):h?(f=!1,l=function(e,t){if(t)return e.slice();var n=e.length,r=N?N(n):new e.constructor(n);return e.copy(r),r}(u,!0)):m?(f=!1,v=u,g=!0?(A=v.buffer,b=new A.constructor(A.byteLength),new F(b).set(new F(A)),b):v.buffer,l=new v.constructor(g,v.byteOffset,v.length)):l=[]:function(e){if(!Oe(e)||de(e)!=d)return!1;var t=$(e);if(null===t)return!0;var n=T.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&O.call(n)==M}(u)||ke(u)?(l=s,ke(s)?l=function(e){return function(e,t,n,r){var i=!n;n||(n={});var a=-1,o=t.length;for(;++a<o;){var s=t[a],u=r?r(n[s],e[s],s,n,e):void 0;void 0===u&&(u=e[s]),i?se(n,s,u):ae(n,s,u)}return n}(e,Pe(e))}(s):Ce(s)&&!Ie(s)||(l=function(e){return"function"!=typeof e.constructor||ye(e)?{}:J($(e))}(u))):f=!1}var v,g,A,b;var y;f&&(o.set(u,l),i(l,u,r,a,o),o.delete(u));ie(e,n,l)}(e,t,o,n,he,r,i);else{var s=r?r(_e(e,o),a,o+"",e,t,i):void 0;void 0===s&&(s=a),ie(e,o,s)}}),Pe)}function me(e,t){return we(function(e,t,n){return t=q(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=q(r.length-t,0),o=Array(a);++i<a;)o[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(o),function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(e,this,s)}}(e,t,Be),e+"")}var ve=V?function(e,t){return V(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:Be;function ge(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function Ae(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return fe(n)?n:void 0}function be(e,t){var n=typeof e;return!!(t=null==t?r:t)&&("number"==n||"symbol"!=n&&h.test(e))&&e>-1&&e%1==0&&e<t}function ye(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||R)}function _e(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var we=function(e){var t=0,n=0;return function(){var r=W(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(ve);function xe(e,t){return e===t||e!=e&&t!=t}var ke=le(function(){return arguments}())?le:function(e){return Oe(e)&&T.call(e,"callee")&&!H.call(e,"callee")},Ee=Array.isArray;function Se(e){return null!=e&&Re(e.length)&&!Ie(e)}var De=K||function(){return!1};function Ie(e){if(!Ce(e))return!1;var t=de(e);return t==s||t==u||t==o||t==l}function Re(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}function Ce(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Oe(e){return null!=e&&"object"==typeof e}var Te=k?function(e){return function(t){return e(t)}}(k):function(e){return Oe(e)&&Re(e.length)&&!!m[de(e)]};function Pe(e){return Se(e)?re(e,!0):pe(e)}var Le,Me=(Le=function(e,t,n){he(e,t,n)},me((function(e,t){var n=-1,r=t.length,i=r>1?t[r-1]:void 0,a=r>2?t[2]:void 0;for(i=Le.length>3&&"function"==typeof i?(r--,i):void 0,a&&function(e,t,n){if(!Ce(n))return!1;var r=typeof t;return!!("number"==r?Se(n)&&be(t,n.length):"string"==r&&t in n)&&xe(n[t],e)}(t[0],t[1],a)&&(i=r<3?void 0:i,r=1),e=Object(e);++n<r;){var o=t[n];o&&Le(e,o,n,i)}return e})));function Be(e){return e}e.exports=Me}(wP,wP.exports);var xP=wP.exports;function kP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function EP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kP(Object(n),!0).forEach((function(t){cc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function SP(e){return null!=e&&e.error_url?"<vmap:VASTAdData>".concat(function(e){return e.promo_url?'<VAST version="3.0">\n <Ad id="'.concat(e.id,'">\n <Wrapper fallbackOnNoAd="true">\n <AdSystem>GDFP</AdSystem>\n <Error><![CDATA[').concat(e.error_url,"]]></Error>\n <Impression><![CDATA[").concat(e.impression_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.adtag_url,']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="0" />\n </Extensions>\n </Wrapper>\n </Ad>\n <Ad id="promo">\n <Wrapper>\n <AdSystem>Rainbow</AdSystem>\n <Impression><![CDATA[').concat(e.promo_imp_green_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.promo_url,']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="1" />\n </Extensions>\n </Wrapper>\n </Ad>\n </VAST>').trim():e.fallback_url?'<VAST version="3.0">\n <Ad id="'.concat(e.id,'">\n <Wrapper fallbackOnNoAd="true">\n <AdSystem>GDFP</AdSystem>\n <Error><![CDATA[').concat(e.error_url,"]]></Error>\n <Impression><![CDATA[").concat(e.impression_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.adtag_url,']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="0" />\n </Extensions>\n </Wrapper>\n </Ad>\n <Ad id="fallback">\n <Wrapper>\n <AdSystem>Rainbow</AdSystem>\n <Impression><![CDATA[').concat(e.fallback_imp_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.fallback_url,']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="1" />\n </Extensions>\n </Wrapper>\n </Ad>\n </VAST>').trim():'<VAST version="3.0">\n <Ad id="'.concat(e.id,'">\n <Wrapper>\n <AdSystem>GDFP</AdSystem>\n <Error><![CDATA[').concat(e.error_url,"]]></Error>\n <Impression><![CDATA[").concat(e.impression_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.adtag_url,"]]></VASTAdTagURI>\n </Wrapper>\n </Ad>\n </VAST>").trim()}(e),"</vmap:VASTAdData>"):'<vmap:AdTagURI templateType="vast3"><![CDATA['.concat(null==e?void 0:e.adtag_url,"]]></vmap:AdTagURI>")}var DP,IP="13998",RP="_cc".concat(IP),CP=["https://tags.crwdcntrl.net/c/".concat(IP,"/cc.js?ns=").concat(RP)],OP=function(){return!!DP&&"function"==typeof DP.bcpf&&"function"==typeof DP.add},TP=function(e,t){try{if(!OP())return;DP.add(e,t),ac("lotame add success ".concat(e," ").concat(t))}catch(e){ac("lotame add error",err)}},PP=function(e,t){try{if(!OP())return;DP.bcpw(e,t),ac("lotame send success ".concat(e," ").concat(t))}catch(e){}},LP=function(e){var t=this;try{TP("act","play"),TP("med","game"),"complete"===document.readyState?DP.bcpf():DP.bcp(),e.tags.forEach(function(e){n(this,t),PP("int","tags : ".concat(e.title.toLowerCase()))}.bind(this)),PP("int","category : ".concat(e.category.toLowerCase()))}catch(e){}},MP=function(){window.addEventListener("load",(function(){nI.once("game-data-ready",function(){var e=t(d.mark((function e(t){var n;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=1,e.t0=null!=t_&&t_.noLotamePageView,!e.t0){e.next=7;break}return e.next=6,pI();case 6:e.t0=e.sent;case 7:if(!e.t0){e.next=10;break}return e.abrupt("return");case 10:if(null!==(n=t.lotm)&&void 0!==n&&n.enabled){e.next=13;break}return e.abrupt("return");case 13:return e.next=16,ft(CP[0],"LOTCC_".concat(IP),{alternates:CP});case 16:"object"===r(window[RP])&&(DP=window[RP]),OP()&&LP(t),e.next=23;break;case 20:e.prev=20,e.t1=e.catch(1),ac("lotame init error",e.t1);case 23:case"end":return e.stop()}}),e,null,[[1,20]])})));return function(t){return e.apply(this,arguments)}}())}))},BP=function(){PP("genp","ad video"),PP("act","ad impression")},jP=function(){PP("act","ad skipped")},UP=function(){PP("act","ad click")},FP=function(){PP("act","ad complete")},NP=function(){var e=(new cD).get("partner.url.value"),t=new C(e,!0),n={isRevisionTest:!1,useTestAds:!1,disableMidrolltimer:!1};if("revision.gamedistribution.com"===t.host){var r=t.query.test,i="1"===r||"2"===r,a="1"===r;n={useTestAds:i,disableMidrolltimer:a,isRevisionTest:a||i}}return n},$P=function(){function e(){O(this,e),this.adContainer=window.document.body}return L(e,[{key:"show",value:function(e){this.adSpinner.style.display="block",this.adSpinnerOverlay.style.display="block",e?(this.adSpinner.style.display="block",this.adSpinnerFail.style.display="none",this.adSpinnerButton.style.display="none"):(this.adSpinner.style.display="none",this.adSpinnerFail.style.display="block",this.adSpinnerButton.style.display="block")}},{key:"hide",value:function(){this.adSpinner.style.display="none",this.adSpinnerOverlay.style.display="none"}},{key:"add",value:function(){var e=this;try{this.addStyles();var t=document.createElement("div");t.id="gd__spinner",t.setAttribute("title","Spinner"),t.classList.add("gd__spinner"),this.adSpinner=t;var r=document.createElement("div");r.id="gd__spinner__fail",r.setAttribute("title","Spinner"),r.classList.add("gd__spinner__fail"),r.innerHTML="No Ads Available!",this.adSpinnerFail=r;var i=document.createElement("div");i.id="gd__spinner__button",i.setAttribute("title","Spinner"),i.classList.add("gd__spinner__button"),i.onclick=function(){n(this,e),this.hide()}.bind(this);var a=document.createElement("p");a.innerText="OK!",i.appendChild(a),this.adSpinnerButton=i;var o=document.createElement("div");o.id="gd__spinner__logo",o.setAttribute("title","Spinner"),o.classList.add("gd__spinner__logo"),this.adSpinnerLogo=o;var s=document.createElement("div");s.id="gd__spinner__container",s.classList.add("gd__spinner__container"),s.appendChild(this.adSpinner),s.appendChild(this.adSpinnerFail),s.appendChild(this.adSpinnerButton),s.appendChild(this.adSpinnerLogo),this.adSpinnerContainer=s;var u=document.createElement("div");u.id="gd__spinner__overlay",u.classList.add("gd__spinner__overlay"),u.appendChild(this.adSpinnerContainer),this.adSpinnerOverlay=u,this.adContainer.appendChild(this.adSpinnerOverlay)}catch(e){console.log("Spinner error",e)}}},{key:"addStyles",value:function(){var e=document.body||document.getElementsByTagName("body")[0];this.addStylesheet("gd__spinner__style",e,'\n .gd__spinner__button{ \n text-align: center; \n width: 150px;\n height: 50px;\n position: absolute;\n display: none;\n z-index: 2000;\n cursor: pointer;\n top: calc(80% - 25px);\n left: calc(50% - 75px);\n margin: 0;\n font-size: large;\n font-family: monospace;\n background-color: #ff8c1c;\n border-radius: 50px;\n color: white;\n }\n\n .gd__spinner__fail{\n text-align: center; \n width: 300px;\n height: 50px;\n position: absolute;\n display: none;\n z-index: 2000;\n cursor: pointer;\n top: calc(65% - 25px);\n left: calc(50% - 150px);\n margin: 0;\n font-size: large;\n font-family: monospace;\n color: #ff8c1c;\n }\n\n .gd__spinner__logo{\n background: url("https://static.gamedistribution.com/android-chrome-192x192.png") no-repeat;\n background-size: cover; \n width: 100px;\n height: 100px;\n position: absolute;\n display: block;\n z-index: 2000;\n cursor: pointer;\n top: calc(30% - 50px);\n left: calc(50% - 50px);\n margin: 0;\n border-radius: 50%;\n }\n\n .gd__spinner__container{ \n background-color: black; \n width: 300px;\n height: 300px;\n position: absolute;\n z-index: 2000;\n cursor: pointer;\n top: calc(50% - 150px);\n left: calc(50% - 150px);\n margin: 0;\n border-radius: 20px;\n border: 2px solid #06b8a2;\n }\n\n\n .gd__spinner{\n background: url("https://static.gamedistribution.com/assets/loader.gif") no-repeat;\n background-size: cover; \n width: 50px;\n height: 50px;\n position: absolute;\n display: none;\n z-index: 2000;\n cursor: pointer;\n top: calc(80% - 25px);\n left: calc(50% - 25px);\n margin: 0;\n border-radius: 50%;\n }\n \n .gd__spinner__overlay {\n position: fixed;\n display: none;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: rgba(0,0,0,0.5);\n z-index: 1999;\n cursor: pointer;\n }\n ')}},{key:"addStylesheet",value:function(e,t,n){if(!document.getElementById(e)){var r=document.createElement("style");r.type="text/css",r.id=e,r.styleSheet?r.styleSheet.cssText=n:r.appendChild(document.createTextNode(n)),t.appendChild(r)}}}]),e}();function GP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function HP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?GP(Object(n),!0).forEach((function(t){cc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zP(e){var t=e.gameData,r=e.msgrt,i=e.topDomain,a=e.parentDomain,o=e.parentURL;return{send_atom_event:function(e,s){if(function(e){var r=this,i=t.dbglg;return(null==i?void 0:i.enabled)&&i.topics&&i.topics.some(function(t){return n(this,r),t===e}.bind(this))}(e)){var u={gid:t.slug,md5:t.gameId,pid:0,pnm:t.pname,ctry:t.ctry,lcl:"en",hle:1,ads:1,args:s,href:window.location.href},c=(new cD).get();return u=HP(HP({},u),c),function(e,t){try{var n=r._layout,s=r._ua,u={tp:e,ct:0,vrs:nc.version,url:o,rfr:document.referrer,tdmn:i||a,dpth:0,args:t,ua:{brnm:s.browser.name,brvs:s.browser.version,osnm:s.os.name,osvs:s.os.version,dvmd:s.device.model,w:n.w,h:n.h}};return fetch("https://tag.atom.gamedistribution.com/v1/dmp?ar=".concat(encodeURIComponent(nt.encode(JSON.stringify(u)))))}catch(e){}}(e,u=s?HP(HP({},u),s):u)}}}}function ZP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function VP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ZP(Object(n),!0).forEach((function(t){cc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var KP=new hD.exports.EventEmitter,qP=null,WP=function(){function e(t,r,i){var a=this;if(O(this,e),qP)return qP;qP=this;var o={debug:!1,width:640,height:360,locale:"en"};this.options=r?it(o,r):o,this.prefix="gdsdk__",this.adsLoader=null,this.adsManager=null,this.adDisplayContainer=null,this.eventBus=new Dt,this.safetyTimer=null,this.containerTransitionSpeed=0,this.adCounter={},this.adPrerollCount=0,this.adMidrollCount=0,this.adRewardedCount=0,this.preloadedAdType=null,this.requestRunning=!1,this.parentDomain=i.parentDomain,this.topDomain=i.topDomain,this.parentURL=i.parentURL,this.adDisplayContainerInitialized=!1,this.IMASampleTags={interstitial:["https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dskippablelinear&correlator=","https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dredirectlinear&correlator=","https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dredirecterror&correlator="],rewarded:["https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dlinear&correlator="]},this.atom_display,this.adType_="",this.rewardGuarantied=!1,this.imaEventList=[],this.clickCount={midroll:0,preroll:0,rewarded:0},this.userAllowedPersonalizedAds=document.location.search.indexOf("gdpr-targeting=0")>=0||document.cookie.indexOf("ogdpr_advertisement=0")>=0?"0":"1",this.parentDomain.includes("girlsgogames")&&(this.userAllowedPersonalizedAds=!1),this.thirdPartyContainer=""!==t?document.getElementById(t):null,this.options.width="number"==typeof this.options.width?this.options.width:"100%"===this.options.width?640:this.options.width.replace(/[^0-9]/g,""),this.options.height="number"==typeof this.options.height?this.options.height:"100%"===this.options.height?360:this.options.height.replace(/[^0-9]/g,"");var s=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,u=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;this.options.width=this.thirdPartyContainer?this.thirdPartyContainer.offsetWidth:s,this.options.height=this.thirdPartyContainer?this.thirdPartyContainer.offsetHeight:u,this.category="",this.tags=[],this.eventCategory="AD",this.eventBus.subscribe("LOADED",function(){n(this,a),this._clearSafetyTimer("LOADED"),this._startSafetyTimer(8e3,"LOADED")}.bind(this),"ima"),this.eventBus.subscribe("STARTED",function(){n(this,a),this._clearSafetyTimer("STARTED")}.bind(this),"ima")}var r,i,a,o,s,u,c,f,p,h,m,v,g,A,b,y,_,w,x,k,E,S,D,I,R,T,P;return L(e,[{key:"start",value:(P=t(d.mark((function e(){var r,i,a,o=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.adSystemInitialize(t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o._init_afg_script({});case 2:case"end":return e.stop()}}),e)}))));case 3:return r=e.sent,this.afgInitSuccess=r.success,e.next=7,this.adSystemInitialize(t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o._init_hl_script();case 2:return e.next=4,o._init_ima_script();case 4:o._createPlayer(),o._setUpIMA();case 6:case"end":return e.stop()}}),e)}))));case 7:if(i=e.sent,this.imaInitSuccess=i.success,a=[],this.afgInitSuccess||a.push(r.error),this.imaInitSuccess||a.push(i.error),!(a.length>0)){e.next=14;break}throw a[0];case 14:window.eventTest=function(e){n(this,o),this._broadcast(e,{message:"",status:"success"})}.bind(this),e.next=21;break;case 17:throw e.prev=17,e.t0=e.catch(0),sc("gd-adflow error on ads.start",e.t0),new Error(e.t0);case 21:case"end":return e.stop()}}),e,this,[[0,17]])}))),function(){return P.apply(this,arguments)})},{key:"adSystemInitialize",value:(T=t(d.mark((function e(t){var n;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={success:!1},e.prev=1,e.next=4,t();case 4:n.success=!0,e.next=10;break;case 7:e.prev=7,e.t0=e.catch(1),n.error=e.t0;case 10:return e.abrupt("return",n);case 12:case"end":return e.stop()}}),e,null,[[1,7]])}))),function(e){return T.apply(this,arguments)})},{key:"_getDefaultSpilAdapterConfig",value:function(){return{vast:null,url:"https://pubads.g.doubleclick.net/gampad/ads",query:{correlator:"{{CACHEBUSTER}}",description_url:"{{PAGE_URL}}",env:"vp",gdfp_req:1,impl:"s",iu:"/59392726/gd_instream",npa:0,output:"vast",sz:"640x480|400x300",tfcd:0,unviewed_position_start:1}}}},{key:"_getSpilUrl",value:(R=t(d.mark((function e(t){var n,r,i,a,o,s,u,c,l,f,p,h;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.adType,r=t.options,e.prev=1,o=null===(i=this.gameData.adflw)||void 0===i||null===(a=i.adapterConfig)||void 0===a?void 0:a.spil,s=this.nextAdPosition(n),e.next=6,this._create_dp_context(s,r);case 6:return u=e.sent,o?(ac("spil-adaptor: in _getSpilUrl, adType, adPosition, gamedata",n,s,this.gameData),c=o[s]||o.default||this._getDefaultSpilAdapterConfig()):c=this._getDefaultSpilAdapterConfig(),l=100*u.floor_price,ac("spil-adaptor: fp",u.floor_price),f=this._createCustomAdVastUrl(c,{tnl_keys:{floor_price:l}}),p=f.url,h={url:p,dp:u,hl:{bidFloorApplied:!0}},e.abrupt("return",h);case 17:e.prev=17,e.t0=e.catch(1),console.log("spil-adaptor: Error on getting spil",e.t0);case 20:case"end":return e.stop()}}),e,this,[[1,17]])}))),function(e){return R.apply(this,arguments)})},{key:"checkIfTestAdsExist",value:function(){return gt.available&>.getBoolean("gd_debug_ex")&>.getBoolean("gd_tag")||NP().useTestAds}},{key:"_getAdVast",value:function(e,r){var i=this;return new Promise(function(){var a=t(d.mark((function t(a){var o,s,u,c,l,f,p,h,m=this;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(gt.available&>.getBoolean("gd_debug_ex")&>.getBoolean("gd_tag")||NP().useTestAds)){t.next=6;break}return o=i.IMASampleTags[e].filter(function(e){return n(this,m),e.indexOf("redirecterror")<0}.bind(this)),s=Math.floor(Math.random()*o.length),u=o[s],a({url:u,tnl_keys:{tnl_ad_pos:null==r?void 0:r.adTypeFound}}),t.abrupt("return");case 6:if("spil"!==r.adapter){t.next=8;break}return t.abrupt("return",a(i._getSpilUrl({adType:e,options:r})));case 8:if(void 0!==window.idhb.requestAds){t.next=10;break}throw new Error("Prebid.js wrapper script hit an error or didn't exist!");case 10:return t.prev=10,c=i.nextAdPosition(e),null!=r&&r.adTypeFound&&(c=null==r?void 0:r.adTypeFound),i._broadcast("AD_REQUEST",{message:c}),l=i.options,"preroll"===c&&U(l.preroll)?l=l.preroll:"midroll"===c&&U(l.midroll)?l=l.midroll:"rewarded"===c&&U(l.rewarded)&&(l=l.rewarded),f="","audio"===r.adapter||"audio"===r.giftType?(i.isAudioAd=!0,f="midrollaudio"):(i.isAudioAd=!1,f="rewarded"===c?"rewardedVideo":"gdbanner"===c?"gd__banner":"midroll"===c?"midroll":"video1"),t.next=20,window.idhb.isLoaded();case 20:return t.next=22,i._create_dp_context(c,r);case 22:p=t.sent,oc("gd-adflow, before idhb",c,f),h=window.idhb.getAdserverTargetingForAdSlot(f),window.idhb.setAdserverTargeting(VP(VP({},h),{},{adaptor_order:r.adapterIndex})),ac("hl-order 2",window.idhb.getAdserverTargetingForAdSlot(f)),window.idhb.requestAds({slots:cc({},f,{bidFloor:(null==p?void 0:p.floor_price)||void 0}),callback:function(e,t){var r=this;n(this,m),"Missing configuration"===(null==e?void 0:e.error)&&i._broadcast("HL_CONFIG_ERROR",{status:"warning"}),!p||null!=t&&t.bidFloorApplied||fetch(p.skip_url).catch(function(e){n(this,r)}.bind(this));var o={src:"hl",tnl_keys:VP(VP({},window.idhb.getAdserverTargetingForAdSlot(f)),{},{tnl_ad_pos:c,tnl_asset_id:i.gameData.gameId}),url:e,dp:p,hl:t};i._extend_hl_url(o),a(o)}.bind(this)}),t.next=34;break;case 31:throw t.prev=31,t.t0=t.catch(10),new Error(t.t0);case 34:case"end":return t.stop()}}),t,this,[[10,31]])})));return function(e){return a.apply(this,arguments)}}())}},{key:"nextAdPosition",value:function(e){if(e===rt.Rewarded)return this.adRewardedCount++,"rewarded";if(e===rt.Interstitial){var t=!1===this.gameData.preroll||1===this.adPrerollCount;return t?this.adMidrollCount++:this.adPrerollCount++,t||this.adMidrollCount>0?"midroll":"preroll"}return"midroll"}},{key:"getAdPosition",value:function(e){return e===rt.Rewarded?"rewarded":e===rt.Interstitial?!1===this.gameData.preroll||1===this.adPrerollCount||this.adMidrollCount>0?"midroll":"preroll":"midroll"}},{key:"getCurrentAdPosition",value:function(e){return e===rt.Interstitial?1===this.adPrerollCount&&0===this.adMidrollCount?"preroll":"midroll":e===rt.Rewarded?"rewarded":void 0}},{key:"_requestPromo",value:function(e,t){var n=new google.ima.AdsRequest;return n.adsResponse=function(e){return'<VAST version="3.0"> \n <Ad id="promo">\n <Wrapper>\n <AdSystem>Rainbow</AdSystem>\n <Impression><![CDATA['.concat(e.promo_imp_green_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.promo_url,"]]></VASTAdTagURI> \n </Wrapper>\n </Ad>\n </VAST>").trim()}(e),n.linearAdSlotWidth=this.options.width,n.linearAdSlotHeight=this.options.height,n.nonLinearAdSlotWidth=this.options.width,n.nonLinearAdSlotHeight=this.options.height,n.forceNonLinearFullSlot=!0,this.options.vast_load_timeout&&(n.vastLoadTimeout=this.options.vast_load_timeout),n.setAdWillAutoPlay(t.autoplayAllowed),n.setAdWillPlayMuted(t.autoplayRequiresMute),this.adsLoader.requestAds(n),n}},{key:"_requestAd",value:function(e,t){var r=this;return t=t||{},new Promise(function(i){var a=this;if(n(this,r),"undefined"==typeof google)throw new Error("Unable to load ad, google IMA SDK not defined.");try{var o,s,u=null==e||null===(o=e.tnl_keys)||void 0===o?void 0:o.tnl_ad_pos;this.adSuccess=!1,this.contentPaused=!1;var c=new google.ima.AdsRequest,d=this._transformVast(e,t),l=VP(VP({},t),{},{adTag:d,tnl_ad_pos:u});this.adCounter[u]=this.adCounter[u]||0,this.adCounter[u]++;var f=e.dp,p=e.hl;this.current_dp=f,f&&!d.bidder&&(f.adtag_url=d.url);var h=this._isVMAP(u);this.adContext.isVMAP=h,function(){n(this,a),t.shouldFail&&(f?(f.adtag_url="dp_original_broken",f.fallback_url="dp_fallback_broken"):d.url="original_broken",ac("gd-adflow, _requestAd, dp.adtag_url",null==f?void 0:f.adtag_url),ac("gd-adflow, _requestAd, dp.fallback_url",null==f?void 0:f.fallback_url),ac("gd-adflow, _requestAd, adTag.url",d.url))}.bind(this);var m=this._getExternalVast(null===(s=t)||void 0===s?void 0:s.adType);if(m)c.adTagUrl=m;else if(h){oc("gd-adflow, _isVMAP");var v=function(e){for(var t=[],n="",r=Date.now(),i={ppos:1,lip:!0,vad_type:"linear"},a=0;a<e.length;a++){var o=new C(e[a].adtag.url,!0);o.query=EP(EP({},o.query),{},{ad_rule:0,vpos:e[a].position,pod:1,correlator:0===a?r:++r,output:"xml_vast3"}),a<e.length-1&&(o.query=EP(EP({},o.query),i)),t.push(o.toString())}for(var s=Date.now(),u=1;u<=t.length;u++){var c,d,l,f;n+='<vmap:AdBreak timeOffset="start" breakType="linear" breakId="break-'.concat(u,'">\n <vmap:AdSource id="').concat(s++,'" allowMultipleAds="false" followRedirects="true">\n ').concat(SP({id:s++,adtag_url:t[u-1],error_url:null===(c=e[u-1].dp)||void 0===c?void 0:c.error_url,impression_url:null===(d=e[u-1].dp)||void 0===d?void 0:d.impression_url,fallback_url:null===(l=e[u-1].dp)||void 0===l?void 0:l.fallback_url,fallback_imp_url:null===(f=e[u-1].dp)||void 0===f?void 0:f.fallback_imp_url}),"</vmap:AdSource>\n </vmap:AdBreak>")}return'<?xml version="1.0" encoding="UTF-8"?>\n <vmap:VMAP xmlns:vmap="http://www.iab.net/videosuite/vmap" version="1.0">\n '.concat(n,"\n </vmap:VMAP>").trim()}(this._get_vmap_context({dp:f,adtag:d,position:"preroll"===l.tnl_ad_pos?"preroll":"midroll",config:this._get_vmap_config(u)}));c.adsResponse=v}else if(f&&p.bidFloorApplied){ac("gd-adflow, vast wrapper"),f.adtag_url||(f.adtag_url=d.url);var g=function(e){return e.promo_url?e.fallback_url?'<?xml version="1.0" encoding="utf-8"?>\n <VAST version="3.0">\n <Ad id="'.concat(e.id,'">\n <Wrapper fallbackOnNoAd="true">\n <AdSystem>GDFP</AdSystem>\n <Error><![CDATA[').concat(e.error_url,"]]></Error>\n <Impression><![CDATA[").concat(e.impression_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.adtag_url,']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="0" />\n </Extensions>\n </Wrapper>\n </Ad>\n <Ad id="fallback">\n <Wrapper>\n <AdSystem>ADS</AdSystem>\n <Impression><![CDATA[').concat(e.fallback_imp_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.fallback_url,']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="1" />\n </Extensions>\n </Wrapper>\n </Ad>\n <Ad id="promo">\n <Wrapper>\n <AdSystem>Rainbow</AdSystem>\n <Impression><![CDATA[').concat(e.promo_imp_green_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.promo_url,']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="2" />\n </Extensions>\n </Wrapper>\n </Ad>\n </VAST>').trim():'<?xml version="1.0" encoding="utf-8"?>\n <VAST version="3.0">\n <Ad id="'.concat(e.id,'">\n <Wrapper fallbackOnNoAd="true">\n <AdSystem>GDFP</AdSystem>\n <Error><![CDATA[').concat(e.error_url,"]]></Error>\n <Impression><![CDATA[").concat(e.impression_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.adtag_url,']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="0" />\n </Extensions>\n </Wrapper>\n </Ad>\n <Ad id="promo">\n <Wrapper>\n <AdSystem>Rainbow</AdSystem>\n <Impression><![CDATA[').concat(e.promo_imp_green_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.promo_url,']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="1" />\n </Extensions>\n </Wrapper>\n </Ad>\n </VAST>').trim():e.fallback_url?'<?xml version="1.0" encoding="utf-8"?>\n <VAST version="3.0">\n <Ad id="'.concat(e.id,'">\n <Wrapper fallbackOnNoAd="true">\n <AdSystem>GDFP</AdSystem>\n <Error><![CDATA[').concat(e.error_url,"]]></Error>\n <Impression><![CDATA[").concat(e.impression_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.adtag_url,']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="0" />\n </Extensions>\n </Wrapper>\n </Ad>\n <Ad id="fallback">\n <Wrapper>\n <AdSystem>ADS</AdSystem>\n <Impression><![CDATA[').concat(e.fallback_imp_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.fallback_url,']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="1" />\n </Extensions>\n </Wrapper>\n </Ad>\n </VAST>').trim():'<?xml version="1.0" encoding="utf-8"?>\n <VAST version="3.0">\n <Ad id="'.concat(e.id,'">\n <Wrapper>\n <AdSystem>GDFP</AdSystem>\n <Error><![CDATA[').concat(e.error_url,"]]></Error>\n <Impression><![CDATA[").concat(e.impression_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.adtag_url,"]]></VASTAdTagURI>\n </Wrapper>\n </Ad>\n </VAST>").trim()}(f);c.adsResponse=g}else if(f&&f.fallback_url){ac("gd-adflow, vast wrapper 2");var A=function(e){return'<?xml version="1.0" encoding="utf-8"?>\n <VAST version="3.0">\n <Ad id="'.concat(e.id,'">\n <Wrapper fallbackOnNoAd="true">\n <AdSystem>GDFP</AdSystem>\n <Impression><![CDATA[').concat(e.fallback_imp_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.adtag_url,']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="0" />\n </Extensions>\n </Wrapper>\n </Ad>\n <Ad id="fallback">\n <Wrapper>\n <AdSystem>ADS</AdSystem>\n <Impression><![CDATA[').concat(e.fallback_imp_url,"]]></Impression>\n <VASTAdTagURI><![CDATA[").concat(e.fallback_url,']]></VASTAdTagURI>\n <Extensions>\n <Extension type="waterfall" fallback_index="1" />\n </Extensions>\n </Wrapper>\n </Ad>\n </VAST>').trim()}(f);c.adsResponse=A}else ac("gd-adflow, without dp"),c.adTagUrl=d.url;c.linearAdSlotWidth=this.options.width,c.linearAdSlotHeight=this.options.height,c.nonLinearAdSlotWidth=this.options.width,c.nonLinearAdSlotHeight=this.options.height,c.forceNonLinearFullSlot=!0,this.options.vast_load_timeout&&(c.vastLoadTimeout=this.options.vast_load_timeout),c.setAdWillAutoPlay(t.autoplayAllowed);var b=t.opusSuccess||t.autoplayRequiresMute;c.setAdWillPlayMuted(b),this.adsLoader.requestAds(c,l);try{this._broadcast("AD_SDK_REQUEST",{message:l})}catch(e){}i(c)}catch(e){throw new Error(e)}}.bind(this))}},{key:"_getExternalVast",value:function(e){var t;try{var n,r,i,a,o,s,u=this.getCurrentAdPosition(e),c=null===(n=this.gameData)||void 0===n?void 0:n.cust_vast,d=(null==c?void 0:c[u])||(null==c?void 0:c.default);if(!d)return ac("[ext-vast] no custom vast config"),null;ac("[ext-vast] has custom vast config",c);var l=null==d||null===(r=d.maps)||void 0===r||null===(i=r.position)||void 0===i?void 0:i[u],f=function(){var e,t=!1;return e=navigator.userAgent||navigator.vendor||window.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))&&(t=!0),!1===t&&window.orientation>-1&&(t=!0),t}();ac("[ext-vast] is-mobile",f);var p=f?"mobile":"desktop",h=null==d||null===(a=d.maps)||void 0===a||null===(o=a.env)||void 0===o?void 0:o[p],m=this._createCustomAdVastUrl(d,{tnl_keys:{slug:null===(s=this.gameData)||void 0===s?void 0:s.slug,mapped_position:l,mapped_env:h}});t=null==m?void 0:m.url,ac("[ext-vast] check result",t)}catch(e){sc("[ext-vast] check err",e)}return t}},{key:"cancel",value:function(e){var t,n;if(!1!==this.requestRunning){this.requestRunning=!1,this._resetAdsLoader(),this._hide("cancel"),this.activeAdContainer&&(this.activeAdContainer.style.opacity=1),this.adsManager&&this.adsManager.setVolume(null!==(t=this.adContext)&&void 0!==t&&t.muteRequested?0:1),this.t4rButton&&this.t4rButton.hide();var r=(null==e||null===(n=e.message)||void 0===n?void 0:n.indexOf("NO_VAST_URL"))>=0,i="AD_SDK_CANCELED";this._broadcast(i,{name:i,message:"Advertisement has been canceled.",status:"warning",noVast:r,analytics:{category:this.eventCategory,action:i,label:this.gameData.gameId}})}}},{key:"_checkAutoPlay",value:(I=t(d.mark((function e(){var t=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(e,r){var i=this;n(this,t);var a=navigator.userAgent.toLowerCase();a.indexOf("safari")>-1&&a.indexOf("chrome"),_P.video({inline:!0,muted:!1}).then(function(t){n(this,i);var r=t.result;t.error,e(!0===r?{autoplayAllowed:!0,autoplayRequiresMute:!1}:{autoplayAllowed:!0,autoplayRequiresMute:!0})}.bind(this))}.bind(this)));case 1:case"end":return e.stop()}}),e,this)}))),function(){return I.apply(this,arguments)})},{key:"_initDisplayContainerWithAutoPlay",value:(D=t(d.mark((function e(){var t;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._checkAutoPlay(!1);case 2:return t=e.sent,this._autoplay=t,this.video_ad_player.autoplay=t.autoplayAllowed,this.video_ad_player.volume=t.autoplayRequiresMute?0:1,this.video_ad_player.muted=!!t.autoplayRequiresMute,t.adDisplayContainerInitialized||(this.adDisplayContainer.initialize(),this.adDisplayContainerInitialized=!0),e.abrupt("return",t);case 9:case"end":return e.stop()}}),e,this)}))),function(){return D.apply(this,arguments)})},{key:"startAd",value:(S=t(d.mark((function e(t){var r,i,a,o=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=t.adType,a=t.params,this.adType_=i,this.isAudioAd=!1,this.adContext=VP(VP({},a),{},{adType:i}),null!==(r=this.gameData.adspn)&&void 0!==r&&r.enabled&&(this.adFlowProcessSpinner||(this.adFlowProcessSpinner=new $P,this.adFlowProcessSpinner.add()),this.adFlowProcessSpinner.show(!0)),"promo"!==(null==a?void 0:a.adapter)){e.next=7;break}return e.abrupt("return",this._startPromo(a,i));case 7:if("adsense"!==(null==a?void 0:a.adapter)){e.next=31;break}if(i!==rt.Interstitial){e.next=24;break}if("preroll"!==(null==a?void 0:a.position)){e.next=13;break}return e.abrupt("return",this._startAdsensePlacementPreroll(t));case 13:if("start"!==(null==a?void 0:a.position)){e.next=17;break}return e.abrupt("return",this._startAdsensePlacementStart(t));case 17:if("next"!==(null==a?void 0:a.position)){e.next=21;break}return e.abrupt("return",this._startAdsensePlacementNext(t));case 21:return e.abrupt("return",this._startAdsensePlacementPreroll(t));case 22:e.next=29;break;case 24:if(i!==rt.Rewarded){e.next=28;break}return e.abrupt("return",this._startAdsensePlacementRewardedAd(t));case 28:throw new Error("Unsupported ad type");case 29:e.next=44;break;case 31:if(!["ima","spil","audio"].some(function(e){return n(this,o),e===(null==a?void 0:a.adapter)}.bind(this))){e.next=42;break}if(i!==rt.Interstitial){e.next=37;break}return e.abrupt("return",this._startInterstitialAd(a));case 37:if(i!==rt.Rewarded){e.next=41;break}return e.abrupt("return",this._startRewardedAd(a));case 41:throw new Error("Unsupported ad type");case 42:["opus"].some(function(e){return n(this,o),e===(null==a?void 0:a.adapter)}.bind(this))&&this._startOpusAd(a);case 44:case"end":return e.stop()}}),e,this)}))),function(e){return S.apply(this,arguments)})},{key:"_startOpusAd",value:(E=t(d.mark((function e(t){var r,i,a,o,s,u,c,l,f,p,h,m,v,g,A,b=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i="rewarded"===t.adTypeFound?"reward":t.adTypeFound,this._send_atom_event("opus-ad.start"),!this.requestRunning){e.next=8;break}return this._broadcast("AD_IS_ALREADY_RUNNING",{status:"warning"}),this._broadcast("AD_ERROR",{message:"Ad is already running",status:"error",reason:"request-running"}),this._send_atom_event("opus-ad.already-running"),e.abrupt("return");case 8:if(a=null===(r=window.gdlocus)||void 0===r?void 0:r.adBreak){e.next=13;break}return this._send_atom_event("opus-ad.not-initialized"),this._broadcast("AD_ERROR",{message:"Locus adBreak not found",status:"error",reason:"opus-not-found"}),e.abrupt("return");case 13:this._send_atom_event("opus-ad.ready"),o=void function(){return n(this,b),!0}.bind(this),this.requestRunning=!0,s=this.gameData,u=s.gameId,c=s.slug,l=s.title,f={assetId:u,slug:c,title:l,debug:o},p=function(e){n(this,b),this.opusEventReceived=!0,this._broadcast("CONTENT_PAUSE_REQUESTED",{message:"",status:"success"}),this._broadcast("IMPRESSION",{message:"",status:"success"})}.bind(this),h=function(e){n(this,b),this.opusEventReceived=!0,this._broadcast("CONTENT_RESUME_REQUESTED",{message:"",status:"success"})}.bind(this),m=function(){n(this,b),this.opusEventReceived=!0}.bind(this),v=function(){n(this,b),this.opusEventReceived=!0,this._broadcast("COMPLETE",{message:"",status:"success"}),this._broadcast("SDK_REWARDED_WATCH_COMPLETE",{message:"",status:"success"}),this._send_atom_event("sg.ad.rw.viewed")}.bind(this),g=function(e){n(this,b),this.opusEventReceived=!0,this.resetForNext();var t="".concat(i);this.adCounter[t]=this.adCounter[t]||0,this.adCounter[t]++,"viewed"===e.breakStatus?this._broadcast("AD_SUCCESS",{message:"Ad succeeded.",status:"success"}):this._broadcast("AD_ERROR",{message:e.errorMessage,errorType:e.errorType,status:e.breakStatus,reason:"opus-error"})}.bind(this),console.log("opus-ad meta",f),A={type:i,meta:f,beforeAd:p,afterAd:h,adBreakDone:g},"reward"===i&&(A=VP(VP({},A),{},{adDismissed:m,adViewed:v})),this.opusEventReceived=!1,this._startTimeoutForOpus(),a&&a(A);case 30:case"end":return e.stop()}}),e,this)}))),function(e){return E.apply(this,arguments)})},{key:"preloadAd",value:(k=t(d.mark((function e(t){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t!==rt.Interstitial){e.next=4;break}return e.abrupt("return","gdsdk://preloaded");case 4:if(t!==rt.Rewarded){e.next=8;break}return e.abrupt("return","gdsdk://preloaded");case 8:throw new Error("Unsupported ad type");case 9:case"end":return e.stop()}}),e)}))),function(e){return k.apply(this,arguments)})},{key:"addAdComponents",value:function(){var e=this,t=function(){n(this,e),this.adsManager.resume()}.bind(this),r=function(){n(this,e),this.rewardGuarantied||(this._broadcast("SDK_REWARDED_WATCH_COMPLETE",{message:"",status:"success"}),this.rewardGuarantied=!1),this._broadcast("AD_SUCCESS",{message:"Ad succeeded.",status:"success"}),this._hideSkipButton(),this.cancel()}.bind(this);try{this.adResume=new dP(this.adContainer,t),this.adResume.add(),this.rewardedLabel=new lP(this.adContainer,t),this.rewardedLabel.add(),this.skipAdButton=new fP(this.adContainer,t,r),this.skipAdButton.add(),this.audioAdLabel=new pP(window.document.body),this.audioAdLabel.add(),this.audioAdLabel.hide(),this.adCounterLabel=new hP(window.document.body),this.adCounterLabel.add(),this.adCounterLabel.hide(),this.adInfoLabel=new mP("Watching multiple ads now will reduce adbreaks later",window.document.body),this.adInfoLabel.add(),this.adInfoLabel.hide()}catch(e){console.log("error on adding adResume",e)}}},{key:"loadDisplayAd",value:(x=t(d.mark((function e(r){var i=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=t(d.mark((function e(t,a){var o,s,u,c,l,f,p,h,m,v=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{ac("display_test load",r),(s=r?r.containerId:null)||a("Container id is not specified"),u=document.getElementById(s),document.getElementById(s)||a("No container is found with this id - ".concat(s)),void 0===window.idhb.requestAds&&a("Prebid.js wrapper script hit an error or didn't exist!"),c=r.slotId?r.slotId:"gd__banner@".concat(s),document.getElementById(c)||(l="\n .gd__banner{\n z-index: ".concat(kt.zIndex,";\n height: 100%;\n display: flex !important;\n align-items: center;\n justify-content: center;\n overflow: hidden;\n }"),document.getElementById("gd__banner__style")||((f=document.createElement("style")).type="text/css",f.id="gd__banner__style",f.styleSheet?f.styleSheet.cssText=l:f.appendChild(document.createTextNode(l)),u.appendChild(f)),(p=document.createElement("div")).id=c,p.classList.add("gd__banner"),u.appendChild(p)),i.atom_display=null,null!==(o=i.atom_display)&&void 0!==o&&o.params&&window.idhb.setAdserverTargeting(null===(h=i.atom_display)||void 0===h?void 0:h.params),(m={})[c]={maxSize:[u.offsetWidth,u.offsetHeight]},ac("display_test slots",m),window.idhb.requestAds({slots:m,callback:function(e){n(this,v),ac("display_test callback",JSON.stringify(e,null,2))}.bind(this)}),t()}catch(e){console.log("display_test error",e),a(e.message||e)}case 1:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)}))),function(e){return x.apply(this,arguments)})},{key:"_startInterstitialAd",value:(w=t(d.mark((function e(t){var r,i,a,o,s,u=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!this.requestRunning){e.next=4;break}return this._broadcast("AD_IS_ALREADY_RUNNING",{status:"warning"}),e.abrupt("return");case 4:if(!void function(){if(n(this,u),uc.fictionalIMAError)return this._broadcast("AD_ERROR",{message:"fictional IMA error",status:"error",skipForward:!0}),!0}.bind(this)){e.next=7;break}return e.abrupt("return");case 7:return this.requestRunning=!0,e.next=10,this._initDisplayContainerWithAutoPlay();case 10:return i=e.sent,e.next=13,this._loadInterstitialAd(VP(VP({},i),t));case 13:if(a=e.sent,o=a.success,a.args,o){e.next=18;break}return e.abrupt("return");case 18:null!==(r=this.adContext)&&void 0!==r&&r.muteRequested?this.adsManager.setVolume(0):(i.autoplayRequiresMute&&this.adsManager.setVolume(0),!0===(null===(s=this.gameData.advlm)||void 0===s?void 0:s.mode)&&this.adsManager.setVolume(1)),this.adsManager.init(this.options.width,this.options.height,google.ima.ViewMode.NORMAL),this.adsManager.start(),e.next=28;break;case 23:throw e.prev=23,e.t0=e.catch(0),ac("VAST_URL_2 error",e.t0),this._onError(e.t0),e.t0;case 28:case"end":return e.stop()}}),e,this,[[0,23]])}))),function(e){return w.apply(this,arguments)})},{key:"_startPromo",value:(_=t(d.mark((function e(t,n){var r,i,a,o,s;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!this.requestRunning){e.next=4;break}return this._broadcast("AD_IS_ALREADY_RUNNING",{status:"warning"}),e.abrupt("return");case 4:return this.requestRunning=!0,this.adSuccess=!1,e.next=8,this._initDisplayContainerWithAutoPlay();case 8:return i=e.sent,e.next=11,this._loadPromo(VP(VP({},i),t),n);case 11:if(a=e.sent,o=a.success,a.args,o){e.next=16;break}return e.abrupt("return");case 16:null!==(r=this.adContext)&&void 0!==r&&r.muteRequested?this.adsManager.setVolume(0):(i.autoplayRequiresMute&&this.adsManager.setVolume(0),!0===(null===(s=this.gameData.advlm)||void 0===s?void 0:s.mode)&&this.adsManager.setVolume(1)),this.adsManager.init(this.options.width,this.options.height,google.ima.ViewMode.NORMAL),this.adsManager.start(),this.msgrt.send("promo.adsense",{message:"".concat(t.position," success")}),e.next=27;break;case 22:throw e.prev=22,e.t0=e.catch(0),this.msgrt.send("promo.adsense.err",{message:"".concat(t.position," failure,").concat(e.t0.message?e.t0.message:e.t0,", [").concat(this.parentURL,"]")}),this._onError(e.t0),e.t0;case 27:case"end":return e.stop()}}),e,this,[[0,22]])}))),function(e,t){return _.apply(this,arguments)})},{key:"_loadPromo",value:(y=t(d.mark((function e(t,n){var r,i;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._resetAdsLoader(),e.prev=1,r=this.nextAdPosition(n),i=this._create_promo_context(r),this._requestPromo(i,VP({adType:rt.Interstitial},t)),e.next=7,this._waitOnAdLoad();case 7:return e.abrupt("return",e.sent);case 10:throw e.prev=10,e.t0=e.catch(1),new Error(e.t0);case 13:case"end":return e.stop()}}),e,this,[[1,10]])}))),function(e,t){return y.apply(this,arguments)})},{key:"_loadInterstitialAd",value:(b=t(d.mark((function e(t){var n;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._resetAdsLoader(),e.prev=1,e.t0=this.preloadedInterstitialAdVast,e.t0){e.next=7;break}return e.next=6,this._getAdVast(rt.Interstitial,t);case 6:e.t0=e.sent;case 7:if(n=e.t0,delete this.preloadedInterstitialAdVast,n.url){e.next=12;break}throw new Error("NO_VAST_URL");case 12:return e.next=14,this._requestAd(n,VP({adType:rt.Interstitial},t));case 14:return e.sent,e.next=17,this._waitOnAdLoad();case 17:return e.abrupt("return",e.sent);case 20:throw e.prev=20,e.t1=e.catch(1),console.log("VAST_URL error",e.t1),new Error(e.t1);case 24:case"end":return e.stop()}}),e,this,[[1,20]])}))),function(e){return b.apply(this,arguments)})},{key:"_waitOnAdLoad",value:function(){var e=this;return new Promise(function(t,r){var i=this;n(this,e);var a="videoad.preloadad";this.eventBus.unsubscribeScope(a);var o=function(e){var r=this;n(this,i),setTimeout(function(){n(this,r),this.eventBus.unsubscribeScope(a),t({success:!0,args:e})}.bind(this),1)}.bind(this),s=function(e){var r=this;n(this,i),setTimeout(function(){n(this,r),this.eventBus.unsubscribeScope(a),t({success:!1,args:e})}.bind(this),1)}.bind(this);this.eventBus.subscribe("AD_SDK_MANAGER_READY",o,a),this.eventBus.subscribe("AD_SDK_CANCELED",s,a),this.eventBus.subscribe("AD_ERROR",s,a)}.bind(this))}},{key:"_startRewardedAd",value:(A=t(d.mark((function e(t){var r,i,a,o,s,u=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!this.requestRunning){e.next=4;break}return this._broadcast("AD_IS_ALREADY_RUNNING",{status:"warning"}),e.abrupt("return");case 4:if(!void function(){if(n(this,u),uc.fictionalIMAError)return this._broadcast("AD_ERROR",{message:"fictional IMA error",status:"error",skipForward:!0}),!0}.bind(this)){e.next=7;break}return e.abrupt("return");case 7:return this.requestRunning=!0,e.next=10,this._initDisplayContainerWithAutoPlay();case 10:return i=e.sent,e.next=13,this._loadRewardedAd(VP(VP({},i),t));case 13:if(a=e.sent,o=a.success,a.args,o){e.next=18;break}return e.abrupt("return");case 18:null!==(r=this.adContext)&&void 0!==r&&r.muteRequested?this.adsManager.setVolume(0):(i.autoplayRequiresMute&&this.adsManager.setVolume(0),!0===(null===(s=this.gameData.advlm)||void 0===s?void 0:s.mode)&&this.adsManager.setVolume(1)),this.adsManager.init(this.options.width,this.options.height,google.ima.ViewMode.NORMAL),this.adsManager.start(),e.next=27;break;case 23:throw e.prev=23,e.t0=e.catch(0),this._onError(e.t0),e.t0;case 27:case"end":return e.stop()}}),e,this,[[0,23]])}))),function(e){return A.apply(this,arguments)})},{key:"_loadRewardedAd",value:(g=t(d.mark((function e(t){var n;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._resetAdsLoader(),e.prev=1,e.t0=this.preloadedRewardedAdVast,e.t0){e.next=7;break}return e.next=6,this._getAdVast(rt.Rewarded,t);case 6:e.t0=e.sent;case 7:return n=e.t0,delete this.preloadedRewardedAdVast,e.next=11,this._requestAd(n,VP({adType:rt.Rewarded},t));case 11:return e.sent,e.next=14,this._waitOnAdLoad();case 14:return e.abrupt("return",e.sent);case 17:throw e.prev=17,e.t1=e.catch(1),new Error(e.t1);case 20:case"end":return e.stop()}}),e,this,[[1,17]])}))),function(e){return g.apply(this,arguments)})},{key:"_preloadInterstitialAd",value:(v=t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,e.t0=this.preloadedInterstitialAdVast,e.t0){e.next=6;break}return e.next=5,this._getAdVast(rt.Interstitial);case 5:e.t0=e.sent;case 6:return this.preloadedInterstitialAdVast=e.t0,e.abrupt("return",this.preloadedInterstitialAdVast.url);case 10:throw e.prev=10,e.t1=e.catch(0),new Error(e.t1);case 13:case"end":return e.stop()}}),e,this,[[0,10]])}))),function(){return v.apply(this,arguments)})},{key:"_preloadRewardedAd",value:(m=t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,e.t0=this.preloadedRewardedAdVast,e.t0){e.next=6;break}return e.next=5,this._getAdVast(rt.Rewarded);case 5:e.t0=e.sent;case 6:return this.preloadedRewardedAdVast=e.t0,e.abrupt("return",this.preloadedRewardedAdVast.url);case 10:throw e.prev=10,e.t1=e.catch(0),new Error(e.t1);case 13:case"end":return e.stop()}}),e,this,[[0,10]])}))),function(){return m.apply(this,arguments)})},{key:"_onError",value:function(e){this.cancel(e),this._clearSafetyTimer("ERROR")}},{key:"_hide",value:function(e){this.video_ad_player&&(this.video_ad_player.src=""),this.activeAdContainer&&(this.activeAdContainer.style.visibility="hidden")}},{key:"_show",value:function(e){var t=this;if(this.activeAdContainer){this.isAudioAd||(this.activeAdContainer.style.visibility="visible");var r=null==e?void 0:e.mode;e.t4r=this.gameData.__t4r,e.t4rac=this.gameData.__t4rac;var i=this._adrequest_user_context.t4RResult?this._adrequest_user_context.t4RResult:this._isT4R(e);this._adrequest_user_context.t4RResult=i;var a=i.success,o=i.reason,s=this._getT4ROptions(e);if("loaded"===r){var u,c,d=(null===(u=this._adrequest_user_context)||void 0===u||null===(c=u.adTag)||void 0===c?void 0:c.bidder)||"adx";this._broadcast("AD_BIDDER",{bidder:d}),a||this._broadcast("AD_T4R_NONE",{reason:o}),this.activeAdContainer.style.opacity=a?.001:1,a&&null!=e&&e.contentType.startsWith("video/")&&(this.t4rButton=new vP(this.adContainer),this.t4rButton.add(),this._broadcast("AD_T4R_VIDEO")),a&&this.adsManager.setVolume(0),a&&this._broadcast("AD_T4R"),a&&setTimeout(function(){var e;n(this,t),this.activeAdContainer.style.opacity=1,this.adsManager.setVolume(null!==(e=this.adContext)&&void 0!==e&&e.muteRequested?0:1),this.t4rButton&&this.t4rButton.hide()}.bind(this),((null==s?void 0:s.min)||1234)+Math.random()*((null==s?void 0:s.max)||3210))}else if("click"===r||"first_quartile"===r){var l;if(a&&"click"===r){var f,p=null===(f=this._adrequest_user_context)||void 0===f?void 0:f.tnl_ad_pos;this.clickCount[p]++,this._broadcast("AD_T4R_CLICK")}a||"click"!==r||this._broadcast("AD_CLICK"),this.t4rButton&&this.t4rButton.hide(),this.activeAdContainer.style.opacity=1,this.adsManager.setVolume(null!==(l=this.adContext)&&void 0!==l&&l.muteRequested?0:1)}}}},{key:"_createPlayer",value:function(){var e=this,t=document.body||document.getElementsByTagName("body")[0];this.adContainer=document.createElement("div"),this.adContainer.id="".concat(this.prefix,"advertisement"),this.adContainer.style.position=this.thirdPartyContainer?"absolute":"fixed",this.adContainer.style.zIndex=xt.zIndex,this.adContainer.style.top="0",this.adContainer.style.left="0",this.adContainer.style.width="100%",this.adContainer.style.height="100%",this.thirdPartyContainer&&(this.thirdPartyContainer.style.transform=null);var r=document.createElement("video");r.setAttribute("playsinline",!0),r.setAttribute("webkit-playsinline",!0),r.id="".concat(this.prefix,"advertisement_video"),r.style.position="absolute",r.style.backgroundColor="#000000",r.style.top="0",r.style.left="0",r.style.width=this.options.width+"px",r.style.height=this.options.height+"px",this.video_ad_player=r,this.adContainer.appendChild(r);var i=document.createElement("div");i.id="".concat(this.prefix,"advertisement_slot"),i.style.position="absolute",i.style.top="0",i.style.left="0",i.style.width=this.options.width+"px",i.style.height=this.options.height+"px",this.adContainerInner=i,this.activeAdContainer=this.adContainer,window.activeAdContainer=this.activeAdContainer,this.thirdPartyContainer?(this.adContainer.appendChild(i),this.thirdPartyContainer.appendChild(this.adContainer),this.activeAdContainer=this.thirdPartyContainer):(this.adContainer.appendChild(i),t.appendChild(this.adContainer)),this.addAdComponents(),this.activeAdContainer.style.visibility="hidden";var a=function(){n(this,e);var t=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,a=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;this.options.width=this.thirdPartyContainer?this.thirdPartyContainer.offsetWidth:t,this.options.height=this.thirdPartyContainer?this.thirdPartyContainer.offsetHeight:a,i.style.width=this.options.width+"px",i.style.height=this.options.height+"px",r.style.width=this.options.width+"px",r.style.height=this.options.height+"px"}.bind(this);window.addEventListener("resize",a),window.document.addEventListener("DOMContentLoaded",a)}},{key:"_setUpIMA",value:function(){this.adDisplayContainer=new google.ima.AdDisplayContainer(this.adContainerInner,this.video_ad_player),this.adsLoader=new google.ima.AdsLoader(this.adDisplayContainer),this.adsLoader.getSettings().setDisableCustomPlaybackForIOS10Plus(!0),this.adsLoader.getSettings().setLocale(this.options.locale),this.adsLoader.getSettings().setVpaidMode(this._getVPAIDMode()),this.adsLoader.getSettings().setAutoPlayAdBreaks(!0);var e=this.adsLoader.getSettings().getNumRedirects();this.adsLoader.getSettings().setNumRedirects(2*e),this.adsLoader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,this._onAdsManagerLoaded,!1,this),this.adsLoader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,this._onAdError,!1,this)}},{key:"_onAdsManagerLoaded",value:function(e){var t=this,r=new google.ima.AdsRenderingSettings;r.autoAlign=!1,r.enablePreloading=!1,r.restoreCustomPlaybackStateOnAdBreakComplete=!0,r.useStyledNonLinearAds=!0,r.uiElements=[google.ima.UiElements.AD_ATTRIBUTION,google.ima.UiElements.COUNTDOWN],this.adsManager=e.getAdsManager(this.video_ad_player,r),this.adsManager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,this._onAdError.bind(this),!1,this),this.adsManager.addEventListener(google.ima.AdEvent.Type.AD_BREAK_READY,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.AD_METADATA,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.ALL_ADS_COMPLETED,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.CLICK,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.COMPLETE,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.DURATION_CHANGE,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.FIRST_QUARTILE,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.IMPRESSION,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.INTERACTION,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.LINEAR_CHANGED,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.LOADED,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.LOG,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.MIDPOINT,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.PAUSED,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.RESUMED,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.SKIPPABLE_STATE_CHANGED,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.SKIPPED,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.STARTED,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.THIRD_QUARTILE,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.USER_CLOSE,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.VOLUME_CHANGED,this._onAdEvent.bind(this),this),this.adsManager.addEventListener(google.ima.AdEvent.Type.VOLUME_MUTED,this._onAdEvent.bind(this),this),window.addEventListener("resize",function(){n(this,t),this.adsManager&&this.adsManager.resize(this.options.width,this.options.height,google.ima.ViewMode.NORMAL)}.bind(this)),this.adDisplayContainerInitialized||(this.adDisplayContainer.initialize(),this.adDisplayContainerInitialized=!0);var i=new Date,a=i.getHours(),o=i.getDate(),s=i.getMonth(),u=i.getFullYear(),c="AD_SDK_MANAGER_READY";this._broadcast(c,{name:c,message:"AD SDK is ready",status:"success",analytics:{category:c,action:this.parentDomain,label:"h".concat(a," d").concat(o," m").concat(s," y").concat(u)}}),this._adrequest_user_context=e.getUserRequestContext()}},{key:"_onAdEvent",value:function(e){var t,r,i,a,o,s,u=this,c=new Date,d=c.getHours(),l=c.getDate(),f=c.getMonth(),p=c.getFullYear(),h=(o=google.ima.AdEvent.Type,s=e.type,Object.keys(o).find((function(e){return o[e]===s}))),m=!1,v=(null==e||null===(t=e.getAd())||void 0===t?void 0:t.getContentType())||"",g=!v.startsWith("image")&&!v.startsWith("text"),A=null==e||null===(r=e.ad)||void 0===r||null===(i=r.data)||void 0===i?void 0:i.title,b=null==e||null===(a=e.getAd())||void 0===a?void 0:a.data.skippable;this._sendIMAEventsToHB(e);var y=document.getElementById("game"),_="";switch(e.type){case google.ima.AdEvent.Type.AD_BREAK_READY:_="Fired when an ad rule or a VMAP ad break would have played if autoPlayAdBreaks is false.";break;case google.ima.AdEvent.Type.AD_METADATA:_="Fired when an ads list is loaded.";break;case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:this.contentPaused&&(m=!0),this.isAudioAd&&(this.audioAdLabel.hide(),this.isAudioAd=!1),this.rewardGuarantied=!1,_="Fired when the ads manager is done playing all the ads.";break;case google.ima.AdEvent.Type.CLICK:_="Fired when the ad is clicked.";var w=e.getAd().getContentType();this._show({mode:"click",contentType:w}),UP();break;case google.ima.AdEvent.Type.COMPLETE:ac("gd-adflow ON COMPLETE!",e.getAd()),m=this._is_completed(e.getAd()),_="Fired when the ad completes playing.",this.adType_!==rt.Rewarded||this.rewardGuarantied||(this._broadcast("SDK_REWARDED_WATCH_COMPLETE",{message:"",status:"success"}),this.rewardGuarantied=!0);break;case google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED:this.gameData.fllc.enabled&&(y.style.display="none"),this.contentPaused=!0,_="Fired when content should be paused. This usually happens right before an ad is about to cover the content.";break;case google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED:this.gameData.fllc.enabled&&(y.style.display="block"),_="Fired when content should be resumed. This usually happens when an ad finishes or collapses.",this.contentPaused?m=!0:(this.requestRunning=!1,this._broadcast("AD_ERROR",{message:"got resume without pause, possibly with VMAP",status:"error",skipForward:!0})),this._hideAddResume(),this._hideRewardedLabel(),this._hideSkipButton(),this.t4rButton&&this.t4rButton.hide(),this._clearTimeoutForSkipAddButton();break;case google.ima.AdEvent.Type.DURATION_CHANGE:_="Fired when the ad's duration changes.";break;case google.ima.AdEvent.Type.FIRST_QUARTILE:_="Fired when the ad playhead crosses first quartile.";var x=e.getAd().getContentType();this._show({mode:"first_quartile",contentType:x});break;case google.ima.AdEvent.Type.IMPRESSION:var k,E,S,D,I,R;if(_="Fired when the impression URL has been pinged.",e.getAd(),console.log("gdsdk: eventname IMPRESSION",this.isAudioAd),this._hideAdSpinner(),this.isAudioAd&&this.audioAdLabel.show(),"preroll"===this.adContext.adTypeFound)(null===(k=this.gameData)||void 0===k||null===(E=k.pAds)||void 0===E||null===(S=E.vmap)||void 0===S?void 0:S.enabled)&&(null===(D=this.gameData)||void 0===D||null===(I=D.pAds)||void 0===I||null===(R=I.vmap)||void 0===R?void 0:R.adtr)&&this.adInfoLabel.show();break;case google.ima.AdEvent.Type.INTERACTION:_="Fired when an ad triggers the interaction callback. Ad interactions contain an interaction ID string in the ad data.";break;case google.ima.AdEvent.Type.LINEAR_CHANGED:_="Fired when the displayed ad changes from linear to nonlinear, or vice versa.";break;case google.ima.AdEvent.Type.LOADED:var C=e.getAd().getContentType();_=C,this._show({mode:"loaded",contentType:C});break;case google.ima.AdEvent.Type.LOG:e.getAdData().adError&&(_=e.getAdData());break;case google.ima.AdEvent.Type.MIDPOINT:_="Fired when the ad playhead crosses midpoint.";break;case google.ima.AdEvent.Type.PAUSED:g&&"VPAID"!==A&&this.adResume.show(),_="Fired when the ad is paused.";break;case google.ima.AdEvent.Type.RESUMED:_="Fired when the ad is resumed.",g&&(this.adResume.hide(),this.rewardedLabel.hide());break;case google.ima.AdEvent.Type.SKIPPABLE_STATE_CHANGED:_="Fired when the displayed ads skippable state is changed.";break;case google.ima.AdEvent.Type.SKIPPED:var O;m=!(null!==(O=this.adContext)&&void 0!==O&&O.isVMAP)&&this._is_completed(e.getAd()),_="Fired when the ad is skipped by the user.",jP(),this.t4rButton&&this.t4rButton.hide();break;case google.ima.AdEvent.Type.STARTED:var T;if(this.skipAdButton&&this.skipAdButton.hide(),this.rewardGuarantied=!1,this.adType_===rt.Rewarded)!b&&null!==(T=this.gameData.rwskp)&&void 0!==T&&T.enabled&&(this._skipAdButtonTimeout=setTimeout(function(){n(this,u),this.skipAdButton.show(),this._broadcast("SDK_REWARDED_WATCH_COMPLETE",{message:"",status:"success"}),this.rewardGuarantied=!0}.bind(this),3e4)),this.rewardedLabel.show();this._hideAddResume(),_="Fired when the ad starts playing.";break;case google.ima.AdEvent.Type.THIRD_QUARTILE:_="Fired when the ad playhead crosses third quartile.";break;case google.ima.AdEvent.Type.USER_CLOSE:m=this._is_completed(e.getAd()),_="Fired when the ad is closed by the user.";break;case google.ima.AdEvent.Type.VOLUME_CHANGED:_="Fired when the ad volume has changed.";break;case google.ima.AdEvent.Type.VOLUME_MUTED:_="Fired when the ad volume has been muted."}if(""!==h&&""!==_){var P=!this.contentPaused&&e.type===google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,L=!this.contentPaused&&e.type===google.ima.AdEvent.Type.ALL_ADS_COMPLETED,M=P||L;"VPAID"===A&&this.imaEventList.push(h),M||this.isAudioAd||this._broadcast(h,{name:h,message:_,status:"success",analytics:{category:h,action:this.parentDomain,label:"h".concat(d," d").concat(l," m").concat(f," y").concat(p)}})}if(m&&!this.adSuccess){this.adSuccess=!0;var B=e.getAd();"VPAID"===A&&this._setAtomEvent();var j="Rainbow"===(null==B?void 0:B.getAdSystem())&&(null==B?void 0:B.getWrapperAdIds().some(function(e){return n(this,u),"promo"===e}.bind(this)));ac("gd-adflow isPromoSuccess",j,null==B?void 0:B.getAdSystem(),null==B?void 0:B.getWrapperAdIds()),this._broadcast("AD_SUCCESS",{message:"Ad succeeded.",status:"success",isPromoSuccess:j}),this.resetForNext(e)}}},{key:"_setAtomEvent",value:function(){this.dumper||(this.dumper=new zP({msgrt:this.msgrt,gameData:this.gameData,parentDomain:this.parentDomain,parentURL:this.parentURL,topDomain:this.parentURL}),this.dumper);var e={eventList:this.imaEventList};this.dumper.send_atom_event("vpaid",e),this.imaEventList=[]}},{key:"_clearTimeoutForSkipAddButton",value:function(){this._skipAdButtonTimeout&&(clearTimeout(this._skipAdButtonTimeout),this._skipAdButtonTimeout=null)}},{key:"_run_atom_tag_aws_test",value:function(e){var t=this;try{var r,i,a,o,s;if(!((null===(r=this.gameData)||void 0===r||null===(i=r.aws_tst)||void 0===i?void 0:i.enabled)&&(null===(a=this.gameData)||void 0===a||null===(o=a.aws_tst)||void 0===o||null===(s=o.ep)||void 0===s?void 0:s.atm)))return;var u=e.type,c=e.url;if("none"===u||!c)return;c=c.replace("tag.atom.gamedistribution.com","atom-tag-prod-aws.gamedistribution.com"),fetch(c).then(function(){n(this,t)}.bind(this))}catch(e){}}},{key:"_findAtomTagUrl",value:function(e,t){var r=this,i={type:"none"};try{var a=this.current_dp,o=a.id,s=a.error_url,u=a.impression_url,c=a.fallback_imp_url,d=a.promo_imp_green_url;if(!e&&!t)return i={type:"imp_err",url:s};var l=e.getWrapperAdIds().some(function(e){return n(this,r),e==="".concat(o)}.bind(this)),f=e.getWrapperAdIds().some(function(e){return n(this,r),"fallback"===e}.bind(this)),p=e.getWrapperAdIds().some(function(e){return n(this,r),"promo"===e}.bind(this));l&&t?i={type:"normal_imp",url:u}:l&&!t?i={type:"normal_err",url:s}:p&&t?i={type:"promo_imp",url:d}:f&&t&&(i={type:"fallbacj_imp",url:c})}catch(e){}return i}},{key:"_onAdError",value:function(e){this.requestRunning=!1,this._resetAdsLoader(),this._clearSafetyTimer("ERROR"),this._hide("_onAdError"),this._sendIMAEventsToHB(e);try{var t="AD_ERROR",n=e.getError(),r=n.getErrorCode().toString()||n.getVastErrorCode().toString(),i=this._getInnerErrorCode(n);KP.emit("AD_ERROR",r),this._broadcast(t,{message:r,details:i,status:"warning",analytics:{category:t,action:i,label:r}}),this._hideAddResume(),this._clearTimeoutForSkipAddButton()}catch(e){}}},{key:"_hideAddResume",value:function(){try{this.adResume&&this.adResume.hide()}catch(e){console.log("Error on hide adResume",e)}}},{key:"_hideAdSpinner",value:function(){try{var e;null!==(e=this.gameData.adspn)&&void 0!==e&&e.enabled&&this.adFlowProcessSpinner&&this.adFlowProcessSpinner.hide()}catch(e){console.log("Error on hide adSpinner",e)}}},{key:"_hideRewardedLabel",value:function(){try{this.adType_===rt.Rewarded&&this.rewardedLabel&&this.rewardedLabel.hide()}catch(e){console.log("Error on hide adResume",e)}}},{key:"_hideSkipButton",value:function(){try{this.adType_===rt.Rewarded&&this.skipAdButton&&this.skipAdButton.hide()}catch(e){console.log("Error on hide adResume",e)}}},{key:"_sendIMAEventsToHB",value:function(e){if(window.idhb&&"function"==typeof window.idhb.onImaEvent)try{window.idhb.onImaEvent({event:e})}catch(e){}}},{key:"_resetAdsLoader",value:function(){this.adsManager&&(this.adsManager.destroy(),this.adsManager=null,this._adrequest_user_context=null),this.adsLoader&&this.adsLoader.contentComplete()}},{key:"_startSafetyTimer",value:function(e,t){var r=this;this.safetyTimer&&clearTimeout(this.safetyTimer),this.safetyTimer=window.setTimeout(function(){n(this,r),this.cancel(),this._clearSafetyTimer(t)}.bind(this),e)}},{key:"_clearSafetyTimer",value:function(e){void 0!==this.safetyTimer&&null!==this.safetyTimer&&(clearTimeout(this.safetyTimer),this.safetyTimer=void 0)}},{key:"_getVPAIDMode",value:function(){return google.ima.ImaSdkSettings.VpaidMode.ENABLED}},{key:"_getPrebidScripts",value:function(){var e=["https://hb.improvedigital.com/pbw/headerlift.min.js","http://hb.improvedigital.com/pbw/headerlift.min.js"];return this.options.hb_script?[this.options.hb_script].concat(e):e}},{key:"_getInnerErrorCode",value:function(e){if(K(e.getInnerError)){var t=e.getInnerError();if(t)return K(t.getErrorCode)&&K(t.getVastErrorCode)?t.getErrorCode().toString()||t.getVastErrorCode().toString():t.message}}},{key:"resetForNext",value:function(){this.requestRunning=!1,this._hide("resetForNext")}},{key:"_createCustomAdVastUrl",value:function(e,t){var r=this;if(e){var i=this.macros.transform(e,{get:function(e){if(n(this,r),t&&t.tnl_keys)return t.tnl_keys[e.toLowerCase()]}.bind(this)});for(var a in i.query||{}){var o=i.query[a];U(o)&&(i.query[a]=l.stringify(o))}var s=new C(i.url,!0);return xP(s.query,i.query||{}),VP({url:s.toString()},t)}}},{key:"_transformVast",value:function(e,t){var n={url:e.url};try{var r=new C(e.url,!0),i=this._transformQuery(e,t,r);i&&(n.url=r.toString());var a=i?r:new C(e.url,!0);if(a.query.cust_params){var o=l.parse(a.query.cust_params);n.bidder=o.hb_bidder,n.cust_params=o}n.url_parsed=a}catch(e){n.hasError=!0,n.message=e.message,n.bidder="error",console.log(e.message)}return n}},{key:"_transformQuery",value:function(e,t,r){var i=this;if(e&&t&&e.tnl_keys){var a=this.options.vast_query;if(t.retry_on_success&&this.options.retry_on_success&&U(this.options.retry_on_success.vast_query)?a=this.options.retry_on_success.vast_query:t.retry_on_failure&&this.options.retry_on_failure&&U(this.options.retry_on_failure.vast_query)&&(a=this.options.retry_on_failure.vast_query),U(a=B(a))){var o=r.query;if(a.$$remove){for(var s in o){new RegExp(a.$$remove,"i").test(s)&&delete o[s]}delete a.$$remove}var u=l.parse(o.cust_params);if(a.cust_params&&a.cust_params.$$remove){for(var c in u){new RegExp(a.cust_params.$$remove,"i").test(c)&&delete u[c]}delete a.cust_params.$$remove}var d=this.macros.transform(a,{get:function(t){return n(this,i),e.tnl_keys[t.toLowerCase()]}.bind(this)});return o.cust_params=u,xP(o,d),o.cust_params=l.stringify(o.cust_params),!0}}}},{key:"_isExcludedBidderForT4R",value:function(){var e=this;try{var t,r,i,a,o=(null===(t=this._adrequest_user_context)||void 0===t||null===(r=t.adTag)||void 0===r?void 0:r.bidder)||"adx";this.msgrt.send("bidder",{message:o}),ac("ex_bidder ad request context",this._adrequest_user_context,'bidder:"'.concat(o,'"'));var s=(null===(i=this.gameData.t4rc)||void 0===i?void 0:i.bidder_exc)||[],u=(null===(a=this.gameData.t4rc)||void 0===a?void 0:a.bidder_inc)||[],c=!1;return u.length>0?c=!u.some(function(t){return n(this,e),t===o}.bind(this)):s.length>0&&(c=s.some(function(t){return n(this,e),t===o}.bind(this))),ac("ex_bidder_result",o,c),c}catch(e){console.log("ex_bidder ERR",e)}}},{key:"_isExcludedBidderForT4RWithBidderExcRate",value:function(){var e,t,n,r,i=this._isExcludedBidderForT4R(),a=null===(e=this.gameData)||void 0===e||null===(t=e.t4rc)||void 0===t?void 0:t.bidder_exc_rate,o=null!=a&&a.enabled?(null==a?void 0:a.rate)||.8:0,s=(null===(n=this._adrequest_user_context)||void 0===n||null===(r=n.adTag)||void 0===r?void 0:r.bidder)||"adx",u=Math.random();return i||"adx"!==s&&u<o}},{key:"_isT4R",value:function(e){var t=null==e?void 0:e.contentType,n={isImage:null==t?void 0:t.startsWith("image/"),isText:"text"===t,isVideo:null==t?void 0:t.startsWith("video/")},r=Object.values(this._getT4RValidators(e)||{}),i={success:!0};try{for(var a=0,o=r;a<o.length;a++){var s=(0,o[a])(n);if(!s.success){i=s;break}}}catch(e){i={success:!1,reason:"internal-error"}}return i}},{key:"_getT4RValidators",value:function(e){var t=this,r=function(r){return n(this,t),e.t4rac.enabled?{success:!0,name:"ddate"}:{success:!1,reason:"ddate",name:"ddate"}}.bind(this),i=function(e){if(n(this,t),this.gameData.publishedAt){var r=new Date(this.gameData.publishedAt);return((new Date).getTime()-r.getTime())/864e5<=10?{success:!1,reason:"pdate-1",name:"pdate"}:{success:!0,name:"pdate"}}return{success:!1,reason:"pdate-2",name:"pdate"}}.bind(this),a=function(r){var i,a,o,s;n(this,t);var u=this.gameData.meta,c=e.t4r.meta;return(null==u||null===(i=u.ast)||void 0===i?void 0:i.c)>=(null==c||null===(a=c.ast)||void 0===a?void 0:a.c)&&(null==u||null===(o=u.sit)||void 0===o?void 0:o.c)>=(null==c||null===(s=c.sit)||void 0===s?void 0:s.c)?{success:!1,reason:"meta",name:"meta"}:{success:!0,name:"meta"}}.bind(this),o=function(e){n(this,t);var r=this._isExcludedBidderForT4RWithBidderExcRate();return this.msgrt.send("bidder.ex",{message:r?"true":"false"}),{success:!r,reason:r?"bidder":null,name:"bidder"}}.bind(this),s=function(r){var i,a;n(this,t);var o=null===(i=this._adrequest_user_context)||void 0===i?void 0:i.tnl_ad_pos,s=o&&this.clickCount[o]>=(null===(a=e.t4r[o])||void 0===a?void 0:a.count);return{success:!s,reason:s?"click-count":null,name:"click-count"}}.bind(this),u=function(r){var i,a;n(this,t);var o=null===(i=this._adrequest_user_context)||void 0===i?void 0:i.tnl_ad_pos,s=o&&(null===(a=e.t4r[o])||void 0===a?void 0:a.enabled);return{success:s,reason:s?null:"rule-check",name:"rule-check"}}.bind(this),c=function(r){var i,a;if(n(this,t),!r.isVideo)return{success:!0,name:"viper-check"};var o=null===(i=this._adrequest_user_context)||void 0===i?void 0:i.tnl_ad_pos,s=(null===(a=e.t4r[o])||void 0===a?void 0:a.viper)||0;if(s>0){var u,c=Math.random()<s,d=o&&c&&(null===(u=e.t4r[o])||void 0===u?void 0:u.enabled);return{success:d,reason:d?null:"viper-check",name:"viper-check"}}return{success:!1,reason:"rule-check-viper",name:"viper-check"}}.bind(this),d=function(e){n(this,t);var r=e.isImage,i=e.isText,a=e.isVideo,o=r||i||a;return{success:o,reason:o?null:"media-format",name:"media-format"}}.bind(this);return{checkRule:u,checkMediaFormat:d,checkPublishDate:i,checkMeta:a,checkClickCount:s,checkViper:c,checkExcludedBidder:o,checkT4rActivation:r}}},{key:"_isVMAP",value:function(e){var t,n,r,i,a,o,s,u,c,d,l,f,p,h,m;if(!e)return!1;var v="preroll"===e&&(!0===(null===(t=this.gameData)||void 0===t||null===(n=t.pAds)||void 0===n?void 0:n.vmap)||!0===(null===(r=this.gameData)||void 0===r||null===(i=r.pAds)||void 0===i||null===(a=i.vmap)||void 0===a?void 0:a.enabled))||"midroll"===e&&(!0===(null===(o=this.gameData)||void 0===o||null===(s=o.mAds)||void 0===s?void 0:s.vmap)||!0===(null===(u=this.gameData)||void 0===u||null===(c=u.mAds)||void 0===c||null===(d=c.vmap)||void 0===d?void 0:d.enabled))||"rewarded"===e&&(!0===(null===(l=this.gameData)||void 0===l||null===(f=l.rAds)||void 0===f?void 0:f.vmap)||!0===(null===(p=this.gameData)||void 0===p||null===(h=p.rAds)||void 0===h||null===(m=h.vmap)||void 0===m?void 0:m.enabled));if(!v)return!1;var g=this._get_vmap_config(e),A=this.adCounter[e];return void 0!==(null==g?void 0:g.start)?A>=(null==g?void 0:g.start):v}},{key:"_getT4ROptions",value:function(e){var t,n=null===(t=this._adrequest_user_context)||void 0===t?void 0:t.tnl_ad_pos;switch(n){case"preroll":case"midroll":case"rewarded":return e.t4r[n]}}},{key:"_is_completed",value:function(e){var t=e.getContentType(),n=e.getAdPodInfo();return!(!t.startsWith("image/")&&"text"!==t&&1!==n.getTotalAds())}},{key:"_get_vmap_context",value:function(e){for(var t=e.adtag,n=e.position,r=e.config,i=e.dp,a=r.count||2,o=[],s=1;s<=a;s++){var u={};u.adtag=this._createCustomAdVastUrl(r["vast_"+s])||t,u.position=n,u.dp=r["vast_"+s]?void 0:i,o.push(u)}return o}},{key:"_get_vmap_config",value:function(e){var t,n,r,i,a,o,s,u;switch(e){case"preroll":return null===(t=this.gameData)||void 0===t||null===(n=t.pAds)||void 0===n?void 0:n.vmap;case"midroll":return null===(r=this.gameData)||void 0===r||null===(i=r.mAds)||void 0===i?void 0:i.vmap;case"rewarded":return null===(a=this.gameData)||void 0===a||null===(o=a.rAds)||void 0===o?void 0:o.vmap;default:return null===(s=this.gameData)||void 0===s||null===(u=s.pAds)||void 0===u?void 0:u.vmap}}},{key:"_isDP",value:function(e){var t,n,r;return!!e&&!0===(null===(t=this.gameData)||void 0===t||null===(n=t.dp)||void 0===n||null===(r=n[e])||void 0===r?void 0:r.enabled)}},{key:"_create_dp_display_context",value:function(){var e=this;return new Promise(function(t){var r=this;n(this,e);try{var i={id:this.topDomain||this.parentDomain,au:"display",ty:"display",aid:this.gameData.gameId,pgu:this.parentURL},a=new cP(this.gameData).checkCustomParams();a&&(i.cp=a);var o=encodeURIComponent(nt.encode(JSON.stringify(i)));fetch("https://tag.atom.gamedistribution.com/v1/atm?ar=".concat(o)).then(function(e){return n(this,r),e.json()}.bind(this)).then(function(e){if(n(this,r),!e||!e.p)return this.msgrt.send("dp.na",{message:"atom"}),t();var i=e.p/100;this.msgrt.send("dp.fp",{message:i}),t({params:{fp:i},error_url:"https://tag.atom.gamedistribution.com/v1/err?ar=".concat(o),impression_url:"https://tag.atom.gamedistribution.com/v1/imp?ar=".concat(o)})}.bind(this)).catch(function(e){n(this,r),this.msgrt.send("dp.err",{message:(null==e?void 0:e.message)||e}),t()}.bind(this))}catch(e){this.msgrt.send("dp.err",{message:(null==e?void 0:e.message)||e}),t()}}.bind(this))}},{key:"_create_promo_context",value:function(e){var t,r=this,i={id:this.topDomain||this.parentDomain,au:e||"unknown",ty:"video",aid:this.gameData.gameId,pgu:this.parentURL},a=Object.keys(i).map(function(e){return n(this,r),"".concat(e,"=").concat(encodeURIComponent(i[e]))}.bind(this)).join("&");encodeURIComponent(nt.encode(JSON.stringify(i)));var o=null===(t=this.gameData.promo)||void 0===t?void 0:t.rainbow,s=null==o?void 0:o.enabled,u="https://tag.atom.gamedistribution.com/v1/rainbow/?".concat(a),c=s?u:void 0;return function(){n(this,r),uc.promoError&&(console.log("promo-test fictional promo error"),c=void 0)}.bind(this),{promo_url:c,promo_imp_blue_url:s?"https://tag.atom.gamedistribution.com/v1/rainbow/blue":void 0,promo_imp_green_url:s?"https://tag.atom.gamedistribution.com/v1/rainbow/green":void 0}}},{key:"_create_dp_context",value:function(e,r){var i=this;return new Promise(function(){var a=t(d.mark((function t(a){var o,s,u,c,l,f=this;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,i._isDP(e)){t.next=5;break}return i.msgrt.send("dp.na",{message:"rule"}),t.abrupt("return",a());case 5:s={id:i.topDomain||i.parentDomain,au:e||"unknown",ty:"video",aid:i.gameData.gameId,pgu:i.parentURL},(u=new cP(i.gameData).checkCustomParams())&&(s.cp=u),c=encodeURIComponent(nt.encode(JSON.stringify(s))),ac("gd-adflow isLastAdapter",null==r?void 0:r.adapterIndex,null==r?void 0:r.isLastAdapter),l=null===(o=i.gameData.promo)||void 0===o?void 0:o.rainbow,ac("gd-adflow promo_enabled",!1,null==l?void 0:l.enabled,null==r?void 0:r.isLastAdapter),fetch("https://tag.atom.gamedistribution.com/v1/atm?ar=".concat(c)).then(function(e){return n(this,f),e.json()}.bind(this)).then(function(e){if(n(this,f),!e||!e.p)return i.msgrt.send("dp.na",{message:"atom"}),a();var t=e.p/100;i.msgrt.send("dp.fp",{message:t}),a({id:Date.now(),floor_price:t,error_url:"https://tag.atom.gamedistribution.com/v1/err?ar=".concat(c,"&ec=[ERRORCODE]"),impression_url:"https://tag.atom.gamedistribution.com/v1/imp?ar=".concat(c),skip_url:"https://tag.atom.gamedistribution.com/v1/skp?ar=".concat(c),promo_url:void 0,promo_imp_blue_url:void 0,promo_imp_green_url:void 0})}.bind(this)).catch(function(e){n(this,f),i.msgrt.send("dp.err",{message:(null==e?void 0:e.message)||e}),a()}.bind(this)),t.next=20;break;case 16:t.prev=16,t.t0=t.catch(0),i.msgrt.send("dp.err",{message:(null===t.t0||void 0===t.t0?void 0:t.t0.message)||t.t0}),a();case 20:case"end":return t.stop()}}),t,this,[[0,16]])})));return function(e){return a.apply(this,arguments)}}())}},{key:"_extend_dp_with_adsense",value:function(e,t){if(e&&t)try{var n,r=new C(t.vastUrl,!0);if(null===(n=r.query)||void 0===n||!n.cust_params)return;var i=l.parse(r.query.cust_params);if(!i.tnl_asset_id)return;i.adsense=1,r.query.cust_params=l.stringify(i,!1),e.fallback_url=r.toString(),e.fallback_imp_url="https://tag.atom.gamedistribution.com/v1/rainbow/green"}catch(e){}}},{key:"_extend_hl_url",value:function(e){e.dp;var t=e.hl;e.src;var n=e.tnl_keys,r=!0!==(null==t?void 0:t.bidFloorApplied)?0:1;0===r&&null!=n&&n.hasOwnProperty("fp")?r=2:1!==r||null!=n&&n.hasOwnProperty("fp")||(r=3),n.bfa=r;try{var i,a=new C(e.url,!0);if(null===(i=a.query)||void 0===i||!i.cust_params)return;var o=l.parse(a.query.cust_params);o.bfa=r,o.adsense=0,a.query.cust_params=l.stringify(o,!1),e.url=a.toString(),t.vastUrl=e.url}catch(e){}finally{this.msgrt.send("bfa",{message:r})}}},{key:"_init_hl_script",value:(h=t(d.mark((function e(t){var r,i,a,o,s,u,c,l,f,p,h,m,v=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=this._getPrebidScripts(),s=o[0],u=function(){return n(this,v),!1}.bind(this),window.idhb=window.idhb||{iabCmpExists:u},window.idhb.options=window.idhb.options||{},Object.assign(window.idhb.options,{assetId:this.gameData.gameId,configUrl:this.topDomain||this.parentDomain,parentUrl:this.parentURL,pageType:"gd"}),"undefined"===window.idhb.options.configUrl&&(window.idhb.options.configUrl=null),window.idhb.que=window.idhb.que||[],(c=new URL(s)).searchParams.append("referer",window.idhb.options.configUrl),s=c.href,e.next=13,ft(s,"gdsdk_prebid",{alternates:o,error_prefix:"Blocked:",exists:function(){return n(this,v),window.idhb.requestAds}.bind(this)});case 13:return e.next=15,this.checkOpphbPath();case 15:l=st("ch",window.location.href),f=st("ch_date",window.location.href),p={tnl_content_category:this.category.toLowerCase()},l&&(p.channel=l),f&&(p.ch_date=f),(h=st("hl_label",this.parentURL)||st("hl_label",window.location.href))&&(p.label=h),window.idhb.setAdserverTargeting(p),window.idhb.allowPersonalizedAds(!!parseInt(this.userAllowedPersonalizedAds)),null!=(m=window.idhb.getConfig())&&null!==(r=m.hbw)&&void 0!==r&&null!==(i=r.slots)&&void 0!==i&&null!==(a=i.gd__banner)&&void 0!==a&&a.sizes&&(m.hbw.slots.gd__banner.sizes=[[120,600],[160,600],[250,250],[300,50],[300,100],[300,250],[300,600],[320,50],[320,480],[336,280],[728,90]],window.idhb.setConfig(m)),window.idhb.addEventListener("slotRenderEnded",function(e){var t=this;n(this,v);try{var r,i,a=e.slotId.split("@");a=1===a.length?a[0]:a[1],e.isEmpty?(null!==(r=this.atom_display)&&void 0!==r&&r.error_url&&(fetch(this.atom_display.error_url).catch(function(e){n(this,t)}.bind(this)),delete this.atom_display),ac("display_test DISPLAYAD_ERR",e),this._broadcast("DISPLAYAD_ERROR",{message:a,status:"warning"})):(null!==(i=this.atom_display)&&void 0!==i&&i.impression_url&&(fetch(this.atom_display.impression_url).catch(function(e){n(this,t)}.bind(this)),delete this.atom_display),ac("display_test DISPLAYAD_IMPRESSION"),this._broadcast("DISPLAYAD_IMPRESSION",{message:a,status:"success"}))}catch(e){}}.bind(this));case 27:case"end":return e.stop()}}),e,this)}))),function(e){return h.apply(this,arguments)})},{key:"checkOpphbPath",value:(p=t(d.mark((function e(){var t,n,r,i,a,o;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,r=this.topDomain||this.parentDomain||"",i=(null===(t=this.gameData)||void 0===t?void 0:t.gameId)||"",a=(null===(n=this.options)||void 0===n?void 0:n.width)||640,e.next=6,fetch("https://pub.headerlift.com/opphb?page_url=".concat(r,"&page_type=gd&page_width=").concat(a,"&aid=").concat(i));case 6:o=e.sent,oc("opphb load success",o),e.next=13;break;case 10:throw e.prev=10,e.t0=e.catch(0),new Error("Blocked: https://pub.headerlift.com/opphb");case 13:case"end":return e.stop()}}),e,this,[[0,10]])}))),function(){return p.apply(this,arguments)})},{key:"_init_ima_script",value:(f=t(d.mark((function e(t){var r,i,a=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=["https://imasdk.googleapis.com/js/sdkloader/ima3_debug.js","https://imasdk.googleapis.com/js/sdkloader/ima3.js","http://imasdk.googleapis.com/js/sdkloader/ima3_debug.js","http://imasdk.googleapis.com/js/sdkloader/ima3.js"],i=this.options.debug?r[0]:r[1],e.next=4,ft(i,"gdsdk_ima",{alternates:r,error_prefix:"Blocked:",exists:function(){return n(this,a),window.google&&window.google.ima}.bind(this)});case 4:case"end":return e.stop()}}),e,this)}))),function(e){return f.apply(this,arguments)})},{key:"_init_afg_script",value:(c=t(d.mark((function e(t){var r,i,a,o,s,u,c=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.gameData.afg_disabled){e.next=3;break}return e.abrupt("return");case 3:return(u={}).crossorigin="anonymous",u["data-ad-client"]=(null==t||null===(r=t.adsense_client)||void 0===r?void 0:r.length)>0?t.adsense_client:"ca-pub-2316275586951220",u["data-ad-frequency-hint"]="30s",u.allow="autoplay",(null==t||null===(i=t.adsense_channel)||void 0===i?void 0:i.length)>0&&(u["data-ad-channel"]=t.adsense_channel),(null==t||null===(a=t.adsense_host)||void 0===a?void 0:a.length)>0&&(u["data-ad-host"]=t.adsense_host),!0===(null==t?void 0:t.adsense_adbreak_test)&&(u["data-adbreak-test"]="on"),null!==(o=this.gameData.sdk.afg)&&void 0!==o&&o.enabled&&null!==(s=this.gameData.sdk.afg)&&void 0!==s&&s.use_own&&(u["data-ad-client"]=this.gameData.sdk.afg.adsense_client,u["data-ad-slot"]=this.gameData.sdk.afg.adsense_ad_slot,u["data-ad-format"]="auto"),e.next=16,ft("https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js","afg",{error_prefix:"Blocked:",exists:function(){return n(this,c),!!window.adsbygoogle}.bind(this),attrs:u});case 16:window.adsbygoogle=window.adsbygoogle||[],window.adsbygoogle.push({sound:"on",preloadAdBreaks:"on"});case 18:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"fixOutOfBounds",value:function(){try{if(!(this.gameData.afgszf&&this.gameData.afgszf.enabled))return;for(var e=this.gameData.afgszf,t=e.height,n=e.scrolls,r=t||"120vh",i=n||!0,a=document.getElementsByClassName("adsbygoogle"),o=0;o<a.length;o++){var s,u=a[o],c=u&&(null===(s=u.children[0])||void 0===s?void 0:s.children[0]);c&&"IFRAME"===c.tagName&&c.style.height!==r&&(ac("out-of-bounds fix apply"),c.style.height=r,i&&(c.parentElement.style.overflow="auto"))}}catch(e){ac("out-of-bounds error: ".concat(e.message))}}},{key:"clearSession",value:function(){this.requestRunning=!1}},{key:"_startAdsensePlacementRewardedAd",value:(u=t(d.mark((function e(t){var r,i,a,o,s,u,c,l,f=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.params,e.prev=1,!this.requestRunning){e.next=5;break}return this._broadcast("AD_IS_ALREADY_RUNNING",{status:"warning"}),e.abrupt("return");case 5:if(!void function(){if(n(this,f),uc.fictionalAdSenseError||t.params.shouldFail)return this._broadcast("AD_ERROR",{message:"fictional adsense rewarded error",status:"error",skipForward:!0}),!0}.bind(this)){e.next=8;break}return e.abrupt("return");case 8:this.requestRunning=!0,this._send_atom_event("sg.ad.rw.requested"),r=!1,i=function(){n(this,f),r=!0,this.fixOutOfBounds(),this._broadcast("CONTENT_PAUSE_REQUESTED",{message:"",status:"success"}),this._broadcast("IMPRESSION",{message:"",status:"success"})}.bind(this),a=function(){n(this,f),r=!0,this._broadcast("CONTENT_RESUME_REQUESTED",{message:"",status:"success"})}.bind(this),o=function(){n(this,f),r=!0,this._send_atom_event("sg.ad.rw.dismissed")}.bind(this),s=function(){n(this,f),r=!0,this._broadcast("COMPLETE",{message:"",status:"success"}),this._broadcast("SDK_REWARDED_WATCH_COMPLETE",{message:"",status:"success"}),this._send_atom_event("sg.ad.rw.viewed")}.bind(this),u=function(e){n(this,f),r=!0,e()}.bind(this),c=function(e){n(this,f),r=!0,this.resetForNext();var t="rewarded";this.adCounter[t]=this.adCounter[t]||0,this.adCounter[t]++,"viewed"===e.breakStatus?this._broadcast("AD_SUCCESS",{message:"Ad succeeded.",status:"success"}):(this._broadcast("AD_ERROR",{message:e.breakStatus,status:"error",skipForward:!0}),"dismissed"!==e.breakStatus&&this._send_atom_event("sg.dbg.rw",e))}.bind(this),l=function(e){window.adsbygoogle.push(e)},setTimeout(function(){n(this,f),r||(oc("gd-adflow adsense.reward timeout happened!"),this.requestRunning=!1,this._broadcast("AD_ERROR",{message:"timeout",status:"error",skipForward:!0}),this._send_atom_event("sg.dbg.rw",{breakStatus:"timeout"}))}.bind(this),1e3),l({type:"reward",name:"reward-in-game",beforeAd:i,afterAd:a,adDismissed:o,adViewed:s,beforeReward:u,adBreakDone:c}),e.next=26;break;case 22:throw e.prev=22,e.t0=e.catch(1),this._onError(e.t0),e.t0;case 26:case"end":return e.stop()}}),e,this,[[1,22]])}))),function(e){return u.apply(this,arguments)})},{key:"_startAdsensePlacementPreroll",value:(s=t(d.mark((function e(t){var r,i,a=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.params,e.prev=1,!this.requestRunning){e.next=5;break}return this._broadcast("AD_IS_ALREADY_RUNNING",{status:"warning"}),e.abrupt("return");case 5:if(!void function(){if(n(this,a),uc.fictionalAdSenseError||t.params.shouldFail)return this._broadcast("AD_ERROR",{message:"fictional adsense preroll error",status:"error"}),!0}.bind(this)){e.next=8;break}return e.abrupt("return");case 8:this.requestRunning=!0,this._send_atom_event("sg.ad.pr.requested"),this.adPlacementEventReceived=!1,r=function(){n(this,a),this.adPlacementEventReceived=!0}.bind(this),i=function(e){n(this,a),this.adPlacementEventReceived=!0,this.resetForNext();var t="preroll";this.adCounter[t]=this.adCounter[t]||0,this.adCounter[t]++,"viewed"===e.breakStatus?(this._send_atom_event("sg.ad.pr.viewed"),this._broadcast("CONTENT_PAUSE_REQUESTED",{message:"",status:"success"}),this._broadcast("IMPRESSION",{message:"",status:"success"}),this._broadcast("COMPLETE",{message:"",status:"success"}),this._broadcast("AD_SUCCESS",{message:"Ad succeeded.",status:"success"}),this._broadcast("CONTENT_RESUME_REQUESTED",{message:"",status:"success"})):(this._broadcast("AD_ERROR",{message:e.breakStatus,status:"error"}),this._send_atom_event("sg.dbg.pr",e))}.bind(this),this._startTimeoutForAdBreak({adType:"preroll"}),o={type:"preroll",beforeAd:r,adBreakDone:i},window.adsbygoogle.push(o),e.next=22;break;case 18:throw e.prev=18,e.t0=e.catch(1),this._onError(e.t0),e.t0;case 22:case"end":return e.stop()}var o}),e,this,[[1,18]])}))),function(e){return s.apply(this,arguments)})},{key:"_startAdsensePlacementStart",value:(o=t(d.mark((function e(t){var r,i,a,o=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.params,e.prev=1,!this.requestRunning){e.next=5;break}return this._broadcast("AD_IS_ALREADY_RUNNING",{status:"warning"}),e.abrupt("return");case 5:if(!void function(){if(n(this,o),uc.fictionalAdSenseError||t.params.shouldFail)return this._broadcast("AD_ERROR",{message:"fictional adsense preroll error 2",status:"error"}),!0}.bind(this)){e.next=8;break}return e.abrupt("return");case 8:this.requestRunning=!0,this._send_atom_event("sg.ad.pr.requested"),r=function(){n(this,o),this.adPlacementEventReceived=!0,this.fixOutOfBounds(),this._broadcast("CONTENT_PAUSE_REQUESTED",{message:"",status:"success"}),this._broadcast("IMPRESSION",{message:"",status:"success"})}.bind(this),i=function(){n(this,o),this.adPlacementEventReceived=!0,this._broadcast("CONTENT_RESUME_REQUESTED",{message:"",status:"success"})}.bind(this),this.adPlacementEventReceived=!1,a=function(e){n(this,o),this.adPlacementEventReceived=!0,this.resetForNext();var t="preroll";this.adCounter[t]=this.adCounter[t]||0,this.adCounter[t]++,"viewed"===e.breakStatus?(this._send_atom_event("sg.ad.pr.viewed"),this._broadcast("COMPLETE",{message:"",status:"success"}),this._broadcast("AD_SUCCESS",{message:"Ad succeeded.",status:"success"})):(this._broadcast("AD_ERROR",{message:e.breakStatus,status:"error"}),this._send_atom_event("sg.dbg.pr",e))}.bind(this),this._startTimeoutForAdBreak({adType:"preroll"}),s={type:"start",name:"start-in-game",beforeAd:r,afterAd:i,adBreakDone:a},window.adsbygoogle.push(s),e.next=23;break;case 19:throw e.prev=19,e.t0=e.catch(1),this._onError(e.t0),e.t0;case 23:case"end":return e.stop()}var s}),e,this,[[1,19]])}))),function(e){return o.apply(this,arguments)})},{key:"_startTimeoutForAdBreak",value:function(e){var t,r,i,a,o,s,u=this;if(null===(t=this.gameData)||void 0===t||null===(r=t.ad_blcks)||void 0===r||null===(i=r.adsenseTimeout)||void 0===i?void 0:i.enabled){null==e||e.adType,null===(a=this.gameData)||void 0===a||null===(o=a.ad_blcks)||void 0===o||null===(s=o.adsenseTimeout)||void 0===s||s.timeout;var c=setTimeout(function(){n(this,u),this.adPlacementEventReceived||(this._broadcast("AD_ERROR",{message:"timeout-_startTimeoutForAdBreak",status:"error"}),this.adPlacementEventReceived=!1,this.requestRunning=!1),clearTimeout(c)}.bind(this),5e3)}}},{key:"_startTimeoutForOpus",value:function(){var e=this,t=setTimeout(function(){n(this,e),this.opusEventReceived||(this._broadcast("AD_ERROR",{message:"opus-sdk-timeout",status:"error",reason:"forced-sdk-timeout"}),this.opusEventReceived=!1,this.requestRunning=!1),clearTimeout(t)}.bind(this),8e3)}},{key:"_startAdsensePlacementNext",value:(a=t(d.mark((function e(t){var r,i,a,o=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.params,e.prev=1,!this.requestRunning){e.next=5;break}return this._broadcast("AD_IS_ALREADY_RUNNING",{status:"warning"}),e.abrupt("return");case 5:if(!void function(){if(n(this,o),uc.fictionalAdSenseError||t.params.shouldFail)return this._broadcast("AD_ERROR",{message:"fictional adsense midroll error",status:"error"}),!0}.bind(this)){e.next=8;break}return e.abrupt("return");case 8:this.requestRunning=!0,this._send_atom_event("sg.ad.mr.requested"),r=function(){n(this,o),this.adPlacementEventReceived=!0,this.fixOutOfBounds(),this._broadcast("CONTENT_PAUSE_REQUESTED",{message:"",status:"success"}),this._broadcast("IMPRESSION",{message:"",status:"success"})}.bind(this),i=function(){n(this,o),this.adPlacementEventReceived=!0,this._broadcast("CONTENT_RESUME_REQUESTED",{message:"",status:"success"})}.bind(this),this.adPlacementEventReceived=!1,a=function(e){n(this,o),this.adPlacementEventReceived=!0,this.resetForNext();var t="midroll";this.adCounter[t]=this.adCounter[t]||0,this.adCounter[t]++,"viewed"===e.breakStatus?(this._send_atom_event("sg.ad.mr.viewed"),this._broadcast("COMPLETE",{message:"",status:"success"}),this._broadcast("AD_SUCCESS",{message:"Ad succeeded.",status:"success"})):(this._broadcast("AD_ERROR",{message:e.breakStatus,status:"error"}),this._send_atom_event("sg.dbg.mr",e))}.bind(this),this._startTimeoutForAdBreak({adType:"midroll"}),s={type:"next",name:"next-in-game",beforeAd:r,afterAd:i,adBreakDone:a},window.adsbygoogle.push(s),e.next=23;break;case 19:throw e.prev=19,e.t0=e.catch(1),this._onError(e.t0),e.t0;case 23:case"end":return e.stop()}var s}),e,this,[[1,19]])}))),function(e){return a.apply(this,arguments)})},{key:"_send",value:function(e,t){try{var n=this.msgrt,r=n._layout,i=n._ua,a={tp:e,ct:0,vrs:this.PackageJSON.version,url:this.parentURL,rfr:document.referrer,tdmn:this.topDomain||this.parentDomain,dpth:0,args:t,ua:{brnm:i.browser.name,brvs:i.browser.version,osnm:i.os.name,osvs:i.os.version,dvmd:i.device.model,w:r.w,h:r.h}};return fetch("https://tag.atom.gamedistribution.com/v1/dmp?ar=".concat(encodeURIComponent(nt.encode(JSON.stringify(a)))))}catch(e){}}},{key:"_send_atom_event",value:function(e,t){var n={gid:this.gameData.slug,md5:this.gameData.gameId,pid:0,pnm:this.gameData.pname,ctry:this.gameData.ctry,lcl:"en",hle:1,ads:1,args:t,href:window.location.href},r=(new cD).get();return n=VP(VP({},n),r),n=t?VP(VP({},n),t):n,this._send(e,n)}},{key:"_isAfgPositionNext",value:function(e){return void 0!==e.adTimestamp}},{key:"_isAfgPositionStart",value:function(e){if(void 0!==e.adTimestamp)return!1;var t="preroll";return this.adCounter[t]=this.adCounter[t]||0,0===this.adCounter[t]}},{key:"attachAfgPosition",value:function(e){var t=e.params.position;switch(t){case"preroll":case"start":case"pause":case"next":case"browse":case"reward":return}var n=e.adType;if(n===rt.Rewarded)t="reward";else if(n===rt.Interstitial){var r,i;if(this._isAfgPositionStart(e))t=null===(r=this.gameData.pAds)||void 0===r||!r.enabled||null!==(i=this.gameData.loader)&&void 0!==i&&i.enabled?"start":"next";else this._isAfgPositionNext(e)&&(t="next")}t||(t="preroll"),e.params.position=t}},{key:"_broadcast",value:function(e,t){var r=this,i=!1;["AD_ERROR"].some(function(t){return n(this,r),t===e}.bind(this))&&(i=!this.adContext.isLastAdapter||this.adContext.extraPromoRunOnFail);var a=this.getCurrentAdPosition(this.adContext.adType);this.eventBus.broadcast(e,VP(VP({},t),{},{skipForward:i,adPosition:a}))}},{key:"_findAdPosition",value:function(){var e;return this.getCurrentAdPosition(null===(e=this.adContext)||void 0===e?void 0:e.adType)}},{key:"mute",value:(i=t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.adContext&&(this.adContext.muteRequested=!0),this.adsManager&&this.adsManager.setVolume(0);case 2:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"terminate",value:(r=t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.cancel();case 1:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})}]),e}(),YP=L((function e(n){var r=this;O(this,e),cc(this,"load",t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Fb(r.moduleName);case 2:r.module=e.sent;case 3:case"end":return e.stop()}}),e)})))),cc(this,"promo",t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r.module){e.next=3;break}return e.next=3,r.load();case 3:return e.abrupt("return",r.module[r.moduleDefault]);case 4:case"end":return e.stop()}}),e)}))));var i=n.package||"gd-sdk-stone-dynamic",a=n.package_version||"1.1.1",o=n.template||"puzzle",s=n.dependencies||[];this.moduleName="GDPromoByOrbit",this.moduleDefault=o.charAt(0).toUpperCase()+o.slice(1),this.moduleConfig={source:"https://pm.azerioncircle.com/@bygd/".concat(i,"/").concat(a,"/dist/").concat(o.toLowerCase(),"/iife/index.js"),dependencies:s},jb(this.moduleName,this.moduleConfig)})),QP=L((function e(n){var r=this;O(this,e),cc(this,"load",t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Fb(r.moduleName);case 2:r.module=e.sent;case 3:case"end":return e.stop()}}),e)})))),cc(this,"splash",t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r.module){e.next=3;break}return e.next=3,r.load();case 3:return e.abrupt("return",r.module[r.moduleDefault]);case 4:case"end":return e.stop()}}),e)}))));var i=n.package||"gd-sdk-air-dynamic",a=n.package_version||"1.2.0",o=n.template||"pluto",s=n.dependencies||[];this.moduleName=n.module_name||"GDSplashDynamic",this.moduleDefault=n.module_instance||o.charAt(0).toUpperCase()+o.slice(1),this.moduleConfig={source:"https://pm.azerioncircle.com/@bygd/".concat(i,"/").concat(a,"/dist/").concat(o.toLowerCase(),"/iife/index.js"),dependencies:s},jb(this.moduleName,this.moduleConfig)})),JP=function(e,t){console.log(e,t)},XP={},eL={},tL=null;function nL(){for(var e,t=window,n=null,r=null;!e;){try{if("function"==typeof t.__tcfapi||"function"==typeof t.__cmp){"function"==typeof t.__tcfapi?(r=2,n=t.__tcfapi):(r=1,n=t.__cmp),e=t;break}}catch(e){}try{if(t.frames.__tcfapiLocator){r=2,e=t;break}}catch(e){}try{if(t.frames.__cmpLocator){r=1,e=t;break}}catch(e){}if(t===window.top)break;t=t.parent}return XP.version=r,XP.frame=e,XP.function=n,XP.version}function rL(e){var t=this;return tL||(tL=new Promise(function(r){function i(t,n){if(JP("Received a response from CMP",t),n){var i,a;if(!1!==t.gdprApplies)return"tcloaded"===t.eventStatus||"useractioncomplete"===t.eventStatus?(("boolean"!=typeof(a=(i=t)&&"boolean"==typeof i.gdprApplies?i.gdprApplies:e.defaultGdprScope)||!0===a&&"string"!=typeof i.tcString)&&r({result:"cmpUnexpectedResponse",cmp:XP,consentData:i}),void r({result:"ok",consentData:t})):void 0;r({result:"ok",consentData:t})}else r({result:"cmpCallFailed"})}n(this,t),nL(),XP.frame?2===XP.version?(JP("TCF v2 CMP found. Fetching the consent."),XP.function?(JP("CMP API is directly accessible, calling it now..."),XP.function("addEventListener",XP.version,i)):(JP("CMP API is outside the current iframe, calling it now..."),function(e,t,r){var i=this,a="__tcfapi";function o(e){var t="".concat(a,"Return"),n="string"==typeof e.data&&e.data.indexOf(t)>=0?JSON.parse(e.data):e.data;if(n[t]&&n[t].callId){var r=n[t];void 0!==eL[r.callId]&&eL[r.callId](r.returnValue,r.success)}}window[a]=function(e,r,o,s){n(this,i);var u=Math.random()+"",c=cc({},"".concat(a,"Call"),{command:e,parameter:s,callId:u,version:r});eL[u]=o,t.postMessage(c,"*")}.bind(this),window.addEventListener("message",o,!1),window[a](e,XP.version,r)}("addEventListener",XP.frame,i))):r({result:"cmpVersionNotV2",cmp:XP}):r({result:"cmpNotFound"})}.bind(this)),tL)}var iL=function(){function e(){O(this,e),this.productName="Game Distribution"}var n;return L(e,[{key:"checkIfExcluded",value:function(e){try{var t,n;return!(null===(t=e.diagnostic)||void 0===t||null===(n=t.gameDock)||void 0===n||!n.excluded)}catch(e){return console.log("Error on checkIfExclude check",e),!1}}},{key:"track",value:(n=t(d.mark((function e(t,n){var r,i,a,o,s,u,c;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.checkIfExcluded(n)){e.next=3;break}return e.abrupt("return");case 3:if(a=null==t||null===(r=t.visitor)||void 0===r||null===(i=r.visitorData)||void 0===i?void 0:i.visitorId){e.next=6;break}return e.abrupt("return");case 6:return o=encodeURIComponent(this.productName),s=encodeURIComponent(a),e.prev=8,u="https://tracker-v4.gamedock.io/v1/events-tracker/track/product/".concat(o,"/user_id/").concat(s),e.next=12,fetch(u,{method:"POST"});case 12:e.sent,e.next=28;break;case 15:return e.prev=15,e.t0=e.catch(8),console.log("GAME_DOCK. fail v4",e.t0),e.prev=18,c="https://tracker.gamedock.io/v1/events-tracker/track/product/".concat(o,"/user_id/").concat(s),e.next=22,fetch(c,{method:"POST"});case 22:e.sent,e.next=28;break;case 25:e.prev=25,e.t1=e.catch(18),console.log("GAME_DOCK. fail v6",e.t1);case 28:case"end":return e.stop()}}),e,this,[[8,15],[18,25]])}))),function(e,t){return n.apply(this,arguments)})}]),e}(),aL=new iL;function oL(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return sL(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sL(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function sL(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var uL,cL=function(e){var t=this,r=e.src,i=e.attributes,a=e.target,o=e.isAsync;return new Promise(function(e,s){var u=this;n(this,t);try{var c=document.createElement("script");if(c.async=null==o||o,c.type="text/javascript",c.onload=function(){n(this,u),e()}.bind(this),c.onerror=function(){n(this,u);var e="Error on script load, Error: ".concat(r);console.log(e),s(e)}.bind(this),c.src=r,i){var d,l=oL(i);try{for(l.s();!(d=l.n()).done;){var f=d.value,p=f.key,h=f.value;c.setAttribute(p,h)}}catch(e){l.e(e)}finally{l.f()}}a||(a=document.head),a.appendChild(c)}catch(e){var m="Error on script load catch, Error: ".concat(r);console.log(m,e),s(m)}}.bind(this))},dL="ffd4774b-99ae-4464-8f40-3afa12b4692e",lL=function(){var e=t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,cL({src:"https://cdn.cookielaw.org/consent/tcf.stub.js",attributes:[{key:"id",value:"gd-cookie-pro-tcf-stub"},{key:"charset",value:"UTF-8"}],isAsync:!1});case 3:return e.next=5,cL({src:"https://cdn.cookielaw.org/consent/".concat(dL,"/OtAutoBlock.js"),attributes:[{key:"id",value:"gd-cookie-pro-autoblock"}],isAsync:!1});case 5:return e.next=7,cL({src:"https://cdn.cookielaw.org/scripttemplates/otSDKStub.js",attributes:[{key:"id",value:"gd-cookie-pro-stub"},{key:"charset",value:"UTF-8"},{key:"data-domain-script",value:dL}],isAsync:!1});case 7:n=void 0,r=void 0,i=void 0,n=(t={inlineScript:"function OptanonWrapper() { }"}).inlineScript,r=t.target,(i=document.createElement("script")).text=n,r||(r=document.head),r.appendChild(i),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),console.log("GD: CMP error on load",e.t0);case 13:case"end":return e.stop()}var t,n,r,i}),e,null,[[0,10]])})));return function(){return e.apply(this,arguments)}}(),fL=new hD.exports.EventEmitter,pL={"https://games.softgames.com":{"splash-hidden":"splash-hidden"},"https://sg.gamedistribution.com":{"splash-hidden":"splash-hidden"},"https://html5.gamedistribution.com":{key:"value"}},hL=!1,mL="CONTENT_PAUSE_REQUESTED",vL="CONTENT_RESUME_REQUESTED",gL="SDK_GAME_START",AL=function(e){if("gd-sdk-on-event"===(null==e?void 0:e.type)){var t,n,r,i;if(!("midroll"===(null==e||null===(t=e.event)||void 0===t?void 0:t.adPosition)))return;var a=(null===(n=e.event)||void 0===n?void 0:n.name)===vL||(null===(r=e.event)||void 0===r?void 0:r.name)===gL;if((null===(i=e.event)||void 0===i?void 0:i.name)===mL&&(hL=!0),a&&hL){hL=!1;window.parent.postMessage({type:"sg-game-event",eventName:"levelFinish",data:{score:100}},"*")}}};window.addEventListener("message",(function(e){var t=this,r=e.data,i=e.origin,a=r.type;if(Object.keys(pL).some(function(e){return n(this,t),e===i}.bind(this))&&(null==r||!r.__tcfapiCall)){var o=!r.type||!r.type.startsWith("gd-sdk")&&!("parent-data-response"===r.type)||"sg-game-event"===r.type;AL(r);var s=function(){n(this,t);try{var r,i;return null==e||null===(r=e.source)||void 0===r||null===(i=r.location)||void 0===i?void 0:i.href}catch(e){}}.bind(this);if(window.parent&&o){if("https://html5.gamedistribution.com"===i){var u=s();if(!u)return;var c=u&&["9555f04e1900482aaaef710cd2f8c440"].some(function(e){return n(this,t),u.indexOf(e)>0}.bind(this)),d=["sg-game-event"].some(function(e){return n(this,t),e===(null==r?void 0:r.type)}.bind(this));if(!c&&!d)return}var l=r.eventName,f=r.data;window.mpHelper&&("levelStart"!==l&&"levelFinish"!==l||window.mpHelper.sendStat("level",f.level),"levelFinish"===l&&window.mpHelper.sendStat("score",f.score)),window.parent.postMessage(r,"*")}if(a){var p=pL[i][a];p&&fL.emit(p,r)}}}),!1),function(){for(var e=new Dt,t=0,n=[mL,vL,gL];t<n.length;t++){var r=n[t];e.subscribe(r,(function(e){AL({type:"gd-sdk-on-event",event:e})}))}}();var bL=new Uint8Array(16);function yL(){if(!uL&&!(uL="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return uL(bL)}var _L=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var wL=[],xL=0;xL<256;++xL)wL.push((xL+256).toString(16).substr(1));function kL(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(wL[e[t+0]]+wL[e[t+1]]+wL[e[t+2]]+wL[e[t+3]]+"-"+wL[e[t+4]]+wL[e[t+5]]+"-"+wL[e[t+6]]+wL[e[t+7]]+"-"+wL[e[t+8]]+wL[e[t+9]]+"-"+wL[e[t+10]]+wL[e[t+11]]+wL[e[t+12]]+wL[e[t+13]]+wL[e[t+14]]+wL[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&_L.test(e)}(n))throw TypeError("Stringified UUID is invalid");return n}function EL(e,t,n){var r=(e=e||{}).random||(e.rng||yL)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return kL(r)}function SL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var DL="__msgr",IL=EL(),RL=function(e){try{var t=OL(e,e.event),n=LL(window);n&&n!==window.top&&n.postMessage(t,"https://html5.gamedistribution.com")}catch(e){console.error("Error sending event message:",e)}},CL=function(e,t){var n=document.createElement("iframe");return n.src=e,n.style.display="none",n.name=t,n},OL=function(e,t){var n;return{gameId:e.gameId||e.game.gameId,target:(null===(n=e.evnts)||void 0===n?void 0:n.domain)||e.game.evnts.domain,type:"gd-system",token:IL,event_name:t,timestamp:Date.now()}},TL=function(e){var t=this;setInterval(function(){n(this,t);var r=OL(e,"Heartbeat");ML(r)}.bind(this),1e3*e.evnts.heartbeatDuration)},PL=function(e){try{var t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?SL(Object(n),!0).forEach((function(t){cc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e.data);if(!t.event_name)return;t.token=IL,ML(t)}catch(e){console.error("GD Messager Error:",e.message)}},LL=function e(t){try{var n,r,i=null==t?void 0:t.parent;return"game"===(null==i||null===(n=i.document)||void 0===n||null===(r=n.activeElement)||void 0===r?void 0:r.id)?i:e(i)}catch(e){return t}},ML=function(e){try{window[DL]&&window[DL].postMessage(e,"*")}catch(e){console.log("GD Messager initialization, please wait....")}},BL=function(){function e(t){O(this,e),this.adContainer=document.getElementById("gdsdk__advertisement"),this.adContainerInner=document.getElementById("gdsdk__advertisement_slot"),this._adRequest=t.adRequest,this._gameData=t._gameData,this._msgrt=t._msgrt,this._adInstance=t._adInstance,this._eventBus=t._eventBus,this.blockedAdsMap=t._blockedAdsMap,this._parentURL=t._parentURL,this._parentDomain=t._parentDomain,this._onResumeGame=t._onResumeGame.bind(t),this._onPauseGame=t._onPauseGame.bind(t),this._onRewardedWatchComplete=t._onRewardedWatchComplete.bind(t),this._onAdError=t._onAdError.bind(t),this._promoShowSuccess=!1}var r,i,a;return L(e,[{key:"run",value:function(e){var r=e.duration,i=this;return new Promise(function(){var e=t(d.mark((function e(t,a){var o,s=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,i.add();case 3:o=i.show(),setTimeout(function(){n(this,s);try{i.hide(),t({success:o})}catch(e){a(e)}}.bind(this),1e3*r),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),a(e.t0);case 10:case"end":return e.stop()}}),e,this,[[0,7]])})));return function(t,n){return e.apply(this,arguments)}}())}},{key:"show",value:function(){return this.promo_data.game?(this.adContainer.style.visibility="visible",this.promo.style.display="block",this._onPauseGame("Pause the game for the promo","success"),this._promoShowSuccess=!0):this._onAdError("Promo not found"),this._promoShowSuccess}},{key:"hide",value:function(){var e;(this.promo.remove(),this.adContainer.style.visibility="hidden",this._promoShowSuccess)&&("reward"===(null===(e=this._adRequest.params)||void 0===e?void 0:e.position)&&this._onRewardedWatchComplete());this._onResumeGame("Advertisement(s) are done. Start / resume the game.","success")}},{key:"add",value:(a=t(d.mark((function e(){var n,r,i,a=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.fetch_promo();case 3:this.promo_data=e.sent,n=document.createElement("div"),this.promo=n,r=this.promo_data,this.promo.addEventListener("click",function(){var e=t(d.mark((function e(t){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.preventDefault(),console.log(r),a.track_click(r.click_tracking),window.open(r.click_through,"_blank");case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),(i=document.createElement("iframe")).src=this.promo_data.renderer_url,i.setAttribute("frameborder",0),this.addStyles(),this.promo.classList.add("gd__promo"),i.classList.add("gd__promo__iframe"),this.promo.appendChild(i),this.adContainer.appendChild(this.promo),e.next=21;break;case 18:e.prev=18,e.t0=e.catch(0),console.log(e.t0);case 21:case"end":return e.stop()}}),e,this,[[0,18]])}))),function(){return a.apply(this,arguments)})},{key:"addStyles",value:function(){var e="\n .gd__promo{\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: transparent;\n z-index: 1;\n cursor: pointer;\n }\n .gd__promo__iframe{\n position: relative;\n z-index: -1;\n width:".concat(this.adContainerInner.style.width,";\n height:").concat(this.adContainerInner.style.height,";\n }\n "),t=document.body||document.getElementsByTagName("body")[0];this.addStylesheet("gd__promo__style",t,e)}},{key:"addStylesheet",value:function(e,t,n){if(!document.getElementById(e)){var r=document.createElement("style");r.id=e,r.styleSheet?r.styleSheet.cssText=n:r.appendChild(document.createTextNode(n)),t.appendChild(r)}}},{key:"fetch_promo",value:(i=t(d.mark((function e(){var t,r=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("https://tag.atom.gamedistribution.com/v1/rainbow/pick?id=".concat(this._parentDomain,"&aid=").concat(this._gameData.gameId)).then(function(e){return n(this,r),e.json()}.bind(this));case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"track_click",value:(r=t(d.mark((function e(t){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(t);case 2:case"end":return e.stop()}}),e)}))),function(e){return r.apply(this,arguments)})}]),e}();function jL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function UL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jL(Object(n),!0).forEach((function(t){cc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var FL,NL,$L=function(){var e=t(d.mark((function e(){var t;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return"https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.3.1/socket.io.js",t=["https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.3.1/socket.io.js"],e.next=4,ft(t[0],"soecket.io.js",{alternates:t});case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),GL=[],HL=0,zL=!1,ZL=function(){var e=t(d.mark((function e(r){var i,a,o,s,u,c,l,f,p=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=r.args,a=r.onError,e.prev=1,!window.isForwarderFrame){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,rR();case 7:if(!(o=e.sent)){e.next=18;break}return e.next=11,o.isLoader();case 11:if(!(s=e.sent)&&(s||o.hasRouter())){e.next=16;break}o.register({method:"sendSocketEvent",handler:function(e){n(this,p),qL(e.topic,e.args)}.bind(this)}),e.next=18;break;case 16:return o.registerProxy({alias:"sendSocketEvent",method:"sendSocketEvent"}),e.abrupt("return");case 18:if(u=new C(window.location.href),c=!["html5.gamedistribution.com","revision.gamedistribution.com"].some(function(e){return n(this,p),e.toLowerCase()===u.host.toLowerCase()}.bind(this)),!(c&&o&&o.hasRouter())){e.next=24;break}return e.abrupt("return");case 24:return c&&o&&o.hasRouter(),e.next=27,$L();case 27:FL=EL(),l={json:JSON.stringify(i)},f=["wss://ws.gamedistribution.com"],i.isHwp&&f.push("wss://ws-acc-hwp.gamedistribution.com"),GL=f.map(function(e){var r=this;n(this,p);var a=io(e,{query:l,upgrade:!1,transports:["websocket"],reconnectionDelay:6e4,autoConnect:!1});return a.on("connect",function(){n(this,r)}.bind(this)),a.on("after-connect",function(){var e=t(d.mark((function e(t){var n,r,o,s,u,c,l;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return NL=NL||(null==t?void 0:t.serverDate),n=i.gameId,r=i.failed,e.next=4,$D({gameId:n,serverDate:NL});case 4:o=e.sent,s=o.visit,u=o.mode,c=o.errors,i.visit=UL(UL({},s),{},{stm:u,errors:c}),r&&(i.gameId=n?"failed:wrong":"failed:empty"),l={json:JSON.stringify(i)},a.emit("client-info",{clientId:FL,counter:HL++,serverDate:NL,query:l}),zL=!0;case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),a.on("disconnect",function(){n(this,r)}.bind(this)),a.connect(),a}.bind(this)),e.next=37;break;case 34:e.prev=34,e.t0=e.catch(1),a&&a(e.t0);case 37:case"end":return e.stop()}}),e,this,[[1,34]])})));return function(t){return e.apply(this,arguments)}}(),VL=!1,KL=[];function qL(e,t){return WL.apply(this,arguments)}function WL(){return WL=t(d.mark((function e(t,r){var i,a,o,s=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,rR();case 2:if(!(i=e.sent)){e.next=11;break}return e.next=6,i.isLoader();case 6:if(e.sent||!i.hasRouter()){e.next=11;break}return e.next=10,i.sendSocketEvent({topic:t,args:r});case 10:return e.abrupt("return");case 11:if("play"!==t){e.next=15;break}if(!VL){e.next=14;break}return e.abrupt("return");case 14:VL=!0;case 15:a=function(e,t){var r=this;n(this,s);try{var i={json:JSON.stringify(t||{})};GL.forEach(function(t){n(this,r),t.emit("socket-event",{topic:e,clientId:FL,counter:HL,serverDate:NL,query:i})}.bind(this))}catch(e){sc("game-session: Error on sending socket-event",e.message)}}.bind(this),o=function(){n(this,s),a(t,r)}.bind(this),KL.push(o);case 19:case"end":return e.stop()}}),e,this)}))),WL.apply(this,arguments)}function YL(e){var t=this,r={preroll:["preroll","start"],midroll:["next"],rewarded:["reward"]},i=Object.keys(r).find(function(i){var a=this;return n(this,t),r[i].some(function(t){return n(this,a),t===e.params.position}.bind(this))}.bind(this));return i||"midroll"}function QL(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return JL(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return JL(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function JL(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function XL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}setInterval((function(){if(0!==KL.length&&GL.length>0&&zL){for(var e=function(){var e=this,i=r[t];i(),KL=KL.filter(function(t){return n(this,e),t!==i}.bind(this))},t=0,r=pR(KL);t<r.length;t++)e();ac("game-session: commands length",KL.length)}}),100);var eM=3,tM=1,nM=5,rM={lastImpressionDate:null,lastInterstitialImpressionDate:null,firstInterstitialImpressionDate:null,imps:0};var iM=new function(){var e={};return{count:function(t){e[t]=e[t]||0,e[t]++},get:function(t){return e[t]=e[t]||0,e[t]},getAll:function(){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?XL(Object(n),!0).forEach((function(t){cc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e)}}};function aM(){return oM.apply(this,arguments)}function oM(){return(oM=t(d.mark((function e(){var t,r,i,a,o,s,u,c,l,f,p;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={},e.next=3,oI();case 3:if(i=e.sent,a=i.compensation||{enabled:!1},o=null==i||null===(t=i.adTimer)||void 0===t?void 0:t.enabled,r.ruleEnabled=(null==a?void 0:a.enabled)&&o,!(void 0===(null==a?void 0:a.exctg)||(null==a?void 0:a.exctg))){e.next=29;break}s=["co-op","multiplayer","IAPs"],u=(null==i?void 0:i.tags)||[],c=!1,l=QL(u),e.prev=13,p=d.mark((function e(){var t,r=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=f.value,s.some(function(e){return n(this,r),e===t.title}.bind(this))&&(c=!0);case 2:case"end":return e.stop()}}),e,this)})),l.s();case 16:if((f=l.n()).done){e.next=20;break}return e.delegateYield(p(),"t0",18);case 18:e.next=16;break;case 20:e.next=25;break;case 22:e.prev=22,e.t1=e.catch(13),l.e(e.t1);case 25:return e.prev=25,l.f(),e.finish(25);case 28:r.disabledByTag=c;case 29:return r.isLowScoreGame=sM(i),r.enabled=r.ruleEnabled&&!r.disabledByTag&&r.isLowScoreGame,i.hasActiveCompensations=r.enabled,e.abrupt("return",r);case 33:case"end":return e.stop()}}),e,null,[[13,22,25,28]])})))).apply(this,arguments)}function sM(e){var t=!1,n=e.compensation||{enabled:!1},r=null==e?void 0:e.adsc;if(1===(null==r?void 0:r.s)&&null!=r&&r.t){var i=null==r?void 0:r.t,a=(null==n?void 0:n.esc)||tM,o=(null==n?void 0:n.ascl)||nM,s=i||{},u=s.adsc,c=s.reqsc,d=s.pdur,l=s.rspdur;s.aspdur,t=(l||c/(d/eM))<=a&&u<o}return t}var uM=!1;function cM(){return dM.apply(this,arguments)}function dM(){return(dM=t(d.mark((function e(){var t;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!uM){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,aM();case 4:(t=e.sent).enabled,t.override,t.giftEnabled,t.midrollPlusEnabled,uM=!0;case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function lM(e){var t=e.rateType,n=e.gameData,r=!1;if(n.hasActiveCompensations){var i=n.compensation,a="gift"===t?null==i?void 0:i.gftr:null==i?void 0:i.mpr;a=void 0===a?1:a,r=Math.random()<=a}else r=!0;return r}function fM(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return pM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pM(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function pM(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var hM=!1,mM=3,vM=5,gM=1,AM=60,bM=10;function yM(){return _M.apply(this,arguments)}function _M(){return(_M=t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return rM.imps++,rM.lastImpressionDate=new Date,rM.lastInterstitialImpressionDate=new Date,rM.firstInterstitialImpressionDate||(rM.firstInterstitialImpressionDate=rM.lastInterstitialImpressionDate),e.abrupt("return",!0);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function wM(e){return xM.apply(this,arguments)}function xM(){return xM=t(d.mark((function e(r){var i,a,o,s,u,c,l,f,p,h,m,v,g,A,b,y,_,w,x,k,E,S,D,I,R,C,O,T,P,L,M,B,j,U,F,N,$,G,H,z,Z,V,K,q,W,Y,Q,J,X,ee,te,ne,re,ie,ae,oe,se,ue,ce,de,le,fe,pe,he,me,ve,ge=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(E=r.gameData,S=r.executeCompensation,D=function(){var e=t(d.mark((function e(t){var n,r,i;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,n=(null==t?void 0:t.whenAvailable)||!1,!S){e.next=8;break}return e.next=5,S({whenAvailable:n});case 5:e.t0=e.sent,e.next=11;break;case 8:return e.next=10,yM();case 10:e.t0=e.sent;case 11:return r=e.t0,i=r.args,e.abrupt("return",null==i?void 0:i.success);case 16:return e.prev=16,e.t1=e.catch(0),e.next=20,yM();case 20:case"end":return e.stop()}}),e,null,[[0,16]])})));return function(t){return e.apply(this,arguments)}}(),I=!hM,!hM){e.next=5;break}return e.abrupt("return");case 5:if(hM=!0,R=E.adsc){e.next=10;break}return e.abrupt("return");case 10:if(C=R.s,O=R.t,1===C){e.next=13;break}return e.abrupt("return");case 13:if(T=E.compensation||{enabled:!1},P=null==T?void 0:T.enabled,L=null==E||null===(i=E.adTimer)||void 0===i?void 0:i.enabled,M=null==E||null===(a=E.adTimer)||void 0===a?void 0:a.tl,(B=(null==E||null===(o=E.pAds)||void 0===o||null===(s=o.vmap)||void 0===s?void 0:s.enabled)&&(null==E||null===(u=E.pAds)||void 0===u||null===(c=u.vmap)||void 0===c||null===(l=c.adtr)||void 0===l?void 0:l.disabled)||!1)&&ac("[compensation] disabled by preroll vmap",{pAds:null==E?void 0:E.pAds}),P&&L&&!B){e.next=23;break}return e.abrupt("return");case 23:if(!((j=null!=E&&null!==(f=E.pAds)&&void 0!==f&&null!==(p=f.vmap)&&void 0!==p&&p.enabled&&null!=E&&null!==(h=E.pAds)&&void 0!==h&&null!==(m=h.vmap)&&void 0!==m&&null!==(v=m.adtr)&&void 0!==v&&v.delay?null==E||null===(g=E.pAds)||void 0===g||null===(A=g.vmap)||void 0===A||null===(b=A.adtr)||void 0===b?void 0:b.delay:0)>0)){e.next=30;break}return e.next=29,new Promise(function(e){var t=this;n(this,ge),setTimeout(function(){n(this,t),e()}.bind(this),1e3*j)}.bind(this));case 29:case 30:if(!(void 0===(null==T?void 0:T.exctg)||(null==T?void 0:T.exctg))){e.next=54;break}U=["co-op","multiplayer","IAPs"],F=(null==E?void 0:E.tags)||[],N=!1,$=fM(F),e.prev=36,H=d.mark((function e(){var t,r=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=G.value,U.some(function(e){return n(this,r),e===t.title}.bind(this))&&(N=!0);case 2:case"end":return e.stop()}}),e,this)})),$.s();case 39:if((G=$.n()).done){e.next=43;break}return e.delegateYield(H(),"t0",41);case 41:e.next=39;break;case 43:e.next=48;break;case 45:e.prev=45,e.t1=e.catch(36),$.e(e.t1);case 48:return e.prev=48,$.f(),e.finish(48);case 51:if(!N){e.next=54;break}return e.abrupt("return");case 54:if(z=(null==E||null===(y=E.adTimer)||void 0===y?void 0:y.resetOnRewarded)||!1,Z=(null==E||null===(_=E.adTimer)||void 0===_?void 0:_.delayAfterRewarded)||0,V=(null==T?void 0:T.esc)||gM,K=void 0===(null==T?void 0:T.depgft)||(null==T?void 0:T.depgft),q=null!=T&&T.depgftr?null==T?void 0:T.depgftr:1,W=(null==T?void 0:T.onst)||!1,Y=(null==T?void 0:T.sl)||3,Q=M||(null==T?void 0:T.tl)||180,J=(null==E||null===(w=E.gft)||void 0===w?void 0:w.midroll.enabled)||!1,X=(null==E||null===(x=E.midroll_plus)||void 0===x?void 0:x.enabled)||!1,(!J||!X)&&(Q/=q),ee=void 0===(null==T?void 0:T.tc)||(null==T?void 0:T.tc),te=(null==T?void 0:T.ascl)||vM,!K){e.next=76;break}if(ie=(null==E||null===(ne=E.gft)||void 0===ne?void 0:ne.midroll.enabled)||!1,ae=(null==E||null===(re=E.midroll_plus)||void 0===re?void 0:re.enabled)||!1,ie&&ae){e.next=76;break}return e.abrupt("return");case 76:if(se=(oe=O||{}).adsc,ue=oe.reqsc,ce=oe.pdur,de=oe.rspdur,oe.aspdur,(de||ue/(ce/mM))<=V&&se<te){e.next=83;break}return e.abrupt("return");case 83:if(le=Math.ceil(ce/mM),!W||!I){e.next=90;break}return e.next=90,D({whenAvailable:!0});case 90:return fe=0,pe=1,he=function(){n(this,ge),fe=0,pe=1}.bind(this),null===(k=E.sdkfw)||void 0===k||k.enabled,e.next=96,rR();case 96:if(me=e.sent,e.t2=me,!e.t2){e.next=102;break}return e.next=101,me.isLoader();case 101:e.t2=e.sent;case 102:e.t2,ve=setInterval(t(d.mark((function e(){var t,r,i,a,o,s,u=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(ee&&rM.imps>=le)){e.next=4;break}return clearInterval(ve),e.abrupt("return");case 4:if(t=new Date,r=z?rM.lastImpressionDate:rM.lastInterstitialImpressionDate,i=r?kM(r,t):Q+1,!((a=Q-i)>0)){e.next=21;break}if(!(a<=AM-bM)){e.next=18;break}return e.next=16,new Promise(function(e){var t=this;n(this,u),setTimeout(function(){n(this,t),e()}.bind(this),1e3*a)}.bind(this));case 16:e.next=21;break;case 18:return he(),e.abrupt("return");case 21:if(++fe%pe==0){e.next=25;break}return e.abrupt("return");case 25:if(z){e.next=35;break}if(o=rM.lastImpressionDate?kM(rM.lastImpressionDate,new Date):Q+1,!((s=Z-o)>0)){e.next=32;break}return e.next=32,new Promise(function(e){var t=this;n(this,u),setTimeout(function(){n(this,t),e()}.bind(this),1e3*s)}.bind(this));case 32:e.next=36;break;case 35:case 36:return e.next=38,D({});case 38:e.sent?he():(fe=0,pe=pe+1>Y?Y:pe+1);case 40:case"end":return e.stop()}}),e,this)}))),1e3*AM);case 105:case"end":return e.stop()}}),e,this,[[36,45,48,51]])}))),xM.apply(this,arguments)}function kM(e,t){var n=e.getTime();return(t.getTime()-n)/1e3}function EM(e){return SM.apply(this,arguments)}function SM(){return SM=t(d.mark((function e(t){var n,r,i,a,o,s,u,c,l,f,p;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.gameId,i=t.adTypeFound,a=t.ad_skip_rule,o=iM.get(i),(s=null==a?void 0:a[i])&&s.enabled){e.next=7;break}return e.abrupt("return",!1);case 7:if((u=(null==s?void 0:s.skip_sessions)||0)&&0!==u){e.next=11;break}return e.abrupt("return",!1);case 11:if((c=(null==s?void 0:s.skips)||0)&&0!==c){e.next=15;break}return e.abrupt("return",!1);case 15:return e.next=17,FD({gameId:r});case 17:if((l=e.sent)&&!((null===(n=l.errors)||void 0===n?void 0:n.length)>0)){e.next=21;break}return e.abrupt("return",!1);case 21:return l.fv,l.lv,f=l.vc,p=f<=u&&("preroll"===i||o<=c),e.abrupt("return",p);case 25:case"end":return e.stop()}}),e)}))),SM.apply(this,arguments)}function DM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function IM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?DM(Object(n),!0).forEach((function(t){cc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function RM(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return CM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return CM(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function CM(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var OM,TM=function(){function e(t){var r=this;O(this,e),this._gameData=t._gameData,this._msgrt=t.msgrt,this._adInstance=t.adInstance,this._eventBus=t.eventBus,this.blockedAdsMap=t.blockedAdsMap,this._parentURL=t._parentURL,this._parentDomain=t._parentDomain,this._onResumeGame=t.onResumeGame.bind(t),this._onPauseGame=t.onPauseGame.bind(t),this._onRewardedWatchComplete=t.onRewardedWatchComplete.bind(t),this._onAdError=t.onAdError.bind(t),this._setAdRequestTimer=t._setAdRequestTimer.bind(t),this._giveGift=t._giveGift.bind(t),this._executeMidrollPlus=t._executeMidrollPlus.bind(t),this.executeCompensation=t.executeCompensation.bind(t),this._runAutoResume=t._runAutoResume.bind(t),this.send_atom_event=t.send_atom_event.bind(t),this.get_session_id=t.get_session_id.bind(t),this.get_ad_system_init_result=t.get_ad_system_init_result.bind(t),this.eventBus=new Dt,this.isOpusReady=function(){return n(this,r),t.isOpusReady}.bind(this),this._adCounterLabel=t.adInstance.adCounterLabel,this._adInfoLabel=t.adInstance.adInfoLabel,this._muteRequested=!1,this._terminateRequested=!1,this._adSession=null,this._registerForEvents(),document.addEventListener("visibilitychange",function(){n(this,r),"visible"===document.visibilityState?this._sendTabChange("tab-visible"):this._sendTabChange("tab-invisible")}.bind(this))}var r,i,a;return L(e,[{key:"_registerForEvents",value:function(){var e=this;this.eventBus.subscribe("HL_CONFIG_ERROR",function(t){n(this,e),this.hasHLConfigError=!0}.bind(this))}},{key:"getTimeDiff",value:function(e,t){var n=e.getTime();return(t.getTime()-n)/1e3}},{key:"skipMidrollOnLongVMAP",value:(a=t(d.mark((function e(t){var n,r,i,a,o,s,u,c,l,f,p,h,m,v,g,A,b,y,_,w;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("midroll"===t){e.next=2;break}return e.abrupt("return",!1);case 2:if((null===(n=this._gameData)||void 0===n||null===(r=n.pAds)||void 0===r?void 0:r.vmap.enabled)&&(null===(i=this._gameData)||void 0===i||null===(a=i.pAds)||void 0===a||null===(o=a.vmap)||void 0===o?void 0:o.adtr)){e.next=5;break}return e.abrupt("return",!1);case 5:if(null!==(s=this._gameData)&&void 0!==s&&null!==(u=s.visit)&&void 0!==u&&u.vc&&0!==(null===(c=this._gameData)||void 0===c||null===(l=c.visit)||void 0===l?void 0:l.vc)){e.next=7;break}return e.abrupt("return",!1);case 7:if(y=(null===(f=this._gameData)||void 0===f||null===(p=f.pAds)||void 0===p||null===(h=p.vmap)||void 0===h||null===(m=h.adtr)||void 0===m?void 0:m.skipDuration)||(null===(v=this._gameData)||void 0===v||null===(g=v.pAds)||void 0===g||null===(A=g.vmap)||void 0===A||null===(b=A.adtr)||void 0===b?void 0:b.delay)||360,rM.firstInterstitialImpressionDate){e.next=10;break}return e.abrupt("return",!1);case 10:return _=this.getTimeDiff(rM.firstInterstitialImpressionDate,new Date),(w=_<y)&&oc("gd-adflow skipped by long vmap",{elapsed:_}),e.abrupt("return",w);case 15:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"runAdFlow",value:(i=t(d.mark((function e(t){var r,i,a,o,s,u,c,l,f,p,h,m,v,g,A,b,y,_,w,x,k,E,S,D,I,R,C,O,T,P,L,M,B,j,U,F,N,$,G,H,z,Z,V,K,q,W,Y,Q,J,X,ee,te,ne,re,ie,ae,oe,se,ue,ce,de,le,fe,pe,he,me,ve,ge,Ae=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._adInstance.adCounter,null===(r=t.params)||void 0===r||!r.isCompensation||!this._gameData.compensation.clbl){e.next=7;break}return this._adCounterLabel.show(),p=function(e){var t=this;return n(this,Ae),new Promise(function(r){return n(this,t),setTimeout(r,e)}.bind(this))}.bind(this),e.next=7,p(1e3*this._gameData.compensation.ctl);case 7:return e.next=9,rR();case 9:return!(h=e.sent)||h.isLoader(),this.adRequest=t,m=YL(t),t.params.adTypeFound=m,ac("gd-adflow, adTypeFound",m,t.params.position),iM.count(m),ac("gd-adflow, counters",{counters:iM.getAll()}),v=this._gameData,g=v.gameId,A=v.ad_skip,e.next=21,EM({gameId:g,ad_skip_rule:A,adTypeFound:m});case 21:if(!e.sent){e.next=28;break}return this._adInstance.adCounter[m]=this._adInstance.adCounter[m]||0,this._adInstance.adCounter[m]++,this._onResumeGame("Advertisement(s) are done. Start / resume the game.","success"),wM({gameData:this._gameData,executeCompensation:this.executeCompensation}),e.abrupt("return");case 28:return e.next=30,this.skipMidrollOnLongVMAP(m);case 30:if(!e.sent){e.next=34;break}return this._onResumeGame("Advertisement(s) are done. Start / resume the game.","success"),e.abrupt("return");case 34:(b=this._getAdFlow(m)).find(function(e){return n(this,Ae),"opus"===e}.bind(this))&&!this.isOpusReady()&&(b=b.filter(function(e){return n(this,Ae),"opus"!==e}.bind(this)),this._msgrt.send("opus.sdk",{message:"Not ready"})),y=this._gameData,_=y.afg_disabled,w=null===(i=t.params)||void 0===i?void 0:i.isGift,x=null===(a=t.params)||void 0===a?void 0:a.isMidrollPlus,k=null===(o=t.params)||void 0===o?void 0:o.isCompensation,null===(s=t.params)||void 0===s||s.position,E=null===(u=y.promo)||void 0===u?void 0:u.rainbow,S=(null==E?void 0:E.enabled)&&(null===(c=E.position)||void 0===c?void 0:c[m]),D=null==E?void 0:E.gift,I=S&&null!=E&&E.duration?null==E?void 0:E.duration:5,R=_?b.filter(function(e){return n(this,Ae),"adsense"!==e}.bind(this)):b,C=this.get_ad_system_init_result(),O=C.afg,T=C.ima,P=null==y||null===(l=y.ad_blcks)||void 0===l||null===(f=l.removeOtherAdaptors)||void 0===f?void 0:f.enabled,this.anyAdBlocking=!O||!T,this.bothAdBlocking=!O&&!T,this.adsBlocked=P&&this.anyAdBlocking||this.bothAdBlocking,this.adsBlocked?(oc("gd-adflow adsBlocked so changing the flow"),R=[]):(O||(R=R.filter(function(e){return n(this,Ae),"adsense"!==e}.bind(this))),T||(R=R.filter(function(e){return n(this,Ae),"ima"!==e}.bind(this)))),L=!1,M=!1,B=[],j=0,U=!1,N=!1,$={reqs:0,imps:0},G={},H=!1,z=!1,Z=RM(R),e.prev=68,Z.s();case 70:if((V=Z.n()).done){e.next=124;break}if(K=V.value,!this._terminateRequested){e.next=74;break}return e.abrupt("break",124);case 74:if(t.params.adapter=K,q=j===R.length-1,W=w&&D||!w,Y=q&&S&&W,t.params=IM(IM({},t.params),{},{adapterIndex:j,isLastAdapter:q,shouldFail:!1,extraPromoRunOnFail:Y,muteRequested:this._muteRequested}),!this._muteRequested||"adsense"!==K){e.next=81;break}return e.abrupt("continue",122);case 81:return function(){n(this,Ae),uc.firstSuccessOrder&&!isNaN(uc.firstSuccessOrder)&&(t.params.shouldFail=j<uc.firstSuccessOrder)}.bind(this),oc("gd-adflow, before adInvoke",j,K,t.params.shouldFail),e.next=85,this.adInvoke(t);case 85:if(Q=e.sent,J=Q.success,X=Q.args,ee=Q.isSkipped,te=Q.noVast,ne=Q.t4r,re=Q.adContext,ie=Q.isCanceled,(ae=(null==re?void 0:re.isVMAP)||!1)&&$.reqs++,ae&&(J||ie)&&$.imps++,oe=null==X?void 0:X.reason,se=null==X?void 0:X.message,ue=null==X?void 0:X.errorType,G[K]=G[K]||{req:0,imp:0,fail:0},G[K].req++,J?G[K].imp++:(G[K].fail++,G[K].failReason=oe,G[K].failMessage=se,G[K].failType=ue),!J){e.next=111;break}return oc("gd-adflow, adapter-result-success",j,K,X),L=!0,N=ae,M=!(null==X||!X.isPromoSuccess),F=ne,e.abrupt("break",124);case 111:if(oc("gd-adflow, adapter-result-failure",j,K,X.message),"opus"===K&&"[FC] No ad available"===(null==X?void 0:X.message)&&(t.params.opusSuccess=!0,H=!0),ie&&!z&&(z=!0),j++,B.push(X.message),!ee){e.next=118;break}return e.abrupt("break",124);case 118:if(!te){e.next=121;break}return this._runAutoResume(),e.abrupt("break",124);case 121:U=Y;case 122:e.next=70;break;case 124:e.next=129;break;case 126:e.prev=126,e.t0=e.catch(68),Z.e(e.t0);case 129:return e.prev=129,Z.f(),e.finish(129);case 132:if(this._adInfoLabel&&this._adInfoLabel.hide(),!U){e.next=139;break}return e.next=136,new BL(this).run({duration:I});case 136:e.sent.success&&(M=!0);case 139:return function(){var e;n(this,Ae),uc.disableGift&&null!==(e=y.gft)&&void 0!==e&&e[m].enabled&&(y.gft[m].enabled=!1)}.bind(this),ce=B.join(" /n"),L||H?(rM.imps++,rM.lastImpressionDate=new Date,"rewarded"!==m&&(rM.lastInterstitialImpressionDate=new Date,rM.firstInterstitialImpressionDate||(rM.firstInterstitialImpressionDate=rM.lastInterstitialImpressionDate)),this._setAdRequestTimer(),this._onResumeGame("Advertisement(s) are done. Start / resume the game.","success"),this._giveGift(m),"midroll"===m&&this._executeMidrollPlus()):(this._onResumeGame(ce,"warning"),this._giveGift(m),"midroll"===m&&this._executeMidrollPlus()),wM({gameData:y,executeCompensation:this.executeCompensation}),de="-1",le="none",L?(de="index_".concat(j),le=R[j]):M?(de="promo",le="promo"):H&&(de="opus",le="opus"),fe=this.get_session_id(),this.anyAdBlocking&&"-1"===de?(pe="rewarded"===m?"rewarded":this.blockedAdsMap.preroll?"midroll":"preroll",this.blockedAdsMap[pe]=this.blockedAdsMap[pe]?this.blockedAdsMap[pe]+1:1,ac("gd-adflow, blocked-ad",JSON.stringify(this.blockedAdsMap)),this._msgrt.send("adflow.blocked.pos",{message:"".concat(pe)}),this.send_atom_event("gd.adflow",{adBlocker:!0,afgBlocked:!O,imaBlocked:!T,isGift:w,isMidrollPlus:x,adType:pe,sessionId:fe,successAdapter:"none",adFlowIndex:de,adapterResults:G,ctry:y.ctry})):(cc(he={},"adflow.all.index",{message:"".concat(de)}),cc(he,"adflow.all.success_adapter",{message:"".concat(le)}),cc(he,"adflow.".concat(m,".index"),{message:"".concat(de)}),cc(he,"adflow.".concat(m,".success_adapter"),{message:"".concat(le)}),me=he,Object.keys(me).forEach(function(e){n(this,Ae);var t=me[e];this._msgrt.send(e,t)}.bind(this)),this.send_atom_event("gd.adflow",{adFlowIndex:de,successAdapter:le,adBlocker:!1,afgBlocked:!O,imaBlocked:!T,isGift:w,isMidrollPlus:x,isCompensation:k,adType:m,sessionId:fe,t4r:F,adapterResults:G,ctry:y.ctry})),ve={adType:m,imp:"-1"!==de&&"promo"!==de||H,promo:"promo"===de,opus:H,blocked:this.anyAdBlocking&&"-1"===de,hasHLConfigError:this.hasHLConfigError,isGift:w,isMidrollPlus:x,isCompensation:k,isVMAP:!H&&N,isAppliedVMAP:!H&&N&&(null==y?void 0:y.vmapByTagsApplied),VMAPs:$},this._adSession=ve,qL("ad-session",{adSession:ve}),H&&z&&qL("ad-session",{adSession:IM(IM({},ve),{},{opus:!1,cancel:!0,isVMAP:N,isAppliedVMAP:N&&(null==y?void 0:y.vmapByTagsApplied)})}),ge={adType:m},this.eventBus.broadcast("AD_FLOW_COMPLETE",ge),e.abrupt("return",IM(IM({},ge),{},{args:{success:L,isGift:w,isMidrollPlus:x}}));case 159:case"end":return e.stop()}}),e,this,[[68,126,129,132]])}))),function(e){return i.apply(this,arguments)})},{key:"adInvoke",value:(r=t(d.mark((function e(r){var i=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=t(d.mark((function e(t,a){var o,s,u,c,l=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o="main.showad.".concat(r.params.adapter,".").concat(r.params.adapterIndex),ac("adInvoke.start",{scopeName:o,adRequest:JSON.stringify(r)}),s={},u=function(e){n(this,l);var a=i._adInstance.adContext;ac("adInvoke.failure",{args:e,adRequest:JSON.stringify(r),adContext:a}),i._eventBus.unsubscribeScope(o);var s="dismissed"===(null==e?void 0:e.message),u="AD_SDK_CANCELED"===(null==e?void 0:e.name);t({success:!1,args:e,isSkipped:s,isCanceled:u,noVast:e.noVast,adContext:a})}.bind(this),c=function(e){n(this,l);var a=i._adInstance.adContext;ac("adInvoke.success",{args:e,adRequest:JSON.stringify(r),adContext:a}),i._eventBus.unsubscribeScope(o),t({success:!0,args:e,t4r:s,adContext:a})}.bind(this),i._eventBus.subscribe("AD_ERROR",u,o),i._eventBus.subscribe("AD_SDK_CANCELED",u,o),i._eventBus.subscribe("AD_SUCCESS",c,o),i._eventBus.subscribe("AD_T4R",function(){n(this,l),s.loaded=!0}.bind(this),o),i._eventBus.subscribe("AD_T4R_CLICK",function(){n(this,l),s.t4rClick=!0}.bind(this),o),i._eventBus.subscribe("AD_T4R_VIDEO",function(){n(this,l),s.t4rVideo=!0}.bind(this),o),i._eventBus.subscribe("AD_CLICK",function(){n(this,l),s.click=!0}.bind(this),o),i._eventBus.subscribe("AD_BIDDER",function(e){n(this,l),s.bidder=null==e?void 0:e.bidder}.bind(this),o),i._eventBus.subscribe("AD_T4R_NONE",function(e){n(this,l),s.fail_reason=null==e?void 0:e.reason}.bind(this),o),e.prev=14,e.next=17,i._adInstance.startAd(r);case 17:e.next=23;break;case 19:e.prev=19,e.t0=e.catch(14),sc("gd-adflow startAd error",e.t0),t({success:!1,err:e.t0});case 23:case"end":return e.stop()}}),e,this,[[14,19]])})));return function(t,n){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)}))),function(e){return r.apply(this,arguments)})},{key:"_getAdFlow",value:function(e){var t,r,i,a,o,s,u,c,d=this,l=void function(){if(n(this,d),uc.customAdFlow)return JSON.parse(uc.customAdFlow)}.bind(this),f=this._gameData.adflw;l&&(f=l);var p=null!==(t=f)&&void 0!==t&&null!==(r=t.adapters)&&void 0!==r&&r.default?null===(i=f)||void 0===i||null===(a=i.adapters)||void 0===a?void 0:a.default:["ima","adsense"];return p=null!==(o=f)&&void 0!==o&&null!==(s=o.adapters)&&void 0!==s&&s[e]?null===(u=f)||void 0===u||null===(c=u.adapters)||void 0===c?void 0:c[e]:p}},{key:"_sendTabChange",value:function(e){var t=this;if("tab-invisible"===e&&this._adSession){var r=this._adSession;r.tabState=e,this.eventBus.subscribe("STARTED",function(){n(this,t),"hidden"===document.visibilityState&&(r.tabState=r.tabState+"-STARTED",qL("ad-session-tab",{adSession:r}))}.bind(this)),this.eventBus.subscribe("IMPRESSION",function(){n(this,t),"hidden"===document.visibilityState&&(r.tabState=r.tabState+"-IMPRESSION",qL("ad-session-tab",{adSession:r}))}.bind(this))}}},{key:"mute",value:function(){var e=this;this._muteRequested=!0,this._adInstance.mute().catch(function(t){n(this,e)}.bind(this))}},{key:"terminate",value:function(){var e=this;this._terminateRequested=!0,this._adInstance.terminate().catch(function(t){n(this,e)}.bind(this)),this._setAdRequestTimer()}}]),e}(),PM=new hD.exports.EventEmitter,LM=["https://games.softgames.com","https://sg.gamedistribution.com","https://minigame-stg.aeriagames.jp","https://minigame.aeriagames.jp","https://html5.gamedistribution.com","http://localhost:3005","https://yjgames.gamedistribution.com","https://portal-staging-sgweb.gamedistribution.com/"];window.addEventListener("message",(function(e){var t=this,r=e.data,i=e.origin,a=e.source;if(LM.some(function(e){return n(this,t),e===i}.bind(this))&&(null==r||!r.__tcfapiCall)){var o=r.system;r.action;var s="aeriaExternalHostsConnector"===o;if("Softgames"===o)OM=a,(window.parent||window).postMessage(r,"*"),PM.emit("aeria-event",r);else if(s){OM&&OM.postMessage(r,"*");var u=window.parent||window;u&&u.postMessage(r,"*")}}}),!1);var MM="https://html5.gamedistribution.com",BM="parent-data-request",jM="parent-data-response",UM=function(){function e(){O(this,e)}var r;return L(e,[{key:"init",value:function(e){var t=this;this._registerForDataRequests(e),this._askForParentFrameData().then(function(r){if(n(this,t),r){var i=r.adRequestTimer;e.adRequestTimer=i,ac("gd-frame-data-bridge, adRequestTimer on init ",e.adRequestTimer)}}.bind(this))}},{key:"_registerForDataRequests",value:function(e){var t=this;window.addEventListener("message",function(r){n(this,t);var i=r.data,a=r.origin,o=r.source,s=i.type;if(i.value,a===MM&&s===BM){var u={adRequestTimer:e.adRequestTimer};o.postMessage({type:jM,value:u})}}.bind(this))}},{key:"_askForParentFrameData",value:(r=t(d.mark((function e(){var t=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(e,r){var i=this;n(this,t);var a=!1;window.addEventListener("message",(function(t){var n=t.data,r=t.origin;t.source;var i=n.type,o=n.value;r===MM&&i===jM&&(e(o),a=!0)})),setTimeout(function(){n(this,i),a||e()}.bind(this),1e3);var o={type:BM};window.parent.postMessage(o,"*")}.bind(this)));case 1:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})}]),e}(),FM=new UM,NM={SDKExistsOnUpperFrame:!1};function $M(){return GM.apply(this,arguments)}function GM(){return GM=t(d.mark((function e(){var t,n;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t=["https://pm.azerioncircle.com/p/gd-blck-rmv/"],e.next=4,ft(t[0],"blckrmv",{alternates:t});case 4:return n=window.GD_BLCK_RMV||{},console.log("new blocker",n),e.abrupt("return",n.AdBlockerPage);case 9:e.prev=9,e.t0=e.catch(0),console.log("new blcoker error => ",e.t0.message);case 12:case"end":return e.stop()}}),e,null,[[0,9]])}))),GM.apply(this,arguments)}var HM=async()=>{const e={},t={};function n(){let t,n=window,r=null,i=null;for(;!t;){try{if("function"==typeof n.__tcfapi||"function"==typeof n.__cmp){"function"==typeof n.__tcfapi?(i=2,r=n.__tcfapi):(i=1,r=n.__cmp),t=n;break}}catch(e){}try{if(n.frames.__tcfapiLocator){i=2,t=n;break}}catch(e){}try{if(n.frames.__cmpLocator){i=1,t=n;break}}catch(e){}if(n===window.top)break;n=n.parent}return e.version=i,e.frame=t,e.function=r,e.version}function r(r={}){return new Promise((i=>{function a(t,n){if(n){if(!1!==t.gdprApplies)return"tcloaded"===t.eventStatus||"useractioncomplete"===t.eventStatus?(function(t){const n=t&&"boolean"==typeof t.gdprApplies?t.gdprApplies:r.defaultGdprScope;("boolean"!=typeof n||!0===n&&"string"!=typeof t.tcString)&&i({result:"cmpUnexpectedResponse",cmp:e,consentData:t})}(t),void i({result:"ok",consentData:t})):void 0;i({result:"ok",consentData:t})}else i({result:"cmpCallFailed"})}n(),e.frame?2===e.version?e.function?e.function("addEventListener",e.version,a):function(n,r,i){const a="__tcfapi";function o(e){const n=`${a}Return`,r="string"==typeof e.data&&e.data.indexOf(n)>=0?JSON.parse(e.data):e.data;if(r[n]&&r[n].callId){const e=r[n];void 0!==t[e.callId]&&t[e.callId](e.returnValue,e.success)}}window[a]=(e,n,i,o)=>{const s=Math.random()+"",u={[`${a}Call`]:{command:e,parameter:o,callId:s,version:n}};t[s]=i,r.postMessage(u,"*")},window.addEventListener("message",o,!1),window[a](n,e.version,i)}("addEventListener",e.frame,a):i({result:"cmpVersionNotV2",cmp:e}):i({result:"cmpNotFound"})}))}return{findCmp:n,findUsp:function(){let e,t,n=window;for(;!e;){try{if("function"==typeof n.__uspapi){t=n.__uspapi,e=n;break}}catch(e){}try{if(n.frames.__uspapiLocator){e=n;break}}catch(e){}if(n===window.top)break;n=n.parent}return{uspapiFrame:e,uspapiFunction:t}},lookupIabConsent:function(){return new Promise((e=>{try{r().then(e).catch((t=>e({result:"cmpLookupFailed"})))}catch(t){e({result:"cmpLookupFailed"})}}))},getGoogleAdType:function(e){if(!e||!e.vendor)return{type:"unknown"};const t=e.vendor.consents[755],n=e.vendor.legitimateInterests[755];if(!t)return{type:"not-allowed"};const{consents:r,legitimateInterests:i}=e.purpose;let a=Object.keys({1:!0,3:!0,4:!0}).every((e=>r[e])),o=[2,7,9,10].every((e=>r[e]||i[e]&&n));return a&&o?{type:"personalized"}:(r[1]||i[1])&&o?{type:"non-personalized"}:{type:"limited"}}}};function zM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ZM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zM(Object(n),!0).forEach((function(t){cc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var VM=function(){oc("gtag: GA not initialized",arguments)};function KM(e){return qM.apply(this,arguments)}function qM(){return qM=t(d.mark((function e(t){var i,a,o,s,u,c,l,f,p,h,m,v,g=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=t.onError,a=t.args,s="gdSDKDataLayer",u="https://www.googletagmanager.com/gtag/js?id=".concat(o="G-PLRTBHGSEL","&l=").concat(s),c=[u],e.prev=5,e.next=8,ft(c[0],"gdsdk_google_analytics",{alternates:c,error_prefix:"Blocked:",exists:function(){return n(this,g),window[s]}.bind(this)});case 8:return window[s]=window[s]||[],VM=function(){window[s].push(arguments)},VM("js",new Date),e.next=14,HM();case 14:return l=e.sent,f=l.lookupIabConsent,p=l.getGoogleAdType,e.next=19,f();case 19:h=e.sent,m=p(h.consentData),v=ZM(ZM({},v=a||{}),{},{cookie_flags:"SameSite=None;Secure",cmp:h.result,gdpr:"ok"===h.result?"object"===r(h.consentData)?!0===h.consentData.gdprApplies:"N/A":h.result,google_ads:null==m?void 0:m.type}),VM("config",o,v),e.next=31;break;case 27:e.prev=27,e.t0=e.catch(5),sc("gtag: load GA error",e.t0),i&&i(e.t0);case 31:case"end":return e.stop()}}),e,this,[[5,27]])}))),qM.apply(this,arguments)}new C("https://securepubads.g.doubleclick.net/gampad/ads?env=vp&gdfp_req=1&output=xml_vast4&unviewed_position_start=1&correlator=3792570314314042&sz=640x480&url=https%3A%2F%2Fwww.gry.pl%2Fgra%2Fkings-and-queens-match&iu=%2F1015413%2FTNL_NS-18101700058%2FTNL_T-17110972893&description_url=https%3A%2F%2Fwww.gry.pl%2Fgra%2Fkings-and-queens-match&max_ad_duration=300000&cust_params=hb_uuid%3Dcefbef16-53a9-4f49-9d3b-13e47e1066ad%26hb_cache_id%3Dundefined%26tnl_paid%3D866%26tnl_pid%3DP-17110700559%26tnl_system%3D1%26tid%3DTNL_T-17110972893%26tnl_ad_type%3Dvideo_image%26tnl_asset_id%3Daeac8455b2024f25abfa943ec96aa749%26tnl_ad_pos%3Dpreroll%26nsid%3DTNL_NS-18101700058%26tnl_pt%3D22%26hb_cache_host%3Dprebid.adnxs.com%26hb_format%3Dvideo%26hb_size%3D0x0%26hb_pb%3D1.15%26hb_adid%3D259407b5792767%26hb_bidder%3Dimprovedigital%26hb_cache_host_improv%3Dprebid.adnxs.com%26hb_uuid_improvedigit%3Dcefbef16-53a9-4f49-9d3b-13e47e1066ad%26hb_format_improvedig%3Dvideo%26hb_size_improvedigit%3D0x0%26hb_pb_improvedigital%3D1.15%26hb_adid_improvedigit%3D259407b5792767%26hb_bidder_improvedig%3Dimprovedigital%26tnl_wog%3D0%26gdGameId%3Daeac8455b2024f25abfa943ec96aa749%26tnl_content_category%3Dpuzzle%26adaptor_order%3D0%26pbct%3D2%26tnl_test%3Da%26fp%3D0.9%26fpt%3D99%26bfa%3D1%26adsense%3D0&gdpr=1&gdpr_consent=CP6lKcgP6lKcgAcABBENApEsAP_gAEPgAAYgg1NV_H__bX9j8Xr1aft0eY1H99j7rsQxBhfJk-4FyDvW_JwXn2EyNA26pqYKmRIEuzZBIQFkHIDURUigSogVrSDMYkGMgTNIJ6BkgFMRY2dYCFxvmQlDMQIY5vp9d3d52D-9_dv83dziz8FHvzU5PmckcICdA58tDfl9bRCb-5IAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHs87_XU-9_AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEQaoJIACgAHgAkABcADUAHAAUwAtgBmAD4AH4AYAAygBmgDkAHcAP8Ag4BHQCRAElAKiAXMAvQBfQDPgHUAPaAfYBEwCVQExAJnAUgApoBUgCuQFswLcAt0Bf4DBIGRgZIAywBmYDRgGrgNvAboA3wBywDtgHcgPFgfaB90EqASpAlhBLMEtIJbglxBLoEuwJfQTABMECYYExQJjgTJgmYCZwE0gJqATYgm2CbkE3gTfCCgEGoA8EADAFyAMEAtIQCAAAEAA0ADgAPAAyACwAI4AUAArgBbAEWAJcAX0A1ADVAHOAPIAfIBAwCDgEcAJ2AT-AoYCigF2AM4AbwA9AB8gENgIvAR6AkUBJYCVgEywJsAm0BS4CnwFhQLEAsUBdQC7gF5AMCgYeBiADFoGQgZGAyYBlwDPwGhANGAaYA1MBroDaAG3AN0AcEA6gB2ADuoHkgeUA96B8gHyhIG4ACAAFwAUABUADgAHgAQAAwgBkAGoAPAAiABMACqAG8APQAhIBDAESAI4ASwAmgBhgDLAGyAO-AewB8QD7AP0AgEBFwEYAI0AUEAqABVwC5gGKANoAbgA4gCRAE7AKHAUeApEBbAC5AF3gLzAYMAw0BkgDJwGcwNYA1kBuoDkwHLgPHDAUAAAgAGAAcABQAEUAJwAsABhADwAPYAhACIAEcAJgAVAArwBbAFyAOYA8ACGAESAIsAS4ApABWgDOAGpANkA4ABxgDnAHkAPwAgABGACTAE6AKKAUuArwCvgF2AL8AZwA2wBvADjgHNAOoAdkA9QB-wEJAIbARUAi8BHUCRAJFASXAloCXgE2AJ2AUJApECkgFigLRAXIAugBdwC9AGBAMPAYyAx6BkYGSAMnAZyAzwBoQDTAGtANdAboA6gB3AD3hAE8AAIABgAHAAUABFACcALAAYQA8AD2AIQAiABHACYAFcALcAcwB3AEMAIkARYAlwBSACtAGcANSAbIBwADjAHOAPIAfIA_ACAAEYAJNAToBOwCigFLgK8Ar4BdgC_AGcANQAbYA3gBxwDmgHZAPUAfIA_YCEgENgIvAR3AkQCRQElwJaAl4BNgCdgFCAKSgWIBYoC0QFyALoAXcAvQBgQDDwGMgMeAZIAycBnIDQgGmANaAa6A3QB1ADuAHvCgEYAIoAVABYAEIAJgAXAA8ACOAFIANQAcABHACiwFeAV8AuwBnADeAHNAOyAfsBHoCRQEvAJsAWKAtEBbAC7gF6AMPAZyAzwBoQDWoGuga8A94YAgABFACoALAAhABMAEcAKQAagA4ACOAFFgK8Ar4BdgDOAG8AOaAdkA_YCPQEvAJsAWiAtgBdwC9AGHgM5AZ4A0IBrQDXQHvAPiHAXoADAARAA4ADwALgAZABYADmAHwAfgBHACaAFAAKYAVwAtgBfADQAIQARYAjgBLgCkAFkAL4AYUAzQDOAGoAOcAdwA8gB8wEAAQOAg4CEAERAI4ATgAncBPgE_AKKAUsAqABWQC7AF6AM4AbwA44B0gD0AHyAQ2AiIBFQCPQEigJLASsAmIBMsCbAJtAUgApMBS4CqgFiALUAWzAugC6gF3AL6AYFAxADEwGLAMhAZNAy4DLwGfgNCAaNA0wDTQGpwNdA2ABtADbgHHgOWAc-A7AB3EDyQPKAekA94B8QD5QH2gPxHQRQAFwAUABUADgAIAAXQAwADUAHgARAAmABVgC4ALoAYgAzABvAD1AIYAiQBLACaAFGAMMAZQA0QBsgDvAHtAPsA_QB_wEWARgAoIBVwCxAFzALyAYoA2gBuADiAHUAReAkQBMgCdgFDgKPAU0AsUBbAC4AFyALtAXeAvMBgwDDQGPAMkAZOAyoBlgDOQGiANVAawA3UBxYDkwHLgPHAfWQAXAAIAAyACwAJoAXwA0ACkAFlALkAvgBnADUAHOARwAnABPoChgKKAUsArIBYgC0gF2AN4Ac0A7IB6AEewJsAm0BSYCxAFtALuAXkAwIBiUDPAM_AaEA1MBroDYAG3AOfAdGA7CB5IHlAPeAfEQgPAALAAoAC4AGIATAAqgBcADEAG8APQAjgB3gD_AJSAUEAq4BcwDFAG0AOoApoBYoC0QFwALkAZOAzkBogDVQHjkgF4ABgAHAAXAAyACwAHIARwAmgBUAC-AGQANoAeABCACkAFkAM6AagBqgDuAIAARyApoCoAFZALSAXYA3gB8gEVAI6AR6AkUBKwCWoE2ATaApMBVICxAF3AMWAZZAzwDPwGhANdAbAA7AB5QD3iUB0ABAACwAKAAcgBgAGIAPAAiABMACqAFwAMUAhgCJAEcAKMAbIA7wB-AFXAMUAdQBF4CRAFHgLFAWwAvMBk4DOQGsFIFwAC4AKAAqABwAEEAMAA1AB4AEQAJgAUgAqgBiADNAIYAiQBRgDKAGiANkAd8A_AD9AIsARgAoIBVwC5gF5AMUAbQA3ACLwEiAJ2AUOAsUBbAC4AFyALtAXmAw0BkgDJwGcwNYA1kBuoDkwHjlAIgAFwAMgAsAByAEcAJoAVAAvgBkADaAHgAQgAiwBHACZAFIALIAXwAwgBnQDUANUAc4A7oB8gH2AQAAjgBIgCdgFDAKXAVkBWwCxQF1AXYA14BvADtgHoAP-AjoBHoCRQElgJigTYBNoCkAFPgLEAXQAu4BeQC-gGBAMWAZMAy6BngGfgNCAaJA1IDU4GugbAA4IB0wDsAHcAPKAe8A-IB8oA.f_wACHwAAAAA&plcmt=1&vpmute=1&vpa=auto&sdkv=h.3.633.0&osd=2&frm=2&vis=1&sdr=1&hl=en&afvsz=200x200%2C250x250%2C300x250%2C336x280%2C450x50%2C468x60%2C480x70&is_amp=1&uach=WyJtYWNPUyIsIjE0LjQuMSIsImFybSIsIiIsIjEyMy4wLjYzMTIuMTIyIixudWxsLDAsbnVsbCwiNjQiLFtbIkdvb2dsZSBDaHJvbWUiLCIxMjMuMC42MzEyLjEyMiJdLFsiTm90OkEtQnJhbmQiLCI4LjAuMC4wIl0sWyJDaHJvbWl1bSIsIjEyMy4wLjYzMTIuMTIyIl1dLDBd&u_so=p&ctv=0&sdki=445&ptt=20&adk=2541783110&sdk_apis=2%2C7%2C8&omid_p=Google1%2Fh.3.633.0&sid=E657451B-8F2F-4921-A55A-21D1A6F3C39E&nel=1&eid=44777649%2C44781409%2C44785452%2C95321947%2C95322027%2C95323893%2C95324128%2C95324210%2C95326337&ref=https%3A%2F%2Fwww.gry.pl%2F&top=https%3A%2F%2Fwww.gry.pl%2F&loc=https%3A%2F%2Fhtml5.gamedistribution.com%2Faeac8455b2024f25abfa943ec96aa749%2F%3Ftimestamp%3D1713336375%26countryCode%3Dpl%26siteid%3D88%26channelid%3D1%26siteLocale%3Dpl%26locale%3Dpl%26gd_sdk_referrer_url%3Dhttps%253A%252F%252Fwww.gry.pl%252Fgra%252Fkings-and-queens-match&dlt=1713336379046&idt=2621&dt=1713336390920&scor=3473667703821297&ged=ve4_td12_tt10_pd12_la2000_er0.0.156.300_vi0.0.600.510_vp100_eb24427",!0),new C("https://securepubads.g.doubleclick.net/gampad/ads?env=vp&gdfp_req=1&output=xml_vast4&unviewed_position_start=1&correlator=2275053868608838&sz=640x480&url=https%3A%2F%2Fwww.gry.pl%2Fgra%2Fkings-and-queens-match&iu=%2F1015413%2FTNL_NS-18101700058%2FTNL_T-17110972893&description_url=https%3A%2F%2Fwww.gry.pl%2Fgra%2Fkings-and-queens-match&max_ad_duration=300000&vpa=auto&vpmute=0&plcmt=1&cust_params=tnl_paid%3D866%26tnl_pid%3DP-17110700559%26tnl_system%3D1%26tid%3DTNL_T-17110972893%26tnl_ad_type%3Dvideo_image%26tnl_asset_id%3Daeac8455b2024f25abfa943ec96aa749%26tnl_ad_pos%3Dpreroll%26nsid%3DTNL_NS-18101700058%26tnl_pt%3D22%26gd_opus%3D1%26fp%3D0.9%26gd_np%3D1%26bfa%3D1%26fpt%3D99%26tnl_wog%3D0&sdkv=h.3.633.0&osd=2&frm=0&vis=1&sdr=1&hl=en&afvsz=200x200%2C250x250%2C300x250%2C336x280%2C450x50%2C468x60%2C480x70&is_amp=0&uach=WyJtYWNPUyIsIjE0LjQuMSIsImFybSIsIiIsIjEyMy4wLjYzMTIuMTIyIixudWxsLDAsbnVsbCwiNjQiLFtbIkdvb2dsZSBDaHJvbWUiLCIxMjMuMC42MzEyLjEyMiJdLFsiTm90OkEtQnJhbmQiLCI4LjAuMC4wIl0sWyJDaHJvbWl1bSIsIjEyMy4wLjYzMTIuMTIyIl1dLDBd&u_so=p&ctv=0&gdpr=1&gdpr_consent=CP6lKcgP6lKcgAcABBENApEsAP_gAEPgAAYgg1NV_H__bX9j8Xr1aft0eY1H99j7rsQxBhfJk-4FyDvW_JwXn2EyNA26pqYKmRIEuzZBIQFkHIDURUigSogVrSDMYkGMgTNIJ6BkgFMRY2dYCFxvmQlDMQIY5vp9d3d52D-9_dv83dziz8FHvzU5PmckcICdA58tDfl9bRCb-5IAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHs87_XU-9_AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEQaoJIACgAHgAkABcADUAHAAUwAtgBmAD4AH4AYAAygBmgDkAHcAP8Ag4BHQCRAElAKiAXMAvQBfQDPgHUAPaAfYBEwCVQExAJnAUgApoBUgCuQFswLcAt0Bf4DBIGRgZIAywBmYDRgGrgNvAboA3wBywDtgHcgPFgfaB90EqASpAlhBLMEtIJbglxBLoEuwJfQTABMECYYExQJjgTJgmYCZwE0gJqATYgm2CbkE3gTfCCgEGoA8EADAFyAMEAtIQCAAAEAA0ADgAPAAyACwAI4AUAArgBbAEWAJcAX0A1ADVAHOAPIAfIBAwCDgEcAJ2AT-AoYCigF2AM4AbwA9AB8gENgIvAR6AkUBJYCVgEywJsAm0BS4CnwFhQLEAsUBdQC7gF5AMCgYeBiADFoGQgZGAyYBlwDPwGhANGAaYA1MBroDaAG3AN0AcEA6gB2ADuoHkgeUA96B8gHyhIG4ACAAFwAUABUADgAHgAQAAwgBkAGoAPAAiABMACqAG8APQAhIBDAESAI4ASwAmgBhgDLAGyAO-AewB8QD7AP0AgEBFwEYAI0AUEAqABVwC5gGKANoAbgA4gCRAE7AKHAUeApEBbAC5AF3gLzAYMAw0BkgDJwGcwNYA1kBuoDkwHLgPHDAUAAAgAGAAcABQAEUAJwAsABhADwAPYAhACIAEcAJgAVAArwBbAFyAOYA8ACGAESAIsAS4ApABWgDOAGpANkA4ABxgDnAHkAPwAgABGACTAE6AKKAUuArwCvgF2AL8AZwA2wBvADjgHNAOoAdkA9QB-wEJAIbARUAi8BHUCRAJFASXAloCXgE2AJ2AUJApECkgFigLRAXIAugBdwC9AGBAMPAYyAx6BkYGSAMnAZyAzwBoQDTAGtANdAboA6gB3AD3hAE8AAIABgAHAAUABFACcALAAYQA8AD2AIQAiABHACYAFcALcAcwB3AEMAIkARYAlwBSACtAGcANSAbIBwADjAHOAPIAfIA_ACAAEYAJNAToBOwCigFLgK8Ar4BdgC_AGcANQAbYA3gBxwDmgHZAPUAfIA_YCEgENgIvAR3AkQCRQElwJaAl4BNgCdgFCAKSgWIBYoC0QFyALoAXcAvQBgQDDwGMgMeAZIAycBnIDQgGmANaAa6A3QB1ADuAHvCgEYAIoAVABYAEIAJgAXAA8ACOAFIANQAcABHACiwFeAV8AuwBnADeAHNAOyAfsBHoCRQEvAJsAWKAtEBbAC7gF6AMPAZyAzwBoQDWoGuga8A94YAgABFACoALAAhABMAEcAKQAagA4ACOAFFgK8Ar4BdgDOAG8AOaAdkA_YCPQEvAJsAWiAtgBdwC9AGHgM5AZ4A0IBrQDXQHvAPiHAXoADAARAA4ADwALgAZABYADmAHwAfgBHACaAFAAKYAVwAtgBfADQAIQARYAjgBLgCkAFkAL4AYUAzQDOAGoAOcAdwA8gB8wEAAQOAg4CEAERAI4ATgAncBPgE_AKKAUsAqABWQC7AF6AM4AbwA44B0gD0AHyAQ2AiIBFQCPQEigJLASsAmIBMsCbAJtAUgApMBS4CqgFiALUAWzAugC6gF3AL6AYFAxADEwGLAMhAZNAy4DLwGfgNCAaNA0wDTQGpwNdA2ABtADbgHHgOWAc-A7AB3EDyQPKAekA94B8QD5QH2gPxHQRQAFwAUABUADgAIAAXQAwADUAHgARAAmABVgC4ALoAYgAzABvAD1AIYAiQBLACaAFGAMMAZQA0QBsgDvAHtAPsA_QB_wEWARgAoIBVwCxAFzALyAYoA2gBuADiAHUAReAkQBMgCdgFDgKPAU0AsUBbAC4AFyALtAXeAvMBgwDDQGPAMkAZOAyoBlgDOQGiANVAawA3UBxYDkwHLgPHAfWQAXAAIAAyACwAJoAXwA0ACkAFlALkAvgBnADUAHOARwAnABPoChgKKAUsArIBYgC0gF2AN4Ac0A7IB6AEewJsAm0BSYCxAFtALuAXkAwIBiUDPAM_AaEA1MBroDYAG3AOfAdGA7CB5IHlAPeAfEQgPAALAAoAC4AGIATAAqgBcADEAG8APQAjgB3gD_AJSAUEAq4BcwDFAG0AOoApoBYoC0QFwALkAZOAzkBogDVQHjkgF4ABgAHAAXAAyACwAHIARwAmgBUAC-AGQANoAeABCACkAFkAM6AagBqgDuAIAARyApoCoAFZALSAXYA3gB8gEVAI6AR6AkUBKwCWoE2ATaApMBVICxAF3AMWAZZAzwDPwGhANdAbAA7AB5QD3iUB0ABAACwAKAAcgBgAGIAPAAiABMACqAFwAMUAhgCJAEcAKMAbIA7wB-AFXAMUAdQBF4CRAFHgLFAWwAvMBk4DOQGsFIFwAC4AKAAqABwAEEAMAA1AB4AEQAJgAUgAqgBiADNAIYAiQBRgDKAGiANkAd8A_AD9AIsARgAoIBVwC5gF5AMUAbQA3ACLwEiAJ2AUOAsUBbAC4AFyALtAXmAw0BkgDJwGcwNYA1kBuoDkwHjlAIgAFwAMgAsAByAEcAJoAVAAvgBkADaAHgAQgAiwBHACZAFIALIAXwAwgBnQDUANUAc4A7oB8gH2AQAAjgBIgCdgFDAKXAVkBWwCxQF1AXYA14BvADtgHoAP-AjoBHoCRQElgJigTYBNoCkAFPgLEAXQAu4BeQC-gGBAMWAZMAy6BngGfgNCAaJA1IDU4GugbAA4IB0wDsAHcAPKAe8A-IB8oA.f_wACHwAAAAA&sdki=445&ptt=20&adk=1748861338&sdk_apis=2%2C7%2C8&omid_p=Google1%2Fh.3.633.0&media_url=blob%3Ahttps%253a%2F%2Fwww.gry.pl%2Ffa4fae4b-f435-43b4-9cee-af65696fe59e&sid=D3F4C4E1-4002-4BEE-A1F2-2638CD3B9197&a3p=EloKDWNyd2RjbnRybC5uZXQSQGE0MmZkMWJkNGI5MjgyOTY5NzUxNDUyYzVlNmUxNmQ1MzkzODYxY2E5Y2U2MGUzNjk3Y2ZlNTExMTQxYjFhZjgYucX8se4xSAASxgEKCHJ0YmhvdXNlEqwBWVNmZ3hFVno0OXBMOFI2c3ltSWtSdUFNdFg4d2Y0clBkdVMwTlVuLzZpUnhJZWh0cnRjVUtLSjFraHJDQWZERmp1N1pDNHJEc1lxMkduKzJFTFMxRmgzWlEzTUxaK0owbXZoTDR4UFlNc2JUbmlGNkczTWRaZjZQK3hEVVkwTU1FUlpkZzlKMjArcjlQNUtQOFBmWVhMaEkwRitGMUNhYUNwQS9aRVNNMVNnPRjBxfyx7jFIAFICCGoSGQoKdWlkYXBpLmNvbRjDz9ay7jFIAFICCGQSPgoFb3BlbngSLGV5SnBJam9pZEZoNU5XbDNSakZUT0ZjNVoxTlZRbFl5YWtRemR6MDlJbjA9GJ3I_LHuMUgA&nel=1&eid=44776494%2C44777649%2C44781409%2C95321947%2C95322027%2C95323893%2C95324128%2C95324210%2C95326337&top=https%3A%2F%2Fwww.gry.pl%2Fgra%2Fkings-and-queens-match&loc=https%3A%2F%2Fwww.gry.pl%2Fgra%2Fkings-and-queens-match&dt=1713336184147&cookie=ID%3Da17ef48e823e6627%3AT%3D1709727355%3ART%3D1713335981%3AS%3DALNI_MY20KDMmAY5MP3sMYIZndoHFyvxhg&gpic=UID%3D00000d6b0028013d%3AT%3D1709727355%3ART%3D1713335981%3AS%3DALNI_MZ7af9EvfEMcTpwOjK9LSfd-RfFCQ&scor=3968881391553945&ged=ve4_td21_tt0_pd21_la21000_er271.162.427.462_vi0.0.873.1064_vp100_eb24171",!0);var WM,YM=function(e){var t=this,r=e.handler,i=e.timeout,a=e.interval,o=r||function(){return n(this,t),!0}.bind(this),s=i||1e3,u=a||10;return new Promise(function(e,i){var a=this;if(n(this,t),r())e(!0);else{var c=!1,d=setInterval(function(){n(this,a);try{o()&&(clearInterval(d),c=!0,e(!0))}catch(t){clearInterval(d),e(!1)}}.bind(this),u);setTimeout(function(){n(this,a),clearInterval(d),c||e(!1)}.bind(this),s)}}.bind(this))},QM=function(){var e=t(d.mark((function e(t){var r,i,a,o,s,u=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.topic,i=t.args,e.next=3,oI();case 3:if(a=e.sent,o=a.console_logs,s=o&&o.allowed.some(function(e){return n(this,u),e===r}.bind(this)),s){e.next=8;break}return e.abrupt("return");case 8:console.log({topic:r,args:i});case 9:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}();function JM(){return XM.apply(this,arguments)}function XM(){return XM=t(d.mark((function e(){var t,n;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!WM){e.next=2;break}return e.abrupt("return",WM);case 2:return e.next=4,HM();case 4:return t=e.sent,n=t.lookupIabConsent,t.getGoogleAdType,e.next=9,n();case 9:return WM=e.sent,e.next=12,QM({topic:"cmp-decoded",args:{key:"[consent-check] cmp-decoded",cmp:WM}});case 12:return e.abrupt("return",WM);case 13:case"end":return e.stop()}}),e)}))),XM.apply(this,arguments)}function eB(){return tB.apply(this,arguments)}function tB(){return tB=t(d.mark((function e(){var t,r,i,a,o,s,u,c,l,f,p,h,m,v=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,JM();case 2:if(a=e.sent,(o=(null==a?void 0:a.consentData)||{}).gdprApplies){e.next=7;break}return oc("[consent-check] gdprApplies=false"),e.abrupt("return",!1);case 7:return s=(null===(t=o.purpose)||void 0===t?void 0:t.consents)||{},u=(null===(r=o.vendor)||void 0===r?void 0:r.consents)||{},c=(null===(i=o.publisher)||void 0===i?void 0:i.consents)||{},l=function(e){return n(this,v),0===Object.keys(e).length}.bind(this),f=l(s),p=l(u),h=l(c),oc("[consent-check]",{fullyRejected:m=f&&p&&h,emptyPurpose:f,emptyVendor:p,emptyPublisher:h}),e.abrupt("return",m);case 17:case"end":return e.stop()}}),e,this)}))),tB.apply(this,arguments)}function nB(){return rB.apply(this,arguments)}function rB(){return rB=t(d.mark((function e(){var t,n,r,i,a;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,JM();case 2:if(i=e.sent,(a=(null==i?void 0:i.consentData)||{}).gdprApplies){e.next=6;break}return e.abrupt("return",!1);case 6:return null===(t=a.purpose)||void 0===t||t.consents,null===(n=a.vendor)||void 0===n||n.consents,null===(r=a.publisher)||void 0===r||r.consents,e.abrupt("return",!1);case 11:case"end":return e.stop()}}),e)}))),rB.apply(this,arguments)}function iB(){return aB.apply(this,arguments)}function aB(){return(aB=t(d.mark((function e(){var t,n,r,i;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,oI();case 3:if(t=e.sent,null!=(n=t.disable_ads_by_cmp)&&n.enabled){e.next=8;break}return oc("[consent-check] returned by no rule",n),e.abrupt("return",!1);case 8:if(r="all-rejected"===(null==n?void 0:n.mode),e.t0=r,!e.t0){e.next=14;break}return e.next=13,eB();case 13:e.t0=e.sent;case 14:if(!e.t0){e.next=17;break}return oc("[consent-check] fully rejected"),e.abrupt("return",!0);case 17:if(i="some-rejected"===(null==n?void 0:n.mode),e.t1=i,!e.t1){e.next=23;break}return e.next=22,nB();case 22:e.t1=e.sent;case 23:if(!e.t1){e.next=26;break}return oc("[consent-check] partially rejected"),e.abrupt("return",!0);case 26:e.next=31;break;case 28:e.prev=28,e.t2=e.catch(0),sc("[consent-check] error on checkIfAdsDisabledByConsent",e.t2.message);case 31:return e.abrupt("return",!1);case 32:case"end":return e.stop()}}),e,null,[[0,28]])})))).apply(this,arguments)}function oB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oB(Object(n),!0).forEach((function(t){cc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oB(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var uB=EL(),cB=null,dB=null,lB=function(){function e(t){var r,i,a,o,s=this;if(O(this,e),cc(this,"_whichFrameV2",function(){var e=this;n(this,s);var t=C(window.location.href,!0),r=t.host,i=t.query,a="html5.gamedistribution.com"!==r,o=function(t){return n(this,e),"revision.gamedistribution.com"===t||"uncached-html5.gamedistribution.com"===t}.bind(this),u=o(r);null!=i&&i.gd_sdk_referrer_url&&(u=o(C(i.gd_sdk_referrer_url).host));return this._isMasterGameURL()&&!(this._isTokenGameURL()||a)||u?"loader-frame":"game-frame"}.bind(this)),cB)return cB;cB=this,this.isOpusReady=!1,this.isMidrollPlusExecuted=!1,this.blockedAdsMap={},this.blockingDetectedKey="d8d9b9b63e704668a29559970c1818be",this._defaults=this._getDefaultOptions(),this._extendDefaultOptions(this._defaults,t),this._version=t.version||"0.0.0",this._bridge=this._getBridgeContext(),this._location=new cD,this._location.print();var u=this._location.get(),c=(null==u||null===(r=u.top)||void 0===r||null===(i=r.domain)||void 0===i?void 0:i.value)||(null==u||null===(a=u.partner.domain)||void 0===a?void 0:a.value),d=null==u||null===(o=u.partner.url)||void 0===o?void 0:o.value;this._parentURL=0===this._bridge.depth?encodeURIComponent(this._bridge.parentURL):this._bridge.parentURL,this._parentURL=this._parentURL||d,this._parentDomain=this._bridge.parentDomain,this._topDomain=this._bridge.topDomain,this._topDomain=this._topDomain||c,ac("locs found:",this._topDomain,this._parentURL),this._isFullScreen=!1,this._giftCount={preroll:0,midroll:0,rewarded:0},this._mplus_count=0,YI({whichFrame:this._whichFrameV2(),options:{showAd:this.showAd.bind(this),onEvent:this._onEvent.bind(this)}}),this._setConsoleBanner(),this._initializeMessageRouter(),this._checkConsole(),this._subscribeToEvents(),this.sdkReady=new Promise(this._initializeSDKWithGameData.bind(this)),this.sdkReady.then(function(e){n(this,s),this._sdk_ready=!0}.bind(this)).catch(function(e){n(this,s),this._sdk_ready=!1}.bind(this)).finally(function(){var e,t,r,i,a=this;if((n(this,s),null===(e=this._gameData)||void 0===e||null===(t=e.directTokenUse)||void 0===t?void 0:t.enabled)&&this._blockDirectTokenURLEmbedding().blocked)return;this.dumper=new zP({msgrt:this.msgrt,gameData:this._gameData,parentDomain:this._parentDomain,parentURL:this._parentURL,topDomain:this._parentURL}),this.dumper,this._initGameSessionTracking(),this._sendLoadedEvent(2),!0===(null===(r=this._gameData.lp)||void 0===r?void 0:r.load)&&this._sendLoadedEvent(1),this._sendLoaderDataEvent(),this._checkSplashAndPromoScreens(),this._initBlockingExternals(),this._initUnityHandler(),this._checkFullscreen(),null!==(i=this._gameData.evnts)&&void 0!==i&&i.enabled&&this._isLoaderGameURL()&&(!function(e){var t=this;if(!window[DL]){var r=CL("https://static.gamedistribution.com/message/index.html",DL);if(document.body.appendChild(r),window!==window.top){var i=[OL(e,"TokenGenerated"),OL(e,"PageLoaded")];r.onload=function(){var e=this;return n(this,t),i.forEach(function(t){return n(this,e),ML(t)}.bind(this))}.bind(this),TL(e)}window.addEventListener("message",function(e){return n(this,t),PL(e)}.bind(this),!1)}}(this._gameData),this._gameData.evnts.gameId===this.options.gameId&&setInterval(function(){n(this,a),this._send_gametag_data("heartbeat")}.bind(this),1e3*this._gameData.evnts.heartbeatDuration)),FM.init(this),this._send_gametag_data("sdk_init"),this.fixScore(),this._stableAdFlowForTest(),lR({onEvent:function(e){n(this,a);var t=e.name,r=e.data;(this._onEvent({name:t,message:"In Game Store : ".concat(t),status:"success",data:r,isStoreEvent:!0}),"STORE_UI_VISIBILITY_CHANGED"===t)&&(r.visible?this.onPauseGame("In game store opened","success"):this.onResumeGame("In game store closed","success"))}.bind(this)})}.bind(this)),this._registerSGBridge(),ac("which-frame",this._whichFrame()),this._loadLocus()}var r,i,a,o,s,u,c,f,p,h,m,v,g,A,b,y,_,w,x,k,E,S;return L(e,[{key:"_stableAdFlowForTest",value:function(){try{(gt.available&>.getBoolean("gd_debug_ex")&>.getBoolean("gd_tag")||NP().useTestAds)&&(this._gameData.adflw.adapters={default:["ima"],preroll:["ima"],midroll:["ima"],rewarded:["ima"]},console.log(this._gameData))}catch(e){console.log(e.message)}}},{key:"_getVisitorId",value:(S=t(d.mark((function e(){var t,r,i,a,o,s=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,YM({handler:function(){return n(this,s),!!dB}.bind(this),timeout:1e3,interval:10});case 2:return a=e.sent,o=a?null===(t=dB)||void 0===t||null===(r=t.visitor)||void 0===r||null===(i=r.visitorData)||void 0===i?void 0:i.visitorId:"noVisitorId",e.abrupt("return",o);case 5:case"end":return e.stop()}}),e,this)}))),function(){return S.apply(this,arguments)})},{key:"_initGameSessionTracking",value:(E=t(d.mark((function e(){var t,r,i,a,o,s,u,c,l,f,p,h,m,v,g,A,b,y,_,w,x,k,E,S,D,I,R,C,O,T,P,L=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===(t=this._gameData)||void 0===t||null===(r=t.gs_trc)||void 0===r?void 0:r.enabled){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,this._getVisitorId();case 5:p=e.sent,h=this._gameData,m=h.category,v=h.dname,g=h.pname,A=h.gameId,b=h.slug,y=h.title,_=h.ctry,w=h.failed,x=this._topDomain||this._parentDomain,k=new cD,E=k.get(),S=this.msgrt._ua,D=document.referrer,I=this.msgrt._layout,R=nc.version,C=(null===(i=this._gameData)||void 0===i||null===(a=i.hwei)||void 0===a?void 0:a.enabled)&&(null===(o=this._gameData)||void 0===o||null===(s=o.hwei)||void 0===s?void 0:s.gs.enabled),O=(null===(u=this._gameData)||void 0===u||null===(c=u.gft)||void 0===c?void 0:c.midroll.enabled)||!1,T=(null===(l=this._gameData)||void 0===l||null===(f=l.midroll_plus)||void 0===f?void 0:f.enabled)||!1,P={args:{rfr:D,category:m,dname:v,pname:g,gameId:A,slug:b,title:y,ctry:_,domain:x,loc:E,ua:S,layout:I,version:R,visitorId:p,hasGft:O,hasMp:T,failed:w,isHwp:C},onError:function(e){n(this,L),this._sendSDKError(e)}.bind(this)},ZL(P);case 21:case"end":return e.stop()}}),e,this)}))),function(){return E.apply(this,arguments)})},{key:"_initUnityHandler",value:function(){var e=this;window.addEventListener("DOMNodeInserted",function(){if(n(this,e),this._gameData.block_exts&&this._removeExternalsInHtml({enabled:!1}),document.getElementsByClassName("webgl-content")[0]){var t=document.getElementsByClassName("webgl-content")[0].getElementsByClassName("footer")[0];t&&t.setAttribute("style","display:none")}}.bind(this))}},{key:"_send_gametag_data",value:(k=t(d.mark((function e(t){var n;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this._getGdModeIfExist()&&(n=lt()||"web",this.adInstance._send("tg.created",{gmid:this.options.gameId,dvc:n,qint:t}));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return k.apply(this,arguments)})},{key:"_loadCMP",value:(x=t(d.mark((function e(){var t,n,r,i,a,o;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._isMasterGameURL()){e.next=12;break}if(r=new cD,0!==(null==(i=r.get("depth"))?void 0:i.value)||null===(t=this._gameData)||void 0===t||null===(n=t.cmp)||void 0===n||!n.enabled){e.next=12;break}if(null===(a=this._gameData)||void 0===a||null===(o=a.cmp)||void 0===o||!o.checkDepthOnly){e.next=9;break}return e.next=7,lL();case 7:e.next=12;break;case 9:if("html5.gamedistribution.com"!==this._topDomain){e.next=12;break}return e.next=12,lL();case 12:case"end":return e.stop()}}),e,this)}))),function(){return x.apply(this,arguments)})},{key:"testConsent",value:function(){try{nL();t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,rL({});case 2:e.sent;case 3:case"end":return e.stop()}}),e)})))()}catch(e){console.log("find CMP error",e)}}},{key:"_sendLoaderDataEvent",value:function(){try{this.options.onLoaderEvent&&this.options.onLoaderEvent({name:"LOADER_DATA",message:{game:this._gameData,bridge:this._bridge},status:this._sdk_ready?"success":"error"})}catch(e){}}},{key:"_registerSGBridge",value:function(){var e=this;fL.on("splash-hidden",function(t){n(this,e),this._hideCMPButton()}.bind(this))}},{key:"_hideCMPButton",value:function(){var e=document.getElementById("ot-sdk-btn-floating");e&&(e.style.display="none")}},{key:"_sendLoadedEvent",value:function(e){if(this._isLoaded||(this._isLoaded={}),!this._isLoaded[e]){this._isLoaded[e]=!0;var t="loader-frame"===this._whichFrame()&&(this._isHostHTML5Domain()||this._isExternalHoster());C(location.href,!0);if(this._whichFrame(),this._isMasterGameURL(),this._isExtHostedGameURL(),this._isTokenGameURL(),this._isHostHTML5Domain(),this._isExternalHoster(),location.href,document.referrer,t)try{ac("which-frame, sending tunnel event",this._whichFrame()),this._sendTunnlEvent(e),this.msgrt.send("loaded",{message:this._hasBlocker?"Has Blocker":"No Blocker"})}catch(e){}}}},{key:"_sendGamedockGamePlay",value:function(){var e=this._isTokenGameURL();if(!(this._gameData.loader.enabled&&e||this._gameDockGamePlaySent))try{this._sendGamedockEvent("gameplay"),this._gameDockGamePlaySent=!0}catch(e){}}},{key:"_safeInit",value:function(){this._checkUserDeclinedTracking(),this._checkWhitelabelPartner();var e=this._gameData.diagnostic;void 0!==e&&void 0!==e.close_ga&&!1!==e.close_ga||this._loadGoogleAnalytics(),void 0!==e&&void 0!==e.close_gamedock&&!1!==e.close_gamedock||!this._bridge.isCoreSDKMode&&!this._bridge.noGamedockSDK&&this._loadGamedockTracker(),void 0!==e&&void 0!==e.close_minijuegos&&!1!==e.close_minijuegos||(console.log("noMinijuegosSDK",!this._bridge.isCoreSDKMode,!this._bridge.noMinijuegosSDK,document.location.search.indexOf("mp_game_id")>=0),!this._bridge.isCoreSDKMode&&!this._bridge.noMinijuegosSDK&&document.location.search.indexOf("mp_game_id")>=0&&this._loadMiniJuegosGratisTracker())}},{key:"_initializeSDKWithGameData",value:(w=t(d.mark((function e(t,r){var i,a,o,s,u,c,l=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this._getGameData();case 3:return this._gameData=e.sent,e.next=6,this._loadCMP();case 6:return this._bridge.isCoreSDKMode=(null===(i=this._gameData.disableAds)||void 0===i?void 0:i.default)||!1,this._safeInit(),this._checkGameId(),this._checkGameDeleted(),this._checkBlocking(),this._changeMidrollInDebugMode(),s=void 0===this._gameData.diagnostic||void 0===(null===(a=this._gameData.diagnostic)||void 0===a?void 0:a.close_ads)||!1===(null===(o=this._gameData.diagnostic)||void 0===o?void 0:o.close_ads),e.next=15,iB();case 15:return u=e.sent,oc("[ad-system-init] allowed",{adSystemInitAllowed:c=s&&!u,notDisabledByModuleClose:s,disabledByConsent:u}),c&&(this.videoAdReady=this._initializeVideoAd().then(function(){n(this,l),(this._isMasterGameURL()||this._isExtHostedGameURL())&&(this.msgrt.send("adblocker.flw",{message:"ok"}),this.msgrt.send("adblocker.adapters",{message:"none"})),this._checkAdBlockerRemoval()}.bind(this)).catch(function(e){n(this,l);var t="".concat(e).startsWith("Error: Blocked:");oc("gd-adflow adsBlocked",t,e);var r=this.get_ad_system_init_result(),i=r.ima,a=r.afg;if(this.adsBlocked=!i&&!a,this._isMasterGameURL()||this._isExtHostedGameURL()){this.msgrt.send("adblocker.flw",{message:"".concat(this.adsBlocked?"blocked":"ok")});var o=i||a?i?a?"none":"adsense":"ima":"all";this.msgrt.send("adblocker.adapters",{message:"".concat(o)})}this._sendSDKError(e),this._checkAdBlocker(),console.error(e.message||e)}.bind(this))),e.next=21,cM();case 21:t(this._gameData),e.next=29;break;case 24:e.prev=24,e.t0=e.catch(0),this._sendSDKError(e.t0),this.onResumeGame(e.t0.message,"warning"),r(e.t0);case 29:case"end":return e.stop()}}),e,this,[[0,24]])}))),function(e,t){return w.apply(this,arguments)})},{key:"_getDefaultOptions",value:function(){return{debug:!1,testing:!1,gameId:"4f3d7d38d24b740c95da2b03dc3a2333",prefix:"gdsdk__",onEvent:function(e){},onLoaderEvent:function(e){},flashSettings:{adContainerId:"",splashContainerId:""},advertisementSettings:{},resumeGame:function(){},pauseGame:function(){},onInit:function(e){},onError:function(e){},loader:{}}}},{key:"_checkAdBlockerRemoval",value:function(){gt.getBoolean(this.blockingDetectedKey)&&(gt.set(this.blockingDetectedKey,!1),this.send_atom_event("ad-blocker-removed"))}},{key:"_checkAdBlocker",value:(_=t(d.mark((function e(){var t,n,r,i,a;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,t=this.get_ad_system_init_result(),n=t.ima,r=t.afg,n&&r){e.next=12;break}if(gt.set(this.blockingDetectedKey,!0),null===(i=this._gameData.rmblck)||void 0===i||!i.enabled){e.next=12;break}if(this.adBlockerPage){e.next=12;break}return e.next=9,$M();case 9:a=e.sent,this.adBlockerPage=new a(this._gameData),this.adBlockerPage.add();case 12:e.next=17;break;case 14:e.prev=14,e.t0=e.catch(0),console.log(e.t0.message);case 17:case"end":return e.stop()}}),e,this,[[0,14]])}))),function(){return _.apply(this,arguments)})},{key:"_extendDefaultOptions",value:function(e,t){var n=B(e);this.options=t?it(n,t):n,this.options.gameId=this.options.gameId.trim()}},{key:"_setConsoleBanner",value:function(){if(!this._bridge.noConsoleBanner){var e=nc.version,t=console.log("%c %c %c GameDistribution.com HTML5 SDK | Version: "+e+" %c %c %c","background: #9854d8","background: #6c2ca7","color: #fff; background: #450f78;","background: #6c2ca7","background: #9854d8","background: #ffffff");console.log.apply(console,t)}}},{key:"_shouldSendTunnlEvent",value:function(e){return this.tunnlEventCounts||(this.tunnlEventCounts={}),this.tunnlEventCounts[e]||(this.tunnlEventCounts[e]=0),this.tunnlEventCounts[e]++,1===this.tunnlEventCounts[e]}},{key:"_sendTunnlEvent",value:function(e){var t=this;if(this._shouldSendTunnlEvent(e)){void 0!==this._topDomain&&"undefined"!==this._topDomain||(this._topDomain=void 0);var r={page_url:this._topDomain||this._parentDomain,game_id:this.options.gameId,eventtype:e,ts:Date.now()};fetch("https://hlana.gamedistribution.com/event?".concat(l.stringify(r))).catch(function(i){n(this,t),this._sendHLAnalyicsLog({query:sB(sB({},r),{},{error:null==i?void 0:i.message}),eventType:-e})}.bind(this)),this._sendHLAnalyicsLog({query:r,eventType:e}),this.adInstance._send_atom_event("hl.config",r),this._send_gametag_data("sdk_gameplay")}}},{key:"_sendHLAnalyicsLog",value:function(e){var t,n=e.query,r=e.eventType;if(1===r?t="hl.gameplay":2===r?t="hl.gameload":3===r?t="hl.adblock":-1===r?t="hl.gameplay.error":-2===r?t="hl.gameload.error":-3===r&&(t="hl.adblock.error"),t)try{this.dumper.send_atom_event(t,n)}catch(e){console.log("Error on sending dump!",e)}}},{key:"_sendAdRequestContext",value:function(e){this.msgrt.send("adctx",{message:e.adTag.bidder})}},{key:"_checkWhitelabelPartner",value:function(){this._whitelabelPartner=!1;var e=ut();e.hasOwnProperty("xanthophyll")&&"true"===e.xanthophyll&&(this._whitelabelPartner=!0,yt("White label publisher","".concat(this._whitelabelPartner),"success"))}},{key:"_checkRevisionOrigin",value:function(){var e=this;return[document.location.origin].concat(pR(document.location.ancestorOrigins)).find(function(t){return n(this,e),"revision.gamedistribution.com"===C(t,!0).hostname}.bind(this))}},{key:"_checkConsole",value:function(){try{if(!gt.available)return;if("developer.gamedistribution.com"===this._parentDomain||"developer.gamedistribution.com"===this._topDomain||"developer-acc.gamedistribution.com"===this._parentDomain||"developer-acc.gamedistribution.com"===this._topDomain)this._checkRevisionOrigin()&&(gt.set("gd_debug_ex",!0),gt.set("gd_disable_midroll_timer",!0),gt.set("gd_tag",!0));else"localhost:3000"===this._parentDomain&&(gt.set("gd_debug_ex",!0),gt.set("gd_disable_midroll_timer",!0));gt.getBoolean("gd_debug_ex")&&(this.openConsole(),this.msgrt.send("dev.console",{message:this._parentDomain}))}catch(e){}}},{key:"_checkUserDeclinedTracking",value:function(){this._userDeclinedTracking=this._bridge.isCoreSDKMode||document.location.search.indexOf("gdpr-tracking=0")>=0||document.cookie.indexOf("ogdpr_tracking=0")>=0}},{key:"_initializeMessageRouter",value:function(){this.msgrt=new Rt({gameId:this.options.gameId,hours:(new Date).getHours(),topDomain:this._topDomain,domain:this._parentDomain,referrer:this._parentURL,depth:pt(),version:nc.version,tracking:this._userDeclinedTracking,whitelabel:this._whitelabelPartner,platform:lt(),byloader:this._bridge.isTokenGameURL,isTokenGameURL:this._bridge.isTokenGameURL,isMasterGameURL:this._bridge.isMasterGameURL,isExtHostedGameURL:this._bridge.isExtHostedGameURL,byloaderVersion:this._bridge.version})}},{key:"_loadGamedockTracker",value:function(){var e=this;try{var t=[this._gameData.gmky.url];ft(t[0],"GamedockSDK",{alternates:t}).then(function(){var t,r;n(this,e),dB=this._initGamedockTracker(window.GamedockSDK),this._sendGamedockEvent("pageview"),null!==(t=this._gameData.diagnostic)&&void 0!==t&&null!==(r=t.gameDock)&&void 0!==r&&r.adViewEvent&&dB.tracking.enableHeartBeatForPage({pageId:this.options.gameId,pageType:"game"},this._gameData.diagnostic.gameDock.heartbeatConfig),aL.track(dB,this._gameData)}.bind(this)).catch(function(t){n(this,e),this._sendSDKError(t)}.bind(this))}catch(e){}}},{key:"_initGamedockTracker",value:function(e){if(!this._bridge.isCoreSDKMode)return e.initialize("gd",this._parentDomain)}},{key:"_sendGamedockEvent",value:function(e){var t,n;null===(t=dB)||void 0===t||null===(n=t.tracking)||void 0===n||n.trackEvent(e,{pageId:this.options.gameId,pageType:"game"})}},{key:"_loadMiniJuegosGratisTracker",value:function(){var e=this;window.mpConfig={game:this.options.gameId,partner:"game-distribution"};var t=["https://ext.minijuegosgratis.com/external-host/main.js"];console.log("noMinijuegosSDK loading"),ft(t[0],"MinijuegosSDK",{alternates:t}).catch(function(t){n(this,e),this._sendSDKError(t)}.bind(this))}},{key:"_loadLocus",value:function(){var e=t(d.mark((function e(){var t,r=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,hI();case 2:if(e.sent){e.next=6;break}return console.log("locus-disabled"),e.abrupt("return");case 6:t=["https://pm.azerioncircle.com/p/locus/"],window.gdlocus=window.gdlocus||{cmd:[]},window.gdlocus.cmd.push(function(){n(this,r),this.isOpusReady=!0,window.gdlocus.iservice.register({method:"muteAdFlow",handler:this._muteFlowSound.bind(this)}),window.gdlocus.iservice.register({method:"terminateAdFlow",handler:this._terminateFlow.bind(this)})}.bind(this)),ft(t[0],"locus",{alternates:t}).catch(function(e){n(this,r),this._sendSDKError(e)}.bind(this)).then(function(){n(this,r)}.bind(this));case 10:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"_muteFlowSound",value:(y=t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._adFlow){e.next=2;break}return e.abrupt("return");case 2:this._adFlow.mute();case 3:case"end":return e.stop()}}),e,this)}))),function(){return y.apply(this,arguments)})},{key:"_terminateFlow",value:(b=t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._adFlow){e.next=2;break}return e.abrupt("return");case 2:this._adFlow.terminate();case 3:case"end":return e.stop()}}),e,this)}))),function(){return b.apply(this,arguments)})},{key:"_loadGoogleAnalytics",value:function(){var e=this;if(!this._bridge.isCoreSDKMode){var t=this._gameData,r=t.gameId,i=t.slug,a=t.title,o=new cD,s={provider:"gd-sdk",page_depth:o.get("depth.value"),partner_domain_from:o.get("partner.domain.from"),top_domain_from:o.get("top.domain.from"),top_domain:this._topDomain,parent_domain:this._parentDomain,parent_url:this._parentURL,game_id:r,game_slug:i,game_title:a};KM({onError:function(t){n(this,e),this._sendSDKError(t)}.bind(this),args:s})}}},{key:"_getCleanUrl",value:function(e){var t=e;try{var n=new C(e,!0);t="".concat(n.protocol,"//").concat(n.hostname,"/").concat(n.pathname)}catch(e){}return t}},{key:"_subscribeToEvents",value:function(){var e=this;this.eventBus=new Dt,_t.forEach(function(t){var r=this;return n(this,e),this.eventBus.subscribe(t,function(e){return n(this,r),this._onEvent(e)}.bind(this),"sdk")}.bind(this)),wt.forEach(function(t){var r=this;return n(this,e),this.eventBus.subscribe(t,function(e){return n(this,r),this._onEvent(e)}.bind(this),"ima")}.bind(this)),this.eventBus.subscribe("COMPLETE",function(){n(this,e);var t=this._getDeveloperDomains(),r=t.developerDomain,i=t.gameApiDomain;if(r){fetch("https://".concat(i,"/game/v2/hasapi/").concat(this.options.gameId,"?timestamp=").concat((new Date).valueOf()));try{var a=JSON.stringify({type:"GD_SDK_IMPLEMENTED",gameID:this.options.gameId});window.location!==window.top.location?window.top.postMessage(a,"*"):null!==window.opener&&window.opener.location!==window.location&&window.opener.postMessage(a,"*")}catch(e){}}FP()}.bind(this),"ima"),this.eventBus.subscribe("CONTENT_PAUSE_REQUESTED",function(){return n(this,e),this.onPauseGame("New advertisements requested and loaded","success")}.bind(this),"ima"),this.eventBus.subscribe("IMPRESSION",function(t){var r,i;n(this,e),this.msgrt.send("ad.impression"),BP(),null!==(r=this._gameData.diagnostic)&&void 0!==r&&null!==(i=r.gameDock)&&void 0!==i&&i.adViewEvent&&aL.track(dB,this._gameData)}.bind(this),"ima"),this.eventBus.subscribe("AD_ERROR",function(t){n(this,e),this.msgrt.send("ad.error",{message:t.message,details:t.details})}.bind(this),"ima"),this.eventBus.subscribe("AD_SDK_REQUEST",function(t){n(this,e),this._sendAdRequestContext(t.message)}.bind(this),"sdk"),this.eventBus.subscribe("SDK_ERROR",function(t){if(n(this,e),t.message.startsWith("Blocked:")){var r=t.message.replace("Blocked:","").trim(),i=this._getCleanUrl(r),a="Blocked: ".concat(i);if(!this._bridge.noBlockerEvent&&(this.msgrt.send("error",{message:a}),!this._hasBlocker)){this._hasBlocker=!0;this.msgrt.send("adblck.src",{message:a});var o=this.get_ad_system_init_result(),s=o.ima,u=o.afg;(!s||!u)&&this._sendTunnlEvent(3)}}else this.msgrt.send("error",{message:t.message})}.bind(this),"sdk"),this.eventBus.subscribe("AD_REQUEST_KEYS_EMPTY",function(t){n(this,e),this.msgrt.send("tunnl.keys.empty",{message:t.message,details:t.details})}.bind(this),"sdk"),this.eventBus.subscribe("AD_REQUEST_KEYS_FALLBACK",function(t){n(this,e),this.msgrt.send("tunnl.keys.fallback",{message:t.message,details:t.details})}.bind(this),"sdk"),this.eventBus.subscribe("AD_T4R",function(t){return n(this,e),this.msgrt.send("adt4r")}.bind(this),"sdk")}},{key:"_checkGameId",value:function(){this.options.gameId===this._defaults.gameId&&this._sendSDKError("Please check if your GAME ID is correct. Otherwise, no revenue will be reported.")}},{key:"_getDefaultGameData",value:function(){return{gameId:this.options.gameId,disableAds:{},preroll:!0,midroll:12e4,rewardedAds:!1,title:"",tags:[],category:"",assets:[],dmain:!0,sdk:{},loader:{},splash:{},promo:{},dAds:{},pAds:{},mAds:{},rAds:{}}}},{key:"_getGameDataUrl",value:function(){var e=void 0!==this._topDomain&&"undefined"!==this._topDomain?this._topDomain:this._parentDomain,t=TD().config;return"https://".concat(t.gameAPI,"/game/v4/get/").concat(this.options.gameId.replace(/-/g,""),"/?domain=").concat(e,"&v=").concat(nc.version,"&localTime=").concat((new Date).getHours())}},{key:"_checkBlocking",value:(A=t(d.mark((function e(){var t,n,r;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=!0,n=this._gameData,r=this._parentDomain.indexOf("gamedistribution.com")>=0,t=(t=void 0===this._gameData.dmain||this._gameData.dmain)||r,(n.bloc_gard&&!0===n.bloc_gard.enabled||!t)&&this._redirectToBlocking(!1,!t);case 7:case"end":return e.stop()}}),e,this)}))),function(){return A.apply(this,arguments)})},{key:"_blockDirectTokenURLEmbedding",value:function(){var e,t,n=this._checkTokenGameUrl(),r=new cD,i="html5.gamedistribution.com"!==C(document.referrer).host,a=n&&!NM.SDKExistsOnUpperFrame&&r.get("depth.value")>0&&i;if(a&&(null===(e=this._gameData)||void 0===e||null===(t=e.directTokenUse)||void 0===t?void 0:t.enabled)){var o,s,u=null===(o=this._gameData)||void 0===o||null===(s=o.directTokenUse)||void 0===s?void 0:s.behavior;"to-loader"===u?this._redirectToLoaderFrame():"to-blocked-page"===u&&this._redirectToBlocking(!0)}return{blocked:a}}},{key:"_redirectToBlocking",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.msgrt.send("blocked");var i=this._gameData;setTimeout(t(d.mark((function t(){return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e){t.next=9;break}return t.prev=1,t.next=4,n.adInstance._send_atom_event("token-blocked");case 4:t.next=9;break;case 6:t.prev=6,t.t0=t.catch(1),console.log("Could not send dump.token-blocked",t.t0);case 9:window.location.href="https://html5.api.gamedistribution.com/blocked.html?".concat(l.stringify({domain:n._parentDomain,id:i.gameId,img:n._get_game_thumbnail_url(),title:i.title,unregistered:r,utm_source:n._parentDomain,utm_medium:(null==i?void 0:i.slug)||(null==i?void 0:i.title)||(null==i?void 0:i.gameId)||"unknown",utm_campaign:"block-and-redirect"}));case 10:case"end":return t.stop()}}),t,null,[[1,6]])}))),100)}},{key:"_redirectToLoaderFrame",value:function(){var e=this,n=this._gameData;setTimeout(t(d.mark((function t(){var r,i,a,o;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.adInstance._send_atom_event("loader-redirect");case 3:t.next=8;break;case 5:t.prev=5,t.t0=t.catch(0),console.log("Could not send dump.loader-redirect",t.t0);case 8:r=C(location.href,!0),i=sB(sB({},r.query),{},{rd:"1"}),a=l.stringify(i),o="https://html5.gamedistribution.com/".concat(n.gameId,"/?").concat(a),window.location.href=o;case 13:case"end":return t.stop()}}),t,null,[[0,5]])}))),100)}},{key:"_checkGameDeleted",value:function(){var e=this;6!==this._gameData.status&&4!==this._gameData.activeStatus||(console.log("%c %c %c This game was deleted, please remove it in your website... ","background: #F2181A","background: #F23818","color: #fff; background: #F23818;","background: #F55E60","background: #F55E60","background: #c4161e; color: #fff;"),setTimeout(function(){n(this,e),document.location="https://html5.api.gamedistribution.com/deleted.html"}.bind(this),100))}},{key:"_changeMidrollInDebugMode",value:function(){var e=this._gameData;NP().disableMidrolltimer?e.midroll=0:gt.available&>.getBoolean("gd_debug_ex")&&(gt.getBoolean("gd_disable_midroll_timer")?e.midroll=0:e.midroll=this._getDefaultGameData().midroll)}},{key:"_checkSplashAndPromoScreens",value:function(){var e,t,n,r;!1===(null===(e=this._gameData.loader)||void 0===e?void 0:e.mobile)&&this._getisMobile()&&(this._gameData.loader.enabled=!1);var i,a=this._gameData,o=a.gdpr&&!0===a.gdpr.consent,s=a.loader,u=null===(t=a.promo)||void 0===t?void 0:t[null===(n=a.promo)||void 0===n||null===(r=n.template)||void 0===r?void 0:r.preroll];(a.preroll||(this.adRequestTimer=Date.now()),this.options.loader.enabled)?null!=u&&u.enabled?this._createPromoBeforeSplash(a,o):s.enabled&&!0!==(null===(i=s.splash)||void 0===i?void 0:i.skip)?this._createSplash(a,o):this.onResumeGame("Skipped splash.","success"):s.enabled||this._bridge.isTokenGameURL&&this._bridge.isExtHostedGameURL||(this.options.advertisementSettings.autoplay||o?null!=u&&u.enabled?this._createPromoBeforeSplash(a,o):!1!==s.enabled&&this._createSplash(a,o):null!=u&&u.enabled&&this._createPromo(a,o))}},{key:"_initializeVideoAd",value:(g=t(d.mark((function e(){var t;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._bridge.isCoreSDKMode){e.next=2;break}return e.abrupt("return");case 2:return(t=this._gameData).sdk.enabled&&(this.options.advertisementSettings=it(this.options.advertisementSettings,t.sdk)),this.macros=new It({game:t,bridge:this._bridge}),this.adInstance=new WP(this.options.flashSettings.adContainerId,this.options.advertisementSettings,{parentURL:this._parentURL,parentDomain:this._parentDomain,topDomain:this._topDomain}),this.adInstance.gameId=t.gameId,this.adInstance.category=t.category,this.adInstance.tags=t.tags,this.adInstance.noPreroll=this._bridge.noPreroll,this.adInstance.macros=this.macros,this.adInstance.gameData=t,this.adInstance.msgrt=this.msgrt,this.adInstance.PackageJSON=nc,this.adInstance._send_atom_event("gd.location"),e.next=17,this.adInstance.start();case 17:case"end":return e.stop()}}),e,this)}))),function(){return g.apply(this,arguments)})},{key:"_sendSDKReady",value:function(){var e="Everything is ready.";this.eventBus.broadcast("SDK_READY",{message:e,status:"success"});try{this.options.onInit(e)}catch(e){yt("DEVELOPER_ERROR",e.message,"warning")}}},{key:"_sendSDKError",value:function(e){e=e.message?e:{message:e};this.eventBus.broadcast("SDK_ERROR",{message:e.message,status:"error"});try{this.options.onError(e)}catch(e){yt("DEVELOPER_ERROR",e.message,"warning")}}},{key:"IscForwardOnEvent",value:(v=t(d.mark((function e(t){var n,r,i,a,o;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=!1,e.prev=1,e.next=4,rR();case 4:if(!(r=e.sent)){e.next=14;break}return e.next=8,r.isLoader();case 8:if(o=e.sent,!((null===(i=this._gameData)||void 0===i||null===(a=i.isv_fw)||void 0===a?void 0:a.enabled)&&o&&r.onEvent)){e.next=14;break}return n=!0,r.onEvent({event:t}),e.abrupt("return",n);case 14:e.next=19;break;case 16:e.prev=16,e.t0=e.catch(1),ac("[GD-IS] error on onEvent forward",e.t0);case 19:return e.abrupt("return",n);case 20:case"end":return e.stop()}}),e,this,[[1,16]])}))),function(e){return v.apply(this,arguments)})},{key:"_onEvent",value:(m=t(d.mark((function e(t){var n,r;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.IscForwardOnEvent(t);case 2:if(!e.sent){e.next=5;break}return e.abrupt("return");case 5:if(ac("[GD-IS] onEvent executing",{event:null==t?void 0:t.name,e:t,location:window.location.href}),yt(t.name,t.message,t.status),!t.skipForward){e.next=9;break}return e.abrupt("return");case 9:oc("[developer-event]".concat(t.isStoreEvent?"[store]":""),{name:t.name,data:t.data||{},source:"core"}),null!==(n=this._gameData)&&void 0!==n&&null!==(r=n.evnts)&&void 0!==r&&r.enabled&&RL({event:t.name,game:this._gameData});try{this.options.onEvent({name:t.name,message:t.message,status:t.status,data:t.data||{},isStoreEvent:t.isStoreEvent||!1,skipForward:t.skipForward,adPosition:t.adPosition})}catch(e){yt("DEVELOPER_ERROR",e.message,"warning")}case 12:case"end":return e.stop()}}),e,this)}))),function(e){return m.apply(this,arguments)})},{key:"_getGameData",value:(h=t(d.mark((function e(){var t;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,oI();case 2:return t=e.sent,this.msgrt.setGameData(t),n=t.diagnostic,bt=n,e.abrupt("return",t);case 6:case"end":return e.stop()}var n}),e,this)}))),function(){return h.apply(this,arguments)})},{key:"_createSplash",value:(p=t(d.mark((function e(r,i){var a,o,s,u,c=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._getSplashTemplate(r);case 2:return a=e.sent,o=new a(sB(sB({},this.options),{},{isConsentDomain:i,version:nc.version}),r,this._parentDomain),e.next=6,vI();case 6:s=e.sent,u=s.enabled,o.on("playClick",function(){var e,a,s,l=this;if(n(this,c),((null===(e=window.gdlocus)||void 0===e?void 0:e.firstUserAction)||t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:console.log("gd-adflow locus-first-user-action is not defined");case 1:case"end":return e.stop()}}),e)}))))({game_id:r.gameId}).catch(function(e){n(this,l),console.log("gd-adflow locus-first-user-action error",e)}.bind(this)),i){var f=new Date;f.setDate(f.getDate()+90),document.cookie="ogdpr_tracking=1; expires=".concat(f.toUTCString(),"; path=/")}if(this._hideCMPButton(),qL("play"),u)window.gdsdk.showAd(rt.Interstitial,{position:"preroll"}).catch(function(e){n(this,l),o.hide()}.bind(this));else{var p={position:"preroll"};(function(){n(this,l),uc.firstAdapterModeAdsense&&(console.log("promo-test, set first adapter to adssense 1"),p.adapter="adsense")}).bind(this),this.showAd(rt.Interstitial,p).catch(function(e){n(this,l)}.bind(this))}null!==(a=this._gameData)&&void 0!==a&&null!==(s=a.evnts)&&void 0!==s&&s.enabled&&(RL({event:"FirstInteraction",game:this._gameData}),this._send_gametag_data("first_interaction"))}.bind(this)),this.onPauseGame("Pause the game and wait for a user gesture","success"),this.eventBus.subscribe("SDK_GAME_PAUSE",function(){n(this,c),o.hide()}.bind(this)),this.eventBus.subscribe("SDK_GAME_START",function(){n(this,c),o.hide()}.bind(this));case 12:case"end":return e.stop()}}),e,this)}))),function(e,t){return p.apply(this,arguments)})},{key:"_createPromoBeforeSplash",value:(f=t(d.mark((function e(t,r){var i,a,o,s,u=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this._createPrerollPromoTemplate(t);case 3:o=e.sent,(s=new o(sB(sB({},this.options),{},{isConsentDomain:r,version:nc.version,template:null===(i=t.promo)||void 0===i||null===(a=i.template)||void 0===a?void 0:a.preroll}),t)).on("done",function(){n(this,u),s.hide(),this._createSplash(t,r)}.bind(this)),s.on("promoButtonClicked",function(){n(this,u),s.hide(),this.onResumeGame("Resumed after the promo","warning")}.bind(this)),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(0),console.log(e.t0),this._createSplash(t,r);case 13:case"end":return e.stop()}}),e,this,[[0,9]])}))),function(e,t){return f.apply(this,arguments)})},{key:"_createPromo",value:(c=t(d.mark((function e(t,r){var i,a,o,s,u=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this._createPrerollPromoTemplate(t);case 3:o=e.sent,(s=new o(sB(sB({},this.options),{},{isConsentDomain:r,version:nc.version,template:null===(i=t.promo)||void 0===i||null===(a=i.template)||void 0===a?void 0:a.preroll}),t)).on("done",function(){n(this,u),s.hide(),this.onResumeGame("Resumed after the promo","warning")}.bind(this)),s.on("promoButtonClicked",function(){n(this,u),s.hide(),this.onResumeGame("Resumed after the promo","warning")}.bind(this)),this.onPauseGame("Pause the game for the promo","success"),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),this.onResumeGame("Resumed after the promo","warning");case 13:case"end":return e.stop()}}),e,this,[[0,10]])}))),function(e,t){return c.apply(this,arguments)})},{key:"showBanner",value:function(){var e=this;this.showAd(rt.Interstitial).catch(function(){n(this,e)}.bind(this))}},{key:"IscForwardShowAd",value:(u=t(d.mark((function e(t){var n,r,i,a,o,s,u,c,l,f=arguments;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=f.length>1&&void 0!==f[1]?f[1]:{},a={forwarded:r=!1,result:i},e.prev=3,null===(o=this._gameData)||void 0===o||null===(s=o.isv_fw)||void 0===s?void 0:s.enabled){e.next=7;break}return e.abrupt("return",a);case 7:return e.next=10,rR();case 10:if(u=e.sent){e.next=13;break}return e.abrupt("return",a);case 13:return e.next=16,u.isLoader();case 16:if(c=e.sent,l=u.hasRouter(),c||!l){e.next=26;break}return oc("[GD-IS] forwarding ad call",{location:window.location.href}),r=!0,e.next=25,u.showAd({adType:t,params:n});case 25:i=e.sent;case 26:e.next=32;break;case 29:e.prev=29,e.t0=e.catch(3),ac("[GD-IS] error on showAd forward",e.t0);case 32:return e.abrupt("return",{forwarded:r,result:i});case 33:case"end":return e.stop()}}),e,this,[[3,29]])}))),function(e){return u.apply(this,arguments)})},{key:"showAd",value:(s=t(d.mark((function e(n){var r,i=this,a=arguments;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=a.length>1&&void 0!==a[1]?a[1]:{},e.abrupt("return",new Promise(function(){var e=t(d.mark((function e(t,a){var o,s,u,c,l,f,p,h,m;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,e.t0=null===(o=i._gameData)||void 0===o?void 0:o.igs,!e.t0){e.next=6;break}return e.next=5,iR();case 5:e.t0=e.sent;case 6:if(!e.t0){e.next=10;break}return oc("[GD-IS-IGS] store-visible so ad was skipped",{loc:window.location.href}),e.abrupt("return");case 10:return e.next=12,i.IscForwardShowAd(n,r);case 12:if(u=e.sent,c=u.forwarded,l=u.result,!c){e.next=18;break}return t(l),e.abrupt("return");case 18:return qL("play"),f={adType:n||"interstitial",params:r,adTimestamp:i.adRequestTimer},e.next=24,i.sdkReady;case 24:return p=e.sent,e.next=27,i.videoAdReady;case 27:if(null!==(s=i._gameData.lp)&&void 0!==s&&s.load||i._sendLoadedEvent(1),i._sendGamedockGamePlay(),i._rejectAdIfGameBlocked({gameData:p,adRequest:f}),i._rejectAdIfUnsupportedType({adRequest:f}),"rewarded"===n&&i._setGameRewardedFlag(),null!=r&&r.isGift||null!=r&&r.isCompensation||i._rejectAdIfAdRateHits({gameData:p,adRequest:f}),r&&(r.isGift||r.isMidrollPlus||r.isCompensation)||!i.adBlockerPage||(i._setAdRequestTimer(),i.adBlockerPage.show()),i.adInstance.attachAfgPosition(f),!i._autoResumeIfAdsAreDisabled(YL(f))){e.next=39;break}return e.abrupt("return",t());case 39:if(i._rejectAdIfAdDisabled({gameData:p,adRequest:f}),!i.adFlowRunning){e.next=42;break}return e.abrupt("return",t());case 42:return i.adFlowRunning=!0,h=new TM(i),i._adFlow=h,e.next=47,h.runAdFlow(f);case 47:m=e.sent,i.adFlowRunning=!1,i._adFlow=null,t(m),i._post_message({topic:"adrequest.instream"}),e.next=61;break;case 54:e.prev=54,e.t1=e.catch(0),i.adFlowRunning=!1,i._adFlow=null,i.onAdError(e.t1.message),i.onResumeGame(e.t1.message,"warning"),a(e.t1.message);case 61:case"end":return e.stop()}}),e,null,[[0,54]])})));return function(t,n){return e.apply(this,arguments)}}()));case 2:case"end":return e.stop()}}),e)}))),function(e){return s.apply(this,arguments)})},{key:"_autoResumeIfAdsAreDisabled",value:function(e){var t,n=!1,r=null===(t=this._gameData.diagnostic)||void 0===t?void 0:t.close_ads,i=this._gameData.disableAds[e],a=r||i;return ac("gd-adflow autoresume result: adModuleDisabled,adDisabled",r,i,e,this._gameData.diagnostic,this._gameData.disableAds),a&&(this._runAutoResume(),n=!0),n}},{key:"_runAutoResume",value:function(){var e=this,t="CONTENT_PAUSE_REQUESTED",r="CONTENT_RESUME_REQUESTED";this.eventBus.broadcast(t,{name:t,message:"Auto pause when ads are disabled"}),setTimeout(function(){n(this,e),this.eventBus.broadcast(r,{name:r,message:"Auto resume when ads are disabled"}),this.onResumeGame("Advertisement(s) are cancelled. Start / resume the game.","success")}.bind(this),3e3)}},{key:"_giveGift",value:function(e){var t,n,r,i,a,o,s,u,c,d,l,f,p,h,m;switch(e){case"preroll":null!==(t=this._gameData)&&void 0!==t&&null!==(n=t.gft)&&void 0!==n&&n[e].enabled&&(null===(r=this._gameData)||void 0===r||null===(i=r.gft)||void 0===i||null===(a=i[e].durations[this._giftCount[e]])||void 0===a?void 0:a.after)===this.adInstance.adPrerollCount&&this.decideToGiveAGift(e);break;case"midroll":null!==(o=this._gameData)&&void 0!==o&&null!==(s=o.gft)&&void 0!==s&&s[e].enabled&&(null===(u=this._gameData)||void 0===u||null===(c=u.gft)||void 0===c||null===(d=c[e].durations[this._giftCount[e]])||void 0===d?void 0:d.after)===this.adInstance.adMidrollCount&&this.decideToGiveAGift(e);break;case"rewarded":null!==(l=this._gameData)&&void 0!==l&&null!==(f=l.gft)&&void 0!==f&&f[e].enabled&&(null===(p=this._gameData)||void 0===p||null===(h=p.gft)||void 0===h||null===(m=h[e].durations[this._giftCount[e]])||void 0===m?void 0:m.after)===this.adInstance.adRewardedCount&&this.decideToGiveAGift(e)}}},{key:"_setAdRequestTimer",value:function(){this.adRequestTimer=Date.now()}},{key:"clearSession",value:function(){this.adInstance.clearSession()}},{key:"_attachAfgFallback",value:function(e){var t=e.gameData,n=e.adRequest;if(!t.afg_disabled&&!n.params.hasOwnProperty("fallback_adsense"))switch(n.params.position){case"preroll":case"start":case"next":n.params.fallback_adsense=!0}}},{key:"_rejectAdIfGameBlocked",value:function(e){var t=e.gameData;if(t.bloc_gard&&!0===t.bloc_gard.enabled)throw new Error("Game or domain is blocked.")}},{key:"_rejectAdIfAdDisabled",value:function(e){var t=e.gameData,n=YL(e.adRequest);if(t.disableAds[n]||this._whitelabelPartner)throw new Error("Advertisements are disabled.")}},{key:"_rejectAdIfUnsupportedType",value:function(e){var t=e.adRequest;if(t.adType){if(t.adType!==rt.Interstitial&&t.adType!==rt.Rewarded)throw new Error("Unsupported an advertisement type: ",t.adType)}else t.adType=rt.Interstitial}},{key:"_rejectAdIfRewardedDisabled",value:function(e){var t=e.gameData;if(e.adRequest.adType===rt.Rewarded&&!t.rewardedAds)throw new Error("Rewarded ads are disabled.")}},{key:"_rejectAdIfAdRateHits",value:function(e){var t,n,r,i,a,o,s=e.gameData,u=e.adRequest,c=null;u.adType===rt.Interstitial&&null!==(t=s.diagnostic)&&void 0!==t&&null!==(n=t.useMidrollIndex)&&void 0!==n&&n.enabled&&this.adInstance.noPreroll?this.adInstance.adMidrollCount>(null===(r=s.diagnostic)||void 0===r||null===(i=r.useMidrollIndex)||void 0===i?void 0:i.indexes.length)-1||(c=6e4*(null===(a=s.diagnostic)||void 0===a||null===(o=a.useMidrollIndex)||void 0===o?void 0:o.indexes[this.adInstance.adMidrollCount])):c=s.midroll;if(u.adType===rt.Interstitial&&void 0!==this.adRequestTimer&&Date.now()-this.adRequestTimer<c)throw new Error("The advertisement was requested too soon.")}},{key:"preloadAd",value:(o=t(d.mark((function e(n){var r=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=t(d.mark((function e(t,i){var a,o;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,r.sdkReady;case 3:return a=e.sent,e.next=6,r.videoAdReady;case 6:if(!a.bloc_gard||!0!==a.bloc_gard.enabled){e.next=8;break}throw new Error("Game or domain is blocked.");case 8:if(!a.disableAds[n]&&!r._whitelabelPartner){e.next=10;break}throw new Error("Advertisements are disabled for this ad type => ".concat(n,"..."));case 10:if(n){e.next=14;break}n=rt.Rewarded,e.next=16;break;case 14:if(n===rt.Interstitial||n===rt.Rewarded){e.next=16;break}throw new Error("Unsupported an advertisement type:"+n);case 16:if(!r.adInstance){e.next=22;break}return e.next=19,r.adInstance.preloadAd(n);case 19:e.t0=e.sent,e.next=23;break;case 22:e.t0="gdsdk://preloaded";case 23:o=e.t0,t(o),e.next=30;break;case 27:e.prev=27,e.t1=e.catch(0),i(e.t1);case 30:case"end":return e.stop()}}),e,null,[[0,27]])})));return function(t,n){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)}))),function(e){return o.apply(this,arguments)})},{key:"cancelAd",value:(a=t(d.mark((function e(){var n=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=t(d.mark((function e(t,r){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{n.adInstance.cancel(),n.onResumeGame("Advertisement(s) are cancelled. Start / resume the game.","success"),r()}catch(e){n.onResumeGame("Advertisement(s) are cancelled. Start / resume the game.","success"),t(e.message)}case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)}))),function(){return a.apply(this,arguments)})},{key:"showDisplayAd",value:function(e){var n=this;return new Promise(function(){var r=t(d.mark((function t(r,i){var a;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,n.sdkReady;case 3:return a=t.sent,t.next=6,n.videoAdReady;case 6:if(!a.dAds.enabled){t.next=13;break}return t.next=9,n.adInstance.loadDisplayAd(e);case 9:n._post_message({topic:"adrequest.display"}),r(),t.next=14;break;case 13:i("Display-Ads are disabled.");case 14:t.next=19;break;case 16:t.prev=16,t.t0=t.catch(0),i(t.t0.message||t.t0);case 19:case"end":return t.stop()}}),t,null,[[0,16]])})));return function(e,t){return r.apply(this,arguments)}}())}},{key:"onResumeGame",value:function(e,t){var n,r;try{this._allowExternals({enabled:!1}),this.options.resumeGame()}catch(e){console.log("gd-adflow error onResumeGame",e),yt("DEVELOPER_ERROR",e.message,"warning")}var i="SDK_GAME_START";this.eventBus.broadcast(i,{name:i,message:e,status:t,analytics:{category:"SDK",action:i,label:this.options.gameId+""},adPosition:null===(n=this.adInstance)||void 0===n?void 0:n._findAdPosition()}),this.adInstance&&this.adInstance._hideAddResume(),this.adInstance&&this.adInstance._hideAdSpinner(),this.adInstance&&this.adInstance._clearTimeoutForSkipAddButton(),null===(r=this._gameData.evnts)||void 0===r||!r.enabled||this._isMasterGameURL()&&!this._isExtHostedGameURL()||(RL({event:"GameStarted",game:this._gameData}),this._send_gametag_data("game_started"))}},{key:"onPauseGame",value:function(e,t){var n;this._allowExternals({enabled:!0});try{this.options.pauseGame()}catch(e){yt("DEVELOPER_ERROR",e.message,"warning")}var r="SDK_GAME_PAUSE";this.eventBus.broadcast(r,{name:r,message:e,status:t,analytics:{category:"SDK",action:r,label:this.options.gameId+""}}),null===(n=this._gameData.evnts)||void 0===n||!n.enabled||this._isMasterGameURL()&&!this._isExtHostedGameURL()||(RL({event:"GamePaused",game:this._gameData}),this._send_gametag_data("game_paused"))}},{key:"onRewardedWatchComplete",value:function(){this.eventBus.broadcast("SDK_REWARDED_WATCH_COMPLETE",{message:"",status:"success"})}},{key:"onAdError",value:function(e){this.eventBus.broadcast("AD_ERROR",{message:e,status:"error"})}},{key:"openConsole",value:function(){try{new Ot(this).start(),gt.set("gd_debug_ex",!0)}catch(e){console.log(e)}}},{key:"_initBlockingExternals",value:function(){var e=this._gameData;(e.failed||e.block_exts&&e.block_exts.enabled)&&(this.window_open=window.open,this._allowExternals({enabled:!1}),this._removeExternalsInHtml({enabled:!1}))}},{key:"_checkFullscreen",value:function(){var e=this;try{var t=this._gameData;t.sdk.fullscreen&&"auto"===t.sdk.fullscreen&&document.addEventListener("click",function(){if(n(this,e),!this._isFullScreen){var t=document.body,r=t.requestFullScreen||t.webkitRequestFullScreen||t.mozRequestFullScreen||t.msRequestFullscreen;if(r)r.call(t);else if(void 0!==window.ActiveXObject){var i=new ActiveXObject("WScript.Shell");null!==i&&i.SendKeys("{F11}")}this._isFullScreen=!0}}.bind(this))}catch(e){console.log("Fullscreen error handled...",e)}}},{key:"_allowExternals",value:function(e){var t=this;void 0!==this.window_open&&(!1===e.enabled?window.open=function(e){n(this,t),this.msgrt.send("external",{message:"C> ".concat(e)}),(e.startsWith("https://play.google.com")||e.startsWith("https://itunes.apple.com"))&&this.window_open.call(null,e)}.bind(this):window.open=this.window_open)}},{key:"_shouldAllowExternalUrl",value:function(e){var t,r,i=this,a=new C(e),o=a.host;return a.href,r=((null===(t=this._gameData.urlBlockExc)||void 0===t?void 0:t.hosts)||[]).some(function(e){return n(this,i),e===o}.bind(this)),r}},{key:"_removeExternalsInHtml",value:function(e){var t=this;!1===e.enabled&&window.document.querySelectorAll("a").forEach(function(e){var r=this;n(this,t);var i=!!(e.innerText.toLowerCase().includes("start")||e.innerText.toLowerCase().includes("play")||e.innerText.toLowerCase().includes("continue")),a=e.getAttribute("href");if(!this._shouldAllowExternalUrl(a)){var o=e.getAttribute("href");e.removeAttribute("href"),i||(e.onclick=function(e){return n(this,r),e.preventDefault(),this.msgrt.send("external",{message:"H> ".concat(o)}),!1}.bind(this))}}.bind(this))}},{key:"_getBridgeContext",value:function(){var e=this._isTokenGameURL(),t=this._isMasterGameURL(),n=this._isExtHostedGameURL(),r=e||n?this._getTokenGameURLConfig():{};r=r||{};var i=decodeURIComponent((e||n)&&r.parentURL?r.parentURL:ot()),a=decodeURIComponent((e||n)&&r.parentDomain?r.parentDomain:at()),o=decodeURIComponent((e||n)&&r.topDomain?r.topDomain:n&&0===pt()?a:vt()),s=(e||n)&&r.loaderEnabled,u=(e||n)&&r.loaderEnabled,c=(e||n)&&r.loaderEnabled,d=(e||n)&&r.loaderEnabled,l=(e||n)&&r.loaderEnabled,f=(e||n)&&r.loaderEnabled,p=(e||n)&&r.loaderEnabled,h=(e||n)&&r.loaderEnabled,m=(e||n)&&r.loaderEnabled&&r.hasImpression&&r.version>="1.1.24";return{isTokenGameURL:e,isMasterGameURL:t,isExtHostedGameURL:n,noConsoleBanner:s,noLoadedEvent:u,noBlockerEvent:c,noPreroll:h,parentURL:i,parentDomain:a,topDomain:o&&o.length?o:a,noGAPageView:d,noLotamePageView:l,noGamedockSDK:f,noMinijuegosSDK:p,version:r.version,pauseGameOnStartup:m,depth:pt(),domainMatched:a===o,exports:{formatTokenURLSearch:this._formatTokenURLSearch.bind(this),extendUrlQuery:this._extendUrlQuery.bind(this),base64Encode:this._base64_encode.bind(this)}}}},{key:"_isHostHTML5Domain",value:function(){var e=new C(location.href);return"html5.gamedistribution.com"===(null==e?void 0:e.host.toLowerCase())}},{key:"_isExternalHoster",value:function(){var e,t;return null===(e=this._gameData)||void 0===e||null===(t=e.extHosting)||void 0===t?void 0:t.enabled}},{key:"_whichFrame",value:function(){return(this._isMasterGameURL()||this._isExtHostedGameURL())&&!this._isTokenGameURL()?"loader-frame":"game-frame"}},{key:"_isMasterGameURL",value:function(){var e=/http[s]?:\/\/(html5\.gamedistribution\.com\/[A-Fa-f0-9]{32})(.*)$/i;return e.test(location.href)||!this._isTokenGameURL()&&e.test(document.referrer)}},{key:"_checkTokenGameUrl",value:function(){var e=C(location.href),t=e.origin,n=e.pathname,r="".concat(t).concat(n);return/http[s]?:\/\/(html5\.gamedistribution\.com\/[A-Za-z0-9]{8})\/(.*)$/i.test(r)}},{key:"_isTokenGameURL",value:function(){var e,t=/http[s]?:\/\/(html5\.gamedistribution\.com\/[A-Za-z0-9]{8})\/(.*)$/i,n="1"===(null===(e=C(location.href,!0).query)||void 0===e?void 0:e.rd);return t.test(location.href)||!n&&t.test(document.referrer)}},{key:"_isExtHostedGameURL",value:function(){var e=/^http[s]?:\/\/.*?gd_sdk_referrer_url=.*$/i;return e.test(location.href)||e.test(document.referrer)}},{key:"_isLoaderGameURL",value:function(){return/http[s]?:\/\/(html5\.gamedistribution\.com\/[A-Fa-f0-9]{32})(.*)$/i.test(location.href)&&location.href.startsWith("https://html5.gamedistribution.com")}},{key:"_getTokenGameURLConfig",value:function(){try{var e,t=/http[s]?:\/\/html5\.gamedistribution\.com\/[A-Za-z0-9]{8}\/[A-Fa-f0-9]{32}\/.*/i;if(t.test(location.href)){var n=new C(location.href,!0);if(!n.query.gd_zone_config)return;e=n.query.gd_zone_config}else if(t.test(document.referrer)){var r=new C(document.referrer,!0);if(!r.query.gd_zone_config)return;e=r.query.gd_zone_config}else{var i=new C(location.href,!0);if(!i.query.gd_zone_config)return;e=i.query.gd_zone_config}return JSON.parse(nt.decode(decodeURIComponent(e)))}catch(e){}}},{key:"_getSplashTemplate",value:function(e){var t=e.splash;return new QP(t).splash()}},{key:"_createPrerollPromoTemplate",value:(i=t(d.mark((function e(t){var n,r,i,a,o;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=null===(n=t.promo)||void 0===n?void 0:n[null===(r=t.promo)||void 0===r||null===(i=r.template)||void 0===i?void 0:i.preroll],o=new YP(a),e.abrupt("return",o.promo());case 3:case"end":return e.stop()}}),e)}))),function(e){return i.apply(this,arguments)})},{key:"_formatTokenURLSearch",value:function(e){var t="";try{t=encodeURIComponent(nt.encode(JSON.stringify(e)))}catch(e){}try{var n=new C(location.href,!0);return n.query=n.query||{},n.query.gd_zone_config=t,"?".concat(l.stringify(n.query))}catch(e){return"?gd_zone_config=".concat(t)}}},{key:"_extendUrlQuery",value:function(e,t){var n=new C(e,!0);return n.query=sB(sB({},n.query),t),n.toString()}},{key:"_base64_encode",value:function(e){return nt.encode(JSON.stringify(e))}},{key:"session",value:function(){var e=this;return new Promise(function(){var n=t(d.mark((function t(n,r){var i;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.sdkReady;case 3:t.next=7;break;case 5:t.prev=5,t.t0=t.catch(0);case 7:i=e._gameData,n({ads:{display:{enabled:i.dAds.enabled},rewarded:{enabled:i.rewardedAds}},location:{parentDomain:e._bridge.parentDomain,topDomain:e._bridge.topDomain,parentURL:e._bridge.parentURL,depth:e._bridge.depth,loadedByGameZone:e._bridge.isTokenGameURL}});case 9:case"end":return t.stop()}}),t,null,[[0,5]])})));return function(e,t){return n.apply(this,arguments)}}())}},{key:"sendGenericEvent",value:function(e){console.log("Received generic event",e,this._isMasterGameURL());try{var t,n;if("track-milestone"==e.eventName)dB.tracking.trackEvent("milestoneAchieved",{pageId:this.options.gameId,pageType:"game",isAuthorized:null===(t=e.data)||void 0===t?void 0:t.isAuthorized,milestoneDescription:null===(n=e.data)||void 0===n?void 0:n.milestoneDescription});else if("game_event"==e.eventName)return this._gameEventPostMessage(e)}catch(e){console.log(e.message)}}},{key:"_gameEventPostMessage",value:function(e){if(void 0!==e.data.level&&this._numberValidator(e.data.level))if(void 0!==e.data.score&&this._numberValidator(e.data.score)){var t={type:e.eventName,data:e.data};window.location!==window.top.location&&window.top.postMessage(t,"*")}else console.log("Level data type should be number!");else console.log("Level data type should be number!")}},{key:"_numberValidator",value:function(e){return"number"==typeof e&&/^\d*$/.test(e)}},{key:"_getisMobile",value:function(){var e,t=!1;return e=navigator.userAgent||navigator.vendor||window.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))&&(t=!0),!1===t&&window.orientation>-1&&(t=!0),t}},{key:"_get_game_thumbnail_url",value:function(){var e=this,t=this._gameData,r=t.assets.find(function(t){return n(this,e),t.hasOwnProperty("name")&&512===t.width&&512===t.height}.bind(this));return r||(r=t.assets.length>0?t.assets[0]:{name:"logo.svg"}),"https://img.gamedistribution.com/".concat(r.name)}},{key:"_post_message",value:function(e){var t,n=e.topic,r=e.data,i=null!==(t=location.ancestorOrigins)&&void 0!==t&&t.length?location.ancestorOrigins[location.ancestorOrigins.length-1]:"*";try{var a=window.top||window.parent;a&&a.postMessage({source:"gdsdk",topic:n,data:r},i)}catch(e){console.error((null==e?void 0:e.message)||e)}}},{key:"fixScore",value:function(){var e,t,r,i,a=this;if(null===(e=this._gameData)||void 0===e||null===(t=e.fix_score)||void 0===t?void 0:t.enabled){var o=(null===(r=this._gameData)||void 0===r||null===(i=r.fix_score)||void 0===i?void 0:i.wait)||10;setTimeout(function(){var e=this;n(this,a),this.showAd(rt.Interstitial,{position:"midroll"}).catch(function(t){n(this,e)}.bind(this))}.bind(this),1e3*o)}}},{key:"executeCompensation",value:(r=t(d.mark((function e(r){var i,a,o,s,u,c,l=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=(null==r?void 0:r.whenAvailable)||!1,a=!this.adInstance.requestRunning&&!this.adFlowRunning,o=function(){var e=t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l.showAd(rt.Interstitial,{position:"midroll",isCompensation:!0});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!a){e.next=10;break}return e.next=7,o();case 7:return s=e.sent,e.abrupt("return",s);case 10:if(!i){e.next=17;break}return u=!1,e.next=15,new Promise(function(e,r){var i=this;n(this,l);var a=!1,s=setInterval(t(d.mark((function t(){var n;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i.adInstance.requestRunning||i.adFlowRunning){t.next=19;break}return clearInterval(s),t.prev=4,t.next=7,o();case 7:n=t.sent,a=!0,e(n),u=!0,t.next=19;break;case 14:t.prev=14,t.t0=t.catch(4),ac("[compensation] execution error after became available",t.t0),e({err:t.t0,success:!1}),u=!0;case 19:case"end":return t.stop()}}),t,null,[[4,14]])}))),1e3);setTimeout(function(){n(this,i),a||u||e({success:!1})}.bind(this),6e4)}.bind(this));case 15:return c=e.sent,e.abrupt("return",c);case 17:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"decideToGiveAGift",value:function(e){var r=this;try{var i,a=null===(i=this._gameData)||void 0===i?void 0:i.gft[e],o="gift";if(!lM({rateType:o,gameData:this._gameData}))return void ac("[compensation] rate check did not pass for ".concat(o));ac("[compensation] rate check passed for ".concat(o));var s=setInterval(t(d.mark((function t(){var i=this;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r.adInstance.requestRunning||r.adFlowRunning?console.log("Advertisement already running..."):(ac("gd-adflow WILL GIVE GIFT!!!"),r.showAd(rt.Interstitial,{position:e,isGift:!0}).catch(function(e){n(this,i)}.bind(this)),clearInterval(s),r._giftCount[e]++);case 1:case"end":return t.stop()}}),t,this)}))),1e3*a.durations[this._giftCount[e]].wait)}catch(e){console.log("Advertisement Error...")}}},{key:"send_atom_event",value:function(e,t){this.adInstance._send_atom_event(e,t)}},{key:"get_session_id",value:function(){return uB}},{key:"get_ad_system_init_result",value:function(){return{afg:this.adInstance.afgInitSuccess,ima:this.adInstance.imaInitSuccess}}},{key:"_getDeveloperDomains",value:function(){var e,t;return"developer.gamedistribution.com"===this._topDomain||"developer-acc.gamedistribution.com"===this._topDomain?e=this._topDomain:!0===new RegExp("^localhost").test(this._parentDomain)&&(e="localhost"),e&&(t={"developer-acc.gamedistribution.com":"game-api-acc-real-aws.gamedistribution.com","developer.gamedistribution.com":"game.api.gamedistribution.com",localhost:"game-api-acc-real-aws.gamedistribution.com"}[e]),{developerDomain:e,gameApiDomain:t}}},{key:"_setGameRewardedFlag",value:function(){try{var e=this._getDeveloperDomains(),t=e.developerDomain,n=e.gameApiDomain;if(t){fetch("https://".concat(n,"/game/v2/hasrewarded/").concat(this.options.gameId,"?timestamp=").concat((new Date).valueOf()));try{var r=JSON.stringify({type:"GD_SDK_REWARDED_SET",gameID:this.options.gameId});window.location!==window.top.location?window.top.postMessage(r,"*"):null!==window.opener&&window.opener.location!==window.location&&window.opener.postMessage(r,"*")}catch(e){}}}catch(e){}}},{key:"_getGdModeIfExist",value:function(){var e=this,t=new Proxy(new URLSearchParams(window.location.search),{get:function(t,r){return n(this,e),t.get(r)}.bind(this)});return!t.gd_mode&&window.location.search.includes("gd_mode")?window.location.search.split("gd_mode=")[1]:t.gd_mode}},{key:"_executeMidrollPlus",value:function(){var e,t=this;if(!(this.adInstance&&this.adInstance.checkIfTestAdsExist())){if(lM({rateType:"midroll+",gameData:this._gameData})&&null!==(e=this._gameData.midroll_plus)&&void 0!==e&&e.enabled&&!this.isMidrollPlusExecuted){var r;this.isMidrollPlusExecuted=!0;var i=this._gameData.midroll_plus.type||"midroll";if(null!==(r=this._gameData.midroll_plus)&&void 0!==r&&r.interval)var a=setInterval(function(){var e,r,o=this;(n(this,t),this.adFlowRunning)||(this.showAd(rt.Interstitial,{position:"midroll",giftType:i,isMidrollPlus:!0}).catch(function(e){n(this,o)}.bind(this)),this._mplus_count++,"infinite"!==(null===(e=this._gameData.midroll_plus)||void 0===e?void 0:e.interval)&&this._mplus_count===(null===(r=this._gameData.midroll_plus)||void 0===r?void 0:r.interval)&&clearInterval(a))}.bind(this),6e4*this._gameData.midroll_plus.timer);else setTimeout(function(){var e=this;n(this,t),this.showAd(rt.Interstitial,{position:"midroll",giftType:i,isMidrollPlus:!0}).catch(function(t){n(this,e)}.bind(this))}.bind(this),this._gameData.midroll)}}}}]),e}();function fB(){return fB=t(d.mark((function e(){var t,r=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,hI();case 2:if(e.sent){e.next=6;break}return console.log("locus-disabled on proxy level"),e.abrupt("return");case 6:t=["https://pm.azerioncircle.com/p/locus/"],console.log("locus loading"),ft(t[0],"locus",{alternates:t}).catch(function(e){n(this,r),this._sendSDKError(e)}.bind(this));case 9:case"end":return e.stop()}}),e,this)}))),fB.apply(this,arguments)}var pB,hB=new hD.exports.EventEmitter,mB=function(e){var t=this;!function(){fB.apply(this,arguments)}();var r,i=function(e){var r=this;return n(this,t),new Promise(function(t,i){var a=this;n(this,r);var o=function(e){n(this,a),"SDK_GAME_START"===e.name&&(hB.off("sdk-event",o),t())}.bind(this);hB.on("sdk-event",o),v("showAd",{adType:e})}.bind(this))}.bind(this),a=function(){return n(this,t),r||(r=new lB(e)),r}.bind(this),o=function(){var e;return n(this,t),(null===(e=window.gdsdk.store)||void 0===e?void 0:e.isVisible)&&window.gdsdk.store.isVisible()}.bind(this),s=function(e){if(n(this,t),!o())return i(e);oc("[GD-IS-IGS] store-visible so ad was skipped",{loc:window.location.href})}.bind(this),u=function(e){return n(this,t),"gdsdk://preloaded"}.bind(this),c=function(e){return n(this,t),a().showDisplayAd(e)}.bind(this),d=function(){return n(this,t),v("cancelAd")}.bind(this),l=function(){return n(this,t),v("openConsole")}.bind(this),f=function(){return n(this,t),v("showBanner")}.bind(this),p=function(){return n(this,t),v("session")}.bind(this),h=function(e){return n(this,t),v("sendGenericEvent",{options:e})}.bind(this),m=function(){n(this,t),console.log("_sendSDKReady")}.bind(this),v=function(e,r){var i=this;return n(this,t),r||(r={}),new Promise(function(t,a){n(this,i);try{var o={type:"gd-sdk",method:e,options:r};window.parent.postMessage(o,"*"),t()}catch(e){console.log("gd:adp:m:s:error",e),t()}}.bind(this))}.bind(this),g=function(){n(this,t);window.addEventListener("message",(function(e){var t=e.data;e.origin,e.source;var n=t.type,r=t.event;"gd-sdk-on-event"===n&&r&&b(r)}),!1)}.bind(this),A=function(){n(this,t),g(),v("init")}.bind(this),b=function(r){n(this,t);try{hB.emit("sdk-event",r),e.onEvent&&(oc("[developer-event]".concat(r.isStoreEvent?"[store]":""),{name:r.name,data:r.data,source:"proxy"}),e.onEvent(r)),"SDK_GAME_PAUSE"===r.name?e.pauseGame&&e.pauseGame():"SDK_GAME_START"===r.name&&e.resumeGame&&e.resumeGame()}catch(e){console.log("DEVELOPER ERROR on forwarder-sdk")}}.bind(this);return{showBanner:f,showAd:s,preloadAd:u,showDisplayAd:c,cancelAd:d,openConsole:l,getSession:p,onEvent:b,init:A,_sendSDKReady:m,sendGenericEvent:h}},vB=function(){var e=t(d.mark((function e(t){var r,i=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=mB(t)).init(),e.next=4,YI({whichFrame:"game-frame",options:{onEvent:r.onEvent.bind(r)}});case 4:return lR({onEvent:function(e){n(this,i);var t=e.name,a=e.data;(r.onEvent({name:t,message:"In Game Store: ".concat(t),status:"success",data:a,isStoreEvent:!0}),"STORE_UI_VISIBILITY_CHANGED"===t)&&(a.visible?r.onEvent({name:"SDK_GAME_PAUSE",message:"SDK_GAME_PAUSE",status:"success"}):r.onEvent({name:"SDK_GAME_START",message:"SDK_GAME_START",status:"success"}))}.bind(this)}),e.abrupt("return",r);case 6:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),gB=function(){var e=this,t=function(){n(this,e);return/http[s]?:\/\/(html5\.gamedistribution\.com\/[A-Fa-f0-9]{32})(.*)$/i.test(location.href)}.bind(this),r=function(){n(this,e);return/http[s]?:\/\/(html5\.gamedistribution\.com\/[A-Za-z0-9]{8})\/(.*)$/i.test(location.href)}.bind(this),i=function(){n(this,e);return/^http[s]?:\/\/.*?gd_sdk_referrer_url=.*$/i.test(location.href)}.bind(this),a=function(){n(this,e);var i="html5.gamedistribution.com"!==C(window.location.href).host;return t()&&!(r()||i)?"loader-frame":"game-frame"}.bind(this);return{isMasterGameURL:t,isTokenGameURL:r,isExtHostedGameURL:i,whichFrame:a}},AB="gd-sdk-frame-handshake-request",bB="gd-sdk-frame-handshake-response",yB=function(e){var t=this;return new Promise(function(e,r){var i=this;n(this,t);var a={type:AB},o=!1;window.addEventListener("message",(function(t){var n=t.data,r=t.origin,i=t.source,a=n.type;if(a===AB){var s={type:bB};i.postMessage(s,r)}else a===bB&&(o=!0,e({origin:r,source:i}))})),setTimeout(function(){n(this,i),o||e()}.bind(this),200),window.parent!==window?window.parent.postMessage(a,"*"):e()}.bind(this))},_B=function(){var e=t(d.mark((function e(){var t,n,r,i,a,o,s;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,pI();case 2:return t=e.sent,e.next=6,yB();case 6:if(n=e.sent,NM.SDKExistsOnUpperFrame=!!n,t){e.next=10;break}return e.abrupt("return",!1);case 10:return r=gB(),i=r.isMasterGameURL,r.isTokenGameURL,a=i(),e.next=14,mI();case 14:return o=e.sent,s=!1,s=o?!a&&!!n:!a,e.abrupt("return",s);case 18:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),wB={},xB=function(e){try{if(e.skipForward)return void ac("gd-adflow fw-skip-forward",e);if(ac("gd-adflow fw-forwarding",e),wB.source){var t={type:"gd-sdk-on-event",event:e};wB.source.postMessage(t,wB.origin)}}catch(e){console.log("gd-sdk forwardEvent err",e)}},kB=function(){xB({name:"SDK_READY",status:"success",message:"Everything is ready."}),xB({name:"SDK_GAME_START",status:"success",message:"Advertisement(s) are done. Start / resume the game."}),xB({name:"CONTENT_RESUME_REQUESTED",status:"success",message:"Fired when content should be resumed. This usually happens when an ad finishes or collapses."})},EB=function(e){window.addEventListener("message",(function(r){var i=r.data,a=r.origin,o=r.source,s=i.type,u=i.method,c=i.options;if("gd-sdk-self"!==s){if("gd-sdk"===s){if(!wB.source&&"init"===u)return function(e){var t=e.source,n=e.origin;wB={source:t,origin:n}}({source:o,origin:a}),void kB();var l=e[u];l&&t(d.mark((function t(){var r,i=this;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,function(){n(this,i),"showAd"===u&&uc.firstAdapterModeAdsense&&"rewarded"!==c.adType&&(console.log("promo-test, set first adapter to adssense 3"),c.params=c.params?c.params:{},c.params.adapter="adsense")}.bind(this),!(r=l.apply(e,Object.values(c)))||!r.then){t.next=6;break}return t.next=6,r;case 6:t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),console.log("gd:adp:m:r onFrameMessage error",t.t0);case 11:case"end":return t.stop()}}),t,this,[[0,8]])})))()}}else{var f={type:"gd-sdk",method:u,options:c};window.postMessage(f,location.origin)}}),!1)},SB=function(e){!function(e){var t=e.onEvent;e.onEvent=function(e){xB(e),t.apply(this,arguments)}}(e);var t=new lB(e);return EB(t),t},DB=function(){function e(){O(this,e),this.moduleName="GDAeria",this.moduleConfig={source:"https://pm.azerioncircle.com/@bygd/gd-sdk-aeria/1.0.1/dist/default/iife/index.js",dependencies:[]},jb(this.moduleName,this.moduleConfig)}var n,r;return L(e,[{key:"load",value:(r=t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Fb(this.moduleName);case 3:this.module=e.sent,ac("aeria module load success",this.module),e.next=11;break;case 7:e.prev=7,e.t0=e.catch(0),console.log("aeria module load error",e.t0),this.module=null;case 11:case"end":return e.stop()}}),e,this,[[0,7]])}))),function(){return r.apply(this,arguments)})},{key:"runYMenu",value:(n=t(d.mark((function e(t){var n;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.gameId,this.module){e.next=4;break}return e.next=4,this.load();case 4:(new this.module.Aeria).renderYMenu({gameId:n});case 6:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})}]),e}(),IB=function(){var e=t(d.mark((function e(){var n,r,i,a,o,s,u,c,l,f,p,h,m,v,g,A;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=function(){var e,t=(e=new cD).get("partner.domain.value")||e.get("top.domain.value");return{isAeriaDomain:"minigame.aeriagames.jp"===t||"minigame-stg.aeriagames.jp"===t,isAeriaStagingDomain:"minigame-stg.aeriagames.jp"===t}}(),r=n.isAeriaDomain,i=n.isAeriaStagingDomain,!r){e.next=21;break}return s=function(){var e=(new cD).get("partner.url.value");return new C(e,!0)},u=function(){var e="ae-soft-323";try{var t=s(),n=t.pathname,r=n.split("/"),i=r[r.length-1];oc("aeria-ylogin:loc",t,n,i),e=i}catch(e){sc("Error on getting aeria game id",e)}return e}(),c={action:"score",data:{gameId:u,score:100},env:i?"staging":"production",system:"Softgames"},l=function(){var e=window.parent||window,t=c;e.postMessage(t,"*")},f=new Dt,e.next=13,oI();case 13:p=e.sent,h=null==p||null===(a=p.aeria)||void 0===a?void 0:a.yMenuExcluded,m=null==p||null===(o=p.aeria)||void 0===o?void 0:o.yLoginExcluded,f.subscribe("AD_FLOW_COMPLETE",(function(e){"midroll"===e.adType&&(m||l())})),v=function(){var e=t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(new DB).runYMenu({gameId:u});case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),g=gB(),A=g.whichFrame,"game-frame"===A()&&(h||v());case 21:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),RB=function(e){try{var t=lD(e);e.gameId||t.send("nogameid",{message:"".concat(t_.parentURL)})}catch(e){}},CB=function(){var e=t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,IB();case 3:e.next=8;break;case 5:e.prev=5,e.t0=e.catch(0),console.log("error on creating some bridge module");case 8:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(){return e.apply(this,arguments)}}(),OB=function(){var e=t(d.mark((function e(t){var n,r;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,RB(t),aI(t),e.next=5,_B();case 5:return n=e.sent,e.next=8,CB();case 8:if(window.isForwarderFrame=n,!n){e.next=15;break}return e.next=12,vB(t);case 12:e.t0=e.sent,e.next=16;break;case 15:e.t0=SB(t);case 16:return r=e.t0,gI(),e.abrupt("return",r);case 21:return e.prev=21,e.t1=e.catch(0),console.log("gd:adp: sdk adaptor create failed, fallback to default adapter",e.t1),e.abrupt("return",SB(t));case 25:case"end":return e.stop()}}),e,null,[[0,21]])})));return function(t){return e.apply(this,arguments)}}(),TB={create:OB};function PB(){return(PB=t(d.mark((function e(t,n){var r;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,yI();case 2:if(!e.sent){e.next=7;break}e.t0=window.gdsdk,e.next=10;break;case 7:return e.next=9,jB(t);case 9:e.t0=e.sent;case 10:return r=e.t0,e.abrupt("return",n(r));case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var LB,MB,BB=!1;function jB(e){var t=this;return new Promise(function(r,i){var a=this;if(n(this,t),pB)return r(pB);if(BB)var o=setInterval(function(){n(this,a),pB&&(BB=!1,clearInterval(o),r(pB))}.bind(this),100);else BB=!0,TB.create(e).then(function(e){n(this,a),pB=e,e._sendSDKReady(),BB=!1,r(pB)}.bind(this))}.bind(this))}function UB(e){return jB(e),{invoke:function(t){return function(e,t){return PB.apply(this,arguments)}(e,t)}}}function FB(e,r){var i=this;return new Promise(function(a,o){var s,u=this;n(this,i);var c=function(e){var t="https://pm.azerioncircle.com/pkg/@bygd/gd-sdk-wrp/dist/default/iife/index.js";return e&&(t="https://pm.azerioncircle.com/@bygd/gd-sdk-wrp/".concat(e,"/dist/default/iife/index.js")),[t]}(null==r||null===(s=r.game)||void 0===s?void 0:s.version);NB({text:"sdk-wrapper-script-load"}),ft(c[0],"gd-sdk-wrp",{alternates:c}).catch(function(e){n(this,u),NB({text:"sdk-wrapper load error",error:e.message}),this._sendSDKError(e),o(e)}.bind(this)).then(t(d.mark((function t(){var n,i;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,NB({text:"sdk-wrapper load success"}),n=window.GDSDKWRP.GDSDKWRP,i=new n,NB({text:"sdk-wrapper before gdSdkWrp.init"}),t.next=7,i.init(e,r);case 7:MB=t.sent,NB({text:"sdk-wrapper after gdSdkWrp.init"}),a(MB),t.next=16;break;case 12:t.prev=12,t.t0=t.catch(0),NB({text:"sdk-wrapper load error 2",error:t.t0.message}),o(t.t0);case 16:case"end":return t.stop()}}),t,null,[[0,12]])}))))}.bind(this))}function NB(e){try{var t={tp:"gd.wrp",args:e};fetch("https://tag.atom.gamedistribution.com/v1/dmp?ar=".concat(encodeURIComponent(nt.encode(JSON.stringify(t))))),console.log(pR(Object.values(e)))}catch(e){}}function $B(e){if(e){var t=e.name,n=e.message,r=e.status;try{NB({text:"samsung-wrp send-game-event",evt:e,hasOptions:!!LB}),LB&&LB.onEvent({name:t,message:n,status:r})}catch(t){NB({text:"samsung-wrp DEVELOPER-ERROR",evt:e,err:t})}}}function GB(e){return HB.apply(this,arguments)}function HB(){return(HB=t(d.mark((function e(t){var n,r,i,a,o,s,u,c,l;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return LB=t,aI(t),e.next=4,oI();case 4:if(a=e.sent,!MB){e.next=7;break}return e.abrupt("return",MB);case 7:if(o=null==a||null===(n=a.sdk_wrp)||void 0===n?void 0:n.enabled,s=null==a||null===(r=a.sdk_wrp)||void 0===r?void 0:r.version,u=null==a?void 0:a.gameId,c=null==a?void 0:a.title,ZB("isWrapEnabled ".concat(o)),o){e.next=14;break}return e.abrupt("return");case 14:return l=null==a||null===(i=a.sdk_wrp)||void 0===i?void 0:i.wrapper,e.next=17,FB(l,{onEvent:$B,game:{gameId:u,title:c,version:s}});case 17:return MB=e.sent,e.abrupt("return",MB);case 19:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function zB(){return zB=t(d.mark((function e(t){var n,r,i;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t._get_developer_sets,ZB("beforeGetDeveloperSettings"),r=n(),ZB("afterGetDeveloperSettings"),e.prev=4,e.next=7,GB(r);case 7:i=e.sent,ZB("after get SDK wrapper: ".concat(!!i)),i&&(ZB("setting SDK Wrapper as gd-sdk"),window.sdkWrapper=i,window.gdsdk=i,window.gdApi=window.gdsdk),e.next=16;break;case 12:e.prev=12,e.t0=e.catch(4),console.log("Error on SDK wrapper init",e.t0),ZB("Error on SDK wrapper init: ".concat(e.t0.message));case 16:case"end":return e.stop()}}),e,null,[[4,12]])}))),zB.apply(this,arguments)}function ZB(e){window.sdkLog.push(e)}function VB(){var e={};try{"object"===("undefined"==typeof GD_OPTIONS?"undefined":r(GD_OPTIONS))&&GD_OPTIONS?e=GD_OPTIONS:window.gdApi&&"object"===r(window.gdApi.q[0][0])&&window.gdApi.q[0][0]&&((e=window.gdApi.q[0][0]).hasOwnProperty("advertisementSettings")||(e.advertisementSettings={autoplay:!0}))}catch(e){console.log("_get_developer_sets failed",e)}return e}window.sdkLog=[],"img.samsungapps.com"===function(){var e,t,n=C(window.location.href,!0),r=n.host,i=n.query,a=r,o=null==i?void 0:i.gd_sdk_referrer_url;return o&&(o=o.startsWith("https://")||o.startsWith("http://")?o:"https://".concat(o),null!==(t=e=C(o,!0))&&void 0!==t&&t.host&&(a=e.host)),a}()?ZB("skipped normal SDK init!"):(!function(){MP();var e=UB(VB());function r(){var r=this;this.AdType=rt,this.preloadAd=function(){var r=t(d.mark((function t(r){var i,a=this;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.invoke(function(e){return n(this,a),e.preloadAd(r)}.bind(this));case 2:return i=t.sent,oc("[developer-event] preloadAd check",i),t.abrupt("return",i);case 5:case"end":return t.stop()}}),t,this)})));return function(e){return r.apply(this,arguments)}}(),this.showAd=function(){var r=t(d.mark((function t(r,i){var a,o=this;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.invoke(function(e){var t=this;if(n(this,o),r===rt.Display)return e.showDisplayAd(i);var a={};return function(){n(this,t),uc.firstAdapterModeAdsense&&(console.log("promo-test, set first adapter to adssense 2"),a.adapter="adsense")}.bind(this),e.showAd(r,a)}.bind(this));case 2:return a=t.sent,oc("[developer-event] after showAd",a),t.abrupt("return",a);case 5:case"end":return t.stop()}}),t,this)})));return function(e,t){return r.apply(this,arguments)}}(),this.cancelAd=function(){var t=this;return e.invoke(function(e){return n(this,t),e.cancelAd()}.bind(this))},this.openConsole=function(){var t=this;return e.invoke(function(e){return n(this,t),e.openConsole()}.bind(this))},this.getSession=function(){var t=this;return e.invoke(function(e){return n(this,t),e.session()}.bind(this))},this.sendEvent=function(t){var r=this;return e.invoke(function(e){return n(this,r),e.sendGenericEvent(t)}.bind(this))},this.leaderboard={show:function(){n(this,r),$b.showLeaderboard()}.bind(this),addScore:function(e){n(this,r),$b.addScore(e)}.bind(this)}}r.prototype=new function(){this.showBanner=function(){var t=this;return e.invoke(function(e){return n(this,t),e.showBanner()}.bind(this))},this.play=function(){},this.customLog=function(){}},window.gdsdk=new r,window.gdApi=window.gdsdk}(),ZB("afterSDKInit")),function(e){zB.apply(this,arguments)}({_get_developer_sets:VB})}();
|