@bygd/gd-sdk-pes 1.41.12 → 1.41.13
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,r;return!1!==j(e)&&(void 0===(t=e.constructor)||!1!==j(r=t.prototype)&&!1!==r.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"),r=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(r))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 n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.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,K=z||function(e){return!!e&&"[object Array]"==Z.call(e)},q=function(e){if(!e)return!1;var t=V.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)},V=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 re(e){this.map={},e instanceof re?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 ne(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function oe(e){return new Promise((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function ie(e){var t=new FileReader,r=oe(t);return t.readAsArrayBuffer(e),r}function ae(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=ae(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):Y.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||J(e))?this._bodyArrayBuffer=ae(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=ne(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=ne(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(ie)}),this.text=function(){var e=ne(this);if(e)return e;if(this._bodyBlob)return function(e){var t=new FileReader,r=oe(t);return t.readAsText(e),r}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.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}re.prototype.append=function(e,t){e=X(e),t=ee(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},re.prototype.delete=function(e){delete this.map[X(e)]},re.prototype.get=function(e){return e=X(e),this.has(e)?this.map[e]:null},re.prototype.has=function(e){return this.map.hasOwnProperty(X(e))},re.prototype.set=function(e,t){this.map[X(e)]=ee(t)},re.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},re.prototype.keys=function(){var e=[];return this.forEach((function(t,r){e.push(r)})),te(e)},re.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),te(e)},re.prototype.entries=function(){var e=[];return this.forEach((function(t,r){e.push([r,t])})),te(e)},Y.iterable&&(re.prototype[Symbol.iterator]=re.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 r=(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 re(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,r||null==e._bodyInit||(r=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 re(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)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(r),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var n=/([?&])_=[^&]*/;if(n.test(this.url))this.url=this.url.replace(n,"$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 r=e.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(o))}})),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 re(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 re(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 r=Error(e);this.stack=r.stack},pe.prototype=Object.create(Error.prototype),pe.prototype.constructor=pe}function he(e,t){return new Promise((function(r,n){var o=new ce(e,t);if(o.signal&&o.signal.aborted)return n(new pe("Aborted","AbortError"));var i=new XMLHttpRequest;function a(){i.abort()}i.onload=function(){var e,t,n={status:i.status,statusText:i.statusText,headers:(e=i.getAllResponseHeaders()||"",t=new re,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 r=e.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();t.append(n,o)}})),t)};n.url="responseURL"in i?i.responseURL:n.headers.get("X-Request-URL");var o="response"in i?i.response:i.responseText;setTimeout((function(){r(new le(o,n))}),0)},i.onerror=function(){setTimeout((function(){n(new TypeError("Network request failed"))}),0)},i.ontimeout=function(){setTimeout((function(){n(new TypeError("Network request failed"))}),0)},i.onabort=function(){setTimeout((function(){n(new pe("Aborted","AbortError"))}),0)},i.open(o.method,function(e){try{return""===e&&W.location.href?W.location.href:e}catch(t){return e}}(o.url),!0),"include"===o.credentials?i.withCredentials=!0:"omit"===o.credentials&&(i.withCredentials=!1),"responseType"in i&&(Y.blob?i.responseType="blob":Y.arrayBuffer&&o.headers.get("Content-Type")&&-1!==o.headers.get("Content-Type").indexOf("application/octet-stream")&&(i.responseType="arraybuffer")),!t||"object"!=typeof t.headers||t.headers instanceof re?o.headers.forEach((function(e,t){i.setRequestHeader(t,e)})):Object.getOwnPropertyNames(t.headers).forEach((function(e){i.setRequestHeader(e,ee(t.headers[e]))})),o.signal&&(o.signal.addEventListener("abort",a),i.onreadystatechange=function(){4===i.readyState&&o.signal.removeEventListener("abort",a)}),i.send(void 0===o._bodyInit?null:o._bodyInit)}))}he.polyfill=!0,W.fetch||(W.fetch=he,W.Headers=re,W.Request=ce,W.Response=le);var me,ve,ge={exports:{}};me=ge,ve=ge.exports,function(e,t){var r="function",n="undefined",o="object",i="string",a="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",R="LG",I="Microsoft",C="Motorola",O="Opera",T="Samsung",P="Sharp",L="Sony",M="Xiaomi",B="Zebra",j="Facebook",U="Chromium OS",F="Mac OS",N=function(e){for(var t={},r=0;r<e.length;r++)t[e[r].toUpperCase()]=e[r];return t},$=function(e,t){return typeof e===i&&-1!==G(t).indexOf(G(e))},G=function(e){return e.toLowerCase()},H=function(e,t){if(typeof e===i)return e=e.replace(/^\s\s*/,""),typeof t===n?e:e.substring(0,350)},z=function(e,n){for(var i,a,s,u,c,d,l=0;l<n.length&&!c;){var f=n[l],p=n[l+1];for(i=a=0;i<f.length&&!c&&f[i];)if(c=f[i++].exec(e))for(s=0;s<p.length;s++)d=c[++a],typeof(u=p[s])===o&&u.length>0?2===u.length?typeof u[1]==r?this[u[0]]=u[1].call(this,d):this[u[0]]=u[1]:3===u.length?typeof u[1]!==r||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}},Z=function(e,r){for(var n in r)if(typeof r[n]===o&&r[n].length>0){for(var i=0;i<r[n].length;i++)if($(r[n][i],e))return"?"===n?t:n}else if($(r[n],e))return"?"===n?t:n;return 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"]],[/\bopr\/([\w\.]+)/i],[l,[u,O]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[u,l],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[l,[u,"UC"+x]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[l,[u,"WeChat(Win) Desktop"]],[/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"]],[/(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 "+x]],[/fxios\/([-\w\.]+)/i],[l,[u,E]],[/\bqihu|(qi?ho?o?|360)browser/i],[[u,"360 "+x]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[u,/(.+)/,"$1 "+x],l],[/(comodo_dragon)\/([\w\.]+)/i],[[u,/_/g," "],l],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[u,l],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[u],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[u,j],l],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\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,Z,{"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],[/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|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[u,l],[/(cobalt)\/([\w\.]+)/i],[u,[l,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[f,"amd64"]],[/(ia32(?=;))/i],[[f,G]],[/((?: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/,"",G]],[/(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,G]]],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)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\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]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[s,[d,D],[c,m]],[/(?:huawei|honor)([-\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 ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[s,/_/g," "],[d,M],[c,h]],[/\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]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[s,[d,"Vivo"],[c,h]],[/\b(rmx[12]\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,R],[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,R],[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[c-r]{2})( 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.+; ([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]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/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]],[/(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,I],[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,I],[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,R],[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,H],[s,H],[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,I],[c,p]],[/((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]],[/(quest( 2| pro)?)/i],[s,[d,j],[c,g]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[c,A]],[/(aeobc)\b/i],[s,[d,b],[c,A]],[/droid .+?; ([^;]+?)(?: bui|\) 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"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[l,[u,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[u,l],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[l,u]],os:[[/microsoft (windows) (vista|xp)/i],[u,l],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[u,[l,Z,K]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[u,"Windows"],[l,Z,K]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/ios;fbsv\/([\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)[-\/ ]?([\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]]},V=function(p,v){if(typeof p===o&&(v=p,p=t),!(this instanceof V))return new V(p,v).getResult();var g=typeof e!==n&&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 r={};for(var n in e)t[n]&&t[n].length%2==0?r[n]=t[n].concat(e[n]):r[n]=e[n];return r}(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[a]=function(e){return typeof e===i?e.replace(/[^\d\.]/g,"").split(".")[0]:t}(e[l]),_&&g&&g.brave&&typeof g.brave.isBrave==r&&(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!==n&&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&&"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===i&&e.length>350?H(e,350):e,this},this.setUA(A),this};V.VERSION="0.7.35",V.BROWSER=N([u,l,a]),V.CPU=N([f]),V.DEVICE=N([s,d,c,p,h,v,m,g,A]),V.ENGINE=V.OS=N([u,l]),me.exports&&(ve=me.exports=V),ve.UAParser=V;var W=typeof e!==n&&(e.jQuery||e.Zepto);if(W&&!W.ua){var Y=new V;W.ua=Y.getResult(),W.ua.get=function(){return Y.getUA()},W.ua.set=function(e){Y.setUA(e);var t=Y.getResult();for(var r in t)W.ua[r]=t[r]}}}("object"==typeof window?window:o);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,r)=>t[e]=r)),t})(Se),Re=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Ie=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,r,n,o,i="";const a=e.length%3;for(let a=0;a<e.length;){if((r=e.charCodeAt(a++))>255||(n=e.charCodeAt(a++))>255||(o=e.charCodeAt(a++))>255)throw new TypeError("invalid character found");t=r<<16|n<<8|o,i+=Se[t>>18&63]+Se[t>>12&63]+Se[t>>6&63]+Se[63&t]}return a?i.slice(0,a-3)+"===".substring(a):i},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 r=0,n=e.length;r<n;r+=4096)t.push(Ie.apply(null,e.subarray(r,r+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?Ie(192|t>>>6)+Ie(128|63&t):Ie(224|t>>>12&15)+Ie(128|t>>>6&63)+Ie(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return Ie(240|t>>>18&7)+Ie(128|t>>>12&63)+Ie(128|t>>>6&63)+Ie(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 Ie(55296+(t>>>10))+Ie(56320+(1023&t));case 3:return Ie((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return Ie((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},Ze=e=>e.replace(He,ze),Ke=e=>{if(e=e.replace(/\s+/g,""),!Re.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(3&e.length));let t,r,n,o="";for(let i=0;i<e.length;)t=De[e.charAt(i++)]<<18|De[e.charAt(i++)]<<12|(r=De[e.charAt(i++)])<<6|(n=De[e.charAt(i++)]),o+=64===r?Ie(t>>16&255):64===n?Ie(t>>16&255,t>>8&255):Ie(t>>16&255,t>>8&255,255&t);return o},qe=_e?e=>atob(Te(e)):xe?e=>Buffer.from(e,"base64").toString("binary"):Ke,Ve=xe?e=>Ce(Buffer.from(e,"base64")):e=>Ce(qe(e).split("").map((e=>e.charCodeAt(0)))),We=e=>Ve(Qe(e)),Ye=xe?e=>Buffer.from(e,"base64").toString("utf8"):ke?e=>ke.decode(Ve(e)):e=>Ze(qe(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)}))},rt={version:be,VERSION:ye,atob:qe,atobPolyfill:Ke,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 nt={Rewarded:"rewarded",Interstitial:"interstitial",Preroll:"interstitial",Midroll:"interstitial",Display:"display"};function ot(e,t){var r;for(r in t)t.hasOwnProperty(r)&&null!==t[r]&&void 0!==t[r]&&(e[r]=t[r]);return e}function it(){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 r=st("ref",document.referrer);if(r){""!==r&&"{portal%20name}"!==r&&"{spilgames}"!==r&&"{portal name}"!==r&&(t=dt(r).replace(/^(?:https?:\/\/)?(?:\/\/)?(?:www\.)?/i,"").split("/")[0])}}else-1!==document.referrer.indexOf("localhost")&&(t="gamedistribution.com");return t}function at(){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 r=st("ref",document.referrer);if(r){""!==r&&"{portal%20name}"!==r&&"{spilgames}"!==r&&"{portal name}"!==r&&(t=dt(r).replace(/^(?:https?:\/\/)?(?:\/\/)?/i,""),t="https://".concat(t))}}else-1!==document.referrer.indexOf("localhost")&&(t="https://gamedistribution.com/");return t}function st(e,t){var r=t||window.location.href,n=new RegExp("[?&]"+e+"=([^&#]*)","i").exec(r);return n?n[1]:null}function ut(){for(var e,t=/\+/g,r=/([^&=]+)=?([^&]*)/g,n=function(e){return decodeURIComponent(e.toLowerCase().replace(t," "))},o=window.location.search.substring(1),i={};e=r.exec(o);)i[n(e[1])]=n(e[2]);return i}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,r){return new Promise((function(n,o){if(r&&r.exists&&r.exists())n(ht(null==r?void 0:r.alternates));else{var i=r&&r.alternates&&r.alternates.length>0?ht(r.alternates):void 0,a=i||document.createElement("script"),s=r&&r.error_prefix?r.error_prefix:"Failed:";if(a.onload=function(){r&&r.exists&&!r.exists()?o("".concat(s," ").concat(e)):n(a)},a.onerror=function(){o("".concat(s," ").concat(e))},!i){if(a.type="text/javascript",!0===r.defer?a.defer=!0:a.async=!0,null==r?void 0:r.attrs)for(var u in r.attrs)a.setAttribute(u,r.attrs[u]);a.src=e,a.id=t,document.head.appendChild(a)}}}))}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 r in t){var n=t[r];if(e.includes(n.src))return n}}}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 r=localStorage.getItem(e);return"true"===r||!0===r||1===r||"1"===r},getNumber:function(e,t){if(!mt(e))return t;var r=localStorage.getItem(e);return Number(r)},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,r){try{if(gt.available&>.getBoolean("gd_debug_ex")||bt&&!0===bt.console){var n="error"===r?"background: #c4161e; color: #fff":"warning"===r?"background: #ff8c1c; color: #fff":"info"===r?"background: #ff0080; color: #fff":"background: #44a5ab; color: #fff",o=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",n,void 0!==t?t:"");console.log.apply(console,o)}}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,r){var n,o=this.listeners[e],i=-1;if(!o||0===o.length)return i;for(n=0;n<o.length;n++)if(o[n].callback===t&&(!r||r===o[n].scope)){i=n;break}return i}},{key:"subscribe",value:function(e,t,r){var n;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,r)>=0?console.log(e,r):(n={callback:t,scope:r},this.listeners[e]=this.listeners[e]||[],this.listeners[e].push(n))}},{key:"unsubscribeScope",value:function(e){for(var t=Object.keys(this.listeners),r=0;r<t.length;r++){for(var n=t[r],o=this.listeners[n],i=0;i<o.length;i++)o[i].scope===e&&(o.splice(i,1),i--);0===o.length&&delete this.listeners[n]}}},{key:"broadcast",value:function(e,t){var r=this.listeners[e];e&&this.listeners[e]&&((t=t||{}).name=t.name||e,r.forEach((function(e){e.callback.call(e.scope,t,e.scope)})))}},{key:"printScope",value:function(e){for(var t=Object.keys(this.listeners),r=0;r<t.length;r++)for(var n=t[r],o=this.listeners[n],i=0;i<o.length;i++)o[i].scope===e&&console.log(n,e)}}]),e}(),Rt=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 r=B(e);return this.transformValue(r,t)}},{key:"transformValue",value:function(e,t){if(U(e)||K(e))for(var r in e)e[r]=this.transformValue(e[r],t);else if(H(e)){var n,o=/\{\{(\w+)\}\}/g,i=[];do{if(n=o.exec(e)){n[0];var a=n[1],s=this.getMacroKeyValue(a,t);void 0!==s&&i.push({key:a,value:s})}}while(n);i.length>0&&i.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&&q(t.get))return t.get(e)}}}]),e}(),It=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 r=this._topic_counter[e]||0;this._topic_counter[e]=++r;var n={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:r,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()&&(n.cmpe=idhb.iabCmpExists());try{n=encodeURIComponent(rt.encode(JSON.stringify([n]))),fetch(this._url+"?tp=com.gdsdk.".concat(e,"&ar=").concat(n,"&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],r=document.createElement("style");r.type="text/css",r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e)),t.appendChild(r);var n=document.body||document.getElementsByTagName("body")[0],o=document.createElement("div");o.id="gdsdk__console",o.style.position="fixed",o.style.zIndex=Et.zIndex,o.style.bottom="0",o.style.left="0",o.style.width="100%",o.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 ',n.appendChild(o);var i=document.getElementById("gdsdk__showLeaderboard"),a=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"),i.addEventListener("click",(function(){window.gdsdk.showLeaderBoard().catch((function(e){}))})),a.addEventListener("click",(function(){window.gdsdk.showAd(nt.Interstitial).catch((function(e){}))})),s.addEventListener("click",(function(){window.gdsdk.showAd(nt.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 o&&o)||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(r){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")})),Kt=Zt,qt=Function.prototype,Vt=qt.call,Wt=Kt&&qt.bind.bind(Vt,Vt),Yt=Kt?Wt:function(e){return function(){return Vt.apply(e,arguments)}},Qt=function(e){return null==e},Jt=Qt,Xt=TypeError,er=function(e){if(Jt(e))throw Xt("Can't call method on "+e);return e},tr=er,rr=Object,nr=function(e){return rr(tr(e))},or=nr,ir=Yt({}.hasOwnProperty),ar=Object.hasOwn||function(e,t){return ir(or(e),t)},sr=Yt,ur=0,cr=Math.random(),dr=sr(1..toString),lr=function(e){return"Symbol("+(void 0===e?"":e)+")_"+dr(++ur+cr,36)},fr="undefined"!=typeof navigator&&String(navigator.userAgent)||"",pr=Pt,hr=fr,mr=pr.process,vr=pr.Deno,gr=mr&&mr.versions||vr&&vr.version,Ar=gr&&gr.v8;Ar&&(Ht=(Gt=Ar.split("."))[0]>0&&Gt[0]<4?1:+(Gt[0]+Gt[1])),!Ht&&hr&&(!(Gt=hr.match(/Edge\/(\d+)/))||Gt[1]>=74)&&(Gt=hr.match(/Chrome\/(\d+)/))&&(Ht=+Gt[1]);var br=Ht,yr=br,_r=zt,wr=!!Object.getOwnPropertySymbols&&!_r((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&yr&&yr<41})),xr=wr&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,kr=Pt,Er=Lt.exports,Sr=ar,Dr=lr,Rr=wr,Ir=xr,Cr=kr.Symbol,Or=Er("wks"),Tr=Ir?Cr.for||Cr:Cr&&Cr.withoutSetter||Dr,Pr=function(e){return Sr(Or,e)||(Or[e]=Rr&&Sr(Cr,e)?Cr[e]:Tr("Symbol."+e)),Or[e]},Lr={};Lr[Pr("toStringTag")]="z";var Mr="[object z]"===String(Lr),Br="object"==typeof document&&document.all,jr={all:Br,IS_HTMLDDA:void 0===Br&&void 0!==Br},Ur=jr.all,Fr=jr.IS_HTMLDDA?function(e){return"function"==typeof e||e===Ur}:function(e){return"function"==typeof e},Nr={},$r=!zt((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Gr=Fr,Hr=jr.all,zr=jr.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:Gr(e)||e===Hr}:function(e){return"object"==typeof e?null!==e:Gr(e)},Zr=zr,Kr=Pt.document,qr=Zr(Kr)&&Zr(Kr.createElement),Vr=function(e){return qr?Kr.createElement(e):{}},Wr=Vr,Yr=!$r&&!zt((function(){return 7!=Object.defineProperty(Wr("div"),"a",{get:function(){return 7}}).a})),Qr=$r&&zt((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Jr=zr,Xr=String,en=TypeError,tn=function(e){if(Jr(e))return e;throw en(Xr(e)+" is not an object")},rn=Zt,nn=Function.prototype.call,on=rn?nn.bind(nn):function(){return nn.apply(nn,arguments)},an=Pt,sn=Fr,un=function(e,t){return arguments.length<2?(r=an[e],sn(r)?r:void 0):an[e]&&an[e][t];var r},cn=Yt({}.isPrototypeOf),dn=un,ln=Fr,fn=cn,pn=Object,hn=xr?function(e){return"symbol"==typeof e}:function(e){var t=dn("Symbol");return ln(t)&&fn(t.prototype,pn(e))},mn=String,vn=function(e){try{return mn(e)}catch(e){return"Object"}},gn=Fr,An=vn,bn=TypeError,yn=function(e){if(gn(e))return e;throw bn(An(e)+" is not a function")},_n=yn,wn=Qt,xn=function(e,t){var r=e[t];return wn(r)?void 0:_n(r)},kn=on,En=Fr,Sn=zr,Dn=TypeError,Rn=on,In=zr,Cn=hn,On=xn,Tn=function(e,t){var r,n;if("string"===t&&En(r=e.toString)&&!Sn(n=kn(r,e)))return n;if(En(r=e.valueOf)&&!Sn(n=kn(r,e)))return n;if("string"!==t&&En(r=e.toString)&&!Sn(n=kn(r,e)))return n;throw Dn("Can't convert object to primitive value")},Pn=TypeError,Ln=Pr("toPrimitive"),Mn=function(e,t){if(!In(e)||Cn(e))return e;var r,n=On(e,Ln);if(n){if(void 0===t&&(t="default"),r=Rn(n,e,t),!In(r)||Cn(r))return r;throw Pn("Can't convert object to primitive value")}return void 0===t&&(t="number"),Tn(e,t)},Bn=hn,jn=function(e){var t=Mn(e,"string");return Bn(t)?t:t+""},Un=$r,Fn=Yr,Nn=Qr,$n=tn,Gn=jn,Hn=TypeError,zn=Object.defineProperty,Zn=Object.getOwnPropertyDescriptor,Kn="enumerable",qn="configurable",Vn="writable";Nr.f=Un?Nn?function(e,t,r){if($n(e),t=Gn(t),$n(r),"function"==typeof e&&"prototype"===t&&"value"in r&&Vn in r&&!r[Vn]){var n=Zn(e,t);n&&n[Vn]&&(e[t]=r.value,r={configurable:qn in r?r[qn]:n[qn],enumerable:Kn in r?r[Kn]:n[Kn],writable:!1})}return zn(e,t,r)}:zn:function(e,t,r){if($n(e),t=Gn(t),$n(r),Fn)try{return zn(e,t,r)}catch(e){}if("get"in r||"set"in r)throw Hn("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var Wn={exports:{}},Yn=$r,Qn=ar,Jn=Function.prototype,Xn=Yn&&Object.getOwnPropertyDescriptor,eo=Qn(Jn,"name"),to={EXISTS:eo,PROPER:eo&&"something"===function(){}.name,CONFIGURABLE:eo&&(!Yn||Yn&&Xn(Jn,"name").configurable)},ro=Fr,no=Nt,oo=Yt(Function.toString);ro(no.inspectSource)||(no.inspectSource=function(e){return oo(e)});var ao,so,uo,co=no.inspectSource,lo=Fr,fo=Pt.WeakMap,po=lo(fo)&&/native code/.test(String(fo)),ho=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},mo=Nr,vo=ho,go=$r?function(e,t,r){return mo.f(e,t,vo(1,r))}:function(e,t,r){return e[t]=r,e},Ao=Lt.exports,bo=lr,yo=Ao("keys"),_o=function(e){return yo[e]||(yo[e]=bo(e))},wo={},xo=po,ko=Pt,Eo=zr,So=go,Do=ar,Ro=Nt,Io=_o,Co=wo,Oo="Object already initialized",To=ko.TypeError,Po=ko.WeakMap;if(xo||Ro.state){var Lo=Ro.state||(Ro.state=new Po);Lo.get=Lo.get,Lo.has=Lo.has,Lo.set=Lo.set,ao=function(e,t){if(Lo.has(e))throw To(Oo);return t.facade=e,Lo.set(e,t),t},so=function(e){return Lo.get(e)||{}},uo=function(e){return Lo.has(e)}}else{var Mo=Io("state");Co[Mo]=!0,ao=function(e,t){if(Do(e,Mo))throw To(Oo);return t.facade=e,So(e,Mo,t),t},so=function(e){return Do(e,Mo)?e[Mo]:{}},uo=function(e){return Do(e,Mo)}}var Bo={set:ao,get:so,has:uo,enforce:function(e){return uo(e)?so(e):ao(e,{})},getterFor:function(e){return function(t){var r;if(!Eo(t)||(r=so(t)).type!==e)throw To("Incompatible receiver, "+e+" required");return r}}},jo=Yt,Uo=zt,Fo=Fr,No=ar,$o=$r,Go=to.CONFIGURABLE,Ho=co,zo=Bo.enforce,Zo=Bo.get,Ko=String,qo=Object.defineProperty,Vo=jo("".slice),Wo=jo("".replace),Yo=jo([].join),Qo=$o&&!Uo((function(){return 8!==qo((function(){}),"length",{value:8}).length})),Jo=String(String).split("String"),Xo=Wn.exports=function(e,t,r){"Symbol("===Vo(Ko(t),0,7)&&(t="["+Wo(Ko(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!No(e,"name")||Go&&e.name!==t)&&($o?qo(e,"name",{value:t,configurable:!0}):e.name=t),Qo&&r&&No(r,"arity")&&e.length!==r.arity&&qo(e,"length",{value:r.arity});try{r&&No(r,"constructor")&&r.constructor?$o&&qo(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=zo(e);return No(n,"source")||(n.source=Yo(Jo,"string"==typeof t?t:"")),e};Function.prototype.toString=Xo((function(){return Fo(this)&&Zo(this).source||Ho(this)}),"toString");var ei=Fr,ti=Nr,ri=Wn.exports,ni=jt,oi=function(e,t,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:t;if(ei(r)&&ri(r,i,n),n.global)o?e[t]=r:ni(t,r);else{try{n.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=r:ti.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},ii=Yt,ai=ii({}.toString),si=ii("".slice),ui=function(e){return si(ai(e),8,-1)},ci=Mr,di=Fr,li=ui,fi=Pr("toStringTag"),pi=Object,hi="Arguments"==li(function(){return arguments}()),mi=ci?li:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=pi(e),fi))?r:hi?li(t):"Object"==(n=li(t))&&di(t.callee)?"Arguments":n},vi=mi,gi=Mr?{}.toString:function(){return"[object "+vi(this)+"]"};Mr||oi(Object.prototype,"toString",gi,{unsafe:!0});var Ai={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},bi=Vr("span").classList,yi=bi&&bi.constructor&&bi.constructor.prototype,_i=yi===Object.prototype?void 0:yi,wi=ui,xi=Yt,ki=function(e){if("Function"===wi(e))return xi(e)},Ei=yn,Si=Zt,Di=ki(ki.bind),Ri=function(e,t){return Ei(e),void 0===t?e:Si?Di(e,t):function(){return e.apply(t,arguments)}},Ii=zt,Ci=ui,Oi=Object,Ti=Yt("".split),Pi=Ii((function(){return!Oi("z").propertyIsEnumerable(0)}))?function(e){return"String"==Ci(e)?Ti(e,""):Oi(e)}:Oi,Li=Math.ceil,Mi=Math.floor,Bi=Math.trunc||function(e){var t=+e;return(t>0?Mi:Li)(t)},ji=Bi,Ui=function(e){var t=+e;return t!=t||0===t?0:ji(t)},Fi=Ui,Ni=Math.min,$i=function(e){return e>0?Ni(Fi(e),9007199254740991):0},Gi=$i,Hi=function(e){return Gi(e.length)},zi=ui,Zi=Array.isArray||function(e){return"Array"==zi(e)},Ki=Yt,qi=zt,Vi=Fr,Wi=mi,Yi=co,Qi=function(){},Ji=[],Xi=un("Reflect","construct"),ea=/^\s*(?:class|function)\b/,ta=Ki(ea.exec),ra=!ea.exec(Qi),na=function(e){if(!Vi(e))return!1;try{return Xi(Qi,Ji,e),!0}catch(e){return!1}},oa=function(e){if(!Vi(e))return!1;switch(Wi(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ra||!!ta(ea,Yi(e))}catch(e){return!0}};oa.sham=!0;var ia=!Xi||qi((function(){var e;return na(na.call)||!na(Object)||!na((function(){e=!0}))||e}))?oa:na,aa=Zi,sa=ia,ua=zr,ca=Pr("species"),da=Array,la=function(e){var t;return aa(e)&&(t=e.constructor,(sa(t)&&(t===da||aa(t.prototype))||ua(t)&&null===(t=t[ca]))&&(t=void 0)),void 0===t?da:t},fa=function(e,t){return new(la(e))(0===t?0:t)},pa=Ri,ha=Pi,ma=nr,va=Hi,ga=fa,Aa=Yt([].push),ba=function(e){var t=1==e,r=2==e,n=3==e,o=4==e,i=6==e,a=7==e,s=5==e||i;return function(u,c,d,l){for(var f,p,h=ma(u),m=ha(h),v=pa(c,d),g=va(m),A=0,b=l||ga,y=t?b(u,g):r||a?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:Aa(y,f)}else switch(e){case 4:return!1;case 7:Aa(y,f)}return i?-1:n||o?o:y}},ya={forEach:ba(0),map:ba(1),filter:ba(2),some:ba(3),every:ba(4),find:ba(5),findIndex:ba(6),filterReject:ba(7)},_a=zt,wa=function(e,t){var r=[][e];return!!r&&_a((function(){r.call(null,t||function(){return 1},1)}))},xa=ya.forEach,ka=wa("forEach")?[].forEach:function(e){return xa(this,e,arguments.length>1?arguments[1]:void 0)},Ea=Pt,Sa=Ai,Da=_i,Ra=ka,Ia=go,Ca=function(e){if(e&&e.forEach!==Ra)try{Ia(e,"forEach",Ra)}catch(t){e.forEach=Ra}};for(var Oa in Sa)Sa[Oa]&&Ca(Ea[Oa]&&Ea[Oa].prototype);Ca(Da);var Ta={},Pa={},La={}.propertyIsEnumerable,Ma=Object.getOwnPropertyDescriptor,Ba=Ma&&!La.call({1:2},1);Pa.f=Ba?function(e){var t=Ma(this,e);return!!t&&t.enumerable}:La;var ja=Pi,Ua=er,Fa=function(e){return ja(Ua(e))},Na=$r,$a=on,Ga=Pa,Ha=ho,za=Fa,Za=jn,Ka=ar,qa=Yr,Va=Object.getOwnPropertyDescriptor;Ta.f=Na?Va:function(e,t){if(e=za(e),t=Za(t),qa)try{return Va(e,t)}catch(e){}if(Ka(e,t))return Ha(!$a(Ga.f,e,t),e[t])};var Wa={},Ya=Ui,Qa=Math.max,Ja=Math.min,Xa=function(e,t){var r=Ya(e);return r<0?Qa(r+t,0):Ja(r,t)},es=Fa,ts=Xa,rs=Hi,ns=function(e){return function(t,r,n){var o,i=es(t),a=rs(i),s=ts(n,a);if(e&&r!=r){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===r)return e||s||0;return!e&&-1}},os={includes:ns(!0),indexOf:ns(!1)},is=ar,as=Fa,ss=os.indexOf,us=wo,cs=Yt([].push),ds=function(e,t){var r,n=as(e),o=0,i=[];for(r in n)!is(us,r)&&is(n,r)&&cs(i,r);for(;t.length>o;)is(n,r=t[o++])&&(~ss(i,r)||cs(i,r));return i},ls=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],fs=ds,ps=ls.concat("length","prototype");Wa.f=Object.getOwnPropertyNames||function(e){return fs(e,ps)};var hs={};hs.f=Object.getOwnPropertySymbols;var ms=un,vs=Wa,gs=hs,As=tn,bs=Yt([].concat),ys=ms("Reflect","ownKeys")||function(e){var t=vs.f(As(e)),r=gs.f;return r?bs(t,r(e)):t},_s=ar,ws=ys,xs=Ta,ks=Nr,Es=function(e,t,r){for(var n=ws(t),o=ks.f,i=xs.f,a=0;a<n.length;a++){var s=n[a];_s(e,s)||r&&_s(r,s)||o(e,s,i(t,s))}},Ss=zt,Ds=Fr,Rs=/#|\.prototype\./,Is=function(e,t){var r=Os[Cs(e)];return r==Ps||r!=Ts&&(Ds(t)?Ss(t):!!t)},Cs=Is.normalize=function(e){return String(e).replace(Rs,".").toLowerCase()},Os=Is.data={},Ts=Is.NATIVE="N",Ps=Is.POLYFILL="P",Ls=Is,Ms=Pt,Bs=Ta.f,js=go,Us=oi,Fs=jt,Ns=Es,$s=Ls,Gs=function(e,t){var r,n,o,i,a,s=e.target,u=e.global,c=e.stat;if(r=u?Ms:c?Ms[s]||Fs(s,{}):(Ms[s]||{}).prototype)for(n in t){if(i=t[n],o=e.dontCallGetSet?(a=Bs(r,n))&&a.value:r[n],!$s(u?n:s+(c?".":"#")+n,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Ns(i,o)}(e.sham||o&&o.sham)&&js(i,"sham",!0),Us(r,n,i,e)}},Hs=ds,zs=ls,Zs=Object.keys||function(e){return Hs(e,zs)},Ks=nr,Vs=Zs;Gs({target:"Object",stat:!0,forced:zt((function(){Vs(1)}))},{keys:function(e){return Vs(Ks(e))}});var Ws={name:"@bygd/gd-sdk-pes",version:"1.41.12",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"}},Ys=function(e){var t=Qs("object"===n(e)?e:function(e){if(e)try{return JSON.parse(e)}catch(e){}}(e));return t&&t.version?Ws.version>=t.version?t:void 0:t},Qs=function(e){var t=this;if(!K(e)||0===e.length)return e;if(1===e.length)return e[0];var n=0;e.forEach(function(e){r(this,t),e.weight=e.weight||1,n+=e.weight}.bind(this));var o=Math.floor(Math.random()*Math.floor(n));n=0;for(var i=0;i<e.length;i++){var a=e[i];if(o<(n+=a.weight))return a}},Js=function(){},Xs=function(){var e;(e=console).log.apply(e,arguments)},eu=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 tu={};function ru(e,t,r){return(t=T(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var nu=mi,ou=String,iu=function(e){if("Symbol"===nu(e))throw TypeError("Cannot convert a Symbol value to a string");return ou(e)},au={},su=$r,uu=Qr,cu=Nr,du=tn,lu=Fa,fu=Zs;au.f=su&&!uu?Object.defineProperties:function(e,t){du(e);for(var r,n=lu(t),o=fu(t),i=o.length,a=0;i>a;)cu.f(e,r=o[a++],n[r]);return e};var pu,hu=un("document","documentElement"),mu=tn,vu=au,gu=ls,Au=wo,bu=hu,yu=Vr,_u="prototype",wu="script",xu=_o("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,r;Du="undefined"!=typeof document?document.domain&&pu?Su(pu):(t=yu("iframe"),r="java"+wu+":",t.style.display="none",bu.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(Eu("document.F=Object")),e.close(),e.F):Su(pu);for(var n=gu.length;n--;)delete Du[_u][gu[n]];return Du()};Au[xu]=!0;var Ru=Object.create||function(e,t){var r;return null!==e?(ku[_u]=mu(e),r=new ku,ku[_u]=null,r[xu]=e):r=Du(),void 0===t?r:vu.f(r,t)},Iu={},Cu=jn,Ou=Nr,Tu=ho,Pu=function(e,t,r){var n=Cu(t);n in e?Ou.f(e,n,Tu(0,r)):e[n]=r},Lu=Xa,Mu=Hi,Bu=Pu,ju=Array,Uu=Math.max,Fu=function(e,t,r){for(var n=Mu(e),o=Lu(t,n),i=Lu(void 0===r?n:r,n),a=ju(Uu(i-o,0)),s=0;o<i;o++,s++)Bu(a,s,e[o]);return a.length=s,a},Nu=ui,$u=Fa,Gu=Wa.f,Hu=Fu,zu="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Iu.f=function(e){return zu&&"Window"==Nu(e)?function(e){try{return Gu(e)}catch(e){return Hu(zu)}}(e):Gu($u(e))};var Zu=Wn.exports,Ku=Nr,qu=function(e,t,r){return r.get&&Zu(r.get,t,{getter:!0}),r.set&&Zu(r.set,t,{setter:!0}),Ku.f(e,t,r)},Vu={},Wu=Pr;Vu.f=Wu;var Yu=Pt,Qu=ar,Ju=Vu,Xu=Nr.f,ec=function(e){var t=Yu.Symbol||(Yu.Symbol={});Qu(t,e)||Xu(t,e,{value:Ju.f(e)})},tc=on,rc=un,nc=Pr,oc=oi,ic=Nr.f,ac=ar,sc=Pr("toStringTag"),uc=function(e,t,r){e&&!r&&(e=e.prototype),e&&!ac(e,sc)&&ic(e,sc,{configurable:!0,value:t})},cc=Gs,dc=Pt,lc=on,fc=Yt,pc=$r,hc=wr,mc=zt,vc=ar,gc=cn,Ac=tn,bc=Fa,yc=jn,_c=iu,wc=ho,xc=Ru,kc=Zs,Ec=Wa,Sc=Iu,Dc=hs,Rc=Ta,Ic=Nr,Cc=au,Oc=Pa,Tc=oi,Pc=qu,Lc=Lt.exports,Mc=wo,Bc=lr,jc=Pr,Uc=Vu,Fc=ec,Nc=function(){var e=rc("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,n=nc("toPrimitive");t&&!t[n]&&oc(t,n,(function(e){return tc(r,this)}),{arity:1})},$c=uc,Gc=Bo,Hc=ya.forEach,zc=_o("hidden"),Zc="Symbol",Kc="prototype",qc=Gc.set,Vc=Gc.getterFor(Zc),Wc=Object[Kc],Yc=dc.Symbol,Qc=Yc&&Yc[Kc],Jc=dc.TypeError,Xc=dc.QObject,ed=Rc.f,td=Ic.f,rd=Sc.f,nd=Oc.f,od=fc([].push),id=Lc("symbols"),ad=Lc("op-symbols"),sd=Lc("wks"),ud=!Xc||!Xc[Kc]||!Xc[Kc].findChild,cd=pc&&mc((function(){return 7!=xc(td({},"a",{get:function(){return td(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=ed(Wc,t);n&&delete Wc[t],td(e,t,r),n&&e!==Wc&&td(Wc,t,n)}:td,dd=function(e,t){var r=id[e]=xc(Qc);return qc(r,{type:Zc,tag:e,description:t}),pc||(r.description=t),r},ld=function(e,t,r){e===Wc&&ld(ad,t,r),Ac(e);var n=yc(t);return Ac(r),vc(id,n)?(r.enumerable?(vc(e,zc)&&e[zc][n]&&(e[zc][n]=!1),r=xc(r,{enumerable:wc(0,!1)})):(vc(e,zc)||td(e,zc,wc(1,{})),e[zc][n]=!0),cd(e,n,r)):td(e,n,r)},fd=function(e,t){Ac(e);var r=bc(t),n=kc(r).concat(vd(r));return Hc(n,(function(t){pc&&!lc(pd,r,t)||ld(e,t,r[t])})),e},pd=function(e){var t=yc(e),r=lc(nd,this,t);return!(this===Wc&&vc(id,t)&&!vc(ad,t))&&(!(r||!vc(this,t)||!vc(id,t)||vc(this,zc)&&this[zc][t])||r)},hd=function(e,t){var r=bc(e),n=yc(t);if(r!==Wc||!vc(id,n)||vc(ad,n)){var o=ed(r,n);return!o||!vc(id,n)||vc(r,zc)&&r[zc][n]||(o.enumerable=!0),o}},md=function(e){var t=rd(bc(e)),r=[];return Hc(t,(function(e){vc(id,e)||vc(Mc,e)||od(r,e)})),r},vd=function(e){var t=e===Wc,r=rd(t?ad:bc(e)),n=[];return Hc(r,(function(e){!vc(id,e)||t&&!vc(Wc,e)||od(n,id[e])})),n};hc||(Yc=function(){if(gc(Qc,this))throw Jc("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?_c(arguments[0]):void 0,t=Bc(e),r=function(e){this===Wc&&lc(r,ad,e),vc(this,zc)&&vc(this[zc],t)&&(this[zc][t]=!1),cd(this,t,wc(1,e))};return pc&&ud&&cd(Wc,t,{configurable:!0,set:r}),dd(t,e)},Tc(Qc=Yc[Kc],"toString",(function(){return Vc(this).tag})),Tc(Yc,"withoutSetter",(function(e){return dd(Bc(e),e)})),Oc.f=pd,Ic.f=ld,Cc.f=fd,Rc.f=hd,Ec.f=Sc.f=md,Dc.f=vd,Uc.f=function(e){return dd(jc(e),e)},pc&&(Pc(Qc,"description",{configurable:!0,get:function(){return Vc(this).description}}),Tc(Wc,"propertyIsEnumerable",pd,{unsafe:!0}))),cc({global:!0,constructor:!0,wrap:!0,forced:!hc,sham:!hc},{Symbol:Yc}),Hc(kc(sd),(function(e){Fc(e)})),cc({target:Zc,stat:!0,forced:!hc},{useSetter:function(){ud=!0},useSimple:function(){ud=!1}}),cc({target:"Object",stat:!0,forced:!hc,sham:!pc},{create:function(e,t){return void 0===t?xc(e):fd(xc(e),t)},defineProperty:ld,defineProperties:fd,getOwnPropertyDescriptor:hd}),cc({target:"Object",stat:!0,forced:!hc},{getOwnPropertyNames:md}),Nc(),$c(Yc,Zc),Mc[zc]=!0;var gd=wr&&!!Symbol.for&&!!Symbol.keyFor,Ad=Gs,bd=un,yd=ar,_d=iu,wd=Lt.exports,xd=gd,kd=wd("string-to-symbol-registry"),Ed=wd("symbol-to-string-registry");Ad({target:"Symbol",stat:!0,forced:!xd},{for:function(e){var t=_d(e);if(yd(kd,t))return kd[t];var r=bd("Symbol")(t);return kd[t]=r,Ed[r]=t,r}});var Sd=Gs,Dd=ar,Rd=hn,Id=vn,Cd=gd,Od=(0,Lt.exports)("symbol-to-string-registry");Sd({target:"Symbol",stat:!0,forced:!Cd},{keyFor:function(e){if(!Rd(e))throw TypeError(Id(e)+" is not a symbol");if(Dd(Od,e))return Od[e]}});var Td=Zt,Pd=Function.prototype,Ld=Pd.apply,Md=Pd.call,Bd="object"==typeof Reflect&&Reflect.apply||(Td?Md.bind(Ld):function(){return Md.apply(Ld,arguments)}),jd=Yt([].slice),Ud=Zi,Fd=Fr,Nd=ui,$d=iu,Gd=Yt([].push),Hd=Gs,zd=un,Zd=Bd,Kd=on,qd=Yt,Vd=zt,Wd=Fr,Yd=hn,Qd=jd,Jd=function(e){if(Fd(e))return e;if(Ud(e)){for(var t=e.length,r=[],n=0;n<t;n++){var o=e[n];"string"==typeof o?Gd(r,o):"number"!=typeof o&&"Number"!=Nd(o)&&"String"!=Nd(o)||Gd(r,$d(o))}var i=r.length,a=!0;return function(e,t){if(a)return a=!1,t;if(Ud(this))return t;for(var n=0;n<i;n++)if(r[n]===e)return t}}},Xd=wr,el=String,tl=zd("JSON","stringify"),rl=qd(/./.exec),nl=qd("".charAt),ol=qd("".charCodeAt),il=qd("".replace),al=qd(1..toString),sl=/[\uD800-\uDFFF]/g,ul=/^[\uD800-\uDBFF]$/,cl=/^[\uDC00-\uDFFF]$/,dl=!Xd||Vd((function(){var e=zd("Symbol")();return"[null]"!=tl([e])||"{}"!=tl({a:e})||"{}"!=tl(Object(e))})),ll=Vd((function(){return'"\\udf06\\ud834"'!==tl("\udf06\ud834")||'"\\udead"'!==tl("\udead")})),fl=function(e,t){var r=Qd(arguments),n=Jd(t);if(Wd(n)||void 0!==e&&!Yd(e))return r[1]=function(e,t){if(Wd(n)&&(t=Kd(n,this,el(e),t)),!Yd(t))return t},Zd(tl,null,r)},pl=function(e,t,r){var n=nl(r,t-1),o=nl(r,t+1);return rl(ul,e)&&!rl(cl,o)||rl(cl,e)&&!rl(ul,n)?"\\u"+al(ol(e,0),16):e};tl&&Hd({target:"JSON",stat:!0,arity:3,forced:dl||ll},{stringify:function(e,t,r){var n=Qd(arguments),o=Zd(dl?fl:tl,null,n);return ll&&"string"==typeof o?il(o,sl,pl):o}});var hl=hs,ml=nr;Gs({target:"Object",stat:!0,forced:!wr||zt((function(){hl.f(1)}))},{getOwnPropertySymbols:function(e){var t=hl.f;return t?t(ml(e)):[]}});var vl=zt,gl=br,Al=Pr("species"),bl=function(e){return gl>=51||!vl((function(){var t=[];return(t.constructor={})[Al]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},yl=ya.filter;Gs({target:"Array",proto:!0,forced:!bl("filter")},{filter:function(e){return yl(this,e,arguments.length>1?arguments[1]:void 0)}});var _l=Gs,wl=zt,xl=Fa,kl=Ta.f,El=$r;_l({target:"Object",stat:!0,forced:!El||wl((function(){kl(1)})),sham:!El},{getOwnPropertyDescriptor:function(e,t){return kl(xl(e),t)}});var Sl=ys,Dl=Fa,Rl=Ta,Il=Pu;Gs({target:"Object",stat:!0,sham:!$r},{getOwnPropertyDescriptors:function(e){for(var t,r,n=Dl(e),o=Rl.f,i=Sl(n),a={},s=0;i.length>s;)void 0!==(r=o(n,t=i[s++]))&&Il(a,t,r);return a}});var Cl=Gs,Ol=Zi,Tl=ia,Pl=zr,Ll=Xa,Ml=Hi,Bl=Fa,jl=Pu,Ul=Pr,Fl=jd,Nl=bl("slice"),$l=Ul("species"),Gl=Array,Hl=Math.max;Cl({target:"Array",proto:!0,forced:!Nl},{slice:function(e,t){var r,n,o,i=Bl(this),a=Ml(i),s=Ll(e,a),u=Ll(void 0===t?a:t,a);if(Ol(i)&&(r=i.constructor,(Tl(r)&&(r===Gl||Ol(r.prototype))||Pl(r)&&null===(r=r[$l]))&&(r=void 0),r===Gl||void 0===r))return Fl(i,s,u);for(n=new(void 0===r?Gl:r)(Hl(u-s,0)),o=0;s<u;s++,o++)s in i&&jl(n,o,i[s]);return n.length=o,n}});var zl=on,Zl=tn,Kl=xn,ql=function(e,t,r){var n,o;Zl(e);try{if(!(n=Kl(e,"return"))){if("throw"===t)throw r;return r}n=zl(n,e)}catch(e){o=!0,n=e}if("throw"===t)throw r;if(o)throw n;return Zl(n),r},Vl=tn,Wl=ql,Yl={},Ql=Yl,Jl=Pr("iterator"),Xl=Array.prototype,ef=function(e){return void 0!==e&&(Ql.Array===e||Xl[Jl]===e)},tf=mi,rf=xn,nf=Qt,of=Yl,af=Pr("iterator"),sf=function(e){if(!nf(e))return rf(e,af)||rf(e,"@@iterator")||of[tf(e)]},uf=on,cf=yn,df=tn,lf=vn,ff=sf,pf=TypeError,hf=function(e,t){var r=arguments.length<2?ff(e):t;if(cf(r))return df(uf(r,e));throw pf(lf(e)+" is not iterable")},mf=Ri,vf=on,gf=nr,Af=function(e,t,r,n){try{return n?t(Vl(r)[0],r[1]):t(r)}catch(t){Wl(e,"throw",t)}},bf=ef,yf=ia,_f=Hi,wf=Pu,xf=hf,kf=sf,Ef=Array,Sf=function(e){var t=gf(e),r=yf(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=void 0!==o;i&&(o=mf(o,n>2?arguments[2]:void 0));var a,s,u,c,d,l,f=kf(t),p=0;if(!f||this===Ef&&bf(f))for(a=_f(t),s=r?new this(a):Ef(a);a>p;p++)l=i?o(t[p],p):t[p],wf(s,p,l);else for(d=(c=xf(t,f)).next,s=r?new this:[];!(u=vf(d,c)).done;p++)l=i?Af(c,o,[u.value,p],!0):u.value,wf(s,p,l);return s.length=p,s},Df=Pr("iterator"),Rf=!1;try{var If=0,Cf={next:function(){return{done:!!If++}},return:function(){Rf=!0}};Cf[Df]=function(){return this},Array.from(Cf,(function(){throw 2}))}catch(SS){}var Of=function(e,t){if(!t&&!Rf)return!1;var r=!1;try{var n={};n[Df]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r},Tf=Sf;Gs({target:"Array",stat:!0,forced:!Of((function(e){Array.from(e)}))},{from:Tf});var Pf,Lf,Mf,Bf=Yt,jf=Ui,Uf=iu,Ff=er,Nf=Bf("".charAt),$f=Bf("".charCodeAt),Gf=Bf("".slice),Hf=function(e){return function(t,r){var n,o,i=Uf(Ff(t)),a=jf(r),s=i.length;return a<0||a>=s?e?"":void 0:(n=$f(i,a))<55296||n>56319||a+1===s||(o=$f(i,a+1))<56320||o>57343?e?Nf(i,a):n:e?Gf(i,a,a+2):o-56320+(n-55296<<10)+65536}},zf={codeAt:Hf(!1),charAt:Hf(!0)},Zf=!zt((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Kf=ar,qf=Fr,Vf=nr,Wf=Zf,Yf=_o("IE_PROTO"),Qf=Object,Jf=Qf.prototype,Xf=Wf?Qf.getPrototypeOf:function(e){var t=Vf(e);if(Kf(t,Yf))return t[Yf];var r=t.constructor;return qf(r)&&t instanceof r?r.prototype:t instanceof Qf?Jf:null},ep=zt,tp=Fr,rp=zr,np=Xf,op=oi,ip=Pr("iterator"),ap=!1;[].keys&&("next"in(Mf=[].keys())?(Lf=np(np(Mf)))!==Object.prototype&&(Pf=Lf):ap=!0);var sp=!rp(Pf)||ep((function(){var e={};return Pf[ip].call(e)!==e}));sp&&(Pf={}),tp(Pf[ip])||op(Pf,ip,(function(){return this}));var up={IteratorPrototype:Pf,BUGGY_SAFARI_ITERATORS:ap},cp=up.IteratorPrototype,dp=Ru,lp=ho,fp=uc,pp=Yl,hp=function(){return this},mp=function(e,t,r,n){var o=t+" Iterator";return e.prototype=dp(cp,{next:lp(+!n,r)}),fp(e,o,!1),pp[o]=hp,e},vp=Yt,gp=yn,Ap=Fr,bp=String,yp=TypeError,_p=function(e,t,r){try{return vp(gp(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}},wp=tn,xp=function(e){if("object"==typeof e||Ap(e))return e;throw yp("Can't set "+bp(e)+" as a prototype")},kp=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=_p(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return wp(r),xp(n),t?e(r,n):r.__proto__=n,r}}():void 0),Ep=Gs,Sp=on,Dp=Fr,Rp=mp,Ip=Xf,Cp=kp,Op=uc,Tp=go,Pp=oi,Lp=Yl,Mp=to.PROPER,Bp=to.CONFIGURABLE,jp=up.IteratorPrototype,Up=up.BUGGY_SAFARI_ITERATORS,Fp=Pr("iterator"),Np="keys",$p="values",Gp="entries",Hp=function(){return this},zp=function(e,t,r,n,o,i,a){Rp(r,t,n);var s,u,c,d=function(e){if(e===o&&m)return m;if(!Up&&e in p)return p[e];switch(e){case Np:case $p:case Gp:return function(){return new r(this,e)}}return function(){return new r(this)}},l=t+" Iterator",f=!1,p=e.prototype,h=p[Fp]||p["@@iterator"]||o&&p[o],m=!Up&&h||d(o),v="Array"==t&&p.entries||h;if(v&&(s=Ip(v.call(new e)))!==Object.prototype&&s.next&&(Ip(s)!==jp&&(Cp?Cp(s,jp):Dp(s[Fp])||Pp(s,Fp,Hp)),Op(s,l,!0)),Mp&&o==$p&&h&&h.name!==$p&&(Bp?Tp(p,"name",$p):(f=!0,m=function(){return Sp(h,this)})),o)if(u={values:d($p),keys:i?m:d(Np),entries:d(Gp)},a)for(c in u)(Up||f||!(c in p))&&Pp(p,c,u[c]);else Ep({target:t,proto:!0,forced:Up||f},u);return p[Fp]!==m&&Pp(p,Fp,m,{name:o}),Lp[t]=m,u},Zp=function(e,t){return{value:e,done:t}},Kp=zf.charAt,qp=iu,Vp=Bo,Wp=zp,Yp=Zp,Qp="String Iterator",Jp=Vp.set,Xp=Vp.getterFor(Qp);Wp(String,"String",(function(e){Jp(this,{type:Qp,string:qp(e),index:0})}),(function(){var e,t=Xp(this),r=t.string,n=t.index;return n>=r.length?Yp(void 0,!0):(e=Kp(r,n),t.index+=e.length,Yp(e,!1))}));var eh=tn,th=function(){var e=eh(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},rh=zt,nh=Pt.RegExp,oh=rh((function(){var e=nh("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),ih=oh||rh((function(){return!nh("a","y").sticky})),ah=oh||rh((function(){var e=nh("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),sh={BROKEN_CARET:ah,MISSED_STICKY:ih,UNSUPPORTED_Y:oh},uh=zt,ch=Pt.RegExp,dh=uh((function(){var e=ch(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),lh=zt,fh=Pt.RegExp,ph=lh((function(){var e=fh("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),hh=on,mh=Yt,vh=iu,gh=th,Ah=sh,bh=Lt.exports,yh=Ru,_h=Bo.get,wh=dh,xh=ph,kh=bh("native-string-replace",String.prototype.replace),Eh=RegExp.prototype.exec,Sh=Eh,Dh=mh("".charAt),Rh=mh("".indexOf),Ih=mh("".replace),Ch=mh("".slice),Oh=function(){var e=/a/,t=/b*/g;return hh(Eh,e,"a"),hh(Eh,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),Th=Ah.BROKEN_CARET,Ph=void 0!==/()??/.exec("")[1];(Oh||Ph||Th||wh||xh)&&(Sh=function(e){var t,r,n,o,i,a,s,u=this,c=_h(u),d=vh(e),l=c.raw;if(l)return l.lastIndex=u.lastIndex,t=hh(Sh,l,d),u.lastIndex=l.lastIndex,t;var f=c.groups,p=Th&&u.sticky,h=hh(gh,u),m=u.source,v=0,g=d;if(p&&(h=Ih(h,"y",""),-1===Rh(h,"g")&&(h+="g"),g=Ch(d,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==Dh(d,u.lastIndex-1))&&(m="(?: "+m+")",g=" "+g,v++),r=new RegExp("^(?:"+m+")",h)),Ph&&(r=new RegExp("^"+m+"$(?!\\s)",h)),Oh&&(n=u.lastIndex),o=hh(Eh,p?r:u,g),p?o?(o.input=Ch(o.input,v),o[0]=Ch(o[0],v),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:Oh&&o&&(u.lastIndex=u.global?o.index+o[0].length:n),Ph&&o&&o.length>1&&hh(kh,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&f)for(o.groups=a=yh(null),i=0;i<f.length;i++)a[(s=f[i])[0]]=o[s[1]];return o});var Lh=Sh;Gs({target:"RegExp",proto:!0,forced:/./.exec!==Lh},{exec:Lh});var Mh=Gs,Bh=$r,jh=Yt,Uh=ar,Fh=Fr,Nh=cn,$h=iu,Gh=qu,Hh=Es,zh=Pt.Symbol,Zh=zh&&zh.prototype;if(Bh&&Fh(zh)&&(!("description"in Zh)||void 0!==zh().description)){var Kh={},qh=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&&(Kh[t]=!0),t};Hh(qh,zh),qh.prototype=Zh,Zh.constructor=qh;var Vh="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(Kh,e))return"";var t=Yh(e),r=Vh?Xh(t,7,-1):Jh(t,Qh,"$1");return""===r?void 0:r}}),Mh({global:!0,constructor:!0,forced:!0},{Symbol:qh})}ec("iterator");var em=Pr,tm=Ru,rm=Nr.f,nm=em("unscopables"),om=Array.prototype;null==om[nm]&&rm(om,nm,{configurable:!0,value:tm(null)});var im=function(e){om[nm][e]=!0},am=Fa,sm=im,um=Yl,cm=Bo,dm=Nr.f,lm=zp,fm=Zp,pm=$r,hm="Array Iterator",mm=cm.set,vm=cm.getterFor(hm),gm=lm(Array,"Array",(function(e,t){mm(this,{type:hm,target:am(e),index:0,kind:t})}),(function(){var e=vm(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,fm(void 0,!0)):fm("keys"==r?n:"values"==r?t[n]:[n,t[n]],!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=Ai,_m=_i,wm=gm,xm=go,km=Pr,Em=km("iterator"),Sm=km("toStringTag"),Dm=wm.values,Rm=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 r in wm)if(e[r]!==wm[r])try{xm(e,r,wm[r])}catch(t){e[r]=wm[r]}}};for(var Im in ym)Rm(bm[Im]&&bm[Im].prototype,Im);Rm(_m,"DOMTokenList");var Cm,Om,Tm,Pm,Lm="undefined"!=typeof process&&"process"==ui(process),Mm=un,Bm=qu,jm=$r,Um=Pr("species"),Fm=function(e){var t=Mm(e);jm&&t&&!t[Um]&&Bm(t,Um,{configurable:!0,get:function(){return this}})},Nm=cn,$m=TypeError,Gm=function(e,t){if(Nm(t,e))return e;throw $m("Incorrect invocation")},Hm=ia,zm=vn,Zm=TypeError,Km=tn,qm=function(e){if(Hm(e))return e;throw Zm(zm(e)+" is not a constructor")},Vm=Qt,Wm=Pr("species"),Ym=function(e,t){var r,n=Km(e).constructor;return void 0===n||Vm(r=Km(n)[Wm])?t:qm(r)},Qm=TypeError,Jm=function(e,t){if(e<t)throw Qm("Not enough arguments");return e},Xm=/(?:ipad|iphone|ipod).*applewebkit/i.test(fr),ev=Pt,tv=Bd,rv=Ri,nv=Fr,ov=ar,iv=zt,av=hu,sv=jd,uv=Vr,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";iv((function(){Cm=ev.location}));var wv=function(e){if(ov(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=nv(e)?e:vv(e),r=sv(arguments,1);return yv[++bv]=function(){tv(t,void 0,r)},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=rv(Pm.postMessage,Pm)):ev.addEventListener&&nv(ev.postMessage)&&!ev.importScripts&&Cm&&"file:"!==Cm.protocol&&!iv(Ev)?(Om=Ev,ev.addEventListener("message",kv,!1)):Om=_v in uv("script")?function(e){av.appendChild(uv("script"))[_v]=function(){av.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},r=this.tail;r?r.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 Rv,Iv,Cv,Ov,Tv,Pv=Dv,Lv=/ipad|iphone|ipod/i.test(fr)&&"undefined"!=typeof Pebble,Mv=/web0s(?!.*chrome)/i.test(fr),Bv=Pt,jv=Ri,Uv=Ta.f,Fv=Sv.set,Nv=Pv,$v=Xm,Gv=Lv,Hv=Mv,zv=Lm,Zv=Bv.MutationObserver||Bv.WebKitMutationObserver,Kv=Bv.document,qv=Bv.process,Vv=Bv.Promise,Wv=Uv(Bv,"queueMicrotask"),Yv=Wv&&Wv.value;if(!Yv){var Qv=new Nv,Jv=function(){var e,t;for(zv&&(e=qv.domain)&&e.exit();t=Qv.get();)try{t()}catch(e){throw Qv.head&&Rv(),e}e&&e.enter()};$v||zv||Hv||!Zv||!Kv?!Gv&&Vv&&Vv.resolve?((Ov=Vv.resolve(void 0)).constructor=Vv,Tv=jv(Ov.then,Ov),Rv=function(){Tv(Jv)}):zv?Rv=function(){qv.nextTick(Jv)}:(Fv=jv(Fv,Bv),Rv=function(){Fv(Jv)}):(Iv=!0,Cv=Kv.createTextNode(""),new Zv(Jv).observe(Cv,{characterData:!0}),Rv=function(){Cv.data=Iv=!Iv}),Yv=function(e){Qv.head||Rv(),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,rg="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,ng=!rg&&!Lm&&"object"==typeof window&&"object"==typeof document,og=Pt,ig=tg,ag=Fr,sg=Ls,ug=co,cg=Pr,dg=ng,lg=rg,fg=br;ig&&ig.prototype;var pg=cg("species"),hg=!1,mg=ag(og.PromiseRejectionEvent),vg=sg("Promise",(function(){var e=ug(ig),t=e!==String(ig);if(!t&&66===fg)return!0;if(!fg||fg<51||!/native code/.test(e)){var r=new ig((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[pg]=n,!(hg=r.then((function(){}))instanceof n))return!0}return!t&&(dg||lg)&&!mg})),gg={CONSTRUCTOR:vg,REJECTION_EVENT:mg,SUBCLASSING:hg},Ag={},bg=yn,yg=TypeError,_g=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw yg("Bad Promise constructor");t=e,r=n})),this.resolve=bg(t),this.reject=bg(r)};Ag.f=function(e){return new _g(e)};var wg,xg,kg,Eg=Gs,Sg=Lm,Dg=Pt,Rg=on,Ig=oi,Cg=kp,Og=uc,Tg=Fm,Pg=yn,Lg=Fr,Mg=zr,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=Bo,zg=tg,Zg=Ag,Kg="Promise",qg=gg.CONSTRUCTOR,Vg=gg.REJECTION_EVENT,Wg=gg.SUBCLASSING,Yg=Hg.getterFor(Kg),Qg=Hg.set,Jg=zg&&zg.prototype,Xg=zg,eA=Jg,tA=Dg.TypeError,rA=Dg.document,nA=Dg.process,oA=Zg.f,iA=oA,aA=!!(rA&&rA.createEvent&&Dg.dispatchEvent),sA="unhandledrejection",uA=function(e){var t;return!(!Mg(e)||!Lg(t=e.then))&&t},cA=function(e,t){var r,n,o,i=t.value,a=1==t.state,s=a?e.ok:e.fail,u=e.resolve,c=e.reject,d=e.domain;try{s?(a||(2===t.rejection&&hA(t),t.rejection=1),!0===s?r=i:(d&&d.enter(),r=s(i),d&&(d.exit(),o=!0)),r===e.promise?c(tA("Promise-chain cycle")):(n=uA(r))?Rg(n,r,u,c):u(r)):c(i)}catch(e){d&&!o&&d.exit(),c(e)}},dA=function(e,t){e.notified||(e.notified=!0,Fg((function(){for(var r,n=e.reactions;r=n.get();)cA(r,e);e.notified=!1,t&&!e.rejection&&fA(e)})))},lA=function(e,t,r){var n,o;aA?((n=rA.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),Dg.dispatchEvent(n)):n={promise:t,reason:r},!Vg&&(o=Dg["on"+e])?o(n):e===sA&&Ng("Unhandled promise rejection",r)},fA=function(e){Rg(Ug,Dg,(function(){var t,r=e.facade,n=e.value;if(pA(e)&&(t=$g((function(){Sg?nA.emit("unhandledRejection",n,r):lA(sA,r,n)})),e.rejection=Sg||pA(e)?2:1,t.error))throw t.value}))},pA=function(e){return 1!==e.rejection&&!e.parent},hA=function(e){Rg(Ug,Dg,(function(){var t=e.facade;Sg?nA.emit("rejectionHandled",t):lA("rejectionhandled",t,e.value)}))},mA=function(e,t,r){return function(n){e(t,n,r)}},vA=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,dA(e,!0))},gA=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw tA("Promise can't be resolved itself");var n=uA(t);n?Fg((function(){var r={done:!1};try{Rg(n,t,mA(gA,r,e),mA(vA,r,e))}catch(t){vA(r,t,e)}})):(e.value=t,e.state=1,dA(e,!1))}catch(t){vA({done:!1},t,e)}}};if(qg&&(Xg=function(e){Bg(this,eA),Pg(e),Rg(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:Kg,done:!1,notified:!1,parent:!1,reactions:new Gg,rejection:!1,state:0,value:void 0})}).prototype=Ig(eA,"then",(function(e,t){var r=Yg(this),n=oA(jg(this,Xg));return r.parent=!0,n.ok=!Lg(e)||e,n.fail=Lg(t)&&t,n.domain=Sg?nA.domain:void 0,0==r.state?r.reactions.add(n):Fg((function(){cA(n,r)})),n.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=oA=function(e){return e===Xg||undefined===e?new xg(e):iA(e)},Lg(zg)&&Jg!==Object.prototype)){kg=Jg.then,Wg||Ig(Jg,"then",(function(e,t){var r=this;return new Xg((function(e,t){Rg(kg,r,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:qg},{Promise:Xg}),Og(Xg,Kg,!1),Tg(Kg);var AA=Ri,bA=on,yA=tn,_A=vn,wA=ef,xA=Hi,kA=cn,EA=hf,SA=sf,DA=ql,RA=TypeError,IA=function(e,t){this.stopped=e,this.result=t},CA=IA.prototype,OA=function(e,t,r){var n,o,i,a,s,u,c,d=r&&r.that,l=!(!r||!r.AS_ENTRIES),f=!(!r||!r.IS_RECORD),p=!(!r||!r.IS_ITERATOR),h=!(!r||!r.INTERRUPTED),m=AA(t,d),v=function(e){return n&&DA(n,"normal",e),new IA(!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)n=e.iterator;else if(p)n=e;else{if(!(o=SA(e)))throw RA(_A(e)+" is not iterable");if(wA(o)){for(i=0,a=xA(e);a>i;i++)if((s=g(e[i]))&&kA(CA,s))return s;return new IA(!1)}n=EA(e,o)}for(u=f?e.next:n.next;!(c=bA(u,n)).done;){try{s=g(c.value)}catch(e){DA(n,"throw",e)}if("object"==typeof s&&s&&kA(CA,s))return s}return new IA(!1)},TA=tg,PA=gg.CONSTRUCTOR||!Of((function(e){TA.all(e).then(void 0,(function(){}))})),LA=on,MA=yn,BA=Ag,jA=eg,UA=OA;Gs({target:"Promise",stat:!0,forced:PA},{all:function(e){var t=this,r=BA.f(t),n=r.resolve,o=r.reject,i=jA((function(){var r=MA(t.resolve),i=[],a=0,s=1;UA(e,(function(e){var u=a++,c=!1;s++,LA(r,t,e).then((function(e){c||(c=!0,i[u]=e,--s||n(i))}),o)})),--s||n(i)}));return i.error&&o(i.value),r.promise}});var FA=Gs,NA=gg.CONSTRUCTOR,$A=tg,GA=un,HA=Fr,zA=oi,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 KA=GA("Promise").prototype.catch;ZA.catch!==KA&&zA(ZA,"catch",KA,{unsafe:!0})}var qA=on,VA=yn,WA=Ag,YA=eg,QA=OA;Gs({target:"Promise",stat:!0,forced:PA},{race:function(e){var t=this,r=WA.f(t),n=r.reject,o=YA((function(){var o=VA(t.resolve);QA(e,(function(e){qA(o,t,e).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}});var JA=on,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=tn,tb=zr,rb=Ag,nb=function(e,t){if(eb(e),tb(t)&&t.constructor===e)return t;var r=rb.f(e);return(0,r.resolve)(t),r.promise},ob=Gs,ib=gg.CONSTRUCTOR,ab=nb;un("Promise"),ob({target:"Promise",stat:!0,forced:ib},{resolve:function(e){return ab(this,e)}});var sb=TypeError,ub=Gs,cb=zt,db=Zi,lb=zr,fb=nr,pb=Hi,hb=function(e){if(e>9007199254740991)throw sb("Maximum allowed index exceeded");return e},mb=Pu,vb=fa,gb=bl,Ab=br,bb=Pr("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,r,n,o,i,a=fb(this),s=vb(a,0),u=0;for(t=-1,n=arguments.length;t<n;t++)if(_b(i=-1===t?a:arguments[t]))for(o=pb(i),hb(u+o),r=0;r<o;r++,u++)r in i&&mb(s,u,i[r]);else hb(u+1),mb(s,u++,i);return s.length=u,s}});var wb=$r,xb=to.EXISTS,kb=Yt,Eb=qu,Sb=Function.prototype,Db=kb(Sb.toString),Rb=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Ib=kb(Rb.exec);function Cb(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return Ob(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ob(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}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 i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function Ob(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Tb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Pb(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Tb(Object(r),!0).forEach((function(t){ru(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tb(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}wb&&!xb&&Eb(Sb,"name",{configurable:!0,get:function(){try{return Ib(Rb,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,n=e.id,o=e.src;return new Promise(function(e,i){if(r(this,t),document.getElementById(n))e();else{var a=document.createElement("script");a.onload=function(){e()},a.id=n,a.setAttribute("crossorigin",!0),a.src=o,document.head.appendChild(a)}}.bind(this))},Fb=function(){var e=t(d.mark((function e(t){var r,n,o,i,a,s,u,c;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r=window[t])){e.next=3;break}return e.abrupt("return",r);case 3:if(!(n=Bb[t]).isLoading){e.next=6;break}return e.abrupt("return");case 6:n.isLoading=!0,o=Cb(n.dependencies),e.prev=8,o.s();case 10:if((i=o.n()).done){e.next=26;break}if(a=i.value,e.prev=12,s=Mb[a].name,!window[s]){e.next=16;break}return e.abrupt("continue",24);case 16:return e.next=18,Ub({id:a,src:Mb[a].src});case 18:e.next=24;break;case 20:e.prev=20,e.t0=e.catch(12),u=a.id,c=a.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),o.e(e.t1);case 31:return e.prev=31,o.f(),e.finish(31);case 34:return e.prev=34,e.next=37,Ub({id:t,src:n.source});case 37:r=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(n.source,"."),e.t2);case 43:return n.isLoading=!1,e.abrupt("return",r);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 r=this;O(this,e),ru(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:r.leaderboard=e.sent;case 3:case"end":return e.stop()}}),e)})))),ru(this,"showLeaderboard",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(n=window.GD_OPTIONS.gameId,r.leaderboard){e.next=4;break}return e.next=4,r.load();case 4:r.leaderboard.showLeaderBoard(n,t);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),ru(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(r.leaderboard){e.next=3;break}return e.next=3,r.load();case 3:r.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=zr,Hb=ui,zb=Pr("match"),Zb=function(e){var t;return Gb(e)&&(void 0!==(t=e[zb])?!!t:"RegExp"==Hb(e))},Kb=Zb,qb=TypeError,Vb=function(e){if(Kb(e))throw qb("The method doesn't accept regular expressions");return e},Wb=Pr("match"),Yb=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[Wb]=!1,"/./"[e](t)}catch(e){}}return!1},Qb=Gs,Jb=ki,Xb=Ta.f,ey=$i,ty=iu,ry=Vb,ny=er,oy=Yb,iy=Jb("".startsWith),ay=Jb("".slice),sy=Math.min,uy=oy("startsWith");Qb({target:"String",proto:!0,forced:!!(uy||(Lb=Xb(String.prototype,"startsWith"),!Lb||Lb.writable))&&!uy},{startsWith:function(e){var t=ty(ny(this));ry(e);var r=ey(sy(arguments.length>1?arguments[1]:void 0,t.length)),n=ty(e);return iy?iy(t,n,r):ay(t,r,r+n.length)===n}});var cy=on,dy=ar,ly=cn,fy=th,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=to.PROPER,vy=oi,gy=tn,Ay=iu,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=ki,Sy=oi,Dy=Lh,Ry=zt,Iy=Pr,Cy=go,Oy=Iy("species"),Ty=RegExp.prototype,Py=function(e,t,r,n){var o=Iy(e),i=!Ry((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!Ry((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[Oy]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return t=!0,null},r[o](""),!t}));if(!i||!a||r){var s=Ey(/./[o]),u=t(o,""[e],(function(e,t,r,n,o){var a=Ey(e),u=t.exec;return u===Dy||u===Ty.exec?i&&!o?{done:!0,value:s(t,r,n)}:{done:!0,value:a(r,t,n)}:{done:!1}}));Sy(String.prototype,e,u[0]),Sy(Ty,o,u[1])}n&&Cy(Ty[o],"sham",!0)},Ly=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t},My=on,By=tn,jy=Fr,Uy=ui,Fy=Lh,Ny=TypeError,$y=function(e,t){var r=e.exec;if(jy(r)){var n=My(r,e,t);return null!==n&&By(n),n}if("RegExp"===Uy(e))return My(Fy,e,t);throw Ny("RegExp#exec called on incompatible receiver")},Gy=on,Hy=tn,zy=Qt,Zy=er,Ky=Ly,qy=iu,Vy=xn,Wy=$y;function Yy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Qy(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Yy(Object(r),!0).forEach((function(t){ru(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yy(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}Py("search",(function(e,t,r){return[function(t){var r=Zy(this),n=zy(t)?void 0:Vy(t,e);return n?Gy(n,t,r):new RegExp(t)[e](qy(r))},function(e){var n=Hy(this),o=qy(e),i=r(t,n,o);if(i.done)return i.value;var a=n.lastIndex;Ky(a,0)||(n.lastIndex=0);var s=Wy(n,o);return Ky(n.lastIndex,a)||(n.lastIndex=a),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(),r=this._isExtHostedGameURL(),n=e||r?this._getTokenGameURLConfig():{};n=n||{};var o=decodeURIComponent((e||r)&&n.parentURL?n.parentURL:at()),i=decodeURIComponent((e||r)&&n.parentDomain?n.parentDomain:it()),a=decodeURIComponent((e||r)&&n.topDomain?n.topDomain:r&&0===pt()?i:vt()),s=(e||r)&&n.loaderEnabled,u=(e||r)&&n.loaderEnabled,c=(e||r)&&n.loaderEnabled,d=(e||r)&&n.loaderEnabled,l=(e||r)&&n.loaderEnabled,f=(e||r)&&n.loaderEnabled,p=(e||r)&&n.loaderEnabled;console.log("noMinijuegosSDK",p);var h=(e||r)&&n.loaderEnabled,m=(e||r)&&n.loaderEnabled&&n.hasImpression&&n.version>="1.1.24";return{isTokenGameURL:e,isMasterGameURL:t,isExtHostedGameURL:r,noConsoleBanner:s,noLoadedEvent:u,noBlockerEvent:c,noPreroll:h,parentURL:o,parentDomain:i,topDomain:a&&a.length?a:i,noGAPageView:d,noLotamePageView:l,noGamedockSDK:f,noMinijuegosSDK:p,version:n.version,pauseGameOnStartup:m,depth:pt(),domainMatched:i===a,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 r=new C(location.href,!0);if(!r.query.gd_zone_config)return;e=r.query.gd_zone_config}else if(t.test(document.referrer)){var n=new C(document.referrer,!0);if(!n.query.gd_zone_config)return;e=n.query.gd_zone_config}else{var o=new C(location.href,!0);if(!o.query.gd_zone_config)return;e=o.query.gd_zone_config}return JSON.parse(rt.decode(decodeURIComponent(e)))}catch(e){}}},{key:"_formatTokenURLSearch",value:function(e){var t="";try{t=encodeURIComponent(rt.encode(JSON.stringify(e)))}catch(e){}try{var r=new C(location.href,!0);return r.query=r.query||{},r.query.gd_zone_config=t,"?".concat(qs.stringify(r.query))}catch(e){return"?gd_zone_config=".concat(t)}}},{key:"_extendUrlQuery",value:function(e,t){var r=new C(e,!0);return r.query=Qy(Qy({},r.query),t),r.toString()}},{key:"_base64_encode",value:function(e){return rt.encode(JSON.stringify(e))}}]),e}(),t_=function(){try{return(new e_).getBridgeContext()}catch(e){return{}}}(),r_={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)},n_=zf.charAt,o_=Yt,i_=nr,a_=Math.floor,s_=o_("".charAt),u_=o_("".replace),c_=o_("".slice),d_=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l_=/\$([$&'`]|\d{1,2})/g,f_=Bd,p_=on,h_=Yt,m_=Py,v_=zt,g_=tn,A_=Fr,b_=Qt,y_=Ui,__=$i,w_=iu,x_=er,k_=function(e,t,r){return t+(r?n_(e,t).length:1)},E_=xn,S_=function(e,t,r,n,o,i){var a=r+e.length,s=n.length,u=l_;return void 0!==o&&(o=i_(o),u=d_),u_(i,u,(function(i,u){var c;switch(s_(u,0)){case"$":return"$";case"&":return e;case"`":return c_(t,0,r);case"'":return c_(t,a);case"<":c=o[c_(u,1,-1)];break;default:var d=+u;if(0===d)return i;if(d>s){var l=a_(d/10);return 0===l?i:l<=s?void 0===n[l-1]?s_(u,1):n[l-1]+s_(u,1):i}c=n[d-1]}return void 0===c?"":c}))},D_=$y,R_=Pr("replace"),I_=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_=!!/./[R_]&&""===/./[R_]("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,r){var n=j_?"$":"$0";return[function(e,r){var n=x_(this),o=b_(e)?void 0:E_(e,R_);return o?p_(o,e,n,r):p_(t,w_(n),e,r)},function(e,o){var i=g_(this),a=w_(e);if("string"==typeof o&&-1===P_(o,n)&&-1===P_(o,"$<")){var s=r(t,i,a,o);if(s.done)return s.value}var u=A_(o);u||(o=w_(o));var c=i.global;if(c){var d=i.unicode;i.lastIndex=0}for(var l=[];;){var f=D_(i,a);if(null===f)break;if(T_(l,f),!c)break;""===w_(f[0])&&(i.lastIndex=k_(a,__(i.lastIndex),d))}for(var p="",h=0,m=0;m<l.length;m++){for(var v=w_((f=l[m])[0]),g=I_(C_(y_(f.index),a.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,a);void 0!==y&&T_(_,y);var w=w_(f_(o,void 0,_))}else w=S_(v,a,g,A,y,o);g>=h&&(p+=L_(a,h,g)+w,h=g+v.length)}return p+L_(a,h)}]}),!U_||!B_||j_);var F_=zt,N_=$r,$_=Pr("iterator"),G_=!F_((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),r+=n+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"!==r||"x"!==new URL("http://x",void 0).host})),H_=oi,z_=Fu,Z_=Math.floor,K_=function(e,t){var r=e.length,n=Z_(r/2);return r<8?q_(e,t):V_(e,K_(z_(e,0,n),t),K_(z_(e,n),t),t)},q_=function(e,t){for(var r,n,o=e.length,i=1;i<o;){for(n=i,r=e[i];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==i++&&(e[n]=r)}return e},V_=function(e,t,r,n){for(var o=t.length,i=r.length,a=0,s=0;a<o||s<i;)e[a+s]=a<o&&s<i?n(t[a],r[s])<=0?t[a++]:r[s++]:a<o?t[a++]:r[s++];return e},W_=Gs,Y_=Pt,Q_=on,J_=Yt,X_=$r,ew=G_,tw=oi,rw=qu,nw=function(e,t,r){for(var n in t)H_(e,n,t[n],r);return e},ow=uc,iw=mp,aw=Bo,sw=Gm,uw=Fr,cw=ar,dw=Ri,lw=mi,fw=tn,pw=zr,hw=iu,mw=Ru,vw=ho,gw=hf,Aw=sf,bw=Jm,yw=K_,_w=Pr("iterator"),ww="URLSearchParams",xw=ww+"Iterator",kw=aw.set,Ew=aw.getterFor(ww),Sw=aw.getterFor(xw),Dw=Object.getOwnPropertyDescriptor,Rw=function(e){if(!X_)return Y_[e];var t=Dw(Y_,e);return t&&t.value},Iw=Rw("fetch"),Cw=Rw("Request"),Ow=Rw("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),Kw=/\+/g,qw=Array(4),Vw=function(e){return qw[e-1]||(qw[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,Kw," "),r=4;try{return Bw(t)}catch(e){for(;r;)t=$w(t,Vw(r--),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=iw((function(e,t){kw(this,{type:xw,iterator:gw(Ew(e).entries),kind:t})}),"Iterator",(function(){var e=Sw(this),t=e.kind,r=e.iterator.next(),n=r.value;return r.done||(r.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),r}),!0),rx=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)))};rx.prototype={type:ww,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,o,i,a,s,u=Aw(e);if(u)for(r=(t=gw(e,u)).next;!(n=Q_(r,t)).done;){if(i=(o=gw(fw(n.value))).next,(a=Q_(i,o)).done||(s=Q_(i,o)).done||!Q_(i,o).done)throw Mw("Expected sequence with length 2");Nw(this.entries,{key:hw(a.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,r,n=zw(e,"&"),o=0;o<n.length;)(t=n[o++]).length&&(r=zw(t,"="),Nw(this.entries,{key:Yw(Gw(r)),value:Yw(Fw(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],Nw(r,ex(e.key)+"="+ex(e.value));return Fw(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var nx=function(){sw(this,ox);var e=kw(this,new rx(arguments.length>0?arguments[0]:void 0));X_||(this.length=e.entries.length)},ox=nx.prototype;if(nw(ox,{append:function(e,t){bw(arguments.length,2);var r=Ew(this);Nw(r.entries,{key:hw(e),value:hw(t)}),X_||this.length++,r.updateURL()},delete:function(e){bw(arguments.length,1);for(var t=Ew(this),r=t.entries,n=hw(e),o=0;o<r.length;)r[o].key===n?Hw(r,o,1):o++;X_||(this.length=r.length),t.updateURL()},get:function(e){bw(arguments.length,1);for(var t=Ew(this).entries,r=hw(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){bw(arguments.length,1);for(var t=Ew(this).entries,r=hw(e),n=[],o=0;o<t.length;o++)t[o].key===r&&Nw(n,t[o].value);return n},has:function(e){bw(arguments.length,1);for(var t=Ew(this).entries,r=hw(e),n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){bw(arguments.length,1);for(var r,n=Ew(this),o=n.entries,i=!1,a=hw(e),s=hw(t),u=0;u<o.length;u++)(r=o[u]).key===a&&(i?Hw(o,u--,1):(i=!0,r.value=s));i||Nw(o,{key:a,value:s}),X_||(this.length=o.length),n.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,r=Ew(this).entries,n=dw(e,arguments.length>1?arguments[1]:void 0),o=0;o<r.length;)n((t=r[o++]).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(ox,_w,ox.entries,{name:"entries"}),tw(ox,"toString",(function(){return Ew(this).serialize()}),{enumerable:!0}),X_&&rw(ox,"size",{get:function(){return Ew(this).entries.length},configurable:!0,enumerable:!0}),ow(nx,ww),W_({global:!0,constructor:!0,forced:!ew},{URLSearchParams:nx}),!ew&&uw(Ow)){var ix=J_(Pw.has),ax=J_(Pw.set),sx=function(e){if(pw(e)){var t,r=e.body;if(lw(r)===ww)return t=e.headers?new Ow(e.headers):new Ow,ix(t,"content-type")||ax(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),mw(e,{body:vw(0,hw(r)),headers:vw(0,t)})}return e};if(uw(Iw)&&W_({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return Iw(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:nx,getState:Ew},dx=os.includes,lx=im;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=Vb,hx=er,mx=iu,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 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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t="string"==typeof e||e instanceof String;if(!t){var n=r(e);throw null===e?n="null":"object"===n&&(n=e.constructor.name),new TypeError("Expected a string but received a ".concat(n))}},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,n.default)(e),e=Date.parse(e),isNaN(e)?null:new Date(e)};var r,n=(r=yx.exports)&&r.__esModule?r:{default:r};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 Rx,Ix=0;Ix<Dx.length;Ix++)kx[Rx="en-".concat(Dx[Ix])]=kx["en-US"],Ex[Rx]=Ex["en-US"],Sx[Rx]=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 r=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 n=parseFloat(e.replace(",","."));return r.test(e)&&(!t.hasOwnProperty("min")||n>=t.min)&&(!t.hasOwnProperty("max")||n<=t.max)&&(!t.hasOwnProperty("lt")||n<t.lt)&&(!t.hasOwnProperty("gt")||n>t.gt)},wx.locales=void 0;var Hx,zx=(Hx=yx.exports)&&Hx.__esModule?Hx:{default:Hx},Zx=xx;var Kx=Object.keys(Zx.decimal);wx.locales=Kx,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e)?parseFloat(e):NaN};var r=function(e){return e&&e.__esModule?e:{default:e}}(wx);e.exports=t.default,e.exports.default=t.default}(_x,_x.exports);var qx={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(e),parseInt(e,t||10)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);e.exports=t.default,e.exports.default=t.default}(qx,qx.exports);var Vx={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),t)return"1"===e||/^true$/i.test(e);return"0"!==e&&!/^false$/i.test(e)&&""!==e};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);e.exports=t.default,e.exports.default=t.default}(Vx,Vx.exports);var Wx={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(e),e===t};var r=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 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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){"object"===r(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 r in t)void 0===e[r]&&(e[r]=t[r]);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,i){if((0,r.default)(e),i=(0,o.default)(i,a),i.ignoreCase)return e.toLowerCase().split((0,n.default)(t).toLowerCase()).length>i.minOccurrences;return e.split((0,n.default)(t)).length>i.minOccurrences};var r=i(yx.exports),n=i(Qx.exports),o=i(Jx.exports);function i(e){return e&&e.__esModule?e:{default:e}}var a={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,n){(0,r.default)(e),"[object RegExp]"!==Object.prototype.toString.call(t)&&(t=new RegExp(t,n));return!!e.match(t)};var r=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 o,i;(0,r.default)(e),"object"===n(t)?(o=t.min||0,i=t.max):(o=arguments[1],i=arguments[2]);var a=encodeURI(e).split(/%..|./).length-1;return a>=o&&(void 0===i||a<=i)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);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)}e.exports=t.default,e.exports.default=t.default}(tk,tk.exports);var rk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e),t=(0,n.default)(t,i),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 o=e.split("."),a=o[o.length-1];if(t.require_tld){if(o.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(a))return!1;if(/\s/.test(a))return!1}if(!t.allow_numeric_tld&&/^\d+$/.test(a))return!1;return o.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 r=o(yx.exports),n=o(Jx.exports);function o(e){return e&&e.__esModule?e:{default:e}}var i={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}(rk,rk.exports);var nk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if((0,r.default)(t),n=String(n),!n)return e(t,4)||e(t,6);if("4"===n)return i.test(t);if("6"===n)return s.test(t);return!1};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",o="(".concat(n,"[.]){3}").concat(n),i=new RegExp("^".concat(o,"$")),a="(?:[0-9a-fA-F]{1,4})",s=new RegExp("^("+"(?:".concat(a,":){7}(?:").concat(a,"|:)|")+"(?:".concat(a,":){6}(?:").concat(o,"|:").concat(a,"|:)|")+"(?:".concat(a,":){5}(?::").concat(o,"|(:").concat(a,"){1,2}|:)|")+"(?:".concat(a,":){4}(?:(:").concat(a,"){0,1}:").concat(o,"|(:").concat(a,"){1,3}|:)|")+"(?:".concat(a,":){3}(?:(:").concat(a,"){0,2}:").concat(o,"|(:").concat(a,"){1,4}|:)|")+"(?:".concat(a,":){2}(?:(:").concat(a,"){0,3}:").concat(o,"|(:").concat(a,"){1,5}|:)|")+"(?:".concat(a,":){1}(?:(:").concat(a,"){0,4}:").concat(o,"|(:").concat(a,"){1,6}|:)|")+"(?::((?::".concat(a,"){0,5}:").concat(o,"|(?::").concat(a,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");e.exports=t.default,e.exports.default=t.default}(nk,nk.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,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,o.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,o.default)(y,{max:64})&&(0,o.default)(A,{max:254})))return!1;if(!(0,i.default)(A,{require_tld:t.require_tld,ignore_max_length:t.ignore_max_length})){if(!t.allow_ip_domain)return!1;if(!(0,a.default)(A)){if(!A.startsWith("[")||!A.endsWith("]"))return!1;var k=A.slice(1,-1);if(0===k.length||!(0,a.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 r=s(yx.exports),n=s(Jx.exports),o=s(tk.exports),i=s(rk.exports),a=s(nk.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 ok={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),!e||/[\s<>]/.test(e))return!1;if(0===e.indexOf("mailto:"))return!1;if(t=(0,i.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 a,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(a=v.shift().toLowerCase(),t.require_valid_protocol&&-1===t.protocols.indexOf(a))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 r=[],n=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))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,o.default)(f)||(0,n.default)(f,t)||g&&(0,o.default)(g,6)))return!1;if(f=f||g,t.host_blacklist&&l(f,t.host_blacklist))return!1;return!0};var r=a(yx.exports),n=a(rk.exports),o=a(nk.exports),i=a(Jx.exports);function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}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 r=0;r<t.length;r++){var n=t[r];if(e===n||d(n)&&n.test(e))return!0}return!1}e.exports=t.default,e.exports.default=t.default}(ok,ok.exports);var ik={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,c){(0,r.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?o.test(t):"64"===c.eui?s.test(t):o.test(t)||s.test(t);if("48"===(null==c?void 0:c.eui))return n.test(t)||i.test(t);if("64"===(null==c?void 0:c.eui))return a.test(t)||u.test(t);return e(t,{eui:"48"})||e(t,{eui:"64"})};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/^(?:[0-9a-fA-F]{2}([-:\s]))([0-9a-fA-F]{2}\1){4}([0-9a-fA-F]{2})$/,o=/^([0-9a-fA-F]){12}$/,i=/^([0-9a-fA-F]{4}\.){2}([0-9a-fA-F]{4})$/,a=/^(?:[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}(ik,ik.exports);var ak={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,r.default)(e);var o=e.split("/");if(2!==o.length)return!1;if(!i.test(o[1]))return!1;if(o[1].length>1&&o[1].startsWith("0"))return!1;var u=(0,n.default)(o[0],t);if(!u)return!1;var c=null;switch(String(t)){case"4":c=a;break;case"6":c=s;break;default:c=(0,n.default)(o[0],"6")?s:a}return o[1]<=c&&o[1]>=0};var r=o(yx.exports),n=o(nk.exports);function o(e){return e&&e.__esModule?e:{default:e}}var i=/^\d{1,3}$/,a=32,s=128;e.exports=t.default,e.exports.default=t.default}(ak,ak.exports);var sk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){t="string"==typeof t?(0,r.default)({format:t},a):(0,r.default)(t,a);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 i,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 r=[],n=Math.min(e.length,t.length),o=0;o<n;o++)r.push([e[o],t[o]]);return r}(e.split(u),t.format.toLowerCase().split(s)),d={},l=function(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=o(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},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,s=!0,u=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}(c);try{for(l.s();!(i=l.n()).done;){var f=n(i.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 r=function(e){return e&&e.__esModule?e:{default:e}}(Jx.exports);function n(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 r=[],n=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}return r}(e,t)||o(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 o(e,t){if(e){if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var a={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,r.default)(t,n),"string"==typeof e&&o[t.hourFormat][t.mode].test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(Jx.exports);var n={hourFormat:"hour24",mode:"default"},o={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]:n;if((0,r.default)(e),t.loose)return i.includes(e.toLowerCase());return o.includes(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n={loose:!1},o=["true","false","1","0"],i=[].concat(o,["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,r.default)(e),"en_US_POSIX"===e||"ca_ES_VALENCIA"===e)return!0;return n.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/^[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",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,fk.default)(e);var n=e,o=r.ignore;if(o)if(o instanceof RegExp)n=n.replace(o,"");else{if("string"!=typeof o)throw new Error("ignore should be instance of a String or RegExp");n=n.replace(new RegExp("[".concat(o.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),"]"),"g"),"")}if(t in pk.alpha)return pk.alpha[t].test(n);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",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,vk.default)(e);var n=e,o=r.ignore;if(o)if(o instanceof RegExp)n=n.replace(o,"");else{if("string"!=typeof o)throw new Error("ignore should be instance of a String or RegExp");n=n.replace(new RegExp("[".concat(o.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),"]"),"g"),"")}if(t in gk.alphanumeric)return gk.alphanumeric[t].test(n);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,r.default)(e),t&&t.no_symbols)return o.test(e);return new RegExp("^[+-]?([0-9]*[".concat((t||{}).locale?n.decimal[t.locale]:".","])?[0-9]+$")).test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports),n=xx;var o=/^[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,r.default)(e);var o=e.replace(/\s/g,"").toUpperCase();return t.toUpperCase()in n&&n[t].test(o)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n={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,r.default)(e),t=t||{};var i=t.hasOwnProperty("allow_leading_zeroes")&&!t.allow_leading_zeroes?n:o,a=!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 i.test(e)&&a&&s&&u&&c};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/^(?:[-+]?(?:0|[1-9][0-9]*))$/,o=/^[-+]?[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,r.default)(e,{min:0,max:65535})};var r=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,r.default)(e),e===e.toLowerCase()};var r=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,r.default)(e),e===e.toUpperCase()};var r=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,r.default)(e),t=t||{};var i=n;t.allow_hyphens&&(i=o);if(!i.test(e))return!1;e=e.replace(/-/g,"");for(var a=0,s=2,u=0;u<14;u++){var c=e.substring(14-u-1,14-u),d=parseInt(c,10)*s;a+=d>=10?d%10+1:d,1===s?s+=1:s-=1}if((10-a%10)%10!==parseInt(e.substring(14,15),10))return!1;return!0};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/^[0-9]{15}$/,o=/^\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,r.default)(e),n.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/^[\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,Rk.default)(e),Ik.test(e)},Dk.fullWidth=void 0;var Rk=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var Ik=/[^\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;Dk.fullWidth=Ik;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,r.default)(e),n.fullWidth.test(e)&&o.halfWidth.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports),n=Dk,o=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,r.default)(e),n.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/[^\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 r=e.join("");return new RegExp(r,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,r.default)(e),o.test(e)};var r=n(yx.exports);function n(e){return e&&e.__esModule?e:{default:e}}var o=(0,n(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,r.default)(e),n.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/[\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 r=function(e,t){return e.some((function(e){return t===e}))};t.default=r,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,n.default)(e),t=(0,r.default)(t,s),t.locale in i.decimal)return!(0,o.default)(u,e.replace(/ /g,""))&&function(e){var t=new RegExp("^[-+]?([0-9]+)?(\\".concat(i.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 r=a(Jx.exports),n=a(yx.exports),o=a(Fk.exports),i=xx;function a(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,r.default)(e),n.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/^(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,r.default)(e),n.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/^(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,r.default)(e),(0,n.default)(e)%parseInt(t,10)==0};var r=o(yx.exports),n=o(_x.exports);function o(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,r.default)(e),n.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/^#?([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,r.default)(e),!t)return n.test(e)||o.test(e);return n.test(e)||o.test(e)||i.test(e)||a.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/^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])\)$/,o=/^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)?)\)$/,i=/^rgb\((([0-9]%|[1-9][0-9]%|100%),){2}([0-9]%|[1-9][0-9]%|100%)\)$/,a=/^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,r.default)(e);var t=e.replace(/\s+/g," ").replace(/\s?(hsla?\(|\)|,)\s?/gi,"$1");if(-1!==t.indexOf(","))return n.test(t);return o.test(t)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/^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,o=/^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 Kk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),n.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/^[A-Z]{2}[0-9A-Z]{3}\d{2}\d{5}$/;e.exports=t.default,e.exports.default=t.default}(Kk,Kk.exports);var qk={};Object.defineProperty(qk,"__esModule",{value:!0}),qk.default=function(e){return(0,Vk.default)(e),function(e){var t=e.replace(/[\s\-]+/gi,"").toUpperCase(),r=t.slice(0,2).toUpperCase();return r in Wk&&Wk[r].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)},qk.locales=void 0;var Vk=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);qk.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,r.default)(e);var t=e.slice(4,6).toUpperCase();if(!n.CountryCodes.has(t)&&"XK"!==t)return!1;return o.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports),n=Jk;var o=/^[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 rE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),n.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/^[a-f0-9]{32}$/;e.exports=t.default,e.exports.default=t.default}(rE,rE.exports);var nE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(e),new RegExp("^[a-fA-F0-9]{".concat(n[t],"}$")).test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n={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}(nE,nE.exports);var oE={exports:{}},iE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e),t=(0,n.default)(t,s);var o=e.length;if(t.urlSafe)return a.test(e);if(o%4!=0||i.test(e))return!1;var u=e.indexOf("=");return-1===u||u===o-1||u===o-2&&"="===e[o-1]};var r=o(yx.exports),n=o(Jx.exports);function o(e){return e&&e.__esModule?e:{default:e}}var i=/[^A-Z0-9+\/=]/i,a=/^[A-Z0-9_\-]*$/i,s={urlSafe:!1};e.exports=t.default,e.exports.default=t.default}(iE,iE.exports),function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,r.default)(e);var t=e.split("."),o=t.length;if(o>3||o<2)return!1;return t.reduce((function(e,t){return e&&(0,n.default)(t,{urlSafe:!0})}),!0)};var r=o(yx.exports),n=o(iE.exports);function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default}(oE,oE.exports);var aE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e);try{t=(0,n.default)(t,a);var o=[];t.allow_primitives&&(o=[null,!1,!0]);var s=JSON.parse(e);return o.includes(s)||!!s&&"object"===i(s)}catch(e){}return!1};var r=o(yx.exports),n=o(Jx.exports);function o(e){return e&&e.__esModule?e:{default:e}}function i(e){return i="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},i(e)}var a={allow_primitives:!1};e.exports=t.default,e.exports.default=t.default}(aE,aE.exports);var sE={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,i),0===(t.ignore_whitespace?e.trim().length:e.length)};var r=o(yx.exports),n=o(Jx.exports);function o(e){return e&&e.__esModule?e:{default:e}}var i={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 o,i;(0,r.default)(e),"object"===n(t)?(o=t.min||0,i=t.max):(o=arguments[1]||0,i=arguments[2]);var a=e.match(/(\uFE0F|\uFE0E)/g)||[],s=e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g)||[],u=e.length-a.length-s.length;return u>=o&&(void 0===i||u<=i)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);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)}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,r.default)(e);var o=n[[void 0,null].includes(t)?"all":t];return!!o&&o.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n={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,r.default)(e),(0,n.default)(e)&&24===e.length};var r=o(yx.exports),n=o(Nk.exports);function o(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 n=(null==t?void 0:t.comparisonDate)||t||Date().toString(),o=(0,r.default)(n),i=(0,r.default)(e);return!!(i&&o&&i>o)};var r=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,r.default)(e);var o=(0,n.default)(t),i=(0,n.default)(e);return!!(i&&o&&i<o)};var r=o(yx.exports),n=o(bx.exports);function o(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 o;if((0,r.default)(e),"[object Array]"===Object.prototype.toString.call(t)){var a=[];for(o in t)({}).hasOwnProperty.call(t,o)&&(a[o]=(0,n.default)(t[o]));return a.indexOf(e)>=0}if("object"===i(t))return t.hasOwnProperty(e);if(t&&"function"==typeof t.indexOf)return t.indexOf(e)>=0;return!1};var r=o(yx.exports),n=o(Qx.exports);function o(e){return e&&e.__esModule?e:{default:e}}function i(e){return i="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},i(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,r.default)(e);for(var t,n,o,i=e.replace(/[- ]+/g,""),a=0,s=i.length-1;s>=0;s--)t=i.substring(s,s+1),n=parseInt(t,10),a+=o&&(n*=2)>=10?n%10+1:n,o=!o;return!(a%10!=0||!i)};var r=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,r.default)(e);var o=t.provider,s=e.replace(/[- ]+/g,"");if(o&&o.toLowerCase()in i){if(!i[o.toLowerCase()].test(s))return!1}else{if(o&&!(o.toLowerCase()in i))throw new Error("".concat(o," is not a valid credit card provider."));if(!a.test(s))return!1}return(0,n.default)(e)};var r=o(yx.exports),n=o(hE.exports);function o(e){return e&&e.__esModule?e:{default:e}}var i={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})?$/},a=/^(?: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,r.default)(e),t in i)return i[t](e);if("any"===t){for(var n in i){if(i.hasOwnProperty(n))if((0,i[n])(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))};var r=o(yx.exports),n=o(wk.exports);function o(e){return e&&e.__esModule?e:{default:e}}var i={PL:function(e){(0,r.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,n.default)(e,{allow_leading_zeroes:!0})){var o=e.split("").slice(0,-1).reduce((function(e,r,n){return e+Number(r)*t[n+1]}),0),i=o%10,a=Number(e.charAt(e.length-1));if(0===i&&0===a||a===10-i)return!0}return!1},ES:function(e){(0,r.default)(e);var t={X:0,Y:1,Z:2},n=e.trim().toUpperCase();if(!/^[0-9X-Z][0-9]{7}[TRWAGMYFPDXBNJZSQVHLCKE]$/.test(n))return!1;var o=n.slice(0,-1).replace(/[X,Y,Z]/g,(function(e){return t[e]}));return n.endsWith(["T","R","W","A","G","M","Y","F","P","D","X","B","N","J","Z","S","Q","V","H","L","C","K","E"][o%23])},FI:function(e){if((0,r.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]],r=[[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]],n=e.trim();if(!/^[1-9]\d{3}\s?\d{4}\s?\d{4}$/.test(n))return!1;var o=0;return n.replace(/\s/g,"").split("").map(Number).reverse().forEach((function(e,n){o=t[o][r[n%8][e]]})),0===o},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),r=0,n=0;n<9;n++)r+=parseInt(e.slice(n,n+1),10)*(10-n);return(r%=11)<2&&t===r||r>=2&&t===11-r},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 r=t.split("").map(Number),n=(11-(3*r[0]+7*r[1]+6*r[2]+1*r[3]+8*r[4]+9*r[5]+4*r[6]+5*r[7]+2*r[8])%11)%11,o=(11-(5*r[0]+4*r[1]+3*r[2]+2*r[3]+7*r[4]+6*r[5]+5*r[6]+4*r[7]+3*r[8]+2*n)%11)%11;return n===r[9]&&o===r[10]},TH:function(e){if(!e.match(/^[1-8]\d{12}$/))return!1;for(var t=0,r=0;r<12;r++)t+=parseInt(e[r],10)*(13-r);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 r,n=t,o=0,i=0;i<n.length;i++)o+=(r=Number(n[i])*(i%2+1))>9?r-9:r;return o%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,r=["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"],n=["7","9","10","5","8","4","2","1","6","3","7","9","10","5","8","4","2"],o=["1","0","X","9","8","7","6","5","4","3","2"],i=function(e){return r.includes(e)},a=function(e){var t=parseInt(e.substring(0,4),10),r=parseInt(e.substring(4,6),10),n=parseInt(e.substring(6),10),o=new Date(t,r-1,n);return!(o>new Date)&&(o.getFullYear()===t&&o.getMonth()===r-1&&o.getDate()===n)},s=function(e){return function(e){for(var t=e.substring(0,17),r=0,i=0;i<17;i++)r+=parseInt(t.charAt(i),10)*parseInt(n[i],10);return o[r%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 r=e.substring(0,2);if(!(t=i(r)))return!1;var n="19".concat(e.substring(6,12));return!!(t=a(n))}(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 r=e.substring(0,2);if(!(t=i(r)))return!1;var n=e.substring(6,14);return!!(t=a(n))&&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 r=0,n=0;n<=7;n++){r+=(t.test(e[n])?e[n]:(e[n].charCodeAt(0)-55)%11)*(9-n)}return(0===(r%=11)?"0":1===r?"A":String(11-r))===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},r=e.trim().toUpperCase();return!!/^[A-Z][0-9]{9}$/.test(r)&&Array.from(r).reduce((function(e,r,n){if(0===n){var o=t[r];return o%10*9+Math.floor(o/10)}return 9===n?(10-e%10-Number(r))%10==0:e+Number(r)*(9-n)}),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,r.default)(e);var t=Number(e.slice(-1));return i.test(e)&&t===(a=e,s=a.slice(0,-1).split("").map((function(e,t){return Number(e)*function(e,t){return e===n||e===o?t%2==0?3:1:t%2==0?1:3}(a.length,t)})).reduce((function(e,t){return e+t}),0),u=10-s%10,u<10?u:0);var a,s,u};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=8,o=14,i=/^(\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,r.default)(e),!n.test(e))return!1;for(var t=!0,o=0,i=e.length-2;i>=0;i--)if(e[i]>="A"&&e[i]<="Z")for(var a=e[i].charCodeAt(0)-55,s=0,u=[a%10,Math.trunc(a/10)];s<u.length;s++){var c=u[s];o+=t?c>=5?1+2*(c-5):2*c:c,t=!t}else{var d=e[i].charCodeAt(0)-"0".charCodeAt(0);o+=t?d>=5?1+2*(d-5):2*d:d,t=!t}var l=10*Math.trunc((o+9)/10)-o;return+e[e.length-1]===l};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/^[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,a){(0,r.default)(t);var s=String((null==a?void 0:a.version)||a);if(!(null!=a&&a.version||a))return e(t,{version:10})||e(t,{version:13});var u=t.replace(/[\s-]+/g,""),c=0;if("10"===s){if(!n.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(!o.test(u))return!1;for(var l=0;l<12;l++)c+=i[l%2]*u.charAt(l);if(u.charAt(12)-(10-c%10)%10==0)return!0}return!1};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/^(?:[0-9]{9}X|[0-9]{10})$/,o=/^(?:[0-9]{13})$/,i=[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,r.default)(e);var o=n;if(o=t.require_hyphen?o.replace("?",""):o,o=t.case_sensitive?new RegExp(o):new RegExp(o,"i"),!o.test(e))return!1;for(var i=e.replace("-","").toUpperCase(),a=0,s=0;s<i.length;s++){var u=i[s];a+=("X"===u?10:+u)*(8-s)}return a%11==0};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n="^\\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,r=0;r<e.length-1;r++)t=(parseInt(e[r],10)+t)%10==0?9:(parseInt(e[r],10)+t)%10*2%11;return(t=1===t?0:11-t)===parseInt(e[10],10)},wE.luhnCheck=function(e){for(var t=0,r=!1,n=e.length-1;n>=0;n--){if(r){var o=2*parseInt(e[n],10);t+=o>9?o.toString().split("").map((function(e){return parseInt(e,10)})).reduce((function(e,t){return e+t}),0):o}else t+=parseInt(e[n],10);r=!r}return t%10==0},wE.reverseMultiplyAndSum=function(e,t){for(var r=0,n=0;n<e.length;n++)r+=e[n]*(t-n);return r},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]],r=[[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]],n=e.split("").reverse().join(""),o=0,i=0;i<n.length;i++)o=t[o][r[i%8][parseInt(n[i],10)]];return 0===o},function(e,t){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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US";(0,n.default)(e);var r=e.slice(0);if(t in f)return t in m&&(r=r.replace(m[t],"")),!!f[t].test(r)&&(!(t in p)||p[t](r));throw new Error("Invalid locale '".concat(t,"'"))};var n=s(yx.exports),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(wE),i=s(sk.exports);function a(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return a=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 r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))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 r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}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,r=!1,n=0;n<3;n++)if(!t&&/[AEIOU]/.test(e[n]))t=!0;else if(!r&&t&&"X"===e[n])r=!0;else if(n>0){if(t&&!r&&!/[AEIOU]/.test(e[n]))return!1;if(r&&!/X/.test(e[n]))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),r=parseInt(e.slice(2,4),10);r>40?(r-=40,t="20".concat(t)):r>20?(r-=20,t="18".concat(t)):t="19".concat(t),r<10&&(r="0".concat(r));var n="".concat(t,"/").concat(r,"/").concat(e.slice(4,6));if(!(0,i.default)(n,"YYYY/MM/DD"))return!1;for(var o=e.split("").map((function(e){return parseInt(e,10)})),a=[2,4,8,5,10,9,7,3,6],s=0,u=0;u<a.length;u++)s+=o[u]*a[u];return(s=s%11==10?0:s%11)===o[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 r=parseInt(e.slice(2,4),10);if(r>50&&(r-=50),r>20){if(parseInt(t,10)<2004)return!1;r-=20}r<10&&(r="0".concat(r));var n="".concat(t,"/").concat(r,"/").concat(e.slice(4,6));if(!(0,i.default)(n,"YYYY/MM/DD"))return!1;if(10===e.length&&parseInt(e,10)%11!=0){var o=parseInt(e.slice(0,9),10)%11;if(!(parseInt(t,10)<1986&&10===o))return!1;if(0!==parseInt(e.slice(9),10))return!1}return!0},"de-AT":function(e){return o.luhnCheck(e)},"de-DE":function(e){for(var t=e.split("").map((function(e){return parseInt(e,10)})),r=[],n=0;n<t.length-1;n++){r.push("");for(var i=0;i<t.length-1;i++)t[n]===t[i]&&(r[n]+=i)}if(2!==(r=r.filter((function(e){return e.length>1}))).length&&3!==r.length)return!1;if(3===r[0].length){for(var a=r[0].split("").map((function(e){return parseInt(e,10)})),s=0,u=0;u<a.length-1;u++)a[u]+1===a[u+1]&&(s+=1);if(2===s)return!1}return o.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 r="".concat(t,"/").concat(e.slice(2,4),"/").concat(e.slice(0,2));if(!(0,i.default)(r,"YYYY/MM/DD"))return!1;for(var n=e.split("").map((function(e){return parseInt(e,10)})),o=0,a=4,s=0;s<9;s++)o+=n[s]*a,1===(a-=1)&&(a=7);return 1!==(o%=11)&&(0===o?0===n[9]:n[9]===11-o)},"el-CY":function(e){for(var t=e.slice(0,8).split("").map((function(e){return parseInt(e,10)})),r=0,n=1;n<t.length;n+=2)r+=t[n];for(var o=0;o<t.length;o+=2)t[o]<2?r+=1-t[o]:(r+=2*(t[o]-2)+5,t[o]>4&&(r+=2));return String.fromCharCode(r%26+65)===e.charAt(8)},"el-GR":function(e){for(var t=e.split("").map((function(e){return parseInt(e,10)})),r=0,n=0;n<8;n++)r+=t[n]*Math.pow(2,8-n);return r%11%10===t[8]},"en-CA":function(e){var t=e.split(""),r=t.filter((function(e,t){return t%2})).map((function(e){return 2*Number(e)})).join("").split(""),n=t.filter((function(e,t){return!(t%2)})).concat(r).map((function(e){return Number(e)})).reduce((function(e,t){return e+t}));return n%10==0},"en-IE":function(e){var t=o.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 r=0;switch(t[0]){case"Y":r=1;break;case"Z":r=2}t.splice(0,1,r)}else for(;t.length<9;)t.unshift(0);t=t.join("");var n=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"][n]},"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 r="".concat(t,"/").concat(e.slice(3,5),"/").concat(e.slice(5,7));if(!(0,i.default)(r,"YYYY/MM/DD"))return!1;for(var n=e.split("").map((function(e){return parseInt(e,10)})),o=0,a=1,s=0;s<10;s++)o+=n[s]*a,10===(a+=1)&&(a=1);if(o%11==10){o=0,a=3;for(var u=0;u<10;u++)o+=n[u]*a,10===(a+=1)&&(a=1);if(o%11==10)return 0===n[10]}return o%11===n[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 r="".concat(t,"/").concat(e.slice(2,4),"/").concat(e.slice(0,2));if(!(0,i.default)(r,"YYYY/MM/DD"))return!1;var n=parseInt(e.slice(0,6)+e.slice(7,10),10)%31;return n<10?n===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"][n-=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,i.default)(t,"YY/MM/DD"))return!1}var r=97-parseInt(e.slice(0,9),10)%97,n=parseInt(e.slice(9,11),10);return r===n||(r=97-parseInt("2".concat(e.slice(0,9)),10)%97)===n},"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,i.default)(t,"YYYY/MM/DD")&&(!!o.luhnCheck(e.slice(0,12))&&o.verhoeffCheck("".concat(e.slice(0,11)).concat(e[12])))},"hr-HR":function(e){return o.iso7064Check(e)},"hu-HU":function(e){for(var t=e.split("").map((function(e){return parseInt(e,10)})),r=8,n=1;n<9;n++)r+=t[n]*(n+1);return r%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 r={L:"0",M:"1",N:"2",P:"3",Q:"4",R:"5",S:"6",T:"7",U:"8",V:"9"},n=0,o=[6,7,9,10,12,13,14];n<o.length;n++){var a=o[n];t[a]in r&&t.splice(a,1,r[t[a]])}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,i.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 r=e.slice(4,6);switch(e[6]){case"0":r="18".concat(r);break;case"1":r="19".concat(r);break;default:r="20".concat(r)}var n="".concat(r,"/").concat(e.slice(2,4),"/").concat(t);if(!(0,i.default)(n,"YYYY/MM/DD"))return!1}for(var o=1101,a=[1,6,3,7,9,10,5,8,4,2],s=0;s<e.length-1;s++)o-=parseInt(e[s],10)*a[s];return parseInt(e[10],10)===o%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 r=parseInt(t.join("").slice(0,5),10);if(r>32e3)return!1;if(r===parseInt(t.join("").slice(5,7),10))return!1}}return!0},"nl-NL":function(e){return o.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],r=0,n=0;n<t.length;n++)r+=parseInt(e[n],10)*t[n];return 10!==(r%=11)&&r===parseInt(e[9],10)}var o=e.slice(0,2),a=parseInt(e.slice(2,4),10);a>80?(o="18".concat(o),a-=80):a>60?(o="22".concat(o),a-=60):a>40?(o="21".concat(o),a-=40):a>20?(o="20".concat(o),a-=20):o="19".concat(o),a<10&&(a="0".concat(a));var s="".concat(o,"/").concat(a,"/").concat(e.slice(4,6));if(!(0,i.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,r;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 n=1;n<=9;n++)t+=parseInt(e.substring(n-1,n),10)*(11-n);if(10===(r=10*t%11)&&(r=0),r!==parseInt(e.substring(9,10),10))return!1;t=0;for(var o=1;o<=10;o++)t+=parseInt(e.substring(o-1,o),10)*(12-o);return 10===(r=10*t%11)&&(r=0),r===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 i=e.length-2,a=e.substring(0,i),s=e.substring(i),u=0,c=i-7,d=i;d>=1;d--)u+=a.charAt(i-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;i+=1,a=e.substring(0,i),u=0,c=i-7;for(var f=i;f>=1;f--)u+=a.charAt(i-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-o.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 r="".concat(t,"/").concat(e.slice(3,5),"/").concat(e.slice(5,7));if(8===r.length){if(!(0,i.default)(r,"YY/MM/DD"))return!1}else if(!(0,i.default)(r,"YYYY/MM/DD"))return!1;for(var n=e.split("").map((function(e){return parseInt(e,10)})),o=[2,7,9,1,4,6,3,5,8,2,7,9],a=0,s=0;s<o.length;s++)a+=n[s]*o[s];return a%11==10?1===n[12]:n[12]===a%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 r=parseInt(e.slice(2,4),10);r>50&&(r-=50),r<10&&(r="0".concat(r));var n="".concat(t,"/").concat(r,"/").concat(e.slice(4,6));if(!(0,i.default)(n,"YYYY/MM/DD"))return!1}return!0},"sl-SI":function(e){var t=11-o.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 r="",n=t.slice(2,4),a=parseInt(t.slice(4,6),10);if(e.length>11)r=e.slice(0,4);else if(r=e.slice(0,2),11===e.length&&a<60){var s=(new Date).getFullYear().toString(),u=parseInt(s.slice(0,2),10);if(s=parseInt(s,10),"-"===e[6])r=parseInt("".concat(u).concat(r),10)>s?"".concat(u-1).concat(r):"".concat(u).concat(r);else if(r="".concat(u-1).concat(r),s-parseInt(r,10)<100)return!1}a>60&&(a-=60),a<10&&(a="0".concat(a));var c="".concat(r,"/").concat(n,"/").concat(a);if(8===c.length){if(!(0,i.default)(c,"YY/MM/DD"))return!1}else if(!(0,i.default)(c,"YYYY/MM/DD"))return!1;return o.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,r){if((0,kE.default)(e),r&&r.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 n in EE){if(EE.hasOwnProperty(n))if(EE[n].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,r.default)(e),n.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/^(0x)[0-9a-f]{40}$/i;e.exports=t.default,e.exports.default=t.default}(DE,DE.exports);var RE={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,i),function(e){var t="\\d{".concat(e.digits_after_decimal[0],"}");e.digits_after_decimal.forEach((function(e,r){0!==r&&(t="".concat(t,"|\\d{").concat(e,"}"))}));var r="(".concat(e.symbol.replace(/\W/,(function(e){return"\\".concat(e)})),")").concat(e.require_symbol?"":"?"),n="-?",o="[1-9]\\d{0,2}(\\".concat(e.thousands_separator,"\\d{3})*"),i="(".concat(["0","[1-9]\\d*",o].join("|"),")?"),a="(\\".concat(e.decimal_separator,"(").concat(t,"))").concat(e.require_decimal?"":"?"),s=i+(e.allow_decimal||e.require_decimal?a:"");e.allow_negatives&&!e.parens_for_negatives&&(e.negative_sign_after_digits?s+=n:e.negative_sign_before_digits&&(s=n+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+=r:s=r+s;e.allow_negatives&&(e.parens_for_negatives?s="(\\(".concat(s,"\\)|").concat(s,")"):e.negative_sign_before_digits||e.negative_sign_after_digits||(s=n+s));return new RegExp("^(?!-? )(?=.*\\d)".concat(s,"$"))}(t).test(e)};var r=o(Jx.exports),n=o(yx.exports);function o(e){return e&&e.__esModule?e:{default:e}}var i={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}(RE,RE.exports);var IE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),n.test(e)||o.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/^(bc1)[a-z0-9]{25,39}$/,o=/^(1|3)[A-HJ-NP-Za-km-z1-9]{25,39}$/;e.exports=t.default,e.exports.default=t.default}(IE,IE.exports);var CE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),n.has(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=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,r.default)(e);var a=t.strictSeparator?o.test(e):n.test(e);return a&&t.strict?i(e):a};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/^([\+-]?\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)?)?)?)?$/,o=/^([\+-]?\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)?)?)?)?$/,i=function(e){var t=e.match(/^(\d{4})-?(\d{3})([ T]{1}\.*|$)/);if(t){var r=Number(t[1]),n=Number(t[2]);return r%4==0&&r%100!=0||r%400==0?n<=366:n<=365}var o=e.match(/(\d{4})-?(\d{0,2})-?(\d*)/).map(Number),i=o[1],a=o[2],s=o[3],u=a?"0".concat(a).slice(-2):a,c=s?"0".concat(s).slice(-2):s,d=new Date("".concat(i,"-").concat(u||"01","-").concat(c||"01"));return!a||!s||d.getUTCFullYear()===i&&d.getUTCMonth()+1===a&&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,r.default)(e),d.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/([01][0-9]|2[0-3])/,o=/[0-5][0-9]/,i=new RegExp("[-+]".concat(n.source,":").concat(o.source)),a=new RegExp("([zZ]|".concat(i.source,")")),s=new RegExp("".concat(n.source,":").concat(o.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(a.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,r.default)(e),n.has(e.toUpperCase())};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=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,r.default)(e),t=(0,n.default)(t,s),t.crockford)return a.test(e);var o=e.length;if(o%8==0&&i.test(e))return!0;return!1};var r=o(yx.exports),n=o(Jx.exports);function o(e){return e&&e.__esModule?e:{default:e}}var i=/^[A-Z2-7]+=*$/,a=/^[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,r.default)(e),n.test(e))return!0;return!1};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/^[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,r.default)(e);var t=e.split(",");if(t.length<2)return!1;var a=t.shift().trim().split(";"),s=a.shift();if("data:"!==s.slice(0,5))return!1;var u=s.slice(5);if(""!==u&&!n.test(u))return!1;for(var c=0;c<a.length;c++)if((c!==a.length-1||"base64"!==a[c].toLowerCase())&&!o.test(a[c]))return!1;for(var d=0;d<t.length;d++)if(!i.test(t[d]))return!1;return!0};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/^[a-z]+\/[a-z0-9\-\+\._]+$/i,o=/^[a-z\-]+=[a-z0-9\-]+$/i,i=/^[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,r.default)(e),0!==e.indexOf("magnet:?"))return!1;return n.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/(?:^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,r.default)(e),n.test(e)||o.test(e)||i.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/^(application|audio|font|image|message|model|multipart|text|video)\/[a-zA-Z0-9\.\-\+_]{1,100}$/i,o=/^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,i=/^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,r.default)(e),t=(0,n.default)(t,c),!e.includes(","))return!1;var o=e.split(",");if(o[0].startsWith("(")&&!o[1].endsWith(")")||o[1].endsWith(")")&&!o[0].startsWith("("))return!1;if(t.checkDMS)return s.test(o[0])&&u.test(o[1]);return i.test(o[0])&&a.test(o[1])};var r=o(yx.exports),n=o(Jx.exports);function o(e){return e&&e.__esModule?e:{default:e}}var i=/^\(?[+-]?(90(\.0+)?|[1-8]?\d(\.\d+)?)$/,a=/^\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 r in YE){if(YE.hasOwnProperty(r))if(YE[r].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 KE=/^\d{3}$/,qE=/^\d{4}$/,VE=/^\d{5}$/,WE=/^\d{6}$/,YE={AD:/^AD\d{3}$/,AT:qE,AU:qE,AZ:/^AZ\d{4}$/,BA:/^([7-8]\d{4}$)/,BE:qE,BG:qE,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:qE,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:VE,DK:qE,DO:VE,DZ:VE,EE:VE,ES:/^(5[0-2]{1}|[0-4]{1}\d{1})\d{3}$/,FI:VE,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:qE,ID:VE,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:KE,IT:VE,JP:/^\d{3}\-\d{4}$/,KE:VE,KR:/^(\d{5}|\d{6})$/,LI:/^(948[5-9]|949[0-7])$/,LT:/^LT\-\d{5}$/,LU:qE,LV:/^LV\-\d{4}$/,LK:VE,MG:KE,MX:VE,MT:/^[A-Za-z]{3}\s{0,1}\d{4}$/,MY:VE,NL:/^\d{4}\s?[a-z]{2}$/i,NO:qE,NP:/^(10|21|22|32|33|34|44|45|56|57)\d{3}$|^(977)$/i,NZ:qE,PL:/^\d{2}\-\d{3}$/,PR:/^00[679]\d{2}([ -]\d{4})?$/,PT:/^\d{4}\-\d{3}?$/,RO:WE,RU:WE,SA:VE,SE:/^[1-9]\d{2}\s?\d{2}$/,SG:WE,SI:qE,SK:/^\d{3}\s?\d{2}$/,TH:VE,TN:qE,TW:/^\d{3}(\d{2})?$/,UA:VE,US:/^\d{5}(-\d{4})?$/,ZA:qE,ZM:VE},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,r.default)(e);var n=t?new RegExp("^[".concat(t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"]+"),"g"):/^\s+/g;return e.replace(n,"")};var r=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,r.default)(e),t){var n=new RegExp("[".concat(t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"]+$"),"g");return e.replace(n,"")}var o=e.length-1;for(;/\s/.test(e.charAt(o));)o-=1;return e.slice(0,o+1)};var r=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,r.default)((0,n.default)(e,t),t)};var r=o(XE.exports),n=o(JE.exports);function o(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,r.default)(e),e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(/\//g,"/").replace(/\\/g,"\").replace(/`/g,"`")};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);e.exports=t.default,e.exports.default=t.default}(tS,tS.exports);var rS={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),e.replace(/"/g,'"').replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(///g,"/").replace(/\/g,"\\").replace(/`/g,"`").replace(/&/g,"&")};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);e.exports=t.default,e.exports.default=t.default}(rS,rS.exports);var nS={exports:{}},oS={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(e),e.replace(new RegExp("[".concat(t,"]+"),"g"),"")};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);e.exports=t.default,e.exports.default=t.default}(oS,oS.exports),function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e);var o=t?"\\x00-\\x09\\x0B\\x0C\\x0E-\\x1F\\x7F":"\\x00-\\x1F\\x7F";return(0,n.default)(e,o)};var r=o(yx.exports),n=o(oS.exports);function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default}(nS,nS.exports);var iS={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(e),e.replace(new RegExp("[^".concat(t,"]+"),"g"),"")};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);e.exports=t.default,e.exports.default=t.default}(iS,iS.exports);var aS={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e);for(var n=e.length-1;n>=0;n--)if(-1===t.indexOf(e[n]))return!1;return!0};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);e.exports=t.default,e.exports.default=t.default}(aS,aS.exports);var sS={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){t=(0,r.default)(t,n);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(o.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(i.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(a.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 r=function(e){return e&&e.__esModule?e:{default:e}}(Jx.exports);var n={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},o=["icloud.com","me.com"],i=["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"],a=["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,r.default)(e),n.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/^[^\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,r.default)(e),t in n)return n[t](e);if("any"===t){for(var o in n){if((0,n[o])(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n={"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,n.default)(e);var o=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),r={length:e.length,uniqueChars:Object.keys(t).length,uppercaseCount:0,lowercaseCount:0,numberCount:0,symbolCount:0};return Object.keys(t).forEach((function(e){i.test(e)?r.uppercaseCount+=t[e]:a.test(e)?r.lowercaseCount+=t[e]:s.test(e)?r.numberCount+=t[e]:u.test(e)&&(r.symbolCount+=t[e])})),r}(e);if(t=(0,r.default)(t||{},c),t.returnScore)return function(e,t){var r=0;r+=e.uniqueChars*t.pointsPerUnique,r+=(e.length-e.uniqueChars)*t.pointsPerRepeat,e.lowercaseCount>0&&(r+=t.pointsForContainingLower);e.uppercaseCount>0&&(r+=t.pointsForContainingUpper);e.numberCount>0&&(r+=t.pointsForContainingNumber);e.symbolCount>0&&(r+=t.pointsForContainingSymbol);return r}(o,t);return o.length>=t.minLength&&o.lowercaseCount>=t.minLowercase&&o.uppercaseCount>=t.minUppercase&&o.numberCount>=t.minNumbers&&o.symbolCount>=t.minSymbols};var r=o(Jx.exports),n=o(yx.exports);function o(e){return e&&e.__esModule?e:{default:e}}var i=/^[A-Z]$/,a=/^[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 r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=n?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}r.default=e,t&&t.set(e,r);return r}(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 r=t[2],n=11-hS.reverseMultiplyAndSum(r.split("").slice(0,8).map((function(e){return parseInt(e,10)})),9)%11;return n>9?0===parseInt(r[8],10):n===parseInt(r[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 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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=qe(bx.exports),o=qe(_x.exports),i=qe(qx.exports),a=qe(Vx.exports),s=qe(Wx.exports),u=qe(Yx.exports),c=qe(Xx.exports),d=qe(ek.exports),l=qe(ok.exports),f=qe(ik.exports),p=qe(nk.exports),h=qe(ak.exports),m=qe(rk.exports),v=qe(sk.exports),g=qe(uk.exports),A=qe(ck.exports),b=qe(dk.exports),y=Ke(lk),_=Ke(mk),w=qe(bk.exports),x=qe(yk.exports),k=qe(_k.exports),E=qe(xk.exports),S=qe(kk.exports),D=qe(Ek.exports),R=qe(Sk.exports),I=qe(Dk),C=qe(Ck),O=qe(Pk.exports),T=qe(Lk.exports),P=qe(Mk.exports),L=qe(jk.exports),M=qe(wk.exports),B=Ke(wx),j=qe(Uk.exports),U=qe(Nk.exports),F=qe($k.exports),N=qe(Gk.exports),$=qe(Hk.exports),G=qe(zk.exports),H=qe(Zk.exports),z=qe(Kk.exports),Z=Ke(qk),K=qe(Qk.exports),q=qe(rE.exports),V=qe(nE.exports),W=qe(oE.exports),Y=qe(aE.exports),Q=qe(sE.exports),J=qe(uE.exports),X=qe(tk.exports),ee=qe(cE.exports),te=qe(dE.exports),re=qe(lE.exports),ne=qe(fE.exports),oe=qe(pE.exports),ie=qe(hE.exports),ae=qe(mE.exports),se=qe(vE.exports),ue=qe(gE.exports),ce=qe(AE.exports),de=qe(bE.exports),le=qe(yE.exports),fe=qe(_E.exports),pe=Ke(xE),he=qe(DE.exports),me=qe(RE.exports),ve=qe(IE.exports),ge=qe(CE.exports),Ae=qe(OE.exports),be=qe(TE.exports),ye=qe(Jk),_e=qe(PE.exports),we=qe(LE),xe=qe(UE.exports),ke=qe(FE.exports),Ee=qe(iE.exports),Se=qe(NE.exports),De=qe($E.exports),Re=qe(GE.exports),Ie=qe(HE.exports),Ce=Ke(zE),Oe=qe(JE.exports),Te=qe(XE.exports),Pe=qe(eS.exports),Le=qe(tS.exports),Me=qe(rS.exports),Be=qe(nS.exports),je=qe(iS.exports),Ue=qe(oS.exports),Fe=qe(aS.exports),Ne=qe(sS.exports),$e=qe(uS.exports),Ge=qe(cS.exports),He=qe(dS.exports),ze=qe(lS);function Ze(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return Ze=function(){return e},e}function Ke(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=Ze();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function qe(e){return e&&e.__esModule?e:{default:e}}var Ve={version:"13.9.0",toDate:n.default,toFloat:o.default,toInt:i.default,toBoolean:a.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:K.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:R.default,isFullWidth:I.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:q.default,isHash:V.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:re.default,isBefore:ne.default,isIn:oe.default,isLuhnNumber:ie.default,isCreditCard:ae.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:Re.default,isLatLong:Ie.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=Ve,e.exports=t.default,e.exports.default=t.default}(Ax,Ax.exports);var gS=i(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 r=e.split("@");let n="";r.length>1&&(n=r[0]+"@",e=r[1]);const o=function(e,t){const r=[];let n=e.length;for(;n--;)r[n]=t(e[n]);return r}((e=e.replace(wS,".")).split("."),t).join(".");return n+o}function RS(e){const t=[];let r=0;const n=e.length;for(;r<n;){const o=e.charCodeAt(r++);if(o>=55296&&o<=56319&&r<n){const n=e.charCodeAt(r++);56320==(64512&n)?t.push(((1023&o)<<10)+(1023&n)+65536):(t.push(o),r--)}else t.push(o)}return t}const IS=e=>String.fromCodePoint(...e),CS=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},OS=function(e,t,r){let n=0;for(e=r?kS(e/700):e>>1,e+=kS(e/t);e>455;n+=bS)e=kS(e/35);return kS(n+36*e/(e+38))},TS=function(e){const t=[],r=e.length;let n=0,o=128,i=72,a=e.lastIndexOf("-");a<0&&(a=0);for(let r=0;r<a;++r)e.charCodeAt(r)>=128&&SS("not-basic"),t.push(e.charCodeAt(r));for(let u=a>0?a+1:0;u<r;){const a=n;for(let t=1,o=bS;;o+=bS){u>=r&&SS("invalid-input");const a=(s=e.charCodeAt(u++))>=48&&s<58?s-48+26:s>=65&&s<91?s-65:s>=97&&s<123?s-97:bS;a>=bS&&SS("invalid-input"),a>kS((AS-n)/t)&&SS("overflow"),n+=a*t;const c=o<=i?1:o>=i+26?26:o-i;if(a<c)break;const d=bS-c;t>kS(AS/d)&&SS("overflow"),t*=d}const c=t.length+1;i=OS(n-a,c,0==a),kS(n/c)>AS-o&&SS("overflow"),o+=kS(n/c),n%=c,t.splice(n++,0,o)}var s;return String.fromCodePoint(...t)},PS=function(e){const t=[],r=(e=RS(e)).length;let n=128,o=0,i=72;for(const r of e)r<128&&t.push(ES(r));const a=t.length;let s=a;for(a&&t.push("-");s<r;){let r=AS;for(const t of e)t>=n&&t<r&&(r=t);const u=s+1;r-n>kS((AS-o)/u)&&SS("overflow"),o+=(r-n)*u,n=r;for(const r of e)if(r<n&&++o>AS&&SS("overflow"),r===n){let e=o;for(let r=bS;;r+=bS){const n=r<=i?1:r>=i+26?26:r-i;if(e<n)break;const o=e-n,a=bS-n;t.push(ES(CS(n+o%a,0))),e=kS(o/a)}t.push(ES(CS(e,0))),i=OS(o,u,s===a),o=0,++s}++o,++n}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:RS,encode:IS},decode:TS,encode:PS,toASCII:MS,toUnicode:LS};var jS=Object.freeze({__proto__:null,ucs2decode:RS,ucs2encode:IS,decode:TS,encode:PS,toASCII:MS,toUnicode:LS,default:BS}),US=a(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 r=e.match(/(.*)\.(([\u0E00-\u0E7Fa-z0-9]+)(\.[a-z0-9]+))/);let n=null,o=null;if(r&&r.length>2&&$S[r[2]]&&(n=r[2],o=r[1].split(".")),!o){if(o=e.split("."),o.length<=1)return!1;n=o.pop();if(!/^(?:xn--)?(?!^\d+$)[\u0E00-\u0E7Fa-z0-9]+$/gi.test(n))return!1}if(!1===t.subdomain&&o.length>1)return!1;const i=o.every((function(e,r){if(t.wildcard&&0===r&&"*"===e&&o.length>1)return!0;let n=/^([\u0E00-\u0E7Fa-zA-Z0-9-_]+)$/g;r===o.length-1&&(n=/^([\u0E00-\u0E7Fa-zA-Z0-9-]+)$/g);const i=(e.match(/--(--)?/g)||[]).length,a=(e.match(/xn--/g)||[]).length;if(r===o.length-1&&i!==a)return!1;return n.test(e)&&e.length<64&&!e.startsWith("-")&&!e.endsWith("-")}));return i},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,r;return!1!==j(e)&&(void 0===(t=e.constructor)||!1!==j(r=t.prototype)&&!1!==r.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"),r=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(r))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 n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.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,K=z||function(e){return!!e&&"[object Array]"==Z.call(e)},q=function(e){if(!e)return!1;var t=V.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)},V=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 re(e){this.map={},e instanceof re?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 ne(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function oe(e){return new Promise((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function ie(e){var t=new FileReader,r=oe(t);return t.readAsArrayBuffer(e),r}function ae(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=ae(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):Y.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||J(e))?this._bodyArrayBuffer=ae(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=ne(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=ne(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(ie)}),this.text=function(){var e=ne(this);if(e)return e;if(this._bodyBlob)return function(e){var t=new FileReader,r=oe(t);return t.readAsText(e),r}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.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}re.prototype.append=function(e,t){e=X(e),t=ee(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},re.prototype.delete=function(e){delete this.map[X(e)]},re.prototype.get=function(e){return e=X(e),this.has(e)?this.map[e]:null},re.prototype.has=function(e){return this.map.hasOwnProperty(X(e))},re.prototype.set=function(e,t){this.map[X(e)]=ee(t)},re.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},re.prototype.keys=function(){var e=[];return this.forEach((function(t,r){e.push(r)})),te(e)},re.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),te(e)},re.prototype.entries=function(){var e=[];return this.forEach((function(t,r){e.push([r,t])})),te(e)},Y.iterable&&(re.prototype[Symbol.iterator]=re.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 r=(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 re(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,r||null==e._bodyInit||(r=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 re(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)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(r),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var n=/([?&])_=[^&]*/;if(n.test(this.url))this.url=this.url.replace(n,"$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 r=e.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(o))}})),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 re(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 re(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 r=Error(e);this.stack=r.stack},pe.prototype=Object.create(Error.prototype),pe.prototype.constructor=pe}function he(e,t){return new Promise((function(r,n){var o=new ce(e,t);if(o.signal&&o.signal.aborted)return n(new pe("Aborted","AbortError"));var i=new XMLHttpRequest;function a(){i.abort()}i.onload=function(){var e,t,n={status:i.status,statusText:i.statusText,headers:(e=i.getAllResponseHeaders()||"",t=new re,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 r=e.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();t.append(n,o)}})),t)};n.url="responseURL"in i?i.responseURL:n.headers.get("X-Request-URL");var o="response"in i?i.response:i.responseText;setTimeout((function(){r(new le(o,n))}),0)},i.onerror=function(){setTimeout((function(){n(new TypeError("Network request failed"))}),0)},i.ontimeout=function(){setTimeout((function(){n(new TypeError("Network request failed"))}),0)},i.onabort=function(){setTimeout((function(){n(new pe("Aborted","AbortError"))}),0)},i.open(o.method,function(e){try{return""===e&&W.location.href?W.location.href:e}catch(t){return e}}(o.url),!0),"include"===o.credentials?i.withCredentials=!0:"omit"===o.credentials&&(i.withCredentials=!1),"responseType"in i&&(Y.blob?i.responseType="blob":Y.arrayBuffer&&o.headers.get("Content-Type")&&-1!==o.headers.get("Content-Type").indexOf("application/octet-stream")&&(i.responseType="arraybuffer")),!t||"object"!=typeof t.headers||t.headers instanceof re?o.headers.forEach((function(e,t){i.setRequestHeader(t,e)})):Object.getOwnPropertyNames(t.headers).forEach((function(e){i.setRequestHeader(e,ee(t.headers[e]))})),o.signal&&(o.signal.addEventListener("abort",a),i.onreadystatechange=function(){4===i.readyState&&o.signal.removeEventListener("abort",a)}),i.send(void 0===o._bodyInit?null:o._bodyInit)}))}he.polyfill=!0,W.fetch||(W.fetch=he,W.Headers=re,W.Request=ce,W.Response=le);var me,ve,ge={exports:{}};me=ge,ve=ge.exports,function(e,t){var r="function",n="undefined",o="object",i="string",a="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",R="LG",I="Microsoft",C="Motorola",O="Opera",T="Samsung",P="Sharp",L="Sony",M="Xiaomi",B="Zebra",j="Facebook",U="Chromium OS",F="Mac OS",N=function(e){for(var t={},r=0;r<e.length;r++)t[e[r].toUpperCase()]=e[r];return t},$=function(e,t){return typeof e===i&&-1!==G(t).indexOf(G(e))},G=function(e){return e.toLowerCase()},H=function(e,t){if(typeof e===i)return e=e.replace(/^\s\s*/,""),typeof t===n?e:e.substring(0,350)},z=function(e,n){for(var i,a,s,u,c,d,l=0;l<n.length&&!c;){var f=n[l],p=n[l+1];for(i=a=0;i<f.length&&!c&&f[i];)if(c=f[i++].exec(e))for(s=0;s<p.length;s++)d=c[++a],typeof(u=p[s])===o&&u.length>0?2===u.length?typeof u[1]==r?this[u[0]]=u[1].call(this,d):this[u[0]]=u[1]:3===u.length?typeof u[1]!==r||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}},Z=function(e,r){for(var n in r)if(typeof r[n]===o&&r[n].length>0){for(var i=0;i<r[n].length;i++)if($(r[n][i],e))return"?"===n?t:n}else if($(r[n],e))return"?"===n?t:n;return 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"]],[/\bopr\/([\w\.]+)/i],[l,[u,O]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[u,l],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[l,[u,"UC"+x]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[l,[u,"WeChat(Win) Desktop"]],[/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"]],[/(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 "+x]],[/fxios\/([-\w\.]+)/i],[l,[u,E]],[/\bqihu|(qi?ho?o?|360)browser/i],[[u,"360 "+x]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[u,/(.+)/,"$1 "+x],l],[/(comodo_dragon)\/([\w\.]+)/i],[[u,/_/g," "],l],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[u,l],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[u],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[u,j],l],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\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,Z,{"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],[/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|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[u,l],[/(cobalt)\/([\w\.]+)/i],[u,[l,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[f,"amd64"]],[/(ia32(?=;))/i],[[f,G]],[/((?: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/,"",G]],[/(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,G]]],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)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\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]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[s,[d,D],[c,m]],[/(?:huawei|honor)([-\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 ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[s,/_/g," "],[d,M],[c,h]],[/\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]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[s,[d,"Vivo"],[c,h]],[/\b(rmx[12]\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,R],[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,R],[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[c-r]{2})( 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.+; ([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]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/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]],[/(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,I],[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,I],[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,R],[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,H],[s,H],[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,I],[c,p]],[/((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]],[/(quest( 2| pro)?)/i],[s,[d,j],[c,g]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[c,A]],[/(aeobc)\b/i],[s,[d,b],[c,A]],[/droid .+?; ([^;]+?)(?: bui|\) 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"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[l,[u,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[u,l],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[l,u]],os:[[/microsoft (windows) (vista|xp)/i],[u,l],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[u,[l,Z,K]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[u,"Windows"],[l,Z,K]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/ios;fbsv\/([\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)[-\/ ]?([\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]]},V=function(p,v){if(typeof p===o&&(v=p,p=t),!(this instanceof V))return new V(p,v).getResult();var g=typeof e!==n&&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 r={};for(var n in e)t[n]&&t[n].length%2==0?r[n]=t[n].concat(e[n]):r[n]=e[n];return r}(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[a]=function(e){return typeof e===i?e.replace(/[^\d\.]/g,"").split(".")[0]:t}(e[l]),_&&g&&g.brave&&typeof g.brave.isBrave==r&&(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!==n&&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&&"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===i&&e.length>350?H(e,350):e,this},this.setUA(A),this};V.VERSION="0.7.35",V.BROWSER=N([u,l,a]),V.CPU=N([f]),V.DEVICE=N([s,d,c,p,h,v,m,g,A]),V.ENGINE=V.OS=N([u,l]),me.exports&&(ve=me.exports=V),ve.UAParser=V;var W=typeof e!==n&&(e.jQuery||e.Zepto);if(W&&!W.ua){var Y=new V;W.ua=Y.getResult(),W.ua.get=function(){return Y.getUA()},W.ua.set=function(e){Y.setUA(e);var t=Y.getResult();for(var r in t)W.ua[r]=t[r]}}}("object"==typeof window?window:o);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,r)=>t[e]=r)),t})(Se),Re=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Ie=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,r,n,o,i="";const a=e.length%3;for(let a=0;a<e.length;){if((r=e.charCodeAt(a++))>255||(n=e.charCodeAt(a++))>255||(o=e.charCodeAt(a++))>255)throw new TypeError("invalid character found");t=r<<16|n<<8|o,i+=Se[t>>18&63]+Se[t>>12&63]+Se[t>>6&63]+Se[63&t]}return a?i.slice(0,a-3)+"===".substring(a):i},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 r=0,n=e.length;r<n;r+=4096)t.push(Ie.apply(null,e.subarray(r,r+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?Ie(192|t>>>6)+Ie(128|63&t):Ie(224|t>>>12&15)+Ie(128|t>>>6&63)+Ie(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return Ie(240|t>>>18&7)+Ie(128|t>>>12&63)+Ie(128|t>>>6&63)+Ie(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 Ie(55296+(t>>>10))+Ie(56320+(1023&t));case 3:return Ie((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return Ie((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},Ze=e=>e.replace(He,ze),Ke=e=>{if(e=e.replace(/\s+/g,""),!Re.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(3&e.length));let t,r,n,o="";for(let i=0;i<e.length;)t=De[e.charAt(i++)]<<18|De[e.charAt(i++)]<<12|(r=De[e.charAt(i++)])<<6|(n=De[e.charAt(i++)]),o+=64===r?Ie(t>>16&255):64===n?Ie(t>>16&255,t>>8&255):Ie(t>>16&255,t>>8&255,255&t);return o},qe=_e?e=>atob(Te(e)):xe?e=>Buffer.from(e,"base64").toString("binary"):Ke,Ve=xe?e=>Ce(Buffer.from(e,"base64")):e=>Ce(qe(e).split("").map((e=>e.charCodeAt(0)))),We=e=>Ve(Qe(e)),Ye=xe?e=>Buffer.from(e,"base64").toString("utf8"):ke?e=>ke.decode(Ve(e)):e=>Ze(qe(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)}))},rt={version:be,VERSION:ye,atob:qe,atobPolyfill:Ke,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 nt={Rewarded:"rewarded",Interstitial:"interstitial",Preroll:"interstitial",Midroll:"interstitial",Display:"display"};function ot(e,t){var r;for(r in t)t.hasOwnProperty(r)&&null!==t[r]&&void 0!==t[r]&&(e[r]=t[r]);return e}function it(){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 r=st("ref",document.referrer);if(r){""!==r&&"{portal%20name}"!==r&&"{spilgames}"!==r&&"{portal name}"!==r&&(t=dt(r).replace(/^(?:https?:\/\/)?(?:\/\/)?(?:www\.)?/i,"").split("/")[0])}}else-1!==document.referrer.indexOf("localhost")&&(t="gamedistribution.com");return t}function at(){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 r=st("ref",document.referrer);if(r){""!==r&&"{portal%20name}"!==r&&"{spilgames}"!==r&&"{portal name}"!==r&&(t=dt(r).replace(/^(?:https?:\/\/)?(?:\/\/)?/i,""),t="https://".concat(t))}}else-1!==document.referrer.indexOf("localhost")&&(t="https://gamedistribution.com/");return t}function st(e,t){var r=t||window.location.href,n=new RegExp("[?&]"+e+"=([^&#]*)","i").exec(r);return n?n[1]:null}function ut(){for(var e,t=/\+/g,r=/([^&=]+)=?([^&]*)/g,n=function(e){return decodeURIComponent(e.toLowerCase().replace(t," "))},o=window.location.search.substring(1),i={};e=r.exec(o);)i[n(e[1])]=n(e[2]);return i}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,r){return new Promise((function(n,o){if(r&&r.exists&&r.exists())n(ht(null==r?void 0:r.alternates));else{var i=r&&r.alternates&&r.alternates.length>0?ht(r.alternates):void 0,a=i||document.createElement("script"),s=r&&r.error_prefix?r.error_prefix:"Failed:";if(a.onload=function(){r&&r.exists&&!r.exists()?o("".concat(s," ").concat(e)):n(a)},a.onerror=function(){o("".concat(s," ").concat(e))},!i){if(a.type="text/javascript",!0===r.defer?a.defer=!0:a.async=!0,null==r?void 0:r.attrs)for(var u in r.attrs)a.setAttribute(u,r.attrs[u]);a.src=e,a.id=t,document.head.appendChild(a)}}}))}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 r in t){var n=t[r];if(e.includes(n.src))return n}}}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 r=localStorage.getItem(e);return"true"===r||!0===r||1===r||"1"===r},getNumber:function(e,t){if(!mt(e))return t;var r=localStorage.getItem(e);return Number(r)},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,r){try{if(gt.available&>.getBoolean("gd_debug_ex")||bt&&!0===bt.console){var n="error"===r?"background: #c4161e; color: #fff":"warning"===r?"background: #ff8c1c; color: #fff":"info"===r?"background: #ff0080; color: #fff":"background: #44a5ab; color: #fff",o=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",n,void 0!==t?t:"");console.log.apply(console,o)}}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,r){var n,o=this.listeners[e],i=-1;if(!o||0===o.length)return i;for(n=0;n<o.length;n++)if(o[n].callback===t&&(!r||r===o[n].scope)){i=n;break}return i}},{key:"subscribe",value:function(e,t,r){var n;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,r)>=0?console.log(e,r):(n={callback:t,scope:r},this.listeners[e]=this.listeners[e]||[],this.listeners[e].push(n))}},{key:"unsubscribeScope",value:function(e){for(var t=Object.keys(this.listeners),r=0;r<t.length;r++){for(var n=t[r],o=this.listeners[n],i=0;i<o.length;i++)o[i].scope===e&&(o.splice(i,1),i--);0===o.length&&delete this.listeners[n]}}},{key:"broadcast",value:function(e,t){var r=this.listeners[e];e&&this.listeners[e]&&((t=t||{}).name=t.name||e,r.forEach((function(e){e.callback.call(e.scope,t,e.scope)})))}},{key:"printScope",value:function(e){for(var t=Object.keys(this.listeners),r=0;r<t.length;r++)for(var n=t[r],o=this.listeners[n],i=0;i<o.length;i++)o[i].scope===e&&console.log(n,e)}}]),e}(),Rt=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 r=B(e);return this.transformValue(r,t)}},{key:"transformValue",value:function(e,t){if(U(e)||K(e))for(var r in e)e[r]=this.transformValue(e[r],t);else if(H(e)){var n,o=/\{\{(\w+)\}\}/g,i=[];do{if(n=o.exec(e)){n[0];var a=n[1],s=this.getMacroKeyValue(a,t);void 0!==s&&i.push({key:a,value:s})}}while(n);i.length>0&&i.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&&q(t.get))return t.get(e)}}}]),e}(),It=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 r=this._topic_counter[e]||0;this._topic_counter[e]=++r;var n={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:r,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()&&(n.cmpe=idhb.iabCmpExists());try{n=encodeURIComponent(rt.encode(JSON.stringify([n]))),fetch(this._url+"?tp=com.gdsdk.".concat(e,"&ar=").concat(n,"&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],r=document.createElement("style");r.type="text/css",r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e)),t.appendChild(r);var n=document.body||document.getElementsByTagName("body")[0],o=document.createElement("div");o.id="gdsdk__console",o.style.position="fixed",o.style.zIndex=Et.zIndex,o.style.bottom="0",o.style.left="0",o.style.width="100%",o.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 ',n.appendChild(o);var i=document.getElementById("gdsdk__showLeaderboard"),a=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"),i.addEventListener("click",(function(){window.gdsdk.showLeaderBoard().catch((function(e){}))})),a.addEventListener("click",(function(){window.gdsdk.showAd(nt.Interstitial).catch((function(e){}))})),s.addEventListener("click",(function(){window.gdsdk.showAd(nt.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 o&&o)||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(r){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")})),Kt=Zt,qt=Function.prototype,Vt=qt.call,Wt=Kt&&qt.bind.bind(Vt,Vt),Yt=Kt?Wt:function(e){return function(){return Vt.apply(e,arguments)}},Qt=function(e){return null==e},Jt=Qt,Xt=TypeError,er=function(e){if(Jt(e))throw Xt("Can't call method on "+e);return e},tr=er,rr=Object,nr=function(e){return rr(tr(e))},or=nr,ir=Yt({}.hasOwnProperty),ar=Object.hasOwn||function(e,t){return ir(or(e),t)},sr=Yt,ur=0,cr=Math.random(),dr=sr(1..toString),lr=function(e){return"Symbol("+(void 0===e?"":e)+")_"+dr(++ur+cr,36)},fr="undefined"!=typeof navigator&&String(navigator.userAgent)||"",pr=Pt,hr=fr,mr=pr.process,vr=pr.Deno,gr=mr&&mr.versions||vr&&vr.version,Ar=gr&&gr.v8;Ar&&(Ht=(Gt=Ar.split("."))[0]>0&&Gt[0]<4?1:+(Gt[0]+Gt[1])),!Ht&&hr&&(!(Gt=hr.match(/Edge\/(\d+)/))||Gt[1]>=74)&&(Gt=hr.match(/Chrome\/(\d+)/))&&(Ht=+Gt[1]);var br=Ht,yr=br,_r=zt,wr=!!Object.getOwnPropertySymbols&&!_r((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&yr&&yr<41})),xr=wr&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,kr=Pt,Er=Lt.exports,Sr=ar,Dr=lr,Rr=wr,Ir=xr,Cr=kr.Symbol,Or=Er("wks"),Tr=Ir?Cr.for||Cr:Cr&&Cr.withoutSetter||Dr,Pr=function(e){return Sr(Or,e)||(Or[e]=Rr&&Sr(Cr,e)?Cr[e]:Tr("Symbol."+e)),Or[e]},Lr={};Lr[Pr("toStringTag")]="z";var Mr="[object z]"===String(Lr),Br="object"==typeof document&&document.all,jr={all:Br,IS_HTMLDDA:void 0===Br&&void 0!==Br},Ur=jr.all,Fr=jr.IS_HTMLDDA?function(e){return"function"==typeof e||e===Ur}:function(e){return"function"==typeof e},Nr={},$r=!zt((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Gr=Fr,Hr=jr.all,zr=jr.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:Gr(e)||e===Hr}:function(e){return"object"==typeof e?null!==e:Gr(e)},Zr=zr,Kr=Pt.document,qr=Zr(Kr)&&Zr(Kr.createElement),Vr=function(e){return qr?Kr.createElement(e):{}},Wr=Vr,Yr=!$r&&!zt((function(){return 7!=Object.defineProperty(Wr("div"),"a",{get:function(){return 7}}).a})),Qr=$r&&zt((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Jr=zr,Xr=String,en=TypeError,tn=function(e){if(Jr(e))return e;throw en(Xr(e)+" is not an object")},rn=Zt,nn=Function.prototype.call,on=rn?nn.bind(nn):function(){return nn.apply(nn,arguments)},an=Pt,sn=Fr,un=function(e,t){return arguments.length<2?(r=an[e],sn(r)?r:void 0):an[e]&&an[e][t];var r},cn=Yt({}.isPrototypeOf),dn=un,ln=Fr,fn=cn,pn=Object,hn=xr?function(e){return"symbol"==typeof e}:function(e){var t=dn("Symbol");return ln(t)&&fn(t.prototype,pn(e))},mn=String,vn=function(e){try{return mn(e)}catch(e){return"Object"}},gn=Fr,An=vn,bn=TypeError,yn=function(e){if(gn(e))return e;throw bn(An(e)+" is not a function")},_n=yn,wn=Qt,xn=function(e,t){var r=e[t];return wn(r)?void 0:_n(r)},kn=on,En=Fr,Sn=zr,Dn=TypeError,Rn=on,In=zr,Cn=hn,On=xn,Tn=function(e,t){var r,n;if("string"===t&&En(r=e.toString)&&!Sn(n=kn(r,e)))return n;if(En(r=e.valueOf)&&!Sn(n=kn(r,e)))return n;if("string"!==t&&En(r=e.toString)&&!Sn(n=kn(r,e)))return n;throw Dn("Can't convert object to primitive value")},Pn=TypeError,Ln=Pr("toPrimitive"),Mn=function(e,t){if(!In(e)||Cn(e))return e;var r,n=On(e,Ln);if(n){if(void 0===t&&(t="default"),r=Rn(n,e,t),!In(r)||Cn(r))return r;throw Pn("Can't convert object to primitive value")}return void 0===t&&(t="number"),Tn(e,t)},Bn=hn,jn=function(e){var t=Mn(e,"string");return Bn(t)?t:t+""},Un=$r,Fn=Yr,Nn=Qr,$n=tn,Gn=jn,Hn=TypeError,zn=Object.defineProperty,Zn=Object.getOwnPropertyDescriptor,Kn="enumerable",qn="configurable",Vn="writable";Nr.f=Un?Nn?function(e,t,r){if($n(e),t=Gn(t),$n(r),"function"==typeof e&&"prototype"===t&&"value"in r&&Vn in r&&!r[Vn]){var n=Zn(e,t);n&&n[Vn]&&(e[t]=r.value,r={configurable:qn in r?r[qn]:n[qn],enumerable:Kn in r?r[Kn]:n[Kn],writable:!1})}return zn(e,t,r)}:zn:function(e,t,r){if($n(e),t=Gn(t),$n(r),Fn)try{return zn(e,t,r)}catch(e){}if("get"in r||"set"in r)throw Hn("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var Wn={exports:{}},Yn=$r,Qn=ar,Jn=Function.prototype,Xn=Yn&&Object.getOwnPropertyDescriptor,eo=Qn(Jn,"name"),to={EXISTS:eo,PROPER:eo&&"something"===function(){}.name,CONFIGURABLE:eo&&(!Yn||Yn&&Xn(Jn,"name").configurable)},ro=Fr,no=Nt,oo=Yt(Function.toString);ro(no.inspectSource)||(no.inspectSource=function(e){return oo(e)});var ao,so,uo,co=no.inspectSource,lo=Fr,fo=Pt.WeakMap,po=lo(fo)&&/native code/.test(String(fo)),ho=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},mo=Nr,vo=ho,go=$r?function(e,t,r){return mo.f(e,t,vo(1,r))}:function(e,t,r){return e[t]=r,e},Ao=Lt.exports,bo=lr,yo=Ao("keys"),_o=function(e){return yo[e]||(yo[e]=bo(e))},wo={},xo=po,ko=Pt,Eo=zr,So=go,Do=ar,Ro=Nt,Io=_o,Co=wo,Oo="Object already initialized",To=ko.TypeError,Po=ko.WeakMap;if(xo||Ro.state){var Lo=Ro.state||(Ro.state=new Po);Lo.get=Lo.get,Lo.has=Lo.has,Lo.set=Lo.set,ao=function(e,t){if(Lo.has(e))throw To(Oo);return t.facade=e,Lo.set(e,t),t},so=function(e){return Lo.get(e)||{}},uo=function(e){return Lo.has(e)}}else{var Mo=Io("state");Co[Mo]=!0,ao=function(e,t){if(Do(e,Mo))throw To(Oo);return t.facade=e,So(e,Mo,t),t},so=function(e){return Do(e,Mo)?e[Mo]:{}},uo=function(e){return Do(e,Mo)}}var Bo={set:ao,get:so,has:uo,enforce:function(e){return uo(e)?so(e):ao(e,{})},getterFor:function(e){return function(t){var r;if(!Eo(t)||(r=so(t)).type!==e)throw To("Incompatible receiver, "+e+" required");return r}}},jo=Yt,Uo=zt,Fo=Fr,No=ar,$o=$r,Go=to.CONFIGURABLE,Ho=co,zo=Bo.enforce,Zo=Bo.get,Ko=String,qo=Object.defineProperty,Vo=jo("".slice),Wo=jo("".replace),Yo=jo([].join),Qo=$o&&!Uo((function(){return 8!==qo((function(){}),"length",{value:8}).length})),Jo=String(String).split("String"),Xo=Wn.exports=function(e,t,r){"Symbol("===Vo(Ko(t),0,7)&&(t="["+Wo(Ko(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!No(e,"name")||Go&&e.name!==t)&&($o?qo(e,"name",{value:t,configurable:!0}):e.name=t),Qo&&r&&No(r,"arity")&&e.length!==r.arity&&qo(e,"length",{value:r.arity});try{r&&No(r,"constructor")&&r.constructor?$o&&qo(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=zo(e);return No(n,"source")||(n.source=Yo(Jo,"string"==typeof t?t:"")),e};Function.prototype.toString=Xo((function(){return Fo(this)&&Zo(this).source||Ho(this)}),"toString");var ei=Fr,ti=Nr,ri=Wn.exports,ni=jt,oi=function(e,t,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:t;if(ei(r)&&ri(r,i,n),n.global)o?e[t]=r:ni(t,r);else{try{n.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=r:ti.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},ii=Yt,ai=ii({}.toString),si=ii("".slice),ui=function(e){return si(ai(e),8,-1)},ci=Mr,di=Fr,li=ui,fi=Pr("toStringTag"),pi=Object,hi="Arguments"==li(function(){return arguments}()),mi=ci?li:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=pi(e),fi))?r:hi?li(t):"Object"==(n=li(t))&&di(t.callee)?"Arguments":n},vi=mi,gi=Mr?{}.toString:function(){return"[object "+vi(this)+"]"};Mr||oi(Object.prototype,"toString",gi,{unsafe:!0});var Ai={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},bi=Vr("span").classList,yi=bi&&bi.constructor&&bi.constructor.prototype,_i=yi===Object.prototype?void 0:yi,wi=ui,xi=Yt,ki=function(e){if("Function"===wi(e))return xi(e)},Ei=yn,Si=Zt,Di=ki(ki.bind),Ri=function(e,t){return Ei(e),void 0===t?e:Si?Di(e,t):function(){return e.apply(t,arguments)}},Ii=zt,Ci=ui,Oi=Object,Ti=Yt("".split),Pi=Ii((function(){return!Oi("z").propertyIsEnumerable(0)}))?function(e){return"String"==Ci(e)?Ti(e,""):Oi(e)}:Oi,Li=Math.ceil,Mi=Math.floor,Bi=Math.trunc||function(e){var t=+e;return(t>0?Mi:Li)(t)},ji=Bi,Ui=function(e){var t=+e;return t!=t||0===t?0:ji(t)},Fi=Ui,Ni=Math.min,$i=function(e){return e>0?Ni(Fi(e),9007199254740991):0},Gi=$i,Hi=function(e){return Gi(e.length)},zi=ui,Zi=Array.isArray||function(e){return"Array"==zi(e)},Ki=Yt,qi=zt,Vi=Fr,Wi=mi,Yi=co,Qi=function(){},Ji=[],Xi=un("Reflect","construct"),ea=/^\s*(?:class|function)\b/,ta=Ki(ea.exec),ra=!ea.exec(Qi),na=function(e){if(!Vi(e))return!1;try{return Xi(Qi,Ji,e),!0}catch(e){return!1}},oa=function(e){if(!Vi(e))return!1;switch(Wi(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ra||!!ta(ea,Yi(e))}catch(e){return!0}};oa.sham=!0;var ia=!Xi||qi((function(){var e;return na(na.call)||!na(Object)||!na((function(){e=!0}))||e}))?oa:na,aa=Zi,sa=ia,ua=zr,ca=Pr("species"),da=Array,la=function(e){var t;return aa(e)&&(t=e.constructor,(sa(t)&&(t===da||aa(t.prototype))||ua(t)&&null===(t=t[ca]))&&(t=void 0)),void 0===t?da:t},fa=function(e,t){return new(la(e))(0===t?0:t)},pa=Ri,ha=Pi,ma=nr,va=Hi,ga=fa,Aa=Yt([].push),ba=function(e){var t=1==e,r=2==e,n=3==e,o=4==e,i=6==e,a=7==e,s=5==e||i;return function(u,c,d,l){for(var f,p,h=ma(u),m=ha(h),v=pa(c,d),g=va(m),A=0,b=l||ga,y=t?b(u,g):r||a?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:Aa(y,f)}else switch(e){case 4:return!1;case 7:Aa(y,f)}return i?-1:n||o?o:y}},ya={forEach:ba(0),map:ba(1),filter:ba(2),some:ba(3),every:ba(4),find:ba(5),findIndex:ba(6),filterReject:ba(7)},_a=zt,wa=function(e,t){var r=[][e];return!!r&&_a((function(){r.call(null,t||function(){return 1},1)}))},xa=ya.forEach,ka=wa("forEach")?[].forEach:function(e){return xa(this,e,arguments.length>1?arguments[1]:void 0)},Ea=Pt,Sa=Ai,Da=_i,Ra=ka,Ia=go,Ca=function(e){if(e&&e.forEach!==Ra)try{Ia(e,"forEach",Ra)}catch(t){e.forEach=Ra}};for(var Oa in Sa)Sa[Oa]&&Ca(Ea[Oa]&&Ea[Oa].prototype);Ca(Da);var Ta={},Pa={},La={}.propertyIsEnumerable,Ma=Object.getOwnPropertyDescriptor,Ba=Ma&&!La.call({1:2},1);Pa.f=Ba?function(e){var t=Ma(this,e);return!!t&&t.enumerable}:La;var ja=Pi,Ua=er,Fa=function(e){return ja(Ua(e))},Na=$r,$a=on,Ga=Pa,Ha=ho,za=Fa,Za=jn,Ka=ar,qa=Yr,Va=Object.getOwnPropertyDescriptor;Ta.f=Na?Va:function(e,t){if(e=za(e),t=Za(t),qa)try{return Va(e,t)}catch(e){}if(Ka(e,t))return Ha(!$a(Ga.f,e,t),e[t])};var Wa={},Ya=Ui,Qa=Math.max,Ja=Math.min,Xa=function(e,t){var r=Ya(e);return r<0?Qa(r+t,0):Ja(r,t)},es=Fa,ts=Xa,rs=Hi,ns=function(e){return function(t,r,n){var o,i=es(t),a=rs(i),s=ts(n,a);if(e&&r!=r){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===r)return e||s||0;return!e&&-1}},os={includes:ns(!0),indexOf:ns(!1)},is=ar,as=Fa,ss=os.indexOf,us=wo,cs=Yt([].push),ds=function(e,t){var r,n=as(e),o=0,i=[];for(r in n)!is(us,r)&&is(n,r)&&cs(i,r);for(;t.length>o;)is(n,r=t[o++])&&(~ss(i,r)||cs(i,r));return i},ls=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],fs=ds,ps=ls.concat("length","prototype");Wa.f=Object.getOwnPropertyNames||function(e){return fs(e,ps)};var hs={};hs.f=Object.getOwnPropertySymbols;var ms=un,vs=Wa,gs=hs,As=tn,bs=Yt([].concat),ys=ms("Reflect","ownKeys")||function(e){var t=vs.f(As(e)),r=gs.f;return r?bs(t,r(e)):t},_s=ar,ws=ys,xs=Ta,ks=Nr,Es=function(e,t,r){for(var n=ws(t),o=ks.f,i=xs.f,a=0;a<n.length;a++){var s=n[a];_s(e,s)||r&&_s(r,s)||o(e,s,i(t,s))}},Ss=zt,Ds=Fr,Rs=/#|\.prototype\./,Is=function(e,t){var r=Os[Cs(e)];return r==Ps||r!=Ts&&(Ds(t)?Ss(t):!!t)},Cs=Is.normalize=function(e){return String(e).replace(Rs,".").toLowerCase()},Os=Is.data={},Ts=Is.NATIVE="N",Ps=Is.POLYFILL="P",Ls=Is,Ms=Pt,Bs=Ta.f,js=go,Us=oi,Fs=jt,Ns=Es,$s=Ls,Gs=function(e,t){var r,n,o,i,a,s=e.target,u=e.global,c=e.stat;if(r=u?Ms:c?Ms[s]||Fs(s,{}):(Ms[s]||{}).prototype)for(n in t){if(i=t[n],o=e.dontCallGetSet?(a=Bs(r,n))&&a.value:r[n],!$s(u?n:s+(c?".":"#")+n,e.forced)&&void 0!==o){if(typeof i==typeof o)continue;Ns(i,o)}(e.sham||o&&o.sham)&&js(i,"sham",!0),Us(r,n,i,e)}},Hs=ds,zs=ls,Zs=Object.keys||function(e){return Hs(e,zs)},Ks=nr,Vs=Zs;Gs({target:"Object",stat:!0,forced:zt((function(){Vs(1)}))},{keys:function(e){return Vs(Ks(e))}});var Ws={name:"@bygd/gd-sdk-pes",version:"1.41.13",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"}},Ys=function(e){var t=Qs("object"===n(e)?e:function(e){if(e)try{return JSON.parse(e)}catch(e){}}(e));return t&&t.version?Ws.version>=t.version?t:void 0:t},Qs=function(e){var t=this;if(!K(e)||0===e.length)return e;if(1===e.length)return e[0];var n=0;e.forEach(function(e){r(this,t),e.weight=e.weight||1,n+=e.weight}.bind(this));var o=Math.floor(Math.random()*Math.floor(n));n=0;for(var i=0;i<e.length;i++){var a=e[i];if(o<(n+=a.weight))return a}},Js=function(){},Xs=function(){var e;(e=console).log.apply(e,arguments)},eu=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 tu={};function ru(e,t,r){return(t=T(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var nu=mi,ou=String,iu=function(e){if("Symbol"===nu(e))throw TypeError("Cannot convert a Symbol value to a string");return ou(e)},au={},su=$r,uu=Qr,cu=Nr,du=tn,lu=Fa,fu=Zs;au.f=su&&!uu?Object.defineProperties:function(e,t){du(e);for(var r,n=lu(t),o=fu(t),i=o.length,a=0;i>a;)cu.f(e,r=o[a++],n[r]);return e};var pu,hu=un("document","documentElement"),mu=tn,vu=au,gu=ls,Au=wo,bu=hu,yu=Vr,_u="prototype",wu="script",xu=_o("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,r;Du="undefined"!=typeof document?document.domain&&pu?Su(pu):(t=yu("iframe"),r="java"+wu+":",t.style.display="none",bu.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(Eu("document.F=Object")),e.close(),e.F):Su(pu);for(var n=gu.length;n--;)delete Du[_u][gu[n]];return Du()};Au[xu]=!0;var Ru=Object.create||function(e,t){var r;return null!==e?(ku[_u]=mu(e),r=new ku,ku[_u]=null,r[xu]=e):r=Du(),void 0===t?r:vu.f(r,t)},Iu={},Cu=jn,Ou=Nr,Tu=ho,Pu=function(e,t,r){var n=Cu(t);n in e?Ou.f(e,n,Tu(0,r)):e[n]=r},Lu=Xa,Mu=Hi,Bu=Pu,ju=Array,Uu=Math.max,Fu=function(e,t,r){for(var n=Mu(e),o=Lu(t,n),i=Lu(void 0===r?n:r,n),a=ju(Uu(i-o,0)),s=0;o<i;o++,s++)Bu(a,s,e[o]);return a.length=s,a},Nu=ui,$u=Fa,Gu=Wa.f,Hu=Fu,zu="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Iu.f=function(e){return zu&&"Window"==Nu(e)?function(e){try{return Gu(e)}catch(e){return Hu(zu)}}(e):Gu($u(e))};var Zu=Wn.exports,Ku=Nr,qu=function(e,t,r){return r.get&&Zu(r.get,t,{getter:!0}),r.set&&Zu(r.set,t,{setter:!0}),Ku.f(e,t,r)},Vu={},Wu=Pr;Vu.f=Wu;var Yu=Pt,Qu=ar,Ju=Vu,Xu=Nr.f,ec=function(e){var t=Yu.Symbol||(Yu.Symbol={});Qu(t,e)||Xu(t,e,{value:Ju.f(e)})},tc=on,rc=un,nc=Pr,oc=oi,ic=Nr.f,ac=ar,sc=Pr("toStringTag"),uc=function(e,t,r){e&&!r&&(e=e.prototype),e&&!ac(e,sc)&&ic(e,sc,{configurable:!0,value:t})},cc=Gs,dc=Pt,lc=on,fc=Yt,pc=$r,hc=wr,mc=zt,vc=ar,gc=cn,Ac=tn,bc=Fa,yc=jn,_c=iu,wc=ho,xc=Ru,kc=Zs,Ec=Wa,Sc=Iu,Dc=hs,Rc=Ta,Ic=Nr,Cc=au,Oc=Pa,Tc=oi,Pc=qu,Lc=Lt.exports,Mc=wo,Bc=lr,jc=Pr,Uc=Vu,Fc=ec,Nc=function(){var e=rc("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,n=nc("toPrimitive");t&&!t[n]&&oc(t,n,(function(e){return tc(r,this)}),{arity:1})},$c=uc,Gc=Bo,Hc=ya.forEach,zc=_o("hidden"),Zc="Symbol",Kc="prototype",qc=Gc.set,Vc=Gc.getterFor(Zc),Wc=Object[Kc],Yc=dc.Symbol,Qc=Yc&&Yc[Kc],Jc=dc.TypeError,Xc=dc.QObject,ed=Rc.f,td=Ic.f,rd=Sc.f,nd=Oc.f,od=fc([].push),id=Lc("symbols"),ad=Lc("op-symbols"),sd=Lc("wks"),ud=!Xc||!Xc[Kc]||!Xc[Kc].findChild,cd=pc&&mc((function(){return 7!=xc(td({},"a",{get:function(){return td(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=ed(Wc,t);n&&delete Wc[t],td(e,t,r),n&&e!==Wc&&td(Wc,t,n)}:td,dd=function(e,t){var r=id[e]=xc(Qc);return qc(r,{type:Zc,tag:e,description:t}),pc||(r.description=t),r},ld=function(e,t,r){e===Wc&&ld(ad,t,r),Ac(e);var n=yc(t);return Ac(r),vc(id,n)?(r.enumerable?(vc(e,zc)&&e[zc][n]&&(e[zc][n]=!1),r=xc(r,{enumerable:wc(0,!1)})):(vc(e,zc)||td(e,zc,wc(1,{})),e[zc][n]=!0),cd(e,n,r)):td(e,n,r)},fd=function(e,t){Ac(e);var r=bc(t),n=kc(r).concat(vd(r));return Hc(n,(function(t){pc&&!lc(pd,r,t)||ld(e,t,r[t])})),e},pd=function(e){var t=yc(e),r=lc(nd,this,t);return!(this===Wc&&vc(id,t)&&!vc(ad,t))&&(!(r||!vc(this,t)||!vc(id,t)||vc(this,zc)&&this[zc][t])||r)},hd=function(e,t){var r=bc(e),n=yc(t);if(r!==Wc||!vc(id,n)||vc(ad,n)){var o=ed(r,n);return!o||!vc(id,n)||vc(r,zc)&&r[zc][n]||(o.enumerable=!0),o}},md=function(e){var t=rd(bc(e)),r=[];return Hc(t,(function(e){vc(id,e)||vc(Mc,e)||od(r,e)})),r},vd=function(e){var t=e===Wc,r=rd(t?ad:bc(e)),n=[];return Hc(r,(function(e){!vc(id,e)||t&&!vc(Wc,e)||od(n,id[e])})),n};hc||(Yc=function(){if(gc(Qc,this))throw Jc("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?_c(arguments[0]):void 0,t=Bc(e),r=function(e){this===Wc&&lc(r,ad,e),vc(this,zc)&&vc(this[zc],t)&&(this[zc][t]=!1),cd(this,t,wc(1,e))};return pc&&ud&&cd(Wc,t,{configurable:!0,set:r}),dd(t,e)},Tc(Qc=Yc[Kc],"toString",(function(){return Vc(this).tag})),Tc(Yc,"withoutSetter",(function(e){return dd(Bc(e),e)})),Oc.f=pd,Ic.f=ld,Cc.f=fd,Rc.f=hd,Ec.f=Sc.f=md,Dc.f=vd,Uc.f=function(e){return dd(jc(e),e)},pc&&(Pc(Qc,"description",{configurable:!0,get:function(){return Vc(this).description}}),Tc(Wc,"propertyIsEnumerable",pd,{unsafe:!0}))),cc({global:!0,constructor:!0,wrap:!0,forced:!hc,sham:!hc},{Symbol:Yc}),Hc(kc(sd),(function(e){Fc(e)})),cc({target:Zc,stat:!0,forced:!hc},{useSetter:function(){ud=!0},useSimple:function(){ud=!1}}),cc({target:"Object",stat:!0,forced:!hc,sham:!pc},{create:function(e,t){return void 0===t?xc(e):fd(xc(e),t)},defineProperty:ld,defineProperties:fd,getOwnPropertyDescriptor:hd}),cc({target:"Object",stat:!0,forced:!hc},{getOwnPropertyNames:md}),Nc(),$c(Yc,Zc),Mc[zc]=!0;var gd=wr&&!!Symbol.for&&!!Symbol.keyFor,Ad=Gs,bd=un,yd=ar,_d=iu,wd=Lt.exports,xd=gd,kd=wd("string-to-symbol-registry"),Ed=wd("symbol-to-string-registry");Ad({target:"Symbol",stat:!0,forced:!xd},{for:function(e){var t=_d(e);if(yd(kd,t))return kd[t];var r=bd("Symbol")(t);return kd[t]=r,Ed[r]=t,r}});var Sd=Gs,Dd=ar,Rd=hn,Id=vn,Cd=gd,Od=(0,Lt.exports)("symbol-to-string-registry");Sd({target:"Symbol",stat:!0,forced:!Cd},{keyFor:function(e){if(!Rd(e))throw TypeError(Id(e)+" is not a symbol");if(Dd(Od,e))return Od[e]}});var Td=Zt,Pd=Function.prototype,Ld=Pd.apply,Md=Pd.call,Bd="object"==typeof Reflect&&Reflect.apply||(Td?Md.bind(Ld):function(){return Md.apply(Ld,arguments)}),jd=Yt([].slice),Ud=Zi,Fd=Fr,Nd=ui,$d=iu,Gd=Yt([].push),Hd=Gs,zd=un,Zd=Bd,Kd=on,qd=Yt,Vd=zt,Wd=Fr,Yd=hn,Qd=jd,Jd=function(e){if(Fd(e))return e;if(Ud(e)){for(var t=e.length,r=[],n=0;n<t;n++){var o=e[n];"string"==typeof o?Gd(r,o):"number"!=typeof o&&"Number"!=Nd(o)&&"String"!=Nd(o)||Gd(r,$d(o))}var i=r.length,a=!0;return function(e,t){if(a)return a=!1,t;if(Ud(this))return t;for(var n=0;n<i;n++)if(r[n]===e)return t}}},Xd=wr,el=String,tl=zd("JSON","stringify"),rl=qd(/./.exec),nl=qd("".charAt),ol=qd("".charCodeAt),il=qd("".replace),al=qd(1..toString),sl=/[\uD800-\uDFFF]/g,ul=/^[\uD800-\uDBFF]$/,cl=/^[\uDC00-\uDFFF]$/,dl=!Xd||Vd((function(){var e=zd("Symbol")();return"[null]"!=tl([e])||"{}"!=tl({a:e})||"{}"!=tl(Object(e))})),ll=Vd((function(){return'"\\udf06\\ud834"'!==tl("\udf06\ud834")||'"\\udead"'!==tl("\udead")})),fl=function(e,t){var r=Qd(arguments),n=Jd(t);if(Wd(n)||void 0!==e&&!Yd(e))return r[1]=function(e,t){if(Wd(n)&&(t=Kd(n,this,el(e),t)),!Yd(t))return t},Zd(tl,null,r)},pl=function(e,t,r){var n=nl(r,t-1),o=nl(r,t+1);return rl(ul,e)&&!rl(cl,o)||rl(cl,e)&&!rl(ul,n)?"\\u"+al(ol(e,0),16):e};tl&&Hd({target:"JSON",stat:!0,arity:3,forced:dl||ll},{stringify:function(e,t,r){var n=Qd(arguments),o=Zd(dl?fl:tl,null,n);return ll&&"string"==typeof o?il(o,sl,pl):o}});var hl=hs,ml=nr;Gs({target:"Object",stat:!0,forced:!wr||zt((function(){hl.f(1)}))},{getOwnPropertySymbols:function(e){var t=hl.f;return t?t(ml(e)):[]}});var vl=zt,gl=br,Al=Pr("species"),bl=function(e){return gl>=51||!vl((function(){var t=[];return(t.constructor={})[Al]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},yl=ya.filter;Gs({target:"Array",proto:!0,forced:!bl("filter")},{filter:function(e){return yl(this,e,arguments.length>1?arguments[1]:void 0)}});var _l=Gs,wl=zt,xl=Fa,kl=Ta.f,El=$r;_l({target:"Object",stat:!0,forced:!El||wl((function(){kl(1)})),sham:!El},{getOwnPropertyDescriptor:function(e,t){return kl(xl(e),t)}});var Sl=ys,Dl=Fa,Rl=Ta,Il=Pu;Gs({target:"Object",stat:!0,sham:!$r},{getOwnPropertyDescriptors:function(e){for(var t,r,n=Dl(e),o=Rl.f,i=Sl(n),a={},s=0;i.length>s;)void 0!==(r=o(n,t=i[s++]))&&Il(a,t,r);return a}});var Cl=Gs,Ol=Zi,Tl=ia,Pl=zr,Ll=Xa,Ml=Hi,Bl=Fa,jl=Pu,Ul=Pr,Fl=jd,Nl=bl("slice"),$l=Ul("species"),Gl=Array,Hl=Math.max;Cl({target:"Array",proto:!0,forced:!Nl},{slice:function(e,t){var r,n,o,i=Bl(this),a=Ml(i),s=Ll(e,a),u=Ll(void 0===t?a:t,a);if(Ol(i)&&(r=i.constructor,(Tl(r)&&(r===Gl||Ol(r.prototype))||Pl(r)&&null===(r=r[$l]))&&(r=void 0),r===Gl||void 0===r))return Fl(i,s,u);for(n=new(void 0===r?Gl:r)(Hl(u-s,0)),o=0;s<u;s++,o++)s in i&&jl(n,o,i[s]);return n.length=o,n}});var zl=on,Zl=tn,Kl=xn,ql=function(e,t,r){var n,o;Zl(e);try{if(!(n=Kl(e,"return"))){if("throw"===t)throw r;return r}n=zl(n,e)}catch(e){o=!0,n=e}if("throw"===t)throw r;if(o)throw n;return Zl(n),r},Vl=tn,Wl=ql,Yl={},Ql=Yl,Jl=Pr("iterator"),Xl=Array.prototype,ef=function(e){return void 0!==e&&(Ql.Array===e||Xl[Jl]===e)},tf=mi,rf=xn,nf=Qt,of=Yl,af=Pr("iterator"),sf=function(e){if(!nf(e))return rf(e,af)||rf(e,"@@iterator")||of[tf(e)]},uf=on,cf=yn,df=tn,lf=vn,ff=sf,pf=TypeError,hf=function(e,t){var r=arguments.length<2?ff(e):t;if(cf(r))return df(uf(r,e));throw pf(lf(e)+" is not iterable")},mf=Ri,vf=on,gf=nr,Af=function(e,t,r,n){try{return n?t(Vl(r)[0],r[1]):t(r)}catch(t){Wl(e,"throw",t)}},bf=ef,yf=ia,_f=Hi,wf=Pu,xf=hf,kf=sf,Ef=Array,Sf=function(e){var t=gf(e),r=yf(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=void 0!==o;i&&(o=mf(o,n>2?arguments[2]:void 0));var a,s,u,c,d,l,f=kf(t),p=0;if(!f||this===Ef&&bf(f))for(a=_f(t),s=r?new this(a):Ef(a);a>p;p++)l=i?o(t[p],p):t[p],wf(s,p,l);else for(d=(c=xf(t,f)).next,s=r?new this:[];!(u=vf(d,c)).done;p++)l=i?Af(c,o,[u.value,p],!0):u.value,wf(s,p,l);return s.length=p,s},Df=Pr("iterator"),Rf=!1;try{var If=0,Cf={next:function(){return{done:!!If++}},return:function(){Rf=!0}};Cf[Df]=function(){return this},Array.from(Cf,(function(){throw 2}))}catch(SS){}var Of=function(e,t){if(!t&&!Rf)return!1;var r=!1;try{var n={};n[Df]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r},Tf=Sf;Gs({target:"Array",stat:!0,forced:!Of((function(e){Array.from(e)}))},{from:Tf});var Pf,Lf,Mf,Bf=Yt,jf=Ui,Uf=iu,Ff=er,Nf=Bf("".charAt),$f=Bf("".charCodeAt),Gf=Bf("".slice),Hf=function(e){return function(t,r){var n,o,i=Uf(Ff(t)),a=jf(r),s=i.length;return a<0||a>=s?e?"":void 0:(n=$f(i,a))<55296||n>56319||a+1===s||(o=$f(i,a+1))<56320||o>57343?e?Nf(i,a):n:e?Gf(i,a,a+2):o-56320+(n-55296<<10)+65536}},zf={codeAt:Hf(!1),charAt:Hf(!0)},Zf=!zt((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Kf=ar,qf=Fr,Vf=nr,Wf=Zf,Yf=_o("IE_PROTO"),Qf=Object,Jf=Qf.prototype,Xf=Wf?Qf.getPrototypeOf:function(e){var t=Vf(e);if(Kf(t,Yf))return t[Yf];var r=t.constructor;return qf(r)&&t instanceof r?r.prototype:t instanceof Qf?Jf:null},ep=zt,tp=Fr,rp=zr,np=Xf,op=oi,ip=Pr("iterator"),ap=!1;[].keys&&("next"in(Mf=[].keys())?(Lf=np(np(Mf)))!==Object.prototype&&(Pf=Lf):ap=!0);var sp=!rp(Pf)||ep((function(){var e={};return Pf[ip].call(e)!==e}));sp&&(Pf={}),tp(Pf[ip])||op(Pf,ip,(function(){return this}));var up={IteratorPrototype:Pf,BUGGY_SAFARI_ITERATORS:ap},cp=up.IteratorPrototype,dp=Ru,lp=ho,fp=uc,pp=Yl,hp=function(){return this},mp=function(e,t,r,n){var o=t+" Iterator";return e.prototype=dp(cp,{next:lp(+!n,r)}),fp(e,o,!1),pp[o]=hp,e},vp=Yt,gp=yn,Ap=Fr,bp=String,yp=TypeError,_p=function(e,t,r){try{return vp(gp(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}},wp=tn,xp=function(e){if("object"==typeof e||Ap(e))return e;throw yp("Can't set "+bp(e)+" as a prototype")},kp=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=_p(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return wp(r),xp(n),t?e(r,n):r.__proto__=n,r}}():void 0),Ep=Gs,Sp=on,Dp=Fr,Rp=mp,Ip=Xf,Cp=kp,Op=uc,Tp=go,Pp=oi,Lp=Yl,Mp=to.PROPER,Bp=to.CONFIGURABLE,jp=up.IteratorPrototype,Up=up.BUGGY_SAFARI_ITERATORS,Fp=Pr("iterator"),Np="keys",$p="values",Gp="entries",Hp=function(){return this},zp=function(e,t,r,n,o,i,a){Rp(r,t,n);var s,u,c,d=function(e){if(e===o&&m)return m;if(!Up&&e in p)return p[e];switch(e){case Np:case $p:case Gp:return function(){return new r(this,e)}}return function(){return new r(this)}},l=t+" Iterator",f=!1,p=e.prototype,h=p[Fp]||p["@@iterator"]||o&&p[o],m=!Up&&h||d(o),v="Array"==t&&p.entries||h;if(v&&(s=Ip(v.call(new e)))!==Object.prototype&&s.next&&(Ip(s)!==jp&&(Cp?Cp(s,jp):Dp(s[Fp])||Pp(s,Fp,Hp)),Op(s,l,!0)),Mp&&o==$p&&h&&h.name!==$p&&(Bp?Tp(p,"name",$p):(f=!0,m=function(){return Sp(h,this)})),o)if(u={values:d($p),keys:i?m:d(Np),entries:d(Gp)},a)for(c in u)(Up||f||!(c in p))&&Pp(p,c,u[c]);else Ep({target:t,proto:!0,forced:Up||f},u);return p[Fp]!==m&&Pp(p,Fp,m,{name:o}),Lp[t]=m,u},Zp=function(e,t){return{value:e,done:t}},Kp=zf.charAt,qp=iu,Vp=Bo,Wp=zp,Yp=Zp,Qp="String Iterator",Jp=Vp.set,Xp=Vp.getterFor(Qp);Wp(String,"String",(function(e){Jp(this,{type:Qp,string:qp(e),index:0})}),(function(){var e,t=Xp(this),r=t.string,n=t.index;return n>=r.length?Yp(void 0,!0):(e=Kp(r,n),t.index+=e.length,Yp(e,!1))}));var eh=tn,th=function(){var e=eh(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},rh=zt,nh=Pt.RegExp,oh=rh((function(){var e=nh("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),ih=oh||rh((function(){return!nh("a","y").sticky})),ah=oh||rh((function(){var e=nh("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),sh={BROKEN_CARET:ah,MISSED_STICKY:ih,UNSUPPORTED_Y:oh},uh=zt,ch=Pt.RegExp,dh=uh((function(){var e=ch(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),lh=zt,fh=Pt.RegExp,ph=lh((function(){var e=fh("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),hh=on,mh=Yt,vh=iu,gh=th,Ah=sh,bh=Lt.exports,yh=Ru,_h=Bo.get,wh=dh,xh=ph,kh=bh("native-string-replace",String.prototype.replace),Eh=RegExp.prototype.exec,Sh=Eh,Dh=mh("".charAt),Rh=mh("".indexOf),Ih=mh("".replace),Ch=mh("".slice),Oh=function(){var e=/a/,t=/b*/g;return hh(Eh,e,"a"),hh(Eh,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),Th=Ah.BROKEN_CARET,Ph=void 0!==/()??/.exec("")[1];(Oh||Ph||Th||wh||xh)&&(Sh=function(e){var t,r,n,o,i,a,s,u=this,c=_h(u),d=vh(e),l=c.raw;if(l)return l.lastIndex=u.lastIndex,t=hh(Sh,l,d),u.lastIndex=l.lastIndex,t;var f=c.groups,p=Th&&u.sticky,h=hh(gh,u),m=u.source,v=0,g=d;if(p&&(h=Ih(h,"y",""),-1===Rh(h,"g")&&(h+="g"),g=Ch(d,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==Dh(d,u.lastIndex-1))&&(m="(?: "+m+")",g=" "+g,v++),r=new RegExp("^(?:"+m+")",h)),Ph&&(r=new RegExp("^"+m+"$(?!\\s)",h)),Oh&&(n=u.lastIndex),o=hh(Eh,p?r:u,g),p?o?(o.input=Ch(o.input,v),o[0]=Ch(o[0],v),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:Oh&&o&&(u.lastIndex=u.global?o.index+o[0].length:n),Ph&&o&&o.length>1&&hh(kh,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&f)for(o.groups=a=yh(null),i=0;i<f.length;i++)a[(s=f[i])[0]]=o[s[1]];return o});var Lh=Sh;Gs({target:"RegExp",proto:!0,forced:/./.exec!==Lh},{exec:Lh});var Mh=Gs,Bh=$r,jh=Yt,Uh=ar,Fh=Fr,Nh=cn,$h=iu,Gh=qu,Hh=Es,zh=Pt.Symbol,Zh=zh&&zh.prototype;if(Bh&&Fh(zh)&&(!("description"in Zh)||void 0!==zh().description)){var Kh={},qh=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&&(Kh[t]=!0),t};Hh(qh,zh),qh.prototype=Zh,Zh.constructor=qh;var Vh="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(Kh,e))return"";var t=Yh(e),r=Vh?Xh(t,7,-1):Jh(t,Qh,"$1");return""===r?void 0:r}}),Mh({global:!0,constructor:!0,forced:!0},{Symbol:qh})}ec("iterator");var em=Pr,tm=Ru,rm=Nr.f,nm=em("unscopables"),om=Array.prototype;null==om[nm]&&rm(om,nm,{configurable:!0,value:tm(null)});var im=function(e){om[nm][e]=!0},am=Fa,sm=im,um=Yl,cm=Bo,dm=Nr.f,lm=zp,fm=Zp,pm=$r,hm="Array Iterator",mm=cm.set,vm=cm.getterFor(hm),gm=lm(Array,"Array",(function(e,t){mm(this,{type:hm,target:am(e),index:0,kind:t})}),(function(){var e=vm(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,fm(void 0,!0)):fm("keys"==r?n:"values"==r?t[n]:[n,t[n]],!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=Ai,_m=_i,wm=gm,xm=go,km=Pr,Em=km("iterator"),Sm=km("toStringTag"),Dm=wm.values,Rm=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 r in wm)if(e[r]!==wm[r])try{xm(e,r,wm[r])}catch(t){e[r]=wm[r]}}};for(var Im in ym)Rm(bm[Im]&&bm[Im].prototype,Im);Rm(_m,"DOMTokenList");var Cm,Om,Tm,Pm,Lm="undefined"!=typeof process&&"process"==ui(process),Mm=un,Bm=qu,jm=$r,Um=Pr("species"),Fm=function(e){var t=Mm(e);jm&&t&&!t[Um]&&Bm(t,Um,{configurable:!0,get:function(){return this}})},Nm=cn,$m=TypeError,Gm=function(e,t){if(Nm(t,e))return e;throw $m("Incorrect invocation")},Hm=ia,zm=vn,Zm=TypeError,Km=tn,qm=function(e){if(Hm(e))return e;throw Zm(zm(e)+" is not a constructor")},Vm=Qt,Wm=Pr("species"),Ym=function(e,t){var r,n=Km(e).constructor;return void 0===n||Vm(r=Km(n)[Wm])?t:qm(r)},Qm=TypeError,Jm=function(e,t){if(e<t)throw Qm("Not enough arguments");return e},Xm=/(?:ipad|iphone|ipod).*applewebkit/i.test(fr),ev=Pt,tv=Bd,rv=Ri,nv=Fr,ov=ar,iv=zt,av=hu,sv=jd,uv=Vr,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";iv((function(){Cm=ev.location}));var wv=function(e){if(ov(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=nv(e)?e:vv(e),r=sv(arguments,1);return yv[++bv]=function(){tv(t,void 0,r)},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=rv(Pm.postMessage,Pm)):ev.addEventListener&&nv(ev.postMessage)&&!ev.importScripts&&Cm&&"file:"!==Cm.protocol&&!iv(Ev)?(Om=Ev,ev.addEventListener("message",kv,!1)):Om=_v in uv("script")?function(e){av.appendChild(uv("script"))[_v]=function(){av.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},r=this.tail;r?r.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 Rv,Iv,Cv,Ov,Tv,Pv=Dv,Lv=/ipad|iphone|ipod/i.test(fr)&&"undefined"!=typeof Pebble,Mv=/web0s(?!.*chrome)/i.test(fr),Bv=Pt,jv=Ri,Uv=Ta.f,Fv=Sv.set,Nv=Pv,$v=Xm,Gv=Lv,Hv=Mv,zv=Lm,Zv=Bv.MutationObserver||Bv.WebKitMutationObserver,Kv=Bv.document,qv=Bv.process,Vv=Bv.Promise,Wv=Uv(Bv,"queueMicrotask"),Yv=Wv&&Wv.value;if(!Yv){var Qv=new Nv,Jv=function(){var e,t;for(zv&&(e=qv.domain)&&e.exit();t=Qv.get();)try{t()}catch(e){throw Qv.head&&Rv(),e}e&&e.enter()};$v||zv||Hv||!Zv||!Kv?!Gv&&Vv&&Vv.resolve?((Ov=Vv.resolve(void 0)).constructor=Vv,Tv=jv(Ov.then,Ov),Rv=function(){Tv(Jv)}):zv?Rv=function(){qv.nextTick(Jv)}:(Fv=jv(Fv,Bv),Rv=function(){Fv(Jv)}):(Iv=!0,Cv=Kv.createTextNode(""),new Zv(Jv).observe(Cv,{characterData:!0}),Rv=function(){Cv.data=Iv=!Iv}),Yv=function(e){Qv.head||Rv(),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,rg="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,ng=!rg&&!Lm&&"object"==typeof window&&"object"==typeof document,og=Pt,ig=tg,ag=Fr,sg=Ls,ug=co,cg=Pr,dg=ng,lg=rg,fg=br;ig&&ig.prototype;var pg=cg("species"),hg=!1,mg=ag(og.PromiseRejectionEvent),vg=sg("Promise",(function(){var e=ug(ig),t=e!==String(ig);if(!t&&66===fg)return!0;if(!fg||fg<51||!/native code/.test(e)){var r=new ig((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[pg]=n,!(hg=r.then((function(){}))instanceof n))return!0}return!t&&(dg||lg)&&!mg})),gg={CONSTRUCTOR:vg,REJECTION_EVENT:mg,SUBCLASSING:hg},Ag={},bg=yn,yg=TypeError,_g=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw yg("Bad Promise constructor");t=e,r=n})),this.resolve=bg(t),this.reject=bg(r)};Ag.f=function(e){return new _g(e)};var wg,xg,kg,Eg=Gs,Sg=Lm,Dg=Pt,Rg=on,Ig=oi,Cg=kp,Og=uc,Tg=Fm,Pg=yn,Lg=Fr,Mg=zr,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=Bo,zg=tg,Zg=Ag,Kg="Promise",qg=gg.CONSTRUCTOR,Vg=gg.REJECTION_EVENT,Wg=gg.SUBCLASSING,Yg=Hg.getterFor(Kg),Qg=Hg.set,Jg=zg&&zg.prototype,Xg=zg,eA=Jg,tA=Dg.TypeError,rA=Dg.document,nA=Dg.process,oA=Zg.f,iA=oA,aA=!!(rA&&rA.createEvent&&Dg.dispatchEvent),sA="unhandledrejection",uA=function(e){var t;return!(!Mg(e)||!Lg(t=e.then))&&t},cA=function(e,t){var r,n,o,i=t.value,a=1==t.state,s=a?e.ok:e.fail,u=e.resolve,c=e.reject,d=e.domain;try{s?(a||(2===t.rejection&&hA(t),t.rejection=1),!0===s?r=i:(d&&d.enter(),r=s(i),d&&(d.exit(),o=!0)),r===e.promise?c(tA("Promise-chain cycle")):(n=uA(r))?Rg(n,r,u,c):u(r)):c(i)}catch(e){d&&!o&&d.exit(),c(e)}},dA=function(e,t){e.notified||(e.notified=!0,Fg((function(){for(var r,n=e.reactions;r=n.get();)cA(r,e);e.notified=!1,t&&!e.rejection&&fA(e)})))},lA=function(e,t,r){var n,o;aA?((n=rA.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),Dg.dispatchEvent(n)):n={promise:t,reason:r},!Vg&&(o=Dg["on"+e])?o(n):e===sA&&Ng("Unhandled promise rejection",r)},fA=function(e){Rg(Ug,Dg,(function(){var t,r=e.facade,n=e.value;if(pA(e)&&(t=$g((function(){Sg?nA.emit("unhandledRejection",n,r):lA(sA,r,n)})),e.rejection=Sg||pA(e)?2:1,t.error))throw t.value}))},pA=function(e){return 1!==e.rejection&&!e.parent},hA=function(e){Rg(Ug,Dg,(function(){var t=e.facade;Sg?nA.emit("rejectionHandled",t):lA("rejectionhandled",t,e.value)}))},mA=function(e,t,r){return function(n){e(t,n,r)}},vA=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,dA(e,!0))},gA=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw tA("Promise can't be resolved itself");var n=uA(t);n?Fg((function(){var r={done:!1};try{Rg(n,t,mA(gA,r,e),mA(vA,r,e))}catch(t){vA(r,t,e)}})):(e.value=t,e.state=1,dA(e,!1))}catch(t){vA({done:!1},t,e)}}};if(qg&&(Xg=function(e){Bg(this,eA),Pg(e),Rg(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:Kg,done:!1,notified:!1,parent:!1,reactions:new Gg,rejection:!1,state:0,value:void 0})}).prototype=Ig(eA,"then",(function(e,t){var r=Yg(this),n=oA(jg(this,Xg));return r.parent=!0,n.ok=!Lg(e)||e,n.fail=Lg(t)&&t,n.domain=Sg?nA.domain:void 0,0==r.state?r.reactions.add(n):Fg((function(){cA(n,r)})),n.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=oA=function(e){return e===Xg||undefined===e?new xg(e):iA(e)},Lg(zg)&&Jg!==Object.prototype)){kg=Jg.then,Wg||Ig(Jg,"then",(function(e,t){var r=this;return new Xg((function(e,t){Rg(kg,r,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:qg},{Promise:Xg}),Og(Xg,Kg,!1),Tg(Kg);var AA=Ri,bA=on,yA=tn,_A=vn,wA=ef,xA=Hi,kA=cn,EA=hf,SA=sf,DA=ql,RA=TypeError,IA=function(e,t){this.stopped=e,this.result=t},CA=IA.prototype,OA=function(e,t,r){var n,o,i,a,s,u,c,d=r&&r.that,l=!(!r||!r.AS_ENTRIES),f=!(!r||!r.IS_RECORD),p=!(!r||!r.IS_ITERATOR),h=!(!r||!r.INTERRUPTED),m=AA(t,d),v=function(e){return n&&DA(n,"normal",e),new IA(!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)n=e.iterator;else if(p)n=e;else{if(!(o=SA(e)))throw RA(_A(e)+" is not iterable");if(wA(o)){for(i=0,a=xA(e);a>i;i++)if((s=g(e[i]))&&kA(CA,s))return s;return new IA(!1)}n=EA(e,o)}for(u=f?e.next:n.next;!(c=bA(u,n)).done;){try{s=g(c.value)}catch(e){DA(n,"throw",e)}if("object"==typeof s&&s&&kA(CA,s))return s}return new IA(!1)},TA=tg,PA=gg.CONSTRUCTOR||!Of((function(e){TA.all(e).then(void 0,(function(){}))})),LA=on,MA=yn,BA=Ag,jA=eg,UA=OA;Gs({target:"Promise",stat:!0,forced:PA},{all:function(e){var t=this,r=BA.f(t),n=r.resolve,o=r.reject,i=jA((function(){var r=MA(t.resolve),i=[],a=0,s=1;UA(e,(function(e){var u=a++,c=!1;s++,LA(r,t,e).then((function(e){c||(c=!0,i[u]=e,--s||n(i))}),o)})),--s||n(i)}));return i.error&&o(i.value),r.promise}});var FA=Gs,NA=gg.CONSTRUCTOR,$A=tg,GA=un,HA=Fr,zA=oi,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 KA=GA("Promise").prototype.catch;ZA.catch!==KA&&zA(ZA,"catch",KA,{unsafe:!0})}var qA=on,VA=yn,WA=Ag,YA=eg,QA=OA;Gs({target:"Promise",stat:!0,forced:PA},{race:function(e){var t=this,r=WA.f(t),n=r.reject,o=YA((function(){var o=VA(t.resolve);QA(e,(function(e){qA(o,t,e).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}});var JA=on,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=tn,tb=zr,rb=Ag,nb=function(e,t){if(eb(e),tb(t)&&t.constructor===e)return t;var r=rb.f(e);return(0,r.resolve)(t),r.promise},ob=Gs,ib=gg.CONSTRUCTOR,ab=nb;un("Promise"),ob({target:"Promise",stat:!0,forced:ib},{resolve:function(e){return ab(this,e)}});var sb=TypeError,ub=Gs,cb=zt,db=Zi,lb=zr,fb=nr,pb=Hi,hb=function(e){if(e>9007199254740991)throw sb("Maximum allowed index exceeded");return e},mb=Pu,vb=fa,gb=bl,Ab=br,bb=Pr("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,r,n,o,i,a=fb(this),s=vb(a,0),u=0;for(t=-1,n=arguments.length;t<n;t++)if(_b(i=-1===t?a:arguments[t]))for(o=pb(i),hb(u+o),r=0;r<o;r++,u++)r in i&&mb(s,u,i[r]);else hb(u+1),mb(s,u++,i);return s.length=u,s}});var wb=$r,xb=to.EXISTS,kb=Yt,Eb=qu,Sb=Function.prototype,Db=kb(Sb.toString),Rb=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Ib=kb(Rb.exec);function Cb(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return Ob(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ob(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}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 i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function Ob(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Tb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Pb(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Tb(Object(r),!0).forEach((function(t){ru(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tb(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}wb&&!xb&&Eb(Sb,"name",{configurable:!0,get:function(){try{return Ib(Rb,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,n=e.id,o=e.src;return new Promise(function(e,i){if(r(this,t),document.getElementById(n))e();else{var a=document.createElement("script");a.onload=function(){e()},a.id=n,a.setAttribute("crossorigin",!0),a.src=o,document.head.appendChild(a)}}.bind(this))},Fb=function(){var e=t(d.mark((function e(t){var r,n,o,i,a,s,u,c;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r=window[t])){e.next=3;break}return e.abrupt("return",r);case 3:if(!(n=Bb[t]).isLoading){e.next=6;break}return e.abrupt("return");case 6:n.isLoading=!0,o=Cb(n.dependencies),e.prev=8,o.s();case 10:if((i=o.n()).done){e.next=26;break}if(a=i.value,e.prev=12,s=Mb[a].name,!window[s]){e.next=16;break}return e.abrupt("continue",24);case 16:return e.next=18,Ub({id:a,src:Mb[a].src});case 18:e.next=24;break;case 20:e.prev=20,e.t0=e.catch(12),u=a.id,c=a.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),o.e(e.t1);case 31:return e.prev=31,o.f(),e.finish(31);case 34:return e.prev=34,e.next=37,Ub({id:t,src:n.source});case 37:r=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(n.source,"."),e.t2);case 43:return n.isLoading=!1,e.abrupt("return",r);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 r=this;O(this,e),ru(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:r.leaderboard=e.sent;case 3:case"end":return e.stop()}}),e)})))),ru(this,"showLeaderboard",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(n=window.GD_OPTIONS.gameId,r.leaderboard){e.next=4;break}return e.next=4,r.load();case 4:r.leaderboard.showLeaderBoard(n,t);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),ru(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(r.leaderboard){e.next=3;break}return e.next=3,r.load();case 3:r.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=zr,Hb=ui,zb=Pr("match"),Zb=function(e){var t;return Gb(e)&&(void 0!==(t=e[zb])?!!t:"RegExp"==Hb(e))},Kb=Zb,qb=TypeError,Vb=function(e){if(Kb(e))throw qb("The method doesn't accept regular expressions");return e},Wb=Pr("match"),Yb=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[Wb]=!1,"/./"[e](t)}catch(e){}}return!1},Qb=Gs,Jb=ki,Xb=Ta.f,ey=$i,ty=iu,ry=Vb,ny=er,oy=Yb,iy=Jb("".startsWith),ay=Jb("".slice),sy=Math.min,uy=oy("startsWith");Qb({target:"String",proto:!0,forced:!!(uy||(Lb=Xb(String.prototype,"startsWith"),!Lb||Lb.writable))&&!uy},{startsWith:function(e){var t=ty(ny(this));ry(e);var r=ey(sy(arguments.length>1?arguments[1]:void 0,t.length)),n=ty(e);return iy?iy(t,n,r):ay(t,r,r+n.length)===n}});var cy=on,dy=ar,ly=cn,fy=th,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=to.PROPER,vy=oi,gy=tn,Ay=iu,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=ki,Sy=oi,Dy=Lh,Ry=zt,Iy=Pr,Cy=go,Oy=Iy("species"),Ty=RegExp.prototype,Py=function(e,t,r,n){var o=Iy(e),i=!Ry((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),a=i&&!Ry((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[Oy]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return t=!0,null},r[o](""),!t}));if(!i||!a||r){var s=Ey(/./[o]),u=t(o,""[e],(function(e,t,r,n,o){var a=Ey(e),u=t.exec;return u===Dy||u===Ty.exec?i&&!o?{done:!0,value:s(t,r,n)}:{done:!0,value:a(r,t,n)}:{done:!1}}));Sy(String.prototype,e,u[0]),Sy(Ty,o,u[1])}n&&Cy(Ty[o],"sham",!0)},Ly=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t},My=on,By=tn,jy=Fr,Uy=ui,Fy=Lh,Ny=TypeError,$y=function(e,t){var r=e.exec;if(jy(r)){var n=My(r,e,t);return null!==n&&By(n),n}if("RegExp"===Uy(e))return My(Fy,e,t);throw Ny("RegExp#exec called on incompatible receiver")},Gy=on,Hy=tn,zy=Qt,Zy=er,Ky=Ly,qy=iu,Vy=xn,Wy=$y;function Yy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Qy(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Yy(Object(r),!0).forEach((function(t){ru(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yy(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}Py("search",(function(e,t,r){return[function(t){var r=Zy(this),n=zy(t)?void 0:Vy(t,e);return n?Gy(n,t,r):new RegExp(t)[e](qy(r))},function(e){var n=Hy(this),o=qy(e),i=r(t,n,o);if(i.done)return i.value;var a=n.lastIndex;Ky(a,0)||(n.lastIndex=0);var s=Wy(n,o);return Ky(n.lastIndex,a)||(n.lastIndex=a),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(),r=this._isExtHostedGameURL(),n=e||r?this._getTokenGameURLConfig():{};n=n||{};var o=decodeURIComponent((e||r)&&n.parentURL?n.parentURL:at()),i=decodeURIComponent((e||r)&&n.parentDomain?n.parentDomain:it()),a=decodeURIComponent((e||r)&&n.topDomain?n.topDomain:r&&0===pt()?i:vt()),s=(e||r)&&n.loaderEnabled,u=(e||r)&&n.loaderEnabled,c=(e||r)&&n.loaderEnabled,d=(e||r)&&n.loaderEnabled,l=(e||r)&&n.loaderEnabled,f=(e||r)&&n.loaderEnabled,p=(e||r)&&n.loaderEnabled;console.log("noMinijuegosSDK",p);var h=(e||r)&&n.loaderEnabled,m=(e||r)&&n.loaderEnabled&&n.hasImpression&&n.version>="1.1.24";return{isTokenGameURL:e,isMasterGameURL:t,isExtHostedGameURL:r,noConsoleBanner:s,noLoadedEvent:u,noBlockerEvent:c,noPreroll:h,parentURL:o,parentDomain:i,topDomain:a&&a.length?a:i,noGAPageView:d,noLotamePageView:l,noGamedockSDK:f,noMinijuegosSDK:p,version:n.version,pauseGameOnStartup:m,depth:pt(),domainMatched:i===a,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 r=new C(location.href,!0);if(!r.query.gd_zone_config)return;e=r.query.gd_zone_config}else if(t.test(document.referrer)){var n=new C(document.referrer,!0);if(!n.query.gd_zone_config)return;e=n.query.gd_zone_config}else{var o=new C(location.href,!0);if(!o.query.gd_zone_config)return;e=o.query.gd_zone_config}return JSON.parse(rt.decode(decodeURIComponent(e)))}catch(e){}}},{key:"_formatTokenURLSearch",value:function(e){var t="";try{t=encodeURIComponent(rt.encode(JSON.stringify(e)))}catch(e){}try{var r=new C(location.href,!0);return r.query=r.query||{},r.query.gd_zone_config=t,"?".concat(qs.stringify(r.query))}catch(e){return"?gd_zone_config=".concat(t)}}},{key:"_extendUrlQuery",value:function(e,t){var r=new C(e,!0);return r.query=Qy(Qy({},r.query),t),r.toString()}},{key:"_base64_encode",value:function(e){return rt.encode(JSON.stringify(e))}}]),e}(),t_=function(){try{return(new e_).getBridgeContext()}catch(e){return{}}}(),r_={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)},n_=zf.charAt,o_=Yt,i_=nr,a_=Math.floor,s_=o_("".charAt),u_=o_("".replace),c_=o_("".slice),d_=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l_=/\$([$&'`]|\d{1,2})/g,f_=Bd,p_=on,h_=Yt,m_=Py,v_=zt,g_=tn,A_=Fr,b_=Qt,y_=Ui,__=$i,w_=iu,x_=er,k_=function(e,t,r){return t+(r?n_(e,t).length:1)},E_=xn,S_=function(e,t,r,n,o,i){var a=r+e.length,s=n.length,u=l_;return void 0!==o&&(o=i_(o),u=d_),u_(i,u,(function(i,u){var c;switch(s_(u,0)){case"$":return"$";case"&":return e;case"`":return c_(t,0,r);case"'":return c_(t,a);case"<":c=o[c_(u,1,-1)];break;default:var d=+u;if(0===d)return i;if(d>s){var l=a_(d/10);return 0===l?i:l<=s?void 0===n[l-1]?s_(u,1):n[l-1]+s_(u,1):i}c=n[d-1]}return void 0===c?"":c}))},D_=$y,R_=Pr("replace"),I_=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_=!!/./[R_]&&""===/./[R_]("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,r){var n=j_?"$":"$0";return[function(e,r){var n=x_(this),o=b_(e)?void 0:E_(e,R_);return o?p_(o,e,n,r):p_(t,w_(n),e,r)},function(e,o){var i=g_(this),a=w_(e);if("string"==typeof o&&-1===P_(o,n)&&-1===P_(o,"$<")){var s=r(t,i,a,o);if(s.done)return s.value}var u=A_(o);u||(o=w_(o));var c=i.global;if(c){var d=i.unicode;i.lastIndex=0}for(var l=[];;){var f=D_(i,a);if(null===f)break;if(T_(l,f),!c)break;""===w_(f[0])&&(i.lastIndex=k_(a,__(i.lastIndex),d))}for(var p="",h=0,m=0;m<l.length;m++){for(var v=w_((f=l[m])[0]),g=I_(C_(y_(f.index),a.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,a);void 0!==y&&T_(_,y);var w=w_(f_(o,void 0,_))}else w=S_(v,a,g,A,y,o);g>=h&&(p+=L_(a,h,g)+w,h=g+v.length)}return p+L_(a,h)}]}),!U_||!B_||j_);var F_=zt,N_=$r,$_=Pr("iterator"),G_=!F_((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,r="";return e.pathname="c%20d",t.forEach((function(e,n){t.delete("b"),r+=n+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"!==r||"x"!==new URL("http://x",void 0).host})),H_=oi,z_=Fu,Z_=Math.floor,K_=function(e,t){var r=e.length,n=Z_(r/2);return r<8?q_(e,t):V_(e,K_(z_(e,0,n),t),K_(z_(e,n),t),t)},q_=function(e,t){for(var r,n,o=e.length,i=1;i<o;){for(n=i,r=e[i];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==i++&&(e[n]=r)}return e},V_=function(e,t,r,n){for(var o=t.length,i=r.length,a=0,s=0;a<o||s<i;)e[a+s]=a<o&&s<i?n(t[a],r[s])<=0?t[a++]:r[s++]:a<o?t[a++]:r[s++];return e},W_=Gs,Y_=Pt,Q_=on,J_=Yt,X_=$r,ew=G_,tw=oi,rw=qu,nw=function(e,t,r){for(var n in t)H_(e,n,t[n],r);return e},ow=uc,iw=mp,aw=Bo,sw=Gm,uw=Fr,cw=ar,dw=Ri,lw=mi,fw=tn,pw=zr,hw=iu,mw=Ru,vw=ho,gw=hf,Aw=sf,bw=Jm,yw=K_,_w=Pr("iterator"),ww="URLSearchParams",xw=ww+"Iterator",kw=aw.set,Ew=aw.getterFor(ww),Sw=aw.getterFor(xw),Dw=Object.getOwnPropertyDescriptor,Rw=function(e){if(!X_)return Y_[e];var t=Dw(Y_,e);return t&&t.value},Iw=Rw("fetch"),Cw=Rw("Request"),Ow=Rw("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),Kw=/\+/g,qw=Array(4),Vw=function(e){return qw[e-1]||(qw[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,Kw," "),r=4;try{return Bw(t)}catch(e){for(;r;)t=$w(t,Vw(r--),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=iw((function(e,t){kw(this,{type:xw,iterator:gw(Ew(e).entries),kind:t})}),"Iterator",(function(){var e=Sw(this),t=e.kind,r=e.iterator.next(),n=r.value;return r.done||(r.value="keys"===t?n.key:"values"===t?n.value:[n.key,n.value]),r}),!0),rx=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)))};rx.prototype={type:ww,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,o,i,a,s,u=Aw(e);if(u)for(r=(t=gw(e,u)).next;!(n=Q_(r,t)).done;){if(i=(o=gw(fw(n.value))).next,(a=Q_(i,o)).done||(s=Q_(i,o)).done||!Q_(i,o).done)throw Mw("Expected sequence with length 2");Nw(this.entries,{key:hw(a.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,r,n=zw(e,"&"),o=0;o<n.length;)(t=n[o++]).length&&(r=zw(t,"="),Nw(this.entries,{key:Yw(Gw(r)),value:Yw(Fw(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],Nw(r,ex(e.key)+"="+ex(e.value));return Fw(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var nx=function(){sw(this,ox);var e=kw(this,new rx(arguments.length>0?arguments[0]:void 0));X_||(this.length=e.entries.length)},ox=nx.prototype;if(nw(ox,{append:function(e,t){bw(arguments.length,2);var r=Ew(this);Nw(r.entries,{key:hw(e),value:hw(t)}),X_||this.length++,r.updateURL()},delete:function(e){bw(arguments.length,1);for(var t=Ew(this),r=t.entries,n=hw(e),o=0;o<r.length;)r[o].key===n?Hw(r,o,1):o++;X_||(this.length=r.length),t.updateURL()},get:function(e){bw(arguments.length,1);for(var t=Ew(this).entries,r=hw(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){bw(arguments.length,1);for(var t=Ew(this).entries,r=hw(e),n=[],o=0;o<t.length;o++)t[o].key===r&&Nw(n,t[o].value);return n},has:function(e){bw(arguments.length,1);for(var t=Ew(this).entries,r=hw(e),n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){bw(arguments.length,1);for(var r,n=Ew(this),o=n.entries,i=!1,a=hw(e),s=hw(t),u=0;u<o.length;u++)(r=o[u]).key===a&&(i?Hw(o,u--,1):(i=!0,r.value=s));i||Nw(o,{key:a,value:s}),X_||(this.length=o.length),n.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,r=Ew(this).entries,n=dw(e,arguments.length>1?arguments[1]:void 0),o=0;o<r.length;)n((t=r[o++]).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(ox,_w,ox.entries,{name:"entries"}),tw(ox,"toString",(function(){return Ew(this).serialize()}),{enumerable:!0}),X_&&rw(ox,"size",{get:function(){return Ew(this).entries.length},configurable:!0,enumerable:!0}),ow(nx,ww),W_({global:!0,constructor:!0,forced:!ew},{URLSearchParams:nx}),!ew&&uw(Ow)){var ix=J_(Pw.has),ax=J_(Pw.set),sx=function(e){if(pw(e)){var t,r=e.body;if(lw(r)===ww)return t=e.headers?new Ow(e.headers):new Ow,ix(t,"content-type")||ax(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),mw(e,{body:vw(0,hw(r)),headers:vw(0,t)})}return e};if(uw(Iw)&&W_({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return Iw(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:nx,getState:Ew},dx=os.includes,lx=im;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=Vb,hx=er,mx=iu,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 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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t="string"==typeof e||e instanceof String;if(!t){var n=r(e);throw null===e?n="null":"object"===n&&(n=e.constructor.name),new TypeError("Expected a string but received a ".concat(n))}},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,n.default)(e),e=Date.parse(e),isNaN(e)?null:new Date(e)};var r,n=(r=yx.exports)&&r.__esModule?r:{default:r};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 Rx,Ix=0;Ix<Dx.length;Ix++)kx[Rx="en-".concat(Dx[Ix])]=kx["en-US"],Ex[Rx]=Ex["en-US"],Sx[Rx]=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 r=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 n=parseFloat(e.replace(",","."));return r.test(e)&&(!t.hasOwnProperty("min")||n>=t.min)&&(!t.hasOwnProperty("max")||n<=t.max)&&(!t.hasOwnProperty("lt")||n<t.lt)&&(!t.hasOwnProperty("gt")||n>t.gt)},wx.locales=void 0;var Hx,zx=(Hx=yx.exports)&&Hx.__esModule?Hx:{default:Hx},Zx=xx;var Kx=Object.keys(Zx.decimal);wx.locales=Kx,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e)?parseFloat(e):NaN};var r=function(e){return e&&e.__esModule?e:{default:e}}(wx);e.exports=t.default,e.exports.default=t.default}(_x,_x.exports);var qx={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(e),parseInt(e,t||10)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);e.exports=t.default,e.exports.default=t.default}(qx,qx.exports);var Vx={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),t)return"1"===e||/^true$/i.test(e);return"0"!==e&&!/^false$/i.test(e)&&""!==e};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);e.exports=t.default,e.exports.default=t.default}(Vx,Vx.exports);var Wx={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(e),e===t};var r=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 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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){"object"===r(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 r in t)void 0===e[r]&&(e[r]=t[r]);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,i){if((0,r.default)(e),i=(0,o.default)(i,a),i.ignoreCase)return e.toLowerCase().split((0,n.default)(t).toLowerCase()).length>i.minOccurrences;return e.split((0,n.default)(t)).length>i.minOccurrences};var r=i(yx.exports),n=i(Qx.exports),o=i(Jx.exports);function i(e){return e&&e.__esModule?e:{default:e}}var a={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,n){(0,r.default)(e),"[object RegExp]"!==Object.prototype.toString.call(t)&&(t=new RegExp(t,n));return!!e.match(t)};var r=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 o,i;(0,r.default)(e),"object"===n(t)?(o=t.min||0,i=t.max):(o=arguments[1],i=arguments[2]);var a=encodeURI(e).split(/%..|./).length-1;return a>=o&&(void 0===i||a<=i)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);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)}e.exports=t.default,e.exports.default=t.default}(tk,tk.exports);var rk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e),t=(0,n.default)(t,i),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 o=e.split("."),a=o[o.length-1];if(t.require_tld){if(o.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(a))return!1;if(/\s/.test(a))return!1}if(!t.allow_numeric_tld&&/^\d+$/.test(a))return!1;return o.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 r=o(yx.exports),n=o(Jx.exports);function o(e){return e&&e.__esModule?e:{default:e}}var i={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}(rk,rk.exports);var nk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if((0,r.default)(t),n=String(n),!n)return e(t,4)||e(t,6);if("4"===n)return i.test(t);if("6"===n)return s.test(t);return!1};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",o="(".concat(n,"[.]){3}").concat(n),i=new RegExp("^".concat(o,"$")),a="(?:[0-9a-fA-F]{1,4})",s=new RegExp("^("+"(?:".concat(a,":){7}(?:").concat(a,"|:)|")+"(?:".concat(a,":){6}(?:").concat(o,"|:").concat(a,"|:)|")+"(?:".concat(a,":){5}(?::").concat(o,"|(:").concat(a,"){1,2}|:)|")+"(?:".concat(a,":){4}(?:(:").concat(a,"){0,1}:").concat(o,"|(:").concat(a,"){1,3}|:)|")+"(?:".concat(a,":){3}(?:(:").concat(a,"){0,2}:").concat(o,"|(:").concat(a,"){1,4}|:)|")+"(?:".concat(a,":){2}(?:(:").concat(a,"){0,3}:").concat(o,"|(:").concat(a,"){1,5}|:)|")+"(?:".concat(a,":){1}(?:(:").concat(a,"){0,4}:").concat(o,"|(:").concat(a,"){1,6}|:)|")+"(?::((?::".concat(a,"){0,5}:").concat(o,"|(?::").concat(a,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");e.exports=t.default,e.exports.default=t.default}(nk,nk.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,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,o.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,o.default)(y,{max:64})&&(0,o.default)(A,{max:254})))return!1;if(!(0,i.default)(A,{require_tld:t.require_tld,ignore_max_length:t.ignore_max_length})){if(!t.allow_ip_domain)return!1;if(!(0,a.default)(A)){if(!A.startsWith("[")||!A.endsWith("]"))return!1;var k=A.slice(1,-1);if(0===k.length||!(0,a.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 r=s(yx.exports),n=s(Jx.exports),o=s(tk.exports),i=s(rk.exports),a=s(nk.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 ok={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),!e||/[\s<>]/.test(e))return!1;if(0===e.indexOf("mailto:"))return!1;if(t=(0,i.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 a,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(a=v.shift().toLowerCase(),t.require_valid_protocol&&-1===t.protocols.indexOf(a))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 r=[],n=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))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,o.default)(f)||(0,n.default)(f,t)||g&&(0,o.default)(g,6)))return!1;if(f=f||g,t.host_blacklist&&l(f,t.host_blacklist))return!1;return!0};var r=a(yx.exports),n=a(rk.exports),o=a(nk.exports),i=a(Jx.exports);function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}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 r=0;r<t.length;r++){var n=t[r];if(e===n||d(n)&&n.test(e))return!0}return!1}e.exports=t.default,e.exports.default=t.default}(ok,ok.exports);var ik={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,c){(0,r.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?o.test(t):"64"===c.eui?s.test(t):o.test(t)||s.test(t);if("48"===(null==c?void 0:c.eui))return n.test(t)||i.test(t);if("64"===(null==c?void 0:c.eui))return a.test(t)||u.test(t);return e(t,{eui:"48"})||e(t,{eui:"64"})};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/^(?:[0-9a-fA-F]{2}([-:\s]))([0-9a-fA-F]{2}\1){4}([0-9a-fA-F]{2})$/,o=/^([0-9a-fA-F]){12}$/,i=/^([0-9a-fA-F]{4}\.){2}([0-9a-fA-F]{4})$/,a=/^(?:[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}(ik,ik.exports);var ak={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,r.default)(e);var o=e.split("/");if(2!==o.length)return!1;if(!i.test(o[1]))return!1;if(o[1].length>1&&o[1].startsWith("0"))return!1;var u=(0,n.default)(o[0],t);if(!u)return!1;var c=null;switch(String(t)){case"4":c=a;break;case"6":c=s;break;default:c=(0,n.default)(o[0],"6")?s:a}return o[1]<=c&&o[1]>=0};var r=o(yx.exports),n=o(nk.exports);function o(e){return e&&e.__esModule?e:{default:e}}var i=/^\d{1,3}$/,a=32,s=128;e.exports=t.default,e.exports.default=t.default}(ak,ak.exports);var sk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){t="string"==typeof t?(0,r.default)({format:t},a):(0,r.default)(t,a);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 i,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 r=[],n=Math.min(e.length,t.length),o=0;o<n;o++)r.push([e[o],t[o]]);return r}(e.split(u),t.format.toLowerCase().split(s)),d={},l=function(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=o(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},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,s=!0,u=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw a}}}}(c);try{for(l.s();!(i=l.n()).done;){var f=n(i.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 r=function(e){return e&&e.__esModule?e:{default:e}}(Jx.exports);function n(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 r=[],n=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}return r}(e,t)||o(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 o(e,t){if(e){if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var a={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,r.default)(t,n),"string"==typeof e&&o[t.hourFormat][t.mode].test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(Jx.exports);var n={hourFormat:"hour24",mode:"default"},o={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]:n;if((0,r.default)(e),t.loose)return i.includes(e.toLowerCase());return o.includes(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n={loose:!1},o=["true","false","1","0"],i=[].concat(o,["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,r.default)(e),"en_US_POSIX"===e||"ca_ES_VALENCIA"===e)return!0;return n.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/^[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",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,fk.default)(e);var n=e,o=r.ignore;if(o)if(o instanceof RegExp)n=n.replace(o,"");else{if("string"!=typeof o)throw new Error("ignore should be instance of a String or RegExp");n=n.replace(new RegExp("[".concat(o.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),"]"),"g"),"")}if(t in pk.alpha)return pk.alpha[t].test(n);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",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,vk.default)(e);var n=e,o=r.ignore;if(o)if(o instanceof RegExp)n=n.replace(o,"");else{if("string"!=typeof o)throw new Error("ignore should be instance of a String or RegExp");n=n.replace(new RegExp("[".concat(o.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),"]"),"g"),"")}if(t in gk.alphanumeric)return gk.alphanumeric[t].test(n);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,r.default)(e),t&&t.no_symbols)return o.test(e);return new RegExp("^[+-]?([0-9]*[".concat((t||{}).locale?n.decimal[t.locale]:".","])?[0-9]+$")).test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports),n=xx;var o=/^[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,r.default)(e);var o=e.replace(/\s/g,"").toUpperCase();return t.toUpperCase()in n&&n[t].test(o)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n={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,r.default)(e),t=t||{};var i=t.hasOwnProperty("allow_leading_zeroes")&&!t.allow_leading_zeroes?n:o,a=!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 i.test(e)&&a&&s&&u&&c};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/^(?:[-+]?(?:0|[1-9][0-9]*))$/,o=/^[-+]?[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,r.default)(e,{min:0,max:65535})};var r=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,r.default)(e),e===e.toLowerCase()};var r=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,r.default)(e),e===e.toUpperCase()};var r=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,r.default)(e),t=t||{};var i=n;t.allow_hyphens&&(i=o);if(!i.test(e))return!1;e=e.replace(/-/g,"");for(var a=0,s=2,u=0;u<14;u++){var c=e.substring(14-u-1,14-u),d=parseInt(c,10)*s;a+=d>=10?d%10+1:d,1===s?s+=1:s-=1}if((10-a%10)%10!==parseInt(e.substring(14,15),10))return!1;return!0};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/^[0-9]{15}$/,o=/^\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,r.default)(e),n.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/^[\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,Rk.default)(e),Ik.test(e)},Dk.fullWidth=void 0;var Rk=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var Ik=/[^\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;Dk.fullWidth=Ik;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,r.default)(e),n.fullWidth.test(e)&&o.halfWidth.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports),n=Dk,o=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,r.default)(e),n.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/[^\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 r=e.join("");return new RegExp(r,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,r.default)(e),o.test(e)};var r=n(yx.exports);function n(e){return e&&e.__esModule?e:{default:e}}var o=(0,n(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,r.default)(e),n.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/[\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 r=function(e,t){return e.some((function(e){return t===e}))};t.default=r,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,n.default)(e),t=(0,r.default)(t,s),t.locale in i.decimal)return!(0,o.default)(u,e.replace(/ /g,""))&&function(e){var t=new RegExp("^[-+]?([0-9]+)?(\\".concat(i.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 r=a(Jx.exports),n=a(yx.exports),o=a(Fk.exports),i=xx;function a(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,r.default)(e),n.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/^(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,r.default)(e),n.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/^(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,r.default)(e),(0,n.default)(e)%parseInt(t,10)==0};var r=o(yx.exports),n=o(_x.exports);function o(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,r.default)(e),n.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/^#?([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,r.default)(e),!t)return n.test(e)||o.test(e);return n.test(e)||o.test(e)||i.test(e)||a.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/^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])\)$/,o=/^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)?)\)$/,i=/^rgb\((([0-9]%|[1-9][0-9]%|100%),){2}([0-9]%|[1-9][0-9]%|100%)\)$/,a=/^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,r.default)(e);var t=e.replace(/\s+/g," ").replace(/\s?(hsla?\(|\)|,)\s?/gi,"$1");if(-1!==t.indexOf(","))return n.test(t);return o.test(t)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/^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,o=/^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 Kk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),n.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/^[A-Z]{2}[0-9A-Z]{3}\d{2}\d{5}$/;e.exports=t.default,e.exports.default=t.default}(Kk,Kk.exports);var qk={};Object.defineProperty(qk,"__esModule",{value:!0}),qk.default=function(e){return(0,Vk.default)(e),function(e){var t=e.replace(/[\s\-]+/gi,"").toUpperCase(),r=t.slice(0,2).toUpperCase();return r in Wk&&Wk[r].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)},qk.locales=void 0;var Vk=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);qk.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,r.default)(e);var t=e.slice(4,6).toUpperCase();if(!n.CountryCodes.has(t)&&"XK"!==t)return!1;return o.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports),n=Jk;var o=/^[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 rE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),n.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/^[a-f0-9]{32}$/;e.exports=t.default,e.exports.default=t.default}(rE,rE.exports);var nE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(e),new RegExp("^[a-fA-F0-9]{".concat(n[t],"}$")).test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n={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}(nE,nE.exports);var oE={exports:{}},iE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e),t=(0,n.default)(t,s);var o=e.length;if(t.urlSafe)return a.test(e);if(o%4!=0||i.test(e))return!1;var u=e.indexOf("=");return-1===u||u===o-1||u===o-2&&"="===e[o-1]};var r=o(yx.exports),n=o(Jx.exports);function o(e){return e&&e.__esModule?e:{default:e}}var i=/[^A-Z0-9+\/=]/i,a=/^[A-Z0-9_\-]*$/i,s={urlSafe:!1};e.exports=t.default,e.exports.default=t.default}(iE,iE.exports),function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,r.default)(e);var t=e.split("."),o=t.length;if(o>3||o<2)return!1;return t.reduce((function(e,t){return e&&(0,n.default)(t,{urlSafe:!0})}),!0)};var r=o(yx.exports),n=o(iE.exports);function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default}(oE,oE.exports);var aE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e);try{t=(0,n.default)(t,a);var o=[];t.allow_primitives&&(o=[null,!1,!0]);var s=JSON.parse(e);return o.includes(s)||!!s&&"object"===i(s)}catch(e){}return!1};var r=o(yx.exports),n=o(Jx.exports);function o(e){return e&&e.__esModule?e:{default:e}}function i(e){return i="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},i(e)}var a={allow_primitives:!1};e.exports=t.default,e.exports.default=t.default}(aE,aE.exports);var sE={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,i),0===(t.ignore_whitespace?e.trim().length:e.length)};var r=o(yx.exports),n=o(Jx.exports);function o(e){return e&&e.__esModule?e:{default:e}}var i={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 o,i;(0,r.default)(e),"object"===n(t)?(o=t.min||0,i=t.max):(o=arguments[1]||0,i=arguments[2]);var a=e.match(/(\uFE0F|\uFE0E)/g)||[],s=e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g)||[],u=e.length-a.length-s.length;return u>=o&&(void 0===i||u<=i)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);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)}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,r.default)(e);var o=n[[void 0,null].includes(t)?"all":t];return!!o&&o.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n={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,r.default)(e),(0,n.default)(e)&&24===e.length};var r=o(yx.exports),n=o(Nk.exports);function o(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 n=(null==t?void 0:t.comparisonDate)||t||Date().toString(),o=(0,r.default)(n),i=(0,r.default)(e);return!!(i&&o&&i>o)};var r=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,r.default)(e);var o=(0,n.default)(t),i=(0,n.default)(e);return!!(i&&o&&i<o)};var r=o(yx.exports),n=o(bx.exports);function o(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 o;if((0,r.default)(e),"[object Array]"===Object.prototype.toString.call(t)){var a=[];for(o in t)({}).hasOwnProperty.call(t,o)&&(a[o]=(0,n.default)(t[o]));return a.indexOf(e)>=0}if("object"===i(t))return t.hasOwnProperty(e);if(t&&"function"==typeof t.indexOf)return t.indexOf(e)>=0;return!1};var r=o(yx.exports),n=o(Qx.exports);function o(e){return e&&e.__esModule?e:{default:e}}function i(e){return i="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},i(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,r.default)(e);for(var t,n,o,i=e.replace(/[- ]+/g,""),a=0,s=i.length-1;s>=0;s--)t=i.substring(s,s+1),n=parseInt(t,10),a+=o&&(n*=2)>=10?n%10+1:n,o=!o;return!(a%10!=0||!i)};var r=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,r.default)(e);var o=t.provider,s=e.replace(/[- ]+/g,"");if(o&&o.toLowerCase()in i){if(!i[o.toLowerCase()].test(s))return!1}else{if(o&&!(o.toLowerCase()in i))throw new Error("".concat(o," is not a valid credit card provider."));if(!a.test(s))return!1}return(0,n.default)(e)};var r=o(yx.exports),n=o(hE.exports);function o(e){return e&&e.__esModule?e:{default:e}}var i={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})?$/},a=/^(?: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,r.default)(e),t in i)return i[t](e);if("any"===t){for(var n in i){if(i.hasOwnProperty(n))if((0,i[n])(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))};var r=o(yx.exports),n=o(wk.exports);function o(e){return e&&e.__esModule?e:{default:e}}var i={PL:function(e){(0,r.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,n.default)(e,{allow_leading_zeroes:!0})){var o=e.split("").slice(0,-1).reduce((function(e,r,n){return e+Number(r)*t[n+1]}),0),i=o%10,a=Number(e.charAt(e.length-1));if(0===i&&0===a||a===10-i)return!0}return!1},ES:function(e){(0,r.default)(e);var t={X:0,Y:1,Z:2},n=e.trim().toUpperCase();if(!/^[0-9X-Z][0-9]{7}[TRWAGMYFPDXBNJZSQVHLCKE]$/.test(n))return!1;var o=n.slice(0,-1).replace(/[X,Y,Z]/g,(function(e){return t[e]}));return n.endsWith(["T","R","W","A","G","M","Y","F","P","D","X","B","N","J","Z","S","Q","V","H","L","C","K","E"][o%23])},FI:function(e){if((0,r.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]],r=[[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]],n=e.trim();if(!/^[1-9]\d{3}\s?\d{4}\s?\d{4}$/.test(n))return!1;var o=0;return n.replace(/\s/g,"").split("").map(Number).reverse().forEach((function(e,n){o=t[o][r[n%8][e]]})),0===o},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),r=0,n=0;n<9;n++)r+=parseInt(e.slice(n,n+1),10)*(10-n);return(r%=11)<2&&t===r||r>=2&&t===11-r},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 r=t.split("").map(Number),n=(11-(3*r[0]+7*r[1]+6*r[2]+1*r[3]+8*r[4]+9*r[5]+4*r[6]+5*r[7]+2*r[8])%11)%11,o=(11-(5*r[0]+4*r[1]+3*r[2]+2*r[3]+7*r[4]+6*r[5]+5*r[6]+4*r[7]+3*r[8]+2*n)%11)%11;return n===r[9]&&o===r[10]},TH:function(e){if(!e.match(/^[1-8]\d{12}$/))return!1;for(var t=0,r=0;r<12;r++)t+=parseInt(e[r],10)*(13-r);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 r,n=t,o=0,i=0;i<n.length;i++)o+=(r=Number(n[i])*(i%2+1))>9?r-9:r;return o%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,r=["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"],n=["7","9","10","5","8","4","2","1","6","3","7","9","10","5","8","4","2"],o=["1","0","X","9","8","7","6","5","4","3","2"],i=function(e){return r.includes(e)},a=function(e){var t=parseInt(e.substring(0,4),10),r=parseInt(e.substring(4,6),10),n=parseInt(e.substring(6),10),o=new Date(t,r-1,n);return!(o>new Date)&&(o.getFullYear()===t&&o.getMonth()===r-1&&o.getDate()===n)},s=function(e){return function(e){for(var t=e.substring(0,17),r=0,i=0;i<17;i++)r+=parseInt(t.charAt(i),10)*parseInt(n[i],10);return o[r%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 r=e.substring(0,2);if(!(t=i(r)))return!1;var n="19".concat(e.substring(6,12));return!!(t=a(n))}(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 r=e.substring(0,2);if(!(t=i(r)))return!1;var n=e.substring(6,14);return!!(t=a(n))&&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 r=0,n=0;n<=7;n++){r+=(t.test(e[n])?e[n]:(e[n].charCodeAt(0)-55)%11)*(9-n)}return(0===(r%=11)?"0":1===r?"A":String(11-r))===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},r=e.trim().toUpperCase();return!!/^[A-Z][0-9]{9}$/.test(r)&&Array.from(r).reduce((function(e,r,n){if(0===n){var o=t[r];return o%10*9+Math.floor(o/10)}return 9===n?(10-e%10-Number(r))%10==0:e+Number(r)*(9-n)}),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,r.default)(e);var t=Number(e.slice(-1));return i.test(e)&&t===(a=e,s=a.slice(0,-1).split("").map((function(e,t){return Number(e)*function(e,t){return e===n||e===o?t%2==0?3:1:t%2==0?1:3}(a.length,t)})).reduce((function(e,t){return e+t}),0),u=10-s%10,u<10?u:0);var a,s,u};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=8,o=14,i=/^(\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,r.default)(e),!n.test(e))return!1;for(var t=!0,o=0,i=e.length-2;i>=0;i--)if(e[i]>="A"&&e[i]<="Z")for(var a=e[i].charCodeAt(0)-55,s=0,u=[a%10,Math.trunc(a/10)];s<u.length;s++){var c=u[s];o+=t?c>=5?1+2*(c-5):2*c:c,t=!t}else{var d=e[i].charCodeAt(0)-"0".charCodeAt(0);o+=t?d>=5?1+2*(d-5):2*d:d,t=!t}var l=10*Math.trunc((o+9)/10)-o;return+e[e.length-1]===l};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/^[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,a){(0,r.default)(t);var s=String((null==a?void 0:a.version)||a);if(!(null!=a&&a.version||a))return e(t,{version:10})||e(t,{version:13});var u=t.replace(/[\s-]+/g,""),c=0;if("10"===s){if(!n.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(!o.test(u))return!1;for(var l=0;l<12;l++)c+=i[l%2]*u.charAt(l);if(u.charAt(12)-(10-c%10)%10==0)return!0}return!1};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/^(?:[0-9]{9}X|[0-9]{10})$/,o=/^(?:[0-9]{13})$/,i=[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,r.default)(e);var o=n;if(o=t.require_hyphen?o.replace("?",""):o,o=t.case_sensitive?new RegExp(o):new RegExp(o,"i"),!o.test(e))return!1;for(var i=e.replace("-","").toUpperCase(),a=0,s=0;s<i.length;s++){var u=i[s];a+=("X"===u?10:+u)*(8-s)}return a%11==0};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n="^\\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,r=0;r<e.length-1;r++)t=(parseInt(e[r],10)+t)%10==0?9:(parseInt(e[r],10)+t)%10*2%11;return(t=1===t?0:11-t)===parseInt(e[10],10)},wE.luhnCheck=function(e){for(var t=0,r=!1,n=e.length-1;n>=0;n--){if(r){var o=2*parseInt(e[n],10);t+=o>9?o.toString().split("").map((function(e){return parseInt(e,10)})).reduce((function(e,t){return e+t}),0):o}else t+=parseInt(e[n],10);r=!r}return t%10==0},wE.reverseMultiplyAndSum=function(e,t){for(var r=0,n=0;n<e.length;n++)r+=e[n]*(t-n);return r},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]],r=[[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]],n=e.split("").reverse().join(""),o=0,i=0;i<n.length;i++)o=t[o][r[i%8][parseInt(n[i],10)]];return 0===o},function(e,t){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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US";(0,n.default)(e);var r=e.slice(0);if(t in f)return t in m&&(r=r.replace(m[t],"")),!!f[t].test(r)&&(!(t in p)||p[t](r));throw new Error("Invalid locale '".concat(t,"'"))};var n=s(yx.exports),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(n,i,s):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(wE),i=s(sk.exports);function a(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return a=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 r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))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 r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}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,r=!1,n=0;n<3;n++)if(!t&&/[AEIOU]/.test(e[n]))t=!0;else if(!r&&t&&"X"===e[n])r=!0;else if(n>0){if(t&&!r&&!/[AEIOU]/.test(e[n]))return!1;if(r&&!/X/.test(e[n]))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),r=parseInt(e.slice(2,4),10);r>40?(r-=40,t="20".concat(t)):r>20?(r-=20,t="18".concat(t)):t="19".concat(t),r<10&&(r="0".concat(r));var n="".concat(t,"/").concat(r,"/").concat(e.slice(4,6));if(!(0,i.default)(n,"YYYY/MM/DD"))return!1;for(var o=e.split("").map((function(e){return parseInt(e,10)})),a=[2,4,8,5,10,9,7,3,6],s=0,u=0;u<a.length;u++)s+=o[u]*a[u];return(s=s%11==10?0:s%11)===o[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 r=parseInt(e.slice(2,4),10);if(r>50&&(r-=50),r>20){if(parseInt(t,10)<2004)return!1;r-=20}r<10&&(r="0".concat(r));var n="".concat(t,"/").concat(r,"/").concat(e.slice(4,6));if(!(0,i.default)(n,"YYYY/MM/DD"))return!1;if(10===e.length&&parseInt(e,10)%11!=0){var o=parseInt(e.slice(0,9),10)%11;if(!(parseInt(t,10)<1986&&10===o))return!1;if(0!==parseInt(e.slice(9),10))return!1}return!0},"de-AT":function(e){return o.luhnCheck(e)},"de-DE":function(e){for(var t=e.split("").map((function(e){return parseInt(e,10)})),r=[],n=0;n<t.length-1;n++){r.push("");for(var i=0;i<t.length-1;i++)t[n]===t[i]&&(r[n]+=i)}if(2!==(r=r.filter((function(e){return e.length>1}))).length&&3!==r.length)return!1;if(3===r[0].length){for(var a=r[0].split("").map((function(e){return parseInt(e,10)})),s=0,u=0;u<a.length-1;u++)a[u]+1===a[u+1]&&(s+=1);if(2===s)return!1}return o.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 r="".concat(t,"/").concat(e.slice(2,4),"/").concat(e.slice(0,2));if(!(0,i.default)(r,"YYYY/MM/DD"))return!1;for(var n=e.split("").map((function(e){return parseInt(e,10)})),o=0,a=4,s=0;s<9;s++)o+=n[s]*a,1===(a-=1)&&(a=7);return 1!==(o%=11)&&(0===o?0===n[9]:n[9]===11-o)},"el-CY":function(e){for(var t=e.slice(0,8).split("").map((function(e){return parseInt(e,10)})),r=0,n=1;n<t.length;n+=2)r+=t[n];for(var o=0;o<t.length;o+=2)t[o]<2?r+=1-t[o]:(r+=2*(t[o]-2)+5,t[o]>4&&(r+=2));return String.fromCharCode(r%26+65)===e.charAt(8)},"el-GR":function(e){for(var t=e.split("").map((function(e){return parseInt(e,10)})),r=0,n=0;n<8;n++)r+=t[n]*Math.pow(2,8-n);return r%11%10===t[8]},"en-CA":function(e){var t=e.split(""),r=t.filter((function(e,t){return t%2})).map((function(e){return 2*Number(e)})).join("").split(""),n=t.filter((function(e,t){return!(t%2)})).concat(r).map((function(e){return Number(e)})).reduce((function(e,t){return e+t}));return n%10==0},"en-IE":function(e){var t=o.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 r=0;switch(t[0]){case"Y":r=1;break;case"Z":r=2}t.splice(0,1,r)}else for(;t.length<9;)t.unshift(0);t=t.join("");var n=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"][n]},"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 r="".concat(t,"/").concat(e.slice(3,5),"/").concat(e.slice(5,7));if(!(0,i.default)(r,"YYYY/MM/DD"))return!1;for(var n=e.split("").map((function(e){return parseInt(e,10)})),o=0,a=1,s=0;s<10;s++)o+=n[s]*a,10===(a+=1)&&(a=1);if(o%11==10){o=0,a=3;for(var u=0;u<10;u++)o+=n[u]*a,10===(a+=1)&&(a=1);if(o%11==10)return 0===n[10]}return o%11===n[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 r="".concat(t,"/").concat(e.slice(2,4),"/").concat(e.slice(0,2));if(!(0,i.default)(r,"YYYY/MM/DD"))return!1;var n=parseInt(e.slice(0,6)+e.slice(7,10),10)%31;return n<10?n===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"][n-=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,i.default)(t,"YY/MM/DD"))return!1}var r=97-parseInt(e.slice(0,9),10)%97,n=parseInt(e.slice(9,11),10);return r===n||(r=97-parseInt("2".concat(e.slice(0,9)),10)%97)===n},"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,i.default)(t,"YYYY/MM/DD")&&(!!o.luhnCheck(e.slice(0,12))&&o.verhoeffCheck("".concat(e.slice(0,11)).concat(e[12])))},"hr-HR":function(e){return o.iso7064Check(e)},"hu-HU":function(e){for(var t=e.split("").map((function(e){return parseInt(e,10)})),r=8,n=1;n<9;n++)r+=t[n]*(n+1);return r%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 r={L:"0",M:"1",N:"2",P:"3",Q:"4",R:"5",S:"6",T:"7",U:"8",V:"9"},n=0,o=[6,7,9,10,12,13,14];n<o.length;n++){var a=o[n];t[a]in r&&t.splice(a,1,r[t[a]])}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,i.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 r=e.slice(4,6);switch(e[6]){case"0":r="18".concat(r);break;case"1":r="19".concat(r);break;default:r="20".concat(r)}var n="".concat(r,"/").concat(e.slice(2,4),"/").concat(t);if(!(0,i.default)(n,"YYYY/MM/DD"))return!1}for(var o=1101,a=[1,6,3,7,9,10,5,8,4,2],s=0;s<e.length-1;s++)o-=parseInt(e[s],10)*a[s];return parseInt(e[10],10)===o%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 r=parseInt(t.join("").slice(0,5),10);if(r>32e3)return!1;if(r===parseInt(t.join("").slice(5,7),10))return!1}}return!0},"nl-NL":function(e){return o.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],r=0,n=0;n<t.length;n++)r+=parseInt(e[n],10)*t[n];return 10!==(r%=11)&&r===parseInt(e[9],10)}var o=e.slice(0,2),a=parseInt(e.slice(2,4),10);a>80?(o="18".concat(o),a-=80):a>60?(o="22".concat(o),a-=60):a>40?(o="21".concat(o),a-=40):a>20?(o="20".concat(o),a-=20):o="19".concat(o),a<10&&(a="0".concat(a));var s="".concat(o,"/").concat(a,"/").concat(e.slice(4,6));if(!(0,i.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,r;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 n=1;n<=9;n++)t+=parseInt(e.substring(n-1,n),10)*(11-n);if(10===(r=10*t%11)&&(r=0),r!==parseInt(e.substring(9,10),10))return!1;t=0;for(var o=1;o<=10;o++)t+=parseInt(e.substring(o-1,o),10)*(12-o);return 10===(r=10*t%11)&&(r=0),r===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 i=e.length-2,a=e.substring(0,i),s=e.substring(i),u=0,c=i-7,d=i;d>=1;d--)u+=a.charAt(i-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;i+=1,a=e.substring(0,i),u=0,c=i-7;for(var f=i;f>=1;f--)u+=a.charAt(i-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-o.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 r="".concat(t,"/").concat(e.slice(3,5),"/").concat(e.slice(5,7));if(8===r.length){if(!(0,i.default)(r,"YY/MM/DD"))return!1}else if(!(0,i.default)(r,"YYYY/MM/DD"))return!1;for(var n=e.split("").map((function(e){return parseInt(e,10)})),o=[2,7,9,1,4,6,3,5,8,2,7,9],a=0,s=0;s<o.length;s++)a+=n[s]*o[s];return a%11==10?1===n[12]:n[12]===a%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 r=parseInt(e.slice(2,4),10);r>50&&(r-=50),r<10&&(r="0".concat(r));var n="".concat(t,"/").concat(r,"/").concat(e.slice(4,6));if(!(0,i.default)(n,"YYYY/MM/DD"))return!1}return!0},"sl-SI":function(e){var t=11-o.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 r="",n=t.slice(2,4),a=parseInt(t.slice(4,6),10);if(e.length>11)r=e.slice(0,4);else if(r=e.slice(0,2),11===e.length&&a<60){var s=(new Date).getFullYear().toString(),u=parseInt(s.slice(0,2),10);if(s=parseInt(s,10),"-"===e[6])r=parseInt("".concat(u).concat(r),10)>s?"".concat(u-1).concat(r):"".concat(u).concat(r);else if(r="".concat(u-1).concat(r),s-parseInt(r,10)<100)return!1}a>60&&(a-=60),a<10&&(a="0".concat(a));var c="".concat(r,"/").concat(n,"/").concat(a);if(8===c.length){if(!(0,i.default)(c,"YY/MM/DD"))return!1}else if(!(0,i.default)(c,"YYYY/MM/DD"))return!1;return o.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,r){if((0,kE.default)(e),r&&r.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 n in EE){if(EE.hasOwnProperty(n))if(EE[n].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,r.default)(e),n.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/^(0x)[0-9a-f]{40}$/i;e.exports=t.default,e.exports.default=t.default}(DE,DE.exports);var RE={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,i),function(e){var t="\\d{".concat(e.digits_after_decimal[0],"}");e.digits_after_decimal.forEach((function(e,r){0!==r&&(t="".concat(t,"|\\d{").concat(e,"}"))}));var r="(".concat(e.symbol.replace(/\W/,(function(e){return"\\".concat(e)})),")").concat(e.require_symbol?"":"?"),n="-?",o="[1-9]\\d{0,2}(\\".concat(e.thousands_separator,"\\d{3})*"),i="(".concat(["0","[1-9]\\d*",o].join("|"),")?"),a="(\\".concat(e.decimal_separator,"(").concat(t,"))").concat(e.require_decimal?"":"?"),s=i+(e.allow_decimal||e.require_decimal?a:"");e.allow_negatives&&!e.parens_for_negatives&&(e.negative_sign_after_digits?s+=n:e.negative_sign_before_digits&&(s=n+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+=r:s=r+s;e.allow_negatives&&(e.parens_for_negatives?s="(\\(".concat(s,"\\)|").concat(s,")"):e.negative_sign_before_digits||e.negative_sign_after_digits||(s=n+s));return new RegExp("^(?!-? )(?=.*\\d)".concat(s,"$"))}(t).test(e)};var r=o(Jx.exports),n=o(yx.exports);function o(e){return e&&e.__esModule?e:{default:e}}var i={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}(RE,RE.exports);var IE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),n.test(e)||o.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/^(bc1)[a-z0-9]{25,39}$/,o=/^(1|3)[A-HJ-NP-Za-km-z1-9]{25,39}$/;e.exports=t.default,e.exports.default=t.default}(IE,IE.exports);var CE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),n.has(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=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,r.default)(e);var a=t.strictSeparator?o.test(e):n.test(e);return a&&t.strict?i(e):a};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/^([\+-]?\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)?)?)?)?$/,o=/^([\+-]?\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)?)?)?)?$/,i=function(e){var t=e.match(/^(\d{4})-?(\d{3})([ T]{1}\.*|$)/);if(t){var r=Number(t[1]),n=Number(t[2]);return r%4==0&&r%100!=0||r%400==0?n<=366:n<=365}var o=e.match(/(\d{4})-?(\d{0,2})-?(\d*)/).map(Number),i=o[1],a=o[2],s=o[3],u=a?"0".concat(a).slice(-2):a,c=s?"0".concat(s).slice(-2):s,d=new Date("".concat(i,"-").concat(u||"01","-").concat(c||"01"));return!a||!s||d.getUTCFullYear()===i&&d.getUTCMonth()+1===a&&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,r.default)(e),d.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/([01][0-9]|2[0-3])/,o=/[0-5][0-9]/,i=new RegExp("[-+]".concat(n.source,":").concat(o.source)),a=new RegExp("([zZ]|".concat(i.source,")")),s=new RegExp("".concat(n.source,":").concat(o.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(a.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,r.default)(e),n.has(e.toUpperCase())};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=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,r.default)(e),t=(0,n.default)(t,s),t.crockford)return a.test(e);var o=e.length;if(o%8==0&&i.test(e))return!0;return!1};var r=o(yx.exports),n=o(Jx.exports);function o(e){return e&&e.__esModule?e:{default:e}}var i=/^[A-Z2-7]+=*$/,a=/^[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,r.default)(e),n.test(e))return!0;return!1};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/^[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,r.default)(e);var t=e.split(",");if(t.length<2)return!1;var a=t.shift().trim().split(";"),s=a.shift();if("data:"!==s.slice(0,5))return!1;var u=s.slice(5);if(""!==u&&!n.test(u))return!1;for(var c=0;c<a.length;c++)if((c!==a.length-1||"base64"!==a[c].toLowerCase())&&!o.test(a[c]))return!1;for(var d=0;d<t.length;d++)if(!i.test(t[d]))return!1;return!0};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/^[a-z]+\/[a-z0-9\-\+\._]+$/i,o=/^[a-z\-]+=[a-z0-9\-]+$/i,i=/^[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,r.default)(e),0!==e.indexOf("magnet:?"))return!1;return n.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/(?:^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,r.default)(e),n.test(e)||o.test(e)||i.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/^(application|audio|font|image|message|model|multipart|text|video)\/[a-zA-Z0-9\.\-\+_]{1,100}$/i,o=/^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,i=/^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,r.default)(e),t=(0,n.default)(t,c),!e.includes(","))return!1;var o=e.split(",");if(o[0].startsWith("(")&&!o[1].endsWith(")")||o[1].endsWith(")")&&!o[0].startsWith("("))return!1;if(t.checkDMS)return s.test(o[0])&&u.test(o[1]);return i.test(o[0])&&a.test(o[1])};var r=o(yx.exports),n=o(Jx.exports);function o(e){return e&&e.__esModule?e:{default:e}}var i=/^\(?[+-]?(90(\.0+)?|[1-8]?\d(\.\d+)?)$/,a=/^\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 r in YE){if(YE.hasOwnProperty(r))if(YE[r].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 KE=/^\d{3}$/,qE=/^\d{4}$/,VE=/^\d{5}$/,WE=/^\d{6}$/,YE={AD:/^AD\d{3}$/,AT:qE,AU:qE,AZ:/^AZ\d{4}$/,BA:/^([7-8]\d{4}$)/,BE:qE,BG:qE,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:qE,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:VE,DK:qE,DO:VE,DZ:VE,EE:VE,ES:/^(5[0-2]{1}|[0-4]{1}\d{1})\d{3}$/,FI:VE,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:qE,ID:VE,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:KE,IT:VE,JP:/^\d{3}\-\d{4}$/,KE:VE,KR:/^(\d{5}|\d{6})$/,LI:/^(948[5-9]|949[0-7])$/,LT:/^LT\-\d{5}$/,LU:qE,LV:/^LV\-\d{4}$/,LK:VE,MG:KE,MX:VE,MT:/^[A-Za-z]{3}\s{0,1}\d{4}$/,MY:VE,NL:/^\d{4}\s?[a-z]{2}$/i,NO:qE,NP:/^(10|21|22|32|33|34|44|45|56|57)\d{3}$|^(977)$/i,NZ:qE,PL:/^\d{2}\-\d{3}$/,PR:/^00[679]\d{2}([ -]\d{4})?$/,PT:/^\d{4}\-\d{3}?$/,RO:WE,RU:WE,SA:VE,SE:/^[1-9]\d{2}\s?\d{2}$/,SG:WE,SI:qE,SK:/^\d{3}\s?\d{2}$/,TH:VE,TN:qE,TW:/^\d{3}(\d{2})?$/,UA:VE,US:/^\d{5}(-\d{4})?$/,ZA:qE,ZM:VE},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,r.default)(e);var n=t?new RegExp("^[".concat(t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"]+"),"g"):/^\s+/g;return e.replace(n,"")};var r=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,r.default)(e),t){var n=new RegExp("[".concat(t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"]+$"),"g");return e.replace(n,"")}var o=e.length-1;for(;/\s/.test(e.charAt(o));)o-=1;return e.slice(0,o+1)};var r=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,r.default)((0,n.default)(e,t),t)};var r=o(XE.exports),n=o(JE.exports);function o(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,r.default)(e),e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(/\//g,"/").replace(/\\/g,"\").replace(/`/g,"`")};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);e.exports=t.default,e.exports.default=t.default}(tS,tS.exports);var rS={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),e.replace(/"/g,'"').replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(///g,"/").replace(/\/g,"\\").replace(/`/g,"`").replace(/&/g,"&")};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);e.exports=t.default,e.exports.default=t.default}(rS,rS.exports);var nS={exports:{}},oS={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(e),e.replace(new RegExp("[".concat(t,"]+"),"g"),"")};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);e.exports=t.default,e.exports.default=t.default}(oS,oS.exports),function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e);var o=t?"\\x00-\\x09\\x0B\\x0C\\x0E-\\x1F\\x7F":"\\x00-\\x1F\\x7F";return(0,n.default)(e,o)};var r=o(yx.exports),n=o(oS.exports);function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default}(nS,nS.exports);var iS={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(e),e.replace(new RegExp("[^".concat(t,"]+"),"g"),"")};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);e.exports=t.default,e.exports.default=t.default}(iS,iS.exports);var aS={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e);for(var n=e.length-1;n>=0;n--)if(-1===t.indexOf(e[n]))return!1;return!0};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);e.exports=t.default,e.exports.default=t.default}(aS,aS.exports);var sS={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){t=(0,r.default)(t,n);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(o.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(i.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(a.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 r=function(e){return e&&e.__esModule?e:{default:e}}(Jx.exports);var n={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},o=["icloud.com","me.com"],i=["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"],a=["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,r.default)(e),n.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n=/^[^\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,r.default)(e),t in n)return n[t](e);if("any"===t){for(var o in n){if((0,n[o])(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))};var r=function(e){return e&&e.__esModule?e:{default:e}}(yx.exports);var n={"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,n.default)(e);var o=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),r={length:e.length,uniqueChars:Object.keys(t).length,uppercaseCount:0,lowercaseCount:0,numberCount:0,symbolCount:0};return Object.keys(t).forEach((function(e){i.test(e)?r.uppercaseCount+=t[e]:a.test(e)?r.lowercaseCount+=t[e]:s.test(e)?r.numberCount+=t[e]:u.test(e)&&(r.symbolCount+=t[e])})),r}(e);if(t=(0,r.default)(t||{},c),t.returnScore)return function(e,t){var r=0;r+=e.uniqueChars*t.pointsPerUnique,r+=(e.length-e.uniqueChars)*t.pointsPerRepeat,e.lowercaseCount>0&&(r+=t.pointsForContainingLower);e.uppercaseCount>0&&(r+=t.pointsForContainingUpper);e.numberCount>0&&(r+=t.pointsForContainingNumber);e.symbolCount>0&&(r+=t.pointsForContainingSymbol);return r}(o,t);return o.length>=t.minLength&&o.lowercaseCount>=t.minLowercase&&o.uppercaseCount>=t.minUppercase&&o.numberCount>=t.minNumbers&&o.symbolCount>=t.minSymbols};var r=o(Jx.exports),n=o(yx.exports);function o(e){return e&&e.__esModule?e:{default:e}}var i=/^[A-Z]$/,a=/^[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 r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=n?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(r,o,i):r[o]=e[o]}r.default=e,t&&t.set(e,r);return r}(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 r=t[2],n=11-hS.reverseMultiplyAndSum(r.split("").slice(0,8).map((function(e){return parseInt(e,10)})),9)%11;return n>9?0===parseInt(r[8],10):n===parseInt(r[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 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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=qe(bx.exports),o=qe(_x.exports),i=qe(qx.exports),a=qe(Vx.exports),s=qe(Wx.exports),u=qe(Yx.exports),c=qe(Xx.exports),d=qe(ek.exports),l=qe(ok.exports),f=qe(ik.exports),p=qe(nk.exports),h=qe(ak.exports),m=qe(rk.exports),v=qe(sk.exports),g=qe(uk.exports),A=qe(ck.exports),b=qe(dk.exports),y=Ke(lk),_=Ke(mk),w=qe(bk.exports),x=qe(yk.exports),k=qe(_k.exports),E=qe(xk.exports),S=qe(kk.exports),D=qe(Ek.exports),R=qe(Sk.exports),I=qe(Dk),C=qe(Ck),O=qe(Pk.exports),T=qe(Lk.exports),P=qe(Mk.exports),L=qe(jk.exports),M=qe(wk.exports),B=Ke(wx),j=qe(Uk.exports),U=qe(Nk.exports),F=qe($k.exports),N=qe(Gk.exports),$=qe(Hk.exports),G=qe(zk.exports),H=qe(Zk.exports),z=qe(Kk.exports),Z=Ke(qk),K=qe(Qk.exports),q=qe(rE.exports),V=qe(nE.exports),W=qe(oE.exports),Y=qe(aE.exports),Q=qe(sE.exports),J=qe(uE.exports),X=qe(tk.exports),ee=qe(cE.exports),te=qe(dE.exports),re=qe(lE.exports),ne=qe(fE.exports),oe=qe(pE.exports),ie=qe(hE.exports),ae=qe(mE.exports),se=qe(vE.exports),ue=qe(gE.exports),ce=qe(AE.exports),de=qe(bE.exports),le=qe(yE.exports),fe=qe(_E.exports),pe=Ke(xE),he=qe(DE.exports),me=qe(RE.exports),ve=qe(IE.exports),ge=qe(CE.exports),Ae=qe(OE.exports),be=qe(TE.exports),ye=qe(Jk),_e=qe(PE.exports),we=qe(LE),xe=qe(UE.exports),ke=qe(FE.exports),Ee=qe(iE.exports),Se=qe(NE.exports),De=qe($E.exports),Re=qe(GE.exports),Ie=qe(HE.exports),Ce=Ke(zE),Oe=qe(JE.exports),Te=qe(XE.exports),Pe=qe(eS.exports),Le=qe(tS.exports),Me=qe(rS.exports),Be=qe(nS.exports),je=qe(iS.exports),Ue=qe(oS.exports),Fe=qe(aS.exports),Ne=qe(sS.exports),$e=qe(uS.exports),Ge=qe(cS.exports),He=qe(dS.exports),ze=qe(lS);function Ze(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return Ze=function(){return e},e}function Ke(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=Ze();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,t&&t.set(e,n),n}function qe(e){return e&&e.__esModule?e:{default:e}}var Ve={version:"13.9.0",toDate:n.default,toFloat:o.default,toInt:i.default,toBoolean:a.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:K.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:R.default,isFullWidth:I.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:q.default,isHash:V.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:re.default,isBefore:ne.default,isIn:oe.default,isLuhnNumber:ie.default,isCreditCard:ae.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:Re.default,isLatLong:Ie.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=Ve,e.exports=t.default,e.exports.default=t.default}(Ax,Ax.exports);var gS=i(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 r=e.split("@");let n="";r.length>1&&(n=r[0]+"@",e=r[1]);const o=function(e,t){const r=[];let n=e.length;for(;n--;)r[n]=t(e[n]);return r}((e=e.replace(wS,".")).split("."),t).join(".");return n+o}function RS(e){const t=[];let r=0;const n=e.length;for(;r<n;){const o=e.charCodeAt(r++);if(o>=55296&&o<=56319&&r<n){const n=e.charCodeAt(r++);56320==(64512&n)?t.push(((1023&o)<<10)+(1023&n)+65536):(t.push(o),r--)}else t.push(o)}return t}const IS=e=>String.fromCodePoint(...e),CS=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},OS=function(e,t,r){let n=0;for(e=r?kS(e/700):e>>1,e+=kS(e/t);e>455;n+=bS)e=kS(e/35);return kS(n+36*e/(e+38))},TS=function(e){const t=[],r=e.length;let n=0,o=128,i=72,a=e.lastIndexOf("-");a<0&&(a=0);for(let r=0;r<a;++r)e.charCodeAt(r)>=128&&SS("not-basic"),t.push(e.charCodeAt(r));for(let u=a>0?a+1:0;u<r;){const a=n;for(let t=1,o=bS;;o+=bS){u>=r&&SS("invalid-input");const a=(s=e.charCodeAt(u++))>=48&&s<58?s-48+26:s>=65&&s<91?s-65:s>=97&&s<123?s-97:bS;a>=bS&&SS("invalid-input"),a>kS((AS-n)/t)&&SS("overflow"),n+=a*t;const c=o<=i?1:o>=i+26?26:o-i;if(a<c)break;const d=bS-c;t>kS(AS/d)&&SS("overflow"),t*=d}const c=t.length+1;i=OS(n-a,c,0==a),kS(n/c)>AS-o&&SS("overflow"),o+=kS(n/c),n%=c,t.splice(n++,0,o)}var s;return String.fromCodePoint(...t)},PS=function(e){const t=[],r=(e=RS(e)).length;let n=128,o=0,i=72;for(const r of e)r<128&&t.push(ES(r));const a=t.length;let s=a;for(a&&t.push("-");s<r;){let r=AS;for(const t of e)t>=n&&t<r&&(r=t);const u=s+1;r-n>kS((AS-o)/u)&&SS("overflow"),o+=(r-n)*u,n=r;for(const r of e)if(r<n&&++o>AS&&SS("overflow"),r===n){let e=o;for(let r=bS;;r+=bS){const n=r<=i?1:r>=i+26?26:r-i;if(e<n)break;const o=e-n,a=bS-n;t.push(ES(CS(n+o%a,0))),e=kS(o/a)}t.push(ES(CS(e,0))),i=OS(o,u,s===a),o=0,++s}++o,++n}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:RS,encode:IS},decode:TS,encode:PS,toASCII:MS,toUnicode:LS};var jS=Object.freeze({__proto__:null,ucs2decode:RS,ucs2encode:IS,decode:TS,encode:PS,toASCII:MS,toUnicode:LS,default:BS}),US=a(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 r=e.match(/(.*)\.(([\u0E00-\u0E7Fa-z0-9]+)(\.[a-z0-9]+))/);let n=null,o=null;if(r&&r.length>2&&$S[r[2]]&&(n=r[2],o=r[1].split(".")),!o){if(o=e.split("."),o.length<=1)return!1;n=o.pop();if(!/^(?:xn--)?(?!^\d+$)[\u0E00-\u0E7Fa-z0-9]+$/gi.test(n))return!1}if(!1===t.subdomain&&o.length>1)return!1;const i=o.every((function(e,r){if(t.wildcard&&0===r&&"*"===e&&o.length>1)return!0;let n=/^([\u0E00-\u0E7Fa-zA-Z0-9-_]+)$/g;r===o.length-1&&(n=/^([\u0E00-\u0E7Fa-zA-Z0-9-]+)$/g);const i=(e.match(/--(--)?/g)||[]).length,a=(e.match(/xn--/g)||[]).length;if(r===o.length-1&&i!==a)return!1;return n.test(e)&&e.length<64&&!e.startsWith("-")&&!e.endsWith("-")}));return i},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 KS=function(e,t,r){if(ZS(r)||(r={default:r}),!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,r;return!1!==QS(e)&&("function"==typeof(t=e.constructor)&&(!1!==QS(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf")))},tD=e=>"object"==typeof e&&null!==e||"function"==typeof e,rD=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}"`)},nD=(e,t,r)=>{const n=(e=>Array.isArray(e)?e.flat().map(String).join(","):e)(t?((e,t)=>{if("string"!=typeof e||!t)return e;let r=e+";";return void 0!==t.arrays&&(r+=`arrays=${t.arrays};`),void 0!==t.separator&&(r+=`separator=${t.separator};`),void 0!==t.split&&(r+=`split=${t.split};`),void 0!==t.merge&&(r+=`merge=${t.merge};`),void 0!==t.preservePaths&&(r+=`preservePaths=${t.preservePaths};`),r})(e,t):e);rD(n);const o=aD.cache.get(n)||r();return aD.cache.set(n,o),o},oD=(e,t)=>t&&"function"==typeof t.split?t.split(e):"symbol"==typeof e?[e]:Array.isArray(e)?e:nD(e,t,(()=>((e,t={})=>{const r=t.separator||".",n="/"!==r&&t.preservePaths;if("string"==typeof e&&!1!==n&&/\//.test(e))return[e];const o=[];let i="";const a=e=>{let t;""!==e.trim()&&Number.isInteger(t=Number(e))?o.push(t):o.push(e)};for(let t=0;t<e.length;t++){const n=e[t];"\\"!==n?n!==r?i+=n:(a(i),i=""):i+=e[++t]}return i&&a(i),o})(e,t))),iD=(e,t,r,n)=>{if(rD(t),void 0===r)JS(e,t);else if(n&&n.merge){const o="function"===n.merge?n.merge:Object.assign;o&&eD(e[t])&&eD(r)?e[t]=o(e[t],r):e[t]=r}else e[t]=r;return e},aD=(e,t,r,n)=>{if(!t||!tD(e))return e;const o=oD(t,n);let i=e;for(let e=0;e<o.length;e++){const t=o[e],a=o[e+1];if(rD(t),void 0===a){iD(i,t,r,n);break}"number"!=typeof a||Array.isArray(i[t])?(tD(i[t])||(i[t]={}),i=i[t]):i=i[t]=[]}return e};aD.split=oD,aD.cache=new Map,aD.clear=()=>{aD.cache=new Map};var sD,uD=aD;function cD(e){var t=this,n={},o=(null==e?void 0:e._ancestor_origins)||window.location.ancestorOrigins,i=(null==e?void 0:e.self_url)||window.location.href,a=(null==e?void 0:e.self_origin)||window.location.origin,s=(null==e?void 0:e.referrer_url)||document.referrer;function u(e){return KS(n,e)}function c(e,t){return uD(n,e,t)}var d=function(){var e;r(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=o,t=n.depth.value,r=a;if(c("top.domain.from","fallback"),e&&e.length>0)r=e[e.length-1],c("top.domain.from","origins");else if(0===t)r=a,c("top.domain.from","self-top");else if(1===t){var i=l(s);i&&(r=i.origin,c("top.domain.from","referrer"))}c("top.domain.value",r.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",n.top.domain.value),c("partner.domain.from","partner-fallback")}else c("partner.domain.value",n.top.domain.value),c("partner.domain.from","fallback")}(),e=f(),0===n.depth.value?(c("partner.url.value",i),c("partner.url.from","self-top")):e?HS(e)?(c("partner.url.value",i),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)||[i,s],r=0;r<t.length;r++){var n,o=l(t[r]);if(o){var a=null===(n=o.query)||void 0===n?void 0:n.gd_sdk_referrer_url;if(a&&(a=(a=decodeURIComponent(a)).startsWith("https://")||a.startsWith("http://")?a:"https://".concat(a),gS.isURL(a)))return a}}}return d(),{get:u,print:function(e){console.log(u(e))}}}var dD,lD=function(e){var t=this;if(!sD){var n={gameId:e.gameId,hours:(new Date).getHours(),topDomain:t_.topDomain,domain:t_.parentDomain,referrer:t_.parentURL,depth:pt(),version:Ws.version,byloader:t_.isTokenGameURL,isTokenGameURL:t_.isTokenGameURL,isMasterGameURL:t_.isMasterGameURL,isExtHostedGameURL:t_.isExtHostedGameURL,byloaderVersion:t_.version,tracking:r_.userDeclinedTracking,whitelabel:r_.whitelabelPartner,platform:lt()};sD=new It(n)}return sD||{send:function(){r(this,t)}.bind(this)}},fD={getGameData:function(e){var t=this;try{var n=e.replace("game.api.gamedistribution.com","game-api.gamedistribution.com");fetch(n).then(function(e){r(this,t)}.bind(this)).catch(function(e){r(this,t)}.bind(this))}catch(e){}},getGameLoaderIndex:function(e){var t=this;try{var n="https://html5-prod-aws.gamedistribution.com/".concat(e,"/");fetch(n).then(function(e){r(this,t)}.bind(this)).catch(function(e){r(this,t)}.bind(this))}catch(e){}}},pD={exports:{}},hD="object"==typeof Reflect?Reflect:null,mD=hD&&"function"==typeof hD.apply?hD.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};dD=hD&&"function"==typeof hD.ownKeys?hD.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var vD=Number.isNaN||function(e){return e!=e};function gD(){gD.init.call(this)}pD.exports=gD,pD.exports.once=function(e,t){return new Promise((function(r,n){function o(r){e.removeListener(t,i),n(r)}function i(){"function"==typeof e.removeListener&&e.removeListener("error",o),r([].slice.call(arguments))}DD(e,t,i,{once:!0}),"error"!==t&&function(e,t,r){"function"==typeof e.on&&DD(e,"error",t,r)}(e,o,{once:!0})}))},gD.EventEmitter=gD,gD.prototype._events=void 0,gD.prototype._eventsCount=0,gD.prototype._maxListeners=void 0;var AD=10;function bD(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function yD(e){return void 0===e._maxListeners?gD.defaultMaxListeners:e._maxListeners}function _D(e,t,r,n){var o,i,a,s;if(bD(r),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),i=e._events),a=i[t]),void 0===a)a=i[t]=r,++e._eventsCount;else if("function"==typeof a?a=i[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(o=yD(e))>0&&a.length>o&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,s=u,console&&console.warn&&console.warn(s)}return e}function wD(){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 xD(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},o=wD.bind(n);return o.listener=r,n.wrapFn=o,o}function kD(e,t,r){var n=e._events;if(void 0===n)return[];var o=n[t];return void 0===o?[]:"function"==typeof o?r?[o.listener||o]:[o]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(o):SD(o,o.length)}function ED(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function SD(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function DD(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);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 o(i){n.once&&e.removeEventListener(t,o),r(i)}))}}Object.defineProperty(gD,"defaultMaxListeners",{enumerable:!0,get:function(){return AD},set:function(e){if("number"!=typeof e||e<0||vD(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");AD=e}}),gD.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},gD.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||vD(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},gD.prototype.getMaxListeners=function(){return yD(this)},gD.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n="error"===e,o=this._events;if(void 0!==o)n=n&&void 0===o.error;else if(!n)return!1;if(n){var i;if(t.length>0&&(i=t[0]),i instanceof Error)throw i;var a=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw a.context=i,a}var s=o[e];if(void 0===s)return!1;if("function"==typeof s)mD(s,this,t);else{var u=s.length,c=SD(s,u);for(r=0;r<u;++r)mD(c[r],this,t)}return!0},gD.prototype.addListener=function(e,t){return _D(this,e,t,!1)},gD.prototype.on=gD.prototype.addListener,gD.prototype.prependListener=function(e,t){return _D(this,e,t,!0)},gD.prototype.once=function(e,t){return bD(t),this.on(e,xD(this,e,t)),this},gD.prototype.prependOnceListener=function(e,t){return bD(t),this.prependListener(e,xD(this,e,t)),this},gD.prototype.removeListener=function(e,t){var r,n,o,i,a;if(bD(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(o=-1,i=r.length-1;i>=0;i--)if(r[i]===t||r[i].listener===t){a=r[i].listener,o=i;break}if(o<0)return this;0===o?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,o),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},gD.prototype.off=gD.prototype.removeListener,gD.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var o,i=Object.keys(r);for(n=0;n<i.length;++n)"removeListener"!==(o=i[n])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},gD.prototype.listeners=function(e){return kD(this,e,!0)},gD.prototype.rawListeners=function(e){return kD(this,e,!1)},gD.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):ED.call(e,t)},gD.prototype.listenerCount=ED,gD.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"]},ID={gameAPI:"game.api.gamedistribution.com"},CD={gameAPI:"game-api-acc-real-aws.gamedistribution.com"},OD=function(){var e=this,t=RD.acc.some(function(t){var n;return r(this,e),t===(null===(n=window.location.host)||void 0===n?void 0:n.toLowerCase())}.bind(this));return{env:t?"acc":"prod",config:t?CD:ID}},TD=function(e){var t=this,n=e.url;return new Promise(function(e,o){r(this,t);var i=new XMLHttpRequest;i.open("GET",n,!0),i.onreadystatechange=function(){if(4==i.readyState)if(200==i.status){var t=JSON.parse(i.responseText);e(t)}else o(Error("Error occured on request: ".concat(i.status,", ").concat(i.statusText)))},i.onerror=function(e){o(e)},i.send()}.bind(this))};function PD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function LD(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?PD(Object(r),!0).forEach((function(t){ru(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):PD(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var MD,BD,jD,UD=new pD.exports.EventEmitter,FD=[],ND=function(e){FD.push(e)},$D=function(e){MD=lD(jD=e)},GD=function(){var e=t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(BD){e.next=6;break}return e.next=3,ZD(jD);case 3:BD=e.sent,UD.emit("game-data-ready",BD),HD();case 6:return e.abrupt("return",BD);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),HD=function(){var e,r;if(null!==(e=BD)&&void 0!==e&&null!==(r=e.aws_tst)&&void 0!==r&&r.enabled){var n,o,i,a,s;if(zD(),null!==(n=BD)&&void 0!==n&&null!==(o=n.aws_tst)&&void 0!==o&&null!==(i=o.ep)&&void 0!==i&&i.api&&null!==(a=BD)&&void 0!==a&&a.url)fD.getGameData(null===(s=BD)||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,ZD(jD);case 3:BD=e.sent,Js("gd-aws-test, new game data received",null===(t=BD)||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)}},zD=function(){var e=window.fetch;window.fetch=t(d.mark((function t(){var n,o,i,a,s,u,c,l,f,p,h,m,v,g,A,b,y,_,w,x=this,k=arguments;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(c=k.length,l=new Array(c),f=0;f<c;f++)l[f]=k[f];p=l[0],h=l[1],m=null===(n=BD)||void 0===n||null===(o=n.aws_tst)||void 0===o||null===(i=o.ep)||void 0===i?void 0:i.atm,v=null===(a=BD)||void 0===a||null===(s=a.aws_tst)||void 0===s||null===(u=s.ep)||void 0===u?void 0:u.msgrt,g=function(t,n){var o=this;r(this,x);var i=p.replace(t,n);e(i,h).then(function(){r(this,o)}.bind(this))}.bind(this);try{m&&p.indexOf("tag.atom")>0&&g("tag.atom.gamedistribution.com","atom-tag-prod-aws.gamedistribution.com"),v&&p.indexOf("msgrt.gamedistribution.com")>0&&(Js("gd-aws-test hook",null===(A=BD)||void 0===A?void 0:A.aws_tst,null===(b=BD)||void 0===b||null===(y=b.aws_tst)||void 0===y||null===(_=y.ep)||void 0===_?void 0:_.msgrt),g("msgrt.gamedistribution.com","msgrt-prod-aws.gamedistribution.com"))}catch(e){}return t.next=9,e(p,h);case 9:return w=t.sent,t.abrupt("return",w);case 11:case"end":return t.stop()}}),t,this)})))},ZD=function(e){var n=this;MD.send("gdfw.loading",{message:"loading"}),FD=[],ND("1"),ND("2");var o=new cD;ND("3");var i=o.get("partner.domain.value");ND("4");var a=function(){return r(this,n),{gameId:e.gameId,disableAds:{},preroll:!0,midroll:12e4,rewardedAds:!1,title:"",tags:[],category:"",assets:[],dmain:!0,sdk:{},loader:{},splash:{},promo:{},dAds:{},pAds:{},mAds:{},rAds:{}}}.bind(this);ND("5");var s=function(){r(this,n);var t=u(),o=t?"&mode=".concat(t):"",a=OD().config;return"https://".concat(a.gameAPI,"/game/v4/get/").concat(e.gameId.replace(/-/g,""),"/?domain=").concat(i).concat(o,"&v=").concat(Ws.version,"&localTime=").concat((new Date).getHours())}.bind(this);ND("6");var u=function(){var e=this;r(this,n);var t=new Proxy(new URLSearchParams(window.location.search),{get:function(t,n){return r(this,e),t.get(n)}.bind(this)});return!t.gd_mode&&window.location.search.includes("gd_mode")?window.location.search.split("gd_mode=")[1]:t.gd_mode}.bind(this);return ND("7"),new Promise(function(e){var o=this;r(this,n),ND("7.1");var i=a();try{ND("7.2");var u=s();ND("7.3"),fetch(u).then(function(){var e=t(d.mark((function e(t){var r;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return ND("7.4"),e.prev=1,e.next=4,t.json();case 4:r=e.sent,e.next=13;break;case 7:return e.prev=7,e.t0=e.catch(1),Js("gameData fetch error, fallback to other ajax api",e.t0),e.next=12,TD({url:u});case 12:r=e.sent;case 13:return e.abrupt("return",r);case 14:case"end":return e.stop()}}),e,null,[[1,7]])})));return function(t){return e.apply(this,arguments)}}()).then(function(t){var n=this;if(r(this,o),ND("7.5"),t.success){var a,s,c,d=t.result.game;ND("7.6");var l={company:d.company,gameId:d.gameMd5,slug:d.slug,pname:d.pname,dname:d.dname,status:d.status,activeStatus:d.activeStatus,description:d.description,disableAds:d.enableAds,preroll:d.preRoll,midroll:6e4*d.timeAds,rewardedAds:d.rewardedAds,title:d.title,publishedAt:d.publishedAt,tags:d.tags,category:d.category,assets:d.assets,disp_2nd_prer:d.disp_2nd_prer,ctry_vst:d.ctry_vst,ctry:d.ctry,crtv:d.crtv,dmain:d.dmain,dmn:d.dmn,aws_tst:d.aws_tst,meta:d.meta,adsc:d.adsc,adspn:Ys(d.adspn)||{},__t4r:Ys(d.__t4r)||{},block_exts:Ys(d.push_cuda),bloc_gard:Ys(d.bloc_gard),cookie:Ys(d.cookie),gdpr:Ys(d.gdpr),diagnostic:Ys(d.diagnostic),cmp:Ys(d.cmp),gft:Ys(d.gft)||{},sdk:Ys(d.sdk)||{},sdkfw:Ys(d.sdkfw)||{},loader:Ys(d.loader)||{},splash:Ys(d.splash)||{},promo:Ys(d.promo)||{},dAds:Ys(d.dads)||{},pAds:Ys(d.pads)||{},mAds:Ys(d.mads)||{},rAds:Ys(d.rads)||{},lp:Ys(d.lp)||{},extsc:Ys(d.extsc)||{},evnts:Ys(d.evnts)||{},dp:Ys(d.dp)||{},adflw:Ys(d.adflw)||{},afgszf:Ys(d.afgszf)||{},fllc:Ys(d.fllc)||{},lotm:Ys(d.lotm)||{},t4rc:Ys(d.t4rc)||{},midroll_plus:Ys(d.midroll_plus)||{},gmky:Ys(d.gmky)||{},urlBlockExc:Ys(d.url_blck_exc)||{},sdk_wrp:Ys(d.sdk_wrp)||{},dbglg:Ys(d.dbglg)||{},extHosting:Ys(d.ext_hosting)||{},directTokenUse:Ys(d.dtu)||{},aeria:Ys(d.aeria)||{},advlm:Ys(d.advlm)||{},ad_blcks:Ys(d.ad_blcks)||{},rmblck:Ys(d.rmblck)||{},gs_trc:Ys(d.gs_trc)||{},rwskp:Ys(d.rwskp)||{},isv_fw:Ys(d.isv_fw)||{},ext_vst:Ys(d.ext_vst)||{},fix_score:Ys(d.fix_score)||{},compensation:Ys(d.comps)||{}};ND("7.7");var f=ot(B(i),l);ND("7.8"),f.afg_disabled=!1===(null===(a=f.sdk)||void 0===a||null===(s=a.afg)||void 0===s?void 0:s.enabled),f.url=u,function(){r(this,n),void 0!==tu.afgEnabled&&(f.afg_disabled=!tu.afgEnabled),void 0!==tu.promoEnabled&&(f.promo=f.promo||{},f.promo=LD(LD({},f.promo),{},{rainbow:{enabled:tu.promoEnabled}}))}.bind(this),ND("7.9"),null!==(c=f.pAds)&&void 0!==c&&c.enabled&&(f.preroll=!0),ND("7.10"),MD.send("gdfw.success",{message:"success"}),e(f)}else{i.failed=!0;var p=FD[FD.length-1];MD.send("gdfw.err",{message:"".concat(p,": json error")}),e(i)}}.bind(this)).catch(function(t){r(this,o);var n=FD[FD.length-1];MD.send("gdfw.err",{message:"".concat(n,": ").concat(t.message?t.message:t)}),i.failed=!0,e(i)}.bind(this))}catch(t){var c=FD[FD.length-1];MD.send("gdfw.err",{message:"".concat(c,": global ").concat(t.message?t.message:t)}),i.failed=!0,e(i)}}.bind(this))},KD=function(){var e=t(d.mark((function e(){var t,r;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,GD();case 2:return r=e.sent,e.abrupt("return",!(null==r||null===(t=r.sdkfw)||void 0===t||!t.enabled));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),qD=function(){var e=t(d.mark((function e(){var t,r,n;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,GD();case 2:return r=e.sent,n=null==r||null===(t=r.diagnostic)||void 0===t||!t.close_ga,e.abrupt("return",n);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),VD=function(){var e=t(d.mark((function e(){var t,r;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,GD();case 2:return r=e.sent,e.next=5,KD();case 5:if(e.t0=e.sent,!e.t0){e.next=8;break}e.t0=!(null==r||null===(t=r.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)}}(),WD=function(){var e=t(d.mark((function e(){var t,r,n,o,i,a,s,u;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,GD();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===(r=s.extsc)||void 0===r?void 0:r.path:"",name:u?null==s||null===(n=s.extsc)||void 0===n?void 0:n.name:"",ref:u?null==s||null===(o=s.extsc)||void 0===o?void 0:o.ref:"",loadedFlag:u?null==s||null===(i=s.extsc)||void 0===i?void 0:i.loadedFlag:void 0,loadedFlagCheck:!!u&&!(null==s||null===(a=s.extsc)||void 0===a||!a.loadedFlagCheck)});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),YD=function(){var e=t(d.mark((function e(){var t,n,o,i,a,s=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,WD();case 2:if((t=e.sent).enabled){e.next=5;break}return e.abrupt("return");case 5:return n=t.path,o=t.name,i=t.ref,e.prev=6,a={},e.next=10,ft(n,o,{error_prefix:"Blocked:",exists:function(){return r(this,s),!!i&&!!window[i]}.bind(this),attrs:a});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",o,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)}}(),QD=!1,JD=!1,XD=function(){return new Promise(function(){var e=t(d.mark((function e(t,n){var o,i,a,s,u,c=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!QD){e.next=4;break}return e.abrupt("return",t(JD));case 4:QD=!0;case 5:return e.next=7,WD();case 7:if((o=e.sent).enabled){e.next=10;break}return e.abrupt("return",t(!1));case 10:if(i=o.loadedFlag,!(a=o.loadedFlagCheck)||i){e.next=13;break}return e.abrupt("return",t(!1));case 13:if(a){e.next=16;break}return JD=!0,e.abrupt("return",t(!0));case 16:s=!0,setTimeout(function(){r(this,c),s&&(s=!1,QD=!0,t(!1))}.bind(this),5e3),u=setInterval(function(){r(this,c),s&&a&&window[i]?(s=!1,QD=!0,JD=!0,clearInterval(u),t(!0)):s||clearInterval(u)}.bind(this),100);case 19:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}())},eR=Gs,tR=tg,rR=zt,nR=un,oR=Fr,iR=Ym,aR=nb,sR=oi,uR=tR&&tR.prototype;if(eR({target:"Promise",proto:!0,real:!0,forced:!!tR&&rR((function(){uR.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=iR(this,nR("Promise")),r=oR(e);return this.then(r?function(r){return aR(t,e()).then((function(){return r}))}:e,r?function(r){return aR(t,e()).then((function(){throw r}))}:e)}}),oR(tR)){var cR=nR("Promise").prototype.finally;uR.finally!==cR&&sR(uR,"finally",cR,{unsafe:!0})}var dR="\t\n\v\f\r \u2028\u2029\ufeff",lR=er,fR=iu,pR=dR,hR=Yt("".replace),mR=RegExp("^["+pR+"]+"),vR=RegExp("(^|[^"+pR+"])["+pR+"]+$"),gR=function(e){return function(t){var r=fR(lR(t));return 1&e&&(r=hR(r,mR,"")),2&e&&(r=hR(r,vR,"$1")),r}},AR={start:gR(1),end:gR(2),trim:gR(3)},bR=to.PROPER,yR=zt,_R=dR,wR=AR.trim;Gs({target:"String",proto:!0,forced:function(e){return yR((function(){return!!_R[e]()||"
"!=="
"[e]()||bR&&_R[e].name!==e}))}("trim")},{trim:function(){return wR(this)}});var xR=Gs,kR=ya.find,ER=im,SR="find",DR=!0;SR in[]&&Array(1)[SR]((function(){DR=!1})),xR({target:"Array",proto:!0,forced:DR},{find:function(e){return kR(this,e,arguments.length>1?arguments[1]:void 0)}}),ER(SR);var RR=Fr,IR=zr,CR=kp,OR=Nr.f,TR=$r,PR=Pt,LR=Yt,MR=Ls,BR=function(e,t,r){var n,o;return CR&&RR(n=t.constructor)&&n!==r&&IR(o=n.prototype)&&o!==r.prototype&&CR(e,o),e},jR=go,UR=Wa.f,FR=cn,NR=Zb,$R=iu,GR=hy,HR=sh,zR=function(e,t,r){r in e||OR(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})},ZR=oi,KR=zt,qR=ar,VR=Bo.enforce,WR=Fm,YR=dh,QR=ph,JR=Pr("match"),XR=PR.RegExp,eI=XR.prototype,tI=PR.SyntaxError,rI=LR(eI.exec),nI=LR("".charAt),oI=LR("".replace),iI=LR("".indexOf),aI=LR("".slice),sI=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,uI=/a/g,cI=/a/g,dI=new XR(uI)!==uI,lI=HR.MISSED_STICKY,fI=HR.UNSUPPORTED_Y,pI=TR&&(!dI||lI||YR||QR||KR((function(){return cI[JR]=!1,XR(uI)!=uI||XR(cI)==cI||"/a/i"!=XR(uI,"i")})));if(MR("RegExp",pI)){for(var hI=function(e,t){var r,n,o,i,a,s,u=FR(eI,this),c=NR(e),d=void 0===t,l=[],f=e;if(!u&&c&&d&&e.constructor===hI)return e;if((c||FR(eI,e))&&(e=e.source,d&&(t=GR(f))),e=void 0===e?"":$R(e),t=void 0===t?"":$R(t),f=e,YR&&"dotAll"in uI&&(n=!!t&&iI(t,"s")>-1)&&(t=oI(t,/s/g,"")),r=t,lI&&"sticky"in uI&&(o=!!t&&iI(t,"y")>-1)&&fI&&(t=oI(t,/y/g,"")),QR&&(i=function(e){for(var t,r=e.length,n=0,o="",i=[],a={},s=!1,u=!1,c=0,d="";n<=r;n++){if("\\"===(t=nI(e,n)))t+=nI(e,++n);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:rI(sI,aI(e,n+1))&&(n+=2,u=!0),o+=t,c++;continue;case">"===t&&u:if(""===d||qR(a,d))throw new tI("Invalid capture group name");a[d]=!0,i[i.length]=[d,c],u=!1,d="";continue}u?d+=t:o+=t}return[o,i]}(e),e=i[0],l=i[1]),a=BR(XR(e,t),u?this:eI,hI),(n||o||l.length)&&(s=VR(a),n&&(s.dotAll=!0,s.raw=hI(function(e){for(var t,r=e.length,n=0,o="",i=!1;n<=r;n++)"\\"!==(t=nI(e,n))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+nI(e,++n);return o}(e),r)),o&&(s.sticky=!0),l.length&&(s.groups=l)),e!==f)try{jR(a,"source",""===f?"(?:)":f)}catch(e){}return a},mI=UR(XR),vI=0;mI.length>vI;)zR(hI,XR,mI[vI++]);eI.constructor=hI,hI.prototype=eI,ZR(PR,"RegExp",hI,{constructor:!0})}WR("RegExp");var gI=Gs,AI=Pi,bI=Fa,yI=wa,_I=Yt([].join);gI({target:"Array",proto:!0,forced:AI!=Object||!yI("join",",")},{join:function(e){return _I(bI(this),void 0===e?",":e)}});var wI=ya.map;Gs({target:"Array",proto:!0,forced:!bl("map")},{map:function(e){return wI(this,e,arguments.length>1?arguments[1]:void 0)}});var xI=$r,kI=Yt,EI=on,SI=zt,DI=Zs,RI=hs,II=Pa,CI=nr,OI=Pi,TI=Object.assign,PI=Object.defineProperty,LI=kI([].concat),MI=!TI||SI((function(){if(xI&&1!==TI({b:1},TI(PI({},"a",{enumerable:!0,get:function(){PI(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(e){t[e]=e})),7!=TI({},e)[r]||DI(TI({},t)).join("")!=n}))?function(e,t){for(var r=CI(e),n=arguments.length,o=1,i=RI.f,a=II.f;n>o;)for(var s,u=OI(arguments[o++]),c=i?LI(DI(u),i(u)):DI(u),d=c.length,l=0;d>l;)s=c[l++],xI&&!EI(a,u,s)||(r[s]=u[s]);return r}:TI,BI=MI;Gs({target:"Object",stat:!0,arity:2,forced:Object.assign!==BI},{assign:BI});var jI,UI=Yt,FI=2147483647,NI=/[^\0-\u007E]/,$I=/[.\u3002\uFF0E\uFF61]/g,GI="Overflow: input needs wider integers to process",HI=RangeError,zI=UI($I.exec),ZI=Math.floor,KI=String.fromCharCode,qI=UI("".charCodeAt),VI=UI([].join),WI=UI([].push),YI=UI("".replace),QI=UI("".split),JI=UI("".toLowerCase),XI=function(e){return e+22+75*(e<26)},eC=function(e,t,r){var n=0;for(e=r?ZI(e/700):e>>1,e+=ZI(e/t);e>455;)e=ZI(e/35),n+=36;return ZI(n+36*e/(e+38))},tC=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var o=qI(e,r++);if(o>=55296&&o<=56319&&r<n){var i=qI(e,r++);56320==(64512&i)?WI(t,((1023&o)<<10)+(1023&i)+65536):(WI(t,o),r--)}else WI(t,o)}return t}(e);var r,n,o=e.length,i=128,a=0,s=72;for(r=0;r<e.length;r++)(n=e[r])<128&&WI(t,KI(n));var u=t.length,c=u;for(u&&WI(t,"-");c<o;){var d=FI;for(r=0;r<e.length;r++)(n=e[r])>=i&&n<d&&(d=n);var l=c+1;if(d-i>ZI((FI-a)/l))throw HI(GI);for(a+=(d-i)*l,i=d,r=0;r<e.length;r++){if((n=e[r])<i&&++a>FI)throw HI(GI);if(n==i){for(var f=a,p=36;;){var h=p<=s?1:p>=s+26?26:p-s;if(f<h)break;var m=f-h,v=36-h;WI(t,KI(XI(h+m%v))),f=ZI(m/v),p+=36}WI(t,KI(XI(f))),s=eC(a,l,c==u),a=0,c++}}a++,i++}return VI(t,"")},rC=Gs,nC=$r,oC=G_,iC=Pt,aC=Ri,sC=Yt,uC=oi,cC=qu,dC=Gm,lC=ar,fC=MI,pC=Sf,hC=Fu,mC=zf.codeAt,vC=function(e){var t,r,n=[],o=QI(YI(JI(e),$I,"."),".");for(t=0;t<o.length;t++)r=o[t],WI(n,zI(NI,r)?"xn--"+tC(r):r);return VI(n,".")},gC=iu,AC=uc,bC=Jm,yC=cx,_C=Bo,wC=_C.set,xC=_C.getterFor("URL"),kC=yC.URLSearchParams,EC=yC.getState,SC=iC.URL,DC=iC.TypeError,RC=iC.parseInt,IC=Math.floor,CC=Math.pow,OC=sC("".charAt),TC=sC(/./.exec),PC=sC([].join),LC=sC(1..toString),MC=sC([].pop),BC=sC([].push),jC=sC("".replace),UC=sC([].shift),FC=sC("".split),NC=sC("".slice),$C=sC("".toLowerCase),GC=sC([].unshift),HC="Invalid scheme",zC="Invalid host",ZC="Invalid port",KC=/[a-z]/i,qC=/[\d+-.a-z]/i,VC=/\d/,WC=/^0x/i,YC=/^[0-7]+$/,QC=/^\d+$/,JC=/^[\da-f]+$/i,XC=/[\0\t\n\r #%/:<>?@[\\\]^|]/,eO=/[\0\t\n\r #/:<>?@[\\\]^|]/,tO=/^[\u0000-\u0020]+/,rO=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,nO=/[\t\n\r]/g,oO=function(e){var t,r,n,o;if("number"==typeof e){for(t=[],r=0;r<4;r++)GC(t,e%256),e=IC(e/256);return PC(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,o=0,i=0;i<8;i++)0!==e[i]?(o>r&&(t=n,r=o),n=null,o=0):(null===n&&(n=i),++o);return o>r&&(t=n,r=o),t}(e),r=0;r<8;r++)o&&0===e[r]||(o&&(o=!1),n===r?(t+=r?":":"::",o=!0):(t+=LC(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},iO={},aO=fC({},iO,{" ":1,'"':1,"<":1,">":1,"`":1}),sO=fC({},aO,{"#":1,"?":1,"{":1,"}":1}),uO=fC({},sO,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),cO=function(e,t){var r=mC(e,0);return r>32&&r<127&&!lC(t,e)?e:encodeURIComponent(e)},dO={ftp:21,file:null,http:80,https:443,ws:80,wss:443},lO=function(e,t){var r;return 2==e.length&&TC(KC,OC(e,0))&&(":"==(r=OC(e,1))||!t&&"|"==r)},fO=function(e){var t;return e.length>1&&lO(NC(e,0,2))&&(2==e.length||"/"===(t=OC(e,2))||"\\"===t||"?"===t||"#"===t)},pO=function(e){return"."===e||"%2e"===$C(e)},hO={},mO={},vO={},gO={},AO={},bO={},yO={},_O={},wO={},xO={},kO={},EO={},SO={},DO={},RO={},IO={},CO={},OO={},TO={},PO={},LO={},MO=function(e,t,r){var n,o,i,a=gC(e);if(t){if(o=this.parse(a))throw DC(o);this.searchParams=null}else{if(void 0!==r&&(n=new MO(r,!0)),o=this.parse(a,null,n))throw DC(o);(i=EC(new kC)).bindURL(this),this.searchParams=i}};MO.prototype={type:"URL",parse:function(e,t,r){var n,o,i,a,s,u=this,c=t||hO,d=0,l="",f=!1,p=!1,h=!1;for(e=gC(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=jC(e,tO,""),e=jC(e,rO,"$1")),e=jC(e,nO,""),n=pC(e);d<=n.length;){switch(o=n[d],c){case hO:if(!o||!TC(KC,o)){if(t)return HC;c=vO;continue}l+=$C(o),c=mO;break;case mO:if(o&&(TC(qC,o)||"+"==o||"-"==o||"."==o))l+=$C(o);else{if(":"!=o){if(t)return HC;l="",c=vO,d=0;continue}if(t&&(u.isSpecial()!=lC(dO,l)||"file"==l&&(u.includesCredentials()||null!==u.port)||"file"==u.scheme&&!u.host))return;if(u.scheme=l,t)return void(u.isSpecial()&&dO[u.scheme]==u.port&&(u.port=null));l="","file"==u.scheme?c=DO:u.isSpecial()&&r&&r.scheme==u.scheme?c=gO:u.isSpecial()?c=_O:"/"==n[d+1]?(c=AO,d++):(u.cannotBeABaseURL=!0,BC(u.path,""),c=TO)}break;case vO:if(!r||r.cannotBeABaseURL&&"#"!=o)return HC;if(r.cannotBeABaseURL&&"#"==o){u.scheme=r.scheme,u.path=hC(r.path),u.query=r.query,u.fragment="",u.cannotBeABaseURL=!0,c=LO;break}c="file"==r.scheme?DO:bO;continue;case gO:if("/"!=o||"/"!=n[d+1]){c=bO;continue}c=wO,d++;break;case AO:if("/"==o){c=xO;break}c=OO;continue;case bO:if(u.scheme=r.scheme,o==jI)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=hC(r.path),u.query=r.query;else if("/"==o||"\\"==o&&u.isSpecial())c=yO;else if("?"==o)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=hC(r.path),u.query="",c=PO;else{if("#"!=o){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=hC(r.path),u.path.length--,c=OO;continue}u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=hC(r.path),u.query=r.query,u.fragment="",c=LO}break;case yO:if(!u.isSpecial()||"/"!=o&&"\\"!=o){if("/"!=o){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,c=OO;continue}c=xO}else c=wO;break;case _O:if(c=wO,"/"!=o||"/"!=OC(l,d+1))continue;d++;break;case wO:if("/"!=o&&"\\"!=o){c=xO;continue}break;case xO:if("@"==o){f&&(l="%40"+l),f=!0,i=pC(l);for(var m=0;m<i.length;m++){var v=i[m];if(":"!=v||h){var g=cO(v,uO);h?u.password+=g:u.username+=g}else h=!0}l=""}else if(o==jI||"/"==o||"?"==o||"#"==o||"\\"==o&&u.isSpecial()){if(f&&""==l)return"Invalid authority";d-=pC(l).length+1,l="",c=kO}else l+=o;break;case kO:case EO:if(t&&"file"==u.scheme){c=IO;continue}if(":"!=o||p){if(o==jI||"/"==o||"?"==o||"#"==o||"\\"==o&&u.isSpecial()){if(u.isSpecial()&&""==l)return zC;if(t&&""==l&&(u.includesCredentials()||null!==u.port))return;if(a=u.parseHost(l))return a;if(l="",c=CO,t)return;continue}"["==o?p=!0:"]"==o&&(p=!1),l+=o}else{if(""==l)return zC;if(a=u.parseHost(l))return a;if(l="",c=SO,t==EO)return}break;case SO:if(!TC(VC,o)){if(o==jI||"/"==o||"?"==o||"#"==o||"\\"==o&&u.isSpecial()||t){if(""!=l){var A=RC(l,10);if(A>65535)return ZC;u.port=u.isSpecial()&&A===dO[u.scheme]?null:A,l=""}if(t)return;c=CO;continue}return ZC}l+=o;break;case DO:if(u.scheme="file","/"==o||"\\"==o)c=RO;else{if(!r||"file"!=r.scheme){c=OO;continue}if(o==jI)u.host=r.host,u.path=hC(r.path),u.query=r.query;else if("?"==o)u.host=r.host,u.path=hC(r.path),u.query="",c=PO;else{if("#"!=o){fO(PC(hC(n,d),""))||(u.host=r.host,u.path=hC(r.path),u.shortenPath()),c=OO;continue}u.host=r.host,u.path=hC(r.path),u.query=r.query,u.fragment="",c=LO}}break;case RO:if("/"==o||"\\"==o){c=IO;break}r&&"file"==r.scheme&&!fO(PC(hC(n,d),""))&&(lO(r.path[0],!0)?BC(u.path,r.path[0]):u.host=r.host),c=OO;continue;case IO:if(o==jI||"/"==o||"\\"==o||"?"==o||"#"==o){if(!t&&lO(l))c=OO;else if(""==l){if(u.host="",t)return;c=CO}else{if(a=u.parseHost(l))return a;if("localhost"==u.host&&(u.host=""),t)return;l="",c=CO}continue}l+=o;break;case CO:if(u.isSpecial()){if(c=OO,"/"!=o&&"\\"!=o)continue}else if(t||"?"!=o)if(t||"#"!=o){if(o!=jI&&(c=OO,"/"!=o))continue}else u.fragment="",c=LO;else u.query="",c=PO;break;case OO:if(o==jI||"/"==o||"\\"==o&&u.isSpecial()||!t&&("?"==o||"#"==o)){if(".."===(s=$C(s=l))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(u.shortenPath(),"/"==o||"\\"==o&&u.isSpecial()||BC(u.path,"")):pO(l)?"/"==o||"\\"==o&&u.isSpecial()||BC(u.path,""):("file"==u.scheme&&!u.path.length&&lO(l)&&(u.host&&(u.host=""),l=OC(l,0)+":"),BC(u.path,l)),l="","file"==u.scheme&&(o==jI||"?"==o||"#"==o))for(;u.path.length>1&&""===u.path[0];)UC(u.path);"?"==o?(u.query="",c=PO):"#"==o&&(u.fragment="",c=LO)}else l+=cO(o,sO);break;case TO:"?"==o?(u.query="",c=PO):"#"==o?(u.fragment="",c=LO):o!=jI&&(u.path[0]+=cO(o,iO));break;case PO:t||"#"!=o?o!=jI&&("'"==o&&u.isSpecial()?u.query+="%27":u.query+="#"==o?"%23":cO(o,iO)):(u.fragment="",c=LO);break;case LO:o!=jI&&(u.fragment+=cO(o,aO))}d++}},parseHost:function(e){var t,r,n;if("["==OC(e,0)){if("]"!=OC(e,e.length-1))return zC;if(t=function(e){var t,r,n,o,i,a,s,u=[0,0,0,0,0,0,0,0],c=0,d=null,l=0,f=function(){return OC(e,l)};if(":"==f()){if(":"!=OC(e,1))return;l+=2,d=++c}for(;f();){if(8==c)return;if(":"!=f()){for(t=r=0;r<4&&TC(JC,f());)t=16*t+RC(f(),16),l++,r++;if("."==f()){if(0==r)return;if(l-=r,c>6)return;for(n=0;f();){if(o=null,n>0){if(!("."==f()&&n<4))return;l++}if(!TC(VC,f()))return;for(;TC(VC,f());){if(i=RC(f(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;l++}u[c]=256*u[c]+o,2!=++n&&4!=n||c++}if(4!=n)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(a=c-d,c=7;0!=c&&a>0;)s=u[c],u[c--]=u[d+a-1],u[d+--a]=s;else if(8!=c)return;return u}(NC(e,1,-1)),!t)return zC;this.host=t}else if(this.isSpecial()){if(e=vC(e),TC(XC,e))return zC;if(t=function(e){var t,r,n,o,i,a,s,u=FC(e,".");if(u.length&&""==u[u.length-1]&&u.length--,(t=u.length)>4)return e;for(r=[],n=0;n<t;n++){if(""==(o=u[n]))return e;if(i=10,o.length>1&&"0"==OC(o,0)&&(i=TC(WC,o)?16:8,o=NC(o,8==i?1:2)),""===o)a=0;else{if(!TC(10==i?QC:8==i?YC:JC,o))return e;a=RC(o,i)}BC(r,a)}for(n=0;n<t;n++)if(a=r[n],n==t-1){if(a>=CC(256,5-t))return null}else if(a>255)return null;for(s=MC(r),n=0;n<r.length;n++)s+=r[n]*CC(256,3-n);return s}(e),null===t)return zC;this.host=t}else{if(TC(eO,e))return zC;for(t="",r=pC(e),n=0;n<r.length;n++)t+=cO(r[n],iO);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return lC(dO,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&lO(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,o=e.host,i=e.port,a=e.path,s=e.query,u=e.fragment,c=t+":";return null!==o?(c+="//",e.includesCredentials()&&(c+=r+(n?":"+n:"")+"@"),c+=oO(o),null!==i&&(c+=":"+i)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?a[0]:a.length?"/"+PC(a,"/"):"",null!==s&&(c+="?"+s),null!==u&&(c+="#"+u),c},setHref:function(e){var t=this.parse(e);if(t)throw DC(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new BO(e.path[0]).origin}catch(e){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+oO(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(gC(e)+":",hO)},getUsername:function(){return this.username},setUsername:function(e){var t=pC(gC(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=cO(t[r],uO)}},getPassword:function(){return this.password},setPassword:function(e){var t=pC(gC(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=cO(t[r],uO)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?oO(e):oO(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,kO)},getHostname:function(){var e=this.host;return null===e?"":oO(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,EO)},getPort:function(){var e=this.port;return null===e?"":gC(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=gC(e))?this.port=null:this.parse(e,SO))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+PC(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,CO))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=gC(e))?this.query=null:("?"==OC(e,0)&&(e=NC(e,1)),this.query="",this.parse(e,PO)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=gC(e))?("#"==OC(e,0)&&(e=NC(e,1)),this.fragment="",this.parse(e,LO)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var BO=function(e){var t=dC(this,jO),r=bC(arguments.length,1)>1?arguments[1]:void 0,n=wC(t,new MO(e,!1,r));nC||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},jO=BO.prototype,UO=function(e,t){return{get:function(){return xC(this)[e]()},set:t&&function(e){return xC(this)[t](e)},configurable:!0,enumerable:!0}};if(nC&&(cC(jO,"href",UO("serialize","setHref")),cC(jO,"origin",UO("getOrigin")),cC(jO,"protocol",UO("getProtocol","setProtocol")),cC(jO,"username",UO("getUsername","setUsername")),cC(jO,"password",UO("getPassword","setPassword")),cC(jO,"host",UO("getHost","setHost")),cC(jO,"hostname",UO("getHostname","setHostname")),cC(jO,"port",UO("getPort","setPort")),cC(jO,"pathname",UO("getPathname","setPathname")),cC(jO,"search",UO("getSearch","setSearch")),cC(jO,"searchParams",UO("getSearchParams")),cC(jO,"hash",UO("getHash","setHash"))),uC(jO,"toJSON",(function(){return xC(this).serialize()}),{enumerable:!0}),uC(jO,"toString",(function(){return xC(this).serialize()}),{enumerable:!0}),SC){var FO=SC.createObjectURL,NO=SC.revokeObjectURL;FO&&uC(BO,"createObjectURL",aC(FO,SC)),NO&&uC(BO,"revokeObjectURL",aC(NO,SC))}AC(BO,"URL"),rC({global:!0,constructor:!0,forced:!oC,sham:!nC},{URL:BO});var $O=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 r in e){var n=e[r];t[r]=n[Math.floor(Math.random()*n.length)]}return t}},{key:"checkCustomParams",value:function(){var e=this;try{var t={},n=this.gameData.diagnostic&&this.gameData.diagnostic.cp&&this.gameData.diagnostic.cp.enabled,o=new C(location.href,!0);for(var i in o.query)t[i]=o.query[i];var a=Object.keys(t).filter(function(t){var n=this;return r(this,e),this.customParamKeys.some(function(e){return r(this,n),e===t}.bind(this))}.bind(this));return a.length>0||n?(console.log("custom-params",t,n),t):void console.log("custom-params, none")}catch(e){console.log("_checkCustomParams.Error",e)}}}]),e}(),GO=function(){function e(t,r){O(this,e),this.adContainer=t,this.onResume=r}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(){r(this,e),this.onResume()}.bind(this)),this.adContainer.appendChild(t);var n=document.createElement("div");this.adResumeButtonOverlay=n,n.id="gd__resume__button__overlay",n.classList.add("gd__resume__button__overlay"),this.adContainer.appendChild(n)}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,r){if(!document.getElementById(e)){var n=document.createElement("style");n.type="text/css",n.id=e,n.styleSheet?n.styleSheet.cssText=r:n.appendChild(document.createTextNode(r)),t.appendChild(n)}}}]),e}(),HO=function(){function e(t,r){O(this,e),this.adContainer=t,this.onResume=r}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,r){if(!document.getElementById(e)){var n=document.createElement("style");n.type="text/css",n.id=e,n.styleSheet?n.styleSheet.cssText=r:n.appendChild(document.createTextNode(r)),t.appendChild(n)}}}]),e}(),zO=function(){function e(t,r,n){O(this,e),this.adContainer=t,this.onResume=r,this.OnSkip=n}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 n=document.createElement("span");n.innerText="Skip Ad >>",this.addStyles(),t.classList.add("gd__skip__ad"),n.classList.add("gd__skip__span"),this.skipAd.appendChild(n),this.adContainer.appendChild(t),this.skipAd.addEventListener("click",function(){r(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,r){if(!document.getElementById(e)){var n=document.createElement("style");n.type="text/css",n.id=e,n.styleSheet?n.styleSheet.cssText=r:n.appendChild(document.createTextNode(r)),t.appendChild(n)}}}]),e}(),ZO=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 r=document.createElement("span");r.innerHTML="ⓘ",this.addStyles(),e.classList.add("gd__audio__label"),t.classList.add("gd__audio__span"),r.classList.add("gd__audio__span"),this.audioLabel.appendChild(r),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,r){if(!document.getElementById(e)){var n=document.createElement("style");n.type="text/css",n.id=e,n.styleSheet?n.styleSheet.cssText=r:n.appendChild(document.createTextNode(r)),t.appendChild(n)}}}]),e}(),KO=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,r){if(!document.getElementById(e)){var n=document.createElement("style");n.type="text/css",n.id=e,n.styleSheet?n.styleSheet.cssText=r:n.appendChild(document.createTextNode(r)),t.appendChild(n)}}}]),e}(),qO=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"}),VO=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 WO(e){return Object.assign({muted:!1,timeout:250,inline:!1},e)}function YO(e,t){var r=e.muted,n=e.timeout,o=e.inline,i=t(),a=i.element,s=i.source,u=void 0,c=void 0,d=void 0;return a.muted=r,!0===r&&a.setAttribute("muted","muted"),!0===o&&a.setAttribute("playsinline","playsinline"),a.src=s,new Promise((function(e){u=a.play(),c=setTimeout((function(){d(!1,new Error("Timeout "+n+" ms has been reached"))}),n),d=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;a.remove(),a.srcObject=null,clearTimeout(c),e({result:t,error:r})},void 0!==u?u.then((function(){return d(!0)})).catch((function(e){return d(!1,e)})):d(!0)}))}var QO={audio:function(e){return YO(e=WO(e),(function(){return{element:document.createElement("audio"),source:URL.createObjectURL(qO)}}))},video:function(e){return YO(e=WO(e),(function(){return{element:document.createElement("video"),source:URL.createObjectURL(VO)}}))}},JO={exports:{}};!function(e,t){var r="__lodash_hash_undefined__",n=9007199254740991,i="[object Arguments]",a="[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[i]=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 o&&o&&o.Object===Object&&o,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,R=Function.prototype,I=Object.prototype,C=A["__core-js_shared__"],O=R.toString,T=I.hasOwnProperty,P=function(){var e=/[^.]+$/.exec(C&&C.keys&&C.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),L=I.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=I.propertyIsEnumerable,z=D.splice,Z=U?U.toStringTag:void 0,K=function(){try{var e=Ae(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),q=j?j.isBuffer:void 0,V=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 r=new e;return e.prototype=void 0,r}}();function X(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ee(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function te(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function re(e){var t=this.__data__=new ee(e);this.size=t.size}function ne(e,t){var r=Ee(e),n=!r&&ke(e),o=!r&&!n&&De(e),i=!r&&!n&&!o&&Te(e),a=r||n||o||i,s=a?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],u=s.length;for(var c in e)!t&&!T.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||be(c,u))||s.push(c);return s}function oe(e,t,r){(void 0!==r&&!xe(e[t],r)||void 0===r&&!(t in e))&&se(e,t,r)}function ie(e,t,r){var n=e[t];T.call(e,t)&&xe(n,r)&&(void 0!==r||t in e)||se(e,t,r)}function ae(e,t){for(var r=e.length;r--;)if(xe(e[r][0],t))return r;return-1}function se(e,t,r){"__proto__"==t&&K?K(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}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 n=t[e];return n===r?void 0:n}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 n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Q&&void 0===t?r:t,this},ee.prototype.clear=function(){this.__data__=[],this.size=0},ee.prototype.delete=function(e){var t=this.__data__,r=ae(t,e);return!(r<0)&&(r==t.length-1?t.pop():z.call(t,r,1),--this.size,!0)},ee.prototype.get=function(e){var t=this.__data__,r=ae(t,e);return r<0?void 0:t[r][1]},ee.prototype.has=function(e){return ae(this.__data__,e)>-1},ee.prototype.set=function(e,t){var r=this.__data__,n=ae(r,e);return n<0?(++this.size,r.push([e,t])):r[n][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 r=ge(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},re.prototype.clear=function(){this.__data__=new ee,this.size=0},re.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},re.prototype.get=function(e){return this.__data__.get(e)},re.prototype.has=function(e){return this.__data__.has(e)},re.prototype.set=function(e,t){var r=this.__data__;if(r instanceof ee){var n=r.__data__;if(!Y||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new te(n)}return r.set(e,t),this.size=r.size,this};var ue,ce=function(e,t,r){for(var n=-1,o=Object(e),i=r(e),a=i.length;a--;){var s=i[ue?a:++n];if(!1===t(o[s],s,o))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),r=e[Z];try{e[Z]=void 0;var n=!0}catch(e){}var o=L.call(e);n&&(t?e[Z]=r:delete e[Z]);return o}(e):function(e){return L.call(e)}(e)}function le(e){return Oe(e)&&de(e)==i}function fe(e){return!(!Ce(e)||function(e){return!!P&&P in e}(e))&&(Re(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 r in Object(e))t.push(r);return t}(e);var t=ye(e),r=[];for(var n in e)("constructor"!=n||!t&&T.call(e,n))&&r.push(n);return r}function he(e,t,r,n,o){e!==t&&ce(t,(function(i,a){if(o||(o=new re),Ce(i))!function(e,t,r,n,o,i,a){var s=_e(e,r),u=_e(t,r),c=a.get(u);if(c)return void oe(e,r,c);var l=i?i(s,u,r+"",e,t,a):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 r=-1,n=e.length;t||(t=Array(n));for(;++r<n;)t[r]=e[r];return t}(s):h?(f=!1,l=function(e,t){if(t)return e.slice();var r=e.length,n=N?N(r):new e.constructor(r);return e.copy(n),n}(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 r=T.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&O.call(r)==M}(u)||ke(u)?(l=s,ke(s)?l=function(e){return function(e,t,r,n){var o=!r;r||(r={});var i=-1,a=t.length;for(;++i<a;){var s=t[i],u=n?n(r[s],e[s],s,r,e):void 0;void 0===u&&(u=e[s]),o?se(r,s,u):ie(r,s,u)}return r}(e,Pe(e))}(s):Ce(s)&&!Re(s)||(l=function(e){return"function"!=typeof e.constructor||ye(e)?{}:J($(e))}(u))):f=!1}var v,g,A,b;var y;f&&(a.set(u,l),o(l,u,n,i,a),a.delete(u));oe(e,r,l)}(e,t,a,r,he,n,o);else{var s=n?n(_e(e,a),i,a+"",e,t,o):void 0;void 0===s&&(s=i),oe(e,a,s)}}),Pe)}function me(e,t){return we(function(e,t,r){return t=V(void 0===t?e.length-1:t,0),function(){for(var n=arguments,o=-1,i=V(n.length-t,0),a=Array(i);++o<i;)a[o]=n[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=n[o];return s[t]=r(a),function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}(e,this,s)}}(e,t,Be),e+"")}var ve=K?function(e,t){return K(e,"toString",{configurable:!0,enumerable:!1,value:(r=t,function(){return r}),writable:!0});var r}:Be;function ge(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map}function Ae(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return fe(r)?r:void 0}function be(e,t){var r=typeof e;return!!(t=null==t?n:t)&&("number"==r||"symbol"!=r&&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||I)}function _e(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var we=function(e){var t=0,r=0;return function(){var n=W(),o=16-(n-r);if(r=n,o>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&&Ie(e.length)&&!Re(e)}var De=q||function(){return!1};function Re(e){if(!Ce(e))return!1;var t=de(e);return t==s||t==u||t==a||t==l}function Ie(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}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)&&Ie(e.length)&&!!m[de(e)]};function Pe(e){return Se(e)?ne(e,!0):pe(e)}var Le,Me=(Le=function(e,t,r){he(e,t,r)},me((function(e,t){var r=-1,n=t.length,o=n>1?t[n-1]:void 0,i=n>2?t[2]:void 0;for(o=Le.length>3&&"function"==typeof o?(n--,o):void 0,i&&function(e,t,r){if(!Ce(r))return!1;var n=typeof t;return!!("number"==n?Se(r)&&be(t,r.length):"string"==n&&t in r)&&xe(r[t],e)}(t[0],t[1],i)&&(o=n<3?void 0:o,n=1),e=Object(e);++r<n;){var a=t[r];a&&Le(e,a,r,o)}return e})));function Be(e){return e}e.exports=Me}(JO,JO.exports);var XO=JO.exports;function eT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function tT(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?eT(Object(r),!0).forEach((function(t){ru(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eT(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function rT(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 nT,oT="13998",iT="_cc".concat(oT),aT=["https://tags.crwdcntrl.net/c/".concat(oT,"/cc.js?ns=").concat(iT)],sT=function(){return!!nT&&"function"==typeof nT.bcpf&&"function"==typeof nT.add},uT=function(e,t){try{if(!sT())return;nT.add(e,t),Js("lotame add success ".concat(e," ").concat(t))}catch(e){Js("lotame add error",err)}},cT=function(e,t){try{if(!sT())return;nT.bcpw(e,t),Js("lotame send success ".concat(e," ").concat(t))}catch(e){}},dT=function(e){var t=this;try{uT("act","play"),uT("med","game"),"complete"===document.readyState?nT.bcpf():nT.bcp(),e.tags.forEach(function(e){r(this,t),cT("int","tags : ".concat(e.title.toLowerCase()))}.bind(this)),cT("int","category : ".concat(e.category.toLowerCase()))}catch(e){}},lT=function(){window.addEventListener("load",(function(){UD.once("game-data-ready",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(e.prev=1,e.t0=null!=t_&&t_.noLotamePageView,!e.t0){e.next=7;break}return e.next=6,KD();case 6:e.t0=e.sent;case 7:if(!e.t0){e.next=10;break}return e.abrupt("return");case 10:if(null!==(r=t.lotm)&&void 0!==r&&r.enabled){e.next=13;break}return e.abrupt("return");case 13:return e.next=16,ft(aT[0],"LOTCC_".concat(oT),{alternates:aT});case 16:"object"===n(window[iT])&&(nT=window[iT]),sT()&&dT(t),e.next=23;break;case 20:e.prev=20,e.t1=e.catch(1),Js("lotame init error",e.t1);case 23:case"end":return e.stop()}}),e,null,[[1,20]])})));return function(t){return e.apply(this,arguments)}}())}))},fT=function(){cT("genp","ad video"),cT("act","ad impression")},pT=function(){cT("act","ad skipped")},hT=function(){cT("act","ad click")},mT=function(){cT("act","ad complete")},vT=new cD,gT=function(e,t){var n=this,o={env:"vp",iu:"/6556/huffpost.desktop.video/en/azerion/video",description_url:vT.get("partner.url.value"),tfcd:0,npa:0,sz:"400x300|480x360|480x361|640x360|640x480",gdfp_req:1,output:"vast",unviewed_position_start:1,impl:"s",correlator:"".concat(Date.now())},i=Object.keys(o).map(function(e){return r(this,n),"".concat(e,"=").concat(o[e])}.bind(this)).join("&");return"".concat("https://pubads.g.doubleclick.net/gampad/ads","?").concat(i)},AT=new cD,bT={preroll:"game-start-video",midroll:"mid-level-video",rewarded:"rewarded-video"},yT=function(e,t){var n=this,o=function(e,t){var r=AT.get("partner.url.value"),n=bT[t],o="".concat("web.latimes/games-puzzles-crossword","/").concat(e,"/").concat(n);return{env:"vp",iu:"/".concat("21787098806","/").concat(o),description_url:r,tfcd:0,npa:0,sz:"400x300|480x360|480x361|640x360|640x480",gdfp_req:1,output:"vast",unviewed_position_start:1,impl:"s",correlator:"".concat(Date.now())}}(e,t),i=Object.keys(o).map(function(e){return r(this,n),"".concat(e,"=").concat(o[e])}.bind(this)).join("&");return"".concat("https://pubads.g.doubleclick.net/gampad/ads","?").concat(i)},_T=function(){var e=(new cD).get("partner.url.value");return C(e,!0).host},wT=function(e){var t,r=null==e||null===(t=e.ext_vst)||void 0===t?void 0:t.enabled,n=_T(),o="Softgames-Azerion"===(null==e?void 0:e.dname)&&("latimes.com"===n||"www.latimes.com"===n);return r||o},xT=function(e,t){var r=function(e,t){var r,n=function(){var r=t.slug;return yT(r,e)},o={"latimes.com":n,"www.latimes.com":n,"huffpost.com":function(){return t.slug,gT()}},i=_T();return null==o||null===(r=o[i])||void 0===r?void 0:r.call(o,e)}(e,t);return r},kT=function(){var e=(new cD).get("partner.url.value"),t=new C(e,!0),r={isRevisionTest:!1,useTestAds:!1,disableMidrolltimer:!1};if("revision.gamedistribution.com"===t.host){var n=t.query.test,o="1"===n||"2"===n,i="1"===n;r={useTestAds:o,disableMidrolltimer:i,isRevisionTest:i||o}}return r},ET=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 n=document.createElement("div");n.id="gd__spinner__fail",n.setAttribute("title","Spinner"),n.classList.add("gd__spinner__fail"),n.innerHTML="No Ads Available!",this.adSpinnerFail=n;var o=document.createElement("div");o.id="gd__spinner__button",o.setAttribute("title","Spinner"),o.classList.add("gd__spinner__button"),o.onclick=function(){r(this,e),this.hide()}.bind(this);var i=document.createElement("p");i.innerText="OK!",o.appendChild(i),this.adSpinnerButton=o;var a=document.createElement("div");a.id="gd__spinner__logo",a.setAttribute("title","Spinner"),a.classList.add("gd__spinner__logo"),this.adSpinnerLogo=a;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,r){if(!document.getElementById(e)){var n=document.createElement("style");n.type="text/css",n.id=e,n.styleSheet?n.styleSheet.cssText=r:n.appendChild(document.createTextNode(r)),t.appendChild(n)}}}]),e}();function ST(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function DT(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ST(Object(r),!0).forEach((function(t){ru(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ST(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var RT=new pD.exports.EventEmitter,IT=null,CT=function(){function e(t,n,o){var i=this;if(O(this,e),IT)return IT;IT=this;var a={debug:!1,width:640,height:360,locale:"en"};this.options=n?ot(a,n):a,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=o.parentDomain,this.topDomain=o.topDomain,this.parentURL=o.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.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(){r(this,i),this._clearSafetyTimer("LOADED"),this._startSafetyTimer(8e3,"LOADED")}.bind(this),"ima"),this.eventBus.subscribe("STARTED",function(){r(this,i),this._clearSafetyTimer("STARTED")}.bind(this),"ima")}var n,o,i,a,s,u,c,f,p,h,m,v,g,A,b,y,_,w,x,k,E,S,D,R,I,T,P;return L(e,[{key:"start",value:(P=t(d.mark((function e(){var n,o,i,a=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,a._init_afg_script({});case 2:case"end":return e.stop()}}),e)}))));case 3:return n=e.sent,this.afgInitSuccess=n.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,a._init_hl_script();case 2:return e.next=4,a._init_ima_script();case 4:a._createPlayer(),a._setUpIMA();case 6:case"end":return e.stop()}}),e)}))));case 7:if(o=e.sent,this.imaInitSuccess=o.success,i=[],this.afgInitSuccess||i.push(n.error),this.imaInitSuccess||i.push(o.error),!(i.length>0)){e.next=14;break}throw i[0];case 14:window.eventTest=function(e){r(this,a),this._broadcast(e,{message:"",status:"success"})}.bind(this),e.next=21;break;case 17:throw e.prev=17,e.t0=e.catch(0),eu("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 r;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={success:!1},e.prev=1,e.next=4,t();case 4:r.success=!0,e.next=10;break;case 7:e.prev=7,e.t0=e.catch(1),r.error=e.t0;case 10:return e.abrupt("return",r);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:(I=t(d.mark((function e(t){var r,n,o,i,a,s,u,c,l,f,p,h;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.adType,n=t.options,e.prev=1,a=null===(o=this.gameData.adflw)||void 0===o||null===(i=o.adapterConfig)||void 0===i?void 0:i.spil,s=this.nextAdPosition(r),e.next=6,this._create_dp_context(s,n);case 6:return u=e.sent,a?(Js("spil-adaptor: in _getSpilUrl, adType, adPosition, gamedata",r,s,this.gameData),c=a[s]||a.default||this._getDefaultSpilAdapterConfig()):c=this._getDefaultSpilAdapterConfig(),l=100*u.floor_price,Js("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 I.apply(this,arguments)})},{key:"_getAdVast",value:function(e,n){var o=this;return new Promise(function(){var i=t(d.mark((function t(i){var a,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")||kT().useTestAds)){t.next=6;break}return a=o.IMASampleTags[e],s=Math.floor(Math.random()*a.length),u=a[s],i({url:u,tnl_keys:{tnl_ad_pos:null==n?void 0:n.adTypeFound}}),t.abrupt("return");case 6:if("spil"!==n.adapter){t.next=8;break}return t.abrupt("return",i(o._getSpilUrl({adType:e,options:n})));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=o.nextAdPosition(e),null!=n&&n.adTypeFound&&(c=null==n?void 0:n.adTypeFound),o._broadcast("AD_REQUEST",{message:c}),l=o.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"===n.adapter||"audio"===n.giftType?(o.isAudioAd=!0,f="midrollaudio"):(o.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,o._create_dp_context(c,n);case 22:p=t.sent,Xs("gd-adflow, before idhb",c,f),h=window.idhb.getAdserverTargetingForAdSlot(f),window.idhb.setAdserverTargeting(DT(DT({},h),{},{adaptor_order:n.adapterIndex})),Js("hl-order 2",window.idhb.getAdserverTargetingForAdSlot(f)),window.idhb.requestAds({slots:ru({},f,{bidFloor:(null==p?void 0:p.floor_price)||void 0}),callback:function(e,t){var n=this;r(this,m),"Missing configuration"===(null==e?void 0:e.error)&&o._broadcast("HL_CONFIG_ERROR",{status:"warning"}),!p||null!=t&&t.bidFloorApplied||fetch(p.skip_url).catch(function(e){r(this,n)}.bind(this));var a={src:"hl",tnl_keys:DT(DT({},window.idhb.getAdserverTargetingForAdSlot(f)),{},{tnl_ad_pos:c,tnl_asset_id:o.gameData.gameId}),url:e,dp:p,hl:t};o._extend_hl_url(a),i(a)}.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 i.apply(this,arguments)}}())}},{key:"nextAdPosition",value:function(e){if(e===nt.Rewarded)return this.adRewardedCount++,"rewarded";if(e===nt.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===nt.Rewarded?"rewarded":e===nt.Interstitial?!1===this.gameData.preroll||1===this.adPrerollCount||this.adMidrollCount>0?"midroll":"preroll":"midroll"}},{key:"getCurrentAdPosition",value:function(e){return e===nt.Interstitial?1===this.adPrerollCount&&0===this.adMidrollCount?"preroll":"midroll":e===nt.Rewarded?"rewarded":void 0}},{key:"_requestPromo",value:function(e,t){var r=new google.ima.AdsRequest;return r.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),r.linearAdSlotWidth=this.options.width,r.linearAdSlotHeight=this.options.height,r.nonLinearAdSlotWidth=this.options.width,r.nonLinearAdSlotHeight=this.options.height,r.forceNonLinearFullSlot=!0,this.options.vast_load_timeout&&(r.vastLoadTimeout=this.options.vast_load_timeout),r.setAdWillAutoPlay(t.autoplayAllowed),r.setAdWillPlayMuted(t.autoplayRequiresMute),this.adsLoader.requestAds(r),r}},{key:"_requestAd",value:function(e,t){var n=this;return t=t||{},new Promise(function(o){var i=this;if(r(this,n),"undefined"==typeof google)throw new Error("Unable to load ad, google IMA SDK not defined.");try{var a,s,u=null==e||null===(a=e.tnl_keys)||void 0===a?void 0:a.tnl_ad_pos;this.adSuccess=!1,this.contentPaused=!1;var c=new google.ima.AdsRequest,d=this._transformVast(e,t),l=DT(DT({},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);(function(){r(this,i),t.shouldFail&&(f?(f.adtag_url="dp_original_broken",f.fallback_url="dp_fallback_broken"):d.url="original_broken",Js("gd-adflow, _requestAd, dp.adtag_url",null==f?void 0:f.adtag_url),Js("gd-adflow, _requestAd, dp.fallback_url",null==f?void 0:f.fallback_url),Js("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){Js("gd-adflow, _isVMAP");var v=function(e){for(var t=[],r="",n=Date.now(),o={ppos:1,lip:!0,vad_type:"linear"},i=0;i<e.length;i++){var a=new C(e[i].adtag.url,!0);a.query=tT(tT({},a.query),{},{ad_rule:0,vpos:e[i].positon,pod:1,correlator:0===i?n:++n,output:"xml_vast3"}),i<e.length-1&&(a.query=tT(tT({},a.query),o)),t.push(a.toString())}for(var s=Date.now(),u=1;u<=t.length;u++){var c,d,l,f;r+='<vmap:AdBreak timeOffset="start" breakType="linear" breakId="break-'.concat(u,'">\n <vmap:AdSource id="').concat(s++,'" allowMultipleAds="false" followRedirects="true">\n ').concat(rT({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(r,"\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){Js("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){Js("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 Js("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),c.setAdWillPlayMuted(t.autoplayRequiresMute),this.adsLoader.requestAds(c,l);try{this._broadcast("AD_SDK_REQUEST",{message:l})}catch(e){}o(c)}catch(e){throw new Error(e)}}.bind(this))}},{key:"_getExternalVast",value:function(e){var t;try{var r=this.getCurrentAdPosition(e);t=wT(this.gameData)&&xT(r,this.gameData),Js("external-vast success",t)}catch(e){console.log("external-vast err",e)}return t}},{key:"cancel",value:function(e){var t;if(!1!==this.requestRunning){this.requestRunning=!1,this._resetAdsLoader(),this._hide("cancel");var r=(null==e||null===(t=e.message)||void 0===t?void 0:t.indexOf("NO_VAST_URL"))>=0,n="AD_SDK_CANCELED";this._broadcast(n,{name:n,message:"Advertisement has been canceled.",status:"warning",noVast:r,analytics:{category:this.eventCategory,action:n,label:this.gameData.gameId}})}}},{key:"_checkAutoPlay",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,n){var o=this;r(this,t);var i=navigator.userAgent.toLowerCase();i.indexOf("safari")>-1&&i.indexOf("chrome"),QO.video({inline:!0,muted:!1}).then(function(t){r(this,o);var n=t.result;t.error,e(!0===n?{autoplayAllowed:!0,autoplayRequiresMute:!1}:{autoplayAllowed:!0,autoplayRequiresMute:!0})}.bind(this))}.bind(this)));case 1:case"end":return e.stop()}}),e,this)}))),function(){return R.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 n,o,i,a=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=t.adType,i=t.params,this.adType_=o,this.isAudioAd=!1,this.adContext=DT(DT({},i),{},{adType:o}),null!==(n=this.gameData.adspn)&&void 0!==n&&n.enabled&&(this.adFlowProcessSpinner||(this.adFlowProcessSpinner=new ET,this.adFlowProcessSpinner.add()),this.adFlowProcessSpinner.show(!0)),"promo"!==(null==i?void 0:i.adapter)){e.next=7;break}return e.abrupt("return",this._startPromo(i,o));case 7:if("adsense"!==(null==i?void 0:i.adapter)){e.next=31;break}if(o!==nt.Interstitial){e.next=24;break}if("preroll"!==(null==i?void 0:i.position)){e.next=13;break}return e.abrupt("return",this._startAdsensePlacementPreroll(t));case 13:if("start"!==(null==i?void 0:i.position)){e.next=17;break}return e.abrupt("return",this._startAdsensePlacementStart(t));case 17:if("next"!==(null==i?void 0:i.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(o!==nt.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 r(this,a),e===(null==i?void 0:i.adapter)}.bind(this))){e.next=42;break}if(o!==nt.Interstitial){e.next=37;break}return e.abrupt("return",this._startInterstitialAd(i));case 37:if(o!==nt.Rewarded){e.next=41;break}return e.abrupt("return",this._startRewardedAd(i));case 41:throw new Error("Unsupported ad type");case 42:["opus"].some(function(e){return r(this,a),e===(null==i?void 0:i.adapter)}.bind(this))&&this._startOpusAd(i);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 n,o,i,a,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(t.adTypeFound="rewarded"===t.adTypeFound?"reward":t.adTypeFound,o=t.adTypeFound,this._send_atom_event("opus-ad.start"),!this.requestRunning){e.next=9;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 9:if(i=null===(n=window.gdlocus)||void 0===n?void 0:n.adBreak){e.next=14;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 14:this._send_atom_event("opus-ad.ready"),a=void function(){return r(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:a},p=function(e){r(this,b),this.opusEventReceived=!0,this._broadcast("CONTENT_PAUSE_REQUESTED",{message:"",status:"success"}),this._broadcast("IMPRESSION",{message:"",status:"success"})}.bind(this),h=function(e){r(this,b),this.opusEventReceived=!0,this._broadcast("CONTENT_RESUME_REQUESTED",{message:"",status:"success"})}.bind(this),m=function(){r(this,b),this.opusEventReceived=!0}.bind(this),v=function(){r(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){r(this,b),this.opusEventReceived=!0,this.resetForNext();var t="".concat(o);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:o,meta:f,beforeAd:p,afterAd:h,adBreakDone:g},"reward"===o&&(A=DT(DT({},A),{},{adDismissed:m,adViewed:v})),this.opusEventReceived=!1,this._startTimeoutForOpus(),i&&i(A);case 31: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!==nt.Interstitial){e.next=4;break}return e.abrupt("return","gdsdk://preloaded");case 4:if(t!==nt.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(){r(this,e),this.adsManager.resume()}.bind(this),n=function(){r(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 GO(this.adContainer,t),this.adResume.add(),this.rewardedLabel=new HO(this.adContainer,t),this.rewardedLabel.add(),this.skipAdButton=new zO(this.adContainer,t,n),this.skipAdButton.add(),this.audioAdLabel=new ZO(window.document.body),this.audioAdLabel.add(),this.audioAdLabel.hide()}catch(e){console.log("error on adding adResume",e)}}},{key:"loadDisplayAd",value:(x=t(d.mark((function e(n){var o=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,s,u,c,l,f,p,h,m,v=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{Js("display_test load",n),(s=n?n.containerId:null)||i("Container id is not specified"),u=document.getElementById(s),document.getElementById(s)||i("No container is found with this id - ".concat(s)),void 0===window.idhb.requestAds&&i("Prebid.js wrapper script hit an error or didn't exist!"),c=n.slotId?n.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)),o.atom_display=null,null!==(a=o.atom_display)&&void 0!==a&&a.params&&window.idhb.setAdserverTargeting(null===(h=o.atom_display)||void 0===h?void 0:h.params),(m={})[c]={maxSize:[u.offsetWidth,u.offsetHeight]},Js("display_test slots",m),window.idhb.requestAds({slots:m,callback:function(e){r(this,v),Js("display_test callback",JSON.stringify(e,null,2))}.bind(this)}),t()}catch(e){console.log("display_test error",e),i(e.message||e)}case 1:case"end":return e.stop()}}),e,this)})));return function(t,r){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 n,o,i,a,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(r(this,u),tu.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 o=e.sent,e.next=13,this._loadInterstitialAd(DT(DT({},o),t));case 13:if(i=e.sent,a=i.success,i.args,a){e.next=18;break}return e.abrupt("return");case 18:null!==(n=this.adContext)&&void 0!==n&&n.muteRequested?this.adsManager.setVolume(0):(o.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),Js("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,r){var n,o,i,a,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 o=e.sent,e.next=11,this._loadPromo(DT(DT({},o),t),r);case 11:if(i=e.sent,a=i.success,i.args,a){e.next=16;break}return e.abrupt("return");case 16:null!==(n=this.adContext)&&void 0!==n&&n.muteRequested?this.adsManager.setVolume(0):(o.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,r){var n,o;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._resetAdsLoader(),e.prev=1,n=this.nextAdPosition(r),o=this._create_promo_context(n),this._requestPromo(o,DT({adType:nt.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 r;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(nt.Interstitial,t);case 6:e.t0=e.sent;case 7:if(r=e.t0,delete this.preloadedInterstitialAdVast,r.url){e.next=12;break}throw new Error("NO_VAST_URL");case 12:return e.next=14,this._requestAd(r,DT({adType:nt.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,n){var o=this;r(this,e);var i="videoad.preloadad";this.eventBus.unsubscribeScope(i);var a=function(e){var n=this;r(this,o),setTimeout(function(){r(this,n),this.eventBus.unsubscribeScope(i),t({success:!0,args:e})}.bind(this),1)}.bind(this),s=function(e){var n=this;r(this,o),setTimeout(function(){r(this,n),this.eventBus.unsubscribeScope(i),t({success:!1,args:e})}.bind(this),1)}.bind(this);this.eventBus.subscribe("AD_SDK_MANAGER_READY",a,i),this.eventBus.subscribe("AD_SDK_CANCELED",s,i),this.eventBus.subscribe("AD_ERROR",s,i)}.bind(this))}},{key:"_startRewardedAd",value:(A=t(d.mark((function e(t){var n,o,i,a,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(r(this,u),tu.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 o=e.sent,e.next=13,this._loadRewardedAd(DT(DT({},o),t));case 13:if(i=e.sent,a=i.success,i.args,a){e.next=18;break}return e.abrupt("return");case 18:null!==(n=this.adContext)&&void 0!==n&&n.muteRequested?this.adsManager.setVolume(0):(o.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 r;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(nt.Rewarded,t);case 6:e.t0=e.sent;case 7:return r=e.t0,delete this.preloadedRewardedAdVast,e.next=11,this._requestAd(r,DT({adType:nt.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(nt.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(nt.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 n=null==e?void 0:e.mode;e.t4r=this.gameData.__t4r;var o=this._adrequest_user_context.t4RResult?this._adrequest_user_context.t4RResult:this._isT4R(e);this._adrequest_user_context.t4RResult=o;var i=o.success,a=o.reason,s=this._getT4ROptions(e);if("loaded"===n){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}),i||this._broadcast("AD_T4R_NONE",{reason:a}),this.activeAdContainer.style.opacity=i?.001:1,i&&null!=e&&e.contentType.startsWith("video/")&&(this.t4rButton=new KO(this.adContainer),this.t4rButton.add(),this._broadcast("AD_T4R_VIDEO")),i&&this.adsManager.setVolume(0),i&&this._broadcast("AD_T4R"),i&&setTimeout(function(){var e;r(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"===n||"first_quartile"===n){var l;if(i&&"click"===n){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")}i||"click"!==n||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 n=document.createElement("video");n.setAttribute("playsinline",!0),n.setAttribute("webkit-playsinline",!0),n.id="".concat(this.prefix,"advertisement_video"),n.style.position="absolute",n.style.backgroundColor="#000000",n.style.top="0",n.style.left="0",n.style.width=this.options.width+"px",n.style.height=this.options.height+"px",this.video_ad_player=n,this.adContainer.appendChild(n);var o=document.createElement("div");o.id="".concat(this.prefix,"advertisement_slot"),o.style.position="absolute",o.style.top="0",o.style.left="0",o.style.width=this.options.width+"px",o.style.height=this.options.height+"px",this.adContainerInner=o,this.activeAdContainer=this.adContainer,window.activeAdContainer=this.activeAdContainer,this.thirdPartyContainer?(this.adContainer.appendChild(o),this.thirdPartyContainer.appendChild(this.adContainer),this.activeAdContainer=this.thirdPartyContainer):(this.adContainer.appendChild(o),t.appendChild(this.adContainer)),this.addAdComponents(),this.activeAdContainer.style.visibility="hidden";var i=function(){r(this,e);var t=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,i=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:i,o.style.width=this.options.width+"px",o.style.height=this.options.height+"px",n.style.width=this.options.width+"px",n.style.height=this.options.height+"px"}.bind(this);window.addEventListener("resize",i),window.document.addEventListener("DOMContentLoaded",i)}},{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,n=new google.ima.AdsRenderingSettings;n.autoAlign=!1,n.enablePreloading=!1,n.restoreCustomPlaybackStateOnAdBreakComplete=!0,n.useStyledNonLinearAds=!0,n.uiElements=[google.ima.UiElements.AD_ATTRIBUTION,google.ima.UiElements.COUNTDOWN],this.adsManager=e.getAdsManager(this.video_ad_player,n),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(){r(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 o=new Date,i=o.getHours(),a=o.getDate(),s=o.getMonth(),u=o.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(i," d").concat(a," m").concat(s," y").concat(u)}}),this._adrequest_user_context=e.getUserRequestContext()}},{key:"_onAdEvent",value:function(e){var t,n,o,i,a,s,u=this,c=new Date,d=c.getHours(),l=c.getDate(),f=c.getMonth(),p=c.getFullYear(),h=(a=google.ima.AdEvent.Type,s=e.type,Object.keys(a).find((function(e){return a[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===(n=e.ad)||void 0===n||null===(o=n.data)||void 0===o?void 0:o.title,b=null==e||null===(i=e.getAd())||void 0===i?void 0:i.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}),hT();break;case google.ima.AdEvent.Type.COMPLETE:Js("gd-adflow ON COMPLETE!",e.getAd()),m=this._is_completed(e.getAd()),_="Fired when the ad completes playing.",this.adType_!==nt.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:_="Fired when the impression URL has been pinged.",e.getAd(),console.log("gdsdk: eventname IMPRESSION",this.isAudioAd),this._hideAdSpinner(),this.isAudioAd&&this.audioAdLabel.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 k=e.getAd().getContentType();_=k,this._show({mode:"loaded",contentType:k});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:m=this._is_completed(e.getAd()),_="Fired when the ad is skipped by the user.",pT(),this.t4rButton&&this.t4rButton.hide();break;case google.ima.AdEvent.Type.STARTED:var E;if(this.skipAdButton&&this.skipAdButton.hide(),this.rewardGuarantied=!1,this.adType_===nt.Rewarded)!b&&null!==(E=this.gameData.rwskp)&&void 0!==E&&E.enabled&&(this._skipAdButtonTimeout=setTimeout(function(){r(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 S=!this.contentPaused&&e.type===google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,D=!this.contentPaused&&e.type===google.ima.AdEvent.Type.ALL_ADS_COMPLETED;S||D||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 R=e.getAd(),I="Rainbow"===(null==R?void 0:R.getAdSystem())&&(null==R?void 0:R.getWrapperAdIds().some(function(e){return r(this,u),"promo"===e}.bind(this)));Js("gd-adflow isPromoSuccess",I,null==R?void 0:R.getAdSystem(),null==R?void 0:R.getWrapperAdIds()),this._broadcast("AD_SUCCESS",{message:"Ad succeeded.",status:"success",isPromoSuccess:I}),this.resetForNext(e)}}},{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 n,o,i,a,s;if(!((null===(n=this.gameData)||void 0===n||null===(o=n.aws_tst)||void 0===o?void 0:o.enabled)&&(null===(i=this.gameData)||void 0===i||null===(a=i.aws_tst)||void 0===a||null===(s=a.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(){r(this,t)}.bind(this))}catch(e){}}},{key:"_findAtomTagUrl",value:function(e,t){var n=this,o={type:"none"};try{var i=this.current_dp,a=i.id,s=i.error_url,u=i.impression_url,c=i.fallback_imp_url,d=i.promo_imp_green_url;if(!e&&!t)return o={type:"imp_err",url:s};var l=e.getWrapperAdIds().some(function(e){return r(this,n),e==="".concat(a)}.bind(this)),f=e.getWrapperAdIds().some(function(e){return r(this,n),"fallback"===e}.bind(this)),p=e.getWrapperAdIds().some(function(e){return r(this,n),"promo"===e}.bind(this));l&&t?o={type:"normal_imp",url:u}:l&&!t?o={type:"normal_err",url:s}:p&&t?o={type:"promo_imp",url:d}:f&&t&&(o={type:"fallbacj_imp",url:c})}catch(e){}return o}},{key:"_onAdError",value:function(e){this.requestRunning=!1,this._resetAdsLoader(),this._clearSafetyTimer("ERROR"),this._hide("_onAdError"),this._sendIMAEventsToHB(e);try{var t="AD_ERROR",r=e.getError(),n=r.getErrorCode().toString()||r.getVastErrorCode().toString(),o=this._getInnerErrorCode(r);RT.emit("AD_ERROR",n),this._broadcast(t,{message:n,details:o,status:"warning",analytics:{category:t,action:o,label:n}}),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_===nt.Rewarded&&this.rewardedLabel&&this.rewardedLabel.hide()}catch(e){console.log("Error on hide adResume",e)}}},{key:"_hideSkipButton",value:function(){try{this.adType_===nt.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 n=this;this.safetyTimer&&clearTimeout(this.safetyTimer),this.safetyTimer=window.setTimeout(function(){r(this,n),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(q(e.getInnerError)){var t=e.getInnerError();if(t)return q(t.getErrorCode)&&q(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 n=this;if(e){var o=this.macros.transform(e,{get:function(e){if(r(this,n),t&&t.tnl_keys)return t.tnl_keys[e.toLowerCase()]}.bind(this)});for(var i in o.query||{}){var a=o.query[i];U(a)&&(o.query[i]=l.stringify(a))}var s=new C(o.url,!0);return XO(s.query,o.query||{}),DT({url:s.toString()},t)}}},{key:"_transformVast",value:function(e,t){var r={url:e.url};try{var n=new C(e.url,!0),o=this._transformQuery(e,t,n);o&&(r.url=n.toString());var i=o?n:new C(e.url,!0);if(i.query.cust_params){var a=l.parse(i.query.cust_params);r.bidder=a.hb_bidder,r.cust_params=a}r.url_parsed=i}catch(e){r.hasError=!0,r.message=e.message,r.bidder="error",console.log(e.message)}return r}},{key:"_transformQuery",value:function(e,t,n){var o=this;if(e&&t&&e.tnl_keys){var i=this.options.vast_query;if(t.retry_on_success&&this.options.retry_on_success&&U(this.options.retry_on_success.vast_query)?i=this.options.retry_on_success.vast_query:t.retry_on_failure&&this.options.retry_on_failure&&U(this.options.retry_on_failure.vast_query)&&(i=this.options.retry_on_failure.vast_query),U(i=B(i))){var a=n.query;if(i.$$remove){for(var s in a){new RegExp(i.$$remove,"i").test(s)&&delete a[s]}delete i.$$remove}var u=l.parse(a.cust_params);if(i.cust_params&&i.cust_params.$$remove){for(var c in u){new RegExp(i.cust_params.$$remove,"i").test(c)&&delete u[c]}delete i.cust_params.$$remove}var d=this.macros.transform(i,{get:function(t){return r(this,o),e.tnl_keys[t.toLowerCase()]}.bind(this)});return a.cust_params=u,XO(a,d),a.cust_params=l.stringify(a.cust_params),!0}}}},{key:"_isExcludedBidderForT4R",value:function(){var e=this;try{var t,n,o,i,a=(null===(t=this._adrequest_user_context)||void 0===t||null===(n=t.adTag)||void 0===n?void 0:n.bidder)||"adx";this.msgrt.send("bidder",{message:a}),Js("ex_bidder ad request context",this._adrequest_user_context,'bidder:"'.concat(a,'"'));var s=(null===(o=this.gameData.t4rc)||void 0===o?void 0:o.bidder_exc)||[],u=(null===(i=this.gameData.t4rc)||void 0===i?void 0:i.bidder_inc)||[],c=!1;return u.length>0?c=!u.some(function(t){return r(this,e),t===a}.bind(this)):s.length>0&&(c=s.some(function(t){return r(this,e),t===a}.bind(this))),Js("ex_bidder_result",a,c),c}catch(e){console.log("ex_bidder ERR",e)}}},{key:"_isExcludedBidderForT4RWithBidderExcRate",value:function(){var e,t,r,n,o=this._isExcludedBidderForT4R(),i=null===(e=this.gameData)||void 0===e||null===(t=e.t4rc)||void 0===t?void 0:t.bidder_exc_rate,a=null!=i&&i.enabled?(null==i?void 0:i.rate)||.8:0,s=(null===(r=this._adrequest_user_context)||void 0===r||null===(n=r.adTag)||void 0===n?void 0:n.bidder)||"adx",u=Math.random();return o||"adx"!==s&&u<a}},{key:"_isT4R",value:function(e){var t,r,n,o,i,a,s;if(!this.gameData.publishedAt)return{success:!1,reason:"pdate-2"};var u=new Date(this.gameData.publishedAt);if(((new Date).getTime()-u.getTime())/864e5<=10)return{success:!1,reason:"pdate-1"};var c=this.gameData.meta,d=e.t4r.meta;if((null==c||null===(t=c.ast)||void 0===t?void 0:t.c)>=(null==d||null===(r=d.ast)||void 0===r?void 0:r.c)&&(null==c||null===(n=c.sit)||void 0===n?void 0:n.c)>=(null==d||null===(o=d.sit)||void 0===o?void 0:o.c))return{success:!1,reason:"meta"};if(this._isExcludedBidderForT4RWithBidderExcRate())return this.msgrt.send("bidder.ex",{message:"true"}),{success:!1,reason:"bidder"};this.msgrt.send("bidder.ex",{message:"false"});var l=null===(i=this._adrequest_user_context)||void 0===i?void 0:i.tnl_ad_pos;if(this.clickCount[l]>=(null===(a=e.t4r[l])||void 0===a?void 0:a.count))return{success:!1,reason:"click-count"};if(null!=e&&null!==(s=e.contentType)&&void 0!==s&&s.startsWith("image/")||"text"===(null==e?void 0:e.contentType)){var f,p=l&&(null===(f=e.t4r[l])||void 0===f?void 0:f.enabled);return{success:p,reason:p?null:"rule-check"}}if(null!=e&&e.contentType.startsWith("video/")){var h,m=(null===(h=e.t4r[l])||void 0===h?void 0:h.viper)||0;if(m>0){var v,g=Math.random()<m,A=l&&g&&(null===(v=e.t4r[l])||void 0===v?void 0:v.enabled);return{success:A,reason:A?null:"viper-check"}}return{success:!1,reason:"rule-check-viper"}}return{success:!1,reason:"media-format"}}},{key:"_isVMAP",value:function(e){var t,r,n,o,i,a,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===(r=t.pAds)||void 0===r?void 0:r.vmap)||!0===(null===(n=this.gameData)||void 0===n||null===(o=n.pAds)||void 0===o||null===(i=o.vmap)||void 0===i?void 0:i.enabled))||"midroll"===e&&(!0===(null===(a=this.gameData)||void 0===a||null===(s=a.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,r=null===(t=this._adrequest_user_context)||void 0===t?void 0:t.tnl_ad_pos;switch(r){case"preroll":case"midroll":case"rewarded":return e.t4r[r]}}},{key:"_is_completed",value:function(e){var t=e.getContentType(),r=e.getAdPodInfo();return!(!t.startsWith("image/")&&"text"!==t&&1!==r.getTotalAds())}},{key:"_get_vmap_context",value:function(e){for(var t=e.adtag,r=e.position,n=e.config,o=e.dp,i=n.count||2,a=[],s=1;s<=i;s++){var u={};u.adtag=this._createCustomAdVastUrl(n["vast_"+s])||t,u.position=r,u.dp=n["vast_"+s]?void 0:o,a.push(u)}return a}},{key:"_get_vmap_config",value:function(e){var t,r,n,o,i,a,s,u;switch(e){case"preroll":return null===(t=this.gameData)||void 0===t||null===(r=t.pAds)||void 0===r?void 0:r.vmap;case"midroll":return null===(n=this.gameData)||void 0===n||null===(o=n.mAds)||void 0===o?void 0:o.vmap;case"rewarded":return null===(i=this.gameData)||void 0===i||null===(a=i.rAds)||void 0===a?void 0:a.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,r,n;return!!e&&!0===(null===(t=this.gameData)||void 0===t||null===(r=t.dp)||void 0===r||null===(n=r[e])||void 0===n?void 0:n.enabled)}},{key:"_create_dp_display_context",value:function(){var e=this;return new Promise(function(t){var n=this;r(this,e);try{var o={id:this.topDomain||this.parentDomain,au:"display",ty:"display",aid:this.gameData.gameId,pgu:this.parentURL},i=new $O(this.gameData).checkCustomParams();i&&(o.cp=i);var a=encodeURIComponent(rt.encode(JSON.stringify(o)));fetch("https://tag.atom.gamedistribution.com/v1/atm?ar=".concat(a)).then(function(e){return r(this,n),e.json()}.bind(this)).then(function(e){if(r(this,n),!e||!e.p)return this.msgrt.send("dp.na",{message:"atom"}),t();var o=e.p/100;this.msgrt.send("dp.fp",{message:o}),t({params:{fp:o},error_url:"https://tag.atom.gamedistribution.com/v1/err?ar=".concat(a),impression_url:"https://tag.atom.gamedistribution.com/v1/imp?ar=".concat(a)})}.bind(this)).catch(function(e){r(this,n),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,n=this,o={id:this.topDomain||this.parentDomain,au:e||"unknown",ty:"video",aid:this.gameData.gameId,pgu:this.parentURL},i=Object.keys(o).map(function(e){return r(this,n),"".concat(e,"=").concat(encodeURIComponent(o[e]))}.bind(this)).join("&");encodeURIComponent(rt.encode(JSON.stringify(o)));var a=null===(t=this.gameData.promo)||void 0===t?void 0:t.rainbow,s=null==a?void 0:a.enabled,u="https://tag.atom.gamedistribution.com/v1/rainbow/?".concat(i),c=s?u:void 0;return function(){r(this,n),tu.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,n){var o=this;return new Promise(function(){var i=t(d.mark((function t(i){var a,s,u,c,l,f=this;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,o._isDP(e)){t.next=5;break}return o.msgrt.send("dp.na",{message:"rule"}),t.abrupt("return",i());case 5:s={id:o.topDomain||o.parentDomain,au:e||"unknown",ty:"video",aid:o.gameData.gameId,pgu:o.parentURL},(u=new $O(o.gameData).checkCustomParams())&&(s.cp=u),c=encodeURIComponent(rt.encode(JSON.stringify(s))),Js("gd-adflow isLastAdapter",null==n?void 0:n.adapterIndex,null==n?void 0:n.isLastAdapter),l=null===(a=o.gameData.promo)||void 0===a?void 0:a.rainbow,Js("gd-adflow promo_enabled",!1,null==l?void 0:l.enabled,null==n?void 0:n.isLastAdapter),fetch("https://tag.atom.gamedistribution.com/v1/atm?ar=".concat(c)).then(function(e){return r(this,f),e.json()}.bind(this)).then(function(e){if(r(this,f),!e||!e.p)return o.msgrt.send("dp.na",{message:"atom"}),i();var t=e.p/100;o.msgrt.send("dp.fp",{message:t}),i({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){r(this,f),o.msgrt.send("dp.err",{message:(null==e?void 0:e.message)||e}),i()}.bind(this)),t.next=20;break;case 16:t.prev=16,t.t0=t.catch(0),o.msgrt.send("dp.err",{message:(null===t.t0||void 0===t.t0?void 0:t.t0.message)||t.t0}),i();case 20:case"end":return t.stop()}}),t,this,[[0,16]])})));return function(e){return i.apply(this,arguments)}}())}},{key:"_extend_dp_with_adsense",value:function(e,t){if(e&&t)try{var r,n=new C(t.vastUrl,!0);if(null===(r=n.query)||void 0===r||!r.cust_params)return;var o=l.parse(n.query.cust_params);if(!o.tnl_asset_id)return;o.adsense=1,n.query.cust_params=l.stringify(o,!1),e.fallback_url=n.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 r=e.tnl_keys,n=!0!==(null==t?void 0:t.bidFloorApplied)?0:1;0===n&&null!=r&&r.hasOwnProperty("fp")?n=2:1!==n||null!=r&&r.hasOwnProperty("fp")||(n=3),r.bfa=n;try{var o,i=new C(e.url,!0);if(null===(o=i.query)||void 0===o||!o.cust_params)return;var a=l.parse(i.query.cust_params);a.bfa=n,a.adsense=0,i.query.cust_params=l.stringify(a,!1),e.url=i.toString(),t.vastUrl=e.url}catch(e){}finally{this.msgrt.send("bfa",{message:n})}}},{key:"_init_hl_script",value:(h=t(d.mark((function e(t){var n,o,i,a,s,u,c,l,f=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this._getPrebidScripts(),o=n[0],i=function(){return r(this,f),!1}.bind(this),window.idhb=window.idhb||{iabCmpExists:i},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||[],(a=new URL(o)).searchParams.append("referer",window.idhb.options.configUrl),o=a.href,e.next=13,ft(o,"gdsdk_prebid",{alternates:n,error_prefix:"Blocked:",exists:function(){return r(this,f),window.idhb.requestAds}.bind(this)});case 13:return e.next=15,this.checkOpphbPath();case 15:s=st("ch",window.location.href),u=st("ch_date",window.location.href),c={tnl_content_category:this.category.toLowerCase()},s&&(c.channel=s),u&&(c.ch_date=u),(l=st("hl_label",this.parentURL)||st("hl_label",window.location.href))&&(c.label=l),window.idhb.setAdserverTargeting(c),window.idhb.allowPersonalizedAds(!!parseInt(this.userAllowedPersonalizedAds)),window.idhb.addEventListener("slotRenderEnded",function(e){var t=this;r(this,f);try{var n,o,i=e.slotId.split("@");i=1===i.length?i[0]:i[1],e.isEmpty?(null!==(n=this.atom_display)&&void 0!==n&&n.error_url&&(fetch(this.atom_display.error_url).catch(function(e){r(this,t)}.bind(this)),delete this.atom_display),Js("display_test DISPLAYAD_ERR",e),this._broadcast("DISPLAYAD_ERROR",{message:i,status:"warning"})):(null!==(o=this.atom_display)&&void 0!==o&&o.impression_url&&(fetch(this.atom_display.impression_url).catch(function(e){r(this,t)}.bind(this)),delete this.atom_display),Js("display_test DISPLAYAD_IMPRESSION"),this._broadcast("DISPLAYAD_IMPRESSION",{message:i,status:"success"}))}catch(e){}}.bind(this));case 25: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,r,n,o,i,a;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n=this.topDomain||this.parentDomain||"",o=(null===(t=this.gameData)||void 0===t?void 0:t.gameId)||"",i=(null===(r=this.options)||void 0===r?void 0:r.width)||640,e.next=6,fetch("https://pub.headerlift.com/opphb?page_url=".concat(n,"&page_type=gd&page_width=").concat(i,"&aid=").concat(o));case 6:a=e.sent,Xs("opphb load success",a),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 n,o,i=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=["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"],o=this.options.debug?n[0]:n[1],e.next=4,ft(o,"gdsdk_ima",{alternates:n,error_prefix:"Blocked:",exists:function(){return r(this,i),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 n,o,i,a,s=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(a={}).crossorigin="anonymous",a["data-ad-client"]=(null==t||null===(n=t.adsense_client)||void 0===n?void 0:n.length)>0?t.adsense_client:"ca-pub-2316275586951220",a["data-ad-frequency-hint"]="30s",a.allow="autoplay",(null==t||null===(o=t.adsense_channel)||void 0===o?void 0:o.length)>0&&(a["data-ad-channel"]=t.adsense_channel),(null==t||null===(i=t.adsense_host)||void 0===i?void 0:i.length)>0&&(a["data-ad-host"]=t.adsense_host),!0===(null==t?void 0:t.adsense_adbreak_test)&&(a["data-adbreak-test"]="on"),e.next=15,ft("https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js","afg",{error_prefix:"Blocked:",exists:function(){return r(this,s),!!window.adsbygoogle}.bind(this),attrs:a});case 15:window.adsbygoogle=window.adsbygoogle||[],window.adsbygoogle.push({sound:"on",preloadAdBreaks:"on"});case 17: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,r=e.scrolls,n=t||"120vh",o=r||!0,i=document.getElementsByClassName("adsbygoogle"),a=0;a<i.length;a++){var s,u=i[a],c=u&&(null===(s=u.children[0])||void 0===s?void 0:s.children[0]);c&&"IFRAME"===c.tagName&&c.style.height!==n&&(Js("out-of-bounds fix apply"),c.style.height=n,o&&(c.parentElement.style.overflow="auto"))}}catch(e){Js("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 n,o,i,a,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(r(this,f),tu.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"),n=!1,o=function(){r(this,f),n=!0,this.fixOutOfBounds(),this._broadcast("CONTENT_PAUSE_REQUESTED",{message:"",status:"success"}),this._broadcast("IMPRESSION",{message:"",status:"success"})}.bind(this),i=function(){r(this,f),n=!0,this._broadcast("CONTENT_RESUME_REQUESTED",{message:"",status:"success"})}.bind(this),a=function(){r(this,f),n=!0,this._send_atom_event("sg.ad.rw.dismissed")}.bind(this),s=function(){r(this,f),n=!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){r(this,f),n=!0,e()}.bind(this),c=function(e){r(this,f),n=!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(){r(this,f),n||(Xs("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:o,afterAd:i,adDismissed:a,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 n,o,i=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(r(this,i),tu.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,n=function(){r(this,i),this.adPlacementEventReceived=!0}.bind(this),o=function(e){r(this,i),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"}),a={type:"preroll",beforeAd:n,adBreakDone:o},window.adsbygoogle.push(a),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 a}),e,this,[[1,18]])}))),function(e){return s.apply(this,arguments)})},{key:"_startAdsensePlacementStart",value:(a=t(d.mark((function e(t){var n,o,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(r(this,a),tu.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"),n=function(){r(this,a),this.adPlacementEventReceived=!0,this.fixOutOfBounds(),this._broadcast("CONTENT_PAUSE_REQUESTED",{message:"",status:"success"}),this._broadcast("IMPRESSION",{message:"",status:"success"})}.bind(this),o=function(){r(this,a),this.adPlacementEventReceived=!0,this._broadcast("CONTENT_RESUME_REQUESTED",{message:"",status:"success"})}.bind(this),this.adPlacementEventReceived=!1,i=function(e){r(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("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:n,afterAd:o,adBreakDone:i},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:"_startTimeoutForAdBreak",value:function(e){var t,n,o,i,a,s,u=this;if(null===(t=this.gameData)||void 0===t||null===(n=t.ad_blcks)||void 0===n||null===(o=n.adsenseTimeout)||void 0===o?void 0:o.enabled){null==e||e.adType,null===(i=this.gameData)||void 0===i||null===(a=i.ad_blcks)||void 0===a||null===(s=a.adsenseTimeout)||void 0===s||s.timeout;var c=setTimeout(function(){r(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(){r(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:(i=t(d.mark((function e(t){var n,o,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(r(this,a),tu.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"),n=function(){r(this,a),this.adPlacementEventReceived=!0,this.fixOutOfBounds(),this._broadcast("CONTENT_PAUSE_REQUESTED",{message:"",status:"success"}),this._broadcast("IMPRESSION",{message:"",status:"success"})}.bind(this),o=function(){r(this,a),this.adPlacementEventReceived=!0,this._broadcast("CONTENT_RESUME_REQUESTED",{message:"",status:"success"})}.bind(this),this.adPlacementEventReceived=!1,i=function(e){r(this,a),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:n,afterAd:o,adBreakDone:i},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 i.apply(this,arguments)})},{key:"_send",value:function(e,t){try{var r=this.msgrt,n=r._layout,o=r._ua,i={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:o.browser.name,brvs:o.browser.version,osnm:o.os.name,osvs:o.os.version,dvmd:o.device.model,w:n.w,h:n.h}};return fetch("https://tag.atom.gamedistribution.com/v1/dmp?ar=".concat(encodeURIComponent(rt.encode(JSON.stringify(i)))))}catch(e){}}},{key:"_send_atom_event",value:function(e,t){var r={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},n=(new cD).get();return r=DT(DT({},r),n),r=t?DT(DT({},r),t):r,this._send(e,r)}},{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 r=e.adType;if(r===nt.Rewarded)t="reward";else if(r===nt.Interstitial){var n,o;if(this._isAfgPositionStart(e))t=null===(n=this.gameData.pAds)||void 0===n||!n.enabled||null!==(o=this.gameData.loader)&&void 0!==o&&o.enabled?"start":"next";else this._isAfgPositionNext(e)&&(t="next")}t||(t="preroll"),e.params.position=t}},{key:"_broadcast",value:function(e,t){var n=this,o=!1;["AD_ERROR"].some(function(t){return r(this,n),t===e}.bind(this))&&(o=!this.adContext.isLastAdapter||this.adContext.extraPromoRunOnFail);var i=this.getCurrentAdPosition(this.adContext.adType);this.eventBus.broadcast(e,DT(DT({},t),{},{skipForward:o,adPosition:i}))}},{key:"mute",value:(o=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 o.apply(this,arguments)})},{key:"terminate",value:(n=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 n.apply(this,arguments)})}]),e}(),OT=L((function e(r){var n=this;O(this,e),ru(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(n.moduleName);case 2:n.module=e.sent;case 3:case"end":return e.stop()}}),e)})))),ru(this,"promo",t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.module){e.next=3;break}return e.next=3,n.load();case 3:return e.abrupt("return",n.module[n.moduleDefault]);case 4:case"end":return e.stop()}}),e)}))));var o=r.package||"gd-sdk-stone-dynamic",i=r.package_version||"1.1.1",a=r.template||"puzzle",s=r.dependencies||[];this.moduleName="GDPromoByOrbit",this.moduleDefault=a.charAt(0).toUpperCase()+a.slice(1),this.moduleConfig={source:"https://pm.azerioncircle.com/@bygd/".concat(o,"/").concat(i,"/dist/").concat(a.toLowerCase(),"/iife/index.js"),dependencies:s},jb(this.moduleName,this.moduleConfig)})),TT=L((function e(r){var n=this;O(this,e),ru(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(n.moduleName);case 2:n.module=e.sent;case 3:case"end":return e.stop()}}),e)})))),ru(this,"splash",t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.module){e.next=3;break}return e.next=3,n.load();case 3:return e.abrupt("return",n.module[n.moduleDefault]);case 4:case"end":return e.stop()}}),e)}))));var o=r.package||"gd-sdk-air-dynamic",i=r.package_version||"1.2.0",a=r.template||"pluto",s=r.dependencies||[];this.moduleName="GDSplashDynamic",this.moduleDefault=a.charAt(0).toUpperCase()+a.slice(1),this.moduleConfig={source:"https://pm.azerioncircle.com/@bygd/".concat(o,"/").concat(i,"/dist/").concat(a.toLowerCase(),"/iife/index.js"),dependencies:s},jb(this.moduleName,this.moduleConfig)})),PT=function(e,t){console.log(e,t)},LT={},MT={},BT=null;function jT(){for(var e,t=window,r=null,n=null;!e;){try{if("function"==typeof t.__tcfapi||"function"==typeof t.__cmp){"function"==typeof t.__tcfapi?(n=2,r=t.__tcfapi):(n=1,r=t.__cmp),e=t;break}}catch(e){}try{if(t.frames.__tcfapiLocator){n=2,e=t;break}}catch(e){}try{if(t.frames.__cmpLocator){n=1,e=t;break}}catch(e){}if(t===window.top)break;t=t.parent}return LT.version=n,LT.frame=e,LT.function=r,LT.version}function UT(e){var t=this;return BT||(BT=new Promise(function(n){function o(t,r){if(PT("Received a response from CMP",t),r){var o,i;if(!1!==t.gdprApplies)return"tcloaded"===t.eventStatus||"useractioncomplete"===t.eventStatus?(("boolean"!=typeof(i=(o=t)&&"boolean"==typeof o.gdprApplies?o.gdprApplies:e.defaultGdprScope)||!0===i&&"string"!=typeof o.tcString)&&n({result:"cmpUnexpectedResponse",cmp:LT,consentData:o}),void n({result:"ok",consentData:t})):void 0;n({result:"ok",consentData:t})}else n({result:"cmpCallFailed"})}r(this,t),jT(),LT.frame?2===LT.version?(PT("TCF v2 CMP found. Fetching the consent."),LT.function?(PT("CMP API is directly accessible, calling it now..."),LT.function("addEventListener",LT.version,o)):(PT("CMP API is outside the current iframe, calling it now..."),function(e,t,n){var o=this,i="__tcfapi";function a(e){var t="".concat(i,"Return"),r="string"==typeof e.data&&e.data.indexOf(t)>=0?JSON.parse(e.data):e.data;if(r[t]&&r[t].callId){var n=r[t];void 0!==MT[n.callId]&&MT[n.callId](n.returnValue,n.success)}}window[i]=function(e,n,a,s){r(this,o);var u=Math.random()+"",c=ru({},"".concat(i,"Call"),{command:e,parameter:s,callId:u,version:n});MT[u]=a,t.postMessage(c,"*")}.bind(this),window.addEventListener("message",a,!1),window[i](e,LT.version,n)}("addEventListener",LT.frame,o))):n({result:"cmpVersionNotV2",cmp:LT}):n({result:"cmpNotFound"})}.bind(this)),BT)}var FT=function(){function e(){O(this,e),this.productName="Game Distribution"}var r;return L(e,[{key:"checkIfExcluded",value:function(e){try{var t,r;return!(null===(t=e.diagnostic)||void 0===t||null===(r=t.gameDock)||void 0===r||!r.excluded)}catch(e){return console.log("Error on checkIfExclude check",e),!1}}},{key:"track",value:(r=t(d.mark((function e(t,r){var n,o,i,a,s,u,c;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.checkIfExcluded(r)){e.next=3;break}return e.abrupt("return");case 3:if(i=null==t||null===(n=t.visitor)||void 0===n||null===(o=n.visitorData)||void 0===o?void 0:o.visitorId){e.next=6;break}return e.abrupt("return");case 6:return a=encodeURIComponent(this.productName),s=encodeURIComponent(i),e.prev=8,u="https://tracker-v4.gamedock.io/v1/events-tracker/track/product/".concat(a,"/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(a,"/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 r.apply(this,arguments)})}]),e}(),NT=new FT;function $T(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return GT(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return GT(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}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 i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function GT(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var HT,zT=function(e){var t=this,n=e.src,o=e.attributes,i=e.target,a=e.isAsync;return new Promise(function(e,s){var u=this;r(this,t);try{var c=document.createElement("script");if(c.async=null==a||a,c.type="text/javascript",c.onload=function(){r(this,u),e()}.bind(this),c.onerror=function(){r(this,u);var e="Error on script load, Error: ".concat(n);console.log(e),s(e)}.bind(this),c.src=n,o){var d,l=$T(o);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()}}i||(i=document.head),i.appendChild(c)}catch(e){var m="Error on script load catch, Error: ".concat(n);console.log(m,e),s(m)}}.bind(this))},ZT="ffd4774b-99ae-4464-8f40-3afa12b4692e",KT=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,zT({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,zT({src:"https://cdn.cookielaw.org/consent/".concat(ZT,"/OtAutoBlock.js"),attributes:[{key:"id",value:"gd-cookie-pro-autoblock"}],isAsync:!1});case 5:return e.next=7,zT({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:ZT}],isAsync:!1});case 7:r=void 0,n=void 0,o=void 0,r=(t={inlineScript:"function OptanonWrapper() { }"}).inlineScript,n=t.target,(o=document.createElement("script")).text=r,n||(n=document.head),n.appendChild(o),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,r,n,o}),e,null,[[0,10]])})));return function(){return e.apply(this,arguments)}}(),qT=new pD.exports.EventEmitter,VT={"https://games.softgames.com":{"splash-hidden":"splash-hidden"},"https://sg.gamedistribution.com":{"splash-hidden":"splash-hidden"},"https://html5.gamedistribution.com":{key:"value"}},WT=!1;window.addEventListener("message",(function(e){var t=this,n=e.data,o=e.origin,i=n.type;if(Object.keys(VT).some(function(e){return r(this,t),e===o}.bind(this))&&(null==n||!n.__tcfapiCall)){var a=!n.type||!n.type.startsWith("gd-sdk")&&!("parent-data-response"===n.type)||"sg-game-event"===n.type;!function(e){if("gd-sdk-on-event"===(null==e?void 0:e.type)){var t,r,n;if("midroll"!==(null==e||null===(t=e.event)||void 0===t?void 0:t.adPosition))return;var o="CONTENT_RESUME_REQUESTED"===(null===(r=e.event)||void 0===r?void 0:r.name);"CONTENT_PAUSE_REQUESTED"===(null===(n=e.event)||void 0===n?void 0:n.name)&&(WT=!0),o&&WT&&(WT=!1,window.parent.postMessage({type:"sg-game-event",eventName:"levelFinish",data:{score:100}},"*"))}}(n);var s=function(){r(this,t);try{var n,o;return null==e||null===(n=e.source)||void 0===n||null===(o=n.location)||void 0===o?void 0:o.href}catch(e){}}.bind(this);if(window.parent&&a){if("https://html5.gamedistribution.com"===o){var u=s();if(!u)return;var c=u&&["9555f04e1900482aaaef710cd2f8c440"].some(function(e){return r(this,t),u.indexOf(e)>0}.bind(this)),d=["sg-game-event"].some(function(e){return r(this,t),e===(null==n?void 0:n.type)}.bind(this));if(!c&&!d)return}var l=n.eventName,f=n.data;window.mpHelper&&(console.log("SG_EVENTS sending to minijuegos!"),"levelStart"!==l&&"levelFinish"!==l||window.mpHelper.sendStat("level",f.level),"levelFinish"===l&&window.mpHelper.sendStat("score",f.score)),window.parent.postMessage(n,"*")}if(i){var p=VT[o][i];p&&qT.emit(p,n)}}}),!1);var YT=new Uint8Array(16);function QT(){if(!HT&&!(HT="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 HT(YT)}var JT=/^(?:[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 XT=[],eP=0;eP<256;++eP)XT.push((eP+256).toString(16).substr(1));function tP(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(XT[e[t+0]]+XT[e[t+1]]+XT[e[t+2]]+XT[e[t+3]]+"-"+XT[e[t+4]]+XT[e[t+5]]+"-"+XT[e[t+6]]+XT[e[t+7]]+"-"+XT[e[t+8]]+XT[e[t+9]]+"-"+XT[e[t+10]]+XT[e[t+11]]+XT[e[t+12]]+XT[e[t+13]]+XT[e[t+14]]+XT[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&JT.test(e)}(r))throw TypeError("Stringified UUID is invalid");return r}function rP(e,t,r){var n=(e=e||{}).random||(e.rng||QT)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var o=0;o<16;++o)t[r+o]=n[o];return t}return tP(n)}function nP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var oP="__msgr",iP=rP(),aP=function(e){var t=this;if(!window[oP]){var n=document.createElement("iframe");if(n.src="https://static.gamedistribution.com/message/index.html",n.style.display="none",n.name=oP,document.body.appendChild(n),window!==window.top){var o={gameId:e.gameId,target:e.evnts.domain,token:iP,event_name:"TokenGenerated",timestamp:Date.now()};n.onload=function(){cP(o)},setInterval(function(){r(this,t),o.timestamp=Date.now(),o.event_name="Heartbeat",cP(o)}.bind(this),1e3*e.evnts.heartbeatDuration)}}window.addEventListener("message",function(e){r(this,t);try{var n=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?nP(Object(r),!0).forEach((function(t){ru(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nP(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e.data);if(!n.event_name)return;n.token=iP,cP(n)}catch(e){console.error("GD Messager Error",e.message)}}.bind(this),!1)},sP=function(e){try{var t={gameId:e.game.gameId,target:e.game.evnts.domain,event_name:e.event,timestamp:Date.now()},r=uP(window);r!==window.top&&(null==r||r.postMessage(t,"https://html5.gamedistribution.com"))}catch(e){}},uP=function e(t){try{var r,n,o=null==t?void 0:t.parent;if("game"===(null===(r=o.document)||void 0===r||null===(n=r.activeElement)||void 0===n?void 0:n.id))return o;e(o)}catch(e){return t}},cP=function(e){try{window[oP]&&window[oP].postMessage(e,"*")}catch(e){console.log("GD Messager initialization, please wait....")}},dP=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 n,o,i;return L(e,[{key:"run",value:function(e){var n=e.duration,o=this;return new Promise(function(){var e=t(d.mark((function e(t,i){var a,s=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,o.add();case 3:a=o.show(),setTimeout(function(){r(this,s);try{o.hide(),t({success:a})}catch(e){i(e)}}.bind(this),1e3*n),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),i(e.t0);case 10:case"end":return e.stop()}}),e,this,[[0,7]])})));return function(t,r){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:(i=t(d.mark((function e(){var r,n,o,i=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,r=document.createElement("div"),this.promo=r,n=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(n),i.track_click(n.click_tracking),window.open(n.click_through,"_blank");case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),(o=document.createElement("iframe")).src=this.promo_data.renderer_url,o.setAttribute("frameborder",0),this.addStyles(),this.promo.classList.add("gd__promo"),o.classList.add("gd__promo__iframe"),this.promo.appendChild(o),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 i.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,r){if(!document.getElementById(e)){var n=document.createElement("style");n.id=e,n.styleSheet?n.styleSheet.cssText=r:n.appendChild(document.createTextNode(r)),t.appendChild(n)}}},{key:"fetch_promo",value:(o=t(d.mark((function e(){var t,n=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 r(this,n),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 o.apply(this,arguments)})},{key:"track_click",value:(n=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 n.apply(this,arguments)})}]),e}();function lP(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function fP(e){return function(e){if(Array.isArray(e))return lP(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 lP(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?lP(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 pP=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"GD",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ObjectStore";O(this,e),this.dbName=t,this.storeName=r,this.db=null,this.init()}var n,o,i,a;return L(e,[{key:"init",value:function(){var e=this;return new Promise(function(t,n){var o=this;r(this,e);var i=indexedDB.open(this.dbName,1);i.onerror=function(e){r(this,o),console.error("Database error:",e.target.error),n(e.target.error)}.bind(this),i.onsuccess=function(e){r(this,o),this.db=e.target.result,t(this.db)}.bind(this),i.onupgradeneeded=function(e){r(this,o);var t=e.target.result;t.objectStoreNames.contains(this.storeName)||t.createObjectStore(this.storeName,{keyPath:"key"})}.bind(this)}.bind(this))}},{key:"getItem",value:(a=t(d.mark((function e(t){var n=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,o){var i=this;r(this,n);var a=this.db.transaction([this.storeName],"readonly").objectStore(this.storeName).get(t);a.onerror=function(e){r(this,i),console.error("Get item error:",e.target.error),o(e.target.error)}.bind(this),a.onsuccess=function(t){r(this,i),a.result?e(a.result.value):e(null)}.bind(this)}.bind(this)));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"setItem",value:(i=t(d.mark((function e(t,n){var o=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;r(this,o);var s=this.db.transaction([this.storeName],"readwrite").objectStore(this.storeName).put({key:t,value:n});s.onerror=function(e){r(this,a),console.error("Set item error:",e.target.error),i(e.target.error)}.bind(this),s.onsuccess=function(t){r(this,a),e()}.bind(this)}.bind(this)));case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})},{key:"removeItem",value:(o=t(d.mark((function e(t){var n=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,o){var i=this;r(this,n);var a=this.db.transaction([this.storeName],"readwrite").objectStore(this.storeName).delete(t);a.onerror=function(e){r(this,i),console.error("Remove item error:",e.target.error),o(e.target.error)}.bind(this),a.onsuccess=function(t){r(this,i),e()}.bind(this)}.bind(this)));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"clear",value:(n=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,n){var o=this;r(this,t);var i=this.db.transaction([this.storeName],"readwrite").objectStore(this.storeName).clear();i.onerror=function(e){r(this,o),console.error("Clear store error:",e.target.error),n(e.target.error)}.bind(this),i.onsuccess=function(t){r(this,o),e()}.bind(this)}.bind(this)));case 4:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})}]),e}(),hP=function(){function e(r){var n=r.mode;O(this,e),this.setItem=function(){var e=t(d.mark((function e(t,r){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})));return function(t,r){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"===n?(this.indexedStore=new pP,this.setItem=this.indexedStore.setItem.bind(this.indexedStore),this.getItem=this.indexedStore.getItem.bind(this.indexedStore)):"local-storage"===n&&(this.setItem=function(){var e=t(d.mark((function e(t,r){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",gt.set(t,r));case 1:case"end":return e.stop()}}),e)})));return function(t,r){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 r,n;return L(e,[{key:"set",value:(n=t(d.mark((function e(t,r){var n;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=JSON.stringify(r),e.next=3,this.setItem(t,n);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"get",value:(r=t(d.mark((function e(t){var r;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getItem(t);case 2:return r=e.sent,e.abrupt("return",r?JSON.parse(r):null);case 4:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})}]),e}();function mP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function vP(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?mP(Object(r),!0).forEach((function(t){ru(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mP(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var gP="_gd_vs";function AP(e){return bP.apply(this,arguments)}function bP(){return bP=t(d.mark((function e(t){var r,n,o,i;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.gameId,n=t.serverDate,i=[],!window.indexedDB){e.next=13;break}return e.prev=3,e.next=6,wP({gameId:r,serverDate:n});case 6:o=e.sent,e.next=13;break;case 9:e.prev=9,e.t0=e.catch(3),eu("visit-update error, indexedDb",e.t0.message),i.push(e.t0.message);case 13:if(o||!gt.available){e.next=24;break}return e.prev=14,e.next=17,yP({gameId:r,serverDate:n});case 17:o=e.sent,e.next=24;break;case 20:e.prev=20,e.t1=e.catch(14),eu("visit-update error, Ls",e.t1.message),i.push(e.t1.message);case 24:return e.abrupt("return",vP(vP({},o),{},{errors:i}));case 25:case"end":return e.stop()}}),e,null,[[3,9],[14,20]])}))),bP.apply(this,arguments)}function yP(e){return _P.apply(this,arguments)}function _P(){return _P=t(d.mark((function e(t){var r,n,o,i,a,s;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.gameId,n=t.serverDate,i=new hP({mode:o="local-storage"}),e.next=5,i.get(gP);case 5:return(a=e.sent)||(a={gids:{}}),a.gids[r]||(a.gids[r]={fv:n,vc:0}),(s=a.gids[r]).vc++,s.lv=n,e.next=13,i.set(gP,a);case 13:return e.abrupt("return",{visit:s,mode:o});case 14:case"end":return e.stop()}}),e)}))),_P.apply(this,arguments)}function wP(e){return xP.apply(this,arguments)}function xP(){return xP=t(d.mark((function e(t){var r,n,o,i,a;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.gameId,n=t.serverDate,i=new hP({mode:o="indexed-db"}),e.next=5,i.get(r);case 5:return(a=e.sent)||(a={fv:n,vc:0}),a.vc++,a.lv=n,e.next=11,i.set(r,a);case 11:return e.abrupt("return",{visit:a,mode:o});case 12:case"end":return e.stop()}}),e)}))),xP.apply(this,arguments)}let kP=(e=21)=>{let t="",r=crypto.getRandomValues(new Uint8Array(e));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&r[e]];return t};var EP={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}function o(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function i(e,t,n,i,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var s=new o(n,i||e,a),u=r?r+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 a(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function s(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),s.prototype.eventNames=function(){var e,n,o=[];if(0===this._eventsCount)return o;for(n in e=this._events)t.call(e,n)&&o.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},s.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,i=n.length,a=new Array(i);o<i;o++)a[o]=n[o].fn;return a},s.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},s.prototype.emit=function(e,t,n,o,i,a){var s=r?r+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,n),!0;case 4:return d.fn.call(d.context,t,n,o),!0;case 5:return d.fn.call(d.context,t,n,o,i),!0;case 6:return d.fn.call(d.context,t,n,o,i,a),!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,n);break;case 4:d[c].fn.call(d[c].context,t,n,o);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,r){return i(this,e,t,r,!1)},s.prototype.once=function(e,t,r){return i(this,e,t,r,!0)},s.prototype.removeListener=function(e,t,n,o){var i=r?r+e:e;if(!this._events[i])return this;if(!t)return a(this,i),this;var s=this._events[i];if(s.fn)s.fn!==t||o&&!s.once||n&&s.context!==n||a(this,i);else{for(var u=0,c=[],d=s.length;u<d;u++)(s[u].fn!==t||o&&!s[u].once||n&&s[u].context!==n)&&c.push(s[u]);c.length?this._events[i]=1===c.length?c[0]:c:a(this,i)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&a(this,t)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s}(EP);var SP=EP.exports;function DP({window:e,serviceId:t}){return e&&t?t===this.serviceId?Promise.reject(new Error("[IS] Cannot connect to self")):new Promise(((r,n)=>{const o=kP();this.transactionHandler[o]=e=>{if("object"!=typeof e.data)return;const{contextId:t,scriptId:o,serviceId:i,messageId:a,sender:s}=e.data||{};t&&o&&i&&a&&s&&0!==e.ports.length&&(e.ports[0].start(),this.router=e.ports[0],this.router.onmessage=this.handleMessage.bind(this),this.router.serviceId=i,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 n=Date.now()-t.ts;this.verbose&&console.log(`[IS] ${this.id}: Connection echo test response received from ${s} in ${n} ms`),r(e.data.body)})).catch((e=>{n(e)})))};const i=this.createMessage({transactionId:o,method:"connect"});i.body={where:{serviceId:t}},e.postMessage(i,"*"),this.setupTransactionTimeout({transactionId:o,reject:n})})):Promise.reject(new Error("[IS] Target window and service ID are required to connect to a service"))}function RP(){}function IP(e){return e}function CP({method:e,handler:t,configurable:r=!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:r}),this.verbose&&console.log(`[IS] ${this.id}: Registered handler for ${e}`)}function OP({alias:e,method:t,service:r,configurable:n=!1}){this.api.register({method:e,handler:(e,n)=>this.api.proxy({method:t,service:r,args:e,options:n}),configurable:n}),this.verbose&&console.log(`[IS] ${this.id}: Registered proxy for ${e} to ${r}`)}const TP={services:{}};function PP({method:e,args:t,service:r,options:n={}}){return new Promise(((o,i)=>{const a=kP();this.transactionHandler[a]=e=>{e.data.elapsed=Date.now()-e.data.ts,e.data.error?i(e.data.error):o(e.data?.body)};const s=(r||"").split("/"),u=s.shift(),c=this.clients[u];if(void 0===c){if(!this.router)return delete this.transactionHandler[a],i(new Error(`No router registered for ${this.id}`));n?.callback&&this.api.register({method:a,handler:n.callback,configurable:!0});const o=this.createMessage({transactionId:a,method:e,hasCallback:!!n?.callback});t&&(o.body=t),r&&(o.service=r),this.router.postMessage(o),this.setupTransactionTimeout({transactionId:a,reject:i,timeout:n?.timeout})}else{const r=this.createMessage({transactionId:a,method:e,hasCallback:!!n?.callback});n?.callback&&this.api.register({method:a,handler:n.callback,configurable:!0}),t&&(r.body=t),s.length>0&&(r.service=s.join("/")),c.postMessage(r),this.setupTransactionTimeout({transactionId:a,reject:i,timeout:n?.timeout})}}))}function LP(){window.removeEventListener("message",this.handleMessage)}function MP({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 r=Object.keys(t.clients);if(Array.isArray(e.client)){if(e.client.length&&!e.client.some((e=>r.includes(e))))return!1}else if(!r.includes(e.client))return!1}return!0}async function BP({timeout:e=1e3,interval:t=100,where:r={}}={}){const n=Date.now();let o=Math.floor(e/t);const i=FP.bind(this);for(;o>0;){const e=await i({timeout:t,where:r});if(e)return this.verbose&&console.log(`[IS] ${this.id}: Router found in ${Date.now()-n}ms`),e;o--}return this.verbose&&console.log(`[IS] ${this.id}: Router not found in ${Date.now()-n}ms`),null}function jP({window:e,timeout:t,where:r}={}){return new Promise(((n,o)=>{const i=kP();this.transactionHandler[i]=e=>{if("object"!=typeof e.data)return;const{contextId:t,scriptId:r,serviceId:o,messageId:i,sender:a}=e.data;t&&r&&o&&i&&a&&n(e.data)};const a=this.createMessage({transactionId:i,method:"are-you-router"});a.body={where:r},e.postMessage(a,"*"),this.setupTransactionTimeout({transactionId:i,reject:o,timeout:t})}))}function UP({where:e}={}){const t=TP.services,r=Object.keys(t),n=this.serviceId;for(let o=0;o<r.length;o++){const i=t[r[o]];if(i.serviceId!==n&&(MP({where:e,service:i})&&i.router_enabled))return i}return null}async function FP({timeout:e,where:t}={}){const r=UP.call(this,{where:t});if(r)return{window:window,serviceId:r.serviceId,contextId:r.contextId,scriptId:r.scriptId};let n=window.parent;for(;n!==window;){const r=await jP.call(this,{window:n,timeout:e,where:t}).catch((e=>{this.verbose&&console.log(`[IS] ${this.id}: ${e.message}`)}));if(r)return{window:n,serviceId:r.serviceId,contextId:r.contextId,scriptId:r.scriptId};if(n===n.parent)break;n=n.parent}return null}function NP({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 $P(){return kP()}async function GP(e){const{transactionId:t,messageId:r,serviceId:n,method:o,sender:i,body:a}=e.data;if(this.serviceId===n)return;if(!MP({where:a?.where,service:this}))return;const s=new MessageChannel;s.port1.start(),this.clients[i]=s.port1,this.clients[i].onmessage=this.handleMessage.bind(this),this.clients[i].serviceId=n,this.clients[i].onmessageerror=e=>{console.error(`[IS] ${this.id}: Error received from ${i}`,e?.message||e)};const u=this.createMessage({transactionId:t,replyTo:r});u.body=a,e.source.postMessage(u,"*",[s.port2]),this.verbose&&console.log(`[IS] ${this.id}: Connection received from ${i}`);try{this.ee.emit("connected",{contextId:e.data.contextId,scriptId:e.data.scriptId,serviceId:n,service:i})}catch(e){this.verbose&&console.log(`[IS] ${this.id}: Error while emitting connected event`,e.message)}}async function HP(e){const{transactionId:t,messageId:r,serviceId:n,body:o}=e.data;if(!0!==this.router_enabled)return;if(this.serviceId===n)return;if(!MP({where:o?.where,service:this}))return;const i=this.createMessage({transactionId:t,replyTo:r});i.body=o,e.source.postMessage(i,"*")}async function zP(e){const{transactionId:t,messageId:r,method:n,service:o}=e.data,i=this.createMessage({transactionId:t,replyTo:r});try{const t=await this.api.proxy({method:n,args:e.data.body,service:o});i.body=t,e.target.postMessage(i)}catch(t){i.error=t?.message||t,e.target.postMessage(i)}}async function ZP(e){const{transactionId:t,messageId:r,method:n}=e.data,o=this.registeredHandlers[n],i=this.createMessage({transactionId:t,replyTo:r});try{const t=await o(e.data.body,e.data);i.body=t,e.target.postMessage(i)}catch(t){i.error=t?.message||t,e.target.postMessage(i)}}async function KP(e){const{transactionId:t}=e.data,r=this.transactionHandler[t];delete this.transactionHandler[t],await r(e)}async function qP(e){if("object"!=typeof e.data)return;const{transactionId:t,contextId:r,scriptId:n,messageId:o,serviceId:i,method:a,service:s}=e.data;if(t&&r&&n&&o&&i)switch(this.verbose&&console.log(`[IS] ${this.id}`,e.data),a){case"connect":await GP.call(this,e);break;case"are-you-router":await HP.call(this,e);break;default:a&&s?await zP.call(this,e):a&&this.registeredHandlers[a]?await ZP.call(this,e):this.transactionHandler[t]&&await KP.call(this,e)}}function VP({transactionId:e,reject:t,timeout:r=1e3}){const n=setTimeout((()=>{clearTimeout(n),delete this.transactionHandler[e],this.api.unregister({method:e}),t(new Error("[IS] timeout"))}),r)}async function WP(){const e="INTERSERVICE_CONTEXT_ID";window[e]||Object.defineProperty(window,e,{value:kP(),enumerable:!1,configurable:!1}),this.contextId=window[e],this.scriptId=await async function(e){if(!e)return null;const t=(new TextEncoder).encode(e),r=await crypto.subtle.digest("SHA-1",t),n=Array.from(new Uint8Array(r)).map((e=>e.toString(16).padStart(2,"0"))).join("");return n}(document.currentScript&&document.currentScript.src||new URL("index.js",document.baseURI).href)}function YP(e){return{ts:Date.now(),contextId:this.contextId,scriptId:this.scriptId,serviceId:this.serviceId,messageId:kP(),sender:this.id,...e}}async function QP({id:e,verbose:t,router:r}){const n={api:{}};function o(e,t){Object.defineProperty(n.api,e,{get:()=>t,enumerable:!1,configurable:!1})}function i(e,t){const r=t.bind(n);n.api.register({method:e,handler:r})}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=r,this.serviceId=kP(),this.id=e,this.verbose=t,this.ee=new SP,this.router=null,this.clients={},this.transactionHandler={},this.registeredHandlers={},this.setupTransactionTimeout=VP.bind(this),this.handleMessage=qP.bind(this),this.createMessage=YP.bind(this),await WP.apply(this),window.addEventListener("message",this.handleMessage),TP.services[this.id]=this}.apply(n),o("connect",DP.bind(n)),o("findRouter",BP.bind(n)),o("register",CP.bind(n)),o("unregister",NP.bind(n)),o("registerProxy",OP.bind(n)),o("proxy",PP.bind(n)),o("dispose",LP.bind(n)),o("newId",$P.bind(n)),o("on",n.ee.on.bind(n.ee)),o("once",n.ee.once.bind(n.ee)),o("off",n.ee.off.bind(n.ee)),o("addListener",n.ee.addListener.bind(n.ee)),o("removeListener",n.ee.removeListener.bind(n.ee)),o("removeAllListeners",n.ee.removeAllListeners.bind(n.ee)),i("ping",RP),i("echo",IP),n.api}var JP;function XP(){return XP=t(d.mark((function e(t){var r,n,o,i;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.whichFrame,n=t.options,e.prev=1,o="gd-".concat(r),void 0,i=undefined,!("loader-frame"===r)){e.next=12;break}return e.next=9,eL({id:o,verbose:i,options:n});case 9:JP=e.sent,e.next=15;break;case 12:return e.next=14,rL({id:o,verbose:i,options:n});case 14:JP=e.sent;case 15:e.next=20;break;case 17:e.prev=17,e.t0=e.catch(1),Js("[GD-IS] GD interservice create error",e.t0);case 20:case"end":return e.stop()}}),e,null,[[1,17]])}))),XP.apply(this,arguments)}function eL(e){return tL.apply(this,arguments)}function tL(){return tL=t(d.mark((function e(n){var o,i,a,s,u=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=n.id,i=n.verbose,a=n.options,e.next=4,QP({id:o,verbose:i,router:!0});case 4:return(s=e.sent).on("connected",function(e){r(this,u)}.bind(this)),s.register({method:"whoami",handler:function(){return r(this,u),"[GD-IS] I am ".concat(o)}.bind(this)}),s.register({method:"isLoader",handler:function(){return r(this,u),!0}.bind(this)}),s.register({method:"hasRouter",handler:function(){return r(this,u),!1}.bind(this)}),s.register({method:"showAd",handler:function(){var e=t(d.mark((function e(r){var n,o,i;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.showAd?a.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)}}(),o=r.adType,i=r.params,e.next=4,n(o,i);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:"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=13,s.whoami();case 13:return e.sent,e.abrupt("return",s);case 16:case"end":return e.stop()}}),e,this)}))),tL.apply(this,arguments)}function rL(e){return nL.apply(this,arguments)}function nL(){return nL=t(d.mark((function e(t){var n,o,i,a,s,u=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.id,o=t.verbose,i=t.options,e.next=4,QP({id:n,verbose:o,router:!1});case 4:return a=e.sent,"gd-loader-frame",e.next=8,a.findRouter({where:{id:"gd-loader-frame"}}).catch(function(e){r(this,u)}.bind(this));case 8:if(s=e.sent,e.t0=!!s,!e.t0){e.next=15;break}return e.next=14,a.connect(s).catch(function(e){r(this,u),Js("[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,a.register({method:"whoami",handler:function(){return r(this,u),"[GD-IS] I am ".concat(n)}.bind(this)}),a.register({method:"onEvent",handler:function(e){var t=this;r(this,u);var n=e.event;(i.onEvent||function(e){r(this,t)}.bind(this))(n)}.bind(this)}),a.register({method:"isLoader",handler:function(){return r(this,u),!1}.bind(this)}),a.register({method:"hasRouter",handler:function(){return r(this,u),!!s}.bind(this)}),s&&(a.registerProxy({alias:"whoIsLoader",method:"whoami"}),a.registerProxy({alias:"registerOnEvents",method:"registerOnEvents"}),a.registerProxy({alias:"showAd",method:"showAd"})),e.next=24,a.whoami();case 24:if(e.sent,!s){e.next=35;break}return e.next=29,a.whoIsLoader();case 29:return e.sent,e.next=32,a.registerOnEvents();case 32:e.sent;case 35:return e.abrupt("return",a);case 36:case"end":return e.stop()}}),e,this)}))),nL.apply(this,arguments)}var oL=!1;function iL(){var e=this;return new Promise(function(t,n){var o=this;if(r(this,e),JP||oL)t(JP);else{var i=setInterval(function(){r(this,o),JP&&(oL=!0,clearInterval(i),t(JP))}.bind(this),100);setTimeout(function(){r(this,o),clearInterval(i),JP||(oL=!0,t(JP))}.bind(this),5e3)}}.bind(this))}function aL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function sL(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?aL(Object(r),!0).forEach((function(t){ru(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aL(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var uL,cL,dL,lL=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)}}(),fL=0,pL=!1,hL=function(){var e=t(d.mark((function e(n){var o,i,a,s,u,c,l,f=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=n.args,i=n.onError,e.prev=1,!window.isForwarderFrame){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,iL();case 7:if(!(a=e.sent)){e.next=18;break}return e.next=11,a.isLoader();case 11:if(!(s=e.sent)&&(s||a.hasRouter())){e.next=16;break}a.register({method:"sendSocketEvent",handler:function(e){r(this,f),gL(e.topic,e.args)}.bind(this)}),e.next=18;break;case 16:return a.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 r(this,f),e.toLowerCase()===u.host.toLowerCase()}.bind(this)),!(c&&a&&a.hasRouter())){e.next=24;break}return e.abrupt("return");case 24:return c&&a&&a.hasRouter(),e.next=27,lL();case 27:cL=rP(),l={json:JSON.stringify(o)},"wss://ws.gamedistribution.com",(uL=io("wss://ws.gamedistribution.com",{query:l,upgrade:!1,transports:["websocket"],reconnectionDelay:6e4,autoConnect:!1})).on("connect",function(){r(this,f)}.bind(this)),uL.on("after-connect",function(){var e=t(d.mark((function e(t){var r,n,i,a,s,u;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return dL=dL||(null==t?void 0:t.serverDate),r=o.gameId,e.next=4,AP({gameId:r,serverDate:dL});case 4:n=e.sent,i=n.visit,a=n.mode,s=n.errors,o.visit=sL(sL({},i),{},{stm:a,errors:s}),u={json:JSON.stringify(o)},uL.emit("client-info",{clientId:cL,counter:fL++,serverDate:dL,query:u}),pL=!0;case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),uL.on("disconnect",function(e){r(this,f),pL=!1}.bind(this)),uL.connect(),e.next=40;break;case 37:e.prev=37,e.t0=e.catch(1),i&&i(e.t0);case 40:case"end":return e.stop()}}),e,this,[[1,37]])})));return function(t){return e.apply(this,arguments)}}(),mL=!1,vL=[];function gL(e,t){return AL.apply(this,arguments)}function AL(){return AL=t(d.mark((function e(t,n){var o,i,a,s=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,iL();case 2:if(!(o=e.sent)){e.next=11;break}return e.next=6,o.isLoader();case 6:if(e.sent||!o.hasRouter()){e.next=11;break}return e.next=10,o.sendSocketEvent({topic:t,args:n});case 10:return e.abrupt("return");case 11:if("play"!==t){e.next=15;break}if(!mL){e.next=14;break}return e.abrupt("return");case 14:mL=!0;case 15:i=function(e,t){r(this,s);try{var n={json:JSON.stringify(t||{})};uL.emit("socket-event",{topic:e,clientId:cL,counter:fL,serverDate:dL,query:n})}catch(e){eu("game-session: Error on sending socket-event",e.message)}}.bind(this),a=function(){r(this,s),i(t,n)}.bind(this),vL.push(a);case 19:case"end":return e.stop()}}),e,this)}))),AL.apply(this,arguments)}function bL(e){var t=this,n={preroll:["preroll","start"],midroll:["next"],rewarded:["reward"]},o=Object.keys(n).find(function(o){var i=this;return r(this,t),n[o].some(function(t){return r(this,i),t===e.params.position}.bind(this))}.bind(this));return o||"midroll"}function yL(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return _L(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _L(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}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 i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function _L(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}setInterval((function(){if(0!==vL.length&&uL&&pL){for(var e=function(){var e=this,o=n[t];o(),vL=vL.filter(function(t){return r(this,e),t!==o}.bind(this))},t=0,n=fP(vL);t<n.length;t++)e();Js("game-session: commands length",vL.length)}}),100);var wL=3,xL=1,kL=5,EL={lastImpressionDate:null,imps:0};function SL(){return DL.apply(this,arguments)}function DL(){return(DL=t(d.mark((function e(){var t,n,o,i,a,s,u,c,l;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={},e.next=3,GD();case 3:if(n=e.sent,o=n.compensation||{enabled:!1},t.ruleEnabled=null==o?void 0:o.enabled,!(void 0===(null==o?void 0:o.exctg)||(null==o?void 0:o.exctg))){e.next=28;break}i=["co-op","multiplayer","IAPs"],a=(null==n?void 0:n.tags)||[],s=!1,u=yL(a),e.prev=12,l=d.mark((function e(){var t,n=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=c.value,i.some(function(e){return r(this,n),e===t.title}.bind(this))&&(s=!0);case 2:case"end":return e.stop()}}),e,this)})),u.s();case 15:if((c=u.n()).done){e.next=19;break}return e.delegateYield(l(),"t0",17);case 17:e.next=15;break;case 19:e.next=24;break;case 21:e.prev=21,e.t1=e.catch(12),u.e(e.t1);case 24:return e.prev=24,u.f(),e.finish(24);case 27:t.disabledByTag=s;case 28:return t.isLowScoreGame=RL(n),t.enabled=t.ruleEnabled&&!t.disabledByTag&&t.isLowScoreGame,n.hasActiveCompensations=t.enabled,e.abrupt("return",t);case 32:case"end":return e.stop()}}),e,null,[[12,21,24,27]])})))).apply(this,arguments)}function RL(e){var t=!1,r=e.compensation||{enabled:!1},n=null==e?void 0:e.adsc;if(1===(null==n?void 0:n.s)&&null!=n&&n.t){var o=null==n?void 0:n.t,i=(null==r?void 0:r.esc)||xL,a=(null==r?void 0:r.ascl)||kL,s=o||{},u=s.adsc,c=s.reqsc,d=s.pdur,l=s.rspdur;s.aspdur,t=(l||c/(d/wL))<=i&&u<a}return t}var IL=!1;function CL(){return OL.apply(this,arguments)}function OL(){return(OL=t(d.mark((function e(){var t;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!IL){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,SL();case 4:(t=e.sent).enabled,t.override,t.giftEnabled,t.midrollPlusEnabled,IL=!0;case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function TL(e){var t=e.rateType,r=e.gameData,n=!1;if(r.hasActiveCompensations){var o=r.compensation,i="gift"===t?null==o?void 0:o.gftr:null==o?void 0:o.mpr;i=void 0===i?1:i,n=Math.random()<=i}else n=!0;return n}function PL(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return LL(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return LL(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}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 i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function LL(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var ML=!1,BL=3,jL=5,UL=1,FL=60,NL=10;function $L(){return GL.apply(this,arguments)}function GL(){return(GL=t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return EL.imps++,EL.lastImpressionDate=new Date,e.abrupt("return",!0);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function HL(e){return zL.apply(this,arguments)}function zL(){return zL=t(d.mark((function e(n){var o,i,a,s,u,c,l,f,p,h,m,v,g,A,b,y,_,w,x,k,E,S,D,R,I,C,O,T,P,L,M,B,j,U,F,N,$,G,H,z,Z=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=n.gameData,s=n.executeCompensation,u=function(){var e=t(d.mark((function e(t){var r,n,o;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=(null==t?void 0:t.whenAvailable)||!1,!s){e.next=7;break}return e.next=4,s({whenAvailable:r});case 4:e.t0=e.sent,e.next=10;break;case 7:return e.next=9,$L();case 9:e.t0=e.sent;case 10:return n=e.t0,o=n.args,e.abrupt("return",null==o?void 0:o.success);case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),c=!ML,!ML){e.next=5;break}return e.abrupt("return");case 5:if(ML=!0,l=a.adsc){e.next=10;break}return e.abrupt("return");case 10:if(f=l.s,p=l.t,1===f){e.next=13;break}return e.abrupt("return");case 13:if(null!=(h=a.compensation||{enabled:!1})&&h.enabled){e.next=17;break}return e.abrupt("return");case 17:if(!(void 0===(null==h?void 0:h.exctg)||(null==h?void 0:h.exctg))){e.next=42;break}m=["co-op","multiplayer","IAPs"],v=(null==a?void 0:a.tags)||[],g=!1,A=PL(v),e.prev=24,y=d.mark((function e(){var t,n=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=b.value,m.some(function(e){return r(this,n),e===t.title}.bind(this))&&(g=!0);case 2:case"end":return e.stop()}}),e,this)})),A.s();case 27:if((b=A.n()).done){e.next=31;break}return e.delegateYield(y(),"t0",29);case 29:e.next=27;break;case 31:e.next=36;break;case 33:e.prev=33,e.t1=e.catch(24),A.e(e.t1);case 36:return e.prev=36,A.f(),e.finish(36);case 39:if(!g){e.next=42;break}return e.abrupt("return");case 42:if(_=(null==h?void 0:h.esc)||UL,w=void 0===(null==h?void 0:h.depgft)||(null==h?void 0:h.depgft),x=null!=h&&h.depgftr?null==h?void 0:h.depgftr:1,k=(null==h?void 0:h.onst)||!1,E=(null==h?void 0:h.sl)||3,S=(null==h?void 0:h.tl)||180,D=(null==a||null===(o=a.gft)||void 0===o?void 0:o.midroll.enabled)||!1,R=(null==a||null===(i=a.midroll_plus)||void 0===i?void 0:i.enabled)||!1,(!D||!R)&&(S/=x),I=void 0===(null==h?void 0:h.tc)||(null==h?void 0:h.tc),C=(null==h?void 0:h.ascl)||jL,!w){e.next=62;break}if(P=(null==a||null===(O=a.gft)||void 0===O?void 0:O.midroll.enabled)||!1,L=(null==a||null===(T=a.midroll_plus)||void 0===T?void 0:T.enabled)||!1,P&&L){e.next=62;break}return e.abrupt("return");case 62:if(B=(M=p||{}).adsc,j=M.reqsc,U=M.pdur,F=M.rspdur,M.aspdur,(F||j/(U/BL))<=_&&B<C){e.next=69;break}return e.abrupt("return");case 69:if(N=Math.ceil(U/BL),!k||!c){e.next=76;break}return e.next=76,u({whenAvailable:!0});case 76:$=0,G=1,H=function(){r(this,Z),$=0,G=1}.bind(this),z=setInterval(t(d.mark((function e(){var t,n,o,i=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(I&&EL.imps>=N)){e.next=4;break}return clearInterval(z),e.abrupt("return");case 4:if(t=new Date,n=EL.lastImpressionDate?(a=EL.lastImpressionDate,s=t,c=void 0,d=void 0,void 0,void 0,c=a.getTime(),d=s.getTime(),(d-c)/1e3):S+1,!((o=S-n)>0)){e.next=20;break}if(!(o<=FL-NL)){e.next=17;break}return e.next=15,new Promise(function(e){var t=this;r(this,i),setTimeout(function(){r(this,t),e()}.bind(this),1e3*o)}.bind(this));case 15:e.next=20;break;case 17:return H(),e.abrupt("return");case 20:if(++$%G==0){e.next=24;break}return e.abrupt("return");case 24:return e.next=26,u({});case 26:e.sent?H():($=0,G=G+1>E?E:G+1);case 28:case"end":return e.stop()}var a,s,c,d}),e,this)}))),1e3*FL);case 80:case"end":return e.stop()}}),e,this,[[24,33,36,39]])}))),zL.apply(this,arguments)}function ZL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function KL(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ZL(Object(r),!0).forEach((function(t){ru(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ZL(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function qL(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return VL(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return VL(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}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 i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function VL(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var WL,YL=function(){function e(t){var n=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 r(this,n),t.isOpusReady}.bind(this),this._muteRequested=!1,this._terminateRequested=!1,this._registerForEvents()}var n,o;return L(e,[{key:"_registerForEvents",value:function(){var e=this;this.eventBus.subscribe("HL_CONFIG_ERROR",function(t){r(this,e),this.hasHLConfigError=!0}.bind(this))}},{key:"runAdFlow",value:(o=t(d.mark((function e(t){var n,o,i,a,s,u,c,l,f,p,h,m,v,g,A,b,y,_,w,x,k,E,S,D,R,I,C,O,T,P,L,M,B,j,U,F,N,$,G,H,z,Z,K,q,V,W,Y,Q,J,X,ee,te,re,ne,oe,ie=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,iL();case 3:!(f=e.sent)||f.isLoader(),this.adRequest=t,p=bL(t),t.params.adTypeFound=p,Js("gd-adflow, adTypeFound",p,t.params.position),(h=this._getAdFlow(p)).find(function(e){return r(this,ie),"opus"===e}.bind(this))&&!this.isOpusReady()&&(h=h.filter(function(e){return r(this,ie),"opus"!==e}.bind(this)),this._msgrt.send("opus.sdk",{message:"Not ready"})),m=this._gameData,v=m.afg_disabled,g=null===(n=t.params)||void 0===n?void 0:n.isGift,A=null===(o=t.params)||void 0===o?void 0:o.isMidrollPlus,b=null===(i=t.params)||void 0===i?void 0:i.isCompensation,null===(a=t.params)||void 0===a||a.position,y=null===(s=m.promo)||void 0===s?void 0:s.rainbow,_=(null==y?void 0:y.enabled)&&(null===(u=y.position)||void 0===u?void 0:u[p]),w=null==y?void 0:y.gift,x=_&&null!=y&&y.duration?null==y?void 0:y.duration:5,k=v?h.filter(function(e){return r(this,ie),"adsense"!==e}.bind(this)):h,E=this.get_ad_system_init_result(),S=E.afg,D=E.ima,R=null==m||null===(c=m.ad_blcks)||void 0===c||null===(l=c.removeOtherAdaptors)||void 0===l?void 0:l.enabled,this.anyAdBlocking=!S||!D,this.bothAdBlocking=!S&&!D,this.adsBlocked=R&&this.anyAdBlocking||this.bothAdBlocking,this.adsBlocked?(Xs("gd-adflow adsBlocked so changing the flow"),k=[]):(S||(k=k.filter(function(e){return r(this,ie),"adsense"!==e}.bind(this))),D||(k=k.filter(function(e){return r(this,ie),"ima"!==e}.bind(this)))),I=!1,C=!1,O=[],T=0,P=!1,M={},B=qL(k),e.prev=40,B.s();case 42:if((j=B.n()).done){e.next=88;break}if(U=j.value,!this._terminateRequested){e.next=46;break}return e.abrupt("break",88);case 46:if(t.params.adapter=U,F=T===k.length-1,N=g&&w||!g,$=F&&_&&N,t.params=KL(KL({},t.params),{},{adapterIndex:T,isLastAdapter:F,shouldFail:!1,extraPromoRunOnFail:$,muteRequested:this._muteRequested}),!this._muteRequested||"adsense"!==U){e.next=53;break}return e.abrupt("continue",86);case 53:return function(){r(this,ie),tu.firstSuccessOrder&&!isNaN(tu.firstSuccessOrder)&&(t.params.shouldFail=T<tu.firstSuccessOrder)}.bind(this),Xs("gd-adflow, before adInvoke",T,U,t.params.shouldFail),e.next=57,this.adInvoke(t);case 57:if(G=e.sent,H=G.success,z=G.args,Z=G.isSkipped,K=G.noVast,q=G.t4r,V=null==z?void 0:z.reason,W=null==z?void 0:z.message,Y=null==z?void 0:z.errorType,M[U]=M[U]||{req:0,imp:0,fail:0},M[U].req++,H?M[U].imp++:(M[U].fail++,M[U].failReason=V,M[U].failMessage=W,M[U].failType=Y),!H){e.next=77;break}return Xs("gd-adflow, adapter-result-success",T,U,z),I=!0,C=!(null==z||!z.isPromoSuccess),L=q,e.abrupt("break",88);case 77:if(Xs("gd-adflow, adapter-result-failure",T,U,z.message),T++,O.push(z.message),!Z){e.next=82;break}return e.abrupt("break",88);case 82:if(!K){e.next=85;break}return this._runAutoResume(),e.abrupt("break",88);case 85:P=$;case 86:e.next=42;break;case 88:e.next=93;break;case 90:e.prev=90,e.t0=e.catch(40),B.e(e.t0);case 93:return e.prev=93,B.f(),e.finish(93);case 96:if(!P){e.next=102;break}return e.next=99,new dP(this).run({duration:x});case 99:e.sent.success&&(C=!0);case 102:return function(){var e;r(this,ie),tu.disableGift&&null!==(e=m.gft)&&void 0!==e&&e[p].enabled&&(m.gft[p].enabled=!1)}.bind(this),Q=O.join(" /n"),I?(EL.imps++,EL.lastImpressionDate=new Date,this._setAdRequestTimer(),this._onResumeGame("Advertisement(s) are done. Start / resume the game.","success"),this._giveGift(p),"midroll"===p&&this._executeMidrollPlus()):(this._onResumeGame(Q,"warning"),this._giveGift(p),"midroll"===p&&this._executeMidrollPlus()),HL({gameData:m,executeCompensation:this.executeCompensation}),J="-1",X="none",I?(J="index_".concat(T),X=k[T]):C&&(J="promo",X="promo"),ee=this.get_session_id(),this.anyAdBlocking&&"-1"===J?(te="rewarded"===p?"rewarded":this.blockedAdsMap.preroll?"midroll":"preroll",this.blockedAdsMap[te]=this.blockedAdsMap[te]?this.blockedAdsMap[te]+1:1,Js("gd-adflow, blocked-ad",JSON.stringify(this.blockedAdsMap)),this._msgrt.send("adflow.blocked.pos",{message:"".concat(te)}),this.send_atom_event("gd.adflow",{adBlocker:!0,afgBlocked:!S,imaBlocked:!D,isGift:g,isMidrollPlus:A,adType:te,sessionId:ee,successAdapter:"none",adFlowIndex:J,adapterResults:M})):(ru(re={},"adflow.all.index",{message:"".concat(J)}),ru(re,"adflow.all.success_adapter",{message:"".concat(X)}),ru(re,"adflow.".concat(p,".index"),{message:"".concat(J)}),ru(re,"adflow.".concat(p,".success_adapter"),{message:"".concat(X)}),ne=re,Object.keys(ne).forEach(function(e){r(this,ie);var t=ne[e];this._msgrt.send(e,t)}.bind(this)),this.send_atom_event("gd.adflow",{adFlowIndex:J,successAdapter:X,adBlocker:!1,afgBlocked:!S,imaBlocked:!D,isGift:g,isMidrollPlus:A,isCompensation:b,adType:p,sessionId:ee,t4r:L,adapterResults:M})),gL("ad-session",{adSession:{adType:p,imp:"-1"!==J&&"promo"!==J,promo:"promo"===J,blocked:this.anyAdBlocking&&"-1"===J,hasHLConfigError:this.hasHLConfigError,isGift:g,isMidrollPlus:A,isCompensation:b}}),oe={adType:p},this.eventBus.broadcast("AD_FLOW_COMPLETE",oe),e.abrupt("return",KL(KL({},oe),{},{args:{success:I,isGift:g,isMidrollPlus:A}}));case 120:case"end":return e.stop()}}),e,this,[[40,90,93,96]])}))),function(e){return o.apply(this,arguments)})},{key:"adInvoke",value:(n=t(d.mark((function e(n){var o=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,s,u,c,l=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a="main.showad.".concat(n.params.adapter,".").concat(n.params.adapterIndex),Js("adInvoke.start",{scopeName:a,adRequest:JSON.stringify(n)}),s={},u=function(e){r(this,l),Js("adInvoke.failure",{args:e,adRequest:JSON.stringify(n)}),o._eventBus.unsubscribeScope(a);var i="dismissed"===(null==e?void 0:e.message);t({success:!1,args:e,isSkipped:i,noVast:e.noVast})}.bind(this),c=function(e){r(this,l),Js("adInvoke.success",{args:e,adRequest:JSON.stringify(n)}),o._eventBus.unsubscribeScope(a),t({success:!0,args:e,t4r:s})}.bind(this),o._eventBus.subscribe("AD_ERROR",u,a),o._eventBus.subscribe("AD_SDK_CANCELED",u,a),o._eventBus.subscribe("AD_SUCCESS",c,a),o._eventBus.subscribe("AD_T4R",function(){r(this,l),s.loaded=!0}.bind(this),a),o._eventBus.subscribe("AD_T4R_CLICK",function(){r(this,l),s.t4rClick=!0}.bind(this),a),o._eventBus.subscribe("AD_T4R_VIDEO",function(){r(this,l),s.t4rVideo=!0}.bind(this),a),o._eventBus.subscribe("AD_CLICK",function(){r(this,l),s.click=!0}.bind(this),a),o._eventBus.subscribe("AD_BIDDER",function(e){r(this,l),s.bidder=null==e?void 0:e.bidder}.bind(this),a),o._eventBus.subscribe("AD_T4R_NONE",function(e){r(this,l),s.fail_reason=null==e?void 0:e.reason}.bind(this),a),e.prev=14,e.next=17,o._adInstance.startAd(n);case 17:e.next=23;break;case 19:e.prev=19,e.t0=e.catch(14),eu("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,r){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)}))),function(e){return n.apply(this,arguments)})},{key:"_getAdFlow",value:function(e){var t,n,o,i,a,s,u,c,d=this,l=void function(){if(r(this,d),tu.customAdFlow)return JSON.parse(tu.customAdFlow)}.bind(this),f=this._gameData.adflw;l&&(f=l);var p=null!==(t=f)&&void 0!==t&&null!==(n=t.adapters)&&void 0!==n&&n.default?null===(o=f)||void 0===o||null===(i=o.adapters)||void 0===i?void 0:i.default:["ima","adsense"];return p=null!==(a=f)&&void 0!==a&&null!==(s=a.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:"mute",value:function(){var e=this;this._muteRequested=!0,this._adInstance.mute().catch(function(t){r(this,e)}.bind(this))}},{key:"terminate",value:function(){var e=this;this._terminateRequested=!0,this._adInstance.terminate().catch(function(t){r(this,e)}.bind(this)),this._setAdRequestTimer()}}]),e}(),QL=new pD.exports.EventEmitter,JL=["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,n=e.data,o=e.origin,i=e.source;if(JL.some(function(e){return r(this,t),e===o}.bind(this))&&(null==n||!n.__tcfapiCall)){var a=n.system;n.action;var s="aeriaExternalHostsConnector"===a;if("Softgames"===a)WL=i,(window.parent||window).postMessage(n,"*"),QL.emit("aeria-event",n);else if(s){WL&&WL.postMessage(n,"*");var u=window.parent||window;u&&u.postMessage(n,"*")}}}),!1);var XL="https://html5.gamedistribution.com",eM="parent-data-request",tM="parent-data-response",rM=function(){function e(){O(this,e)}var n;return L(e,[{key:"init",value:function(e){var t=this;this._registerForDataRequests(e),this._askForParentFrameData().then(function(n){if(r(this,t),n){var o=n.adRequestTimer;e.adRequestTimer=o,Js("gd-frame-data-bridge, adRequestTimer on init ",e.adRequestTimer)}}.bind(this))}},{key:"_registerForDataRequests",value:function(e){var t=this;window.addEventListener("message",function(n){r(this,t);var o=n.data,i=n.origin,a=n.source,s=o.type;if(o.value,i===XL&&s===eM){var u={adRequestTimer:e.adRequestTimer};a.postMessage({type:tM,value:u})}}.bind(this))}},{key:"_askForParentFrameData",value:(n=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,n){var o=this;r(this,t);var i=!1;window.addEventListener("message",(function(t){var r=t.data,n=t.origin;t.source;var o=r.type,a=r.value;n===XL&&o===tM&&(e(a),i=!0)})),setTimeout(function(){r(this,o),i||e()}.bind(this),1e3);var a={type:eM};window.parent.postMessage(a,"*")}.bind(this)));case 1:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})}]),e}(),nM=new rM,oM={SDKExistsOnUpperFrame:!1};function iM(){return aM.apply(this,arguments)}function aM(){return aM=t(d.mark((function e(){var t,r;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 r=window.GD_BLCK_RMV||{},console.log("new blocker",r),e.abrupt("return",r.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]])}))),aM.apply(this,arguments)}var sM=async()=>{const e={},t={};function r(){let t,r=window,n=null,o=null;for(;!t;){try{if("function"==typeof r.__tcfapi||"function"==typeof r.__cmp){"function"==typeof r.__tcfapi?(o=2,n=r.__tcfapi):(o=1,n=r.__cmp),t=r;break}}catch(e){}try{if(r.frames.__tcfapiLocator){o=2,t=r;break}}catch(e){}try{if(r.frames.__cmpLocator){o=1,t=r;break}}catch(e){}if(r===window.top)break;r=r.parent}return e.version=o,e.frame=t,e.function=n,e.version}function n(n={}){return new Promise((o=>{function i(t,r){if(r){if(!1!==t.gdprApplies)return"tcloaded"===t.eventStatus||"useractioncomplete"===t.eventStatus?(function(t){const r=t&&"boolean"==typeof t.gdprApplies?t.gdprApplies:n.defaultGdprScope;("boolean"!=typeof r||!0===r&&"string"!=typeof t.tcString)&&o({result:"cmpUnexpectedResponse",cmp:e,consentData:t})}(t),void o({result:"ok",consentData:t})):void 0;o({result:"ok",consentData:t})}else o({result:"cmpCallFailed"})}r(),e.frame?2===e.version?e.function?e.function("addEventListener",e.version,i):function(r,n,o){const i="__tcfapi";function a(e){const r=`${i}Return`,n="string"==typeof e.data&&e.data.indexOf(r)>=0?JSON.parse(e.data):e.data;if(n[r]&&n[r].callId){const e=n[r];void 0!==t[e.callId]&&t[e.callId](e.returnValue,e.success)}}window[i]=(e,r,o,a)=>{const s=Math.random()+"",u={[`${i}Call`]:{command:e,parameter:a,callId:s,version:r}};t[s]=o,n.postMessage(u,"*")},window.addEventListener("message",a,!1),window[i](r,e.version,o)}("addEventListener",e.frame,i):o({result:"cmpVersionNotV2",cmp:e}):o({result:"cmpNotFound"})}))}return{findCmp:r,findUsp:function(){let e,t,r=window;for(;!e;){try{if("function"==typeof r.__uspapi){t=r.__uspapi,e=r;break}}catch(e){}try{if(r.frames.__uspapiLocator){e=r;break}}catch(e){}if(r===window.top)break;r=r.parent}return{uspapiFrame:e,uspapiFunction:t}},lookupIabConsent:function(){return new Promise((e=>{try{n().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],r=e.vendor.legitimateInterests[755];if(!t)return{type:"not-allowed"};const{consents:n,legitimateInterests:o}=e.purpose;let i=Object.keys({1:!0,3:!0,4:!0}).every((e=>n[e])),a=[2,7,9,10].every((e=>n[e]||o[e]&&r));return i&&a?{type:"personalized"}:(n[1]||o[1])&&a?{type:"non-personalized"}:{type:"limited"}}}};function uM(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function cM(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?uM(Object(r),!0).forEach((function(t){ru(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uM(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var dM=function(){Xs("gtag: GA not initialized",arguments)};function lM(e){return fM.apply(this,arguments)}function fM(){return fM=t(d.mark((function e(t){var o,i,a,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 o=t.onError,i=t.args,s="gdSDKDataLayer",u="https://www.googletagmanager.com/gtag/js?id=".concat(a="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 r(this,g),window[s]}.bind(this)});case 8:return window[s]=window[s]||[],dM=function(){window[s].push(arguments)},dM("js",new Date),e.next=14,sM();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=cM(cM({},v=i||{}),{},{cookie_flags:"SameSite=None;Secure",cmp:h.result,gdpr:"ok"===h.result?"object"===n(h.consentData)?!0===h.consentData.gdprApplies:"N/A":h.result,google_ads:null==m?void 0:m.type}),dM("config",a,v),e.next=31;break;case 27:e.prev=27,e.t0=e.catch(5),eu("gtag: load GA error",e.t0),o&&o(e.t0);case 31:case"end":return e.stop()}}),e,this,[[5,27]])}))),fM.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 pM=function(e){var t=this,n=e.handler,o=e.timeout,i=e.interval,a=n||function(){return r(this,t),!0}.bind(this),s=o||1e3,u=i||10;return new Promise(function(e,o){var i=this;if(r(this,t),n())e(!0);else{var c=!1,d=setInterval(function(){r(this,i);try{a()&&(clearInterval(d),c=!0,e(!0))}catch(t){clearInterval(d),e(!1)}}.bind(this),u);setTimeout(function(){r(this,i),clearInterval(d),c||e(!1)}.bind(this),s)}}.bind(this))};function hM(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function mM(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?hM(Object(r),!0).forEach((function(t){ru(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hM(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function vM(e){var t=e.gameData,n=e.msgrt,o=e.topDomain,i=e.parentDomain,a=e.parentURL;return{send_atom_event:function(e,s){if(function(e){var n=this,o=t.dbglg;return(null==o?void 0:o.enabled)&&o.topics&&o.topics.some(function(t){return r(this,n),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=mM(mM({},u),c),function(e,t){try{var r=n._layout,s=n._ua,u={tp:e,ct:0,vrs:Ws.version,url:a,rfr:document.referrer,tdmn:o||i,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:r.w,h:r.h}};return fetch("https://tag.atom.gamedistribution.com/v1/dmp?ar=".concat(encodeURIComponent(rt.encode(JSON.stringify(u)))))}catch(e){}}(e,u=s?mM(mM({},u),s):u)}}}}function gM(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function AM(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?gM(Object(r),!0).forEach((function(t){ru(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gM(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var bM=rP(),yM=null,_M=null,wM=function(){function e(t){var n,o,i,a,s=this;if(O(this,e),ru(this,"_whichFrameV2",function(){var e=this;r(this,s);var t=C(window.location.href,!0),n=t.host,o=t.query,i="html5.gamedistribution.com"!==n,a=function(t){return r(this,e),"revision.gamedistribution.com"===t||"uncached-html5.gamedistribution.com"===t}.bind(this),u=a(n);null!=o&&o.gd_sdk_referrer_url&&(u=a(C(o.gd_sdk_referrer_url).host));return this._isMasterGameURL()&&!(this._isTokenGameURL()||i)||u?"loader-frame":"game-frame"}.bind(this)),yM)return yM;yM=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===(n=u.top)||void 0===n||null===(o=n.domain)||void 0===o?void 0:o.value)||(null==u||null===(i=u.partner.domain)||void 0===i?void 0:i.value),d=null==u||null===(a=u.partner.url)||void 0===a?void 0:a.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,Js("locs found:",this._topDomain,this._parentURL),this._isFullScreen=!1,this._giftCount={preroll:0,midroll:0,rewarded:0},this._mplus_count=0,function(e){XP.apply(this,arguments)}({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){r(this,s),this._sdk_ready=!0}.bind(this)).catch(function(e){r(this,s),this._sdk_ready=!1}.bind(this)).finally(function(){var e,t,n,o,i=this;if((r(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 vM({msgrt:this.msgrt,gameData:this._gameData,parentDomain:this._parentDomain,parentURL:this._parentURL,topDomain:this._parentURL}),this.dumper,this._initGameSessionTracking(),this._sendLoadedEvent(2),!0===(null===(n=this._gameData.lp)||void 0===n?void 0:n.load)&&this._sendLoadedEvent(1),this._sendLoaderDataEvent(),this._checkSplashAndPromoScreens(),this._initBlockingExternals(),this._initUnityHandler(),this._checkFullscreen(),null!==(o=this._gameData.evnts)&&void 0!==o&&o.enabled&&this._isLoaderGameURL()&&(aP(this._gameData),this._gameData.evnts.gameId===this.options.gameId&&setInterval(function(){r(this,i),this._send_gametag_data("heartbeat")}.bind(this),1e3*this._gameData.evnts.heartbeatDuration)),nM.init(this),this._send_gametag_data("sdk_init"),this.fixScore()}.bind(this)),this._registerSGBridge(),Js("which-frame",this._whichFrame()),this._loadLocus()}var n,o,i,a,s,u,c,f,p,h,m,v,g,A,b,y,_,w,x,k,E,S;return L(e,[{key:"_getVisitorId",value:(S=t(d.mark((function e(){var t,n,o,i,a,s=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,pM({handler:function(){return r(this,s),!!_M}.bind(this),timeout:1e3,interval:10});case 2:return i=e.sent,a=i?null===(t=_M)||void 0===t||null===(n=t.visitor)||void 0===n||null===(o=n.visitorData)||void 0===o?void 0:o.visitorId:"noVisitorId",e.abrupt("return",a);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,n,o,i,a,s,u,c,l,f,p,h,m,v,g,A,b,y,_,w,x,k,E,S,D,R=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===(t=this._gameData)||void 0===t||null===(n=t.gs_trc)||void 0===n?void 0:n.enabled){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,this._getVisitorId();case 5:u=e.sent,c=this._gameData,l=c.category,f=c.dname,p=c.pname,h=c.gameId,m=c.slug,v=c.title,g=c.ctry,A=this._topDomain||this._parentDomain,b=new cD,y=b.get(),_=this.msgrt._ua,w=document.referrer,x=this.msgrt._layout,k=Ws.version,E=(null===(o=this._gameData)||void 0===o||null===(i=o.gft)||void 0===i?void 0:i.midroll.enabled)||!1,S=(null===(a=this._gameData)||void 0===a||null===(s=a.midroll_plus)||void 0===s?void 0:s.enabled)||!1,D={args:{rfr:w,category:l,dname:f,pname:p,gameId:h,slug:m,title:v,ctry:g,domain:A,loc:y,ua:_,layout:x,version:k,visitorId:u,hasGft:E,hasMp:S},onError:function(e){r(this,R),this._sendSDKError(e)}.bind(this)},hL(D);case 20: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(r(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 r;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this._getGdModeIfExist()&&(r=lt()||"web",this.adInstance._send("tg.created",{gmid:this.options.gameId,dvc:r,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,r,n,o,i,a;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._isMasterGameURL()){e.next=12;break}if(n=new cD,0!==(null==(o=n.get("depth"))?void 0:o.value)||null===(t=this._gameData)||void 0===t||null===(r=t.cmp)||void 0===r||!r.enabled){e.next=12;break}if(null===(i=this._gameData)||void 0===i||null===(a=i.cmp)||void 0===a||!a.checkDepthOnly){e.next=9;break}return e.next=7,KT();case 7:e.next=12;break;case 9:if("html5.gamedistribution.com"!==this._topDomain){e.next=12;break}return e.next=12,KT();case 12:case"end":return e.stop()}}),e,this)}))),function(){return x.apply(this,arguments)})},{key:"testConsent",value:function(){try{jT();t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,UT({});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;qT.on("splash-hidden",function(t){r(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{Js("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,n){var o,i,a,s=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===(o=this._gameData.disableAds)||void 0===o?void 0:o.default)||!1,this._safeInit(),this._checkGameId(),this._checkGameDeleted(),this._checkBlocking(),this._changeMidrollInDebugMode(),void 0!==this._gameData.diagnostic&&void 0!==(null===(i=this._gameData.diagnostic)||void 0===i?void 0:i.close_ads)&&!1!==(null===(a=this._gameData.diagnostic)||void 0===a?void 0:a.close_ads)||(this.videoAdReady=this._initializeVideoAd().then(function(){r(this,s),(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){r(this,s);var t="".concat(e).startsWith("Error: Blocked:");Xs("gd-adflow adsBlocked",t,e);var n=this.get_ad_system_init_result(),o=n.ima,i=n.afg;if(this.adsBlocked=!o&&!i,this._isMasterGameURL()||this._isExtHostedGameURL()){this.msgrt.send("adblocker.flw",{message:"".concat(this.adsBlocked?"blocked":"ok")});var a=o||i?o?i?"none":"adsense":"ima":"all";this.msgrt.send("adblocker.adapters",{message:"".concat(a)})}this._sendSDKError(e),this._checkAdBlocker(),console.error(e.message||e)}.bind(this))),e.next=15,CL();case 15:t(this._gameData),e.next=23;break;case 18:e.prev=18,e.t0=e.catch(0),this._sendSDKError(e.t0),this.onResumeGame(e.t0.message,"warning"),n(e.t0);case 23:case"end":return e.stop()}}),e,this,[[0,18]])}))),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,r,n,o,i;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,t=this.get_ad_system_init_result(),r=t.ima,n=t.afg,r&&n){e.next=12;break}if(gt.set(this.blockingDetectedKey,!0),null===(o=this._gameData.rmblck)||void 0===o||!o.enabled){e.next=12;break}if(this.adBlockerPage){e.next=12;break}return e.next=9,iM();case 9:i=e.sent,this.adBlockerPage=new i(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 r=B(e);this.options=t?ot(r,t):r,this.options.gameId=this.options.gameId.trim()}},{key:"_setConsoleBanner",value:function(){if(!this._bridge.noConsoleBanner){var e=Ws.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 n={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(n))).catch(function(o){r(this,t),this._sendHLAnalyicsLog({query:AM(AM({},n),{},{error:null==o?void 0:o.message}),eventType:-e})}.bind(this)),this._sendHLAnalyicsLog({query:n,eventType:e}),this.adInstance._send_atom_event("hl.config",n),this._send_gametag_data("sdk_gameplay")}}},{key:"_sendHLAnalyicsLog",value:function(e){var t,r=e.query,n=e.eventType;if(1===n?t="hl.gameplay":2===n?t="hl.gameload":3===n?t="hl.adblock":-1===n?t="hl.gameplay.error":-2===n?t="hl.gameload.error":-3===n&&(t="hl.adblock.error"),t)try{this.dumper.send_atom_event(t,r)}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:"_checkConsole",value:function(){try{if(!gt.available)return;"developer.gamedistribution.com"===this._parentDomain||"developer.gamedistribution.com"===this._topDomain||"developer-acc.gamedistribution.com"===this._parentDomain||"developer-acc.gamedistribution.com"===this._topDomain?(gt.set("gd_debug_ex",!0),gt.set("gd_disable_midroll_timer",!0),gt.set("gd_tag",!0)):"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 It({gameId:this.options.gameId,hours:(new Date).getHours(),topDomain:this._topDomain,domain:this._parentDomain,referrer:this._parentURL,depth:pt(),version:Ws.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,n;r(this,e),_M=this._initGamedockTracker(window.GamedockSDK),this._sendGamedockEvent("pageview"),null!==(t=this._gameData.diagnostic)&&void 0!==t&&null!==(n=t.gameDock)&&void 0!==n&&n.adViewEvent&&_M.tracking.enableHeartBeatForPage({pageId:this.options.gameId,pageType:"game"},this._gameData.diagnostic.gameDock.heartbeatConfig),NT.track(_M,this._gameData)}.bind(this)).catch(function(t){r(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,r;null===(t=_M)||void 0===t||null===(r=t.tracking)||void 0===r||r.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){r(this,e),this._sendSDKError(t)}.bind(this))}},{key:"_loadLocus",value:function(){var e=t(d.mark((function e(){var t,n=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,qD();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(){r(this,n),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){r(this,n),this._sendSDKError(e)}.bind(this)).then(function(){r(this,n)}.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,n=t.gameId,o=t.slug,i=t.title,a=new cD,s={provider:"gd-sdk",page_depth:a.get("depth.value"),partner_domain_from:a.get("partner.domain.from"),top_domain_from:a.get("top.domain.from"),top_domain:this._topDomain,parent_domain:this._parentDomain,parent_url:this._parentURL,game_id:n,game_slug:o,game_title:i};lM({onError:function(t){r(this,e),this._sendSDKError(t)}.bind(this),args:s})}}},{key:"_getCleanUrl",value:function(e){var t=e;try{var r=new C(e,!0);t="".concat(r.protocol,"//").concat(r.hostname,"/").concat(r.pathname)}catch(e){}return t}},{key:"_subscribeToEvents",value:function(){var e=this;this.eventBus=new Dt,_t.forEach(function(t){var n=this;return r(this,e),this.eventBus.subscribe(t,function(e){return r(this,n),this._onEvent(e)}.bind(this),"sdk")}.bind(this)),wt.forEach(function(t){var n=this;return r(this,e),this.eventBus.subscribe(t,function(e){return r(this,n),this._onEvent(e)}.bind(this),"ima")}.bind(this)),this.eventBus.subscribe("COMPLETE",function(){r(this,e);var t=this._getDeveloperDomains(),n=t.developerDomain,o=t.gameApiDomain;if(n){fetch("https://".concat(o,"/game/v2/hasapi/").concat(this.options.gameId,"?timestamp=").concat((new Date).valueOf()));try{var i=JSON.stringify({type:"GD_SDK_IMPLEMENTED",gameID:this.options.gameId});window.location!==window.top.location?window.top.postMessage(i,"*"):null!==window.opener&&window.opener.location!==window.location&&window.opener.postMessage(i,"*")}catch(e){}}mT()}.bind(this),"ima"),this.eventBus.subscribe("CONTENT_PAUSE_REQUESTED",function(){return r(this,e),this.onPauseGame("New advertisements requested and loaded","success")}.bind(this),"ima"),this.eventBus.subscribe("IMPRESSION",function(t){var n,o;r(this,e),this.msgrt.send("ad.impression"),fT(),null!==(n=this._gameData.diagnostic)&&void 0!==n&&null!==(o=n.gameDock)&&void 0!==o&&o.adViewEvent&&NT.track(_M,this._gameData)}.bind(this),"ima"),this.eventBus.subscribe("AD_ERROR",function(t){r(this,e),this.msgrt.send("ad.error",{message:t.message,details:t.details})}.bind(this),"ima"),this.eventBus.subscribe("AD_SDK_REQUEST",function(t){r(this,e),this._sendAdRequestContext(t.message)}.bind(this),"sdk"),this.eventBus.subscribe("SDK_ERROR",function(t){if(r(this,e),t.message.startsWith("Blocked:")){var n=t.message.replace("Blocked:","").trim(),o=this._getCleanUrl(n),i="Blocked: ".concat(o);if(!this._bridge.noBlockerEvent&&(this.msgrt.send("error",{message:i}),!this._hasBlocker)){this._hasBlocker=!0;this.msgrt.send("adblck.src",{message:i});var a=this.get_ad_system_init_result(),s=a.ima,u=a.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){r(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){r(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 r(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=OD().config;return"https://".concat(t.gameAPI,"/game/v4/get/").concat(this.options.gameId.replace(/-/g,""),"/?domain=").concat(e,"&v=").concat(Ws.version,"&localTime=").concat((new Date).getHours())}},{key:"_checkBlocking",value:(A=t(d.mark((function e(){var t,r,n;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=!0,r=this._gameData,n=this._parentDomain.indexOf("gamedistribution.com")>=0,t=(t=void 0===this._gameData.dmain||this._gameData.dmain)||n,(r.bloc_gard&&!0===r.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,r=this._checkTokenGameUrl(),n=new cD,o="html5.gamedistribution.com"!==C(document.referrer).host,i=r&&!oM.SDKExistsOnUpperFrame&&n.get("depth.value")>0&&o;if(i&&(null===(e=this._gameData)||void 0===e||null===(t=e.directTokenUse)||void 0===t?void 0:t.enabled)){var a,s,u=null===(a=this._gameData)||void 0===a||null===(s=a.directTokenUse)||void 0===s?void 0:s.behavior;"to-loader"===u?this._redirectToLoaderFrame():"to-blocked-page"===u&&this._redirectToBlocking(!0)}return{blocked:i}}},{key:"_redirectToBlocking",value:function(e){var r=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.msgrt.send("blocked");var o=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,r.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:r._parentDomain,id:o.gameId,img:r._get_game_thumbnail_url(),title:o.title,unregistered:n,utm_source:r._parentDomain,utm_medium:(null==o?void 0:o.slug)||(null==o?void 0:o.title)||(null==o?void 0:o.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,r=this._gameData;setTimeout(t(d.mark((function t(){var n,o,i,a;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:n=C(location.href,!0),o=AM(AM({},n.query),{},{rd:"1"}),i=l.stringify(o),a="https://html5.gamedistribution.com/".concat(r.gameId,"/?").concat(i),window.location.href=a;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(){r(this,e),document.location="https://html5.api.gamedistribution.com/deleted.html"}.bind(this),100))}},{key:"_changeMidrollInDebugMode",value:function(){var e=this._gameData;kT().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,r,n;!1===(null===(e=this._gameData.loader)||void 0===e?void 0:e.mobile)&&this._getisMobile()&&(this._gameData.loader.enabled=!1);var o,i=this._gameData,a=i.gdpr&&!0===i.gdpr.consent,s=i.loader,u=null===(t=i.promo)||void 0===t?void 0:t[null===(r=i.promo)||void 0===r||null===(n=r.template)||void 0===n?void 0:n.preroll];(i.preroll||(this.adRequestTimer=Date.now()),this.options.loader.enabled)?null!=u&&u.enabled?this._createPromoBeforeSplash(i,a):s.enabled&&!0!==(null===(o=s.splash)||void 0===o?void 0:o.skip)?this._createSplash(i,a):this.onResumeGame("Skipped splash.","success"):s.enabled||this._bridge.isTokenGameURL&&this._bridge.isExtHostedGameURL||(this.options.advertisementSettings.autoplay||a?null!=u&&u.enabled?this._createPromoBeforeSplash(i,a):!1!==s.enabled&&this._createSplash(i,a):null!=u&&u.enabled&&this._createPromo(i,a))}},{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=ot(this.options.advertisementSettings,t.sdk)),this.macros=new Rt({game:t,bridge:this._bridge}),this.adInstance=new CT(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=Ws,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 r,n,o,i,a;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=!1,e.prev=1,e.next=4,iL();case 4:if(!(n=e.sent)){e.next=14;break}return e.next=8,n.isLoader();case 8:if(a=e.sent,!((null===(o=this._gameData)||void 0===o||null===(i=o.isv_fw)||void 0===i?void 0:i.enabled)&&a&&n.onEvent)){e.next=14;break}return r=!0,n.onEvent({event:t}),e.abrupt("return",r);case 14:e.next=19;break;case 16:e.prev=16,e.t0=e.catch(1),Js("[GD-IS] error on onEvent forward",e.t0);case 19:return e.abrupt("return",r);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){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(Js("[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:Xs("[developer-event]",t.name);try{this.options.onEvent({name:t.name,message:t.message,status:t.status,skipForward:t.skipForward,adPosition:t.adPosition})}catch(e){yt("DEVELOPER_ERROR",e.message,"warning")}case 11: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,GD();case 2:return t=e.sent,this.msgrt.setGameData(t),r=t.diagnostic,bt=r,e.abrupt("return",t);case 6:case"end":return e.stop()}var r}),e,this)}))),function(){return h.apply(this,arguments)})},{key:"_createSplash",value:(p=t(d.mark((function e(n,o){var i,a,s,u,c=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._getSplashTemplate(n);case 2:return i=e.sent,a=new i(AM(AM({},this.options),{},{isConsentDomain:o,version:Ws.version}),n,this._parentDomain),e.next=6,WD();case 6:s=e.sent,u=s.enabled,a.on("playClick",function(){var e,i,s,l=this;if(r(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:n.gameId}).catch(function(e){r(this,l),console.log("gd-adflow locus-first-user-action error",e)}.bind(this)),o){var f=new Date;f.setDate(f.getDate()+90),document.cookie="ogdpr_tracking=1; expires=".concat(f.toUTCString(),"; path=/")}if(this._hideCMPButton(),gL("play"),u)window.gdsdk.showAd(nt.Interstitial,{position:"preroll"}).catch(function(e){r(this,l),a.hide()}.bind(this));else{var p={position:"preroll"};(function(){r(this,l),tu.firstAdapterModeAdsense&&(console.log("promo-test, set first adapter to adssense 1"),p.adapter="adsense")}).bind(this),this.showAd(nt.Interstitial,p).catch(function(e){r(this,l)}.bind(this))}null!==(i=this._gameData)&&void 0!==i&&null!==(s=i.evnts)&&void 0!==s&&s.enabled&&(sP({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(){r(this,c),a.hide()}.bind(this)),this.eventBus.subscribe("SDK_GAME_START",function(){r(this,c),a.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,n){var o,i,a,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:a=e.sent,(s=new a(AM(AM({},this.options),{},{isConsentDomain:n,version:Ws.version,template:null===(o=t.promo)||void 0===o||null===(i=o.template)||void 0===i?void 0:i.preroll}),t)).on("done",function(){r(this,u),s.hide(),this._createSplash(t,n)}.bind(this)),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),console.log(e.t0),this._createSplash(t,n);case 12:case"end":return e.stop()}}),e,this,[[0,8]])}))),function(e,t){return f.apply(this,arguments)})},{key:"_createPromo",value:(c=t(d.mark((function e(t,n){var o,i,a,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:a=e.sent,(s=new a(AM(AM({},this.options),{},{isConsentDomain:n,version:Ws.version,template:null===(o=t.promo)||void 0===o||null===(i=o.template)||void 0===i?void 0:i.preroll}),t)).on("done",function(){r(this,u),s.hide(),this.onResumeGame("Resumed after the promo","warning")}.bind(this)),this.onPauseGame("Pause the game for the promo","success"),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),this.onResumeGame("Resumed after the promo","warning");case 12:case"end":return e.stop()}}),e,this,[[0,9]])}))),function(e,t){return c.apply(this,arguments)})},{key:"showBanner",value:function(){var e=this;this.showAd(nt.Interstitial).catch(function(){r(this,e)}.bind(this))}},{key:"IscForwardShowAd",value:(u=t(d.mark((function e(t){var r,n,o,i,a,s,u,c=arguments;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=c.length>1&&void 0!==c[1]?c[1]:{},i={forwarded:n=!1,result:o},e.prev=3,null===(a=this._gameData)||void 0===a||null===(s=a.isv_fw)||void 0===s?void 0:s.enabled){e.next=7;break}return e.abrupt("return",i);case 7:return e.next=10,iL();case 10:if(u=e.sent){e.next=13;break}return e.abrupt("return",i);case 13:return e.next=16,u.isLoader();case 16:if(e.sent||!u.hasRouter()){e.next=23;break}return Xs("[GD-IS] forwarding ad call",{location:window.location.href}),n=!0,e.next=22,u.showAd({adType:t,params:r});case 22:o=e.sent;case 23:e.next=29;break;case 26:e.prev=26,e.t0=e.catch(3),Js("[GD-IS] error on showAd forward",e.t0);case 29:return e.abrupt("return",{forwarded:n,result:o});case 30:case"end":return e.stop()}}),e,this,[[3,26]])}))),function(e){return u.apply(this,arguments)})},{key:"showAd",value:(s=t(d.mark((function e(r){var n,o=this,i=arguments;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=i.length>1&&void 0!==i[1]?i[1]:{},e.abrupt("return",new Promise(function(){var e=t(d.mark((function e(t,i){var a,s,u,c,l,f,p,h;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,o.IscForwardShowAd(r,n);case 3:if(s=e.sent,u=s.forwarded,c=s.result,!u){e.next=9;break}return t(c),e.abrupt("return");case 9:if(gL("play"),l={adType:r||"interstitial",params:n,adTimestamp:o.adRequestTimer},!o._autoResumeIfAdsAreDisabled(bL(l))){e.next=15;break}return e.abrupt("return",t());case 15:return e.next=18,o.sdkReady;case 18:return f=e.sent,e.next=21,o.videoAdReady;case 21:if(null!==(a=o._gameData.lp)&&void 0!==a&&a.load||o._sendLoadedEvent(1),o._sendGamedockGamePlay(),o._rejectAdIfGameBlocked({gameData:f,adRequest:l}),o._rejectAdIfAdDisabled({gameData:f,adRequest:l}),o._rejectAdIfUnsupportedType({adRequest:l}),"rewarded"===r&&o._setGameRewardedFlag(),null!=n&&n.isGift||null!=n&&n.isCompensation||o._rejectAdIfAdRateHits({gameData:f,adRequest:l}),n&&(n.isGift||n.isMidrollPlus||n.isCompensation)||!o.adBlockerPage||(o._setAdRequestTimer(),o.adBlockerPage.show()),o.adInstance.attachAfgPosition(l),!o.adFlowRunning){e.next=32;break}return e.abrupt("return",t());case 32:return o.adFlowRunning=!0,p=new YL(o),o._adFlow=p,e.next=37,p.runAdFlow(l);case 37:h=e.sent,o.adFlowRunning=!1,o._adFlow=null,t(h),o._post_message({topic:"adrequest.instream"}),e.next=50;break;case 44:e.prev=44,e.t0=e.catch(0),o.adFlowRunning=!1,o._adFlow=null,o.onResumeGame(e.t0.message,"warning"),i(e.t0.message);case 50:case"end":return e.stop()}}),e,null,[[0,44]])})));return function(t,r){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,r=!1,n=null===(t=this._gameData.diagnostic)||void 0===t?void 0:t.close_ads,o=this._gameData.disableAds[e],i=n||o;return Js("gd-adflow autoresume result: adModuleDisabled,adDisabled",n,o,e,this._gameData.diagnostic,this._gameData.disableAds),i&&(this._runAutoResume(),r=!0),r}},{key:"_runAutoResume",value:function(){var e=this,t="CONTENT_PAUSE_REQUESTED",n="CONTENT_RESUME_REQUESTED";this.eventBus.broadcast(t,{name:t,message:"Auto pause when ads are disabled"}),setTimeout(function(){r(this,e),this.eventBus.broadcast(n,{name:n,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,r,n,o,i,a,s,u,c,d,l,f,p,h,m;switch(e){case"preroll":null!==(t=this._gameData)&&void 0!==t&&null!==(r=t.gft)&&void 0!==r&&r[e].enabled&&(null===(n=this._gameData)||void 0===n||null===(o=n.gft)||void 0===o||null===(i=o[e].durations[this._giftCount[e]])||void 0===i?void 0:i.after)===this.adInstance.adPrerollCount&&this.decideToGiveAGift(e);break;case"midroll":null!==(a=this._gameData)&&void 0!==a&&null!==(s=a.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,r=e.adRequest;if(!t.afg_disabled&&!r.params.hasOwnProperty("fallback_adsense"))switch(r.params.position){case"preroll":case"start":case"next":r.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,r=bL(e.adRequest);if(t.disableAds[r]||this._whitelabelPartner)throw new Error("Advertisements are disabled.")}},{key:"_rejectAdIfUnsupportedType",value:function(e){var t=e.adRequest;if(t.adType){if(t.adType!==nt.Interstitial&&t.adType!==nt.Rewarded)throw new Error("Unsupported an advertisement type: ",t.adType)}else t.adType=nt.Interstitial}},{key:"_rejectAdIfRewardedDisabled",value:function(e){var t=e.gameData;if(e.adRequest.adType===nt.Rewarded&&!t.rewardedAds)throw new Error("Rewarded ads are disabled.")}},{key:"_rejectAdIfAdRateHits",value:function(e){var t,r,n,o,i,a,s=e.gameData,u=e.adRequest,c=null;u.adType===nt.Interstitial&&null!==(t=s.diagnostic)&&void 0!==t&&null!==(r=t.useMidrollIndex)&&void 0!==r&&r.enabled&&this.adInstance.noPreroll?this.adInstance.adMidrollCount>(null===(n=s.diagnostic)||void 0===n||null===(o=n.useMidrollIndex)||void 0===o?void 0:o.indexes.length)-1||(c=6e4*(null===(i=s.diagnostic)||void 0===i||null===(a=i.useMidrollIndex)||void 0===a?void 0:a.indexes[this.adInstance.adMidrollCount])):c=s.midroll;if(u.adType===nt.Interstitial&&void 0!==this.adRequestTimer&&Date.now()-this.adRequestTimer<c)throw new Error("The advertisement was requested too soon.")}},{key:"preloadAd",value:(a=t(d.mark((function e(r){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,o){var i,a;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,n.sdkReady;case 3:return i=e.sent,e.next=6,n.videoAdReady;case 6:if(!i.bloc_gard||!0!==i.bloc_gard.enabled){e.next=8;break}throw new Error("Game or domain is blocked.");case 8:if(!i.disableAds[r]&&!n._whitelabelPartner){e.next=10;break}throw new Error("Advertisements are disabled for this ad type => ".concat(r,"..."));case 10:if(r){e.next=14;break}r=nt.Rewarded,e.next=16;break;case 14:if(r===nt.Interstitial||r===nt.Rewarded){e.next=16;break}throw new Error("Unsupported an advertisement type:"+r);case 16:if(!n.adInstance){e.next=22;break}return e.next=19,n.adInstance.preloadAd(r);case 19:e.t0=e.sent,e.next=23;break;case 22:e.t0="gdsdk://preloaded";case 23:a=e.t0,t(a),e.next=30;break;case 27:e.prev=27,e.t1=e.catch(0),o(e.t1);case 30:case"end":return e.stop()}}),e,null,[[0,27]])})));return function(t,r){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)}))),function(e){return a.apply(this,arguments)})},{key:"cancelAd",value:(i=t(d.mark((function e(){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,n){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{r.adInstance.cancel(),r.onResumeGame("Advertisement(s) are cancelled. Start / resume the game.","success"),n()}catch(e){r.onResumeGame("Advertisement(s) are cancelled. Start / resume the game.","success"),t(e.message)}case 1:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)}))),function(){return i.apply(this,arguments)})},{key:"showDisplayAd",value:function(e){var r=this;return new Promise(function(){var n=t(d.mark((function t(n,o){var i;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,r.sdkReady;case 3:return i=t.sent,t.next=6,r.videoAdReady;case 6:if(!i.dAds.enabled){t.next=13;break}return t.next=9,r.adInstance.loadDisplayAd(e);case 9:r._post_message({topic:"adrequest.display"}),n(),t.next=14;break;case 13:o("Display-Ads are disabled.");case 14:t.next=19;break;case 16:t.prev=16,t.t0=t.catch(0),o(t.t0.message||t.t0);case 19:case"end":return t.stop()}}),t,null,[[0,16]])})));return function(e,t){return n.apply(this,arguments)}}())}},{key:"onResumeGame",value:function(e,t){var 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 n="SDK_GAME_START";this.eventBus.broadcast(n,{name:n,message:e,status:t,analytics:{category:"SDK",action:n,label:this.options.gameId+""}}),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()||(sP({event:"GameStarted",game:this._gameData}),this._send_gametag_data("game_started"))}},{key:"onPauseGame",value:function(e,t){var r;this._allowExternals({enabled:!0});try{this.options.pauseGame()}catch(e){yt("DEVELOPER_ERROR",e.message,"warning")}var n="SDK_GAME_PAUSE";this.eventBus.broadcast(n,{name:n,message:e,status:t,analytics:{category:"SDK",action:n,label:this.options.gameId+""}}),null===(r=this._gameData.evnts)||void 0===r||!r.enabled||this._isMasterGameURL()&&!this._isExtHostedGameURL()||(sP({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(r(this,e),!this._isFullScreen){var t=document.body,n=t.requestFullScreen||t.webkitRequestFullScreen||t.mozRequestFullScreen||t.msRequestFullscreen;if(n)n.call(t);else if(void 0!==window.ActiveXObject){var o=new ActiveXObject("WScript.Shell");null!==o&&o.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){r(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,n,o=this,i=new C(e),a=i.host;return i.href,n=((null===(t=this._gameData.urlBlockExc)||void 0===t?void 0:t.hosts)||[]).some(function(e){return r(this,o),e===a}.bind(this)),n}},{key:"_removeExternalsInHtml",value:function(e){var t=this;!1===e.enabled&&window.document.querySelectorAll("a").forEach(function(e){var n=this;r(this,t);var o=!!(e.innerText.toLowerCase().includes("start")||e.innerText.toLowerCase().includes("play")||e.innerText.toLowerCase().includes("continue")),i=e.getAttribute("href");if(!this._shouldAllowExternalUrl(i)){var a=e.getAttribute("href");e.removeAttribute("href"),o||(e.onclick=function(e){return r(this,n),e.preventDefault(),this.msgrt.send("external",{message:"H> ".concat(a)}),!1}.bind(this))}}.bind(this))}},{key:"_getBridgeContext",value:function(){var e=this._isTokenGameURL(),t=this._isMasterGameURL(),r=this._isExtHostedGameURL(),n=e||r?this._getTokenGameURLConfig():{};n=n||{};var o=decodeURIComponent((e||r)&&n.parentURL?n.parentURL:at()),i=decodeURIComponent((e||r)&&n.parentDomain?n.parentDomain:it()),a=decodeURIComponent((e||r)&&n.topDomain?n.topDomain:r&&0===pt()?i:vt()),s=(e||r)&&n.loaderEnabled,u=(e||r)&&n.loaderEnabled,c=(e||r)&&n.loaderEnabled,d=(e||r)&&n.loaderEnabled,l=(e||r)&&n.loaderEnabled,f=(e||r)&&n.loaderEnabled,p=(e||r)&&n.loaderEnabled,h=(e||r)&&n.loaderEnabled,m=(e||r)&&n.loaderEnabled&&n.hasImpression&&n.version>="1.1.24";return{isTokenGameURL:e,isMasterGameURL:t,isExtHostedGameURL:r,noConsoleBanner:s,noLoadedEvent:u,noBlockerEvent:c,noPreroll:h,parentURL:o,parentDomain:i,topDomain:a&&a.length?a:i,noGAPageView:d,noLotamePageView:l,noGamedockSDK:f,noMinijuegosSDK:p,version:n.version,pauseGameOnStartup:m,depth:pt(),domainMatched:i===a,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,r=e.pathname,n="".concat(t).concat(r);return/http[s]?:\/\/(html5\.gamedistribution\.com\/[A-Za-z0-9]{8})\/(.*)$/i.test(n)}},{key:"_isTokenGameURL",value:function(){var e,t=/http[s]?:\/\/(html5\.gamedistribution\.com\/[A-Za-z0-9]{8})\/(.*)$/i,r="1"===(null===(e=C(location.href,!0).query)||void 0===e?void 0:e.rd);return t.test(location.href)||!r&&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 r=new C(location.href,!0);if(!r.query.gd_zone_config)return;e=r.query.gd_zone_config}else if(t.test(document.referrer)){var n=new C(document.referrer,!0);if(!n.query.gd_zone_config)return;e=n.query.gd_zone_config}else{var o=new C(location.href,!0);if(!o.query.gd_zone_config)return;e=o.query.gd_zone_config}return JSON.parse(rt.decode(decodeURIComponent(e)))}catch(e){}}},{key:"_getSplashTemplate",value:function(e){var t=e.splash;return new TT(t).splash()}},{key:"_createPrerollPromoTemplate",value:(o=t(d.mark((function e(t){var r,n,o,i,a;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=null===(r=t.promo)||void 0===r?void 0:r[null===(n=t.promo)||void 0===n||null===(o=n.template)||void 0===o?void 0:o.preroll],a=new OT(i),e.abrupt("return",a.promo());case 3:case"end":return e.stop()}}),e)}))),function(e){return o.apply(this,arguments)})},{key:"_formatTokenURLSearch",value:function(e){var t="";try{t=encodeURIComponent(rt.encode(JSON.stringify(e)))}catch(e){}try{var r=new C(location.href,!0);return r.query=r.query||{},r.query.gd_zone_config=t,"?".concat(l.stringify(r.query))}catch(e){return"?gd_zone_config=".concat(t)}}},{key:"_extendUrlQuery",value:function(e,t){var r=new C(e,!0);return r.query=AM(AM({},r.query),t),r.toString()}},{key:"_base64_encode",value:function(e){return rt.encode(JSON.stringify(e))}},{key:"session",value:function(){var e=this;return new Promise(function(){var r=t(d.mark((function t(r,n){var o;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:o=e._gameData,r({ads:{display:{enabled:o.dAds.enabled},rewarded:{enabled:o.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 r.apply(this,arguments)}}())}},{key:"sendGenericEvent",value:function(e){console.log("Received generic event",e,this._isMasterGameURL());try{var t,r;if("track-milestone"==e.eventName)_M.tracking.trackEvent("milestoneAchieved",{pageId:this.options.gameId,pageType:"game",isAuthorized:null===(t=e.data)||void 0===t?void 0:t.isAuthorized,milestoneDescription:null===(r=e.data)||void 0===r?void 0:r.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,n=t.assets.find(function(t){return r(this,e),t.hasOwnProperty("name")&&512===t.width&&512===t.height}.bind(this));return n||(n=t.assets.length>0?t.assets[0]:{name:"logo.svg"}),"https://img.gamedistribution.com/".concat(n.name)}},{key:"_post_message",value:function(e){var t,r=e.topic,n=e.data,o=null!==(t=location.ancestorOrigins)&&void 0!==t&&t.length?location.ancestorOrigins[location.ancestorOrigins.length-1]:"*";try{var i=window.top||window.parent;i&&i.postMessage({source:"gdsdk",topic:r,data:n},o)}catch(e){console.error((null==e?void 0:e.message)||e)}}},{key:"fixScore",value:function(){var e,t,n,o,i=this;if(null===(e=this._gameData)||void 0===e||null===(t=e.fix_score)||void 0===t?void 0:t.enabled){var a=(null===(n=this._gameData)||void 0===n||null===(o=n.fix_score)||void 0===o?void 0:o.wait)||10;setTimeout(function(){var e=this;r(this,i),this.showAd(nt.Interstitial,{position:"midroll"}).catch(function(t){r(this,e)}.bind(this))}.bind(this),1e3*a)}}},{key:"executeCompensation",value:(n=t(d.mark((function e(n){var o,i,a,s,u,c,l=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=(null==n?void 0:n.whenAvailable)||!1,i=!this.adInstance.requestRunning&&!this.adFlowRunning,a=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(nt.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)}}(),!i){e.next=10;break}return e.next=7,a();case 7:return s=e.sent,e.abrupt("return",s);case 10:if(!o){e.next=17;break}return u=!1,e.next=15,new Promise(function(e,n){var o=this;r(this,l);var i=!1,s=setInterval(t(d.mark((function t(){var r;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o.adInstance.requestRunning||o.adFlowRunning){t.next=19;break}return clearInterval(s),t.prev=4,t.next=7,a();case 7:r=t.sent,i=!0,e(r),u=!0,t.next=19;break;case 14:t.prev=14,t.t0=t.catch(4),Js("[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(){r(this,o),i||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 n.apply(this,arguments)})},{key:"decideToGiveAGift",value:function(e){var n=this;try{var o,i=null===(o=this._gameData)||void 0===o?void 0:o.gft[e],a="gift";if(!TL({rateType:a,gameData:this._gameData}))return void Js("[compensation] rate check did not pass for ".concat(a));Js("[compensation] rate check passed for ".concat(a));var s=setInterval(t(d.mark((function t(){var o=this;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n.adInstance.requestRunning||n.adFlowRunning?console.log("Advertisement already running..."):(Js("gd-adflow WILL GIVE GIFT!!!"),n.showAd(nt.Interstitial,{position:e,isGift:!0}).catch(function(e){r(this,o)}.bind(this)),clearInterval(s),n._giftCount[e]++);case 1:case"end":return t.stop()}}),t,this)}))),1e3*i.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 bM}},{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,r=e.gameApiDomain;if(t){fetch("https://".concat(r,"/game/v2/hasrewarded/").concat(this.options.gameId,"?timestamp=").concat((new Date).valueOf()));try{var n=JSON.stringify({type:"GD_SDK_REWARDED_SET",gameID:this.options.gameId});window.location!==window.top.location?window.top.postMessage(n,"*"):null!==window.opener&&window.opener.location!==window.location&&window.opener.postMessage(n,"*")}catch(e){}}}catch(e){}}},{key:"_getGdModeIfExist",value:function(){var e=this,t=new Proxy(new URLSearchParams(window.location.search),{get:function(t,n){return r(this,e),t.get(n)}.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(TL({rateType:"midroll+",gameData:this._gameData})&&null!==(e=this._gameData.midroll_plus)&&void 0!==e&&e.enabled&&!this.isMidrollPlusExecuted){var n;this.isMidrollPlusExecuted=!0;var o=this._gameData.midroll_plus.type||"midroll";if(null!==(n=this._gameData.midroll_plus)&&void 0!==n&&n.interval)var i=setInterval(function(){var e,n,a=this;(r(this,t),this.adFlowRunning)||(this.showAd(nt.Interstitial,{position:"midroll",giftType:o,isMidrollPlus:!0}).catch(function(e){r(this,a)}.bind(this)),this._mplus_count++,"infinite"!==(null===(e=this._gameData.midroll_plus)||void 0===e?void 0:e.interval)&&this._mplus_count===(null===(n=this._gameData.midroll_plus)||void 0===n?void 0:n.interval)&&clearInterval(i))}.bind(this),6e4*this._gameData.midroll_plus.timer);else setTimeout(function(){var e=this;r(this,t),this.showAd(nt.Interstitial,{position:"midroll",giftType:o,isMidrollPlus:!0}).catch(function(t){r(this,e)}.bind(this))}.bind(this),this._gameData.midroll)}}}]),e}();function xM(){return xM=t(d.mark((function e(){var t,n=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,qD();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){r(this,n),this._sendSDKError(e)}.bind(this));case 9:case"end":return e.stop()}}),e,this)}))),xM.apply(this,arguments)}var kM=new pD.exports.EventEmitter,EM=function(e){var t=this;!function(){xM.apply(this,arguments)}();var n,o=function(e){var n=this;return r(this,t),new Promise(function(t,o){var i=this;r(this,n);var a=function(e){r(this,i),"SDK_GAME_START"===e.name&&(kM.off("sdk-event",a),t())}.bind(this);kM.on("sdk-event",a),m("showAd",{adType:e})}.bind(this))}.bind(this),i=function(){return r(this,t),n||(n=new wM(e)),n}.bind(this),a=function(e){return r(this,t),o(e)}.bind(this),s=function(e){return r(this,t),"gdsdk://preloaded"}.bind(this),u=function(e){return r(this,t),i().showDisplayAd(e)}.bind(this),c=function(){return r(this,t),m("cancelAd")}.bind(this),d=function(){return r(this,t),m("openConsole")}.bind(this),l=function(){return r(this,t),m("showBanner")}.bind(this),f=function(){return r(this,t),m("session")}.bind(this),p=function(e){return r(this,t),m("sendGenericEvent",{options:e})}.bind(this),h=function(){r(this,t),console.log("_sendSDKReady")}.bind(this),m=function(e,n){var o=this;return r(this,t),n||(n={}),new Promise(function(t,i){r(this,o);try{var a={type:"gd-sdk",method:e,options:n};window.parent.postMessage(a,"*"),t()}catch(e){console.log("gd:adp:m:s:error",e),t()}}.bind(this))}.bind(this),v=function(){r(this,t);window.addEventListener("message",(function(e){var t=e.data;e.origin,e.source;var r=t.type,n=t.event;"gd-sdk-on-event"===r&&n&&A(n)}),!1)}.bind(this),g=function(){r(this,t),v(),m("init")}.bind(this),A=function(n){r(this,t);try{kM.emit("sdk-event",n),e.onEvent&&e.onEvent(n)}catch(e){console.log("DEVELOPER ERROR on forwarder-sdk")}}.bind(this);return{showBanner:l,showAd:a,preloadAd:s,showDisplayAd:u,cancelAd:c,openConsole:d,getSession:f,onEvent:A,init:g,_sendSDKReady:h,sendGenericEvent:p}},SM=function(e){var t=EM(e);return t.init(),t},DM=function(){var e=this,t=function(){r(this,e);return/http[s]?:\/\/(html5\.gamedistribution\.com\/[A-Fa-f0-9]{32})(.*)$/i.test(location.href)}.bind(this),n=function(){r(this,e);return/http[s]?:\/\/(html5\.gamedistribution\.com\/[A-Za-z0-9]{8})\/(.*)$/i.test(location.href)}.bind(this),o=function(){r(this,e);return/^http[s]?:\/\/.*?gd_sdk_referrer_url=.*$/i.test(location.href)}.bind(this),i=function(){r(this,e);var o="html5.gamedistribution.com"!==C(window.location.href).host;return t()&&!(n()||o)?"loader-frame":"game-frame"}.bind(this);return{isMasterGameURL:t,isTokenGameURL:n,isExtHostedGameURL:o,whichFrame:i}},RM="gd-sdk-frame-handshake-request",IM="gd-sdk-frame-handshake-response",CM=function(e){var t=this;return new Promise(function(e,n){var o=this;r(this,t);var i={type:RM},a=!1;window.addEventListener("message",(function(t){var r=t.data,n=t.origin,o=t.source,i=r.type;if(i===RM){var s={type:IM};o.postMessage(s,n)}else i===IM&&(a=!0,e({origin:n,source:o}))})),setTimeout(function(){r(this,o),a||e()}.bind(this),200),window.parent!==window?window.parent.postMessage(i,"*"):e()}.bind(this))},OM=function(){var e=t(d.mark((function e(){var t,r,n,o,i,a,s;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,KD();case 2:return t=e.sent,e.next=6,CM();case 6:if(r=e.sent,oM.SDKExistsOnUpperFrame=!!r,t){e.next=10;break}return e.abrupt("return",!1);case 10:return n=DM(),o=n.isMasterGameURL,n.isTokenGameURL,i=o(),e.next=14,VD();case 14:return a=e.sent,s=!1,s=a?!i&&!!r:!i,e.abrupt("return",s);case 18:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),TM=$r,PM=Yt,LM=Zs,MM=Fa,BM=PM(Pa.f),jM=PM([].push),UM=function(e){return function(t){for(var r,n=MM(t),o=LM(n),i=o.length,a=0,s=[];i>a;)r=o[a++],TM&&!BM(n,r)||jM(s,e?[r,n[r]]:n[r]);return s}},FM={entries:UM(!0),values:UM(!1)}.values;Gs({target:"Object",stat:!0},{values:function(e){return FM(e)}});var NM,$M={},GM=function(e){try{if(e.skipForward)return void Js("gd-adflow fw-skip-forward",e);if(Js("gd-adflow fw-forwarding",e),$M.source){var t={type:"gd-sdk-on-event",event:e};$M.source.postMessage(t,$M.origin)}}catch(e){console.log("gd-sdk forwardEvent err",e)}},HM=function(){GM({name:"SDK_READY",status:"success",message:"Everything is ready."}),GM({name:"SDK_GAME_START",status:"success",message:"Advertisement(s) are done. Start / resume the game."}),GM({name:"CONTENT_RESUME_REQUESTED",status:"success",message:"Fired when content should be resumed. This usually happens when an ad finishes or collapses."})},zM=function(e){window.addEventListener("message",(function(n){var o=n.data,i=n.origin,a=n.source,s=o.type,u=o.method,c=o.options;if("gd-sdk-self"!==s){if("gd-sdk"===s){if(!$M.source&&"init"===u)return function(e){var t=e.source,r=e.origin;$M={source:t,origin:r}}({source:a,origin:i}),void HM();var l=e[u];l&&t(d.mark((function t(){var n,o=this;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,function(){r(this,o),"showAd"===u&&tu.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),!(n=l.apply(e,Object.values(c)))||!n.then){t.next=6;break}return t.next=6,n;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)},ZM=function(e){!function(e){var t=e.onEvent;e.onEvent=function(e){GM(e),t.apply(this,arguments)}}(e);var t=new wM(e);return zM(t),t},KM=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 r,n;return L(e,[{key:"load",value:(n=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,Js("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 n.apply(this,arguments)})},{key:"runYMenu",value:(r=t(d.mark((function e(t){var r;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.gameId,this.module){e.next=4;break}return e.next=4,this.load();case 4:(new this.module.Aeria).renderYMenu({gameId:r});case 6:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})}]),e}(),qM=function(){var e=t(d.mark((function e(){var r,n,o,i,a,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(r=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}}(),n=r.isAeriaDomain,o=r.isAeriaStagingDomain,!n){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(),r=t.pathname,n=r.split("/"),o=n[n.length-1];Xs("aeria-ylogin:loc",t,r,o),e=o}catch(e){eu("Error on getting aeria game id",e)}return e}(),c={action:"score",data:{gameId:u,score:100},env:o?"staging":"production",system:"Softgames"},l=function(){var e=window.parent||window,t=c;e.postMessage(t,"*")},f=new Dt,e.next=13,GD();case 13:p=e.sent,h=null==p||null===(i=p.aeria)||void 0===i?void 0:i.yMenuExcluded,m=null==p||null===(a=p.aeria)||void 0===a?void 0:a.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 KM).runYMenu({gameId:u});case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),g=DM(),A=g.whichFrame,"game-frame"===A()&&(h||v());case 21:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),VM=function(e){try{var t=lD(e);e.gameId||t.send("nogameid",{message:"".concat(t_.parentURL)})}catch(e){}},WM=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,qM();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)}}(),YM=function(){var e=t(d.mark((function e(t){var r,n;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,VM(t),$D(t),e.next=5,OM();case 5:return r=e.sent,e.next=8,WM();case 8:return window.isForwarderFrame=r,n=r?SM(t):ZM(t),YD(),e.abrupt("return",n);case 14:return e.prev=14,e.t0=e.catch(0),console.log("gd:adp: sdk adaptor create failed, fallback to default adapter",e.t0),e.abrupt("return",ZM(t));case 18:case"end":return e.stop()}}),e,null,[[0,14]])})));return function(t){return e.apply(this,arguments)}}(),QM={create:YM};function JM(){return(JM=t(d.mark((function e(t,r){var n;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,XD();case 2:if(!e.sent){e.next=7;break}e.t0=window.gdsdk,e.next=10;break;case 7:return e.next=9,rB(t);case 9:e.t0=e.sent;case 10:return n=e.t0,e.abrupt("return",r(n));case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var XM,eB,tB=!1;function rB(e){var t=this;return new Promise(function(n,o){var i=this;if(r(this,t),NM)return n(NM);if(tB)var a=setInterval(function(){r(this,i),NM&&(tB=!1,clearInterval(a),n(NM))}.bind(this),100);else tB=!0,QM.create(e).then(function(e){r(this,i),NM=e,e._sendSDKReady(),tB=!1,n(NM)}.bind(this))}.bind(this))}function nB(e){return rB(e),{invoke:function(t){return function(e,t){return JM.apply(this,arguments)}(e,t)}}}function oB(e,n){var o=this;return new Promise(function(i,a){var s,u=this;r(this,o);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==n||null===(s=n.game)||void 0===s?void 0:s.version);iB({text:"sdk-wrapper-script-load"}),ft(c[0],"gd-sdk-wrp",{alternates:c}).catch(function(e){r(this,u),iB({text:"sdk-wrapper load error",error:e.message}),this._sendSDKError(e),a(e)}.bind(this)).then(t(d.mark((function t(){var r,o;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,iB({text:"sdk-wrapper load success"}),r=window.GDSDKWRP.GDSDKWRP,o=new r,iB({text:"sdk-wrapper before gdSdkWrp.init"}),t.next=7,o.init(e,n);case 7:eB=t.sent,iB({text:"sdk-wrapper after gdSdkWrp.init"}),i(eB),t.next=16;break;case 12:t.prev=12,t.t0=t.catch(0),iB({text:"sdk-wrapper load error 2",error:t.t0.message}),a(t.t0);case 16:case"end":return t.stop()}}),t,null,[[0,12]])}))))}.bind(this))}function iB(e){try{var t={tp:"gd.wrp",args:e};fetch("https://tag.atom.gamedistribution.com/v1/dmp?ar=".concat(encodeURIComponent(rt.encode(JSON.stringify(t))))),console.log(fP(Object.values(e)))}catch(e){}}function aB(e){if(e){var t=e.name,r=e.message,n=e.status;try{iB({text:"samsung-wrp send-game-event",evt:e,hasOptions:!!XM}),XM&&XM.onEvent({name:t,message:r,status:n})}catch(t){iB({text:"samsung-wrp DEVELOPER-ERROR",evt:e,err:t})}}}function sB(e){return uB.apply(this,arguments)}function uB(){return(uB=t(d.mark((function e(t){var r,n,o,i,a,s,u,c,l;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return XM=t,$D(t),e.next=4,GD();case 4:if(i=e.sent,!eB){e.next=7;break}return e.abrupt("return",eB);case 7:if(a=null==i||null===(r=i.sdk_wrp)||void 0===r?void 0:r.enabled,s=null==i||null===(n=i.sdk_wrp)||void 0===n?void 0:n.version,u=null==i?void 0:i.gameId,c=null==i?void 0:i.title,dB("isWrapEnabled ".concat(a)),a){e.next=14;break}return e.abrupt("return");case 14:return l=null==i||null===(o=i.sdk_wrp)||void 0===o?void 0:o.wrapper,e.next=17,oB(l,{onEvent:aB,game:{gameId:u,title:c,version:s}});case 17:return eB=e.sent,e.abrupt("return",eB);case 19:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function cB(){return cB=t(d.mark((function e(t){var r,n,o;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t._get_developer_sets,dB("beforeGetDeveloperSettings"),n=r(),dB("afterGetDeveloperSettings"),e.prev=4,e.next=7,sB(n);case 7:o=e.sent,dB("after get SDK wrapper: ".concat(!!o)),o&&(dB("setting SDK Wrapper as gd-sdk"),window.sdkWrapper=o,window.gdsdk=o,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),dB("Error on SDK wrapper init: ".concat(e.t0.message));case 16:case"end":return e.stop()}}),e,null,[[4,12]])}))),cB.apply(this,arguments)}function dB(e){window.sdkLog.push(e)}function lB(){var e={};try{"object"===("undefined"==typeof GD_OPTIONS?"undefined":n(GD_OPTIONS))&&GD_OPTIONS?e=GD_OPTIONS:window.gdApi&&"object"===n(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,r=C(window.location.href,!0),n=r.host,o=r.query,i=n,a=null==o?void 0:o.gd_sdk_referrer_url;return a&&(a=a.startsWith("https://")||a.startsWith("http://")?a:"https://".concat(a),null!==(t=e=C(a,!0))&&void 0!==t&&t.host&&(i=e.host)),i}()?dB("skipped normal SDK init!"):(!function(){lT();var e=nB(lB());function n(){var n=this;this.AdType=nt,this.preloadAd=function(){var n=t(d.mark((function t(n){var o,i=this;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.invoke(function(e){return r(this,i),e.preloadAd(n)}.bind(this));case 2:return o=t.sent,Xs("[developer-event] preloadAd check",o),t.abrupt("return",o);case 5:case"end":return t.stop()}}),t,this)})));return function(e){return n.apply(this,arguments)}}(),this.showAd=function(){var n=t(d.mark((function t(n,o){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){var t=this;if(r(this,a),n===nt.Display)return e.showDisplayAd(o);var i={};return function(){r(this,t),tu.firstAdapterModeAdsense&&(console.log("promo-test, set first adapter to adssense 2"),i.adapter="adsense")}.bind(this),e.showAd(n,i)}.bind(this));case 2:return i=t.sent,Xs("[developer-event] after showAd",i),t.abrupt("return",i);case 5:case"end":return t.stop()}}),t,this)})));return function(e,t){return n.apply(this,arguments)}}(),this.cancelAd=function(){var t=this;return e.invoke(function(e){return r(this,t),e.cancelAd()}.bind(this))},this.openConsole=function(){var t=this;return e.invoke(function(e){return r(this,t),e.openConsole()}.bind(this))},this.getSession=function(){var t=this;return e.invoke(function(e){return r(this,t),e.session()}.bind(this))},this.sendEvent=function(t){var n=this;return e.invoke(function(e){return r(this,n),e.sendGenericEvent(t)}.bind(this))},this.leaderboard={show:function(){r(this,n),$b.showLeaderboard()}.bind(this),addScore:function(e){r(this,n),$b.addScore(e)}.bind(this)}}n.prototype=new function(){this.showBanner=function(){var t=this;return e.invoke(function(e){return r(this,t),e.showBanner()}.bind(this))},this.play=function(){},this.customLog=function(){}},window.gdsdk=new n,window.gdApi=window.gdsdk}(),dB("afterSDKInit")),function(e){cB.apply(this,arguments)}({_get_developer_sets:lB})}();
|
|
39
|
+
const{deleteProperty:JS}=Reflect,XS=function(e){return"object"==typeof e?null===e:"function"!=typeof e},eD=function(e){var t,r;return!1!==QS(e)&&("function"==typeof(t=e.constructor)&&(!1!==QS(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf")))},tD=e=>"object"==typeof e&&null!==e||"function"==typeof e,rD=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}"`)},nD=(e,t,r)=>{const n=(e=>Array.isArray(e)?e.flat().map(String).join(","):e)(t?((e,t)=>{if("string"!=typeof e||!t)return e;let r=e+";";return void 0!==t.arrays&&(r+=`arrays=${t.arrays};`),void 0!==t.separator&&(r+=`separator=${t.separator};`),void 0!==t.split&&(r+=`split=${t.split};`),void 0!==t.merge&&(r+=`merge=${t.merge};`),void 0!==t.preservePaths&&(r+=`preservePaths=${t.preservePaths};`),r})(e,t):e);rD(n);const o=aD.cache.get(n)||r();return aD.cache.set(n,o),o},oD=(e,t)=>t&&"function"==typeof t.split?t.split(e):"symbol"==typeof e?[e]:Array.isArray(e)?e:nD(e,t,(()=>((e,t={})=>{const r=t.separator||".",n="/"!==r&&t.preservePaths;if("string"==typeof e&&!1!==n&&/\//.test(e))return[e];const o=[];let i="";const a=e=>{let t;""!==e.trim()&&Number.isInteger(t=Number(e))?o.push(t):o.push(e)};for(let t=0;t<e.length;t++){const n=e[t];"\\"!==n?n!==r?i+=n:(a(i),i=""):i+=e[++t]}return i&&a(i),o})(e,t))),iD=(e,t,r,n)=>{if(rD(t),void 0===r)JS(e,t);else if(n&&n.merge){const o="function"===n.merge?n.merge:Object.assign;o&&eD(e[t])&&eD(r)?e[t]=o(e[t],r):e[t]=r}else e[t]=r;return e},aD=(e,t,r,n)=>{if(!t||!tD(e))return e;const o=oD(t,n);let i=e;for(let e=0;e<o.length;e++){const t=o[e],a=o[e+1];if(rD(t),void 0===a){iD(i,t,r,n);break}"number"!=typeof a||Array.isArray(i[t])?(tD(i[t])||(i[t]={}),i=i[t]):i=i[t]=[]}return e};aD.split=oD,aD.cache=new Map,aD.clear=()=>{aD.cache=new Map};var sD,uD=aD;function cD(e){var t=this,n={},o=(null==e?void 0:e._ancestor_origins)||window.location.ancestorOrigins,i=(null==e?void 0:e.self_url)||window.location.href,a=(null==e?void 0:e.self_origin)||window.location.origin,s=(null==e?void 0:e.referrer_url)||document.referrer;function u(e){return KS(n,e)}function c(e,t){return uD(n,e,t)}var d=function(){var e;r(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=o,t=n.depth.value,r=a;if(c("top.domain.from","fallback"),e&&e.length>0)r=e[e.length-1],c("top.domain.from","origins");else if(0===t)r=a,c("top.domain.from","self-top");else if(1===t){var i=l(s);i&&(r=i.origin,c("top.domain.from","referrer"))}c("top.domain.value",r.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",n.top.domain.value),c("partner.domain.from","partner-fallback")}else c("partner.domain.value",n.top.domain.value),c("partner.domain.from","fallback")}(),e=f(),0===n.depth.value?(c("partner.url.value",i),c("partner.url.from","self-top")):e?HS(e)?(c("partner.url.value",i),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)||[i,s],r=0;r<t.length;r++){var n,o=l(t[r]);if(o){var a=null===(n=o.query)||void 0===n?void 0:n.gd_sdk_referrer_url;if(a&&(a=(a=decodeURIComponent(a)).startsWith("https://")||a.startsWith("http://")?a:"https://".concat(a),gS.isURL(a)))return a}}}return d(),{get:u,print:function(e){console.log(u(e))}}}var dD,lD=function(e){var t=this;if(!sD){var n={gameId:e.gameId,hours:(new Date).getHours(),topDomain:t_.topDomain,domain:t_.parentDomain,referrer:t_.parentURL,depth:pt(),version:Ws.version,byloader:t_.isTokenGameURL,isTokenGameURL:t_.isTokenGameURL,isMasterGameURL:t_.isMasterGameURL,isExtHostedGameURL:t_.isExtHostedGameURL,byloaderVersion:t_.version,tracking:r_.userDeclinedTracking,whitelabel:r_.whitelabelPartner,platform:lt()};sD=new It(n)}return sD||{send:function(){r(this,t)}.bind(this)}},fD={getGameData:function(e){var t=this;try{var n=e.replace("game.api.gamedistribution.com","game-api.gamedistribution.com");fetch(n).then(function(e){r(this,t)}.bind(this)).catch(function(e){r(this,t)}.bind(this))}catch(e){}},getGameLoaderIndex:function(e){var t=this;try{var n="https://html5-prod-aws.gamedistribution.com/".concat(e,"/");fetch(n).then(function(e){r(this,t)}.bind(this)).catch(function(e){r(this,t)}.bind(this))}catch(e){}}},pD={exports:{}},hD="object"==typeof Reflect?Reflect:null,mD=hD&&"function"==typeof hD.apply?hD.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};dD=hD&&"function"==typeof hD.ownKeys?hD.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var vD=Number.isNaN||function(e){return e!=e};function gD(){gD.init.call(this)}pD.exports=gD,pD.exports.once=function(e,t){return new Promise((function(r,n){function o(r){e.removeListener(t,i),n(r)}function i(){"function"==typeof e.removeListener&&e.removeListener("error",o),r([].slice.call(arguments))}DD(e,t,i,{once:!0}),"error"!==t&&function(e,t,r){"function"==typeof e.on&&DD(e,"error",t,r)}(e,o,{once:!0})}))},gD.EventEmitter=gD,gD.prototype._events=void 0,gD.prototype._eventsCount=0,gD.prototype._maxListeners=void 0;var AD=10;function bD(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function yD(e){return void 0===e._maxListeners?gD.defaultMaxListeners:e._maxListeners}function _D(e,t,r,n){var o,i,a,s;if(bD(r),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),i=e._events),a=i[t]),void 0===a)a=i[t]=r,++e._eventsCount;else if("function"==typeof a?a=i[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(o=yD(e))>0&&a.length>o&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,s=u,console&&console.warn&&console.warn(s)}return e}function wD(){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 xD(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},o=wD.bind(n);return o.listener=r,n.wrapFn=o,o}function kD(e,t,r){var n=e._events;if(void 0===n)return[];var o=n[t];return void 0===o?[]:"function"==typeof o?r?[o.listener||o]:[o]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(o):SD(o,o.length)}function ED(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function SD(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function DD(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);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 o(i){n.once&&e.removeEventListener(t,o),r(i)}))}}Object.defineProperty(gD,"defaultMaxListeners",{enumerable:!0,get:function(){return AD},set:function(e){if("number"!=typeof e||e<0||vD(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");AD=e}}),gD.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},gD.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||vD(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},gD.prototype.getMaxListeners=function(){return yD(this)},gD.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n="error"===e,o=this._events;if(void 0!==o)n=n&&void 0===o.error;else if(!n)return!1;if(n){var i;if(t.length>0&&(i=t[0]),i instanceof Error)throw i;var a=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw a.context=i,a}var s=o[e];if(void 0===s)return!1;if("function"==typeof s)mD(s,this,t);else{var u=s.length,c=SD(s,u);for(r=0;r<u;++r)mD(c[r],this,t)}return!0},gD.prototype.addListener=function(e,t){return _D(this,e,t,!1)},gD.prototype.on=gD.prototype.addListener,gD.prototype.prependListener=function(e,t){return _D(this,e,t,!0)},gD.prototype.once=function(e,t){return bD(t),this.on(e,xD(this,e,t)),this},gD.prototype.prependOnceListener=function(e,t){return bD(t),this.prependListener(e,xD(this,e,t)),this},gD.prototype.removeListener=function(e,t){var r,n,o,i,a;if(bD(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(o=-1,i=r.length-1;i>=0;i--)if(r[i]===t||r[i].listener===t){a=r[i].listener,o=i;break}if(o<0)return this;0===o?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,o),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},gD.prototype.off=gD.prototype.removeListener,gD.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var o,i=Object.keys(r);for(n=0;n<i.length;++n)"removeListener"!==(o=i[n])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},gD.prototype.listeners=function(e){return kD(this,e,!0)},gD.prototype.rawListeners=function(e){return kD(this,e,!1)},gD.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):ED.call(e,t)},gD.prototype.listenerCount=ED,gD.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"]},ID={gameAPI:"game.api.gamedistribution.com"},CD={gameAPI:"game-api-acc-real-aws.gamedistribution.com"},OD=function(){var e=this,t=RD.acc.some(function(t){var n;return r(this,e),t===(null===(n=window.location.host)||void 0===n?void 0:n.toLowerCase())}.bind(this));return{env:t?"acc":"prod",config:t?CD:ID}},TD=function(e){var t=this,n=e.url;return new Promise(function(e,o){r(this,t);var i=new XMLHttpRequest;i.open("GET",n,!0),i.onreadystatechange=function(){if(4==i.readyState)if(200==i.status){var t=JSON.parse(i.responseText);e(t)}else o(Error("Error occured on request: ".concat(i.status,", ").concat(i.statusText)))},i.onerror=function(e){o(e)},i.send()}.bind(this))};function PD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function LD(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?PD(Object(r),!0).forEach((function(t){ru(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):PD(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var MD,BD,jD,UD=new pD.exports.EventEmitter,FD=[],ND=function(e){FD.push(e)},$D=function(e){MD=lD(jD=e)},GD=function(){var e=t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(BD){e.next=6;break}return e.next=3,ZD(jD);case 3:BD=e.sent,UD.emit("game-data-ready",BD),HD();case 6:return e.abrupt("return",BD);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),HD=function(){var e,r;if(null!==(e=BD)&&void 0!==e&&null!==(r=e.aws_tst)&&void 0!==r&&r.enabled){var n,o,i,a,s;if(zD(),null!==(n=BD)&&void 0!==n&&null!==(o=n.aws_tst)&&void 0!==o&&null!==(i=o.ep)&&void 0!==i&&i.api&&null!==(a=BD)&&void 0!==a&&a.url)fD.getGameData(null===(s=BD)||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,ZD(jD);case 3:BD=e.sent,Js("gd-aws-test, new game data received",null===(t=BD)||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)}},zD=function(){var e=window.fetch;window.fetch=t(d.mark((function t(){var n,o,i,a,s,u,c,l,f,p,h,m,v,g,A,b,y,_,w,x=this,k=arguments;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(c=k.length,l=new Array(c),f=0;f<c;f++)l[f]=k[f];p=l[0],h=l[1],m=null===(n=BD)||void 0===n||null===(o=n.aws_tst)||void 0===o||null===(i=o.ep)||void 0===i?void 0:i.atm,v=null===(a=BD)||void 0===a||null===(s=a.aws_tst)||void 0===s||null===(u=s.ep)||void 0===u?void 0:u.msgrt,g=function(t,n){var o=this;r(this,x);var i=p.replace(t,n);e(i,h).then(function(){r(this,o)}.bind(this))}.bind(this);try{m&&p.indexOf("tag.atom")>0&&g("tag.atom.gamedistribution.com","atom-tag-prod-aws.gamedistribution.com"),v&&p.indexOf("msgrt.gamedistribution.com")>0&&(Js("gd-aws-test hook",null===(A=BD)||void 0===A?void 0:A.aws_tst,null===(b=BD)||void 0===b||null===(y=b.aws_tst)||void 0===y||null===(_=y.ep)||void 0===_?void 0:_.msgrt),g("msgrt.gamedistribution.com","msgrt-prod-aws.gamedistribution.com"))}catch(e){}return t.next=9,e(p,h);case 9:return w=t.sent,t.abrupt("return",w);case 11:case"end":return t.stop()}}),t,this)})))},ZD=function(e){var n=this;MD.send("gdfw.loading",{message:"loading"}),FD=[],ND("1"),ND("2");var o=new cD;ND("3");var i=o.get("partner.domain.value");ND("4");var a=function(){return r(this,n),{gameId:e.gameId,disableAds:{},preroll:!0,midroll:12e4,rewardedAds:!1,title:"",tags:[],category:"",assets:[],dmain:!0,sdk:{},loader:{},splash:{},promo:{},dAds:{},pAds:{},mAds:{},rAds:{}}}.bind(this);ND("5");var s=function(){r(this,n);var t=u(),o=t?"&mode=".concat(t):"",a=OD().config;return"https://".concat(a.gameAPI,"/game/v4/get/").concat(e.gameId.replace(/-/g,""),"/?domain=").concat(i).concat(o,"&v=").concat(Ws.version,"&localTime=").concat((new Date).getHours())}.bind(this);ND("6");var u=function(){var e=this;r(this,n);var t=new Proxy(new URLSearchParams(window.location.search),{get:function(t,n){return r(this,e),t.get(n)}.bind(this)});return!t.gd_mode&&window.location.search.includes("gd_mode")?window.location.search.split("gd_mode=")[1]:t.gd_mode}.bind(this);return ND("7"),new Promise(function(e){var o=this;r(this,n),ND("7.1");var i=a();try{ND("7.2");var u=s();ND("7.3"),fetch(u).then(function(){var e=t(d.mark((function e(t){var r;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return ND("7.4"),e.prev=1,e.next=4,t.json();case 4:r=e.sent,e.next=13;break;case 7:return e.prev=7,e.t0=e.catch(1),Js("gameData fetch error, fallback to other ajax api",e.t0),e.next=12,TD({url:u});case 12:r=e.sent;case 13:return e.abrupt("return",r);case 14:case"end":return e.stop()}}),e,null,[[1,7]])})));return function(t){return e.apply(this,arguments)}}()).then(function(t){var n=this;if(r(this,o),ND("7.5"),t.success){var a,s,c,d=t.result.game;ND("7.6");var l={company:d.company,gameId:d.gameMd5,slug:d.slug,pname:d.pname,dname:d.dname,status:d.status,activeStatus:d.activeStatus,description:d.description,disableAds:d.enableAds,preroll:d.preRoll,midroll:6e4*d.timeAds,rewardedAds:d.rewardedAds,title:d.title,publishedAt:d.publishedAt,tags:d.tags,category:d.category,assets:d.assets,disp_2nd_prer:d.disp_2nd_prer,ctry_vst:d.ctry_vst,ctry:d.ctry,crtv:d.crtv,dmain:d.dmain,dmn:d.dmn,aws_tst:d.aws_tst,meta:d.meta,adsc:d.adsc,adspn:Ys(d.adspn)||{},__t4r:Ys(d.__t4r)||{},block_exts:Ys(d.push_cuda),bloc_gard:Ys(d.bloc_gard),cookie:Ys(d.cookie),gdpr:Ys(d.gdpr),diagnostic:Ys(d.diagnostic),cmp:Ys(d.cmp),gft:Ys(d.gft)||{},sdk:Ys(d.sdk)||{},sdkfw:Ys(d.sdkfw)||{},loader:Ys(d.loader)||{},splash:Ys(d.splash)||{},promo:Ys(d.promo)||{},dAds:Ys(d.dads)||{},pAds:Ys(d.pads)||{},mAds:Ys(d.mads)||{},rAds:Ys(d.rads)||{},lp:Ys(d.lp)||{},extsc:Ys(d.extsc)||{},evnts:Ys(d.evnts)||{},dp:Ys(d.dp)||{},adflw:Ys(d.adflw)||{},afgszf:Ys(d.afgszf)||{},fllc:Ys(d.fllc)||{},lotm:Ys(d.lotm)||{},t4rc:Ys(d.t4rc)||{},midroll_plus:Ys(d.midroll_plus)||{},gmky:Ys(d.gmky)||{},urlBlockExc:Ys(d.url_blck_exc)||{},sdk_wrp:Ys(d.sdk_wrp)||{},dbglg:Ys(d.dbglg)||{},extHosting:Ys(d.ext_hosting)||{},directTokenUse:Ys(d.dtu)||{},aeria:Ys(d.aeria)||{},advlm:Ys(d.advlm)||{},ad_blcks:Ys(d.ad_blcks)||{},rmblck:Ys(d.rmblck)||{},gs_trc:Ys(d.gs_trc)||{},rwskp:Ys(d.rwskp)||{},isv_fw:Ys(d.isv_fw)||{},ext_vst:Ys(d.ext_vst)||{},fix_score:Ys(d.fix_score)||{},compensation:Ys(d.comps)||{}};ND("7.7");var f=ot(B(i),l);ND("7.8"),f.afg_disabled=!1===(null===(a=f.sdk)||void 0===a||null===(s=a.afg)||void 0===s?void 0:s.enabled),f.url=u,function(){r(this,n),void 0!==tu.afgEnabled&&(f.afg_disabled=!tu.afgEnabled),void 0!==tu.promoEnabled&&(f.promo=f.promo||{},f.promo=LD(LD({},f.promo),{},{rainbow:{enabled:tu.promoEnabled}}))}.bind(this),ND("7.9"),null!==(c=f.pAds)&&void 0!==c&&c.enabled&&(f.preroll=!0),ND("7.10"),MD.send("gdfw.success",{message:"success"}),e(f)}else{i.failed=!0;var p=FD[FD.length-1];MD.send("gdfw.err",{message:"".concat(p,": json error")}),e(i)}}.bind(this)).catch(function(t){r(this,o);var n=FD[FD.length-1];MD.send("gdfw.err",{message:"".concat(n,": ").concat(t.message?t.message:t)}),i.failed=!0,e(i)}.bind(this))}catch(t){var c=FD[FD.length-1];MD.send("gdfw.err",{message:"".concat(c,": global ").concat(t.message?t.message:t)}),i.failed=!0,e(i)}}.bind(this))},KD=function(){var e=t(d.mark((function e(){var t,r;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,GD();case 2:return r=e.sent,e.abrupt("return",!(null==r||null===(t=r.sdkfw)||void 0===t||!t.enabled));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),qD=function(){var e=t(d.mark((function e(){var t,r,n;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,GD();case 2:return r=e.sent,n=null==r||null===(t=r.diagnostic)||void 0===t||!t.close_ga,e.abrupt("return",n);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),VD=function(){var e=t(d.mark((function e(){var t,r;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,GD();case 2:return r=e.sent,e.next=5,KD();case 5:if(e.t0=e.sent,!e.t0){e.next=8;break}e.t0=!(null==r||null===(t=r.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)}}(),WD=function(){var e=t(d.mark((function e(){var t,r,n,o,i,a,s,u;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,GD();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===(r=s.extsc)||void 0===r?void 0:r.path:"",name:u?null==s||null===(n=s.extsc)||void 0===n?void 0:n.name:"",ref:u?null==s||null===(o=s.extsc)||void 0===o?void 0:o.ref:"",loadedFlag:u?null==s||null===(i=s.extsc)||void 0===i?void 0:i.loadedFlag:void 0,loadedFlagCheck:!!u&&!(null==s||null===(a=s.extsc)||void 0===a||!a.loadedFlagCheck)});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),YD=function(){var e=t(d.mark((function e(){var t,n,o,i,a,s=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,WD();case 2:if((t=e.sent).enabled){e.next=5;break}return e.abrupt("return");case 5:return n=t.path,o=t.name,i=t.ref,e.prev=6,a={},e.next=10,ft(n,o,{error_prefix:"Blocked:",exists:function(){return r(this,s),!!i&&!!window[i]}.bind(this),attrs:a});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",o,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)}}(),QD=!1,JD=!1,XD=function(){return new Promise(function(){var e=t(d.mark((function e(t,n){var o,i,a,s,u,c=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!QD){e.next=4;break}return e.abrupt("return",t(JD));case 4:QD=!0;case 5:return e.next=7,WD();case 7:if((o=e.sent).enabled){e.next=10;break}return e.abrupt("return",t(!1));case 10:if(i=o.loadedFlag,!(a=o.loadedFlagCheck)||i){e.next=13;break}return e.abrupt("return",t(!1));case 13:if(a){e.next=16;break}return JD=!0,e.abrupt("return",t(!0));case 16:s=!0,setTimeout(function(){r(this,c),s&&(s=!1,QD=!0,t(!1))}.bind(this),5e3),u=setInterval(function(){r(this,c),s&&a&&window[i]?(s=!1,QD=!0,JD=!0,clearInterval(u),t(!0)):s||clearInterval(u)}.bind(this),100);case 19:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}())},eR=Gs,tR=tg,rR=zt,nR=un,oR=Fr,iR=Ym,aR=nb,sR=oi,uR=tR&&tR.prototype;if(eR({target:"Promise",proto:!0,real:!0,forced:!!tR&&rR((function(){uR.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=iR(this,nR("Promise")),r=oR(e);return this.then(r?function(r){return aR(t,e()).then((function(){return r}))}:e,r?function(r){return aR(t,e()).then((function(){throw r}))}:e)}}),oR(tR)){var cR=nR("Promise").prototype.finally;uR.finally!==cR&&sR(uR,"finally",cR,{unsafe:!0})}var dR="\t\n\v\f\r \u2028\u2029\ufeff",lR=er,fR=iu,pR=dR,hR=Yt("".replace),mR=RegExp("^["+pR+"]+"),vR=RegExp("(^|[^"+pR+"])["+pR+"]+$"),gR=function(e){return function(t){var r=fR(lR(t));return 1&e&&(r=hR(r,mR,"")),2&e&&(r=hR(r,vR,"$1")),r}},AR={start:gR(1),end:gR(2),trim:gR(3)},bR=to.PROPER,yR=zt,_R=dR,wR=AR.trim;Gs({target:"String",proto:!0,forced:function(e){return yR((function(){return!!_R[e]()||"
"!=="
"[e]()||bR&&_R[e].name!==e}))}("trim")},{trim:function(){return wR(this)}});var xR=Gs,kR=ya.find,ER=im,SR="find",DR=!0;SR in[]&&Array(1)[SR]((function(){DR=!1})),xR({target:"Array",proto:!0,forced:DR},{find:function(e){return kR(this,e,arguments.length>1?arguments[1]:void 0)}}),ER(SR);var RR=Fr,IR=zr,CR=kp,OR=Nr.f,TR=$r,PR=Pt,LR=Yt,MR=Ls,BR=function(e,t,r){var n,o;return CR&&RR(n=t.constructor)&&n!==r&&IR(o=n.prototype)&&o!==r.prototype&&CR(e,o),e},jR=go,UR=Wa.f,FR=cn,NR=Zb,$R=iu,GR=hy,HR=sh,zR=function(e,t,r){r in e||OR(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})},ZR=oi,KR=zt,qR=ar,VR=Bo.enforce,WR=Fm,YR=dh,QR=ph,JR=Pr("match"),XR=PR.RegExp,eI=XR.prototype,tI=PR.SyntaxError,rI=LR(eI.exec),nI=LR("".charAt),oI=LR("".replace),iI=LR("".indexOf),aI=LR("".slice),sI=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,uI=/a/g,cI=/a/g,dI=new XR(uI)!==uI,lI=HR.MISSED_STICKY,fI=HR.UNSUPPORTED_Y,pI=TR&&(!dI||lI||YR||QR||KR((function(){return cI[JR]=!1,XR(uI)!=uI||XR(cI)==cI||"/a/i"!=XR(uI,"i")})));if(MR("RegExp",pI)){for(var hI=function(e,t){var r,n,o,i,a,s,u=FR(eI,this),c=NR(e),d=void 0===t,l=[],f=e;if(!u&&c&&d&&e.constructor===hI)return e;if((c||FR(eI,e))&&(e=e.source,d&&(t=GR(f))),e=void 0===e?"":$R(e),t=void 0===t?"":$R(t),f=e,YR&&"dotAll"in uI&&(n=!!t&&iI(t,"s")>-1)&&(t=oI(t,/s/g,"")),r=t,lI&&"sticky"in uI&&(o=!!t&&iI(t,"y")>-1)&&fI&&(t=oI(t,/y/g,"")),QR&&(i=function(e){for(var t,r=e.length,n=0,o="",i=[],a={},s=!1,u=!1,c=0,d="";n<=r;n++){if("\\"===(t=nI(e,n)))t+=nI(e,++n);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:rI(sI,aI(e,n+1))&&(n+=2,u=!0),o+=t,c++;continue;case">"===t&&u:if(""===d||qR(a,d))throw new tI("Invalid capture group name");a[d]=!0,i[i.length]=[d,c],u=!1,d="";continue}u?d+=t:o+=t}return[o,i]}(e),e=i[0],l=i[1]),a=BR(XR(e,t),u?this:eI,hI),(n||o||l.length)&&(s=VR(a),n&&(s.dotAll=!0,s.raw=hI(function(e){for(var t,r=e.length,n=0,o="",i=!1;n<=r;n++)"\\"!==(t=nI(e,n))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+nI(e,++n);return o}(e),r)),o&&(s.sticky=!0),l.length&&(s.groups=l)),e!==f)try{jR(a,"source",""===f?"(?:)":f)}catch(e){}return a},mI=UR(XR),vI=0;mI.length>vI;)zR(hI,XR,mI[vI++]);eI.constructor=hI,hI.prototype=eI,ZR(PR,"RegExp",hI,{constructor:!0})}WR("RegExp");var gI=Gs,AI=Pi,bI=Fa,yI=wa,_I=Yt([].join);gI({target:"Array",proto:!0,forced:AI!=Object||!yI("join",",")},{join:function(e){return _I(bI(this),void 0===e?",":e)}});var wI=ya.map;Gs({target:"Array",proto:!0,forced:!bl("map")},{map:function(e){return wI(this,e,arguments.length>1?arguments[1]:void 0)}});var xI=$r,kI=Yt,EI=on,SI=zt,DI=Zs,RI=hs,II=Pa,CI=nr,OI=Pi,TI=Object.assign,PI=Object.defineProperty,LI=kI([].concat),MI=!TI||SI((function(){if(xI&&1!==TI({b:1},TI(PI({},"a",{enumerable:!0,get:function(){PI(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach((function(e){t[e]=e})),7!=TI({},e)[r]||DI(TI({},t)).join("")!=n}))?function(e,t){for(var r=CI(e),n=arguments.length,o=1,i=RI.f,a=II.f;n>o;)for(var s,u=OI(arguments[o++]),c=i?LI(DI(u),i(u)):DI(u),d=c.length,l=0;d>l;)s=c[l++],xI&&!EI(a,u,s)||(r[s]=u[s]);return r}:TI,BI=MI;Gs({target:"Object",stat:!0,arity:2,forced:Object.assign!==BI},{assign:BI});var jI,UI=Yt,FI=2147483647,NI=/[^\0-\u007E]/,$I=/[.\u3002\uFF0E\uFF61]/g,GI="Overflow: input needs wider integers to process",HI=RangeError,zI=UI($I.exec),ZI=Math.floor,KI=String.fromCharCode,qI=UI("".charCodeAt),VI=UI([].join),WI=UI([].push),YI=UI("".replace),QI=UI("".split),JI=UI("".toLowerCase),XI=function(e){return e+22+75*(e<26)},eC=function(e,t,r){var n=0;for(e=r?ZI(e/700):e>>1,e+=ZI(e/t);e>455;)e=ZI(e/35),n+=36;return ZI(n+36*e/(e+38))},tC=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var o=qI(e,r++);if(o>=55296&&o<=56319&&r<n){var i=qI(e,r++);56320==(64512&i)?WI(t,((1023&o)<<10)+(1023&i)+65536):(WI(t,o),r--)}else WI(t,o)}return t}(e);var r,n,o=e.length,i=128,a=0,s=72;for(r=0;r<e.length;r++)(n=e[r])<128&&WI(t,KI(n));var u=t.length,c=u;for(u&&WI(t,"-");c<o;){var d=FI;for(r=0;r<e.length;r++)(n=e[r])>=i&&n<d&&(d=n);var l=c+1;if(d-i>ZI((FI-a)/l))throw HI(GI);for(a+=(d-i)*l,i=d,r=0;r<e.length;r++){if((n=e[r])<i&&++a>FI)throw HI(GI);if(n==i){for(var f=a,p=36;;){var h=p<=s?1:p>=s+26?26:p-s;if(f<h)break;var m=f-h,v=36-h;WI(t,KI(XI(h+m%v))),f=ZI(m/v),p+=36}WI(t,KI(XI(f))),s=eC(a,l,c==u),a=0,c++}}a++,i++}return VI(t,"")},rC=Gs,nC=$r,oC=G_,iC=Pt,aC=Ri,sC=Yt,uC=oi,cC=qu,dC=Gm,lC=ar,fC=MI,pC=Sf,hC=Fu,mC=zf.codeAt,vC=function(e){var t,r,n=[],o=QI(YI(JI(e),$I,"."),".");for(t=0;t<o.length;t++)r=o[t],WI(n,zI(NI,r)?"xn--"+tC(r):r);return VI(n,".")},gC=iu,AC=uc,bC=Jm,yC=cx,_C=Bo,wC=_C.set,xC=_C.getterFor("URL"),kC=yC.URLSearchParams,EC=yC.getState,SC=iC.URL,DC=iC.TypeError,RC=iC.parseInt,IC=Math.floor,CC=Math.pow,OC=sC("".charAt),TC=sC(/./.exec),PC=sC([].join),LC=sC(1..toString),MC=sC([].pop),BC=sC([].push),jC=sC("".replace),UC=sC([].shift),FC=sC("".split),NC=sC("".slice),$C=sC("".toLowerCase),GC=sC([].unshift),HC="Invalid scheme",zC="Invalid host",ZC="Invalid port",KC=/[a-z]/i,qC=/[\d+-.a-z]/i,VC=/\d/,WC=/^0x/i,YC=/^[0-7]+$/,QC=/^\d+$/,JC=/^[\da-f]+$/i,XC=/[\0\t\n\r #%/:<>?@[\\\]^|]/,eO=/[\0\t\n\r #/:<>?@[\\\]^|]/,tO=/^[\u0000-\u0020]+/,rO=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,nO=/[\t\n\r]/g,oO=function(e){var t,r,n,o;if("number"==typeof e){for(t=[],r=0;r<4;r++)GC(t,e%256),e=IC(e/256);return PC(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,o=0,i=0;i<8;i++)0!==e[i]?(o>r&&(t=n,r=o),n=null,o=0):(null===n&&(n=i),++o);return o>r&&(t=n,r=o),t}(e),r=0;r<8;r++)o&&0===e[r]||(o&&(o=!1),n===r?(t+=r?":":"::",o=!0):(t+=LC(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},iO={},aO=fC({},iO,{" ":1,'"':1,"<":1,">":1,"`":1}),sO=fC({},aO,{"#":1,"?":1,"{":1,"}":1}),uO=fC({},sO,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),cO=function(e,t){var r=mC(e,0);return r>32&&r<127&&!lC(t,e)?e:encodeURIComponent(e)},dO={ftp:21,file:null,http:80,https:443,ws:80,wss:443},lO=function(e,t){var r;return 2==e.length&&TC(KC,OC(e,0))&&(":"==(r=OC(e,1))||!t&&"|"==r)},fO=function(e){var t;return e.length>1&&lO(NC(e,0,2))&&(2==e.length||"/"===(t=OC(e,2))||"\\"===t||"?"===t||"#"===t)},pO=function(e){return"."===e||"%2e"===$C(e)},hO={},mO={},vO={},gO={},AO={},bO={},yO={},_O={},wO={},xO={},kO={},EO={},SO={},DO={},RO={},IO={},CO={},OO={},TO={},PO={},LO={},MO=function(e,t,r){var n,o,i,a=gC(e);if(t){if(o=this.parse(a))throw DC(o);this.searchParams=null}else{if(void 0!==r&&(n=new MO(r,!0)),o=this.parse(a,null,n))throw DC(o);(i=EC(new kC)).bindURL(this),this.searchParams=i}};MO.prototype={type:"URL",parse:function(e,t,r){var n,o,i,a,s,u=this,c=t||hO,d=0,l="",f=!1,p=!1,h=!1;for(e=gC(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=jC(e,tO,""),e=jC(e,rO,"$1")),e=jC(e,nO,""),n=pC(e);d<=n.length;){switch(o=n[d],c){case hO:if(!o||!TC(KC,o)){if(t)return HC;c=vO;continue}l+=$C(o),c=mO;break;case mO:if(o&&(TC(qC,o)||"+"==o||"-"==o||"."==o))l+=$C(o);else{if(":"!=o){if(t)return HC;l="",c=vO,d=0;continue}if(t&&(u.isSpecial()!=lC(dO,l)||"file"==l&&(u.includesCredentials()||null!==u.port)||"file"==u.scheme&&!u.host))return;if(u.scheme=l,t)return void(u.isSpecial()&&dO[u.scheme]==u.port&&(u.port=null));l="","file"==u.scheme?c=DO:u.isSpecial()&&r&&r.scheme==u.scheme?c=gO:u.isSpecial()?c=_O:"/"==n[d+1]?(c=AO,d++):(u.cannotBeABaseURL=!0,BC(u.path,""),c=TO)}break;case vO:if(!r||r.cannotBeABaseURL&&"#"!=o)return HC;if(r.cannotBeABaseURL&&"#"==o){u.scheme=r.scheme,u.path=hC(r.path),u.query=r.query,u.fragment="",u.cannotBeABaseURL=!0,c=LO;break}c="file"==r.scheme?DO:bO;continue;case gO:if("/"!=o||"/"!=n[d+1]){c=bO;continue}c=wO,d++;break;case AO:if("/"==o){c=xO;break}c=OO;continue;case bO:if(u.scheme=r.scheme,o==jI)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=hC(r.path),u.query=r.query;else if("/"==o||"\\"==o&&u.isSpecial())c=yO;else if("?"==o)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=hC(r.path),u.query="",c=PO;else{if("#"!=o){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=hC(r.path),u.path.length--,c=OO;continue}u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=hC(r.path),u.query=r.query,u.fragment="",c=LO}break;case yO:if(!u.isSpecial()||"/"!=o&&"\\"!=o){if("/"!=o){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,c=OO;continue}c=xO}else c=wO;break;case _O:if(c=wO,"/"!=o||"/"!=OC(l,d+1))continue;d++;break;case wO:if("/"!=o&&"\\"!=o){c=xO;continue}break;case xO:if("@"==o){f&&(l="%40"+l),f=!0,i=pC(l);for(var m=0;m<i.length;m++){var v=i[m];if(":"!=v||h){var g=cO(v,uO);h?u.password+=g:u.username+=g}else h=!0}l=""}else if(o==jI||"/"==o||"?"==o||"#"==o||"\\"==o&&u.isSpecial()){if(f&&""==l)return"Invalid authority";d-=pC(l).length+1,l="",c=kO}else l+=o;break;case kO:case EO:if(t&&"file"==u.scheme){c=IO;continue}if(":"!=o||p){if(o==jI||"/"==o||"?"==o||"#"==o||"\\"==o&&u.isSpecial()){if(u.isSpecial()&&""==l)return zC;if(t&&""==l&&(u.includesCredentials()||null!==u.port))return;if(a=u.parseHost(l))return a;if(l="",c=CO,t)return;continue}"["==o?p=!0:"]"==o&&(p=!1),l+=o}else{if(""==l)return zC;if(a=u.parseHost(l))return a;if(l="",c=SO,t==EO)return}break;case SO:if(!TC(VC,o)){if(o==jI||"/"==o||"?"==o||"#"==o||"\\"==o&&u.isSpecial()||t){if(""!=l){var A=RC(l,10);if(A>65535)return ZC;u.port=u.isSpecial()&&A===dO[u.scheme]?null:A,l=""}if(t)return;c=CO;continue}return ZC}l+=o;break;case DO:if(u.scheme="file","/"==o||"\\"==o)c=RO;else{if(!r||"file"!=r.scheme){c=OO;continue}if(o==jI)u.host=r.host,u.path=hC(r.path),u.query=r.query;else if("?"==o)u.host=r.host,u.path=hC(r.path),u.query="",c=PO;else{if("#"!=o){fO(PC(hC(n,d),""))||(u.host=r.host,u.path=hC(r.path),u.shortenPath()),c=OO;continue}u.host=r.host,u.path=hC(r.path),u.query=r.query,u.fragment="",c=LO}}break;case RO:if("/"==o||"\\"==o){c=IO;break}r&&"file"==r.scheme&&!fO(PC(hC(n,d),""))&&(lO(r.path[0],!0)?BC(u.path,r.path[0]):u.host=r.host),c=OO;continue;case IO:if(o==jI||"/"==o||"\\"==o||"?"==o||"#"==o){if(!t&&lO(l))c=OO;else if(""==l){if(u.host="",t)return;c=CO}else{if(a=u.parseHost(l))return a;if("localhost"==u.host&&(u.host=""),t)return;l="",c=CO}continue}l+=o;break;case CO:if(u.isSpecial()){if(c=OO,"/"!=o&&"\\"!=o)continue}else if(t||"?"!=o)if(t||"#"!=o){if(o!=jI&&(c=OO,"/"!=o))continue}else u.fragment="",c=LO;else u.query="",c=PO;break;case OO:if(o==jI||"/"==o||"\\"==o&&u.isSpecial()||!t&&("?"==o||"#"==o)){if(".."===(s=$C(s=l))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(u.shortenPath(),"/"==o||"\\"==o&&u.isSpecial()||BC(u.path,"")):pO(l)?"/"==o||"\\"==o&&u.isSpecial()||BC(u.path,""):("file"==u.scheme&&!u.path.length&&lO(l)&&(u.host&&(u.host=""),l=OC(l,0)+":"),BC(u.path,l)),l="","file"==u.scheme&&(o==jI||"?"==o||"#"==o))for(;u.path.length>1&&""===u.path[0];)UC(u.path);"?"==o?(u.query="",c=PO):"#"==o&&(u.fragment="",c=LO)}else l+=cO(o,sO);break;case TO:"?"==o?(u.query="",c=PO):"#"==o?(u.fragment="",c=LO):o!=jI&&(u.path[0]+=cO(o,iO));break;case PO:t||"#"!=o?o!=jI&&("'"==o&&u.isSpecial()?u.query+="%27":u.query+="#"==o?"%23":cO(o,iO)):(u.fragment="",c=LO);break;case LO:o!=jI&&(u.fragment+=cO(o,aO))}d++}},parseHost:function(e){var t,r,n;if("["==OC(e,0)){if("]"!=OC(e,e.length-1))return zC;if(t=function(e){var t,r,n,o,i,a,s,u=[0,0,0,0,0,0,0,0],c=0,d=null,l=0,f=function(){return OC(e,l)};if(":"==f()){if(":"!=OC(e,1))return;l+=2,d=++c}for(;f();){if(8==c)return;if(":"!=f()){for(t=r=0;r<4&&TC(JC,f());)t=16*t+RC(f(),16),l++,r++;if("."==f()){if(0==r)return;if(l-=r,c>6)return;for(n=0;f();){if(o=null,n>0){if(!("."==f()&&n<4))return;l++}if(!TC(VC,f()))return;for(;TC(VC,f());){if(i=RC(f(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;l++}u[c]=256*u[c]+o,2!=++n&&4!=n||c++}if(4!=n)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(a=c-d,c=7;0!=c&&a>0;)s=u[c],u[c--]=u[d+a-1],u[d+--a]=s;else if(8!=c)return;return u}(NC(e,1,-1)),!t)return zC;this.host=t}else if(this.isSpecial()){if(e=vC(e),TC(XC,e))return zC;if(t=function(e){var t,r,n,o,i,a,s,u=FC(e,".");if(u.length&&""==u[u.length-1]&&u.length--,(t=u.length)>4)return e;for(r=[],n=0;n<t;n++){if(""==(o=u[n]))return e;if(i=10,o.length>1&&"0"==OC(o,0)&&(i=TC(WC,o)?16:8,o=NC(o,8==i?1:2)),""===o)a=0;else{if(!TC(10==i?QC:8==i?YC:JC,o))return e;a=RC(o,i)}BC(r,a)}for(n=0;n<t;n++)if(a=r[n],n==t-1){if(a>=CC(256,5-t))return null}else if(a>255)return null;for(s=MC(r),n=0;n<r.length;n++)s+=r[n]*CC(256,3-n);return s}(e),null===t)return zC;this.host=t}else{if(TC(eO,e))return zC;for(t="",r=pC(e),n=0;n<r.length;n++)t+=cO(r[n],iO);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return lC(dO,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&lO(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,o=e.host,i=e.port,a=e.path,s=e.query,u=e.fragment,c=t+":";return null!==o?(c+="//",e.includesCredentials()&&(c+=r+(n?":"+n:"")+"@"),c+=oO(o),null!==i&&(c+=":"+i)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?a[0]:a.length?"/"+PC(a,"/"):"",null!==s&&(c+="?"+s),null!==u&&(c+="#"+u),c},setHref:function(e){var t=this.parse(e);if(t)throw DC(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new BO(e.path[0]).origin}catch(e){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+oO(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(gC(e)+":",hO)},getUsername:function(){return this.username},setUsername:function(e){var t=pC(gC(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=cO(t[r],uO)}},getPassword:function(){return this.password},setPassword:function(e){var t=pC(gC(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=cO(t[r],uO)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?oO(e):oO(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,kO)},getHostname:function(){var e=this.host;return null===e?"":oO(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,EO)},getPort:function(){var e=this.port;return null===e?"":gC(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=gC(e))?this.port=null:this.parse(e,SO))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+PC(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,CO))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=gC(e))?this.query=null:("?"==OC(e,0)&&(e=NC(e,1)),this.query="",this.parse(e,PO)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=gC(e))?("#"==OC(e,0)&&(e=NC(e,1)),this.fragment="",this.parse(e,LO)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var BO=function(e){var t=dC(this,jO),r=bC(arguments.length,1)>1?arguments[1]:void 0,n=wC(t,new MO(e,!1,r));nC||(t.href=n.serialize(),t.origin=n.getOrigin(),t.protocol=n.getProtocol(),t.username=n.getUsername(),t.password=n.getPassword(),t.host=n.getHost(),t.hostname=n.getHostname(),t.port=n.getPort(),t.pathname=n.getPathname(),t.search=n.getSearch(),t.searchParams=n.getSearchParams(),t.hash=n.getHash())},jO=BO.prototype,UO=function(e,t){return{get:function(){return xC(this)[e]()},set:t&&function(e){return xC(this)[t](e)},configurable:!0,enumerable:!0}};if(nC&&(cC(jO,"href",UO("serialize","setHref")),cC(jO,"origin",UO("getOrigin")),cC(jO,"protocol",UO("getProtocol","setProtocol")),cC(jO,"username",UO("getUsername","setUsername")),cC(jO,"password",UO("getPassword","setPassword")),cC(jO,"host",UO("getHost","setHost")),cC(jO,"hostname",UO("getHostname","setHostname")),cC(jO,"port",UO("getPort","setPort")),cC(jO,"pathname",UO("getPathname","setPathname")),cC(jO,"search",UO("getSearch","setSearch")),cC(jO,"searchParams",UO("getSearchParams")),cC(jO,"hash",UO("getHash","setHash"))),uC(jO,"toJSON",(function(){return xC(this).serialize()}),{enumerable:!0}),uC(jO,"toString",(function(){return xC(this).serialize()}),{enumerable:!0}),SC){var FO=SC.createObjectURL,NO=SC.revokeObjectURL;FO&&uC(BO,"createObjectURL",aC(FO,SC)),NO&&uC(BO,"revokeObjectURL",aC(NO,SC))}AC(BO,"URL"),rC({global:!0,constructor:!0,forced:!oC,sham:!nC},{URL:BO});var $O=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 r in e){var n=e[r];t[r]=n[Math.floor(Math.random()*n.length)]}return t}},{key:"checkCustomParams",value:function(){var e=this;try{var t={},n=this.gameData.diagnostic&&this.gameData.diagnostic.cp&&this.gameData.diagnostic.cp.enabled,o=new C(location.href,!0);for(var i in o.query)t[i]=o.query[i];var a=Object.keys(t).filter(function(t){var n=this;return r(this,e),this.customParamKeys.some(function(e){return r(this,n),e===t}.bind(this))}.bind(this));return a.length>0||n?(console.log("custom-params",t,n),t):void console.log("custom-params, none")}catch(e){console.log("_checkCustomParams.Error",e)}}}]),e}(),GO=function(){function e(t,r){O(this,e),this.adContainer=t,this.onResume=r}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(){r(this,e),this.onResume()}.bind(this)),this.adContainer.appendChild(t);var n=document.createElement("div");this.adResumeButtonOverlay=n,n.id="gd__resume__button__overlay",n.classList.add("gd__resume__button__overlay"),this.adContainer.appendChild(n)}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,r){if(!document.getElementById(e)){var n=document.createElement("style");n.type="text/css",n.id=e,n.styleSheet?n.styleSheet.cssText=r:n.appendChild(document.createTextNode(r)),t.appendChild(n)}}}]),e}(),HO=function(){function e(t,r){O(this,e),this.adContainer=t,this.onResume=r}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,r){if(!document.getElementById(e)){var n=document.createElement("style");n.type="text/css",n.id=e,n.styleSheet?n.styleSheet.cssText=r:n.appendChild(document.createTextNode(r)),t.appendChild(n)}}}]),e}(),zO=function(){function e(t,r,n){O(this,e),this.adContainer=t,this.onResume=r,this.OnSkip=n}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 n=document.createElement("span");n.innerText="Skip Ad >>",this.addStyles(),t.classList.add("gd__skip__ad"),n.classList.add("gd__skip__span"),this.skipAd.appendChild(n),this.adContainer.appendChild(t),this.skipAd.addEventListener("click",function(){r(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,r){if(!document.getElementById(e)){var n=document.createElement("style");n.type="text/css",n.id=e,n.styleSheet?n.styleSheet.cssText=r:n.appendChild(document.createTextNode(r)),t.appendChild(n)}}}]),e}(),ZO=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 r=document.createElement("span");r.innerHTML="ⓘ",this.addStyles(),e.classList.add("gd__audio__label"),t.classList.add("gd__audio__span"),r.classList.add("gd__audio__span"),this.audioLabel.appendChild(r),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,r){if(!document.getElementById(e)){var n=document.createElement("style");n.type="text/css",n.id=e,n.styleSheet?n.styleSheet.cssText=r:n.appendChild(document.createTextNode(r)),t.appendChild(n)}}}]),e}(),KO=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,r){if(!document.getElementById(e)){var n=document.createElement("style");n.type="text/css",n.id=e,n.styleSheet?n.styleSheet.cssText=r:n.appendChild(document.createTextNode(r)),t.appendChild(n)}}}]),e}(),qO=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"}),VO=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 WO(e){return Object.assign({muted:!1,timeout:250,inline:!1},e)}function YO(e,t){var r=e.muted,n=e.timeout,o=e.inline,i=t(),a=i.element,s=i.source,u=void 0,c=void 0,d=void 0;return a.muted=r,!0===r&&a.setAttribute("muted","muted"),!0===o&&a.setAttribute("playsinline","playsinline"),a.src=s,new Promise((function(e){u=a.play(),c=setTimeout((function(){d(!1,new Error("Timeout "+n+" ms has been reached"))}),n),d=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;a.remove(),a.srcObject=null,clearTimeout(c),e({result:t,error:r})},void 0!==u?u.then((function(){return d(!0)})).catch((function(e){return d(!1,e)})):d(!0)}))}var QO={audio:function(e){return YO(e=WO(e),(function(){return{element:document.createElement("audio"),source:URL.createObjectURL(qO)}}))},video:function(e){return YO(e=WO(e),(function(){return{element:document.createElement("video"),source:URL.createObjectURL(VO)}}))}},JO={exports:{}};!function(e,t){var r="__lodash_hash_undefined__",n=9007199254740991,i="[object Arguments]",a="[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[i]=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 o&&o&&o.Object===Object&&o,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,R=Function.prototype,I=Object.prototype,C=A["__core-js_shared__"],O=R.toString,T=I.hasOwnProperty,P=function(){var e=/[^.]+$/.exec(C&&C.keys&&C.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),L=I.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=I.propertyIsEnumerable,z=D.splice,Z=U?U.toStringTag:void 0,K=function(){try{var e=Ae(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),q=j?j.isBuffer:void 0,V=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 r=new e;return e.prototype=void 0,r}}();function X(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ee(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function te(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function re(e){var t=this.__data__=new ee(e);this.size=t.size}function ne(e,t){var r=Ee(e),n=!r&&ke(e),o=!r&&!n&&De(e),i=!r&&!n&&!o&&Te(e),a=r||n||o||i,s=a?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],u=s.length;for(var c in e)!t&&!T.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||be(c,u))||s.push(c);return s}function oe(e,t,r){(void 0!==r&&!xe(e[t],r)||void 0===r&&!(t in e))&&se(e,t,r)}function ie(e,t,r){var n=e[t];T.call(e,t)&&xe(n,r)&&(void 0!==r||t in e)||se(e,t,r)}function ae(e,t){for(var r=e.length;r--;)if(xe(e[r][0],t))return r;return-1}function se(e,t,r){"__proto__"==t&&K?K(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}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 n=t[e];return n===r?void 0:n}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 n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Q&&void 0===t?r:t,this},ee.prototype.clear=function(){this.__data__=[],this.size=0},ee.prototype.delete=function(e){var t=this.__data__,r=ae(t,e);return!(r<0)&&(r==t.length-1?t.pop():z.call(t,r,1),--this.size,!0)},ee.prototype.get=function(e){var t=this.__data__,r=ae(t,e);return r<0?void 0:t[r][1]},ee.prototype.has=function(e){return ae(this.__data__,e)>-1},ee.prototype.set=function(e,t){var r=this.__data__,n=ae(r,e);return n<0?(++this.size,r.push([e,t])):r[n][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 r=ge(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},re.prototype.clear=function(){this.__data__=new ee,this.size=0},re.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},re.prototype.get=function(e){return this.__data__.get(e)},re.prototype.has=function(e){return this.__data__.has(e)},re.prototype.set=function(e,t){var r=this.__data__;if(r instanceof ee){var n=r.__data__;if(!Y||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new te(n)}return r.set(e,t),this.size=r.size,this};var ue,ce=function(e,t,r){for(var n=-1,o=Object(e),i=r(e),a=i.length;a--;){var s=i[ue?a:++n];if(!1===t(o[s],s,o))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),r=e[Z];try{e[Z]=void 0;var n=!0}catch(e){}var o=L.call(e);n&&(t?e[Z]=r:delete e[Z]);return o}(e):function(e){return L.call(e)}(e)}function le(e){return Oe(e)&&de(e)==i}function fe(e){return!(!Ce(e)||function(e){return!!P&&P in e}(e))&&(Re(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 r in Object(e))t.push(r);return t}(e);var t=ye(e),r=[];for(var n in e)("constructor"!=n||!t&&T.call(e,n))&&r.push(n);return r}function he(e,t,r,n,o){e!==t&&ce(t,(function(i,a){if(o||(o=new re),Ce(i))!function(e,t,r,n,o,i,a){var s=_e(e,r),u=_e(t,r),c=a.get(u);if(c)return void oe(e,r,c);var l=i?i(s,u,r+"",e,t,a):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 r=-1,n=e.length;t||(t=Array(n));for(;++r<n;)t[r]=e[r];return t}(s):h?(f=!1,l=function(e,t){if(t)return e.slice();var r=e.length,n=N?N(r):new e.constructor(r);return e.copy(n),n}(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 r=T.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&O.call(r)==M}(u)||ke(u)?(l=s,ke(s)?l=function(e){return function(e,t,r,n){var o=!r;r||(r={});var i=-1,a=t.length;for(;++i<a;){var s=t[i],u=n?n(r[s],e[s],s,r,e):void 0;void 0===u&&(u=e[s]),o?se(r,s,u):ie(r,s,u)}return r}(e,Pe(e))}(s):Ce(s)&&!Re(s)||(l=function(e){return"function"!=typeof e.constructor||ye(e)?{}:J($(e))}(u))):f=!1}var v,g,A,b;var y;f&&(a.set(u,l),o(l,u,n,i,a),a.delete(u));oe(e,r,l)}(e,t,a,r,he,n,o);else{var s=n?n(_e(e,a),i,a+"",e,t,o):void 0;void 0===s&&(s=i),oe(e,a,s)}}),Pe)}function me(e,t){return we(function(e,t,r){return t=V(void 0===t?e.length-1:t,0),function(){for(var n=arguments,o=-1,i=V(n.length-t,0),a=Array(i);++o<i;)a[o]=n[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=n[o];return s[t]=r(a),function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}(e,this,s)}}(e,t,Be),e+"")}var ve=K?function(e,t){return K(e,"toString",{configurable:!0,enumerable:!1,value:(r=t,function(){return r}),writable:!0});var r}:Be;function ge(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map}function Ae(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return fe(r)?r:void 0}function be(e,t){var r=typeof e;return!!(t=null==t?n:t)&&("number"==r||"symbol"!=r&&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||I)}function _e(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var we=function(e){var t=0,r=0;return function(){var n=W(),o=16-(n-r);if(r=n,o>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&&Ie(e.length)&&!Re(e)}var De=q||function(){return!1};function Re(e){if(!Ce(e))return!1;var t=de(e);return t==s||t==u||t==a||t==l}function Ie(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}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)&&Ie(e.length)&&!!m[de(e)]};function Pe(e){return Se(e)?ne(e,!0):pe(e)}var Le,Me=(Le=function(e,t,r){he(e,t,r)},me((function(e,t){var r=-1,n=t.length,o=n>1?t[n-1]:void 0,i=n>2?t[2]:void 0;for(o=Le.length>3&&"function"==typeof o?(n--,o):void 0,i&&function(e,t,r){if(!Ce(r))return!1;var n=typeof t;return!!("number"==n?Se(r)&&be(t,r.length):"string"==n&&t in r)&&xe(r[t],e)}(t[0],t[1],i)&&(o=n<3?void 0:o,n=1),e=Object(e);++r<n;){var a=t[r];a&&Le(e,a,r,o)}return e})));function Be(e){return e}e.exports=Me}(JO,JO.exports);var XO=JO.exports;function eT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function tT(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?eT(Object(r),!0).forEach((function(t){ru(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eT(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function rT(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 nT,oT="13998",iT="_cc".concat(oT),aT=["https://tags.crwdcntrl.net/c/".concat(oT,"/cc.js?ns=").concat(iT)],sT=function(){return!!nT&&"function"==typeof nT.bcpf&&"function"==typeof nT.add},uT=function(e,t){try{if(!sT())return;nT.add(e,t),Js("lotame add success ".concat(e," ").concat(t))}catch(e){Js("lotame add error",err)}},cT=function(e,t){try{if(!sT())return;nT.bcpw(e,t),Js("lotame send success ".concat(e," ").concat(t))}catch(e){}},dT=function(e){var t=this;try{uT("act","play"),uT("med","game"),"complete"===document.readyState?nT.bcpf():nT.bcp(),e.tags.forEach(function(e){r(this,t),cT("int","tags : ".concat(e.title.toLowerCase()))}.bind(this)),cT("int","category : ".concat(e.category.toLowerCase()))}catch(e){}},lT=function(){window.addEventListener("load",(function(){UD.once("game-data-ready",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(e.prev=1,e.t0=null!=t_&&t_.noLotamePageView,!e.t0){e.next=7;break}return e.next=6,KD();case 6:e.t0=e.sent;case 7:if(!e.t0){e.next=10;break}return e.abrupt("return");case 10:if(null!==(r=t.lotm)&&void 0!==r&&r.enabled){e.next=13;break}return e.abrupt("return");case 13:return e.next=16,ft(aT[0],"LOTCC_".concat(oT),{alternates:aT});case 16:"object"===n(window[iT])&&(nT=window[iT]),sT()&&dT(t),e.next=23;break;case 20:e.prev=20,e.t1=e.catch(1),Js("lotame init error",e.t1);case 23:case"end":return e.stop()}}),e,null,[[1,20]])})));return function(t){return e.apply(this,arguments)}}())}))},fT=function(){cT("genp","ad video"),cT("act","ad impression")},pT=function(){cT("act","ad skipped")},hT=function(){cT("act","ad click")},mT=function(){cT("act","ad complete")},vT=new cD,gT=function(e,t){var n=this,o={env:"vp",iu:"/6556/huffpost.desktop.video/en/azerion/video",description_url:vT.get("partner.url.value"),tfcd:0,npa:0,sz:"400x300|480x360|480x361|640x360|640x480",gdfp_req:1,output:"vast",unviewed_position_start:1,impl:"s",correlator:"".concat(Date.now())},i=Object.keys(o).map(function(e){return r(this,n),"".concat(e,"=").concat(o[e])}.bind(this)).join("&");return"".concat("https://pubads.g.doubleclick.net/gampad/ads","?").concat(i)},AT=new cD,bT={preroll:"game-start-video",midroll:"mid-level-video",rewarded:"rewarded-video"},yT=function(e,t){var n=this,o=function(e,t){var r=AT.get("partner.url.value"),n=bT[t],o="".concat("web.latimes/games-puzzles-crossword","/").concat(e,"/").concat(n);return{env:"vp",iu:"/".concat("21787098806","/").concat(o),description_url:r,tfcd:0,npa:0,sz:"400x300|480x360|480x361|640x360|640x480",gdfp_req:1,output:"vast",unviewed_position_start:1,impl:"s",correlator:"".concat(Date.now())}}(e,t),i=Object.keys(o).map(function(e){return r(this,n),"".concat(e,"=").concat(o[e])}.bind(this)).join("&");return"".concat("https://pubads.g.doubleclick.net/gampad/ads","?").concat(i)},_T=function(){var e=(new cD).get("partner.url.value");return C(e,!0).host},wT=function(e){var t,r=null==e||null===(t=e.ext_vst)||void 0===t?void 0:t.enabled,n=_T(),o="Softgames-Azerion"===(null==e?void 0:e.dname)&&("latimes.com"===n||"www.latimes.com"===n);return r||o},xT=function(e,t){var r=function(e,t){var r,n=function(){var r=t.slug;return yT(r,e)},o={"latimes.com":n,"www.latimes.com":n,"huffpost.com":function(){return t.slug,gT()}},i=_T();return null==o||null===(r=o[i])||void 0===r?void 0:r.call(o,e)}(e,t);return r},kT=function(){var e=(new cD).get("partner.url.value"),t=new C(e,!0),r={isRevisionTest:!1,useTestAds:!1,disableMidrolltimer:!1};if("revision.gamedistribution.com"===t.host){var n=t.query.test,o="1"===n||"2"===n,i="1"===n;r={useTestAds:o,disableMidrolltimer:i,isRevisionTest:i||o}}return r},ET=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 n=document.createElement("div");n.id="gd__spinner__fail",n.setAttribute("title","Spinner"),n.classList.add("gd__spinner__fail"),n.innerHTML="No Ads Available!",this.adSpinnerFail=n;var o=document.createElement("div");o.id="gd__spinner__button",o.setAttribute("title","Spinner"),o.classList.add("gd__spinner__button"),o.onclick=function(){r(this,e),this.hide()}.bind(this);var i=document.createElement("p");i.innerText="OK!",o.appendChild(i),this.adSpinnerButton=o;var a=document.createElement("div");a.id="gd__spinner__logo",a.setAttribute("title","Spinner"),a.classList.add("gd__spinner__logo"),this.adSpinnerLogo=a;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,r){if(!document.getElementById(e)){var n=document.createElement("style");n.type="text/css",n.id=e,n.styleSheet?n.styleSheet.cssText=r:n.appendChild(document.createTextNode(r)),t.appendChild(n)}}}]),e}();function ST(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function DT(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ST(Object(r),!0).forEach((function(t){ru(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ST(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var RT=new pD.exports.EventEmitter,IT=null,CT=function(){function e(t,n,o){var i=this;if(O(this,e),IT)return IT;IT=this;var a={debug:!1,width:640,height:360,locale:"en"};this.options=n?ot(a,n):a,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=o.parentDomain,this.topDomain=o.topDomain,this.parentURL=o.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.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(){r(this,i),this._clearSafetyTimer("LOADED"),this._startSafetyTimer(8e3,"LOADED")}.bind(this),"ima"),this.eventBus.subscribe("STARTED",function(){r(this,i),this._clearSafetyTimer("STARTED")}.bind(this),"ima")}var n,o,i,a,s,u,c,f,p,h,m,v,g,A,b,y,_,w,x,k,E,S,D,R,I,T,P;return L(e,[{key:"start",value:(P=t(d.mark((function e(){var n,o,i,a=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,a._init_afg_script({});case 2:case"end":return e.stop()}}),e)}))));case 3:return n=e.sent,this.afgInitSuccess=n.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,a._init_hl_script();case 2:return e.next=4,a._init_ima_script();case 4:a._createPlayer(),a._setUpIMA();case 6:case"end":return e.stop()}}),e)}))));case 7:if(o=e.sent,this.imaInitSuccess=o.success,i=[],this.afgInitSuccess||i.push(n.error),this.imaInitSuccess||i.push(o.error),!(i.length>0)){e.next=14;break}throw i[0];case 14:window.eventTest=function(e){r(this,a),this._broadcast(e,{message:"",status:"success"})}.bind(this),e.next=21;break;case 17:throw e.prev=17,e.t0=e.catch(0),eu("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 r;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={success:!1},e.prev=1,e.next=4,t();case 4:r.success=!0,e.next=10;break;case 7:e.prev=7,e.t0=e.catch(1),r.error=e.t0;case 10:return e.abrupt("return",r);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:(I=t(d.mark((function e(t){var r,n,o,i,a,s,u,c,l,f,p,h;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.adType,n=t.options,e.prev=1,a=null===(o=this.gameData.adflw)||void 0===o||null===(i=o.adapterConfig)||void 0===i?void 0:i.spil,s=this.nextAdPosition(r),e.next=6,this._create_dp_context(s,n);case 6:return u=e.sent,a?(Js("spil-adaptor: in _getSpilUrl, adType, adPosition, gamedata",r,s,this.gameData),c=a[s]||a.default||this._getDefaultSpilAdapterConfig()):c=this._getDefaultSpilAdapterConfig(),l=100*u.floor_price,Js("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 I.apply(this,arguments)})},{key:"_getAdVast",value:function(e,n){var o=this;return new Promise(function(){var i=t(d.mark((function t(i){var a,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")||kT().useTestAds)){t.next=6;break}return a=o.IMASampleTags[e],s=Math.floor(Math.random()*a.length),u=a[s],i({url:u,tnl_keys:{tnl_ad_pos:null==n?void 0:n.adTypeFound}}),t.abrupt("return");case 6:if("spil"!==n.adapter){t.next=8;break}return t.abrupt("return",i(o._getSpilUrl({adType:e,options:n})));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=o.nextAdPosition(e),null!=n&&n.adTypeFound&&(c=null==n?void 0:n.adTypeFound),o._broadcast("AD_REQUEST",{message:c}),l=o.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"===n.adapter||"audio"===n.giftType?(o.isAudioAd=!0,f="midrollaudio"):(o.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,o._create_dp_context(c,n);case 22:p=t.sent,Xs("gd-adflow, before idhb",c,f),h=window.idhb.getAdserverTargetingForAdSlot(f),window.idhb.setAdserverTargeting(DT(DT({},h),{},{adaptor_order:n.adapterIndex})),Js("hl-order 2",window.idhb.getAdserverTargetingForAdSlot(f)),window.idhb.requestAds({slots:ru({},f,{bidFloor:(null==p?void 0:p.floor_price)||void 0}),callback:function(e,t){var n=this;r(this,m),"Missing configuration"===(null==e?void 0:e.error)&&o._broadcast("HL_CONFIG_ERROR",{status:"warning"}),!p||null!=t&&t.bidFloorApplied||fetch(p.skip_url).catch(function(e){r(this,n)}.bind(this));var a={src:"hl",tnl_keys:DT(DT({},window.idhb.getAdserverTargetingForAdSlot(f)),{},{tnl_ad_pos:c,tnl_asset_id:o.gameData.gameId}),url:e,dp:p,hl:t};o._extend_hl_url(a),i(a)}.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 i.apply(this,arguments)}}())}},{key:"nextAdPosition",value:function(e){if(e===nt.Rewarded)return this.adRewardedCount++,"rewarded";if(e===nt.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===nt.Rewarded?"rewarded":e===nt.Interstitial?!1===this.gameData.preroll||1===this.adPrerollCount||this.adMidrollCount>0?"midroll":"preroll":"midroll"}},{key:"getCurrentAdPosition",value:function(e){return e===nt.Interstitial?1===this.adPrerollCount&&0===this.adMidrollCount?"preroll":"midroll":e===nt.Rewarded?"rewarded":void 0}},{key:"_requestPromo",value:function(e,t){var r=new google.ima.AdsRequest;return r.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),r.linearAdSlotWidth=this.options.width,r.linearAdSlotHeight=this.options.height,r.nonLinearAdSlotWidth=this.options.width,r.nonLinearAdSlotHeight=this.options.height,r.forceNonLinearFullSlot=!0,this.options.vast_load_timeout&&(r.vastLoadTimeout=this.options.vast_load_timeout),r.setAdWillAutoPlay(t.autoplayAllowed),r.setAdWillPlayMuted(t.autoplayRequiresMute),this.adsLoader.requestAds(r),r}},{key:"_requestAd",value:function(e,t){var n=this;return t=t||{},new Promise(function(o){var i=this;if(r(this,n),"undefined"==typeof google)throw new Error("Unable to load ad, google IMA SDK not defined.");try{var a,s,u=null==e||null===(a=e.tnl_keys)||void 0===a?void 0:a.tnl_ad_pos;this.adSuccess=!1,this.contentPaused=!1;var c=new google.ima.AdsRequest,d=this._transformVast(e,t),l=DT(DT({},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);(function(){r(this,i),t.shouldFail&&(f?(f.adtag_url="dp_original_broken",f.fallback_url="dp_fallback_broken"):d.url="original_broken",Js("gd-adflow, _requestAd, dp.adtag_url",null==f?void 0:f.adtag_url),Js("gd-adflow, _requestAd, dp.fallback_url",null==f?void 0:f.fallback_url),Js("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){Js("gd-adflow, _isVMAP");var v=function(e){for(var t=[],r="",n=Date.now(),o={ppos:1,lip:!0,vad_type:"linear"},i=0;i<e.length;i++){var a=new C(e[i].adtag.url,!0);a.query=tT(tT({},a.query),{},{ad_rule:0,vpos:e[i].positon,pod:1,correlator:0===i?n:++n,output:"xml_vast3"}),i<e.length-1&&(a.query=tT(tT({},a.query),o)),t.push(a.toString())}for(var s=Date.now(),u=1;u<=t.length;u++){var c,d,l,f;r+='<vmap:AdBreak timeOffset="start" breakType="linear" breakId="break-'.concat(u,'">\n <vmap:AdSource id="').concat(s++,'" allowMultipleAds="false" followRedirects="true">\n ').concat(rT({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(r,"\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){Js("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){Js("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 Js("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),c.setAdWillPlayMuted(t.autoplayRequiresMute),this.adsLoader.requestAds(c,l);try{this._broadcast("AD_SDK_REQUEST",{message:l})}catch(e){}o(c)}catch(e){throw new Error(e)}}.bind(this))}},{key:"_getExternalVast",value:function(e){var t;try{var r=this.getCurrentAdPosition(e);t=wT(this.gameData)&&xT(r,this.gameData),Js("external-vast success",t)}catch(e){console.log("external-vast err",e)}return t}},{key:"cancel",value:function(e){var t;if(!1!==this.requestRunning){this.requestRunning=!1,this._resetAdsLoader(),this._hide("cancel");var r=(null==e||null===(t=e.message)||void 0===t?void 0:t.indexOf("NO_VAST_URL"))>=0,n="AD_SDK_CANCELED";this._broadcast(n,{name:n,message:"Advertisement has been canceled.",status:"warning",noVast:r,analytics:{category:this.eventCategory,action:n,label:this.gameData.gameId}})}}},{key:"_checkAutoPlay",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,n){var o=this;r(this,t);var i=navigator.userAgent.toLowerCase();i.indexOf("safari")>-1&&i.indexOf("chrome"),QO.video({inline:!0,muted:!1}).then(function(t){r(this,o);var n=t.result;t.error,e(!0===n?{autoplayAllowed:!0,autoplayRequiresMute:!1}:{autoplayAllowed:!0,autoplayRequiresMute:!0})}.bind(this))}.bind(this)));case 1:case"end":return e.stop()}}),e,this)}))),function(){return R.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 n,o,i,a=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=t.adType,i=t.params,this.adType_=o,this.isAudioAd=!1,this.adContext=DT(DT({},i),{},{adType:o}),null!==(n=this.gameData.adspn)&&void 0!==n&&n.enabled&&(this.adFlowProcessSpinner||(this.adFlowProcessSpinner=new ET,this.adFlowProcessSpinner.add()),this.adFlowProcessSpinner.show(!0)),"promo"!==(null==i?void 0:i.adapter)){e.next=7;break}return e.abrupt("return",this._startPromo(i,o));case 7:if("adsense"!==(null==i?void 0:i.adapter)){e.next=31;break}if(o!==nt.Interstitial){e.next=24;break}if("preroll"!==(null==i?void 0:i.position)){e.next=13;break}return e.abrupt("return",this._startAdsensePlacementPreroll(t));case 13:if("start"!==(null==i?void 0:i.position)){e.next=17;break}return e.abrupt("return",this._startAdsensePlacementStart(t));case 17:if("next"!==(null==i?void 0:i.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(o!==nt.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 r(this,a),e===(null==i?void 0:i.adapter)}.bind(this))){e.next=42;break}if(o!==nt.Interstitial){e.next=37;break}return e.abrupt("return",this._startInterstitialAd(i));case 37:if(o!==nt.Rewarded){e.next=41;break}return e.abrupt("return",this._startRewardedAd(i));case 41:throw new Error("Unsupported ad type");case 42:["opus"].some(function(e){return r(this,a),e===(null==i?void 0:i.adapter)}.bind(this))&&this._startOpusAd(i);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 n,o,i,a,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(t.adTypeFound="rewarded"===t.adTypeFound?"reward":t.adTypeFound,o=t.adTypeFound,this._send_atom_event("opus-ad.start"),!this.requestRunning){e.next=9;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 9:if(i=null===(n=window.gdlocus)||void 0===n?void 0:n.adBreak){e.next=14;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 14:this._send_atom_event("opus-ad.ready"),a=void function(){return r(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:a},p=function(e){r(this,b),this.opusEventReceived=!0,this._broadcast("CONTENT_PAUSE_REQUESTED",{message:"",status:"success"}),this._broadcast("IMPRESSION",{message:"",status:"success"})}.bind(this),h=function(e){r(this,b),this.opusEventReceived=!0,this._broadcast("CONTENT_RESUME_REQUESTED",{message:"",status:"success"})}.bind(this),m=function(){r(this,b),this.opusEventReceived=!0}.bind(this),v=function(){r(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){r(this,b),this.opusEventReceived=!0,this.resetForNext();var t="".concat(o);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:o,meta:f,beforeAd:p,afterAd:h,adBreakDone:g},"reward"===o&&(A=DT(DT({},A),{},{adDismissed:m,adViewed:v})),this.opusEventReceived=!1,this._startTimeoutForOpus(),i&&i(A);case 31: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!==nt.Interstitial){e.next=4;break}return e.abrupt("return","gdsdk://preloaded");case 4:if(t!==nt.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(){r(this,e),this.adsManager.resume()}.bind(this),n=function(){r(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 GO(this.adContainer,t),this.adResume.add(),this.rewardedLabel=new HO(this.adContainer,t),this.rewardedLabel.add(),this.skipAdButton=new zO(this.adContainer,t,n),this.skipAdButton.add(),this.audioAdLabel=new ZO(window.document.body),this.audioAdLabel.add(),this.audioAdLabel.hide()}catch(e){console.log("error on adding adResume",e)}}},{key:"loadDisplayAd",value:(x=t(d.mark((function e(n){var o=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,s,u,c,l,f,p,h,m,v=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{Js("display_test load",n),(s=n?n.containerId:null)||i("Container id is not specified"),u=document.getElementById(s),document.getElementById(s)||i("No container is found with this id - ".concat(s)),void 0===window.idhb.requestAds&&i("Prebid.js wrapper script hit an error or didn't exist!"),c=n.slotId?n.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)),o.atom_display=null,null!==(a=o.atom_display)&&void 0!==a&&a.params&&window.idhb.setAdserverTargeting(null===(h=o.atom_display)||void 0===h?void 0:h.params),(m={})[c]={maxSize:[u.offsetWidth,u.offsetHeight]},Js("display_test slots",m),window.idhb.requestAds({slots:m,callback:function(e){r(this,v),Js("display_test callback",JSON.stringify(e,null,2))}.bind(this)}),t()}catch(e){console.log("display_test error",e),i(e.message||e)}case 1:case"end":return e.stop()}}),e,this)})));return function(t,r){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 n,o,i,a,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(r(this,u),tu.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 o=e.sent,e.next=13,this._loadInterstitialAd(DT(DT({},o),t));case 13:if(i=e.sent,a=i.success,i.args,a){e.next=18;break}return e.abrupt("return");case 18:null!==(n=this.adContext)&&void 0!==n&&n.muteRequested?this.adsManager.setVolume(0):(o.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),Js("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,r){var n,o,i,a,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 o=e.sent,e.next=11,this._loadPromo(DT(DT({},o),t),r);case 11:if(i=e.sent,a=i.success,i.args,a){e.next=16;break}return e.abrupt("return");case 16:null!==(n=this.adContext)&&void 0!==n&&n.muteRequested?this.adsManager.setVolume(0):(o.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,r){var n,o;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._resetAdsLoader(),e.prev=1,n=this.nextAdPosition(r),o=this._create_promo_context(n),this._requestPromo(o,DT({adType:nt.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 r;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(nt.Interstitial,t);case 6:e.t0=e.sent;case 7:if(r=e.t0,delete this.preloadedInterstitialAdVast,r.url){e.next=12;break}throw new Error("NO_VAST_URL");case 12:return e.next=14,this._requestAd(r,DT({adType:nt.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,n){var o=this;r(this,e);var i="videoad.preloadad";this.eventBus.unsubscribeScope(i);var a=function(e){var n=this;r(this,o),setTimeout(function(){r(this,n),this.eventBus.unsubscribeScope(i),t({success:!0,args:e})}.bind(this),1)}.bind(this),s=function(e){var n=this;r(this,o),setTimeout(function(){r(this,n),this.eventBus.unsubscribeScope(i),t({success:!1,args:e})}.bind(this),1)}.bind(this);this.eventBus.subscribe("AD_SDK_MANAGER_READY",a,i),this.eventBus.subscribe("AD_SDK_CANCELED",s,i),this.eventBus.subscribe("AD_ERROR",s,i)}.bind(this))}},{key:"_startRewardedAd",value:(A=t(d.mark((function e(t){var n,o,i,a,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(r(this,u),tu.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 o=e.sent,e.next=13,this._loadRewardedAd(DT(DT({},o),t));case 13:if(i=e.sent,a=i.success,i.args,a){e.next=18;break}return e.abrupt("return");case 18:null!==(n=this.adContext)&&void 0!==n&&n.muteRequested?this.adsManager.setVolume(0):(o.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 r;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(nt.Rewarded,t);case 6:e.t0=e.sent;case 7:return r=e.t0,delete this.preloadedRewardedAdVast,e.next=11,this._requestAd(r,DT({adType:nt.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(nt.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(nt.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 n=null==e?void 0:e.mode;e.t4r=this.gameData.__t4r;var o=this._adrequest_user_context.t4RResult?this._adrequest_user_context.t4RResult:this._isT4R(e);this._adrequest_user_context.t4RResult=o;var i=o.success,a=o.reason,s=this._getT4ROptions(e);if("loaded"===n){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}),i||this._broadcast("AD_T4R_NONE",{reason:a}),this.activeAdContainer.style.opacity=i?.001:1,i&&null!=e&&e.contentType.startsWith("video/")&&(this.t4rButton=new KO(this.adContainer),this.t4rButton.add(),this._broadcast("AD_T4R_VIDEO")),i&&this.adsManager.setVolume(0),i&&this._broadcast("AD_T4R"),i&&setTimeout(function(){var e;r(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"===n||"first_quartile"===n){var l;if(i&&"click"===n){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")}i||"click"!==n||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 n=document.createElement("video");n.setAttribute("playsinline",!0),n.setAttribute("webkit-playsinline",!0),n.id="".concat(this.prefix,"advertisement_video"),n.style.position="absolute",n.style.backgroundColor="#000000",n.style.top="0",n.style.left="0",n.style.width=this.options.width+"px",n.style.height=this.options.height+"px",this.video_ad_player=n,this.adContainer.appendChild(n);var o=document.createElement("div");o.id="".concat(this.prefix,"advertisement_slot"),o.style.position="absolute",o.style.top="0",o.style.left="0",o.style.width=this.options.width+"px",o.style.height=this.options.height+"px",this.adContainerInner=o,this.activeAdContainer=this.adContainer,window.activeAdContainer=this.activeAdContainer,this.thirdPartyContainer?(this.adContainer.appendChild(o),this.thirdPartyContainer.appendChild(this.adContainer),this.activeAdContainer=this.thirdPartyContainer):(this.adContainer.appendChild(o),t.appendChild(this.adContainer)),this.addAdComponents(),this.activeAdContainer.style.visibility="hidden";var i=function(){r(this,e);var t=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,i=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:i,o.style.width=this.options.width+"px",o.style.height=this.options.height+"px",n.style.width=this.options.width+"px",n.style.height=this.options.height+"px"}.bind(this);window.addEventListener("resize",i),window.document.addEventListener("DOMContentLoaded",i)}},{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,n=new google.ima.AdsRenderingSettings;n.autoAlign=!1,n.enablePreloading=!1,n.restoreCustomPlaybackStateOnAdBreakComplete=!0,n.useStyledNonLinearAds=!0,n.uiElements=[google.ima.UiElements.AD_ATTRIBUTION,google.ima.UiElements.COUNTDOWN],this.adsManager=e.getAdsManager(this.video_ad_player,n),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(){r(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 o=new Date,i=o.getHours(),a=o.getDate(),s=o.getMonth(),u=o.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(i," d").concat(a," m").concat(s," y").concat(u)}}),this._adrequest_user_context=e.getUserRequestContext()}},{key:"_onAdEvent",value:function(e){var t,n,o,i,a,s,u=this,c=new Date,d=c.getHours(),l=c.getDate(),f=c.getMonth(),p=c.getFullYear(),h=(a=google.ima.AdEvent.Type,s=e.type,Object.keys(a).find((function(e){return a[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===(n=e.ad)||void 0===n||null===(o=n.data)||void 0===o?void 0:o.title,b=null==e||null===(i=e.getAd())||void 0===i?void 0:i.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}),hT();break;case google.ima.AdEvent.Type.COMPLETE:Js("gd-adflow ON COMPLETE!",e.getAd()),m=this._is_completed(e.getAd()),_="Fired when the ad completes playing.",this.adType_!==nt.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:_="Fired when the impression URL has been pinged.",e.getAd(),console.log("gdsdk: eventname IMPRESSION",this.isAudioAd),this._hideAdSpinner(),this.isAudioAd&&this.audioAdLabel.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 k=e.getAd().getContentType();_=k,this._show({mode:"loaded",contentType:k});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:m=this._is_completed(e.getAd()),_="Fired when the ad is skipped by the user.",pT(),this.t4rButton&&this.t4rButton.hide();break;case google.ima.AdEvent.Type.STARTED:var E;if(this.skipAdButton&&this.skipAdButton.hide(),this.rewardGuarantied=!1,this.adType_===nt.Rewarded)!b&&null!==(E=this.gameData.rwskp)&&void 0!==E&&E.enabled&&(this._skipAdButtonTimeout=setTimeout(function(){r(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 S=!this.contentPaused&&e.type===google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,D=!this.contentPaused&&e.type===google.ima.AdEvent.Type.ALL_ADS_COMPLETED;S||D||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 R=e.getAd(),I="Rainbow"===(null==R?void 0:R.getAdSystem())&&(null==R?void 0:R.getWrapperAdIds().some(function(e){return r(this,u),"promo"===e}.bind(this)));Js("gd-adflow isPromoSuccess",I,null==R?void 0:R.getAdSystem(),null==R?void 0:R.getWrapperAdIds()),this._broadcast("AD_SUCCESS",{message:"Ad succeeded.",status:"success",isPromoSuccess:I}),this.resetForNext(e)}}},{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 n,o,i,a,s;if(!((null===(n=this.gameData)||void 0===n||null===(o=n.aws_tst)||void 0===o?void 0:o.enabled)&&(null===(i=this.gameData)||void 0===i||null===(a=i.aws_tst)||void 0===a||null===(s=a.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(){r(this,t)}.bind(this))}catch(e){}}},{key:"_findAtomTagUrl",value:function(e,t){var n=this,o={type:"none"};try{var i=this.current_dp,a=i.id,s=i.error_url,u=i.impression_url,c=i.fallback_imp_url,d=i.promo_imp_green_url;if(!e&&!t)return o={type:"imp_err",url:s};var l=e.getWrapperAdIds().some(function(e){return r(this,n),e==="".concat(a)}.bind(this)),f=e.getWrapperAdIds().some(function(e){return r(this,n),"fallback"===e}.bind(this)),p=e.getWrapperAdIds().some(function(e){return r(this,n),"promo"===e}.bind(this));l&&t?o={type:"normal_imp",url:u}:l&&!t?o={type:"normal_err",url:s}:p&&t?o={type:"promo_imp",url:d}:f&&t&&(o={type:"fallbacj_imp",url:c})}catch(e){}return o}},{key:"_onAdError",value:function(e){this.requestRunning=!1,this._resetAdsLoader(),this._clearSafetyTimer("ERROR"),this._hide("_onAdError"),this._sendIMAEventsToHB(e);try{var t="AD_ERROR",r=e.getError(),n=r.getErrorCode().toString()||r.getVastErrorCode().toString(),o=this._getInnerErrorCode(r);RT.emit("AD_ERROR",n),this._broadcast(t,{message:n,details:o,status:"warning",analytics:{category:t,action:o,label:n}}),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_===nt.Rewarded&&this.rewardedLabel&&this.rewardedLabel.hide()}catch(e){console.log("Error on hide adResume",e)}}},{key:"_hideSkipButton",value:function(){try{this.adType_===nt.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 n=this;this.safetyTimer&&clearTimeout(this.safetyTimer),this.safetyTimer=window.setTimeout(function(){r(this,n),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(q(e.getInnerError)){var t=e.getInnerError();if(t)return q(t.getErrorCode)&&q(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 n=this;if(e){var o=this.macros.transform(e,{get:function(e){if(r(this,n),t&&t.tnl_keys)return t.tnl_keys[e.toLowerCase()]}.bind(this)});for(var i in o.query||{}){var a=o.query[i];U(a)&&(o.query[i]=l.stringify(a))}var s=new C(o.url,!0);return XO(s.query,o.query||{}),DT({url:s.toString()},t)}}},{key:"_transformVast",value:function(e,t){var r={url:e.url};try{var n=new C(e.url,!0),o=this._transformQuery(e,t,n);o&&(r.url=n.toString());var i=o?n:new C(e.url,!0);if(i.query.cust_params){var a=l.parse(i.query.cust_params);r.bidder=a.hb_bidder,r.cust_params=a}r.url_parsed=i}catch(e){r.hasError=!0,r.message=e.message,r.bidder="error",console.log(e.message)}return r}},{key:"_transformQuery",value:function(e,t,n){var o=this;if(e&&t&&e.tnl_keys){var i=this.options.vast_query;if(t.retry_on_success&&this.options.retry_on_success&&U(this.options.retry_on_success.vast_query)?i=this.options.retry_on_success.vast_query:t.retry_on_failure&&this.options.retry_on_failure&&U(this.options.retry_on_failure.vast_query)&&(i=this.options.retry_on_failure.vast_query),U(i=B(i))){var a=n.query;if(i.$$remove){for(var s in a){new RegExp(i.$$remove,"i").test(s)&&delete a[s]}delete i.$$remove}var u=l.parse(a.cust_params);if(i.cust_params&&i.cust_params.$$remove){for(var c in u){new RegExp(i.cust_params.$$remove,"i").test(c)&&delete u[c]}delete i.cust_params.$$remove}var d=this.macros.transform(i,{get:function(t){return r(this,o),e.tnl_keys[t.toLowerCase()]}.bind(this)});return a.cust_params=u,XO(a,d),a.cust_params=l.stringify(a.cust_params),!0}}}},{key:"_isExcludedBidderForT4R",value:function(){var e=this;try{var t,n,o,i,a=(null===(t=this._adrequest_user_context)||void 0===t||null===(n=t.adTag)||void 0===n?void 0:n.bidder)||"adx";this.msgrt.send("bidder",{message:a}),Js("ex_bidder ad request context",this._adrequest_user_context,'bidder:"'.concat(a,'"'));var s=(null===(o=this.gameData.t4rc)||void 0===o?void 0:o.bidder_exc)||[],u=(null===(i=this.gameData.t4rc)||void 0===i?void 0:i.bidder_inc)||[],c=!1;return u.length>0?c=!u.some(function(t){return r(this,e),t===a}.bind(this)):s.length>0&&(c=s.some(function(t){return r(this,e),t===a}.bind(this))),Js("ex_bidder_result",a,c),c}catch(e){console.log("ex_bidder ERR",e)}}},{key:"_isExcludedBidderForT4RWithBidderExcRate",value:function(){var e,t,r,n,o=this._isExcludedBidderForT4R(),i=null===(e=this.gameData)||void 0===e||null===(t=e.t4rc)||void 0===t?void 0:t.bidder_exc_rate,a=null!=i&&i.enabled?(null==i?void 0:i.rate)||.8:0,s=(null===(r=this._adrequest_user_context)||void 0===r||null===(n=r.adTag)||void 0===n?void 0:n.bidder)||"adx",u=Math.random();return o||"adx"!==s&&u<a}},{key:"_isT4R",value:function(e){var t,r,n,o,i,a,s;if(!this.gameData.publishedAt)return{success:!1,reason:"pdate-2"};var u=new Date(this.gameData.publishedAt);if(((new Date).getTime()-u.getTime())/864e5<=10)return{success:!1,reason:"pdate-1"};var c=this.gameData.meta,d=e.t4r.meta;if((null==c||null===(t=c.ast)||void 0===t?void 0:t.c)>=(null==d||null===(r=d.ast)||void 0===r?void 0:r.c)&&(null==c||null===(n=c.sit)||void 0===n?void 0:n.c)>=(null==d||null===(o=d.sit)||void 0===o?void 0:o.c))return{success:!1,reason:"meta"};if(this._isExcludedBidderForT4RWithBidderExcRate())return this.msgrt.send("bidder.ex",{message:"true"}),{success:!1,reason:"bidder"};this.msgrt.send("bidder.ex",{message:"false"});var l=null===(i=this._adrequest_user_context)||void 0===i?void 0:i.tnl_ad_pos;if(this.clickCount[l]>=(null===(a=e.t4r[l])||void 0===a?void 0:a.count))return{success:!1,reason:"click-count"};if(null!=e&&null!==(s=e.contentType)&&void 0!==s&&s.startsWith("image/")||"text"===(null==e?void 0:e.contentType)){var f,p=l&&(null===(f=e.t4r[l])||void 0===f?void 0:f.enabled);return{success:p,reason:p?null:"rule-check"}}if(null!=e&&e.contentType.startsWith("video/")){var h,m=(null===(h=e.t4r[l])||void 0===h?void 0:h.viper)||0;if(m>0){var v,g=Math.random()<m,A=l&&g&&(null===(v=e.t4r[l])||void 0===v?void 0:v.enabled);return{success:A,reason:A?null:"viper-check"}}return{success:!1,reason:"rule-check-viper"}}return{success:!1,reason:"media-format"}}},{key:"_isVMAP",value:function(e){var t,r,n,o,i,a,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===(r=t.pAds)||void 0===r?void 0:r.vmap)||!0===(null===(n=this.gameData)||void 0===n||null===(o=n.pAds)||void 0===o||null===(i=o.vmap)||void 0===i?void 0:i.enabled))||"midroll"===e&&(!0===(null===(a=this.gameData)||void 0===a||null===(s=a.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,r=null===(t=this._adrequest_user_context)||void 0===t?void 0:t.tnl_ad_pos;switch(r){case"preroll":case"midroll":case"rewarded":return e.t4r[r]}}},{key:"_is_completed",value:function(e){var t=e.getContentType(),r=e.getAdPodInfo();return!(!t.startsWith("image/")&&"text"!==t&&1!==r.getTotalAds())}},{key:"_get_vmap_context",value:function(e){for(var t=e.adtag,r=e.position,n=e.config,o=e.dp,i=n.count||2,a=[],s=1;s<=i;s++){var u={};u.adtag=this._createCustomAdVastUrl(n["vast_"+s])||t,u.position=r,u.dp=n["vast_"+s]?void 0:o,a.push(u)}return a}},{key:"_get_vmap_config",value:function(e){var t,r,n,o,i,a,s,u;switch(e){case"preroll":return null===(t=this.gameData)||void 0===t||null===(r=t.pAds)||void 0===r?void 0:r.vmap;case"midroll":return null===(n=this.gameData)||void 0===n||null===(o=n.mAds)||void 0===o?void 0:o.vmap;case"rewarded":return null===(i=this.gameData)||void 0===i||null===(a=i.rAds)||void 0===a?void 0:a.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,r,n;return!!e&&!0===(null===(t=this.gameData)||void 0===t||null===(r=t.dp)||void 0===r||null===(n=r[e])||void 0===n?void 0:n.enabled)}},{key:"_create_dp_display_context",value:function(){var e=this;return new Promise(function(t){var n=this;r(this,e);try{var o={id:this.topDomain||this.parentDomain,au:"display",ty:"display",aid:this.gameData.gameId,pgu:this.parentURL},i=new $O(this.gameData).checkCustomParams();i&&(o.cp=i);var a=encodeURIComponent(rt.encode(JSON.stringify(o)));fetch("https://tag.atom.gamedistribution.com/v1/atm?ar=".concat(a)).then(function(e){return r(this,n),e.json()}.bind(this)).then(function(e){if(r(this,n),!e||!e.p)return this.msgrt.send("dp.na",{message:"atom"}),t();var o=e.p/100;this.msgrt.send("dp.fp",{message:o}),t({params:{fp:o},error_url:"https://tag.atom.gamedistribution.com/v1/err?ar=".concat(a),impression_url:"https://tag.atom.gamedistribution.com/v1/imp?ar=".concat(a)})}.bind(this)).catch(function(e){r(this,n),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,n=this,o={id:this.topDomain||this.parentDomain,au:e||"unknown",ty:"video",aid:this.gameData.gameId,pgu:this.parentURL},i=Object.keys(o).map(function(e){return r(this,n),"".concat(e,"=").concat(encodeURIComponent(o[e]))}.bind(this)).join("&");encodeURIComponent(rt.encode(JSON.stringify(o)));var a=null===(t=this.gameData.promo)||void 0===t?void 0:t.rainbow,s=null==a?void 0:a.enabled,u="https://tag.atom.gamedistribution.com/v1/rainbow/?".concat(i),c=s?u:void 0;return function(){r(this,n),tu.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,n){var o=this;return new Promise(function(){var i=t(d.mark((function t(i){var a,s,u,c,l,f=this;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,o._isDP(e)){t.next=5;break}return o.msgrt.send("dp.na",{message:"rule"}),t.abrupt("return",i());case 5:s={id:o.topDomain||o.parentDomain,au:e||"unknown",ty:"video",aid:o.gameData.gameId,pgu:o.parentURL},(u=new $O(o.gameData).checkCustomParams())&&(s.cp=u),c=encodeURIComponent(rt.encode(JSON.stringify(s))),Js("gd-adflow isLastAdapter",null==n?void 0:n.adapterIndex,null==n?void 0:n.isLastAdapter),l=null===(a=o.gameData.promo)||void 0===a?void 0:a.rainbow,Js("gd-adflow promo_enabled",!1,null==l?void 0:l.enabled,null==n?void 0:n.isLastAdapter),fetch("https://tag.atom.gamedistribution.com/v1/atm?ar=".concat(c)).then(function(e){return r(this,f),e.json()}.bind(this)).then(function(e){if(r(this,f),!e||!e.p)return o.msgrt.send("dp.na",{message:"atom"}),i();var t=e.p/100;o.msgrt.send("dp.fp",{message:t}),i({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){r(this,f),o.msgrt.send("dp.err",{message:(null==e?void 0:e.message)||e}),i()}.bind(this)),t.next=20;break;case 16:t.prev=16,t.t0=t.catch(0),o.msgrt.send("dp.err",{message:(null===t.t0||void 0===t.t0?void 0:t.t0.message)||t.t0}),i();case 20:case"end":return t.stop()}}),t,this,[[0,16]])})));return function(e){return i.apply(this,arguments)}}())}},{key:"_extend_dp_with_adsense",value:function(e,t){if(e&&t)try{var r,n=new C(t.vastUrl,!0);if(null===(r=n.query)||void 0===r||!r.cust_params)return;var o=l.parse(n.query.cust_params);if(!o.tnl_asset_id)return;o.adsense=1,n.query.cust_params=l.stringify(o,!1),e.fallback_url=n.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 r=e.tnl_keys,n=!0!==(null==t?void 0:t.bidFloorApplied)?0:1;0===n&&null!=r&&r.hasOwnProperty("fp")?n=2:1!==n||null!=r&&r.hasOwnProperty("fp")||(n=3),r.bfa=n;try{var o,i=new C(e.url,!0);if(null===(o=i.query)||void 0===o||!o.cust_params)return;var a=l.parse(i.query.cust_params);a.bfa=n,a.adsense=0,i.query.cust_params=l.stringify(a,!1),e.url=i.toString(),t.vastUrl=e.url}catch(e){}finally{this.msgrt.send("bfa",{message:n})}}},{key:"_init_hl_script",value:(h=t(d.mark((function e(t){var n,o,i,a,s,u,c,l,f=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this._getPrebidScripts(),o=n[0],i=function(){return r(this,f),!1}.bind(this),window.idhb=window.idhb||{iabCmpExists:i},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||[],(a=new URL(o)).searchParams.append("referer",window.idhb.options.configUrl),o=a.href,e.next=13,ft(o,"gdsdk_prebid",{alternates:n,error_prefix:"Blocked:",exists:function(){return r(this,f),window.idhb.requestAds}.bind(this)});case 13:return e.next=15,this.checkOpphbPath();case 15:s=st("ch",window.location.href),u=st("ch_date",window.location.href),c={tnl_content_category:this.category.toLowerCase()},s&&(c.channel=s),u&&(c.ch_date=u),(l=st("hl_label",this.parentURL)||st("hl_label",window.location.href))&&(c.label=l),window.idhb.setAdserverTargeting(c),window.idhb.allowPersonalizedAds(!!parseInt(this.userAllowedPersonalizedAds)),window.idhb.addEventListener("slotRenderEnded",function(e){var t=this;r(this,f);try{var n,o,i=e.slotId.split("@");i=1===i.length?i[0]:i[1],e.isEmpty?(null!==(n=this.atom_display)&&void 0!==n&&n.error_url&&(fetch(this.atom_display.error_url).catch(function(e){r(this,t)}.bind(this)),delete this.atom_display),Js("display_test DISPLAYAD_ERR",e),this._broadcast("DISPLAYAD_ERROR",{message:i,status:"warning"})):(null!==(o=this.atom_display)&&void 0!==o&&o.impression_url&&(fetch(this.atom_display.impression_url).catch(function(e){r(this,t)}.bind(this)),delete this.atom_display),Js("display_test DISPLAYAD_IMPRESSION"),this._broadcast("DISPLAYAD_IMPRESSION",{message:i,status:"success"}))}catch(e){}}.bind(this));case 25: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,r,n,o,i,a;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n=this.topDomain||this.parentDomain||"",o=(null===(t=this.gameData)||void 0===t?void 0:t.gameId)||"",i=(null===(r=this.options)||void 0===r?void 0:r.width)||640,e.next=6,fetch("https://pub.headerlift.com/opphb?page_url=".concat(n,"&page_type=gd&page_width=").concat(i,"&aid=").concat(o));case 6:a=e.sent,Xs("opphb load success",a),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 n,o,i=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=["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"],o=this.options.debug?n[0]:n[1],e.next=4,ft(o,"gdsdk_ima",{alternates:n,error_prefix:"Blocked:",exists:function(){return r(this,i),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 n,o,i,a,s=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(a={}).crossorigin="anonymous",a["data-ad-client"]=(null==t||null===(n=t.adsense_client)||void 0===n?void 0:n.length)>0?t.adsense_client:"ca-pub-2316275586951220",a["data-ad-frequency-hint"]="30s",a.allow="autoplay",(null==t||null===(o=t.adsense_channel)||void 0===o?void 0:o.length)>0&&(a["data-ad-channel"]=t.adsense_channel),(null==t||null===(i=t.adsense_host)||void 0===i?void 0:i.length)>0&&(a["data-ad-host"]=t.adsense_host),!0===(null==t?void 0:t.adsense_adbreak_test)&&(a["data-adbreak-test"]="on"),e.next=15,ft("https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js","afg",{error_prefix:"Blocked:",exists:function(){return r(this,s),!!window.adsbygoogle}.bind(this),attrs:a});case 15:window.adsbygoogle=window.adsbygoogle||[],window.adsbygoogle.push({sound:"on",preloadAdBreaks:"on"});case 17: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,r=e.scrolls,n=t||"120vh",o=r||!0,i=document.getElementsByClassName("adsbygoogle"),a=0;a<i.length;a++){var s,u=i[a],c=u&&(null===(s=u.children[0])||void 0===s?void 0:s.children[0]);c&&"IFRAME"===c.tagName&&c.style.height!==n&&(Js("out-of-bounds fix apply"),c.style.height=n,o&&(c.parentElement.style.overflow="auto"))}}catch(e){Js("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 n,o,i,a,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(r(this,f),tu.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"),n=!1,o=function(){r(this,f),n=!0,this.fixOutOfBounds(),this._broadcast("CONTENT_PAUSE_REQUESTED",{message:"",status:"success"}),this._broadcast("IMPRESSION",{message:"",status:"success"})}.bind(this),i=function(){r(this,f),n=!0,this._broadcast("CONTENT_RESUME_REQUESTED",{message:"",status:"success"})}.bind(this),a=function(){r(this,f),n=!0,this._send_atom_event("sg.ad.rw.dismissed")}.bind(this),s=function(){r(this,f),n=!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){r(this,f),n=!0,e()}.bind(this),c=function(e){r(this,f),n=!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(){r(this,f),n||(Xs("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:o,afterAd:i,adDismissed:a,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 n,o,i=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(r(this,i),tu.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,n=function(){r(this,i),this.adPlacementEventReceived=!0}.bind(this),o=function(e){r(this,i),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"}),a={type:"preroll",beforeAd:n,adBreakDone:o},window.adsbygoogle.push(a),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 a}),e,this,[[1,18]])}))),function(e){return s.apply(this,arguments)})},{key:"_startAdsensePlacementStart",value:(a=t(d.mark((function e(t){var n,o,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(r(this,a),tu.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"),n=function(){r(this,a),this.adPlacementEventReceived=!0,this.fixOutOfBounds(),this._broadcast("CONTENT_PAUSE_REQUESTED",{message:"",status:"success"}),this._broadcast("IMPRESSION",{message:"",status:"success"})}.bind(this),o=function(){r(this,a),this.adPlacementEventReceived=!0,this._broadcast("CONTENT_RESUME_REQUESTED",{message:"",status:"success"})}.bind(this),this.adPlacementEventReceived=!1,i=function(e){r(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("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:n,afterAd:o,adBreakDone:i},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:"_startTimeoutForAdBreak",value:function(e){var t,n,o,i,a,s,u=this;if(null===(t=this.gameData)||void 0===t||null===(n=t.ad_blcks)||void 0===n||null===(o=n.adsenseTimeout)||void 0===o?void 0:o.enabled){null==e||e.adType,null===(i=this.gameData)||void 0===i||null===(a=i.ad_blcks)||void 0===a||null===(s=a.adsenseTimeout)||void 0===s||s.timeout;var c=setTimeout(function(){r(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(){r(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:(i=t(d.mark((function e(t){var n,o,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(r(this,a),tu.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"),n=function(){r(this,a),this.adPlacementEventReceived=!0,this.fixOutOfBounds(),this._broadcast("CONTENT_PAUSE_REQUESTED",{message:"",status:"success"}),this._broadcast("IMPRESSION",{message:"",status:"success"})}.bind(this),o=function(){r(this,a),this.adPlacementEventReceived=!0,this._broadcast("CONTENT_RESUME_REQUESTED",{message:"",status:"success"})}.bind(this),this.adPlacementEventReceived=!1,i=function(e){r(this,a),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:n,afterAd:o,adBreakDone:i},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 i.apply(this,arguments)})},{key:"_send",value:function(e,t){try{var r=this.msgrt,n=r._layout,o=r._ua,i={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:o.browser.name,brvs:o.browser.version,osnm:o.os.name,osvs:o.os.version,dvmd:o.device.model,w:n.w,h:n.h}};return fetch("https://tag.atom.gamedistribution.com/v1/dmp?ar=".concat(encodeURIComponent(rt.encode(JSON.stringify(i)))))}catch(e){}}},{key:"_send_atom_event",value:function(e,t){var r={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},n=(new cD).get();return r=DT(DT({},r),n),r=t?DT(DT({},r),t):r,this._send(e,r)}},{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 r=e.adType;if(r===nt.Rewarded)t="reward";else if(r===nt.Interstitial){var n,o;if(this._isAfgPositionStart(e))t=null===(n=this.gameData.pAds)||void 0===n||!n.enabled||null!==(o=this.gameData.loader)&&void 0!==o&&o.enabled?"start":"next";else this._isAfgPositionNext(e)&&(t="next")}t||(t="preroll"),e.params.position=t}},{key:"_broadcast",value:function(e,t){var n=this,o=!1;["AD_ERROR"].some(function(t){return r(this,n),t===e}.bind(this))&&(o=!this.adContext.isLastAdapter||this.adContext.extraPromoRunOnFail);var i=this.getCurrentAdPosition(this.adContext.adType);this.eventBus.broadcast(e,DT(DT({},t),{},{skipForward:o,adPosition:i}))}},{key:"mute",value:(o=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 o.apply(this,arguments)})},{key:"terminate",value:(n=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 n.apply(this,arguments)})}]),e}(),OT=L((function e(r){var n=this;O(this,e),ru(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(n.moduleName);case 2:n.module=e.sent;case 3:case"end":return e.stop()}}),e)})))),ru(this,"promo",t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.module){e.next=3;break}return e.next=3,n.load();case 3:return e.abrupt("return",n.module[n.moduleDefault]);case 4:case"end":return e.stop()}}),e)}))));var o=r.package||"gd-sdk-stone-dynamic",i=r.package_version||"1.1.1",a=r.template||"puzzle",s=r.dependencies||[];this.moduleName="GDPromoByOrbit",this.moduleDefault=a.charAt(0).toUpperCase()+a.slice(1),this.moduleConfig={source:"https://pm.azerioncircle.com/@bygd/".concat(o,"/").concat(i,"/dist/").concat(a.toLowerCase(),"/iife/index.js"),dependencies:s},jb(this.moduleName,this.moduleConfig)})),TT=L((function e(r){var n=this;O(this,e),ru(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(n.moduleName);case 2:n.module=e.sent;case 3:case"end":return e.stop()}}),e)})))),ru(this,"splash",t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.module){e.next=3;break}return e.next=3,n.load();case 3:return e.abrupt("return",n.module[n.moduleDefault]);case 4:case"end":return e.stop()}}),e)}))));var o=r.package||"gd-sdk-air-dynamic",i=r.package_version||"1.2.0",a=r.template||"pluto",s=r.dependencies||[];this.moduleName="GDSplashDynamic",this.moduleDefault=a.charAt(0).toUpperCase()+a.slice(1),this.moduleConfig={source:"https://pm.azerioncircle.com/@bygd/".concat(o,"/").concat(i,"/dist/").concat(a.toLowerCase(),"/iife/index.js"),dependencies:s},jb(this.moduleName,this.moduleConfig)})),PT=function(e,t){console.log(e,t)},LT={},MT={},BT=null;function jT(){for(var e,t=window,r=null,n=null;!e;){try{if("function"==typeof t.__tcfapi||"function"==typeof t.__cmp){"function"==typeof t.__tcfapi?(n=2,r=t.__tcfapi):(n=1,r=t.__cmp),e=t;break}}catch(e){}try{if(t.frames.__tcfapiLocator){n=2,e=t;break}}catch(e){}try{if(t.frames.__cmpLocator){n=1,e=t;break}}catch(e){}if(t===window.top)break;t=t.parent}return LT.version=n,LT.frame=e,LT.function=r,LT.version}function UT(e){var t=this;return BT||(BT=new Promise(function(n){function o(t,r){if(PT("Received a response from CMP",t),r){var o,i;if(!1!==t.gdprApplies)return"tcloaded"===t.eventStatus||"useractioncomplete"===t.eventStatus?(("boolean"!=typeof(i=(o=t)&&"boolean"==typeof o.gdprApplies?o.gdprApplies:e.defaultGdprScope)||!0===i&&"string"!=typeof o.tcString)&&n({result:"cmpUnexpectedResponse",cmp:LT,consentData:o}),void n({result:"ok",consentData:t})):void 0;n({result:"ok",consentData:t})}else n({result:"cmpCallFailed"})}r(this,t),jT(),LT.frame?2===LT.version?(PT("TCF v2 CMP found. Fetching the consent."),LT.function?(PT("CMP API is directly accessible, calling it now..."),LT.function("addEventListener",LT.version,o)):(PT("CMP API is outside the current iframe, calling it now..."),function(e,t,n){var o=this,i="__tcfapi";function a(e){var t="".concat(i,"Return"),r="string"==typeof e.data&&e.data.indexOf(t)>=0?JSON.parse(e.data):e.data;if(r[t]&&r[t].callId){var n=r[t];void 0!==MT[n.callId]&&MT[n.callId](n.returnValue,n.success)}}window[i]=function(e,n,a,s){r(this,o);var u=Math.random()+"",c=ru({},"".concat(i,"Call"),{command:e,parameter:s,callId:u,version:n});MT[u]=a,t.postMessage(c,"*")}.bind(this),window.addEventListener("message",a,!1),window[i](e,LT.version,n)}("addEventListener",LT.frame,o))):n({result:"cmpVersionNotV2",cmp:LT}):n({result:"cmpNotFound"})}.bind(this)),BT)}var FT=function(){function e(){O(this,e),this.productName="Game Distribution"}var r;return L(e,[{key:"checkIfExcluded",value:function(e){try{var t,r;return!(null===(t=e.diagnostic)||void 0===t||null===(r=t.gameDock)||void 0===r||!r.excluded)}catch(e){return console.log("Error on checkIfExclude check",e),!1}}},{key:"track",value:(r=t(d.mark((function e(t,r){var n,o,i,a,s,u,c;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.checkIfExcluded(r)){e.next=3;break}return e.abrupt("return");case 3:if(i=null==t||null===(n=t.visitor)||void 0===n||null===(o=n.visitorData)||void 0===o?void 0:o.visitorId){e.next=6;break}return e.abrupt("return");case 6:return a=encodeURIComponent(this.productName),s=encodeURIComponent(i),e.prev=8,u="https://tracker-v4.gamedock.io/v1/events-tracker/track/product/".concat(a,"/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(a,"/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 r.apply(this,arguments)})}]),e}(),NT=new FT;function $T(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return GT(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return GT(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}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 i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function GT(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var HT,zT=function(e){var t=this,n=e.src,o=e.attributes,i=e.target,a=e.isAsync;return new Promise(function(e,s){var u=this;r(this,t);try{var c=document.createElement("script");if(c.async=null==a||a,c.type="text/javascript",c.onload=function(){r(this,u),e()}.bind(this),c.onerror=function(){r(this,u);var e="Error on script load, Error: ".concat(n);console.log(e),s(e)}.bind(this),c.src=n,o){var d,l=$T(o);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()}}i||(i=document.head),i.appendChild(c)}catch(e){var m="Error on script load catch, Error: ".concat(n);console.log(m,e),s(m)}}.bind(this))},ZT="ffd4774b-99ae-4464-8f40-3afa12b4692e",KT=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,zT({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,zT({src:"https://cdn.cookielaw.org/consent/".concat(ZT,"/OtAutoBlock.js"),attributes:[{key:"id",value:"gd-cookie-pro-autoblock"}],isAsync:!1});case 5:return e.next=7,zT({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:ZT}],isAsync:!1});case 7:r=void 0,n=void 0,o=void 0,r=(t={inlineScript:"function OptanonWrapper() { }"}).inlineScript,n=t.target,(o=document.createElement("script")).text=r,n||(n=document.head),n.appendChild(o),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,r,n,o}),e,null,[[0,10]])})));return function(){return e.apply(this,arguments)}}(),qT=new pD.exports.EventEmitter,VT={"https://games.softgames.com":{"splash-hidden":"splash-hidden"},"https://sg.gamedistribution.com":{"splash-hidden":"splash-hidden"},"https://html5.gamedistribution.com":{key:"value"}},WT=!1;window.addEventListener("message",(function(e){var t=this,n=e.data,o=e.origin,i=n.type;if(Object.keys(VT).some(function(e){return r(this,t),e===o}.bind(this))&&(null==n||!n.__tcfapiCall)){var a=!n.type||!n.type.startsWith("gd-sdk")&&!("parent-data-response"===n.type)||"sg-game-event"===n.type;!function(e){if("gd-sdk-on-event"===(null==e?void 0:e.type)){var t,r,n;if("midroll"!==(null==e||null===(t=e.event)||void 0===t?void 0:t.adPosition))return;var o="CONTENT_RESUME_REQUESTED"===(null===(r=e.event)||void 0===r?void 0:r.name);"CONTENT_PAUSE_REQUESTED"===(null===(n=e.event)||void 0===n?void 0:n.name)&&(WT=!0),o&&WT&&(WT=!1,window.parent.postMessage({type:"sg-game-event",eventName:"levelFinish",data:{score:100}},"*"))}}(n);var s=function(){r(this,t);try{var n,o;return null==e||null===(n=e.source)||void 0===n||null===(o=n.location)||void 0===o?void 0:o.href}catch(e){}}.bind(this);if(window.parent&&a){if("https://html5.gamedistribution.com"===o){var u=s();if(!u)return;var c=u&&["9555f04e1900482aaaef710cd2f8c440"].some(function(e){return r(this,t),u.indexOf(e)>0}.bind(this)),d=["sg-game-event"].some(function(e){return r(this,t),e===(null==n?void 0:n.type)}.bind(this));if(!c&&!d)return}var l=n.eventName,f=n.data;window.mpHelper&&(console.log("SG_EVENTS sending to minijuegos!"),"levelStart"!==l&&"levelFinish"!==l||window.mpHelper.sendStat("level",f.level),"levelFinish"===l&&window.mpHelper.sendStat("score",f.score)),window.parent.postMessage(n,"*")}if(i){var p=VT[o][i];p&&qT.emit(p,n)}}}),!1);var YT=new Uint8Array(16);function QT(){if(!HT&&!(HT="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 HT(YT)}var JT=/^(?:[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 XT=[],eP=0;eP<256;++eP)XT.push((eP+256).toString(16).substr(1));function tP(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(XT[e[t+0]]+XT[e[t+1]]+XT[e[t+2]]+XT[e[t+3]]+"-"+XT[e[t+4]]+XT[e[t+5]]+"-"+XT[e[t+6]]+XT[e[t+7]]+"-"+XT[e[t+8]]+XT[e[t+9]]+"-"+XT[e[t+10]]+XT[e[t+11]]+XT[e[t+12]]+XT[e[t+13]]+XT[e[t+14]]+XT[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&JT.test(e)}(r))throw TypeError("Stringified UUID is invalid");return r}function rP(e,t,r){var n=(e=e||{}).random||(e.rng||QT)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var o=0;o<16;++o)t[r+o]=n[o];return t}return tP(n)}function nP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var oP="__msgr",iP=rP(),aP=function(e){var t=this;if(!window[oP]){var n=document.createElement("iframe");if(n.src="https://static.gamedistribution.com/message/index.html",n.style.display="none",n.name=oP,document.body.appendChild(n),window!==window.top){var o={gameId:e.gameId,target:e.evnts.domain,token:iP,event_name:"TokenGenerated",timestamp:Date.now()};n.onload=function(){cP(o)},setInterval(function(){r(this,t),o.timestamp=Date.now(),o.event_name="Heartbeat",cP(o)}.bind(this),1e3*e.evnts.heartbeatDuration)}}window.addEventListener("message",function(e){r(this,t);try{var n=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?nP(Object(r),!0).forEach((function(t){ru(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nP(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e.data);if(!n.event_name)return;n.token=iP,cP(n)}catch(e){console.error("GD Messager Error",e.message)}}.bind(this),!1)},sP=function(e){try{var t={gameId:e.game.gameId,target:e.game.evnts.domain,event_name:e.event,timestamp:Date.now()},r=uP(window);r!==window.top&&(null==r||r.postMessage(t,"https://html5.gamedistribution.com"))}catch(e){}},uP=function e(t){try{var r,n,o=null==t?void 0:t.parent;if("game"===(null===(r=o.document)||void 0===r||null===(n=r.activeElement)||void 0===n?void 0:n.id))return o;e(o)}catch(e){return t}},cP=function(e){try{window[oP]&&window[oP].postMessage(e,"*")}catch(e){console.log("GD Messager initialization, please wait....")}},dP=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 n,o,i;return L(e,[{key:"run",value:function(e){var n=e.duration,o=this;return new Promise(function(){var e=t(d.mark((function e(t,i){var a,s=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,o.add();case 3:a=o.show(),setTimeout(function(){r(this,s);try{o.hide(),t({success:a})}catch(e){i(e)}}.bind(this),1e3*n),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),i(e.t0);case 10:case"end":return e.stop()}}),e,this,[[0,7]])})));return function(t,r){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:(i=t(d.mark((function e(){var r,n,o,i=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,r=document.createElement("div"),this.promo=r,n=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(n),i.track_click(n.click_tracking),window.open(n.click_through,"_blank");case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),(o=document.createElement("iframe")).src=this.promo_data.renderer_url,o.setAttribute("frameborder",0),this.addStyles(),this.promo.classList.add("gd__promo"),o.classList.add("gd__promo__iframe"),this.promo.appendChild(o),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 i.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,r){if(!document.getElementById(e)){var n=document.createElement("style");n.id=e,n.styleSheet?n.styleSheet.cssText=r:n.appendChild(document.createTextNode(r)),t.appendChild(n)}}},{key:"fetch_promo",value:(o=t(d.mark((function e(){var t,n=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 r(this,n),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 o.apply(this,arguments)})},{key:"track_click",value:(n=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 n.apply(this,arguments)})}]),e}();function lP(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function fP(e){return function(e){if(Array.isArray(e))return lP(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 lP(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?lP(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 pP=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"GD",r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ObjectStore";O(this,e),this.dbName=t,this.storeName=r,this.db=null,this.init()}var n,o,i,a;return L(e,[{key:"init",value:function(){var e=this;return new Promise(function(t,n){var o=this;r(this,e);var i=indexedDB.open(this.dbName,1);i.onerror=function(e){r(this,o),console.error("Database error:",e.target.error),n(e.target.error)}.bind(this),i.onsuccess=function(e){r(this,o),this.db=e.target.result,t(this.db)}.bind(this),i.onupgradeneeded=function(e){r(this,o);var t=e.target.result;t.objectStoreNames.contains(this.storeName)||t.createObjectStore(this.storeName,{keyPath:"key"})}.bind(this)}.bind(this))}},{key:"getItem",value:(a=t(d.mark((function e(t){var n=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,o){var i=this;r(this,n);var a=this.db.transaction([this.storeName],"readonly").objectStore(this.storeName).get(t);a.onerror=function(e){r(this,i),console.error("Get item error:",e.target.error),o(e.target.error)}.bind(this),a.onsuccess=function(t){r(this,i),a.result?e(a.result.value):e(null)}.bind(this)}.bind(this)));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"setItem",value:(i=t(d.mark((function e(t,n){var o=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;r(this,o);var s=this.db.transaction([this.storeName],"readwrite").objectStore(this.storeName).put({key:t,value:n});s.onerror=function(e){r(this,a),console.error("Set item error:",e.target.error),i(e.target.error)}.bind(this),s.onsuccess=function(t){r(this,a),e()}.bind(this)}.bind(this)));case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return i.apply(this,arguments)})},{key:"removeItem",value:(o=t(d.mark((function e(t){var n=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,o){var i=this;r(this,n);var a=this.db.transaction([this.storeName],"readwrite").objectStore(this.storeName).delete(t);a.onerror=function(e){r(this,i),console.error("Remove item error:",e.target.error),o(e.target.error)}.bind(this),a.onsuccess=function(t){r(this,i),e()}.bind(this)}.bind(this)));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return o.apply(this,arguments)})},{key:"clear",value:(n=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,n){var o=this;r(this,t);var i=this.db.transaction([this.storeName],"readwrite").objectStore(this.storeName).clear();i.onerror=function(e){r(this,o),console.error("Clear store error:",e.target.error),n(e.target.error)}.bind(this),i.onsuccess=function(t){r(this,o),e()}.bind(this)}.bind(this)));case 4:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})}]),e}(),hP=function(){function e(r){var n=r.mode;O(this,e),this.setItem=function(){var e=t(d.mark((function e(t,r){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})));return function(t,r){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"===n?(this.indexedStore=new pP,this.setItem=this.indexedStore.setItem.bind(this.indexedStore),this.getItem=this.indexedStore.getItem.bind(this.indexedStore)):"local-storage"===n&&(this.setItem=function(){var e=t(d.mark((function e(t,r){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",gt.set(t,r));case 1:case"end":return e.stop()}}),e)})));return function(t,r){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 r,n;return L(e,[{key:"set",value:(n=t(d.mark((function e(t,r){var n;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=JSON.stringify(r),e.next=3,this.setItem(t,n);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"get",value:(r=t(d.mark((function e(t){var r;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getItem(t);case 2:return r=e.sent,e.abrupt("return",r?JSON.parse(r):null);case 4:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})}]),e}();function mP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function vP(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?mP(Object(r),!0).forEach((function(t){ru(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mP(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var gP="_gd_vs";function AP(e){return bP.apply(this,arguments)}function bP(){return bP=t(d.mark((function e(t){var r,n,o,i;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.gameId,n=t.serverDate,i=[],!window.indexedDB){e.next=13;break}return e.prev=3,e.next=6,wP({gameId:r,serverDate:n});case 6:o=e.sent,e.next=13;break;case 9:e.prev=9,e.t0=e.catch(3),eu("visit-update error, indexedDb",e.t0.message),i.push(e.t0.message);case 13:if(o||!gt.available){e.next=24;break}return e.prev=14,e.next=17,yP({gameId:r,serverDate:n});case 17:o=e.sent,e.next=24;break;case 20:e.prev=20,e.t1=e.catch(14),eu("visit-update error, Ls",e.t1.message),i.push(e.t1.message);case 24:return e.abrupt("return",vP(vP({},o),{},{errors:i}));case 25:case"end":return e.stop()}}),e,null,[[3,9],[14,20]])}))),bP.apply(this,arguments)}function yP(e){return _P.apply(this,arguments)}function _P(){return _P=t(d.mark((function e(t){var r,n,o,i,a,s;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.gameId,n=t.serverDate,i=new hP({mode:o="local-storage"}),e.next=5,i.get(gP);case 5:return(a=e.sent)||(a={gids:{}}),a.gids[r]||(a.gids[r]={fv:n,vc:0}),(s=a.gids[r]).vc++,s.lv=n,e.next=13,i.set(gP,a);case 13:return e.abrupt("return",{visit:s,mode:o});case 14:case"end":return e.stop()}}),e)}))),_P.apply(this,arguments)}function wP(e){return xP.apply(this,arguments)}function xP(){return xP=t(d.mark((function e(t){var r,n,o,i,a;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.gameId,n=t.serverDate,i=new hP({mode:o="indexed-db"}),e.next=5,i.get(r);case 5:return(a=e.sent)||(a={fv:n,vc:0}),a.vc++,a.lv=n,e.next=11,i.set(r,a);case 11:return e.abrupt("return",{visit:a,mode:o});case 12:case"end":return e.stop()}}),e)}))),xP.apply(this,arguments)}let kP=(e=21)=>{let t="",r=crypto.getRandomValues(new Uint8Array(e));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&r[e]];return t};var EP={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}function o(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function i(e,t,n,i,a){if("function"!=typeof n)throw new TypeError("The listener must be a function");var s=new o(n,i||e,a),u=r?r+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 a(e,t){0==--e._eventsCount?e._events=new n:delete e._events[t]}function s(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),s.prototype.eventNames=function(){var e,n,o=[];if(0===this._eventsCount)return o;for(n in e=this._events)t.call(e,n)&&o.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},s.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,i=n.length,a=new Array(i);o<i;o++)a[o]=n[o].fn;return a},s.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},s.prototype.emit=function(e,t,n,o,i,a){var s=r?r+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,n),!0;case 4:return d.fn.call(d.context,t,n,o),!0;case 5:return d.fn.call(d.context,t,n,o,i),!0;case 6:return d.fn.call(d.context,t,n,o,i,a),!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,n);break;case 4:d[c].fn.call(d[c].context,t,n,o);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,r){return i(this,e,t,r,!1)},s.prototype.once=function(e,t,r){return i(this,e,t,r,!0)},s.prototype.removeListener=function(e,t,n,o){var i=r?r+e:e;if(!this._events[i])return this;if(!t)return a(this,i),this;var s=this._events[i];if(s.fn)s.fn!==t||o&&!s.once||n&&s.context!==n||a(this,i);else{for(var u=0,c=[],d=s.length;u<d;u++)(s[u].fn!==t||o&&!s[u].once||n&&s[u].context!==n)&&c.push(s[u]);c.length?this._events[i]=1===c.length?c[0]:c:a(this,i)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&a(this,t)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s}(EP);var SP=EP.exports;function DP({window:e,serviceId:t}){return e&&t?t===this.serviceId?Promise.reject(new Error("[IS] Cannot connect to self")):new Promise(((r,n)=>{const o=kP();this.transactionHandler[o]=e=>{if("object"!=typeof e.data)return;const{contextId:t,scriptId:o,serviceId:i,messageId:a,sender:s}=e.data||{};t&&o&&i&&a&&s&&0!==e.ports.length&&(e.ports[0].start(),this.router=e.ports[0],this.router.onmessage=this.handleMessage.bind(this),this.router.serviceId=i,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 n=Date.now()-t.ts;this.verbose&&console.log(`[IS] ${this.id}: Connection echo test response received from ${s} in ${n} ms`),r(e.data.body)})).catch((e=>{n(e)})))};const i=this.createMessage({transactionId:o,method:"connect"});i.body={where:{serviceId:t}},e.postMessage(i,"*"),this.setupTransactionTimeout({transactionId:o,reject:n})})):Promise.reject(new Error("[IS] Target window and service ID are required to connect to a service"))}function RP(){}function IP(e){return e}function CP({method:e,handler:t,configurable:r=!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:r}),this.verbose&&console.log(`[IS] ${this.id}: Registered handler for ${e}`)}function OP({alias:e,method:t,service:r,configurable:n=!1}){this.api.register({method:e,handler:(e,n)=>this.api.proxy({method:t,service:r,args:e,options:n}),configurable:n}),this.verbose&&console.log(`[IS] ${this.id}: Registered proxy for ${e} to ${r}`)}const TP={services:{}};function PP({method:e,args:t,service:r,options:n={}}){return new Promise(((o,i)=>{const a=kP();this.transactionHandler[a]=e=>{e.data.elapsed=Date.now()-e.data.ts,e.data.error?i(e.data.error):o(e.data?.body)};const s=(r||"").split("/"),u=s.shift(),c=this.clients[u];if(void 0===c){if(!this.router)return delete this.transactionHandler[a],i(new Error(`No router registered for ${this.id}`));n?.callback&&this.api.register({method:a,handler:n.callback,configurable:!0});const o=this.createMessage({transactionId:a,method:e,hasCallback:!!n?.callback});t&&(o.body=t),r&&(o.service=r),this.router.postMessage(o),this.setupTransactionTimeout({transactionId:a,reject:i,timeout:n?.timeout})}else{const r=this.createMessage({transactionId:a,method:e,hasCallback:!!n?.callback});n?.callback&&this.api.register({method:a,handler:n.callback,configurable:!0}),t&&(r.body=t),s.length>0&&(r.service=s.join("/")),c.postMessage(r),this.setupTransactionTimeout({transactionId:a,reject:i,timeout:n?.timeout})}}))}function LP(){window.removeEventListener("message",this.handleMessage)}function MP({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 r=Object.keys(t.clients);if(Array.isArray(e.client)){if(e.client.length&&!e.client.some((e=>r.includes(e))))return!1}else if(!r.includes(e.client))return!1}return!0}async function BP({timeout:e=1e3,interval:t=100,where:r={}}={}){const n=Date.now();let o=Math.floor(e/t);const i=FP.bind(this);for(;o>0;){const e=await i({timeout:t,where:r});if(e)return this.verbose&&console.log(`[IS] ${this.id}: Router found in ${Date.now()-n}ms`),e;o--}return this.verbose&&console.log(`[IS] ${this.id}: Router not found in ${Date.now()-n}ms`),null}function jP({window:e,timeout:t,where:r}={}){return new Promise(((n,o)=>{const i=kP();this.transactionHandler[i]=e=>{if("object"!=typeof e.data)return;const{contextId:t,scriptId:r,serviceId:o,messageId:i,sender:a}=e.data;t&&r&&o&&i&&a&&n(e.data)};const a=this.createMessage({transactionId:i,method:"are-you-router"});a.body={where:r},e.postMessage(a,"*"),this.setupTransactionTimeout({transactionId:i,reject:o,timeout:t})}))}function UP({where:e}={}){const t=TP.services,r=Object.keys(t),n=this.serviceId;for(let o=0;o<r.length;o++){const i=t[r[o]];if(i.serviceId!==n&&(MP({where:e,service:i})&&i.router_enabled))return i}return null}async function FP({timeout:e,where:t}={}){const r=UP.call(this,{where:t});if(r)return{window:window,serviceId:r.serviceId,contextId:r.contextId,scriptId:r.scriptId};let n=window.parent;for(;n!==window;){const r=await jP.call(this,{window:n,timeout:e,where:t}).catch((e=>{this.verbose&&console.log(`[IS] ${this.id}: ${e.message}`)}));if(r)return{window:n,serviceId:r.serviceId,contextId:r.contextId,scriptId:r.scriptId};if(n===n.parent)break;n=n.parent}return null}function NP({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 $P(){return kP()}async function GP(e){const{transactionId:t,messageId:r,serviceId:n,method:o,sender:i,body:a}=e.data;if(this.serviceId===n)return;if(!MP({where:a?.where,service:this}))return;const s=new MessageChannel;s.port1.start(),this.clients[i]=s.port1,this.clients[i].onmessage=this.handleMessage.bind(this),this.clients[i].serviceId=n,this.clients[i].onmessageerror=e=>{console.error(`[IS] ${this.id}: Error received from ${i}`,e?.message||e)};const u=this.createMessage({transactionId:t,replyTo:r});u.body=a,e.source.postMessage(u,"*",[s.port2]),this.verbose&&console.log(`[IS] ${this.id}: Connection received from ${i}`);try{this.ee.emit("connected",{contextId:e.data.contextId,scriptId:e.data.scriptId,serviceId:n,service:i})}catch(e){this.verbose&&console.log(`[IS] ${this.id}: Error while emitting connected event`,e.message)}}async function HP(e){const{transactionId:t,messageId:r,serviceId:n,body:o}=e.data;if(!0!==this.router_enabled)return;if(this.serviceId===n)return;if(!MP({where:o?.where,service:this}))return;const i=this.createMessage({transactionId:t,replyTo:r});i.body=o,e.source.postMessage(i,"*")}async function zP(e){const{transactionId:t,messageId:r,method:n,service:o}=e.data,i=this.createMessage({transactionId:t,replyTo:r});try{const t=await this.api.proxy({method:n,args:e.data.body,service:o});i.body=t,e.target.postMessage(i)}catch(t){i.error=t?.message||t,e.target.postMessage(i)}}async function ZP(e){const{transactionId:t,messageId:r,method:n}=e.data,o=this.registeredHandlers[n],i=this.createMessage({transactionId:t,replyTo:r});try{const t=await o(e.data.body,e.data);i.body=t,e.target.postMessage(i)}catch(t){i.error=t?.message||t,e.target.postMessage(i)}}async function KP(e){const{transactionId:t}=e.data,r=this.transactionHandler[t];delete this.transactionHandler[t],await r(e)}async function qP(e){if("object"!=typeof e.data)return;const{transactionId:t,contextId:r,scriptId:n,messageId:o,serviceId:i,method:a,service:s}=e.data;if(t&&r&&n&&o&&i)switch(this.verbose&&console.log(`[IS] ${this.id}`,e.data),a){case"connect":await GP.call(this,e);break;case"are-you-router":await HP.call(this,e);break;default:a&&s?await zP.call(this,e):a&&this.registeredHandlers[a]?await ZP.call(this,e):this.transactionHandler[t]&&await KP.call(this,e)}}function VP({transactionId:e,reject:t,timeout:r=1e3}){const n=setTimeout((()=>{clearTimeout(n),delete this.transactionHandler[e],this.api.unregister({method:e}),t(new Error("[IS] timeout"))}),r)}async function WP(){const e="INTERSERVICE_CONTEXT_ID";window[e]||Object.defineProperty(window,e,{value:kP(),enumerable:!1,configurable:!1}),this.contextId=window[e],this.scriptId=await async function(e){if(!e)return null;const t=(new TextEncoder).encode(e),r=await crypto.subtle.digest("SHA-1",t),n=Array.from(new Uint8Array(r)).map((e=>e.toString(16).padStart(2,"0"))).join("");return n}(document.currentScript&&document.currentScript.src||new URL("index.js",document.baseURI).href)}function YP(e){return{ts:Date.now(),contextId:this.contextId,scriptId:this.scriptId,serviceId:this.serviceId,messageId:kP(),sender:this.id,...e}}async function QP({id:e,verbose:t,router:r}){const n={api:{}};function o(e,t){Object.defineProperty(n.api,e,{get:()=>t,enumerable:!1,configurable:!1})}function i(e,t){const r=t.bind(n);n.api.register({method:e,handler:r})}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=r,this.serviceId=kP(),this.id=e,this.verbose=t,this.ee=new SP,this.router=null,this.clients={},this.transactionHandler={},this.registeredHandlers={},this.setupTransactionTimeout=VP.bind(this),this.handleMessage=qP.bind(this),this.createMessage=YP.bind(this),await WP.apply(this),window.addEventListener("message",this.handleMessage),TP.services[this.id]=this}.apply(n),o("connect",DP.bind(n)),o("findRouter",BP.bind(n)),o("register",CP.bind(n)),o("unregister",NP.bind(n)),o("registerProxy",OP.bind(n)),o("proxy",PP.bind(n)),o("dispose",LP.bind(n)),o("newId",$P.bind(n)),o("on",n.ee.on.bind(n.ee)),o("once",n.ee.once.bind(n.ee)),o("off",n.ee.off.bind(n.ee)),o("addListener",n.ee.addListener.bind(n.ee)),o("removeListener",n.ee.removeListener.bind(n.ee)),o("removeAllListeners",n.ee.removeAllListeners.bind(n.ee)),i("ping",RP),i("echo",IP),n.api}var JP;function XP(){return XP=t(d.mark((function e(t){var r,n,o,i;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.whichFrame,n=t.options,e.prev=1,o="gd-".concat(r),void 0,i=undefined,!("loader-frame"===r)){e.next=12;break}return e.next=9,eL({id:o,verbose:i,options:n});case 9:JP=e.sent,e.next=15;break;case 12:return e.next=14,rL({id:o,verbose:i,options:n});case 14:JP=e.sent;case 15:e.next=20;break;case 17:e.prev=17,e.t0=e.catch(1),Js("[GD-IS] GD interservice create error",e.t0);case 20:case"end":return e.stop()}}),e,null,[[1,17]])}))),XP.apply(this,arguments)}function eL(e){return tL.apply(this,arguments)}function tL(){return tL=t(d.mark((function e(n){var o,i,a,s,u=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=n.id,i=n.verbose,a=n.options,e.next=4,QP({id:o,verbose:i,router:!0});case 4:return(s=e.sent).on("connected",function(e){r(this,u)}.bind(this)),s.register({method:"whoami",handler:function(){return r(this,u),"[GD-IS] I am ".concat(o)}.bind(this)}),s.register({method:"isLoader",handler:function(){return r(this,u),!0}.bind(this)}),s.register({method:"hasRouter",handler:function(){return r(this,u),!1}.bind(this)}),s.register({method:"showAd",handler:function(){var e=t(d.mark((function e(r){var n,o,i;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.showAd?a.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)}}(),o=r.adType,i=r.params,e.next=4,n(o,i);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:"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=13,s.whoami();case 13:return e.sent,e.abrupt("return",s);case 16:case"end":return e.stop()}}),e,this)}))),tL.apply(this,arguments)}function rL(e){return nL.apply(this,arguments)}function nL(){return nL=t(d.mark((function e(t){var n,o,i,a,s,u=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.id,o=t.verbose,i=t.options,e.next=4,QP({id:n,verbose:o,router:!1});case 4:return a=e.sent,"gd-loader-frame",e.next=8,a.findRouter({where:{id:"gd-loader-frame"}}).catch(function(e){r(this,u)}.bind(this));case 8:if(s=e.sent,e.t0=!!s,!e.t0){e.next=15;break}return e.next=14,a.connect(s).catch(function(e){r(this,u),Js("[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,a.register({method:"whoami",handler:function(){return r(this,u),"[GD-IS] I am ".concat(n)}.bind(this)}),a.register({method:"onEvent",handler:function(e){var t=this;r(this,u);var n=e.event;(i.onEvent||function(e){r(this,t)}.bind(this))(n)}.bind(this)}),a.register({method:"isLoader",handler:function(){return r(this,u),!1}.bind(this)}),a.register({method:"hasRouter",handler:function(){return r(this,u),!!s}.bind(this)}),s&&(a.registerProxy({alias:"whoIsLoader",method:"whoami"}),a.registerProxy({alias:"registerOnEvents",method:"registerOnEvents"}),a.registerProxy({alias:"showAd",method:"showAd"})),e.next=24,a.whoami();case 24:if(e.sent,!s){e.next=35;break}return e.next=29,a.whoIsLoader();case 29:return e.sent,e.next=32,a.registerOnEvents();case 32:e.sent;case 35:return e.abrupt("return",a);case 36:case"end":return e.stop()}}),e,this)}))),nL.apply(this,arguments)}var oL=!1;function iL(){var e=this;return new Promise(function(t,n){var o=this;if(r(this,e),JP||oL)t(JP);else{var i=setInterval(function(){r(this,o),JP&&(oL=!0,clearInterval(i),t(JP))}.bind(this),100);setTimeout(function(){r(this,o),clearInterval(i),JP||(oL=!0,t(JP))}.bind(this),5e3)}}.bind(this))}function aL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function sL(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?aL(Object(r),!0).forEach((function(t){ru(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aL(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var uL,cL,dL,lL=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)}}(),fL=0,pL=!1,hL=function(){var e=t(d.mark((function e(n){var o,i,a,s,u,c,l,f=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=n.args,i=n.onError,e.prev=1,!window.isForwarderFrame){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,iL();case 7:if(!(a=e.sent)){e.next=18;break}return e.next=11,a.isLoader();case 11:if(!(s=e.sent)&&(s||a.hasRouter())){e.next=16;break}a.register({method:"sendSocketEvent",handler:function(e){r(this,f),gL(e.topic,e.args)}.bind(this)}),e.next=18;break;case 16:return a.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 r(this,f),e.toLowerCase()===u.host.toLowerCase()}.bind(this)),!(c&&a&&a.hasRouter())){e.next=24;break}return e.abrupt("return");case 24:return c&&a&&a.hasRouter(),e.next=27,lL();case 27:cL=rP(),l={json:JSON.stringify(o)},"wss://ws.gamedistribution.com",(uL=io("wss://ws.gamedistribution.com",{query:l,upgrade:!1,transports:["websocket"],reconnectionDelay:6e4,autoConnect:!1})).on("connect",function(){r(this,f)}.bind(this)),uL.on("after-connect",function(){var e=t(d.mark((function e(t){var r,n,i,a,s,u;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return dL=dL||(null==t?void 0:t.serverDate),r=o.gameId,e.next=4,AP({gameId:r,serverDate:dL});case 4:n=e.sent,i=n.visit,a=n.mode,s=n.errors,o.visit=sL(sL({},i),{},{stm:a,errors:s}),u={json:JSON.stringify(o)},uL.emit("client-info",{clientId:cL,counter:fL++,serverDate:dL,query:u}),pL=!0;case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),uL.on("disconnect",function(e){r(this,f),pL=!1}.bind(this)),uL.connect(),e.next=40;break;case 37:e.prev=37,e.t0=e.catch(1),i&&i(e.t0);case 40:case"end":return e.stop()}}),e,this,[[1,37]])})));return function(t){return e.apply(this,arguments)}}(),mL=!1,vL=[];function gL(e,t){return AL.apply(this,arguments)}function AL(){return AL=t(d.mark((function e(t,n){var o,i,a,s=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,iL();case 2:if(!(o=e.sent)){e.next=11;break}return e.next=6,o.isLoader();case 6:if(e.sent||!o.hasRouter()){e.next=11;break}return e.next=10,o.sendSocketEvent({topic:t,args:n});case 10:return e.abrupt("return");case 11:if("play"!==t){e.next=15;break}if(!mL){e.next=14;break}return e.abrupt("return");case 14:mL=!0;case 15:i=function(e,t){r(this,s);try{var n={json:JSON.stringify(t||{})};uL.emit("socket-event",{topic:e,clientId:cL,counter:fL,serverDate:dL,query:n})}catch(e){eu("game-session: Error on sending socket-event",e.message)}}.bind(this),a=function(){r(this,s),i(t,n)}.bind(this),vL.push(a);case 19:case"end":return e.stop()}}),e,this)}))),AL.apply(this,arguments)}function bL(e){var t=this,n={preroll:["preroll","start"],midroll:["next"],rewarded:["reward"]},o=Object.keys(n).find(function(o){var i=this;return r(this,t),n[o].some(function(t){return r(this,i),t===e.params.position}.bind(this))}.bind(this));return o||"midroll"}function yL(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return _L(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _L(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}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 i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function _L(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}setInterval((function(){if(0!==vL.length&&uL&&pL){for(var e=function(){var e=this,o=n[t];o(),vL=vL.filter(function(t){return r(this,e),t!==o}.bind(this))},t=0,n=fP(vL);t<n.length;t++)e();Js("game-session: commands length",vL.length)}}),100);var wL=3,xL=1,kL=5,EL={lastImpressionDate:null,imps:0};function SL(){return DL.apply(this,arguments)}function DL(){return(DL=t(d.mark((function e(){var t,n,o,i,a,s,u,c,l;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={},e.next=3,GD();case 3:if(n=e.sent,o=n.compensation||{enabled:!1},t.ruleEnabled=null==o?void 0:o.enabled,!(void 0===(null==o?void 0:o.exctg)||(null==o?void 0:o.exctg))){e.next=28;break}i=["co-op","multiplayer","IAPs"],a=(null==n?void 0:n.tags)||[],s=!1,u=yL(a),e.prev=12,l=d.mark((function e(){var t,n=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=c.value,i.some(function(e){return r(this,n),e===t.title}.bind(this))&&(s=!0);case 2:case"end":return e.stop()}}),e,this)})),u.s();case 15:if((c=u.n()).done){e.next=19;break}return e.delegateYield(l(),"t0",17);case 17:e.next=15;break;case 19:e.next=24;break;case 21:e.prev=21,e.t1=e.catch(12),u.e(e.t1);case 24:return e.prev=24,u.f(),e.finish(24);case 27:t.disabledByTag=s;case 28:return t.isLowScoreGame=RL(n),t.enabled=t.ruleEnabled&&!t.disabledByTag&&t.isLowScoreGame,n.hasActiveCompensations=t.enabled,e.abrupt("return",t);case 32:case"end":return e.stop()}}),e,null,[[12,21,24,27]])})))).apply(this,arguments)}function RL(e){var t=!1,r=e.compensation||{enabled:!1},n=null==e?void 0:e.adsc;if(1===(null==n?void 0:n.s)&&null!=n&&n.t){var o=null==n?void 0:n.t,i=(null==r?void 0:r.esc)||xL,a=(null==r?void 0:r.ascl)||kL,s=o||{},u=s.adsc,c=s.reqsc,d=s.pdur,l=s.rspdur;s.aspdur,t=(l||c/(d/wL))<=i&&u<a}return t}var IL=!1;function CL(){return OL.apply(this,arguments)}function OL(){return(OL=t(d.mark((function e(){var t;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!IL){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,SL();case 4:(t=e.sent).enabled,t.override,t.giftEnabled,t.midrollPlusEnabled,IL=!0;case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function TL(e){var t=e.rateType,r=e.gameData,n=!1;if(r.hasActiveCompensations){var o=r.compensation,i="gift"===t?null==o?void 0:o.gftr:null==o?void 0:o.mpr;i=void 0===i?1:i,n=Math.random()<=i}else n=!0;return n}function PL(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return LL(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return LL(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}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 i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function LL(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var ML=!1,BL=3,jL=5,UL=1,FL=60,NL=10;function $L(){return GL.apply(this,arguments)}function GL(){return(GL=t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return EL.imps++,EL.lastImpressionDate=new Date,e.abrupt("return",!0);case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function HL(e){return zL.apply(this,arguments)}function zL(){return zL=t(d.mark((function e(n){var o,i,a,s,u,c,l,f,p,h,m,v,g,A,b,y,_,w,x,k,E,S,D,R,I,C,O,T,P,L,M,B,j,U,F,N,$,G,H,z,Z=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=n.gameData,s=n.executeCompensation,u=function(){var e=t(d.mark((function e(t){var r,n,o;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=(null==t?void 0:t.whenAvailable)||!1,!s){e.next=7;break}return e.next=4,s({whenAvailable:r});case 4:e.t0=e.sent,e.next=10;break;case 7:return e.next=9,$L();case 9:e.t0=e.sent;case 10:return n=e.t0,o=n.args,e.abrupt("return",null==o?void 0:o.success);case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),c=!ML,!ML){e.next=5;break}return e.abrupt("return");case 5:if(ML=!0,l=a.adsc){e.next=10;break}return e.abrupt("return");case 10:if(f=l.s,p=l.t,1===f){e.next=13;break}return e.abrupt("return");case 13:if(null!=(h=a.compensation||{enabled:!1})&&h.enabled){e.next=17;break}return e.abrupt("return");case 17:if(!(void 0===(null==h?void 0:h.exctg)||(null==h?void 0:h.exctg))){e.next=42;break}m=["co-op","multiplayer","IAPs"],v=(null==a?void 0:a.tags)||[],g=!1,A=PL(v),e.prev=24,y=d.mark((function e(){var t,n=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=b.value,m.some(function(e){return r(this,n),e===t.title}.bind(this))&&(g=!0);case 2:case"end":return e.stop()}}),e,this)})),A.s();case 27:if((b=A.n()).done){e.next=31;break}return e.delegateYield(y(),"t0",29);case 29:e.next=27;break;case 31:e.next=36;break;case 33:e.prev=33,e.t1=e.catch(24),A.e(e.t1);case 36:return e.prev=36,A.f(),e.finish(36);case 39:if(!g){e.next=42;break}return e.abrupt("return");case 42:if(_=(null==h?void 0:h.esc)||UL,w=void 0===(null==h?void 0:h.depgft)||(null==h?void 0:h.depgft),x=null!=h&&h.depgftr?null==h?void 0:h.depgftr:1,k=(null==h?void 0:h.onst)||!1,E=(null==h?void 0:h.sl)||3,S=(null==h?void 0:h.tl)||180,D=(null==a||null===(o=a.gft)||void 0===o?void 0:o.midroll.enabled)||!1,R=(null==a||null===(i=a.midroll_plus)||void 0===i?void 0:i.enabled)||!1,(!D||!R)&&(S/=x),I=void 0===(null==h?void 0:h.tc)||(null==h?void 0:h.tc),C=(null==h?void 0:h.ascl)||jL,!w){e.next=62;break}if(P=(null==a||null===(O=a.gft)||void 0===O?void 0:O.midroll.enabled)||!1,L=(null==a||null===(T=a.midroll_plus)||void 0===T?void 0:T.enabled)||!1,P&&L){e.next=62;break}return e.abrupt("return");case 62:if(B=(M=p||{}).adsc,j=M.reqsc,U=M.pdur,F=M.rspdur,M.aspdur,(F||j/(U/BL))<=_&&B<C){e.next=69;break}return e.abrupt("return");case 69:if(N=Math.ceil(U/BL),!k||!c){e.next=76;break}return e.next=76,u({whenAvailable:!0});case 76:$=0,G=1,H=function(){r(this,Z),$=0,G=1}.bind(this),z=setInterval(t(d.mark((function e(){var t,n,o,i=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(I&&EL.imps>=N)){e.next=4;break}return clearInterval(z),e.abrupt("return");case 4:if(t=new Date,n=EL.lastImpressionDate?(a=EL.lastImpressionDate,s=t,c=void 0,d=void 0,void 0,void 0,c=a.getTime(),d=s.getTime(),(d-c)/1e3):S+1,!((o=S-n)>0)){e.next=20;break}if(!(o<=FL-NL)){e.next=17;break}return e.next=15,new Promise(function(e){var t=this;r(this,i),setTimeout(function(){r(this,t),e()}.bind(this),1e3*o)}.bind(this));case 15:e.next=20;break;case 17:return H(),e.abrupt("return");case 20:if(++$%G==0){e.next=24;break}return e.abrupt("return");case 24:return e.next=26,u({});case 26:e.sent?H():($=0,G=G+1>E?E:G+1);case 28:case"end":return e.stop()}var a,s,c,d}),e,this)}))),1e3*FL);case 80:case"end":return e.stop()}}),e,this,[[24,33,36,39]])}))),zL.apply(this,arguments)}function ZL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function KL(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ZL(Object(r),!0).forEach((function(t){ru(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ZL(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function qL(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return VL(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return VL(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}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 i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function VL(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var WL,YL=function(){function e(t){var n=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 r(this,n),t.isOpusReady}.bind(this),this._muteRequested=!1,this._terminateRequested=!1,this._registerForEvents()}var n,o;return L(e,[{key:"_registerForEvents",value:function(){var e=this;this.eventBus.subscribe("HL_CONFIG_ERROR",function(t){r(this,e),this.hasHLConfigError=!0}.bind(this))}},{key:"runAdFlow",value:(o=t(d.mark((function e(t){var n,o,i,a,s,u,c,l,f,p,h,m,v,g,A,b,y,_,w,x,k,E,S,D,R,I,C,O,T,P,L,M,B,j,U,F,N,$,G,H,z,Z,K,q,V,W,Y,Q,J,X,ee,te,re,ne,oe,ie=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,iL();case 3:!(f=e.sent)||f.isLoader(),this.adRequest=t,p=bL(t),t.params.adTypeFound=p,Js("gd-adflow, adTypeFound",p,t.params.position),(h=this._getAdFlow(p)).find(function(e){return r(this,ie),"opus"===e}.bind(this))&&!this.isOpusReady()&&(h=h.filter(function(e){return r(this,ie),"opus"!==e}.bind(this)),this._msgrt.send("opus.sdk",{message:"Not ready"})),m=this._gameData,v=m.afg_disabled,g=null===(n=t.params)||void 0===n?void 0:n.isGift,A=null===(o=t.params)||void 0===o?void 0:o.isMidrollPlus,b=null===(i=t.params)||void 0===i?void 0:i.isCompensation,null===(a=t.params)||void 0===a||a.position,y=null===(s=m.promo)||void 0===s?void 0:s.rainbow,_=(null==y?void 0:y.enabled)&&(null===(u=y.position)||void 0===u?void 0:u[p]),w=null==y?void 0:y.gift,x=_&&null!=y&&y.duration?null==y?void 0:y.duration:5,k=v?h.filter(function(e){return r(this,ie),"adsense"!==e}.bind(this)):h,E=this.get_ad_system_init_result(),S=E.afg,D=E.ima,R=null==m||null===(c=m.ad_blcks)||void 0===c||null===(l=c.removeOtherAdaptors)||void 0===l?void 0:l.enabled,this.anyAdBlocking=!S||!D,this.bothAdBlocking=!S&&!D,this.adsBlocked=R&&this.anyAdBlocking||this.bothAdBlocking,this.adsBlocked?(Xs("gd-adflow adsBlocked so changing the flow"),k=[]):(S||(k=k.filter(function(e){return r(this,ie),"adsense"!==e}.bind(this))),D||(k=k.filter(function(e){return r(this,ie),"ima"!==e}.bind(this)))),I=!1,C=!1,O=[],T=0,P=!1,M={},B=qL(k),e.prev=40,B.s();case 42:if((j=B.n()).done){e.next=88;break}if(U=j.value,!this._terminateRequested){e.next=46;break}return e.abrupt("break",88);case 46:if(t.params.adapter=U,F=T===k.length-1,N=g&&w||!g,$=F&&_&&N,t.params=KL(KL({},t.params),{},{adapterIndex:T,isLastAdapter:F,shouldFail:!1,extraPromoRunOnFail:$,muteRequested:this._muteRequested}),!this._muteRequested||"adsense"!==U){e.next=53;break}return e.abrupt("continue",86);case 53:return function(){r(this,ie),tu.firstSuccessOrder&&!isNaN(tu.firstSuccessOrder)&&(t.params.shouldFail=T<tu.firstSuccessOrder)}.bind(this),Xs("gd-adflow, before adInvoke",T,U,t.params.shouldFail),e.next=57,this.adInvoke(t);case 57:if(G=e.sent,H=G.success,z=G.args,Z=G.isSkipped,K=G.noVast,q=G.t4r,V=null==z?void 0:z.reason,W=null==z?void 0:z.message,Y=null==z?void 0:z.errorType,M[U]=M[U]||{req:0,imp:0,fail:0},M[U].req++,H?M[U].imp++:(M[U].fail++,M[U].failReason=V,M[U].failMessage=W,M[U].failType=Y),!H){e.next=77;break}return Xs("gd-adflow, adapter-result-success",T,U,z),I=!0,C=!(null==z||!z.isPromoSuccess),L=q,e.abrupt("break",88);case 77:if(Xs("gd-adflow, adapter-result-failure",T,U,z.message),T++,O.push(z.message),!Z){e.next=82;break}return e.abrupt("break",88);case 82:if(!K){e.next=85;break}return this._runAutoResume(),e.abrupt("break",88);case 85:P=$;case 86:e.next=42;break;case 88:e.next=93;break;case 90:e.prev=90,e.t0=e.catch(40),B.e(e.t0);case 93:return e.prev=93,B.f(),e.finish(93);case 96:if(!P){e.next=102;break}return e.next=99,new dP(this).run({duration:x});case 99:e.sent.success&&(C=!0);case 102:return function(){var e;r(this,ie),tu.disableGift&&null!==(e=m.gft)&&void 0!==e&&e[p].enabled&&(m.gft[p].enabled=!1)}.bind(this),Q=O.join(" /n"),I?(EL.imps++,EL.lastImpressionDate=new Date,this._setAdRequestTimer(),this._onResumeGame("Advertisement(s) are done. Start / resume the game.","success"),this._giveGift(p),"midroll"===p&&this._executeMidrollPlus()):(this._onResumeGame(Q,"warning"),this._giveGift(p),"midroll"===p&&this._executeMidrollPlus()),HL({gameData:m,executeCompensation:this.executeCompensation}),J="-1",X="none",I?(J="index_".concat(T),X=k[T]):C&&(J="promo",X="promo"),ee=this.get_session_id(),this.anyAdBlocking&&"-1"===J?(te="rewarded"===p?"rewarded":this.blockedAdsMap.preroll?"midroll":"preroll",this.blockedAdsMap[te]=this.blockedAdsMap[te]?this.blockedAdsMap[te]+1:1,Js("gd-adflow, blocked-ad",JSON.stringify(this.blockedAdsMap)),this._msgrt.send("adflow.blocked.pos",{message:"".concat(te)}),this.send_atom_event("gd.adflow",{adBlocker:!0,afgBlocked:!S,imaBlocked:!D,isGift:g,isMidrollPlus:A,adType:te,sessionId:ee,successAdapter:"none",adFlowIndex:J,adapterResults:M})):(ru(re={},"adflow.all.index",{message:"".concat(J)}),ru(re,"adflow.all.success_adapter",{message:"".concat(X)}),ru(re,"adflow.".concat(p,".index"),{message:"".concat(J)}),ru(re,"adflow.".concat(p,".success_adapter"),{message:"".concat(X)}),ne=re,Object.keys(ne).forEach(function(e){r(this,ie);var t=ne[e];this._msgrt.send(e,t)}.bind(this)),this.send_atom_event("gd.adflow",{adFlowIndex:J,successAdapter:X,adBlocker:!1,afgBlocked:!S,imaBlocked:!D,isGift:g,isMidrollPlus:A,isCompensation:b,adType:p,sessionId:ee,t4r:L,adapterResults:M})),gL("ad-session",{adSession:{adType:p,imp:"-1"!==J&&"promo"!==J,promo:"promo"===J,blocked:this.anyAdBlocking&&"-1"===J,hasHLConfigError:this.hasHLConfigError,isGift:g,isMidrollPlus:A,isCompensation:b}}),oe={adType:p},this.eventBus.broadcast("AD_FLOW_COMPLETE",oe),e.abrupt("return",KL(KL({},oe),{},{args:{success:I,isGift:g,isMidrollPlus:A}}));case 120:case"end":return e.stop()}}),e,this,[[40,90,93,96]])}))),function(e){return o.apply(this,arguments)})},{key:"adInvoke",value:(n=t(d.mark((function e(n){var o=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,s,u,c,l=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a="main.showad.".concat(n.params.adapter,".").concat(n.params.adapterIndex),Js("adInvoke.start",{scopeName:a,adRequest:JSON.stringify(n)}),s={},u=function(e){r(this,l),Js("adInvoke.failure",{args:e,adRequest:JSON.stringify(n)}),o._eventBus.unsubscribeScope(a);var i="dismissed"===(null==e?void 0:e.message);t({success:!1,args:e,isSkipped:i,noVast:e.noVast})}.bind(this),c=function(e){r(this,l),Js("adInvoke.success",{args:e,adRequest:JSON.stringify(n)}),o._eventBus.unsubscribeScope(a),t({success:!0,args:e,t4r:s})}.bind(this),o._eventBus.subscribe("AD_ERROR",u,a),o._eventBus.subscribe("AD_SDK_CANCELED",u,a),o._eventBus.subscribe("AD_SUCCESS",c,a),o._eventBus.subscribe("AD_T4R",function(){r(this,l),s.loaded=!0}.bind(this),a),o._eventBus.subscribe("AD_T4R_CLICK",function(){r(this,l),s.t4rClick=!0}.bind(this),a),o._eventBus.subscribe("AD_T4R_VIDEO",function(){r(this,l),s.t4rVideo=!0}.bind(this),a),o._eventBus.subscribe("AD_CLICK",function(){r(this,l),s.click=!0}.bind(this),a),o._eventBus.subscribe("AD_BIDDER",function(e){r(this,l),s.bidder=null==e?void 0:e.bidder}.bind(this),a),o._eventBus.subscribe("AD_T4R_NONE",function(e){r(this,l),s.fail_reason=null==e?void 0:e.reason}.bind(this),a),e.prev=14,e.next=17,o._adInstance.startAd(n);case 17:e.next=23;break;case 19:e.prev=19,e.t0=e.catch(14),eu("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,r){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)}))),function(e){return n.apply(this,arguments)})},{key:"_getAdFlow",value:function(e){var t,n,o,i,a,s,u,c,d=this,l=void function(){if(r(this,d),tu.customAdFlow)return JSON.parse(tu.customAdFlow)}.bind(this),f=this._gameData.adflw;l&&(f=l);var p=null!==(t=f)&&void 0!==t&&null!==(n=t.adapters)&&void 0!==n&&n.default?null===(o=f)||void 0===o||null===(i=o.adapters)||void 0===i?void 0:i.default:["ima","adsense"];return p=null!==(a=f)&&void 0!==a&&null!==(s=a.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:"mute",value:function(){var e=this;this._muteRequested=!0,this._adInstance.mute().catch(function(t){r(this,e)}.bind(this))}},{key:"terminate",value:function(){var e=this;this._terminateRequested=!0,this._adInstance.terminate().catch(function(t){r(this,e)}.bind(this)),this._setAdRequestTimer()}}]),e}(),QL=new pD.exports.EventEmitter,JL=["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,n=e.data,o=e.origin,i=e.source;if(JL.some(function(e){return r(this,t),e===o}.bind(this))&&(null==n||!n.__tcfapiCall)){var a=n.system;n.action;var s="aeriaExternalHostsConnector"===a;if("Softgames"===a)WL=i,(window.parent||window).postMessage(n,"*"),QL.emit("aeria-event",n);else if(s){WL&&WL.postMessage(n,"*");var u=window.parent||window;u&&u.postMessage(n,"*")}}}),!1);var XL="https://html5.gamedistribution.com",eM="parent-data-request",tM="parent-data-response",rM=function(){function e(){O(this,e)}var n;return L(e,[{key:"init",value:function(e){var t=this;this._registerForDataRequests(e),this._askForParentFrameData().then(function(n){if(r(this,t),n){var o=n.adRequestTimer;e.adRequestTimer=o,Js("gd-frame-data-bridge, adRequestTimer on init ",e.adRequestTimer)}}.bind(this))}},{key:"_registerForDataRequests",value:function(e){var t=this;window.addEventListener("message",function(n){r(this,t);var o=n.data,i=n.origin,a=n.source,s=o.type;if(o.value,i===XL&&s===eM){var u={adRequestTimer:e.adRequestTimer};a.postMessage({type:tM,value:u})}}.bind(this))}},{key:"_askForParentFrameData",value:(n=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,n){var o=this;r(this,t);var i=!1;window.addEventListener("message",(function(t){var r=t.data,n=t.origin;t.source;var o=r.type,a=r.value;n===XL&&o===tM&&(e(a),i=!0)})),setTimeout(function(){r(this,o),i||e()}.bind(this),1e3);var a={type:eM};window.parent.postMessage(a,"*")}.bind(this)));case 1:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})}]),e}(),nM=new rM,oM={SDKExistsOnUpperFrame:!1};function iM(){return aM.apply(this,arguments)}function aM(){return aM=t(d.mark((function e(){var t,r;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 r=window.GD_BLCK_RMV||{},console.log("new blocker",r),e.abrupt("return",r.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]])}))),aM.apply(this,arguments)}var sM=async()=>{const e={},t={};function r(){let t,r=window,n=null,o=null;for(;!t;){try{if("function"==typeof r.__tcfapi||"function"==typeof r.__cmp){"function"==typeof r.__tcfapi?(o=2,n=r.__tcfapi):(o=1,n=r.__cmp),t=r;break}}catch(e){}try{if(r.frames.__tcfapiLocator){o=2,t=r;break}}catch(e){}try{if(r.frames.__cmpLocator){o=1,t=r;break}}catch(e){}if(r===window.top)break;r=r.parent}return e.version=o,e.frame=t,e.function=n,e.version}function n(n={}){return new Promise((o=>{function i(t,r){if(r){if(!1!==t.gdprApplies)return"tcloaded"===t.eventStatus||"useractioncomplete"===t.eventStatus?(function(t){const r=t&&"boolean"==typeof t.gdprApplies?t.gdprApplies:n.defaultGdprScope;("boolean"!=typeof r||!0===r&&"string"!=typeof t.tcString)&&o({result:"cmpUnexpectedResponse",cmp:e,consentData:t})}(t),void o({result:"ok",consentData:t})):void 0;o({result:"ok",consentData:t})}else o({result:"cmpCallFailed"})}r(),e.frame?2===e.version?e.function?e.function("addEventListener",e.version,i):function(r,n,o){const i="__tcfapi";function a(e){const r=`${i}Return`,n="string"==typeof e.data&&e.data.indexOf(r)>=0?JSON.parse(e.data):e.data;if(n[r]&&n[r].callId){const e=n[r];void 0!==t[e.callId]&&t[e.callId](e.returnValue,e.success)}}window[i]=(e,r,o,a)=>{const s=Math.random()+"",u={[`${i}Call`]:{command:e,parameter:a,callId:s,version:r}};t[s]=o,n.postMessage(u,"*")},window.addEventListener("message",a,!1),window[i](r,e.version,o)}("addEventListener",e.frame,i):o({result:"cmpVersionNotV2",cmp:e}):o({result:"cmpNotFound"})}))}return{findCmp:r,findUsp:function(){let e,t,r=window;for(;!e;){try{if("function"==typeof r.__uspapi){t=r.__uspapi,e=r;break}}catch(e){}try{if(r.frames.__uspapiLocator){e=r;break}}catch(e){}if(r===window.top)break;r=r.parent}return{uspapiFrame:e,uspapiFunction:t}},lookupIabConsent:function(){return new Promise((e=>{try{n().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],r=e.vendor.legitimateInterests[755];if(!t)return{type:"not-allowed"};const{consents:n,legitimateInterests:o}=e.purpose;let i=Object.keys({1:!0,3:!0,4:!0}).every((e=>n[e])),a=[2,7,9,10].every((e=>n[e]||o[e]&&r));return i&&a?{type:"personalized"}:(n[1]||o[1])&&a?{type:"non-personalized"}:{type:"limited"}}}};function uM(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function cM(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?uM(Object(r),!0).forEach((function(t){ru(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uM(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var dM=function(){Xs("gtag: GA not initialized",arguments)};function lM(e){return fM.apply(this,arguments)}function fM(){return fM=t(d.mark((function e(t){var o,i,a,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 o=t.onError,i=t.args,s="gdSDKDataLayer",u="https://www.googletagmanager.com/gtag/js?id=".concat(a="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 r(this,g),window[s]}.bind(this)});case 8:return window[s]=window[s]||[],dM=function(){window[s].push(arguments)},dM("js",new Date),e.next=14,sM();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=cM(cM({},v=i||{}),{},{cookie_flags:"SameSite=None;Secure",cmp:h.result,gdpr:"ok"===h.result?"object"===n(h.consentData)?!0===h.consentData.gdprApplies:"N/A":h.result,google_ads:null==m?void 0:m.type}),dM("config",a,v),e.next=31;break;case 27:e.prev=27,e.t0=e.catch(5),eu("gtag: load GA error",e.t0),o&&o(e.t0);case 31:case"end":return e.stop()}}),e,this,[[5,27]])}))),fM.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 pM=function(e){var t=this,n=e.handler,o=e.timeout,i=e.interval,a=n||function(){return r(this,t),!0}.bind(this),s=o||1e3,u=i||10;return new Promise(function(e,o){var i=this;if(r(this,t),n())e(!0);else{var c=!1,d=setInterval(function(){r(this,i);try{a()&&(clearInterval(d),c=!0,e(!0))}catch(t){clearInterval(d),e(!1)}}.bind(this),u);setTimeout(function(){r(this,i),clearInterval(d),c||e(!1)}.bind(this),s)}}.bind(this))};function hM(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function mM(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?hM(Object(r),!0).forEach((function(t){ru(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hM(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function vM(e){var t=e.gameData,n=e.msgrt,o=e.topDomain,i=e.parentDomain,a=e.parentURL;return{send_atom_event:function(e,s){if(function(e){var n=this,o=t.dbglg;return(null==o?void 0:o.enabled)&&o.topics&&o.topics.some(function(t){return r(this,n),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=mM(mM({},u),c),function(e,t){try{var r=n._layout,s=n._ua,u={tp:e,ct:0,vrs:Ws.version,url:a,rfr:document.referrer,tdmn:o||i,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:r.w,h:r.h}};return fetch("https://tag.atom.gamedistribution.com/v1/dmp?ar=".concat(encodeURIComponent(rt.encode(JSON.stringify(u)))))}catch(e){}}(e,u=s?mM(mM({},u),s):u)}}}}function gM(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function AM(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?gM(Object(r),!0).forEach((function(t){ru(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gM(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var bM=rP(),yM=null,_M=null,wM=function(){function e(t){var n,o,i,a,s=this;if(O(this,e),ru(this,"_whichFrameV2",function(){var e=this;r(this,s);var t=C(window.location.href,!0),n=t.host,o=t.query,i="html5.gamedistribution.com"!==n,a=function(t){return r(this,e),"revision.gamedistribution.com"===t||"uncached-html5.gamedistribution.com"===t}.bind(this),u=a(n);null!=o&&o.gd_sdk_referrer_url&&(u=a(C(o.gd_sdk_referrer_url).host));return this._isMasterGameURL()&&!(this._isTokenGameURL()||i)||u?"loader-frame":"game-frame"}.bind(this)),yM)return yM;yM=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===(n=u.top)||void 0===n||null===(o=n.domain)||void 0===o?void 0:o.value)||(null==u||null===(i=u.partner.domain)||void 0===i?void 0:i.value),d=null==u||null===(a=u.partner.url)||void 0===a?void 0:a.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,Js("locs found:",this._topDomain,this._parentURL),this._isFullScreen=!1,this._giftCount={preroll:0,midroll:0,rewarded:0},this._mplus_count=0,function(e){XP.apply(this,arguments)}({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){r(this,s),this._sdk_ready=!0}.bind(this)).catch(function(e){r(this,s),this._sdk_ready=!1}.bind(this)).finally(function(){var e,t,n,o,i=this;if((r(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 vM({msgrt:this.msgrt,gameData:this._gameData,parentDomain:this._parentDomain,parentURL:this._parentURL,topDomain:this._parentURL}),this.dumper,this._initGameSessionTracking(),this._sendLoadedEvent(2),!0===(null===(n=this._gameData.lp)||void 0===n?void 0:n.load)&&this._sendLoadedEvent(1),this._sendLoaderDataEvent(),this._checkSplashAndPromoScreens(),this._initBlockingExternals(),this._initUnityHandler(),this._checkFullscreen(),null!==(o=this._gameData.evnts)&&void 0!==o&&o.enabled&&this._isLoaderGameURL()&&(aP(this._gameData),this._gameData.evnts.gameId===this.options.gameId&&setInterval(function(){r(this,i),this._send_gametag_data("heartbeat")}.bind(this),1e3*this._gameData.evnts.heartbeatDuration)),nM.init(this),this._send_gametag_data("sdk_init"),this.fixScore()}.bind(this)),this._registerSGBridge(),Js("which-frame",this._whichFrame()),this._loadLocus()}var n,o,i,a,s,u,c,f,p,h,m,v,g,A,b,y,_,w,x,k,E,S;return L(e,[{key:"_getVisitorId",value:(S=t(d.mark((function e(){var t,n,o,i,a,s=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,pM({handler:function(){return r(this,s),!!_M}.bind(this),timeout:1e3,interval:10});case 2:return i=e.sent,a=i?null===(t=_M)||void 0===t||null===(n=t.visitor)||void 0===n||null===(o=n.visitorData)||void 0===o?void 0:o.visitorId:"noVisitorId",e.abrupt("return",a);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,n,o,i,a,s,u,c,l,f,p,h,m,v,g,A,b,y,_,w,x,k,E,S,D,R=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===(t=this._gameData)||void 0===t||null===(n=t.gs_trc)||void 0===n?void 0:n.enabled){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,this._getVisitorId();case 5:u=e.sent,c=this._gameData,l=c.category,f=c.dname,p=c.pname,h=c.gameId,m=c.slug,v=c.title,g=c.ctry,A=this._topDomain||this._parentDomain,b=new cD,y=b.get(),_=this.msgrt._ua,w=document.referrer,x=this.msgrt._layout,k=Ws.version,E=(null===(o=this._gameData)||void 0===o||null===(i=o.gft)||void 0===i?void 0:i.midroll.enabled)||!1,S=(null===(a=this._gameData)||void 0===a||null===(s=a.midroll_plus)||void 0===s?void 0:s.enabled)||!1,D={args:{rfr:w,category:l,dname:f,pname:p,gameId:h,slug:m,title:v,ctry:g,domain:A,loc:y,ua:_,layout:x,version:k,visitorId:u,hasGft:E,hasMp:S},onError:function(e){r(this,R),this._sendSDKError(e)}.bind(this)},hL(D);case 20: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(r(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 r;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this._getGdModeIfExist()&&(r=lt()||"web",this.adInstance._send("tg.created",{gmid:this.options.gameId,dvc:r,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,r,n,o,i,a;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._isMasterGameURL()){e.next=12;break}if(n=new cD,0!==(null==(o=n.get("depth"))?void 0:o.value)||null===(t=this._gameData)||void 0===t||null===(r=t.cmp)||void 0===r||!r.enabled){e.next=12;break}if(null===(i=this._gameData)||void 0===i||null===(a=i.cmp)||void 0===a||!a.checkDepthOnly){e.next=9;break}return e.next=7,KT();case 7:e.next=12;break;case 9:if("html5.gamedistribution.com"!==this._topDomain){e.next=12;break}return e.next=12,KT();case 12:case"end":return e.stop()}}),e,this)}))),function(){return x.apply(this,arguments)})},{key:"testConsent",value:function(){try{jT();t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,UT({});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;qT.on("splash-hidden",function(t){r(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{Js("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,n){var o,i,a,s=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===(o=this._gameData.disableAds)||void 0===o?void 0:o.default)||!1,this._safeInit(),this._checkGameId(),this._checkGameDeleted(),this._checkBlocking(),this._changeMidrollInDebugMode(),void 0!==this._gameData.diagnostic&&void 0!==(null===(i=this._gameData.diagnostic)||void 0===i?void 0:i.close_ads)&&!1!==(null===(a=this._gameData.diagnostic)||void 0===a?void 0:a.close_ads)||(this.videoAdReady=this._initializeVideoAd().then(function(){r(this,s),(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){r(this,s);var t="".concat(e).startsWith("Error: Blocked:");Xs("gd-adflow adsBlocked",t,e);var n=this.get_ad_system_init_result(),o=n.ima,i=n.afg;if(this.adsBlocked=!o&&!i,this._isMasterGameURL()||this._isExtHostedGameURL()){this.msgrt.send("adblocker.flw",{message:"".concat(this.adsBlocked?"blocked":"ok")});var a=o||i?o?i?"none":"adsense":"ima":"all";this.msgrt.send("adblocker.adapters",{message:"".concat(a)})}this._sendSDKError(e),this._checkAdBlocker(),console.error(e.message||e)}.bind(this))),e.next=15,CL();case 15:t(this._gameData),e.next=23;break;case 18:e.prev=18,e.t0=e.catch(0),this._sendSDKError(e.t0),this.onResumeGame(e.t0.message,"warning"),n(e.t0);case 23:case"end":return e.stop()}}),e,this,[[0,18]])}))),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,r,n,o,i;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,t=this.get_ad_system_init_result(),r=t.ima,n=t.afg,r&&n){e.next=12;break}if(gt.set(this.blockingDetectedKey,!0),null===(o=this._gameData.rmblck)||void 0===o||!o.enabled){e.next=12;break}if(this.adBlockerPage){e.next=12;break}return e.next=9,iM();case 9:i=e.sent,this.adBlockerPage=new i(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 r=B(e);this.options=t?ot(r,t):r,this.options.gameId=this.options.gameId.trim()}},{key:"_setConsoleBanner",value:function(){if(!this._bridge.noConsoleBanner){var e=Ws.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 n={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(n))).catch(function(o){r(this,t),this._sendHLAnalyicsLog({query:AM(AM({},n),{},{error:null==o?void 0:o.message}),eventType:-e})}.bind(this)),this._sendHLAnalyicsLog({query:n,eventType:e}),this.adInstance._send_atom_event("hl.config",n),this._send_gametag_data("sdk_gameplay")}}},{key:"_sendHLAnalyicsLog",value:function(e){var t,r=e.query,n=e.eventType;if(1===n?t="hl.gameplay":2===n?t="hl.gameload":3===n?t="hl.adblock":-1===n?t="hl.gameplay.error":-2===n?t="hl.gameload.error":-3===n&&(t="hl.adblock.error"),t)try{this.dumper.send_atom_event(t,r)}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:"_checkConsole",value:function(){try{if(!gt.available)return;"developer.gamedistribution.com"===this._parentDomain||"developer.gamedistribution.com"===this._topDomain||"developer-acc.gamedistribution.com"===this._parentDomain||"developer-acc.gamedistribution.com"===this._topDomain?(gt.set("gd_debug_ex",!0),gt.set("gd_disable_midroll_timer",!0),gt.set("gd_tag",!0)):"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 It({gameId:this.options.gameId,hours:(new Date).getHours(),topDomain:this._topDomain,domain:this._parentDomain,referrer:this._parentURL,depth:pt(),version:Ws.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,n;r(this,e),_M=this._initGamedockTracker(window.GamedockSDK),this._sendGamedockEvent("pageview"),null!==(t=this._gameData.diagnostic)&&void 0!==t&&null!==(n=t.gameDock)&&void 0!==n&&n.adViewEvent&&_M.tracking.enableHeartBeatForPage({pageId:this.options.gameId,pageType:"game"},this._gameData.diagnostic.gameDock.heartbeatConfig),NT.track(_M,this._gameData)}.bind(this)).catch(function(t){r(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,r;null===(t=_M)||void 0===t||null===(r=t.tracking)||void 0===r||r.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){r(this,e),this._sendSDKError(t)}.bind(this))}},{key:"_loadLocus",value:function(){var e=t(d.mark((function e(){var t,n=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,qD();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(){r(this,n),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){r(this,n),this._sendSDKError(e)}.bind(this)).then(function(){r(this,n)}.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,n=t.gameId,o=t.slug,i=t.title,a=new cD,s={provider:"gd-sdk",page_depth:a.get("depth.value"),partner_domain_from:a.get("partner.domain.from"),top_domain_from:a.get("top.domain.from"),top_domain:this._topDomain,parent_domain:this._parentDomain,parent_url:this._parentURL,game_id:n,game_slug:o,game_title:i};lM({onError:function(t){r(this,e),this._sendSDKError(t)}.bind(this),args:s})}}},{key:"_getCleanUrl",value:function(e){var t=e;try{var r=new C(e,!0);t="".concat(r.protocol,"//").concat(r.hostname,"/").concat(r.pathname)}catch(e){}return t}},{key:"_subscribeToEvents",value:function(){var e=this;this.eventBus=new Dt,_t.forEach(function(t){var n=this;return r(this,e),this.eventBus.subscribe(t,function(e){return r(this,n),this._onEvent(e)}.bind(this),"sdk")}.bind(this)),wt.forEach(function(t){var n=this;return r(this,e),this.eventBus.subscribe(t,function(e){return r(this,n),this._onEvent(e)}.bind(this),"ima")}.bind(this)),this.eventBus.subscribe("COMPLETE",function(){r(this,e);var t=this._getDeveloperDomains(),n=t.developerDomain,o=t.gameApiDomain;if(n){fetch("https://".concat(o,"/game/v2/hasapi/").concat(this.options.gameId,"?timestamp=").concat((new Date).valueOf()));try{var i=JSON.stringify({type:"GD_SDK_IMPLEMENTED",gameID:this.options.gameId});window.location!==window.top.location?window.top.postMessage(i,"*"):null!==window.opener&&window.opener.location!==window.location&&window.opener.postMessage(i,"*")}catch(e){}}mT()}.bind(this),"ima"),this.eventBus.subscribe("CONTENT_PAUSE_REQUESTED",function(){return r(this,e),this.onPauseGame("New advertisements requested and loaded","success")}.bind(this),"ima"),this.eventBus.subscribe("IMPRESSION",function(t){var n,o;r(this,e),this.msgrt.send("ad.impression"),fT(),null!==(n=this._gameData.diagnostic)&&void 0!==n&&null!==(o=n.gameDock)&&void 0!==o&&o.adViewEvent&&NT.track(_M,this._gameData)}.bind(this),"ima"),this.eventBus.subscribe("AD_ERROR",function(t){r(this,e),this.msgrt.send("ad.error",{message:t.message,details:t.details})}.bind(this),"ima"),this.eventBus.subscribe("AD_SDK_REQUEST",function(t){r(this,e),this._sendAdRequestContext(t.message)}.bind(this),"sdk"),this.eventBus.subscribe("SDK_ERROR",function(t){if(r(this,e),t.message.startsWith("Blocked:")){var n=t.message.replace("Blocked:","").trim(),o=this._getCleanUrl(n),i="Blocked: ".concat(o);if(!this._bridge.noBlockerEvent&&(this.msgrt.send("error",{message:i}),!this._hasBlocker)){this._hasBlocker=!0;this.msgrt.send("adblck.src",{message:i});var a=this.get_ad_system_init_result(),s=a.ima,u=a.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){r(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){r(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 r(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=OD().config;return"https://".concat(t.gameAPI,"/game/v4/get/").concat(this.options.gameId.replace(/-/g,""),"/?domain=").concat(e,"&v=").concat(Ws.version,"&localTime=").concat((new Date).getHours())}},{key:"_checkBlocking",value:(A=t(d.mark((function e(){var t,r,n;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=!0,r=this._gameData,n=this._parentDomain.indexOf("gamedistribution.com")>=0,t=(t=void 0===this._gameData.dmain||this._gameData.dmain)||n,(r.bloc_gard&&!0===r.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,r=this._checkTokenGameUrl(),n=new cD,o="html5.gamedistribution.com"!==C(document.referrer).host,i=r&&!oM.SDKExistsOnUpperFrame&&n.get("depth.value")>0&&o;if(i&&(null===(e=this._gameData)||void 0===e||null===(t=e.directTokenUse)||void 0===t?void 0:t.enabled)){var a,s,u=null===(a=this._gameData)||void 0===a||null===(s=a.directTokenUse)||void 0===s?void 0:s.behavior;"to-loader"===u?this._redirectToLoaderFrame():"to-blocked-page"===u&&this._redirectToBlocking(!0)}return{blocked:i}}},{key:"_redirectToBlocking",value:function(e){var r=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.msgrt.send("blocked");var o=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,r.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:r._parentDomain,id:o.gameId,img:r._get_game_thumbnail_url(),title:o.title,unregistered:n,utm_source:r._parentDomain,utm_medium:(null==o?void 0:o.slug)||(null==o?void 0:o.title)||(null==o?void 0:o.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,r=this._gameData;setTimeout(t(d.mark((function t(){var n,o,i,a;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:n=C(location.href,!0),o=AM(AM({},n.query),{},{rd:"1"}),i=l.stringify(o),a="https://html5.gamedistribution.com/".concat(r.gameId,"/?").concat(i),window.location.href=a;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(){r(this,e),document.location="https://html5.api.gamedistribution.com/deleted.html"}.bind(this),100))}},{key:"_changeMidrollInDebugMode",value:function(){var e=this._gameData;kT().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,r,n;!1===(null===(e=this._gameData.loader)||void 0===e?void 0:e.mobile)&&this._getisMobile()&&(this._gameData.loader.enabled=!1);var o,i=this._gameData,a=i.gdpr&&!0===i.gdpr.consent,s=i.loader,u=null===(t=i.promo)||void 0===t?void 0:t[null===(r=i.promo)||void 0===r||null===(n=r.template)||void 0===n?void 0:n.preroll];(i.preroll||(this.adRequestTimer=Date.now()),this.options.loader.enabled)?null!=u&&u.enabled?this._createPromoBeforeSplash(i,a):s.enabled&&!0!==(null===(o=s.splash)||void 0===o?void 0:o.skip)?this._createSplash(i,a):this.onResumeGame("Skipped splash.","success"):s.enabled||this._bridge.isTokenGameURL&&this._bridge.isExtHostedGameURL||(this.options.advertisementSettings.autoplay||a?null!=u&&u.enabled?this._createPromoBeforeSplash(i,a):!1!==s.enabled&&this._createSplash(i,a):null!=u&&u.enabled&&this._createPromo(i,a))}},{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=ot(this.options.advertisementSettings,t.sdk)),this.macros=new Rt({game:t,bridge:this._bridge}),this.adInstance=new CT(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=Ws,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 r,n,o,i,a;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=!1,e.prev=1,e.next=4,iL();case 4:if(!(n=e.sent)){e.next=14;break}return e.next=8,n.isLoader();case 8:if(a=e.sent,!((null===(o=this._gameData)||void 0===o||null===(i=o.isv_fw)||void 0===i?void 0:i.enabled)&&a&&n.onEvent)){e.next=14;break}return r=!0,n.onEvent({event:t}),e.abrupt("return",r);case 14:e.next=19;break;case 16:e.prev=16,e.t0=e.catch(1),Js("[GD-IS] error on onEvent forward",e.t0);case 19:return e.abrupt("return",r);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){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(Js("[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:Xs("[developer-event]",t.name);try{this.options.onEvent({name:t.name,message:t.message,status:t.status,skipForward:t.skipForward,adPosition:t.adPosition})}catch(e){yt("DEVELOPER_ERROR",e.message,"warning")}case 11: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,GD();case 2:return t=e.sent,this.msgrt.setGameData(t),r=t.diagnostic,bt=r,e.abrupt("return",t);case 6:case"end":return e.stop()}var r}),e,this)}))),function(){return h.apply(this,arguments)})},{key:"_createSplash",value:(p=t(d.mark((function e(n,o){var i,a,s,u,c=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._getSplashTemplate(n);case 2:return i=e.sent,a=new i(AM(AM({},this.options),{},{isConsentDomain:o,version:Ws.version}),n,this._parentDomain),e.next=6,WD();case 6:s=e.sent,u=s.enabled,a.on("playClick",function(){var e,i,s,l=this;if(r(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:n.gameId}).catch(function(e){r(this,l),console.log("gd-adflow locus-first-user-action error",e)}.bind(this)),o){var f=new Date;f.setDate(f.getDate()+90),document.cookie="ogdpr_tracking=1; expires=".concat(f.toUTCString(),"; path=/")}if(this._hideCMPButton(),gL("play"),u)window.gdsdk.showAd(nt.Interstitial,{position:"preroll"}).catch(function(e){r(this,l),a.hide()}.bind(this));else{var p={position:"preroll"};(function(){r(this,l),tu.firstAdapterModeAdsense&&(console.log("promo-test, set first adapter to adssense 1"),p.adapter="adsense")}).bind(this),this.showAd(nt.Interstitial,p).catch(function(e){r(this,l)}.bind(this))}null!==(i=this._gameData)&&void 0!==i&&null!==(s=i.evnts)&&void 0!==s&&s.enabled&&(sP({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(){r(this,c),a.hide()}.bind(this)),this.eventBus.subscribe("SDK_GAME_START",function(){r(this,c),a.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,n){var o,i,a,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:a=e.sent,(s=new a(AM(AM({},this.options),{},{isConsentDomain:n,version:Ws.version,template:null===(o=t.promo)||void 0===o||null===(i=o.template)||void 0===i?void 0:i.preroll}),t)).on("done",function(){r(this,u),s.hide(),this._createSplash(t,n)}.bind(this)),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),console.log(e.t0),this._createSplash(t,n);case 12:case"end":return e.stop()}}),e,this,[[0,8]])}))),function(e,t){return f.apply(this,arguments)})},{key:"_createPromo",value:(c=t(d.mark((function e(t,n){var o,i,a,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:a=e.sent,(s=new a(AM(AM({},this.options),{},{isConsentDomain:n,version:Ws.version,template:null===(o=t.promo)||void 0===o||null===(i=o.template)||void 0===i?void 0:i.preroll}),t)).on("done",function(){r(this,u),s.hide(),this.onResumeGame("Resumed after the promo","warning")}.bind(this)),this.onPauseGame("Pause the game for the promo","success"),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),this.onResumeGame("Resumed after the promo","warning");case 12:case"end":return e.stop()}}),e,this,[[0,9]])}))),function(e,t){return c.apply(this,arguments)})},{key:"showBanner",value:function(){var e=this;this.showAd(nt.Interstitial).catch(function(){r(this,e)}.bind(this))}},{key:"IscForwardShowAd",value:(u=t(d.mark((function e(t){var r,n,o,i,a,s,u,c=arguments;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=c.length>1&&void 0!==c[1]?c[1]:{},i={forwarded:n=!1,result:o},e.prev=3,null===(a=this._gameData)||void 0===a||null===(s=a.isv_fw)||void 0===s?void 0:s.enabled){e.next=7;break}return e.abrupt("return",i);case 7:return e.next=10,iL();case 10:if(u=e.sent){e.next=13;break}return e.abrupt("return",i);case 13:return e.next=16,u.isLoader();case 16:if(e.sent||!u.hasRouter()){e.next=23;break}return Xs("[GD-IS] forwarding ad call",{location:window.location.href}),n=!0,e.next=22,u.showAd({adType:t,params:r});case 22:o=e.sent;case 23:e.next=29;break;case 26:e.prev=26,e.t0=e.catch(3),Js("[GD-IS] error on showAd forward",e.t0);case 29:return e.abrupt("return",{forwarded:n,result:o});case 30:case"end":return e.stop()}}),e,this,[[3,26]])}))),function(e){return u.apply(this,arguments)})},{key:"showAd",value:(s=t(d.mark((function e(r){var n,o=this,i=arguments;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=i.length>1&&void 0!==i[1]?i[1]:{},e.abrupt("return",new Promise(function(){var e=t(d.mark((function e(t,i){var a,s,u,c,l,f,p,h;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,o.IscForwardShowAd(r,n);case 3:if(s=e.sent,u=s.forwarded,c=s.result,!u){e.next=9;break}return t(c),e.abrupt("return");case 9:if(gL("play"),l={adType:r||"interstitial",params:n,adTimestamp:o.adRequestTimer},!o._autoResumeIfAdsAreDisabled(bL(l))){e.next=15;break}return e.abrupt("return",t());case 15:return e.next=18,o.sdkReady;case 18:return f=e.sent,e.next=21,o.videoAdReady;case 21:if(null!==(a=o._gameData.lp)&&void 0!==a&&a.load||o._sendLoadedEvent(1),o._sendGamedockGamePlay(),o._rejectAdIfGameBlocked({gameData:f,adRequest:l}),o._rejectAdIfAdDisabled({gameData:f,adRequest:l}),o._rejectAdIfUnsupportedType({adRequest:l}),"rewarded"===r&&o._setGameRewardedFlag(),null!=n&&n.isGift||null!=n&&n.isCompensation||o._rejectAdIfAdRateHits({gameData:f,adRequest:l}),n&&(n.isGift||n.isMidrollPlus||n.isCompensation)||!o.adBlockerPage||(o._setAdRequestTimer(),o.adBlockerPage.show()),o.adInstance.attachAfgPosition(l),!o.adFlowRunning){e.next=32;break}return e.abrupt("return",t());case 32:return o.adFlowRunning=!0,p=new YL(o),o._adFlow=p,e.next=37,p.runAdFlow(l);case 37:h=e.sent,o.adFlowRunning=!1,o._adFlow=null,t(h),o._post_message({topic:"adrequest.instream"}),e.next=51;break;case 44:e.prev=44,e.t0=e.catch(0),o.adFlowRunning=!1,o._adFlow=null,o.onAdError(e.t0.message),o.onResumeGame(e.t0.message,"warning"),i(e.t0.message);case 51:case"end":return e.stop()}}),e,null,[[0,44]])})));return function(t,r){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,r=!1,n=null===(t=this._gameData.diagnostic)||void 0===t?void 0:t.close_ads,o=this._gameData.disableAds[e],i=n||o;return Js("gd-adflow autoresume result: adModuleDisabled,adDisabled",n,o,e,this._gameData.diagnostic,this._gameData.disableAds),i&&(this._runAutoResume(),r=!0),r}},{key:"_runAutoResume",value:function(){var e=this,t="CONTENT_PAUSE_REQUESTED",n="CONTENT_RESUME_REQUESTED";this.eventBus.broadcast(t,{name:t,message:"Auto pause when ads are disabled"}),setTimeout(function(){r(this,e),this.eventBus.broadcast(n,{name:n,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,r,n,o,i,a,s,u,c,d,l,f,p,h,m;switch(e){case"preroll":null!==(t=this._gameData)&&void 0!==t&&null!==(r=t.gft)&&void 0!==r&&r[e].enabled&&(null===(n=this._gameData)||void 0===n||null===(o=n.gft)||void 0===o||null===(i=o[e].durations[this._giftCount[e]])||void 0===i?void 0:i.after)===this.adInstance.adPrerollCount&&this.decideToGiveAGift(e);break;case"midroll":null!==(a=this._gameData)&&void 0!==a&&null!==(s=a.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,r=e.adRequest;if(!t.afg_disabled&&!r.params.hasOwnProperty("fallback_adsense"))switch(r.params.position){case"preroll":case"start":case"next":r.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,r=bL(e.adRequest);if(t.disableAds[r]||this._whitelabelPartner)throw new Error("Advertisements are disabled.")}},{key:"_rejectAdIfUnsupportedType",value:function(e){var t=e.adRequest;if(t.adType){if(t.adType!==nt.Interstitial&&t.adType!==nt.Rewarded)throw new Error("Unsupported an advertisement type: ",t.adType)}else t.adType=nt.Interstitial}},{key:"_rejectAdIfRewardedDisabled",value:function(e){var t=e.gameData;if(e.adRequest.adType===nt.Rewarded&&!t.rewardedAds)throw new Error("Rewarded ads are disabled.")}},{key:"_rejectAdIfAdRateHits",value:function(e){var t,r,n,o,i,a,s=e.gameData,u=e.adRequest,c=null;u.adType===nt.Interstitial&&null!==(t=s.diagnostic)&&void 0!==t&&null!==(r=t.useMidrollIndex)&&void 0!==r&&r.enabled&&this.adInstance.noPreroll?this.adInstance.adMidrollCount>(null===(n=s.diagnostic)||void 0===n||null===(o=n.useMidrollIndex)||void 0===o?void 0:o.indexes.length)-1||(c=6e4*(null===(i=s.diagnostic)||void 0===i||null===(a=i.useMidrollIndex)||void 0===a?void 0:a.indexes[this.adInstance.adMidrollCount])):c=s.midroll;if(u.adType===nt.Interstitial&&void 0!==this.adRequestTimer&&Date.now()-this.adRequestTimer<c)throw new Error("The advertisement was requested too soon.")}},{key:"preloadAd",value:(a=t(d.mark((function e(r){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,o){var i,a;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,n.sdkReady;case 3:return i=e.sent,e.next=6,n.videoAdReady;case 6:if(!i.bloc_gard||!0!==i.bloc_gard.enabled){e.next=8;break}throw new Error("Game or domain is blocked.");case 8:if(!i.disableAds[r]&&!n._whitelabelPartner){e.next=10;break}throw new Error("Advertisements are disabled for this ad type => ".concat(r,"..."));case 10:if(r){e.next=14;break}r=nt.Rewarded,e.next=16;break;case 14:if(r===nt.Interstitial||r===nt.Rewarded){e.next=16;break}throw new Error("Unsupported an advertisement type:"+r);case 16:if(!n.adInstance){e.next=22;break}return e.next=19,n.adInstance.preloadAd(r);case 19:e.t0=e.sent,e.next=23;break;case 22:e.t0="gdsdk://preloaded";case 23:a=e.t0,t(a),e.next=30;break;case 27:e.prev=27,e.t1=e.catch(0),o(e.t1);case 30:case"end":return e.stop()}}),e,null,[[0,27]])})));return function(t,r){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)}))),function(e){return a.apply(this,arguments)})},{key:"cancelAd",value:(i=t(d.mark((function e(){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,n){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{r.adInstance.cancel(),r.onResumeGame("Advertisement(s) are cancelled. Start / resume the game.","success"),n()}catch(e){r.onResumeGame("Advertisement(s) are cancelled. Start / resume the game.","success"),t(e.message)}case 1:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)}))),function(){return i.apply(this,arguments)})},{key:"showDisplayAd",value:function(e){var r=this;return new Promise(function(){var n=t(d.mark((function t(n,o){var i;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,r.sdkReady;case 3:return i=t.sent,t.next=6,r.videoAdReady;case 6:if(!i.dAds.enabled){t.next=13;break}return t.next=9,r.adInstance.loadDisplayAd(e);case 9:r._post_message({topic:"adrequest.display"}),n(),t.next=14;break;case 13:o("Display-Ads are disabled.");case 14:t.next=19;break;case 16:t.prev=16,t.t0=t.catch(0),o(t.t0.message||t.t0);case 19:case"end":return t.stop()}}),t,null,[[0,16]])})));return function(e,t){return n.apply(this,arguments)}}())}},{key:"onResumeGame",value:function(e,t){var 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 n="SDK_GAME_START";this.eventBus.broadcast(n,{name:n,message:e,status:t,analytics:{category:"SDK",action:n,label:this.options.gameId+""}}),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()||(sP({event:"GameStarted",game:this._gameData}),this._send_gametag_data("game_started"))}},{key:"onPauseGame",value:function(e,t){var r;this._allowExternals({enabled:!0});try{this.options.pauseGame()}catch(e){yt("DEVELOPER_ERROR",e.message,"warning")}var n="SDK_GAME_PAUSE";this.eventBus.broadcast(n,{name:n,message:e,status:t,analytics:{category:"SDK",action:n,label:this.options.gameId+""}}),null===(r=this._gameData.evnts)||void 0===r||!r.enabled||this._isMasterGameURL()&&!this._isExtHostedGameURL()||(sP({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(r(this,e),!this._isFullScreen){var t=document.body,n=t.requestFullScreen||t.webkitRequestFullScreen||t.mozRequestFullScreen||t.msRequestFullscreen;if(n)n.call(t);else if(void 0!==window.ActiveXObject){var o=new ActiveXObject("WScript.Shell");null!==o&&o.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){r(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,n,o=this,i=new C(e),a=i.host;return i.href,n=((null===(t=this._gameData.urlBlockExc)||void 0===t?void 0:t.hosts)||[]).some(function(e){return r(this,o),e===a}.bind(this)),n}},{key:"_removeExternalsInHtml",value:function(e){var t=this;!1===e.enabled&&window.document.querySelectorAll("a").forEach(function(e){var n=this;r(this,t);var o=!!(e.innerText.toLowerCase().includes("start")||e.innerText.toLowerCase().includes("play")||e.innerText.toLowerCase().includes("continue")),i=e.getAttribute("href");if(!this._shouldAllowExternalUrl(i)){var a=e.getAttribute("href");e.removeAttribute("href"),o||(e.onclick=function(e){return r(this,n),e.preventDefault(),this.msgrt.send("external",{message:"H> ".concat(a)}),!1}.bind(this))}}.bind(this))}},{key:"_getBridgeContext",value:function(){var e=this._isTokenGameURL(),t=this._isMasterGameURL(),r=this._isExtHostedGameURL(),n=e||r?this._getTokenGameURLConfig():{};n=n||{};var o=decodeURIComponent((e||r)&&n.parentURL?n.parentURL:at()),i=decodeURIComponent((e||r)&&n.parentDomain?n.parentDomain:it()),a=decodeURIComponent((e||r)&&n.topDomain?n.topDomain:r&&0===pt()?i:vt()),s=(e||r)&&n.loaderEnabled,u=(e||r)&&n.loaderEnabled,c=(e||r)&&n.loaderEnabled,d=(e||r)&&n.loaderEnabled,l=(e||r)&&n.loaderEnabled,f=(e||r)&&n.loaderEnabled,p=(e||r)&&n.loaderEnabled,h=(e||r)&&n.loaderEnabled,m=(e||r)&&n.loaderEnabled&&n.hasImpression&&n.version>="1.1.24";return{isTokenGameURL:e,isMasterGameURL:t,isExtHostedGameURL:r,noConsoleBanner:s,noLoadedEvent:u,noBlockerEvent:c,noPreroll:h,parentURL:o,parentDomain:i,topDomain:a&&a.length?a:i,noGAPageView:d,noLotamePageView:l,noGamedockSDK:f,noMinijuegosSDK:p,version:n.version,pauseGameOnStartup:m,depth:pt(),domainMatched:i===a,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,r=e.pathname,n="".concat(t).concat(r);return/http[s]?:\/\/(html5\.gamedistribution\.com\/[A-Za-z0-9]{8})\/(.*)$/i.test(n)}},{key:"_isTokenGameURL",value:function(){var e,t=/http[s]?:\/\/(html5\.gamedistribution\.com\/[A-Za-z0-9]{8})\/(.*)$/i,r="1"===(null===(e=C(location.href,!0).query)||void 0===e?void 0:e.rd);return t.test(location.href)||!r&&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 r=new C(location.href,!0);if(!r.query.gd_zone_config)return;e=r.query.gd_zone_config}else if(t.test(document.referrer)){var n=new C(document.referrer,!0);if(!n.query.gd_zone_config)return;e=n.query.gd_zone_config}else{var o=new C(location.href,!0);if(!o.query.gd_zone_config)return;e=o.query.gd_zone_config}return JSON.parse(rt.decode(decodeURIComponent(e)))}catch(e){}}},{key:"_getSplashTemplate",value:function(e){var t=e.splash;return new TT(t).splash()}},{key:"_createPrerollPromoTemplate",value:(o=t(d.mark((function e(t){var r,n,o,i,a;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=null===(r=t.promo)||void 0===r?void 0:r[null===(n=t.promo)||void 0===n||null===(o=n.template)||void 0===o?void 0:o.preroll],a=new OT(i),e.abrupt("return",a.promo());case 3:case"end":return e.stop()}}),e)}))),function(e){return o.apply(this,arguments)})},{key:"_formatTokenURLSearch",value:function(e){var t="";try{t=encodeURIComponent(rt.encode(JSON.stringify(e)))}catch(e){}try{var r=new C(location.href,!0);return r.query=r.query||{},r.query.gd_zone_config=t,"?".concat(l.stringify(r.query))}catch(e){return"?gd_zone_config=".concat(t)}}},{key:"_extendUrlQuery",value:function(e,t){var r=new C(e,!0);return r.query=AM(AM({},r.query),t),r.toString()}},{key:"_base64_encode",value:function(e){return rt.encode(JSON.stringify(e))}},{key:"session",value:function(){var e=this;return new Promise(function(){var r=t(d.mark((function t(r,n){var o;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:o=e._gameData,r({ads:{display:{enabled:o.dAds.enabled},rewarded:{enabled:o.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 r.apply(this,arguments)}}())}},{key:"sendGenericEvent",value:function(e){console.log("Received generic event",e,this._isMasterGameURL());try{var t,r;if("track-milestone"==e.eventName)_M.tracking.trackEvent("milestoneAchieved",{pageId:this.options.gameId,pageType:"game",isAuthorized:null===(t=e.data)||void 0===t?void 0:t.isAuthorized,milestoneDescription:null===(r=e.data)||void 0===r?void 0:r.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,n=t.assets.find(function(t){return r(this,e),t.hasOwnProperty("name")&&512===t.width&&512===t.height}.bind(this));return n||(n=t.assets.length>0?t.assets[0]:{name:"logo.svg"}),"https://img.gamedistribution.com/".concat(n.name)}},{key:"_post_message",value:function(e){var t,r=e.topic,n=e.data,o=null!==(t=location.ancestorOrigins)&&void 0!==t&&t.length?location.ancestorOrigins[location.ancestorOrigins.length-1]:"*";try{var i=window.top||window.parent;i&&i.postMessage({source:"gdsdk",topic:r,data:n},o)}catch(e){console.error((null==e?void 0:e.message)||e)}}},{key:"fixScore",value:function(){var e,t,n,o,i=this;if(null===(e=this._gameData)||void 0===e||null===(t=e.fix_score)||void 0===t?void 0:t.enabled){var a=(null===(n=this._gameData)||void 0===n||null===(o=n.fix_score)||void 0===o?void 0:o.wait)||10;setTimeout(function(){var e=this;r(this,i),this.showAd(nt.Interstitial,{position:"midroll"}).catch(function(t){r(this,e)}.bind(this))}.bind(this),1e3*a)}}},{key:"executeCompensation",value:(n=t(d.mark((function e(n){var o,i,a,s,u,c,l=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=(null==n?void 0:n.whenAvailable)||!1,i=!this.adInstance.requestRunning&&!this.adFlowRunning,a=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(nt.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)}}(),!i){e.next=10;break}return e.next=7,a();case 7:return s=e.sent,e.abrupt("return",s);case 10:if(!o){e.next=17;break}return u=!1,e.next=15,new Promise(function(e,n){var o=this;r(this,l);var i=!1,s=setInterval(t(d.mark((function t(){var r;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o.adInstance.requestRunning||o.adFlowRunning){t.next=19;break}return clearInterval(s),t.prev=4,t.next=7,a();case 7:r=t.sent,i=!0,e(r),u=!0,t.next=19;break;case 14:t.prev=14,t.t0=t.catch(4),Js("[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(){r(this,o),i||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 n.apply(this,arguments)})},{key:"decideToGiveAGift",value:function(e){var n=this;try{var o,i=null===(o=this._gameData)||void 0===o?void 0:o.gft[e],a="gift";if(!TL({rateType:a,gameData:this._gameData}))return void Js("[compensation] rate check did not pass for ".concat(a));Js("[compensation] rate check passed for ".concat(a));var s=setInterval(t(d.mark((function t(){var o=this;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n.adInstance.requestRunning||n.adFlowRunning?console.log("Advertisement already running..."):(Js("gd-adflow WILL GIVE GIFT!!!"),n.showAd(nt.Interstitial,{position:e,isGift:!0}).catch(function(e){r(this,o)}.bind(this)),clearInterval(s),n._giftCount[e]++);case 1:case"end":return t.stop()}}),t,this)}))),1e3*i.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 bM}},{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,r=e.gameApiDomain;if(t){fetch("https://".concat(r,"/game/v2/hasrewarded/").concat(this.options.gameId,"?timestamp=").concat((new Date).valueOf()));try{var n=JSON.stringify({type:"GD_SDK_REWARDED_SET",gameID:this.options.gameId});window.location!==window.top.location?window.top.postMessage(n,"*"):null!==window.opener&&window.opener.location!==window.location&&window.opener.postMessage(n,"*")}catch(e){}}}catch(e){}}},{key:"_getGdModeIfExist",value:function(){var e=this,t=new Proxy(new URLSearchParams(window.location.search),{get:function(t,n){return r(this,e),t.get(n)}.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(TL({rateType:"midroll+",gameData:this._gameData})&&null!==(e=this._gameData.midroll_plus)&&void 0!==e&&e.enabled&&!this.isMidrollPlusExecuted){var n;this.isMidrollPlusExecuted=!0;var o=this._gameData.midroll_plus.type||"midroll";if(null!==(n=this._gameData.midroll_plus)&&void 0!==n&&n.interval)var i=setInterval(function(){var e,n,a=this;(r(this,t),this.adFlowRunning)||(this.showAd(nt.Interstitial,{position:"midroll",giftType:o,isMidrollPlus:!0}).catch(function(e){r(this,a)}.bind(this)),this._mplus_count++,"infinite"!==(null===(e=this._gameData.midroll_plus)||void 0===e?void 0:e.interval)&&this._mplus_count===(null===(n=this._gameData.midroll_plus)||void 0===n?void 0:n.interval)&&clearInterval(i))}.bind(this),6e4*this._gameData.midroll_plus.timer);else setTimeout(function(){var e=this;r(this,t),this.showAd(nt.Interstitial,{position:"midroll",giftType:o,isMidrollPlus:!0}).catch(function(t){r(this,e)}.bind(this))}.bind(this),this._gameData.midroll)}}}]),e}();function xM(){return xM=t(d.mark((function e(){var t,n=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,qD();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){r(this,n),this._sendSDKError(e)}.bind(this));case 9:case"end":return e.stop()}}),e,this)}))),xM.apply(this,arguments)}var kM=new pD.exports.EventEmitter,EM=function(e){var t=this;!function(){xM.apply(this,arguments)}();var n,o=function(e){var n=this;return r(this,t),new Promise(function(t,o){var i=this;r(this,n);var a=function(e){r(this,i),"SDK_GAME_START"===e.name&&(kM.off("sdk-event",a),t())}.bind(this);kM.on("sdk-event",a),m("showAd",{adType:e})}.bind(this))}.bind(this),i=function(){return r(this,t),n||(n=new wM(e)),n}.bind(this),a=function(e){return r(this,t),o(e)}.bind(this),s=function(e){return r(this,t),"gdsdk://preloaded"}.bind(this),u=function(e){return r(this,t),i().showDisplayAd(e)}.bind(this),c=function(){return r(this,t),m("cancelAd")}.bind(this),d=function(){return r(this,t),m("openConsole")}.bind(this),l=function(){return r(this,t),m("showBanner")}.bind(this),f=function(){return r(this,t),m("session")}.bind(this),p=function(e){return r(this,t),m("sendGenericEvent",{options:e})}.bind(this),h=function(){r(this,t),console.log("_sendSDKReady")}.bind(this),m=function(e,n){var o=this;return r(this,t),n||(n={}),new Promise(function(t,i){r(this,o);try{var a={type:"gd-sdk",method:e,options:n};window.parent.postMessage(a,"*"),t()}catch(e){console.log("gd:adp:m:s:error",e),t()}}.bind(this))}.bind(this),v=function(){r(this,t);window.addEventListener("message",(function(e){var t=e.data;e.origin,e.source;var r=t.type,n=t.event;"gd-sdk-on-event"===r&&n&&A(n)}),!1)}.bind(this),g=function(){r(this,t),v(),m("init")}.bind(this),A=function(n){r(this,t);try{kM.emit("sdk-event",n),e.onEvent&&e.onEvent(n)}catch(e){console.log("DEVELOPER ERROR on forwarder-sdk")}}.bind(this);return{showBanner:l,showAd:a,preloadAd:s,showDisplayAd:u,cancelAd:c,openConsole:d,getSession:f,onEvent:A,init:g,_sendSDKReady:h,sendGenericEvent:p}},SM=function(e){var t=EM(e);return t.init(),t},DM=function(){var e=this,t=function(){r(this,e);return/http[s]?:\/\/(html5\.gamedistribution\.com\/[A-Fa-f0-9]{32})(.*)$/i.test(location.href)}.bind(this),n=function(){r(this,e);return/http[s]?:\/\/(html5\.gamedistribution\.com\/[A-Za-z0-9]{8})\/(.*)$/i.test(location.href)}.bind(this),o=function(){r(this,e);return/^http[s]?:\/\/.*?gd_sdk_referrer_url=.*$/i.test(location.href)}.bind(this),i=function(){r(this,e);var o="html5.gamedistribution.com"!==C(window.location.href).host;return t()&&!(n()||o)?"loader-frame":"game-frame"}.bind(this);return{isMasterGameURL:t,isTokenGameURL:n,isExtHostedGameURL:o,whichFrame:i}},RM="gd-sdk-frame-handshake-request",IM="gd-sdk-frame-handshake-response",CM=function(e){var t=this;return new Promise(function(e,n){var o=this;r(this,t);var i={type:RM},a=!1;window.addEventListener("message",(function(t){var r=t.data,n=t.origin,o=t.source,i=r.type;if(i===RM){var s={type:IM};o.postMessage(s,n)}else i===IM&&(a=!0,e({origin:n,source:o}))})),setTimeout(function(){r(this,o),a||e()}.bind(this),200),window.parent!==window?window.parent.postMessage(i,"*"):e()}.bind(this))},OM=function(){var e=t(d.mark((function e(){var t,r,n,o,i,a,s;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,KD();case 2:return t=e.sent,e.next=6,CM();case 6:if(r=e.sent,oM.SDKExistsOnUpperFrame=!!r,t){e.next=10;break}return e.abrupt("return",!1);case 10:return n=DM(),o=n.isMasterGameURL,n.isTokenGameURL,i=o(),e.next=14,VD();case 14:return a=e.sent,s=!1,s=a?!i&&!!r:!i,e.abrupt("return",s);case 18:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),TM=$r,PM=Yt,LM=Zs,MM=Fa,BM=PM(Pa.f),jM=PM([].push),UM=function(e){return function(t){for(var r,n=MM(t),o=LM(n),i=o.length,a=0,s=[];i>a;)r=o[a++],TM&&!BM(n,r)||jM(s,e?[r,n[r]]:n[r]);return s}},FM={entries:UM(!0),values:UM(!1)}.values;Gs({target:"Object",stat:!0},{values:function(e){return FM(e)}});var NM,$M={},GM=function(e){try{if(e.skipForward)return void Js("gd-adflow fw-skip-forward",e);if(Js("gd-adflow fw-forwarding",e),$M.source){var t={type:"gd-sdk-on-event",event:e};$M.source.postMessage(t,$M.origin)}}catch(e){console.log("gd-sdk forwardEvent err",e)}},HM=function(){GM({name:"SDK_READY",status:"success",message:"Everything is ready."}),GM({name:"SDK_GAME_START",status:"success",message:"Advertisement(s) are done. Start / resume the game."}),GM({name:"CONTENT_RESUME_REQUESTED",status:"success",message:"Fired when content should be resumed. This usually happens when an ad finishes or collapses."})},zM=function(e){window.addEventListener("message",(function(n){var o=n.data,i=n.origin,a=n.source,s=o.type,u=o.method,c=o.options;if("gd-sdk-self"!==s){if("gd-sdk"===s){if(!$M.source&&"init"===u)return function(e){var t=e.source,r=e.origin;$M={source:t,origin:r}}({source:a,origin:i}),void HM();var l=e[u];l&&t(d.mark((function t(){var n,o=this;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,function(){r(this,o),"showAd"===u&&tu.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),!(n=l.apply(e,Object.values(c)))||!n.then){t.next=6;break}return t.next=6,n;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)},ZM=function(e){!function(e){var t=e.onEvent;e.onEvent=function(e){GM(e),t.apply(this,arguments)}}(e);var t=new wM(e);return zM(t),t},KM=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 r,n;return L(e,[{key:"load",value:(n=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,Js("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 n.apply(this,arguments)})},{key:"runYMenu",value:(r=t(d.mark((function e(t){var r;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.gameId,this.module){e.next=4;break}return e.next=4,this.load();case 4:(new this.module.Aeria).renderYMenu({gameId:r});case 6:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})}]),e}(),qM=function(){var e=t(d.mark((function e(){var r,n,o,i,a,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(r=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}}(),n=r.isAeriaDomain,o=r.isAeriaStagingDomain,!n){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(),r=t.pathname,n=r.split("/"),o=n[n.length-1];Xs("aeria-ylogin:loc",t,r,o),e=o}catch(e){eu("Error on getting aeria game id",e)}return e}(),c={action:"score",data:{gameId:u,score:100},env:o?"staging":"production",system:"Softgames"},l=function(){var e=window.parent||window,t=c;e.postMessage(t,"*")},f=new Dt,e.next=13,GD();case 13:p=e.sent,h=null==p||null===(i=p.aeria)||void 0===i?void 0:i.yMenuExcluded,m=null==p||null===(a=p.aeria)||void 0===a?void 0:a.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 KM).runYMenu({gameId:u});case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),g=DM(),A=g.whichFrame,"game-frame"===A()&&(h||v());case 21:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),VM=function(e){try{var t=lD(e);e.gameId||t.send("nogameid",{message:"".concat(t_.parentURL)})}catch(e){}},WM=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,qM();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)}}(),YM=function(){var e=t(d.mark((function e(t){var r,n;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,VM(t),$D(t),e.next=5,OM();case 5:return r=e.sent,e.next=8,WM();case 8:return window.isForwarderFrame=r,n=r?SM(t):ZM(t),YD(),e.abrupt("return",n);case 14:return e.prev=14,e.t0=e.catch(0),console.log("gd:adp: sdk adaptor create failed, fallback to default adapter",e.t0),e.abrupt("return",ZM(t));case 18:case"end":return e.stop()}}),e,null,[[0,14]])})));return function(t){return e.apply(this,arguments)}}(),QM={create:YM};function JM(){return(JM=t(d.mark((function e(t,r){var n;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,XD();case 2:if(!e.sent){e.next=7;break}e.t0=window.gdsdk,e.next=10;break;case 7:return e.next=9,rB(t);case 9:e.t0=e.sent;case 10:return n=e.t0,e.abrupt("return",r(n));case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var XM,eB,tB=!1;function rB(e){var t=this;return new Promise(function(n,o){var i=this;if(r(this,t),NM)return n(NM);if(tB)var a=setInterval(function(){r(this,i),NM&&(tB=!1,clearInterval(a),n(NM))}.bind(this),100);else tB=!0,QM.create(e).then(function(e){r(this,i),NM=e,e._sendSDKReady(),tB=!1,n(NM)}.bind(this))}.bind(this))}function nB(e){return rB(e),{invoke:function(t){return function(e,t){return JM.apply(this,arguments)}(e,t)}}}function oB(e,n){var o=this;return new Promise(function(i,a){var s,u=this;r(this,o);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==n||null===(s=n.game)||void 0===s?void 0:s.version);iB({text:"sdk-wrapper-script-load"}),ft(c[0],"gd-sdk-wrp",{alternates:c}).catch(function(e){r(this,u),iB({text:"sdk-wrapper load error",error:e.message}),this._sendSDKError(e),a(e)}.bind(this)).then(t(d.mark((function t(){var r,o;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,iB({text:"sdk-wrapper load success"}),r=window.GDSDKWRP.GDSDKWRP,o=new r,iB({text:"sdk-wrapper before gdSdkWrp.init"}),t.next=7,o.init(e,n);case 7:eB=t.sent,iB({text:"sdk-wrapper after gdSdkWrp.init"}),i(eB),t.next=16;break;case 12:t.prev=12,t.t0=t.catch(0),iB({text:"sdk-wrapper load error 2",error:t.t0.message}),a(t.t0);case 16:case"end":return t.stop()}}),t,null,[[0,12]])}))))}.bind(this))}function iB(e){try{var t={tp:"gd.wrp",args:e};fetch("https://tag.atom.gamedistribution.com/v1/dmp?ar=".concat(encodeURIComponent(rt.encode(JSON.stringify(t))))),console.log(fP(Object.values(e)))}catch(e){}}function aB(e){if(e){var t=e.name,r=e.message,n=e.status;try{iB({text:"samsung-wrp send-game-event",evt:e,hasOptions:!!XM}),XM&&XM.onEvent({name:t,message:r,status:n})}catch(t){iB({text:"samsung-wrp DEVELOPER-ERROR",evt:e,err:t})}}}function sB(e){return uB.apply(this,arguments)}function uB(){return(uB=t(d.mark((function e(t){var r,n,o,i,a,s,u,c,l;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return XM=t,$D(t),e.next=4,GD();case 4:if(i=e.sent,!eB){e.next=7;break}return e.abrupt("return",eB);case 7:if(a=null==i||null===(r=i.sdk_wrp)||void 0===r?void 0:r.enabled,s=null==i||null===(n=i.sdk_wrp)||void 0===n?void 0:n.version,u=null==i?void 0:i.gameId,c=null==i?void 0:i.title,dB("isWrapEnabled ".concat(a)),a){e.next=14;break}return e.abrupt("return");case 14:return l=null==i||null===(o=i.sdk_wrp)||void 0===o?void 0:o.wrapper,e.next=17,oB(l,{onEvent:aB,game:{gameId:u,title:c,version:s}});case 17:return eB=e.sent,e.abrupt("return",eB);case 19:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function cB(){return cB=t(d.mark((function e(t){var r,n,o;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t._get_developer_sets,dB("beforeGetDeveloperSettings"),n=r(),dB("afterGetDeveloperSettings"),e.prev=4,e.next=7,sB(n);case 7:o=e.sent,dB("after get SDK wrapper: ".concat(!!o)),o&&(dB("setting SDK Wrapper as gd-sdk"),window.sdkWrapper=o,window.gdsdk=o,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),dB("Error on SDK wrapper init: ".concat(e.t0.message));case 16:case"end":return e.stop()}}),e,null,[[4,12]])}))),cB.apply(this,arguments)}function dB(e){window.sdkLog.push(e)}function lB(){var e={};try{"object"===("undefined"==typeof GD_OPTIONS?"undefined":n(GD_OPTIONS))&&GD_OPTIONS?e=GD_OPTIONS:window.gdApi&&"object"===n(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,r=C(window.location.href,!0),n=r.host,o=r.query,i=n,a=null==o?void 0:o.gd_sdk_referrer_url;return a&&(a=a.startsWith("https://")||a.startsWith("http://")?a:"https://".concat(a),null!==(t=e=C(a,!0))&&void 0!==t&&t.host&&(i=e.host)),i}()?dB("skipped normal SDK init!"):(!function(){lT();var e=nB(lB());function n(){var n=this;this.AdType=nt,this.preloadAd=function(){var n=t(d.mark((function t(n){var o,i=this;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.invoke(function(e){return r(this,i),e.preloadAd(n)}.bind(this));case 2:return o=t.sent,Xs("[developer-event] preloadAd check",o),t.abrupt("return",o);case 5:case"end":return t.stop()}}),t,this)})));return function(e){return n.apply(this,arguments)}}(),this.showAd=function(){var n=t(d.mark((function t(n,o){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){var t=this;if(r(this,a),n===nt.Display)return e.showDisplayAd(o);var i={};return function(){r(this,t),tu.firstAdapterModeAdsense&&(console.log("promo-test, set first adapter to adssense 2"),i.adapter="adsense")}.bind(this),e.showAd(n,i)}.bind(this));case 2:return i=t.sent,Xs("[developer-event] after showAd",i),t.abrupt("return",i);case 5:case"end":return t.stop()}}),t,this)})));return function(e,t){return n.apply(this,arguments)}}(),this.cancelAd=function(){var t=this;return e.invoke(function(e){return r(this,t),e.cancelAd()}.bind(this))},this.openConsole=function(){var t=this;return e.invoke(function(e){return r(this,t),e.openConsole()}.bind(this))},this.getSession=function(){var t=this;return e.invoke(function(e){return r(this,t),e.session()}.bind(this))},this.sendEvent=function(t){var n=this;return e.invoke(function(e){return r(this,n),e.sendGenericEvent(t)}.bind(this))},this.leaderboard={show:function(){r(this,n),$b.showLeaderboard()}.bind(this),addScore:function(e){r(this,n),$b.addScore(e)}.bind(this)}}n.prototype=new function(){this.showBanner=function(){var t=this;return e.invoke(function(e){return r(this,t),e.showBanner()}.bind(this))},this.play=function(){},this.customLog=function(){}},window.gdsdk=new n,window.gdApi=window.gdsdk}(),dB("afterSDKInit")),function(e){cB.apply(this,arguments)}({_get_developer_sets:lB})}();
|