aesirx-analytics 2.4.0 → 2.4.2
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.
- package/dist/analytics.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/package.json +1 -1
package/dist/analytics.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
(()=>{var ut=Object.create;var Ae=Object.defineProperty;var ct=Object.getOwnPropertyDescriptor;var lt=Object.getOwnPropertyNames;var ft=Object.getPrototypeOf,dt=Object.prototype.hasOwnProperty;var $=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var pt=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of lt(e))!dt.call(r,i)&&i!==t&&Ae(r,i,{get:()=>e[i],enumerable:!(n=ct(e,i))||n.enumerable});return r};var re=(r,e,t)=>(t=r!=null?ut(ft(r)):{},pt(e||!r||!r.__esModule?Ae(t,"default",{value:r,enumerable:!0}):t,r));var xe=$((W,ie)=>{(function(r,e){typeof W=="object"&&typeof ie=="object"?ie.exports=e():typeof define=="function"&&define.amd?define([],e):typeof W=="object"?W.bowser=e():r.bowser=e()})(W,function(){return function(r){var e={};function t(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return r[n].call(i.exports,i,i.exports,t),i.l=!0,i.exports}return t.m=r,t.c=e,t.d=function(n,i,s){t.o(n,i)||Object.defineProperty(n,i,{enumerable:!0,get:s})},t.r=function(n){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.t=function(n,i){if(1&i&&(n=t(n)),8&i||4&i&&typeof n=="object"&&n&&n.__esModule)return n;var s=Object.create(null);if(t.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:n}),2&i&&typeof n!="string")for(var c in n)t.d(s,c,function(o){return n[o]}.bind(null,c));return s},t.n=function(n){var i=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(i,"a",i),i},t.o=function(n,i){return Object.prototype.hasOwnProperty.call(n,i)},t.p="",t(t.s=90)}({17:function(r,e,t){"use strict";e.__esModule=!0,e.default=void 0;var n=t(18),i=function(){function s(){}return s.getFirstMatch=function(c,o){var a=o.match(c);return a&&a.length>0&&a[1]||""},s.getSecondMatch=function(c,o){var a=o.match(c);return a&&a.length>1&&a[2]||""},s.matchAndReturnConst=function(c,o,a){if(c.test(o))return a},s.getWindowsVersionName=function(c){switch(c){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},s.getMacOSVersionName=function(c){var o=c.split(".").splice(0,2).map(function(a){return parseInt(a,10)||0});if(o.push(0),o[0]===10)switch(o[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},s.getAndroidVersionName=function(c){var o=c.split(".").splice(0,2).map(function(a){return parseInt(a,10)||0});if(o.push(0),!(o[0]===1&&o[1]<5))return o[0]===1&&o[1]<6?"Cupcake":o[0]===1&&o[1]>=6?"Donut":o[0]===2&&o[1]<2?"Eclair":o[0]===2&&o[1]===2?"Froyo":o[0]===2&&o[1]>2?"Gingerbread":o[0]===3?"Honeycomb":o[0]===4&&o[1]<1?"Ice Cream Sandwich":o[0]===4&&o[1]<4?"Jelly Bean":o[0]===4&&o[1]>=4?"KitKat":o[0]===5?"Lollipop":o[0]===6?"Marshmallow":o[0]===7?"Nougat":o[0]===8?"Oreo":o[0]===9?"Pie":void 0},s.getVersionPrecision=function(c){return c.split(".").length},s.compareVersions=function(c,o,a){a===void 0&&(a=!1);var u=s.getVersionPrecision(c),d=s.getVersionPrecision(o),f=Math.max(u,d),h=0,p=s.map([c,o],function(g){var m=f-s.getVersionPrecision(g),y=g+new Array(m+1).join(".0");return s.map(y.split("."),function(_){return new Array(20-_.length).join("0")+_}).reverse()});for(a&&(h=f-Math.min(u,d)),f-=1;f>=h;){if(p[0][f]>p[1][f])return 1;if(p[0][f]===p[1][f]){if(f===h)return 0;f-=1}else if(p[0][f]<p[1][f])return-1}},s.map=function(c,o){var a,u=[];if(Array.prototype.map)return Array.prototype.map.call(c,o);for(a=0;a<c.length;a+=1)u.push(o(c[a]));return u},s.find=function(c,o){var a,u;if(Array.prototype.find)return Array.prototype.find.call(c,o);for(a=0,u=c.length;a<u;a+=1){var d=c[a];if(o(d,a))return d}},s.assign=function(c){for(var o,a,u=c,d=arguments.length,f=new Array(d>1?d-1:0),h=1;h<d;h++)f[h-1]=arguments[h];if(Object.assign)return Object.assign.apply(Object,[c].concat(f));var p=function(){var g=f[o];typeof g=="object"&&g!==null&&Object.keys(g).forEach(function(m){u[m]=g[m]})};for(o=0,a=f.length;o<a;o+=1)p();return c},s.getBrowserAlias=function(c){return n.BROWSER_ALIASES_MAP[c]},s.getBrowserTypeByAlias=function(c){return n.BROWSER_MAP[c]||""},s}();e.default=i,r.exports=e.default},18:function(r,e,t){"use strict";e.__esModule=!0,e.ENGINE_MAP=e.OS_MAP=e.PLATFORMS_MAP=e.BROWSER_MAP=e.BROWSER_ALIASES_MAP=void 0,e.BROWSER_ALIASES_MAP={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},e.BROWSER_MAP={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},e.PLATFORMS_MAP={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},e.OS_MAP={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},e.ENGINE_MAP={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"}},90:function(r,e,t){"use strict";e.__esModule=!0,e.default=void 0;var n,i=(n=t(91))&&n.__esModule?n:{default:n},s=t(18);function c(a,u){for(var d=0;d<u.length;d++){var f=u[d];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(a,f.key,f)}}var o=function(){function a(){}var u,d,f;return a.getParser=function(h,p){if(p===void 0&&(p=!1),typeof h!="string")throw new Error("UserAgent should be a string");return new i.default(h,p)},a.parse=function(h){return new i.default(h).getResult()},u=a,f=[{key:"BROWSER_MAP",get:function(){return s.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return s.ENGINE_MAP}},{key:"OS_MAP",get:function(){return s.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return s.PLATFORMS_MAP}}],(d=null)&&c(u.prototype,d),f&&c(u,f),a}();e.default=o,r.exports=e.default},91:function(r,e,t){"use strict";e.__esModule=!0,e.default=void 0;var n=a(t(92)),i=a(t(93)),s=a(t(94)),c=a(t(95)),o=a(t(17));function a(d){return d&&d.__esModule?d:{default:d}}var u=function(){function d(h,p){if(p===void 0&&(p=!1),h==null||h==="")throw new Error("UserAgent parameter can't be empty");this._ua=h,this.parsedResult={},p!==!0&&this.parse()}var f=d.prototype;return f.getUA=function(){return this._ua},f.test=function(h){return h.test(this._ua)},f.parseBrowser=function(){var h=this;this.parsedResult.browser={};var p=o.default.find(n.default,function(g){if(typeof g.test=="function")return g.test(h);if(g.test instanceof Array)return g.test.some(function(m){return h.test(m)});throw new Error("Browser's test function is not valid")});return p&&(this.parsedResult.browser=p.describe(this.getUA())),this.parsedResult.browser},f.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},f.getBrowserName=function(h){return h?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},f.getBrowserVersion=function(){return this.getBrowser().version},f.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},f.parseOS=function(){var h=this;this.parsedResult.os={};var p=o.default.find(i.default,function(g){if(typeof g.test=="function")return g.test(h);if(g.test instanceof Array)return g.test.some(function(m){return h.test(m)});throw new Error("Browser's test function is not valid")});return p&&(this.parsedResult.os=p.describe(this.getUA())),this.parsedResult.os},f.getOSName=function(h){var p=this.getOS().name;return h?String(p).toLowerCase()||"":p||""},f.getOSVersion=function(){return this.getOS().version},f.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},f.getPlatformType=function(h){h===void 0&&(h=!1);var p=this.getPlatform().type;return h?String(p).toLowerCase()||"":p||""},f.parsePlatform=function(){var h=this;this.parsedResult.platform={};var p=o.default.find(s.default,function(g){if(typeof g.test=="function")return g.test(h);if(g.test instanceof Array)return g.test.some(function(m){return h.test(m)});throw new Error("Browser's test function is not valid")});return p&&(this.parsedResult.platform=p.describe(this.getUA())),this.parsedResult.platform},f.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},f.getEngineName=function(h){return h?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},f.parseEngine=function(){var h=this;this.parsedResult.engine={};var p=o.default.find(c.default,function(g){if(typeof g.test=="function")return g.test(h);if(g.test instanceof Array)return g.test.some(function(m){return h.test(m)});throw new Error("Browser's test function is not valid")});return p&&(this.parsedResult.engine=p.describe(this.getUA())),this.parsedResult.engine},f.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},f.getResult=function(){return o.default.assign({},this.parsedResult)},f.satisfies=function(h){var p=this,g={},m=0,y={},_=0;if(Object.keys(h).forEach(function(v){var q=h[v];typeof q=="string"?(y[v]=q,_+=1):typeof q=="object"&&(g[v]=q,m+=1)}),m>0){var F=Object.keys(g),U=o.default.find(F,function(v){return p.isOS(v)});if(U){var O=this.satisfies(g[U]);if(O!==void 0)return O}var I=o.default.find(F,function(v){return p.isPlatform(v)});if(I){var T=this.satisfies(g[I]);if(T!==void 0)return T}}if(_>0){var b=Object.keys(y),K=o.default.find(b,function(v){return p.isBrowser(v,!0)});if(K!==void 0)return this.compareVersion(y[K])}},f.isBrowser=function(h,p){p===void 0&&(p=!1);var g=this.getBrowserName().toLowerCase(),m=h.toLowerCase(),y=o.default.getBrowserTypeByAlias(m);return p&&y&&(m=y.toLowerCase()),m===g},f.compareVersion=function(h){var p=[0],g=h,m=!1,y=this.getBrowserVersion();if(typeof y=="string")return h[0]===">"||h[0]==="<"?(g=h.substr(1),h[1]==="="?(m=!0,g=h.substr(2)):p=[],h[0]===">"?p.push(1):p.push(-1)):h[0]==="="?g=h.substr(1):h[0]==="~"&&(m=!0,g=h.substr(1)),p.indexOf(o.default.compareVersions(y,g,m))>-1},f.isOS=function(h){return this.getOSName(!0)===String(h).toLowerCase()},f.isPlatform=function(h){return this.getPlatformType(!0)===String(h).toLowerCase()},f.isEngine=function(h){return this.getEngineName(!0)===String(h).toLowerCase()},f.is=function(h,p){return p===void 0&&(p=!1),this.isBrowser(h,p)||this.isOS(h)||this.isPlatform(h)},f.some=function(h){var p=this;return h===void 0&&(h=[]),h.some(function(g){return p.is(g)})},d}();e.default=u,r.exports=e.default},92:function(r,e,t){"use strict";e.__esModule=!0,e.default=void 0;var n,i=(n=t(17))&&n.__esModule?n:{default:n},s=/version\/(\d+(\.?_?\d+)+)/i,c=[{test:[/googlebot/i],describe:function(o){var a={name:"Googlebot"},u=i.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,o)||i.default.getFirstMatch(s,o);return u&&(a.version=u),a}},{test:[/opera/i],describe:function(o){var a={name:"Opera"},u=i.default.getFirstMatch(s,o)||i.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,o);return u&&(a.version=u),a}},{test:[/opr\/|opios/i],describe:function(o){var a={name:"Opera"},u=i.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,o)||i.default.getFirstMatch(s,o);return u&&(a.version=u),a}},{test:[/SamsungBrowser/i],describe:function(o){var a={name:"Samsung Internet for Android"},u=i.default.getFirstMatch(s,o)||i.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,o);return u&&(a.version=u),a}},{test:[/Whale/i],describe:function(o){var a={name:"NAVER Whale Browser"},u=i.default.getFirstMatch(s,o)||i.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,o);return u&&(a.version=u),a}},{test:[/MZBrowser/i],describe:function(o){var a={name:"MZ Browser"},u=i.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,o)||i.default.getFirstMatch(s,o);return u&&(a.version=u),a}},{test:[/focus/i],describe:function(o){var a={name:"Focus"},u=i.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,o)||i.default.getFirstMatch(s,o);return u&&(a.version=u),a}},{test:[/swing/i],describe:function(o){var a={name:"Swing"},u=i.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,o)||i.default.getFirstMatch(s,o);return u&&(a.version=u),a}},{test:[/coast/i],describe:function(o){var a={name:"Opera Coast"},u=i.default.getFirstMatch(s,o)||i.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,o);return u&&(a.version=u),a}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(o){var a={name:"Opera Touch"},u=i.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,o)||i.default.getFirstMatch(s,o);return u&&(a.version=u),a}},{test:[/yabrowser/i],describe:function(o){var a={name:"Yandex Browser"},u=i.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,o)||i.default.getFirstMatch(s,o);return u&&(a.version=u),a}},{test:[/ucbrowser/i],describe:function(o){var a={name:"UC Browser"},u=i.default.getFirstMatch(s,o)||i.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,o);return u&&(a.version=u),a}},{test:[/Maxthon|mxios/i],describe:function(o){var a={name:"Maxthon"},u=i.default.getFirstMatch(s,o)||i.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,o);return u&&(a.version=u),a}},{test:[/epiphany/i],describe:function(o){var a={name:"Epiphany"},u=i.default.getFirstMatch(s,o)||i.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,o);return u&&(a.version=u),a}},{test:[/puffin/i],describe:function(o){var a={name:"Puffin"},u=i.default.getFirstMatch(s,o)||i.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,o);return u&&(a.version=u),a}},{test:[/sleipnir/i],describe:function(o){var a={name:"Sleipnir"},u=i.default.getFirstMatch(s,o)||i.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,o);return u&&(a.version=u),a}},{test:[/k-meleon/i],describe:function(o){var a={name:"K-Meleon"},u=i.default.getFirstMatch(s,o)||i.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,o);return u&&(a.version=u),a}},{test:[/micromessenger/i],describe:function(o){var a={name:"WeChat"},u=i.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,o)||i.default.getFirstMatch(s,o);return u&&(a.version=u),a}},{test:[/qqbrowser/i],describe:function(o){var a={name:/qqbrowserlite/i.test(o)?"QQ Browser Lite":"QQ Browser"},u=i.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,o)||i.default.getFirstMatch(s,o);return u&&(a.version=u),a}},{test:[/msie|trident/i],describe:function(o){var a={name:"Internet Explorer"},u=i.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,o);return u&&(a.version=u),a}},{test:[/\sedg\//i],describe:function(o){var a={name:"Microsoft Edge"},u=i.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,o);return u&&(a.version=u),a}},{test:[/edg([ea]|ios)/i],describe:function(o){var a={name:"Microsoft Edge"},u=i.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,o);return u&&(a.version=u),a}},{test:[/vivaldi/i],describe:function(o){var a={name:"Vivaldi"},u=i.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,o);return u&&(a.version=u),a}},{test:[/seamonkey/i],describe:function(o){var a={name:"SeaMonkey"},u=i.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,o);return u&&(a.version=u),a}},{test:[/sailfish/i],describe:function(o){var a={name:"Sailfish"},u=i.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,o);return u&&(a.version=u),a}},{test:[/silk/i],describe:function(o){var a={name:"Amazon Silk"},u=i.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,o);return u&&(a.version=u),a}},{test:[/phantom/i],describe:function(o){var a={name:"PhantomJS"},u=i.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,o);return u&&(a.version=u),a}},{test:[/slimerjs/i],describe:function(o){var a={name:"SlimerJS"},u=i.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,o);return u&&(a.version=u),a}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(o){var a={name:"BlackBerry"},u=i.default.getFirstMatch(s,o)||i.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,o);return u&&(a.version=u),a}},{test:[/(web|hpw)[o0]s/i],describe:function(o){var a={name:"WebOS Browser"},u=i.default.getFirstMatch(s,o)||i.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,o);return u&&(a.version=u),a}},{test:[/bada/i],describe:function(o){var a={name:"Bada"},u=i.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,o);return u&&(a.version=u),a}},{test:[/tizen/i],describe:function(o){var a={name:"Tizen"},u=i.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,o)||i.default.getFirstMatch(s,o);return u&&(a.version=u),a}},{test:[/qupzilla/i],describe:function(o){var a={name:"QupZilla"},u=i.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,o)||i.default.getFirstMatch(s,o);return u&&(a.version=u),a}},{test:[/firefox|iceweasel|fxios/i],describe:function(o){var a={name:"Firefox"},u=i.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,o);return u&&(a.version=u),a}},{test:[/electron/i],describe:function(o){var a={name:"Electron"},u=i.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,o);return u&&(a.version=u),a}},{test:[/MiuiBrowser/i],describe:function(o){var a={name:"Miui"},u=i.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,o);return u&&(a.version=u),a}},{test:[/chromium/i],describe:function(o){var a={name:"Chromium"},u=i.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,o)||i.default.getFirstMatch(s,o);return u&&(a.version=u),a}},{test:[/chrome|crios|crmo/i],describe:function(o){var a={name:"Chrome"},u=i.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,o);return u&&(a.version=u),a}},{test:[/GSA/i],describe:function(o){var a={name:"Google Search"},u=i.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,o);return u&&(a.version=u),a}},{test:function(o){var a=!o.test(/like android/i),u=o.test(/android/i);return a&&u},describe:function(o){var a={name:"Android Browser"},u=i.default.getFirstMatch(s,o);return u&&(a.version=u),a}},{test:[/playstation 4/i],describe:function(o){var a={name:"PlayStation 4"},u=i.default.getFirstMatch(s,o);return u&&(a.version=u),a}},{test:[/safari|applewebkit/i],describe:function(o){var a={name:"Safari"},u=i.default.getFirstMatch(s,o);return u&&(a.version=u),a}},{test:[/.*/i],describe:function(o){var a=o.search("\\(")!==-1?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:i.default.getFirstMatch(a,o),version:i.default.getSecondMatch(a,o)}}}];e.default=c,r.exports=e.default},93:function(r,e,t){"use strict";e.__esModule=!0,e.default=void 0;var n,i=(n=t(17))&&n.__esModule?n:{default:n},s=t(18),c=[{test:[/Roku\/DVP/],describe:function(o){var a=i.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,o);return{name:s.OS_MAP.Roku,version:a}}},{test:[/windows phone/i],describe:function(o){var a=i.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,o);return{name:s.OS_MAP.WindowsPhone,version:a}}},{test:[/windows /i],describe:function(o){var a=i.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,o),u=i.default.getWindowsVersionName(a);return{name:s.OS_MAP.Windows,version:a,versionName:u}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(o){var a={name:s.OS_MAP.iOS},u=i.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,o);return u&&(a.version=u),a}},{test:[/macintosh/i],describe:function(o){var a=i.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,o).replace(/[_\s]/g,"."),u=i.default.getMacOSVersionName(a),d={name:s.OS_MAP.MacOS,version:a};return u&&(d.versionName=u),d}},{test:[/(ipod|iphone|ipad)/i],describe:function(o){var a=i.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,o).replace(/[_\s]/g,".");return{name:s.OS_MAP.iOS,version:a}}},{test:function(o){var a=!o.test(/like android/i),u=o.test(/android/i);return a&&u},describe:function(o){var a=i.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,o),u=i.default.getAndroidVersionName(a),d={name:s.OS_MAP.Android,version:a};return u&&(d.versionName=u),d}},{test:[/(web|hpw)[o0]s/i],describe:function(o){var a=i.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,o),u={name:s.OS_MAP.WebOS};return a&&a.length&&(u.version=a),u}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(o){var a=i.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,o)||i.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,o)||i.default.getFirstMatch(/\bbb(\d+)/i,o);return{name:s.OS_MAP.BlackBerry,version:a}}},{test:[/bada/i],describe:function(o){var a=i.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,o);return{name:s.OS_MAP.Bada,version:a}}},{test:[/tizen/i],describe:function(o){var a=i.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,o);return{name:s.OS_MAP.Tizen,version:a}}},{test:[/linux/i],describe:function(){return{name:s.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:s.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(o){var a=i.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,o);return{name:s.OS_MAP.PlayStation4,version:a}}}];e.default=c,r.exports=e.default},94:function(r,e,t){"use strict";e.__esModule=!0,e.default=void 0;var n,i=(n=t(17))&&n.__esModule?n:{default:n},s=t(18),c=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(o){var a=i.default.getFirstMatch(/(can-l01)/i,o)&&"Nova",u={type:s.PLATFORMS_MAP.mobile,vendor:"Huawei"};return a&&(u.model=a),u}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet}}},{test:function(o){var a=o.test(/ipod|iphone/i),u=o.test(/like (ipod|iphone)/i);return a&&!u},describe:function(o){var a=i.default.getFirstMatch(/(ipod|iphone)/i,o);return{type:s.PLATFORMS_MAP.mobile,vendor:"Apple",model:a}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:function(o){return o.getBrowserName(!0)==="blackberry"},describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(o){return o.getBrowserName(!0)==="bada"},describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:function(o){return o.getBrowserName()==="windows phone"},describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(o){var a=Number(String(o.getOSVersion()).split(".")[0]);return o.getOSName(!0)==="android"&&a>=3},describe:function(){return{type:s.PLATFORMS_MAP.tablet}}},{test:function(o){return o.getOSName(!0)==="android"},describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:function(o){return o.getOSName(!0)==="macos"},describe:function(){return{type:s.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(o){return o.getOSName(!0)==="windows"},describe:function(){return{type:s.PLATFORMS_MAP.desktop}}},{test:function(o){return o.getOSName(!0)==="linux"},describe:function(){return{type:s.PLATFORMS_MAP.desktop}}},{test:function(o){return o.getOSName(!0)==="playstation 4"},describe:function(){return{type:s.PLATFORMS_MAP.tv}}},{test:function(o){return o.getOSName(!0)==="roku"},describe:function(){return{type:s.PLATFORMS_MAP.tv}}}];e.default=c,r.exports=e.default},95:function(r,e,t){"use strict";e.__esModule=!0,e.default=void 0;var n,i=(n=t(17))&&n.__esModule?n:{default:n},s=t(18),c=[{test:function(o){return o.getBrowserName(!0)==="microsoft edge"},describe:function(o){if(/\sedg\//i.test(o))return{name:s.ENGINE_MAP.Blink};var a=i.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,o);return{name:s.ENGINE_MAP.EdgeHTML,version:a}}},{test:[/trident/i],describe:function(o){var a={name:s.ENGINE_MAP.Trident},u=i.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,o);return u&&(a.version=u),a}},{test:function(o){return o.test(/presto/i)},describe:function(o){var a={name:s.ENGINE_MAP.Presto},u=i.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,o);return u&&(a.version=u),a}},{test:function(o){var a=o.test(/gecko/i),u=o.test(/like gecko/i);return a&&!u},describe:function(o){var a={name:s.ENGINE_MAP.Gecko},u=i.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,o);return u&&(a.version=u),a}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:s.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(o){var a={name:s.ENGINE_MAP.WebKit},u=i.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,o);return u&&(a.version=u),a}}];e.default=c,r.exports=e.default}})})});var ve=$((lr,oe)=>{function Et(r,e){var t,n,i,s,c,o,a,u,d,f;for(t=r.length&3,n=r.length-t,i=e,c=3432918353,a=461845907,f=0;f<n;)d=r.charCodeAt(f)&255|(r.charCodeAt(++f)&255)<<8|(r.charCodeAt(++f)&255)<<16|(r.charCodeAt(++f)&255)<<24,++f,d=(d&65535)*c+(((d>>>16)*c&65535)<<16)&4294967295,d=d<<15|d>>>17,d=(d&65535)*a+(((d>>>16)*a&65535)<<16)&4294967295,i^=d,i=i<<13|i>>>19,s=(i&65535)*5+(((i>>>16)*5&65535)<<16)&4294967295,i=(s&65535)+27492+(((s>>>16)+58964&65535)<<16);switch(d=0,t){case 3:d^=(r.charCodeAt(f+2)&255)<<16;case 2:d^=(r.charCodeAt(f+1)&255)<<8;case 1:d^=r.charCodeAt(f)&255,d=(d&65535)*c+(((d>>>16)*c&65535)<<16)&4294967295,d=d<<15|d>>>17,d=(d&65535)*a+(((d>>>16)*a&65535)<<16)&4294967295,i^=d}return i^=r.length,i^=i>>>16,i=(i&65535)*2246822507+(((i>>>16)*2246822507&65535)<<16)&4294967295,i^=i>>>13,i=(i&65535)*3266489909+(((i>>>16)*3266489909&65535)<<16)&4294967295,i^=i>>>16,i>>>0}typeof oe<"u"&&(oe.exports=Et)});var qe=$(X=>{"use strict";X.byteLength=Ft;X.toByteArray=Tt;X.fromByteArray=Ot;var B=[],x=[],Mt=typeof Uint8Array<"u"?Uint8Array:Array,ce="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(C=0,ke=ce.length;C<ke;++C)B[C]=ce[C],x[ce.charCodeAt(C)]=C;var C,ke;x[45]=62;x[95]=63;function Ue(r){var e=r.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=r.indexOf("=");t===-1&&(t=e);var n=t===e?0:4-t%4;return[t,n]}function Ft(r){var e=Ue(r),t=e[0],n=e[1];return(t+n)*3/4-n}function It(r,e,t){return(e+t)*3/4-t}function Tt(r){var e,t=Ue(r),n=t[0],i=t[1],s=new Mt(It(r,n,i)),c=0,o=i>0?n-4:n,a;for(a=0;a<o;a+=4)e=x[r.charCodeAt(a)]<<18|x[r.charCodeAt(a+1)]<<12|x[r.charCodeAt(a+2)]<<6|x[r.charCodeAt(a+3)],s[c++]=e>>16&255,s[c++]=e>>8&255,s[c++]=e&255;return i===2&&(e=x[r.charCodeAt(a)]<<2|x[r.charCodeAt(a+1)]>>4,s[c++]=e&255),i===1&&(e=x[r.charCodeAt(a)]<<10|x[r.charCodeAt(a+1)]<<4|x[r.charCodeAt(a+2)]>>2,s[c++]=e>>8&255,s[c++]=e&255),s}function Pt(r){return B[r>>18&63]+B[r>>12&63]+B[r>>6&63]+B[r&63]}function Lt(r,e,t){for(var n,i=[],s=e;s<t;s+=3)n=(r[s]<<16&16711680)+(r[s+1]<<8&65280)+(r[s+2]&255),i.push(Pt(n));return i.join("")}function Ot(r){for(var e,t=r.length,n=t%3,i=[],s=16383,c=0,o=t-n;c<o;c+=s)i.push(Lt(r,c,c+s>o?o:c+s));return n===1?(e=r[t-1],i.push(B[e>>2]+B[e<<4&63]+"==")):n===2&&(e=(r[t-2]<<8)+r[t-1],i.push(B[e>>10]+B[e>>4&63]+B[e<<2&63]+"=")),i.join("")}});var De=$(le=>{le.read=function(r,e,t,n,i){var s,c,o=i*8-n-1,a=(1<<o)-1,u=a>>1,d=-7,f=t?i-1:0,h=t?-1:1,p=r[e+f];for(f+=h,s=p&(1<<-d)-1,p>>=-d,d+=o;d>0;s=s*256+r[e+f],f+=h,d-=8);for(c=s&(1<<-d)-1,s>>=-d,d+=n;d>0;c=c*256+r[e+f],f+=h,d-=8);if(s===0)s=1-u;else{if(s===a)return c?NaN:(p?-1:1)*(1/0);c=c+Math.pow(2,n),s=s-u}return(p?-1:1)*c*Math.pow(2,s-n)};le.write=function(r,e,t,n,i,s){var c,o,a,u=s*8-i-1,d=(1<<u)-1,f=d>>1,h=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:s-1,g=n?1:-1,m=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(o=isNaN(e)?1:0,c=d):(c=Math.floor(Math.log(e)/Math.LN2),e*(a=Math.pow(2,-c))<1&&(c--,a*=2),c+f>=1?e+=h/a:e+=h*Math.pow(2,1-f),e*a>=2&&(c++,a/=2),c+f>=d?(o=0,c=d):c+f>=1?(o=(e*a-1)*Math.pow(2,i),c=c+f):(o=e*Math.pow(2,f-1)*Math.pow(2,i),c=0));i>=8;r[t+p]=o&255,p+=g,o/=256,i-=8);for(c=c<<i|o,u+=i;u>0;r[t+p]=c&255,p+=g,c/=256,u-=8);r[t+p-g]|=m*128}});var nt=$(j=>{"use strict";var fe=qe(),G=De(),Ge=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;j.Buffer=l;j.SlowBuffer=qt;j.INSPECT_MAX_BYTES=50;var Q=2147483647;j.kMaxLength=Q;l.TYPED_ARRAY_SUPPORT=Rt();!l.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Rt(){try{let r=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(r,e),r.foo()===42}catch{return!1}}Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}});Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}});function L(r){if(r>Q)throw new RangeError('The value "'+r+'" is invalid for option "size"');let e=new Uint8Array(r);return Object.setPrototypeOf(e,l.prototype),e}function l(r,e,t){if(typeof r=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return ge(r)}return We(r,e,t)}l.poolSize=8192;function We(r,e,t){if(typeof r=="string")return Ct(r,e);if(ArrayBuffer.isView(r))return kt(r);if(r==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r);if(M(r,ArrayBuffer)||r&&M(r.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(M(r,SharedArrayBuffer)||r&&M(r.buffer,SharedArrayBuffer)))return pe(r,e,t);if(typeof r=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=r.valueOf&&r.valueOf();if(n!=null&&n!==r)return l.from(n,e,t);let i=Ut(r);if(i)return i;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof r[Symbol.toPrimitive]=="function")return l.from(r[Symbol.toPrimitive]("string"),e,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r)}l.from=function(r,e,t){return We(r,e,t)};Object.setPrototypeOf(l.prototype,Uint8Array.prototype);Object.setPrototypeOf(l,Uint8Array);function Ve(r){if(typeof r!="number")throw new TypeError('"size" argument must be of type number');if(r<0)throw new RangeError('The value "'+r+'" is invalid for option "size"')}function Nt(r,e,t){return Ve(r),r<=0?L(r):e!==void 0?typeof t=="string"?L(r).fill(e,t):L(r).fill(e):L(r)}l.alloc=function(r,e,t){return Nt(r,e,t)};function ge(r){return Ve(r),L(r<0?0:me(r)|0)}l.allocUnsafe=function(r){return ge(r)};l.allocUnsafeSlow=function(r){return ge(r)};function Ct(r,e){if((typeof e!="string"||e==="")&&(e="utf8"),!l.isEncoding(e))throw new TypeError("Unknown encoding: "+e);let t=Ke(r,e)|0,n=L(t),i=n.write(r,e);return i!==t&&(n=n.slice(0,i)),n}function de(r){let e=r.length<0?0:me(r.length)|0,t=L(e);for(let n=0;n<e;n+=1)t[n]=r[n]&255;return t}function kt(r){if(M(r,Uint8Array)){let e=new Uint8Array(r);return pe(e.buffer,e.byteOffset,e.byteLength)}return de(r)}function pe(r,e,t){if(e<0||r.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(r.byteLength<e+(t||0))throw new RangeError('"length" is outside of buffer bounds');let n;return e===void 0&&t===void 0?n=new Uint8Array(r):t===void 0?n=new Uint8Array(r,e):n=new Uint8Array(r,e,t),Object.setPrototypeOf(n,l.prototype),n}function Ut(r){if(l.isBuffer(r)){let e=me(r.length)|0,t=L(e);return t.length===0||r.copy(t,0,0,e),t}if(r.length!==void 0)return typeof r.length!="number"||ye(r.length)?L(0):de(r);if(r.type==="Buffer"&&Array.isArray(r.data))return de(r.data)}function me(r){if(r>=Q)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Q.toString(16)+" bytes");return r|0}function qt(r){return+r!=r&&(r=0),l.alloc(+r)}l.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==l.prototype};l.compare=function(e,t){if(M(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),M(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,i=t.length;for(let s=0,c=Math.min(n,i);s<c;++s)if(e[s]!==t[s]){n=e[s],i=t[s];break}return n<i?-1:i<n?1:0};l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};l.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return l.alloc(0);let n;if(t===void 0)for(t=0,n=0;n<e.length;++n)t+=e[n].length;let i=l.allocUnsafe(t),s=0;for(n=0;n<e.length;++n){let c=e[n];if(M(c,Uint8Array))s+c.length>i.length?(l.isBuffer(c)||(c=l.from(c)),c.copy(i,s)):Uint8Array.prototype.set.call(i,c,s);else if(l.isBuffer(c))c.copy(i,s);else throw new TypeError('"list" argument must be an Array of Buffers');s+=c.length}return i};function Ke(r,e){if(l.isBuffer(r))return r.length;if(ArrayBuffer.isView(r)||M(r,ArrayBuffer))return r.byteLength;if(typeof r!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof r);let t=r.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&t===0)return 0;let i=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return he(r).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return rt(r).length;default:if(i)return n?-1:he(r).length;e=(""+e).toLowerCase(),i=!0}}l.byteLength=Ke;function Dt(r,e,t){let n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,e>>>=0,t<=e))return"";for(r||(r="utf8");;)switch(r){case"hex":return Jt(this,e,t);case"utf8":case"utf-8":return ze(this,e,t);case"ascii":return Yt(this,e,t);case"latin1":case"binary":return zt(this,e,t);case"base64":return Vt(this,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Xt(this,e,t);default:if(n)throw new TypeError("Unknown encoding: "+r);r=(r+"").toLowerCase(),n=!0}}l.prototype._isBuffer=!0;function k(r,e,t){let n=r[e];r[e]=r[t],r[t]=n}l.prototype.swap16=function(){let e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)k(this,t,t+1);return this};l.prototype.swap32=function(){let e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)k(this,t,t+3),k(this,t+1,t+2);return this};l.prototype.swap64=function(){let e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)k(this,t,t+7),k(this,t+1,t+6),k(this,t+2,t+5),k(this,t+3,t+4);return this};l.prototype.toString=function(){let e=this.length;return e===0?"":arguments.length===0?ze(this,0,e):Dt.apply(this,arguments)};l.prototype.toLocaleString=l.prototype.toString;l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:l.compare(this,e)===0};l.prototype.inspect=function(){let e="",t=j.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"};Ge&&(l.prototype[Ge]=l.prototype.inspect);l.prototype.compare=function(e,t,n,i,s){if(M(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),i===void 0&&(i=0),s===void 0&&(s=this.length),t<0||n>e.length||i<0||s>this.length)throw new RangeError("out of range index");if(i>=s&&t>=n)return 0;if(i>=s)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,s>>>=0,this===e)return 0;let c=s-i,o=n-t,a=Math.min(c,o),u=this.slice(i,s),d=e.slice(t,n);for(let f=0;f<a;++f)if(u[f]!==d[f]){c=u[f],o=d[f];break}return c<o?-1:o<c?1:0};function Ye(r,e,t,n,i){if(r.length===0)return-1;if(typeof t=="string"?(n=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,ye(t)&&(t=i?0:r.length-1),t<0&&(t=r.length+t),t>=r.length){if(i)return-1;t=r.length-1}else if(t<0)if(i)t=0;else return-1;if(typeof e=="string"&&(e=l.from(e,n)),l.isBuffer(e))return e.length===0?-1:He(r,e,t,n,i);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(r,e,t):Uint8Array.prototype.lastIndexOf.call(r,e,t):He(r,[e],t,n,i);throw new TypeError("val must be string, number or Buffer")}function He(r,e,t,n,i){let s=1,c=r.length,o=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(r.length<2||e.length<2)return-1;s=2,c/=2,o/=2,t/=2}function a(d,f){return s===1?d[f]:d.readUInt16BE(f*s)}let u;if(i){let d=-1;for(u=t;u<c;u++)if(a(r,u)===a(e,d===-1?0:u-d)){if(d===-1&&(d=u),u-d+1===o)return d*s}else d!==-1&&(u-=u-d),d=-1}else for(t+o>c&&(t=c-o),u=t;u>=0;u--){let d=!0;for(let f=0;f<o;f++)if(a(r,u+f)!==a(e,f)){d=!1;break}if(d)return u}return-1}l.prototype.includes=function(e,t,n){return this.indexOf(e,t,n)!==-1};l.prototype.indexOf=function(e,t,n){return Ye(this,e,t,n,!0)};l.prototype.lastIndexOf=function(e,t,n){return Ye(this,e,t,n,!1)};function Gt(r,e,t,n){t=Number(t)||0;let i=r.length-t;n?(n=Number(n),n>i&&(n=i)):n=i;let s=e.length;n>s/2&&(n=s/2);let c;for(c=0;c<n;++c){let o=parseInt(e.substr(c*2,2),16);if(ye(o))return c;r[t+c]=o}return c}function Ht(r,e,t,n){return Z(he(e,r.length-t),r,t,n)}function jt(r,e,t,n){return Z(tr(e),r,t,n)}function $t(r,e,t,n){return Z(rt(e),r,t,n)}function Wt(r,e,t,n){return Z(rr(e,r.length-t),r,t,n)}l.prototype.write=function(e,t,n,i){if(t===void 0)i="utf8",n=this.length,t=0;else if(n===void 0&&typeof t=="string")i=t,n=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let s=this.length-t;if((n===void 0||n>s)&&(n=s),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let c=!1;for(;;)switch(i){case"hex":return Gt(this,e,t,n);case"utf8":case"utf-8":return Ht(this,e,t,n);case"ascii":case"latin1":case"binary":return jt(this,e,t,n);case"base64":return $t(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Wt(this,e,t,n);default:if(c)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),c=!0}};l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Vt(r,e,t){return e===0&&t===r.length?fe.fromByteArray(r):fe.fromByteArray(r.slice(e,t))}function ze(r,e,t){t=Math.min(r.length,t);let n=[],i=e;for(;i<t;){let s=r[i],c=null,o=s>239?4:s>223?3:s>191?2:1;if(i+o<=t){let a,u,d,f;switch(o){case 1:s<128&&(c=s);break;case 2:a=r[i+1],(a&192)===128&&(f=(s&31)<<6|a&63,f>127&&(c=f));break;case 3:a=r[i+1],u=r[i+2],(a&192)===128&&(u&192)===128&&(f=(s&15)<<12|(a&63)<<6|u&63,f>2047&&(f<55296||f>57343)&&(c=f));break;case 4:a=r[i+1],u=r[i+2],d=r[i+3],(a&192)===128&&(u&192)===128&&(d&192)===128&&(f=(s&15)<<18|(a&63)<<12|(u&63)<<6|d&63,f>65535&&f<1114112&&(c=f))}}c===null?(c=65533,o=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|c&1023),n.push(c),i+=o}return Kt(n)}var je=4096;function Kt(r){let e=r.length;if(e<=je)return String.fromCharCode.apply(String,r);let t="",n=0;for(;n<e;)t+=String.fromCharCode.apply(String,r.slice(n,n+=je));return t}function Yt(r,e,t){let n="";t=Math.min(r.length,t);for(let i=e;i<t;++i)n+=String.fromCharCode(r[i]&127);return n}function zt(r,e,t){let n="";t=Math.min(r.length,t);for(let i=e;i<t;++i)n+=String.fromCharCode(r[i]);return n}function Jt(r,e,t){let n=r.length;(!e||e<0)&&(e=0),(!t||t<0||t>n)&&(t=n);let i="";for(let s=e;s<t;++s)i+=nr[r[s]];return i}function Xt(r,e,t){let n=r.slice(e,t),i="";for(let s=0;s<n.length-1;s+=2)i+=String.fromCharCode(n[s]+n[s+1]*256);return i}l.prototype.slice=function(e,t){let n=this.length;e=~~e,t=t===void 0?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<e&&(t=e);let i=this.subarray(e,t);return Object.setPrototypeOf(i,l.prototype),i};function E(r,e,t){if(r%1!==0||r<0)throw new RangeError("offset is not uint");if(r+e>t)throw new RangeError("Trying to access beyond buffer length")}l.prototype.readUintLE=l.prototype.readUIntLE=function(e,t,n){e=e>>>0,t=t>>>0,n||E(e,t,this.length);let i=this[e],s=1,c=0;for(;++c<t&&(s*=256);)i+=this[e+c]*s;return i};l.prototype.readUintBE=l.prototype.readUIntBE=function(e,t,n){e=e>>>0,t=t>>>0,n||E(e,t,this.length);let i=this[e+--t],s=1;for(;t>0&&(s*=256);)i+=this[e+--t]*s;return i};l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e=e>>>0,t||E(e,1,this.length),this[e]};l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e=e>>>0,t||E(e,2,this.length),this[e]|this[e+1]<<8};l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e=e>>>0,t||E(e,2,this.length),this[e]<<8|this[e+1]};l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e=e>>>0,t||E(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};l.prototype.readUint32BE=l.prototype.readUInt32BE=function(e,t){return e=e>>>0,t||E(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};l.prototype.readBigUInt64LE=N(function(e){e=e>>>0,H(e,"offset");let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&V(e,this.length-8);let i=t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,s=this[++e]+this[++e]*2**8+this[++e]*2**16+n*2**24;return BigInt(i)+(BigInt(s)<<BigInt(32))});l.prototype.readBigUInt64BE=N(function(e){e=e>>>0,H(e,"offset");let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&V(e,this.length-8);let i=t*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],s=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n;return(BigInt(i)<<BigInt(32))+BigInt(s)});l.prototype.readIntLE=function(e,t,n){e=e>>>0,t=t>>>0,n||E(e,t,this.length);let i=this[e],s=1,c=0;for(;++c<t&&(s*=256);)i+=this[e+c]*s;return s*=128,i>=s&&(i-=Math.pow(2,8*t)),i};l.prototype.readIntBE=function(e,t,n){e=e>>>0,t=t>>>0,n||E(e,t,this.length);let i=t,s=1,c=this[e+--i];for(;i>0&&(s*=256);)c+=this[e+--i]*s;return s*=128,c>=s&&(c-=Math.pow(2,8*t)),c};l.prototype.readInt8=function(e,t){return e=e>>>0,t||E(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};l.prototype.readInt16LE=function(e,t){e=e>>>0,t||E(e,2,this.length);let n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};l.prototype.readInt16BE=function(e,t){e=e>>>0,t||E(e,2,this.length);let n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};l.prototype.readInt32LE=function(e,t){return e=e>>>0,t||E(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};l.prototype.readInt32BE=function(e,t){return e=e>>>0,t||E(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};l.prototype.readBigInt64LE=N(function(e){e=e>>>0,H(e,"offset");let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&V(e,this.length-8);let i=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(n<<24);return(BigInt(i)<<BigInt(32))+BigInt(t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)});l.prototype.readBigInt64BE=N(function(e){e=e>>>0,H(e,"offset");let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&V(e,this.length-8);let i=(t<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(i)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n)});l.prototype.readFloatLE=function(e,t){return e=e>>>0,t||E(e,4,this.length),G.read(this,e,!0,23,4)};l.prototype.readFloatBE=function(e,t){return e=e>>>0,t||E(e,4,this.length),G.read(this,e,!1,23,4)};l.prototype.readDoubleLE=function(e,t){return e=e>>>0,t||E(e,8,this.length),G.read(this,e,!0,52,8)};l.prototype.readDoubleBE=function(e,t){return e=e>>>0,t||E(e,8,this.length),G.read(this,e,!1,52,8)};function A(r,e,t,n,i,s){if(!l.isBuffer(r))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<s)throw new RangeError('"value" argument is out of bounds');if(t+n>r.length)throw new RangeError("Index out of range")}l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,n,i){if(e=+e,t=t>>>0,n=n>>>0,!i){let o=Math.pow(2,8*n)-1;A(this,e,t,n,o,0)}let s=1,c=0;for(this[t]=e&255;++c<n&&(s*=256);)this[t+c]=e/s&255;return t+n};l.prototype.writeUintBE=l.prototype.writeUIntBE=function(e,t,n,i){if(e=+e,t=t>>>0,n=n>>>0,!i){let o=Math.pow(2,8*n)-1;A(this,e,t,n,o,0)}let s=n-1,c=1;for(this[t+s]=e&255;--s>=0&&(c*=256);)this[t+s]=e/c&255;return t+n};l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,n){return e=+e,t=t>>>0,n||A(this,e,t,1,255,0),this[t]=e&255,t+1};l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t=t>>>0,n||A(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2};l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t=t>>>0,n||A(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2};l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t=t>>>0,n||A(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4};l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t=t>>>0,n||A(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function Je(r,e,t,n,i){tt(e,n,i,r,t,7);let s=Number(e&BigInt(4294967295));r[t++]=s,s=s>>8,r[t++]=s,s=s>>8,r[t++]=s,s=s>>8,r[t++]=s;let c=Number(e>>BigInt(32)&BigInt(4294967295));return r[t++]=c,c=c>>8,r[t++]=c,c=c>>8,r[t++]=c,c=c>>8,r[t++]=c,t}function Xe(r,e,t,n,i){tt(e,n,i,r,t,7);let s=Number(e&BigInt(4294967295));r[t+7]=s,s=s>>8,r[t+6]=s,s=s>>8,r[t+5]=s,s=s>>8,r[t+4]=s;let c=Number(e>>BigInt(32)&BigInt(4294967295));return r[t+3]=c,c=c>>8,r[t+2]=c,c=c>>8,r[t+1]=c,c=c>>8,r[t]=c,t+8}l.prototype.writeBigUInt64LE=N(function(e,t=0){return Je(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))});l.prototype.writeBigUInt64BE=N(function(e,t=0){return Xe(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))});l.prototype.writeIntLE=function(e,t,n,i){if(e=+e,t=t>>>0,!i){let a=Math.pow(2,8*n-1);A(this,e,t,n,a-1,-a)}let s=0,c=1,o=0;for(this[t]=e&255;++s<n&&(c*=256);)e<0&&o===0&&this[t+s-1]!==0&&(o=1),this[t+s]=(e/c>>0)-o&255;return t+n};l.prototype.writeIntBE=function(e,t,n,i){if(e=+e,t=t>>>0,!i){let a=Math.pow(2,8*n-1);A(this,e,t,n,a-1,-a)}let s=n-1,c=1,o=0;for(this[t+s]=e&255;--s>=0&&(c*=256);)e<0&&o===0&&this[t+s+1]!==0&&(o=1),this[t+s]=(e/c>>0)-o&255;return t+n};l.prototype.writeInt8=function(e,t,n){return e=+e,t=t>>>0,n||A(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1};l.prototype.writeInt16LE=function(e,t,n){return e=+e,t=t>>>0,n||A(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2};l.prototype.writeInt16BE=function(e,t,n){return e=+e,t=t>>>0,n||A(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2};l.prototype.writeInt32LE=function(e,t,n){return e=+e,t=t>>>0,n||A(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4};l.prototype.writeInt32BE=function(e,t,n){return e=+e,t=t>>>0,n||A(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};l.prototype.writeBigInt64LE=N(function(e,t=0){return Je(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});l.prototype.writeBigInt64BE=N(function(e,t=0){return Xe(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Qe(r,e,t,n,i,s){if(t+n>r.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function Ze(r,e,t,n,i){return e=+e,t=t>>>0,i||Qe(r,e,t,4,34028234663852886e22,-34028234663852886e22),G.write(r,e,t,n,23,4),t+4}l.prototype.writeFloatLE=function(e,t,n){return Ze(this,e,t,!0,n)};l.prototype.writeFloatBE=function(e,t,n){return Ze(this,e,t,!1,n)};function et(r,e,t,n,i){return e=+e,t=t>>>0,i||Qe(r,e,t,8,17976931348623157e292,-17976931348623157e292),G.write(r,e,t,n,52,8),t+8}l.prototype.writeDoubleLE=function(e,t,n){return et(this,e,t,!0,n)};l.prototype.writeDoubleBE=function(e,t,n){return et(this,e,t,!1,n)};l.prototype.copy=function(e,t,n,i){if(!l.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<n&&(i=n),i===n||e.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-n&&(i=e.length-t+n);let s=i-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,n,i):Uint8Array.prototype.set.call(e,this.subarray(n,i),t),s};l.prototype.fill=function(e,t,n,i){if(typeof e=="string"){if(typeof t=="string"?(i=t,t=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!l.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(e.length===1){let c=e.charCodeAt(0);(i==="utf8"&&c<128||i==="latin1")&&(e=c)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;t=t>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);let s;if(typeof e=="number")for(s=t;s<n;++s)this[s]=e;else{let c=l.isBuffer(e)?e:l.from(e,i),o=c.length;if(o===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(s=0;s<n-t;++s)this[s+t]=c[s%o]}return this};var D={};function we(r,e,t){D[r]=class extends t{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${r}]`,this.stack,delete this.name}get code(){return r}set code(i){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:i,writable:!0})}toString(){return`${this.name} [${r}]: ${this.message}`}}}we("ERR_BUFFER_OUT_OF_BOUNDS",function(r){return r?`${r} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError);we("ERR_INVALID_ARG_TYPE",function(r,e){return`The "${r}" argument must be of type number. Received type ${typeof e}`},TypeError);we("ERR_OUT_OF_RANGE",function(r,e,t){let n=`The value of "${r}" is out of range.`,i=t;return Number.isInteger(t)&&Math.abs(t)>2**32?i=$e(String(t)):typeof t=="bigint"&&(i=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(i=$e(i)),i+="n"),n+=` It must be ${e}. Received ${i}`,n},RangeError);function $e(r){let e="",t=r.length,n=r[0]==="-"?1:0;for(;t>=n+4;t-=3)e=`_${r.slice(t-3,t)}${e}`;return`${r.slice(0,t)}${e}`}function Qt(r,e,t){H(e,"offset"),(r[e]===void 0||r[e+t]===void 0)&&V(e,r.length-(t+1))}function tt(r,e,t,n,i,s){if(r>t||r<e){let c=typeof e=="bigint"?"n":"",o;throw s>3?e===0||e===BigInt(0)?o=`>= 0${c} and < 2${c} ** ${(s+1)*8}${c}`:o=`>= -(2${c} ** ${(s+1)*8-1}${c}) and < 2 ** ${(s+1)*8-1}${c}`:o=`>= ${e}${c} and <= ${t}${c}`,new D.ERR_OUT_OF_RANGE("value",o,r)}Qt(n,i,s)}function H(r,e){if(typeof r!="number")throw new D.ERR_INVALID_ARG_TYPE(e,"number",r)}function V(r,e,t){throw Math.floor(r)!==r?(H(r,t),new D.ERR_OUT_OF_RANGE(t||"offset","an integer",r)):e<0?new D.ERR_BUFFER_OUT_OF_BOUNDS:new D.ERR_OUT_OF_RANGE(t||"offset",`>= ${t?1:0} and <= ${e}`,r)}var Zt=/[^+/0-9A-Za-z-_]/g;function er(r){if(r=r.split("=")[0],r=r.trim().replace(Zt,""),r.length<2)return"";for(;r.length%4!==0;)r=r+"=";return r}function he(r,e){e=e||1/0;let t,n=r.length,i=null,s=[];for(let c=0;c<n;++c){if(t=r.charCodeAt(c),t>55295&&t<57344){if(!i){if(t>56319){(e-=3)>-1&&s.push(239,191,189);continue}else if(c+1===n){(e-=3)>-1&&s.push(239,191,189);continue}i=t;continue}if(t<56320){(e-=3)>-1&&s.push(239,191,189),i=t;continue}t=(i-55296<<10|t-56320)+65536}else i&&(e-=3)>-1&&s.push(239,191,189);if(i=null,t<128){if((e-=1)<0)break;s.push(t)}else if(t<2048){if((e-=2)<0)break;s.push(t>>6|192,t&63|128)}else if(t<65536){if((e-=3)<0)break;s.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((e-=4)<0)break;s.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return s}function tr(r){let e=[];for(let t=0;t<r.length;++t)e.push(r.charCodeAt(t)&255);return e}function rr(r,e){let t,n,i,s=[];for(let c=0;c<r.length&&!((e-=2)<0);++c)t=r.charCodeAt(c),n=t>>8,i=t%256,s.push(i),s.push(n);return s}function rt(r){return fe.toByteArray(er(r))}function Z(r,e,t,n){let i;for(i=0;i<n&&!(i+t>=e.length||i>=r.length);++i)e[i+t]=r[i];return i}function M(r,e){return r instanceof e||r!=null&&r.constructor!=null&&r.constructor.name!=null&&r.constructor.name===e.name}function ye(r){return r!==r}var nr=function(){let r="0123456789abcdef",e=new Array(256);for(let t=0;t<16;++t){let n=t*16;for(let i=0;i<16;++i)e[n+i]=r[t]+r[i]}return e}();function N(r){return typeof BigInt>"u"?ir:r}function ir(){throw new Error("BigInt not supported")}});var ht,gt=(r,e)=>(Object.keys(e).forEach(t=>{e[t]!==void 0&&(r[t]=e[t])}),r),ne=async(r,e)=>{let n=await(await fetch(r,{method:"POST",body:JSON.stringify(e),headers:gt({"Content-Type":"application/json"},{"x-tracker-cache":ht})})).json();if(n.error)throw n.error;return n};var ae=re(xe(),1);var mt=()=>{let r=null;try{typeof process.env<"u"?r=process.env.SECURE_LOCAL_STORAGE_HASH_KEY||process.env.REACT_APP_SECURE_LOCAL_STORAGE_HASH_KEY||process.env.NEXT_PUBLIC_SECURE_LOCAL_STORAGE_HASH_KEY||process.env.VITE_SECURE_LOCAL_STORAGE_HASH_KEY:console.warn("react-secure-storage : process is not defined! Just a warning!")}catch{return null}return r},wt=()=>{let r=null;try{typeof process.env<"u"?r=process.env.SECURE_LOCAL_STORAGE_PREFIX||process.env.REACT_APP_SECURE_LOCAL_STORAGE_PREFIX||process.env.NEXT_PUBLIC_SECURE_LOCAL_STORAGE_PREFIX||process.env.VITE_SECURE_LOCAL_STORAGE_PREFIX:console.warn("react-secure-storage : process is not defined! Just a warning!")}catch{return null}return r},yt=()=>{let r=null;try{typeof process.env<"u"?r=process.env.SECURE_LOCAL_STORAGE_DISABLED_KEYS||process.env.REACT_APP_SECURE_LOCAL_STORAGE_DISABLED_KEYS||process.env.NEXT_PUBLIC_SECURE_LOCAL_STORAGE_DISABLED_KEYS||process.env.VITE_SECURE_LOCAL_STORAGE_DISABLED_KEYS:console.warn("react-secure-storage : process is not defined! Just a warning!")}catch{return null}return r},_t={getHashKey:mt,getStoragePrefix:wt,getDisabledKeys:yt},Y=_t;var Me=re(ve(),1);var w={USERAGENT:"UserAgent",SCREEN_PRINT:"ScreenPrint",PLUGINS:"Plugins",FONTS:"Fonts",LOCAL_STORAGE:"LocalStorage",SESSION_STORAGE:"SessionStorage",TIMEZONE:"TimeZone",LANGUAGE:"Language",SYSTEM_LANGUAGE:"SystemLanguage",COOKIE:"Cookie",CANVAS:"Canvas",HOSTNAME:"Hostname"},Be=()=>{let r=Y.getDisabledKeys()||"";if(r==="")return[];let e=[w.USERAGENT,w.SCREEN_PRINT,w.PLUGINS,w.FONTS,w.LOCAL_STORAGE,w.SESSION_STORAGE,w.TIMEZONE,w.LANGUAGE,w.SYSTEM_LANGUAGE,w.COOKIE,w.CANVAS,w.HOSTNAME],t=[];return r.split("|").forEach(n=>{n===""?console.log("test"):e.includes(n)?t.push(n):console.warn(`react-secure-storage : ${n} is not present in the available disabled keys options! Please go through the documentation`)}),t};var St=class{getFingerprint(){let r="|",e=Be(),t="";return e.includes(w.USERAGENT)||(t+=navigator.userAgent+r),e.includes(w.HOSTNAME)||(t+=window.location.hostname+r),e.includes(w.SCREEN_PRINT)||(t+=this.getScreenPrint()+r),e.includes(w.PLUGINS)||(t+=this.getPlugins()+r),e.includes(w.FONTS)||(t+=this.getFonts()+r),e.includes(w.LOCAL_STORAGE)||(t+=this.isLocalStorage()+r),e.includes(w.SESSION_STORAGE)||(t+=this.isSessionStorage()+r),e.includes(w.TIMEZONE)||(t+=this.getTimeZone()+r),e.includes(w.LANGUAGE)||(t+=this.getLanguage()+r),e.includes(w.SYSTEM_LANGUAGE)||(t+=this.getSystemLanguage()+r),e.includes(w.COOKIE)||(t+=this.isCookie()+r),e.includes(w.CANVAS)||(t+=this.getCanvasPrint()),t.endsWith(r)&&(t=t.substring(0,t.length-1)),(0,Me.default)(t,256)}getScreenPrint(){return"Color Depth: "+this.getColorDepth()+", Device XDPI: "+this.getDeviceXDPI()+", Device YDPI: "+this.getDeviceYDPI()}getColorDepth(){return window.screen.colorDepth}getCurrentResolution(){return window.screen.width+"x"+window.screen.height}getAvailableResolution(){return window.screen.availWidth+"x"+window.screen.availHeight}getDeviceXDPI(){return""}getDeviceYDPI(){return""}getPlugins(){let r="";for(let e=0;e<navigator.plugins.length;e++)e===navigator.plugins.length-1?r+=navigator.plugins[e].name:r+=navigator.plugins[e].name+", ";return r}getFonts(){return""}isLocalStorage(){try{return!!localStorage}catch{return!0}}isSessionStorage(){try{return!!sessionStorage}catch{return!0}}isCookie(){return navigator.cookieEnabled}getTimeZone(){let r=new Date,e,t,n;return e=String(-(r.getTimezoneOffset()/60)),e<0?(e=e*-1,t=("0"+e).slice(-2),n="-"+t):(t=("0"+e).slice(-2),n="+"+t),n}getLanguage(){return navigator.language}getSystemLanguage(){return navigator.language||window.navigator.language}getCanvasPrint(){let r=document.createElement("canvas"),e;try{e=r.getContext("2d")}catch{return""}let t="ClientJS,org <canvas> 1.0";return e.textBaseline="top",e.font="14px 'Arial'",e.textBaseline="alphabetic",e.fillStyle="#f60",e.fillRect(125,1,62,20),e.fillStyle="#069",e.fillText(t,2,15),e.fillStyle="rgba(102, 204, 0, 0.7)",e.fillText(t,4,17),r.toDataURL()}},bt=new St,Fe=bt;var At="E86E2612010258B35137",xt=()=>{let r=Y.getHashKey()||At;return typeof window>"u"?r:Fe.getFingerprint()+r},se=xt;var vt=(r,e)=>`${r}/visitor/v1/${e}`,Te=(r,e)=>`${r}/visitor/v2/${e}`,Bt=(r,e)=>`${r}/remember_flow/${e}`,z=async(r,e,t,n,i)=>{let s=sessionStorage.getItem("aesirx-analytics-allow"),c=sessionStorage.getItem("aesirx-analytics-rejected");if(s==="0"||c==="true")return null;let{location:o,document:a}=window,{pathname:u,search:d,origin:f}=o;e=`${f}${u}${d}`,t=t?o.protocol+"//"+o.host+t:a.referrer?a.referrer:window.referer?window.referer==="/"?o.protocol+"//"+o.host:o.protocol+"//"+o.host+window.referer:"",n=window.navigator.userAgent;let h=ae.default.parse(window.navigator.userAgent),p=h?.browser?.name,g=h?.browser?.version??"0",m=window.navigator.userLanguage||window.navigator.language,y=h?.platform?.model??h?.platform?.type,_=window.location.search,F=new URLSearchParams(_),U="";try{let O=se(),I=[];for(let b of F.keys())b.startsWith("utm_")&&F.get(b)&&I.push({name:b,value:F.get(b)});i?.length&&i?.forEach(b=>{b?.name&&I.push({name:b?.name,value:b?.value})});let T=await ne(Te(r,"start"),{fingerprint:O,url:e?.replace(/^(https?:\/\/)?(www\.)?/,"$1"),...t&&(t!==e||a.referrer)&&{referer:t!==e?t?.replace(/^(https?:\/\/)?(www\.)?/,"$1"):a.referrer?.replace(/^(https?:\/\/)?(www\.)?/,"$1")},user_agent:n,ip:U,browser_name:p,browser_version:g,lang:m,device:y?.includes("iPhone")?"mobile":y?.includes("iPad")?"tablet":y,...I?.length&&{event_name:"visit",event_type:"action",attributes:I}});if(window.aesirxTrackEcommerce==="true"&&sessionStorage.getItem("aesirx-analytics-flow")!==(await T)?.flow_uuid){sessionStorage.setItem("aesirx-analytics-flow",(await T)?.flow_uuid);try{await ne(Bt(window.location.origin,(await T)?.flow_uuid),{})}catch(b){console.log("Remember Flow Error",b)}}return T}catch(O){console.error("Analytics Error: ",O)}},R=async(r,e,t)=>{let n=sessionStorage.getItem("aesirx-analytics-allow"),i=sessionStorage.getItem("aesirx-analytics-rejected");if(n==="0"||i==="true")return null;let{location:s,document:c}=window;e=e?s.protocol+"//"+s.host+e:c.referrer?c.referrer:window.referer?window.referer==="/"?s.protocol+"//"+s.host:s.protocol+"//"+s.host+window.referer:"";let o=s.protocol+"//"+s.host+s.pathname,a=window.navigator.userAgent,u=ae.default.parse(window.navigator.userAgent),d=u?.browser?.name,f=u?.browser?.version??"0",h=window.navigator.userLanguage||window.navigator.language,p=u?.platform?.model??u?.platform?.type,g="",m=se(),y={type:"application/json"},_=new Blob([JSON.stringify({fingerprint:m,url:o?.replace(/^(https?:\/\/)?(www\.)?/,"$1"),...e!=="/"&&e&&{referer:e?.replace(/^(https?:\/\/)?(www\.)?/,"$1")},user_agent:a,ip:g,browser_name:d,browser_version:f,lang:h,device:p?.includes("iPhone")?"mobile":p?.includes("iPad")?"tablet":p,...t})],y);return navigator.sendBeacon(Te(r,"start"),_)},Ie=(r,e,t)=>{if(e&&t){let n={event_uuid:e,visitor_uuid:t},i={type:"application/json"},s=new Blob([JSON.stringify(n)],i);navigator.sendBeacon(vt(r,"end"),s)}},Pe=r=>{document.addEventListener("visibilitychange",async()=>{if(document.visibilityState==="hidden"&&Ie(r,window.event_uuid,window.visitor_uuid),document.visibilityState==="visible"){let e=await z(r,"","","",window.attributes);window.event_uuid=e?.event_uuid}}),window.addEventListener("pagehide",e=>{e.persisted&&Ie(r,window.event_uuid,window.visitor_uuid)},!1)};var Le=window.aesirx1stparty?window.aesirx1stparty:"",J=Le?Le.replace(/\/$/,""):"",Oe=()=>{Array.from(document.querySelectorAll(".cart:not(.variations_form) .single_add_to_cart_button")).forEach(i=>{i.addEventListener("click",()=>{let s=i.closest(".product").querySelector(".product_title")?.innerText,c=i.closest(".product").querySelector('input[name="quantity"]').value;i.classList.contains("disabled")||n(s,i.value,c)})}),Array.from(document.querySelectorAll(".add_to_cart_button.product_type_simple")).forEach(i=>{i.addEventListener("click",()=>{let s=i.closest(".product").querySelector(".woocommerce-loop-product__title")?.innerText;i.classList.contains("disabled")||n(s,i.dataset.product_id,"1")})}),Array.from(document.querySelectorAll(".cart.variations_form .single_add_to_cart_button")).forEach(i=>{i.addEventListener("click",()=>{let s=i.closest(".product").querySelector(".product_title")?.innerText,c=i.closest(".product").querySelector('input[name="quantity"]').value,o=i.closest(".product").querySelector('input[name="product_id"]').value,a=i.closest(".product").querySelector('input[name="variation_id"]').value;i.classList.contains("disabled")||n(s,o,c,a)})});let n=(i,s,c=null,o=null)=>{let a={};a.product_name=i,a.product_id=s,o&&(a.variant_id=o),a.quantity=c,R(J,"",{event_name:"Add to cart",event_type:"submit",attributes:[{name:"woo.addtocart",value:JSON.stringify(a)}]})}},Re=()=>{Array.from(document.querySelectorAll('form[role="search"] button[type="submit"]')).forEach(t=>{t.addEventListener("click",()=>{let n=t.closest("form").querySelector('input[type="search"]')?.value;!t.classList.contains("disabled")&&t.closest("form").querySelector('input[name="post_type"]')?.value==="product"&&e(n)})});let e=t=>{let n=Array();ue(n,"1","analytics_woocommerce"),ue(n,t,"wooocommerce_search"),R(J,"",{event_name:"Search product",event_type:"submit",attributes:n})}},Ne=()=>{document.querySelector("form.woocommerce-checkout")?.addEventListener("submit",function(r){jQuery("form.woocommerce-checkout").on("checkout_place_order",function(){let e=r.target,t={},n=[];e.querySelectorAll(".cart_item").forEach(S=>{let ee=S.querySelector(".product-name"),Se="";for(let P=0;P<ee.childNodes.length;++P)ee.childNodes[P].nodeType===Node.TEXT_NODE&&(Se+=ee.childNodes[P]?.textContent);let st=S.querySelector(".product-quantity").innerText?.replace("\xD7",""),te=S.querySelector(".woocommerce-Price-amount bdi"),be="";for(let P=0;P<te.childNodes.length;++P)te.childNodes[P].nodeType===Node.TEXT_NODE&&(be+=te.childNodes[P]?.textContent);let at=S.querySelector(".woocommerce-Price-amount .woocommerce-Price-currencySymbol");n.push({name:Se?.trim(),quantity:st?.trim(),price:be?.trim(),symbol:at?.innerText})}),t.products=n;let s=e.querySelector(".order-total .woocommerce-Price-amount bdi"),c="";for(let S=0;S<s.childNodes.length;++S)s.childNodes[S].nodeType===Node.TEXT_NODE&&(c+=s.childNodes[S]?.textContent);t["order-total"]=c?.trim();let o=e.querySelector('input[name="billing_first_name"]'),a=e.querySelector('input[name="billing_last_name"]'),u=e.querySelector('input[name="billing_company"]'),d=e.querySelector('input[name="billing_address_1"]'),f=e.querySelector('input[name="billing_address_2"]'),h=e.querySelector('input[name="billing_postcode"]'),p=e.querySelector('input[name="billing_city"]'),g=e.querySelector('input[name="billing_state"]'),m=e.querySelector('input[name="billing_phone"]'),y=e.querySelector('input[name="billing_email"]'),_=e.querySelector('input[name="shipping_first_name"]'),F=e.querySelector('input[name="shipping_last_name"]'),U=e.querySelector('input[name="shipping_company"]'),O=e.querySelector('input[name="shipping_address_1"]'),I=e.querySelector('input[name="shipping_address_2"]'),T=e.querySelector('input[name="shipping_postcode"]'),b=e.querySelector('input[name="shipping_city"]'),K=e.querySelector('input[name="shipping_state"]'),v=e.querySelectorAll('input[name="shipping_method[0]"]'),q=e.querySelectorAll('input[name="payment_method"]'),ot=e.querySelector('input[name="mailpoet_woocommerce_checkout_optin"]'),_e="";q?.forEach(S=>{S.checked&&(_e=S?.value)});let Ee="";v?.forEach(S=>{S.checked&&(Ee=S?.value)}),t.billing_first_name=o?.value,t.billing_last_name=a?.value,t.billing_company=u?.value,t.billing_address_1=d?.value,t.billing_address_2=f?.value,t.billing_postcode=h?.value,t.billing_city=p?.value,t.billing_state=g?.value,t.billing_phone=m?.value,t.billing_email=y?.value,t.shipping_first_name=_.value,t.shipping_last_name=F.value,t.shipping_company=U?.value,t.shipping_address_1=O?.value,t.shipping_address_2=I?.value,t.shipping_postcode=T?.value,t.shipping_city=b?.value,t.shipping_state=K?.value,t.shipping_method=Ee,t.payment_method=_e,t.mailpoet_woocommerce_checkout_optin=ot?.value,R(J,"",{event_name:"Checkout",event_type:"submit",attributes:[{name:"woo.checkout",value:JSON.stringify(t)}]})})})},Ce=()=>{if(document.body.classList.contains("woocommerce")&&document.body.classList.contains("single-product")){let r=document.querySelector(".wp-block-post-title")?.innerText;if(r){let e=Array();ue(e,r,"woo.view_product"),R(J,"",{event_name:"View product",event_type:"view",attributes:e})}}},ue=(r,e,t)=>{e&&r.push({name:t,value:e??""})};var it=re(nt(),1);window.Buffer=it.Buffer;var or=()=>{window["aesirx-analytics-enable"]="true";let r=(p,g,m)=>{let y=p[g];return(..._)=>(m.apply(null,_),y.apply(p,_))},e=async p=>{if(!p)return;let{pathname:g,search:m,origin:y}=location;p=`${y}${g}${m}`;let _=p.toString();_.substring(0,4)==="http"?p="/"+_.split("/").splice(3).join("/"):p=_};if(!window.tracker){let p=g=>g;p.startTracker=z,window.tracker=p}history.pushState=r(history,"pushState",e),history.replaceState=r(history,"replaceState",e);let t=window.aesirx1stparty?window.aesirx1stparty:"",n=t?t.replace(/\/$/,""):"",{currentScript:i}=document;if(!i)return;let a=i.getAttribute.bind(i)("data-"+"aesirx-event-name")!=="false",u="[data-aesirx-event-name]",d=async()=>{if(document.readyState==="complete"){if(window["aesirx-consent-enable"]!=="true"){let p=await z(n);p&&(window.event_uuid=p.event_uuid,window.visitor_uuid=p.visitor_uuid)}a&&f(document)}};document.addEventListener("readystatechange",d,!0),Pe(n);let f=p=>{let g=p.querySelectorAll(u);Array.prototype.forEach.call(g,h)},h=p=>{p.addEventListener("click",()=>{let g=[];Object.keys(p.dataset).forEach(m=>{m.startsWith("aesirxEventAttribute")&&g.push({name:m.replace("aesirxEventAttribute","").toLowerCase(),value:p.dataset[m]})}),R(n,"",{event_name:p.dataset.aesirxEventName,event_type:p.dataset.aesirxEventType,attributes:g})},!0)};d()},sr=()=>{Oe(),Re(),Ne(),Ce()};or();document.addEventListener("DOMContentLoaded",()=>{(document.body.classList.contains("woocommerce-js")||document.body.classList.contains("woocommerce-no-js"))&&sr()});window.trackEventAnalytics=R;})();
|
1
|
+
(()=>{var ut=Object.create;var Ae=Object.defineProperty;var ct=Object.getOwnPropertyDescriptor;var lt=Object.getOwnPropertyNames;var ft=Object.getPrototypeOf,dt=Object.prototype.hasOwnProperty;var $=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var pt=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of lt(e))!dt.call(r,i)&&i!==t&&Ae(r,i,{get:()=>e[i],enumerable:!(n=ct(e,i))||n.enumerable});return r};var re=(r,e,t)=>(t=r!=null?ut(ft(r)):{},pt(e||!r||!r.__esModule?Ae(t,"default",{value:r,enumerable:!0}):t,r));var xe=$((W,ie)=>{(function(r,e){typeof W=="object"&&typeof ie=="object"?ie.exports=e():typeof define=="function"&&define.amd?define([],e):typeof W=="object"?W.bowser=e():r.bowser=e()})(W,function(){return function(r){var e={};function t(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return r[n].call(i.exports,i,i.exports,t),i.l=!0,i.exports}return t.m=r,t.c=e,t.d=function(n,i,s){t.o(n,i)||Object.defineProperty(n,i,{enumerable:!0,get:s})},t.r=function(n){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.t=function(n,i){if(1&i&&(n=t(n)),8&i||4&i&&typeof n=="object"&&n&&n.__esModule)return n;var s=Object.create(null);if(t.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:n}),2&i&&typeof n!="string")for(var u in n)t.d(s,u,function(o){return n[o]}.bind(null,u));return s},t.n=function(n){var i=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(i,"a",i),i},t.o=function(n,i){return Object.prototype.hasOwnProperty.call(n,i)},t.p="",t(t.s=90)}({17:function(r,e,t){"use strict";e.__esModule=!0,e.default=void 0;var n=t(18),i=function(){function s(){}return s.getFirstMatch=function(u,o){var a=o.match(u);return a&&a.length>0&&a[1]||""},s.getSecondMatch=function(u,o){var a=o.match(u);return a&&a.length>1&&a[2]||""},s.matchAndReturnConst=function(u,o,a){if(u.test(o))return a},s.getWindowsVersionName=function(u){switch(u){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},s.getMacOSVersionName=function(u){var o=u.split(".").splice(0,2).map(function(a){return parseInt(a,10)||0});if(o.push(0),o[0]===10)switch(o[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},s.getAndroidVersionName=function(u){var o=u.split(".").splice(0,2).map(function(a){return parseInt(a,10)||0});if(o.push(0),!(o[0]===1&&o[1]<5))return o[0]===1&&o[1]<6?"Cupcake":o[0]===1&&o[1]>=6?"Donut":o[0]===2&&o[1]<2?"Eclair":o[0]===2&&o[1]===2?"Froyo":o[0]===2&&o[1]>2?"Gingerbread":o[0]===3?"Honeycomb":o[0]===4&&o[1]<1?"Ice Cream Sandwich":o[0]===4&&o[1]<4?"Jelly Bean":o[0]===4&&o[1]>=4?"KitKat":o[0]===5?"Lollipop":o[0]===6?"Marshmallow":o[0]===7?"Nougat":o[0]===8?"Oreo":o[0]===9?"Pie":void 0},s.getVersionPrecision=function(u){return u.split(".").length},s.compareVersions=function(u,o,a){a===void 0&&(a=!1);var c=s.getVersionPrecision(u),d=s.getVersionPrecision(o),f=Math.max(c,d),h=0,p=s.map([u,o],function(g){var m=f-s.getVersionPrecision(g),y=g+new Array(m+1).join(".0");return s.map(y.split("."),function(_){return new Array(20-_.length).join("0")+_}).reverse()});for(a&&(h=f-Math.min(c,d)),f-=1;f>=h;){if(p[0][f]>p[1][f])return 1;if(p[0][f]===p[1][f]){if(f===h)return 0;f-=1}else if(p[0][f]<p[1][f])return-1}},s.map=function(u,o){var a,c=[];if(Array.prototype.map)return Array.prototype.map.call(u,o);for(a=0;a<u.length;a+=1)c.push(o(u[a]));return c},s.find=function(u,o){var a,c;if(Array.prototype.find)return Array.prototype.find.call(u,o);for(a=0,c=u.length;a<c;a+=1){var d=u[a];if(o(d,a))return d}},s.assign=function(u){for(var o,a,c=u,d=arguments.length,f=new Array(d>1?d-1:0),h=1;h<d;h++)f[h-1]=arguments[h];if(Object.assign)return Object.assign.apply(Object,[u].concat(f));var p=function(){var g=f[o];typeof g=="object"&&g!==null&&Object.keys(g).forEach(function(m){c[m]=g[m]})};for(o=0,a=f.length;o<a;o+=1)p();return u},s.getBrowserAlias=function(u){return n.BROWSER_ALIASES_MAP[u]},s.getBrowserTypeByAlias=function(u){return n.BROWSER_MAP[u]||""},s}();e.default=i,r.exports=e.default},18:function(r,e,t){"use strict";e.__esModule=!0,e.ENGINE_MAP=e.OS_MAP=e.PLATFORMS_MAP=e.BROWSER_MAP=e.BROWSER_ALIASES_MAP=void 0,e.BROWSER_ALIASES_MAP={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},e.BROWSER_MAP={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},e.PLATFORMS_MAP={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},e.OS_MAP={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},e.ENGINE_MAP={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"}},90:function(r,e,t){"use strict";e.__esModule=!0,e.default=void 0;var n,i=(n=t(91))&&n.__esModule?n:{default:n},s=t(18);function u(a,c){for(var d=0;d<c.length;d++){var f=c[d];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(a,f.key,f)}}var o=function(){function a(){}var c,d,f;return a.getParser=function(h,p){if(p===void 0&&(p=!1),typeof h!="string")throw new Error("UserAgent should be a string");return new i.default(h,p)},a.parse=function(h){return new i.default(h).getResult()},c=a,f=[{key:"BROWSER_MAP",get:function(){return s.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return s.ENGINE_MAP}},{key:"OS_MAP",get:function(){return s.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return s.PLATFORMS_MAP}}],(d=null)&&u(c.prototype,d),f&&u(c,f),a}();e.default=o,r.exports=e.default},91:function(r,e,t){"use strict";e.__esModule=!0,e.default=void 0;var n=a(t(92)),i=a(t(93)),s=a(t(94)),u=a(t(95)),o=a(t(17));function a(d){return d&&d.__esModule?d:{default:d}}var c=function(){function d(h,p){if(p===void 0&&(p=!1),h==null||h==="")throw new Error("UserAgent parameter can't be empty");this._ua=h,this.parsedResult={},p!==!0&&this.parse()}var f=d.prototype;return f.getUA=function(){return this._ua},f.test=function(h){return h.test(this._ua)},f.parseBrowser=function(){var h=this;this.parsedResult.browser={};var p=o.default.find(n.default,function(g){if(typeof g.test=="function")return g.test(h);if(g.test instanceof Array)return g.test.some(function(m){return h.test(m)});throw new Error("Browser's test function is not valid")});return p&&(this.parsedResult.browser=p.describe(this.getUA())),this.parsedResult.browser},f.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},f.getBrowserName=function(h){return h?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},f.getBrowserVersion=function(){return this.getBrowser().version},f.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},f.parseOS=function(){var h=this;this.parsedResult.os={};var p=o.default.find(i.default,function(g){if(typeof g.test=="function")return g.test(h);if(g.test instanceof Array)return g.test.some(function(m){return h.test(m)});throw new Error("Browser's test function is not valid")});return p&&(this.parsedResult.os=p.describe(this.getUA())),this.parsedResult.os},f.getOSName=function(h){var p=this.getOS().name;return h?String(p).toLowerCase()||"":p||""},f.getOSVersion=function(){return this.getOS().version},f.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},f.getPlatformType=function(h){h===void 0&&(h=!1);var p=this.getPlatform().type;return h?String(p).toLowerCase()||"":p||""},f.parsePlatform=function(){var h=this;this.parsedResult.platform={};var p=o.default.find(s.default,function(g){if(typeof g.test=="function")return g.test(h);if(g.test instanceof Array)return g.test.some(function(m){return h.test(m)});throw new Error("Browser's test function is not valid")});return p&&(this.parsedResult.platform=p.describe(this.getUA())),this.parsedResult.platform},f.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},f.getEngineName=function(h){return h?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},f.parseEngine=function(){var h=this;this.parsedResult.engine={};var p=o.default.find(u.default,function(g){if(typeof g.test=="function")return g.test(h);if(g.test instanceof Array)return g.test.some(function(m){return h.test(m)});throw new Error("Browser's test function is not valid")});return p&&(this.parsedResult.engine=p.describe(this.getUA())),this.parsedResult.engine},f.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},f.getResult=function(){return o.default.assign({},this.parsedResult)},f.satisfies=function(h){var p=this,g={},m=0,y={},_=0;if(Object.keys(h).forEach(function(v){var q=h[v];typeof q=="string"?(y[v]=q,_+=1):typeof q=="object"&&(g[v]=q,m+=1)}),m>0){var B=Object.keys(g),C=o.default.find(B,function(v){return p.isOS(v)});if(C){var O=this.satisfies(g[C]);if(O!==void 0)return O}var I=o.default.find(B,function(v){return p.isPlatform(v)});if(I){var T=this.satisfies(g[I]);if(T!==void 0)return T}}if(_>0){var S=Object.keys(y),K=o.default.find(S,function(v){return p.isBrowser(v,!0)});if(K!==void 0)return this.compareVersion(y[K])}},f.isBrowser=function(h,p){p===void 0&&(p=!1);var g=this.getBrowserName().toLowerCase(),m=h.toLowerCase(),y=o.default.getBrowserTypeByAlias(m);return p&&y&&(m=y.toLowerCase()),m===g},f.compareVersion=function(h){var p=[0],g=h,m=!1,y=this.getBrowserVersion();if(typeof y=="string")return h[0]===">"||h[0]==="<"?(g=h.substr(1),h[1]==="="?(m=!0,g=h.substr(2)):p=[],h[0]===">"?p.push(1):p.push(-1)):h[0]==="="?g=h.substr(1):h[0]==="~"&&(m=!0,g=h.substr(1)),p.indexOf(o.default.compareVersions(y,g,m))>-1},f.isOS=function(h){return this.getOSName(!0)===String(h).toLowerCase()},f.isPlatform=function(h){return this.getPlatformType(!0)===String(h).toLowerCase()},f.isEngine=function(h){return this.getEngineName(!0)===String(h).toLowerCase()},f.is=function(h,p){return p===void 0&&(p=!1),this.isBrowser(h,p)||this.isOS(h)||this.isPlatform(h)},f.some=function(h){var p=this;return h===void 0&&(h=[]),h.some(function(g){return p.is(g)})},d}();e.default=c,r.exports=e.default},92:function(r,e,t){"use strict";e.__esModule=!0,e.default=void 0;var n,i=(n=t(17))&&n.__esModule?n:{default:n},s=/version\/(\d+(\.?_?\d+)+)/i,u=[{test:[/googlebot/i],describe:function(o){var a={name:"Googlebot"},c=i.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,o)||i.default.getFirstMatch(s,o);return c&&(a.version=c),a}},{test:[/opera/i],describe:function(o){var a={name:"Opera"},c=i.default.getFirstMatch(s,o)||i.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/opr\/|opios/i],describe:function(o){var a={name:"Opera"},c=i.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,o)||i.default.getFirstMatch(s,o);return c&&(a.version=c),a}},{test:[/SamsungBrowser/i],describe:function(o){var a={name:"Samsung Internet for Android"},c=i.default.getFirstMatch(s,o)||i.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/Whale/i],describe:function(o){var a={name:"NAVER Whale Browser"},c=i.default.getFirstMatch(s,o)||i.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/MZBrowser/i],describe:function(o){var a={name:"MZ Browser"},c=i.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,o)||i.default.getFirstMatch(s,o);return c&&(a.version=c),a}},{test:[/focus/i],describe:function(o){var a={name:"Focus"},c=i.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,o)||i.default.getFirstMatch(s,o);return c&&(a.version=c),a}},{test:[/swing/i],describe:function(o){var a={name:"Swing"},c=i.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,o)||i.default.getFirstMatch(s,o);return c&&(a.version=c),a}},{test:[/coast/i],describe:function(o){var a={name:"Opera Coast"},c=i.default.getFirstMatch(s,o)||i.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(o){var a={name:"Opera Touch"},c=i.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,o)||i.default.getFirstMatch(s,o);return c&&(a.version=c),a}},{test:[/yabrowser/i],describe:function(o){var a={name:"Yandex Browser"},c=i.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,o)||i.default.getFirstMatch(s,o);return c&&(a.version=c),a}},{test:[/ucbrowser/i],describe:function(o){var a={name:"UC Browser"},c=i.default.getFirstMatch(s,o)||i.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/Maxthon|mxios/i],describe:function(o){var a={name:"Maxthon"},c=i.default.getFirstMatch(s,o)||i.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/epiphany/i],describe:function(o){var a={name:"Epiphany"},c=i.default.getFirstMatch(s,o)||i.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/puffin/i],describe:function(o){var a={name:"Puffin"},c=i.default.getFirstMatch(s,o)||i.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/sleipnir/i],describe:function(o){var a={name:"Sleipnir"},c=i.default.getFirstMatch(s,o)||i.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/k-meleon/i],describe:function(o){var a={name:"K-Meleon"},c=i.default.getFirstMatch(s,o)||i.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/micromessenger/i],describe:function(o){var a={name:"WeChat"},c=i.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,o)||i.default.getFirstMatch(s,o);return c&&(a.version=c),a}},{test:[/qqbrowser/i],describe:function(o){var a={name:/qqbrowserlite/i.test(o)?"QQ Browser Lite":"QQ Browser"},c=i.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,o)||i.default.getFirstMatch(s,o);return c&&(a.version=c),a}},{test:[/msie|trident/i],describe:function(o){var a={name:"Internet Explorer"},c=i.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/\sedg\//i],describe:function(o){var a={name:"Microsoft Edge"},c=i.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/edg([ea]|ios)/i],describe:function(o){var a={name:"Microsoft Edge"},c=i.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/vivaldi/i],describe:function(o){var a={name:"Vivaldi"},c=i.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/seamonkey/i],describe:function(o){var a={name:"SeaMonkey"},c=i.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/sailfish/i],describe:function(o){var a={name:"Sailfish"},c=i.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,o);return c&&(a.version=c),a}},{test:[/silk/i],describe:function(o){var a={name:"Amazon Silk"},c=i.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/phantom/i],describe:function(o){var a={name:"PhantomJS"},c=i.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/slimerjs/i],describe:function(o){var a={name:"SlimerJS"},c=i.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(o){var a={name:"BlackBerry"},c=i.default.getFirstMatch(s,o)||i.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/(web|hpw)[o0]s/i],describe:function(o){var a={name:"WebOS Browser"},c=i.default.getFirstMatch(s,o)||i.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/bada/i],describe:function(o){var a={name:"Bada"},c=i.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/tizen/i],describe:function(o){var a={name:"Tizen"},c=i.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,o)||i.default.getFirstMatch(s,o);return c&&(a.version=c),a}},{test:[/qupzilla/i],describe:function(o){var a={name:"QupZilla"},c=i.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,o)||i.default.getFirstMatch(s,o);return c&&(a.version=c),a}},{test:[/firefox|iceweasel|fxios/i],describe:function(o){var a={name:"Firefox"},c=i.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/electron/i],describe:function(o){var a={name:"Electron"},c=i.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/MiuiBrowser/i],describe:function(o){var a={name:"Miui"},c=i.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/chromium/i],describe:function(o){var a={name:"Chromium"},c=i.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,o)||i.default.getFirstMatch(s,o);return c&&(a.version=c),a}},{test:[/chrome|crios|crmo/i],describe:function(o){var a={name:"Chrome"},c=i.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/GSA/i],describe:function(o){var a={name:"Google Search"},c=i.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:function(o){var a=!o.test(/like android/i),c=o.test(/android/i);return a&&c},describe:function(o){var a={name:"Android Browser"},c=i.default.getFirstMatch(s,o);return c&&(a.version=c),a}},{test:[/playstation 4/i],describe:function(o){var a={name:"PlayStation 4"},c=i.default.getFirstMatch(s,o);return c&&(a.version=c),a}},{test:[/safari|applewebkit/i],describe:function(o){var a={name:"Safari"},c=i.default.getFirstMatch(s,o);return c&&(a.version=c),a}},{test:[/.*/i],describe:function(o){var a=o.search("\\(")!==-1?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:i.default.getFirstMatch(a,o),version:i.default.getSecondMatch(a,o)}}}];e.default=u,r.exports=e.default},93:function(r,e,t){"use strict";e.__esModule=!0,e.default=void 0;var n,i=(n=t(17))&&n.__esModule?n:{default:n},s=t(18),u=[{test:[/Roku\/DVP/],describe:function(o){var a=i.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,o);return{name:s.OS_MAP.Roku,version:a}}},{test:[/windows phone/i],describe:function(o){var a=i.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,o);return{name:s.OS_MAP.WindowsPhone,version:a}}},{test:[/windows /i],describe:function(o){var a=i.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,o),c=i.default.getWindowsVersionName(a);return{name:s.OS_MAP.Windows,version:a,versionName:c}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(o){var a={name:s.OS_MAP.iOS},c=i.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,o);return c&&(a.version=c),a}},{test:[/macintosh/i],describe:function(o){var a=i.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,o).replace(/[_\s]/g,"."),c=i.default.getMacOSVersionName(a),d={name:s.OS_MAP.MacOS,version:a};return c&&(d.versionName=c),d}},{test:[/(ipod|iphone|ipad)/i],describe:function(o){var a=i.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,o).replace(/[_\s]/g,".");return{name:s.OS_MAP.iOS,version:a}}},{test:function(o){var a=!o.test(/like android/i),c=o.test(/android/i);return a&&c},describe:function(o){var a=i.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,o),c=i.default.getAndroidVersionName(a),d={name:s.OS_MAP.Android,version:a};return c&&(d.versionName=c),d}},{test:[/(web|hpw)[o0]s/i],describe:function(o){var a=i.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,o),c={name:s.OS_MAP.WebOS};return a&&a.length&&(c.version=a),c}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(o){var a=i.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,o)||i.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,o)||i.default.getFirstMatch(/\bbb(\d+)/i,o);return{name:s.OS_MAP.BlackBerry,version:a}}},{test:[/bada/i],describe:function(o){var a=i.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,o);return{name:s.OS_MAP.Bada,version:a}}},{test:[/tizen/i],describe:function(o){var a=i.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,o);return{name:s.OS_MAP.Tizen,version:a}}},{test:[/linux/i],describe:function(){return{name:s.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:s.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(o){var a=i.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,o);return{name:s.OS_MAP.PlayStation4,version:a}}}];e.default=u,r.exports=e.default},94:function(r,e,t){"use strict";e.__esModule=!0,e.default=void 0;var n,i=(n=t(17))&&n.__esModule?n:{default:n},s=t(18),u=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(o){var a=i.default.getFirstMatch(/(can-l01)/i,o)&&"Nova",c={type:s.PLATFORMS_MAP.mobile,vendor:"Huawei"};return a&&(c.model=a),c}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet}}},{test:function(o){var a=o.test(/ipod|iphone/i),c=o.test(/like (ipod|iphone)/i);return a&&!c},describe:function(o){var a=i.default.getFirstMatch(/(ipod|iphone)/i,o);return{type:s.PLATFORMS_MAP.mobile,vendor:"Apple",model:a}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:function(o){return o.getBrowserName(!0)==="blackberry"},describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(o){return o.getBrowserName(!0)==="bada"},describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:function(o){return o.getBrowserName()==="windows phone"},describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(o){var a=Number(String(o.getOSVersion()).split(".")[0]);return o.getOSName(!0)==="android"&&a>=3},describe:function(){return{type:s.PLATFORMS_MAP.tablet}}},{test:function(o){return o.getOSName(!0)==="android"},describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:function(o){return o.getOSName(!0)==="macos"},describe:function(){return{type:s.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(o){return o.getOSName(!0)==="windows"},describe:function(){return{type:s.PLATFORMS_MAP.desktop}}},{test:function(o){return o.getOSName(!0)==="linux"},describe:function(){return{type:s.PLATFORMS_MAP.desktop}}},{test:function(o){return o.getOSName(!0)==="playstation 4"},describe:function(){return{type:s.PLATFORMS_MAP.tv}}},{test:function(o){return o.getOSName(!0)==="roku"},describe:function(){return{type:s.PLATFORMS_MAP.tv}}}];e.default=u,r.exports=e.default},95:function(r,e,t){"use strict";e.__esModule=!0,e.default=void 0;var n,i=(n=t(17))&&n.__esModule?n:{default:n},s=t(18),u=[{test:function(o){return o.getBrowserName(!0)==="microsoft edge"},describe:function(o){if(/\sedg\//i.test(o))return{name:s.ENGINE_MAP.Blink};var a=i.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,o);return{name:s.ENGINE_MAP.EdgeHTML,version:a}}},{test:[/trident/i],describe:function(o){var a={name:s.ENGINE_MAP.Trident},c=i.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:function(o){return o.test(/presto/i)},describe:function(o){var a={name:s.ENGINE_MAP.Presto},c=i.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:function(o){var a=o.test(/gecko/i),c=o.test(/like gecko/i);return a&&!c},describe:function(o){var a={name:s.ENGINE_MAP.Gecko},c=i.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:s.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(o){var a={name:s.ENGINE_MAP.WebKit},c=i.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}}];e.default=u,r.exports=e.default}})})});var ve=$((lr,oe)=>{function Et(r,e){var t,n,i,s,u,o,a,c,d,f;for(t=r.length&3,n=r.length-t,i=e,u=3432918353,a=461845907,f=0;f<n;)d=r.charCodeAt(f)&255|(r.charCodeAt(++f)&255)<<8|(r.charCodeAt(++f)&255)<<16|(r.charCodeAt(++f)&255)<<24,++f,d=(d&65535)*u+(((d>>>16)*u&65535)<<16)&4294967295,d=d<<15|d>>>17,d=(d&65535)*a+(((d>>>16)*a&65535)<<16)&4294967295,i^=d,i=i<<13|i>>>19,s=(i&65535)*5+(((i>>>16)*5&65535)<<16)&4294967295,i=(s&65535)+27492+(((s>>>16)+58964&65535)<<16);switch(d=0,t){case 3:d^=(r.charCodeAt(f+2)&255)<<16;case 2:d^=(r.charCodeAt(f+1)&255)<<8;case 1:d^=r.charCodeAt(f)&255,d=(d&65535)*u+(((d>>>16)*u&65535)<<16)&4294967295,d=d<<15|d>>>17,d=(d&65535)*a+(((d>>>16)*a&65535)<<16)&4294967295,i^=d}return i^=r.length,i^=i>>>16,i=(i&65535)*2246822507+(((i>>>16)*2246822507&65535)<<16)&4294967295,i^=i>>>13,i=(i&65535)*3266489909+(((i>>>16)*3266489909&65535)<<16)&4294967295,i^=i>>>16,i>>>0}typeof oe<"u"&&(oe.exports=Et)});var qe=$(X=>{"use strict";X.byteLength=Ft;X.toByteArray=Tt;X.fromByteArray=Ot;var M=[],x=[],Mt=typeof Uint8Array<"u"?Uint8Array:Array,ce="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(k=0,ke=ce.length;k<ke;++k)M[k]=ce[k],x[ce.charCodeAt(k)]=k;var k,ke;x[45]=62;x[95]=63;function Ue(r){var e=r.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=r.indexOf("=");t===-1&&(t=e);var n=t===e?0:4-t%4;return[t,n]}function Ft(r){var e=Ue(r),t=e[0],n=e[1];return(t+n)*3/4-n}function It(r,e,t){return(e+t)*3/4-t}function Tt(r){var e,t=Ue(r),n=t[0],i=t[1],s=new Mt(It(r,n,i)),u=0,o=i>0?n-4:n,a;for(a=0;a<o;a+=4)e=x[r.charCodeAt(a)]<<18|x[r.charCodeAt(a+1)]<<12|x[r.charCodeAt(a+2)]<<6|x[r.charCodeAt(a+3)],s[u++]=e>>16&255,s[u++]=e>>8&255,s[u++]=e&255;return i===2&&(e=x[r.charCodeAt(a)]<<2|x[r.charCodeAt(a+1)]>>4,s[u++]=e&255),i===1&&(e=x[r.charCodeAt(a)]<<10|x[r.charCodeAt(a+1)]<<4|x[r.charCodeAt(a+2)]>>2,s[u++]=e>>8&255,s[u++]=e&255),s}function Pt(r){return M[r>>18&63]+M[r>>12&63]+M[r>>6&63]+M[r&63]}function Lt(r,e,t){for(var n,i=[],s=e;s<t;s+=3)n=(r[s]<<16&16711680)+(r[s+1]<<8&65280)+(r[s+2]&255),i.push(Pt(n));return i.join("")}function Ot(r){for(var e,t=r.length,n=t%3,i=[],s=16383,u=0,o=t-n;u<o;u+=s)i.push(Lt(r,u,u+s>o?o:u+s));return n===1?(e=r[t-1],i.push(M[e>>2]+M[e<<4&63]+"==")):n===2&&(e=(r[t-2]<<8)+r[t-1],i.push(M[e>>10]+M[e>>4&63]+M[e<<2&63]+"=")),i.join("")}});var De=$(le=>{le.read=function(r,e,t,n,i){var s,u,o=i*8-n-1,a=(1<<o)-1,c=a>>1,d=-7,f=t?i-1:0,h=t?-1:1,p=r[e+f];for(f+=h,s=p&(1<<-d)-1,p>>=-d,d+=o;d>0;s=s*256+r[e+f],f+=h,d-=8);for(u=s&(1<<-d)-1,s>>=-d,d+=n;d>0;u=u*256+r[e+f],f+=h,d-=8);if(s===0)s=1-c;else{if(s===a)return u?NaN:(p?-1:1)*(1/0);u=u+Math.pow(2,n),s=s-c}return(p?-1:1)*u*Math.pow(2,s-n)};le.write=function(r,e,t,n,i,s){var u,o,a,c=s*8-i-1,d=(1<<c)-1,f=d>>1,h=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:s-1,g=n?1:-1,m=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(o=isNaN(e)?1:0,u=d):(u=Math.floor(Math.log(e)/Math.LN2),e*(a=Math.pow(2,-u))<1&&(u--,a*=2),u+f>=1?e+=h/a:e+=h*Math.pow(2,1-f),e*a>=2&&(u++,a/=2),u+f>=d?(o=0,u=d):u+f>=1?(o=(e*a-1)*Math.pow(2,i),u=u+f):(o=e*Math.pow(2,f-1)*Math.pow(2,i),u=0));i>=8;r[t+p]=o&255,p+=g,o/=256,i-=8);for(u=u<<i|o,c+=i;c>0;r[t+p]=u&255,p+=g,u/=256,c-=8);r[t+p-g]|=m*128}});var nt=$(j=>{"use strict";var fe=qe(),G=De(),Ge=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;j.Buffer=l;j.SlowBuffer=qt;j.INSPECT_MAX_BYTES=50;var Q=2147483647;j.kMaxLength=Q;l.TYPED_ARRAY_SUPPORT=Rt();!l.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Rt(){try{let r=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(r,e),r.foo()===42}catch{return!1}}Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}});Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}});function L(r){if(r>Q)throw new RangeError('The value "'+r+'" is invalid for option "size"');let e=new Uint8Array(r);return Object.setPrototypeOf(e,l.prototype),e}function l(r,e,t){if(typeof r=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return ge(r)}return We(r,e,t)}l.poolSize=8192;function We(r,e,t){if(typeof r=="string")return Ct(r,e);if(ArrayBuffer.isView(r))return kt(r);if(r==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r);if(F(r,ArrayBuffer)||r&&F(r.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(F(r,SharedArrayBuffer)||r&&F(r.buffer,SharedArrayBuffer)))return pe(r,e,t);if(typeof r=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=r.valueOf&&r.valueOf();if(n!=null&&n!==r)return l.from(n,e,t);let i=Ut(r);if(i)return i;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof r[Symbol.toPrimitive]=="function")return l.from(r[Symbol.toPrimitive]("string"),e,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r)}l.from=function(r,e,t){return We(r,e,t)};Object.setPrototypeOf(l.prototype,Uint8Array.prototype);Object.setPrototypeOf(l,Uint8Array);function Ve(r){if(typeof r!="number")throw new TypeError('"size" argument must be of type number');if(r<0)throw new RangeError('The value "'+r+'" is invalid for option "size"')}function Nt(r,e,t){return Ve(r),r<=0?L(r):e!==void 0?typeof t=="string"?L(r).fill(e,t):L(r).fill(e):L(r)}l.alloc=function(r,e,t){return Nt(r,e,t)};function ge(r){return Ve(r),L(r<0?0:me(r)|0)}l.allocUnsafe=function(r){return ge(r)};l.allocUnsafeSlow=function(r){return ge(r)};function Ct(r,e){if((typeof e!="string"||e==="")&&(e="utf8"),!l.isEncoding(e))throw new TypeError("Unknown encoding: "+e);let t=Ke(r,e)|0,n=L(t),i=n.write(r,e);return i!==t&&(n=n.slice(0,i)),n}function de(r){let e=r.length<0?0:me(r.length)|0,t=L(e);for(let n=0;n<e;n+=1)t[n]=r[n]&255;return t}function kt(r){if(F(r,Uint8Array)){let e=new Uint8Array(r);return pe(e.buffer,e.byteOffset,e.byteLength)}return de(r)}function pe(r,e,t){if(e<0||r.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(r.byteLength<e+(t||0))throw new RangeError('"length" is outside of buffer bounds');let n;return e===void 0&&t===void 0?n=new Uint8Array(r):t===void 0?n=new Uint8Array(r,e):n=new Uint8Array(r,e,t),Object.setPrototypeOf(n,l.prototype),n}function Ut(r){if(l.isBuffer(r)){let e=me(r.length)|0,t=L(e);return t.length===0||r.copy(t,0,0,e),t}if(r.length!==void 0)return typeof r.length!="number"||ye(r.length)?L(0):de(r);if(r.type==="Buffer"&&Array.isArray(r.data))return de(r.data)}function me(r){if(r>=Q)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Q.toString(16)+" bytes");return r|0}function qt(r){return+r!=r&&(r=0),l.alloc(+r)}l.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==l.prototype};l.compare=function(e,t){if(F(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),F(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,i=t.length;for(let s=0,u=Math.min(n,i);s<u;++s)if(e[s]!==t[s]){n=e[s],i=t[s];break}return n<i?-1:i<n?1:0};l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};l.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return l.alloc(0);let n;if(t===void 0)for(t=0,n=0;n<e.length;++n)t+=e[n].length;let i=l.allocUnsafe(t),s=0;for(n=0;n<e.length;++n){let u=e[n];if(F(u,Uint8Array))s+u.length>i.length?(l.isBuffer(u)||(u=l.from(u)),u.copy(i,s)):Uint8Array.prototype.set.call(i,u,s);else if(l.isBuffer(u))u.copy(i,s);else throw new TypeError('"list" argument must be an Array of Buffers');s+=u.length}return i};function Ke(r,e){if(l.isBuffer(r))return r.length;if(ArrayBuffer.isView(r)||F(r,ArrayBuffer))return r.byteLength;if(typeof r!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof r);let t=r.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&t===0)return 0;let i=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return he(r).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return rt(r).length;default:if(i)return n?-1:he(r).length;e=(""+e).toLowerCase(),i=!0}}l.byteLength=Ke;function Dt(r,e,t){let n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,e>>>=0,t<=e))return"";for(r||(r="utf8");;)switch(r){case"hex":return Jt(this,e,t);case"utf8":case"utf-8":return ze(this,e,t);case"ascii":return Yt(this,e,t);case"latin1":case"binary":return zt(this,e,t);case"base64":return Vt(this,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Xt(this,e,t);default:if(n)throw new TypeError("Unknown encoding: "+r);r=(r+"").toLowerCase(),n=!0}}l.prototype._isBuffer=!0;function U(r,e,t){let n=r[e];r[e]=r[t],r[t]=n}l.prototype.swap16=function(){let e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)U(this,t,t+1);return this};l.prototype.swap32=function(){let e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)U(this,t,t+3),U(this,t+1,t+2);return this};l.prototype.swap64=function(){let e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)U(this,t,t+7),U(this,t+1,t+6),U(this,t+2,t+5),U(this,t+3,t+4);return this};l.prototype.toString=function(){let e=this.length;return e===0?"":arguments.length===0?ze(this,0,e):Dt.apply(this,arguments)};l.prototype.toLocaleString=l.prototype.toString;l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:l.compare(this,e)===0};l.prototype.inspect=function(){let e="",t=j.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"};Ge&&(l.prototype[Ge]=l.prototype.inspect);l.prototype.compare=function(e,t,n,i,s){if(F(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),i===void 0&&(i=0),s===void 0&&(s=this.length),t<0||n>e.length||i<0||s>this.length)throw new RangeError("out of range index");if(i>=s&&t>=n)return 0;if(i>=s)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,s>>>=0,this===e)return 0;let u=s-i,o=n-t,a=Math.min(u,o),c=this.slice(i,s),d=e.slice(t,n);for(let f=0;f<a;++f)if(c[f]!==d[f]){u=c[f],o=d[f];break}return u<o?-1:o<u?1:0};function Ye(r,e,t,n,i){if(r.length===0)return-1;if(typeof t=="string"?(n=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,ye(t)&&(t=i?0:r.length-1),t<0&&(t=r.length+t),t>=r.length){if(i)return-1;t=r.length-1}else if(t<0)if(i)t=0;else return-1;if(typeof e=="string"&&(e=l.from(e,n)),l.isBuffer(e))return e.length===0?-1:He(r,e,t,n,i);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(r,e,t):Uint8Array.prototype.lastIndexOf.call(r,e,t):He(r,[e],t,n,i);throw new TypeError("val must be string, number or Buffer")}function He(r,e,t,n,i){let s=1,u=r.length,o=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(r.length<2||e.length<2)return-1;s=2,u/=2,o/=2,t/=2}function a(d,f){return s===1?d[f]:d.readUInt16BE(f*s)}let c;if(i){let d=-1;for(c=t;c<u;c++)if(a(r,c)===a(e,d===-1?0:c-d)){if(d===-1&&(d=c),c-d+1===o)return d*s}else d!==-1&&(c-=c-d),d=-1}else for(t+o>u&&(t=u-o),c=t;c>=0;c--){let d=!0;for(let f=0;f<o;f++)if(a(r,c+f)!==a(e,f)){d=!1;break}if(d)return c}return-1}l.prototype.includes=function(e,t,n){return this.indexOf(e,t,n)!==-1};l.prototype.indexOf=function(e,t,n){return Ye(this,e,t,n,!0)};l.prototype.lastIndexOf=function(e,t,n){return Ye(this,e,t,n,!1)};function Gt(r,e,t,n){t=Number(t)||0;let i=r.length-t;n?(n=Number(n),n>i&&(n=i)):n=i;let s=e.length;n>s/2&&(n=s/2);let u;for(u=0;u<n;++u){let o=parseInt(e.substr(u*2,2),16);if(ye(o))return u;r[t+u]=o}return u}function Ht(r,e,t,n){return Z(he(e,r.length-t),r,t,n)}function jt(r,e,t,n){return Z(tr(e),r,t,n)}function $t(r,e,t,n){return Z(rt(e),r,t,n)}function Wt(r,e,t,n){return Z(rr(e,r.length-t),r,t,n)}l.prototype.write=function(e,t,n,i){if(t===void 0)i="utf8",n=this.length,t=0;else if(n===void 0&&typeof t=="string")i=t,n=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let s=this.length-t;if((n===void 0||n>s)&&(n=s),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let u=!1;for(;;)switch(i){case"hex":return Gt(this,e,t,n);case"utf8":case"utf-8":return Ht(this,e,t,n);case"ascii":case"latin1":case"binary":return jt(this,e,t,n);case"base64":return $t(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Wt(this,e,t,n);default:if(u)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),u=!0}};l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Vt(r,e,t){return e===0&&t===r.length?fe.fromByteArray(r):fe.fromByteArray(r.slice(e,t))}function ze(r,e,t){t=Math.min(r.length,t);let n=[],i=e;for(;i<t;){let s=r[i],u=null,o=s>239?4:s>223?3:s>191?2:1;if(i+o<=t){let a,c,d,f;switch(o){case 1:s<128&&(u=s);break;case 2:a=r[i+1],(a&192)===128&&(f=(s&31)<<6|a&63,f>127&&(u=f));break;case 3:a=r[i+1],c=r[i+2],(a&192)===128&&(c&192)===128&&(f=(s&15)<<12|(a&63)<<6|c&63,f>2047&&(f<55296||f>57343)&&(u=f));break;case 4:a=r[i+1],c=r[i+2],d=r[i+3],(a&192)===128&&(c&192)===128&&(d&192)===128&&(f=(s&15)<<18|(a&63)<<12|(c&63)<<6|d&63,f>65535&&f<1114112&&(u=f))}}u===null?(u=65533,o=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|u&1023),n.push(u),i+=o}return Kt(n)}var je=4096;function Kt(r){let e=r.length;if(e<=je)return String.fromCharCode.apply(String,r);let t="",n=0;for(;n<e;)t+=String.fromCharCode.apply(String,r.slice(n,n+=je));return t}function Yt(r,e,t){let n="";t=Math.min(r.length,t);for(let i=e;i<t;++i)n+=String.fromCharCode(r[i]&127);return n}function zt(r,e,t){let n="";t=Math.min(r.length,t);for(let i=e;i<t;++i)n+=String.fromCharCode(r[i]);return n}function Jt(r,e,t){let n=r.length;(!e||e<0)&&(e=0),(!t||t<0||t>n)&&(t=n);let i="";for(let s=e;s<t;++s)i+=nr[r[s]];return i}function Xt(r,e,t){let n=r.slice(e,t),i="";for(let s=0;s<n.length-1;s+=2)i+=String.fromCharCode(n[s]+n[s+1]*256);return i}l.prototype.slice=function(e,t){let n=this.length;e=~~e,t=t===void 0?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<e&&(t=e);let i=this.subarray(e,t);return Object.setPrototypeOf(i,l.prototype),i};function E(r,e,t){if(r%1!==0||r<0)throw new RangeError("offset is not uint");if(r+e>t)throw new RangeError("Trying to access beyond buffer length")}l.prototype.readUintLE=l.prototype.readUIntLE=function(e,t,n){e=e>>>0,t=t>>>0,n||E(e,t,this.length);let i=this[e],s=1,u=0;for(;++u<t&&(s*=256);)i+=this[e+u]*s;return i};l.prototype.readUintBE=l.prototype.readUIntBE=function(e,t,n){e=e>>>0,t=t>>>0,n||E(e,t,this.length);let i=this[e+--t],s=1;for(;t>0&&(s*=256);)i+=this[e+--t]*s;return i};l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e=e>>>0,t||E(e,1,this.length),this[e]};l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e=e>>>0,t||E(e,2,this.length),this[e]|this[e+1]<<8};l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e=e>>>0,t||E(e,2,this.length),this[e]<<8|this[e+1]};l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e=e>>>0,t||E(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};l.prototype.readUint32BE=l.prototype.readUInt32BE=function(e,t){return e=e>>>0,t||E(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};l.prototype.readBigUInt64LE=N(function(e){e=e>>>0,H(e,"offset");let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&V(e,this.length-8);let i=t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,s=this[++e]+this[++e]*2**8+this[++e]*2**16+n*2**24;return BigInt(i)+(BigInt(s)<<BigInt(32))});l.prototype.readBigUInt64BE=N(function(e){e=e>>>0,H(e,"offset");let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&V(e,this.length-8);let i=t*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],s=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n;return(BigInt(i)<<BigInt(32))+BigInt(s)});l.prototype.readIntLE=function(e,t,n){e=e>>>0,t=t>>>0,n||E(e,t,this.length);let i=this[e],s=1,u=0;for(;++u<t&&(s*=256);)i+=this[e+u]*s;return s*=128,i>=s&&(i-=Math.pow(2,8*t)),i};l.prototype.readIntBE=function(e,t,n){e=e>>>0,t=t>>>0,n||E(e,t,this.length);let i=t,s=1,u=this[e+--i];for(;i>0&&(s*=256);)u+=this[e+--i]*s;return s*=128,u>=s&&(u-=Math.pow(2,8*t)),u};l.prototype.readInt8=function(e,t){return e=e>>>0,t||E(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};l.prototype.readInt16LE=function(e,t){e=e>>>0,t||E(e,2,this.length);let n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};l.prototype.readInt16BE=function(e,t){e=e>>>0,t||E(e,2,this.length);let n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};l.prototype.readInt32LE=function(e,t){return e=e>>>0,t||E(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};l.prototype.readInt32BE=function(e,t){return e=e>>>0,t||E(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};l.prototype.readBigInt64LE=N(function(e){e=e>>>0,H(e,"offset");let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&V(e,this.length-8);let i=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(n<<24);return(BigInt(i)<<BigInt(32))+BigInt(t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)});l.prototype.readBigInt64BE=N(function(e){e=e>>>0,H(e,"offset");let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&V(e,this.length-8);let i=(t<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(i)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n)});l.prototype.readFloatLE=function(e,t){return e=e>>>0,t||E(e,4,this.length),G.read(this,e,!0,23,4)};l.prototype.readFloatBE=function(e,t){return e=e>>>0,t||E(e,4,this.length),G.read(this,e,!1,23,4)};l.prototype.readDoubleLE=function(e,t){return e=e>>>0,t||E(e,8,this.length),G.read(this,e,!0,52,8)};l.prototype.readDoubleBE=function(e,t){return e=e>>>0,t||E(e,8,this.length),G.read(this,e,!1,52,8)};function A(r,e,t,n,i,s){if(!l.isBuffer(r))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<s)throw new RangeError('"value" argument is out of bounds');if(t+n>r.length)throw new RangeError("Index out of range")}l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,n,i){if(e=+e,t=t>>>0,n=n>>>0,!i){let o=Math.pow(2,8*n)-1;A(this,e,t,n,o,0)}let s=1,u=0;for(this[t]=e&255;++u<n&&(s*=256);)this[t+u]=e/s&255;return t+n};l.prototype.writeUintBE=l.prototype.writeUIntBE=function(e,t,n,i){if(e=+e,t=t>>>0,n=n>>>0,!i){let o=Math.pow(2,8*n)-1;A(this,e,t,n,o,0)}let s=n-1,u=1;for(this[t+s]=e&255;--s>=0&&(u*=256);)this[t+s]=e/u&255;return t+n};l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,n){return e=+e,t=t>>>0,n||A(this,e,t,1,255,0),this[t]=e&255,t+1};l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t=t>>>0,n||A(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2};l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t=t>>>0,n||A(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2};l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t=t>>>0,n||A(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4};l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t=t>>>0,n||A(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function Je(r,e,t,n,i){tt(e,n,i,r,t,7);let s=Number(e&BigInt(4294967295));r[t++]=s,s=s>>8,r[t++]=s,s=s>>8,r[t++]=s,s=s>>8,r[t++]=s;let u=Number(e>>BigInt(32)&BigInt(4294967295));return r[t++]=u,u=u>>8,r[t++]=u,u=u>>8,r[t++]=u,u=u>>8,r[t++]=u,t}function Xe(r,e,t,n,i){tt(e,n,i,r,t,7);let s=Number(e&BigInt(4294967295));r[t+7]=s,s=s>>8,r[t+6]=s,s=s>>8,r[t+5]=s,s=s>>8,r[t+4]=s;let u=Number(e>>BigInt(32)&BigInt(4294967295));return r[t+3]=u,u=u>>8,r[t+2]=u,u=u>>8,r[t+1]=u,u=u>>8,r[t]=u,t+8}l.prototype.writeBigUInt64LE=N(function(e,t=0){return Je(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))});l.prototype.writeBigUInt64BE=N(function(e,t=0){return Xe(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))});l.prototype.writeIntLE=function(e,t,n,i){if(e=+e,t=t>>>0,!i){let a=Math.pow(2,8*n-1);A(this,e,t,n,a-1,-a)}let s=0,u=1,o=0;for(this[t]=e&255;++s<n&&(u*=256);)e<0&&o===0&&this[t+s-1]!==0&&(o=1),this[t+s]=(e/u>>0)-o&255;return t+n};l.prototype.writeIntBE=function(e,t,n,i){if(e=+e,t=t>>>0,!i){let a=Math.pow(2,8*n-1);A(this,e,t,n,a-1,-a)}let s=n-1,u=1,o=0;for(this[t+s]=e&255;--s>=0&&(u*=256);)e<0&&o===0&&this[t+s+1]!==0&&(o=1),this[t+s]=(e/u>>0)-o&255;return t+n};l.prototype.writeInt8=function(e,t,n){return e=+e,t=t>>>0,n||A(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1};l.prototype.writeInt16LE=function(e,t,n){return e=+e,t=t>>>0,n||A(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2};l.prototype.writeInt16BE=function(e,t,n){return e=+e,t=t>>>0,n||A(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2};l.prototype.writeInt32LE=function(e,t,n){return e=+e,t=t>>>0,n||A(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4};l.prototype.writeInt32BE=function(e,t,n){return e=+e,t=t>>>0,n||A(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};l.prototype.writeBigInt64LE=N(function(e,t=0){return Je(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});l.prototype.writeBigInt64BE=N(function(e,t=0){return Xe(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Qe(r,e,t,n,i,s){if(t+n>r.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function Ze(r,e,t,n,i){return e=+e,t=t>>>0,i||Qe(r,e,t,4,34028234663852886e22,-34028234663852886e22),G.write(r,e,t,n,23,4),t+4}l.prototype.writeFloatLE=function(e,t,n){return Ze(this,e,t,!0,n)};l.prototype.writeFloatBE=function(e,t,n){return Ze(this,e,t,!1,n)};function et(r,e,t,n,i){return e=+e,t=t>>>0,i||Qe(r,e,t,8,17976931348623157e292,-17976931348623157e292),G.write(r,e,t,n,52,8),t+8}l.prototype.writeDoubleLE=function(e,t,n){return et(this,e,t,!0,n)};l.prototype.writeDoubleBE=function(e,t,n){return et(this,e,t,!1,n)};l.prototype.copy=function(e,t,n,i){if(!l.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<n&&(i=n),i===n||e.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-n&&(i=e.length-t+n);let s=i-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,n,i):Uint8Array.prototype.set.call(e,this.subarray(n,i),t),s};l.prototype.fill=function(e,t,n,i){if(typeof e=="string"){if(typeof t=="string"?(i=t,t=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!l.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(e.length===1){let u=e.charCodeAt(0);(i==="utf8"&&u<128||i==="latin1")&&(e=u)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;t=t>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);let s;if(typeof e=="number")for(s=t;s<n;++s)this[s]=e;else{let u=l.isBuffer(e)?e:l.from(e,i),o=u.length;if(o===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(s=0;s<n-t;++s)this[s+t]=u[s%o]}return this};var D={};function we(r,e,t){D[r]=class extends t{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${r}]`,this.stack,delete this.name}get code(){return r}set code(i){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:i,writable:!0})}toString(){return`${this.name} [${r}]: ${this.message}`}}}we("ERR_BUFFER_OUT_OF_BOUNDS",function(r){return r?`${r} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError);we("ERR_INVALID_ARG_TYPE",function(r,e){return`The "${r}" argument must be of type number. Received type ${typeof e}`},TypeError);we("ERR_OUT_OF_RANGE",function(r,e,t){let n=`The value of "${r}" is out of range.`,i=t;return Number.isInteger(t)&&Math.abs(t)>2**32?i=$e(String(t)):typeof t=="bigint"&&(i=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(i=$e(i)),i+="n"),n+=` It must be ${e}. Received ${i}`,n},RangeError);function $e(r){let e="",t=r.length,n=r[0]==="-"?1:0;for(;t>=n+4;t-=3)e=`_${r.slice(t-3,t)}${e}`;return`${r.slice(0,t)}${e}`}function Qt(r,e,t){H(e,"offset"),(r[e]===void 0||r[e+t]===void 0)&&V(e,r.length-(t+1))}function tt(r,e,t,n,i,s){if(r>t||r<e){let u=typeof e=="bigint"?"n":"",o;throw s>3?e===0||e===BigInt(0)?o=`>= 0${u} and < 2${u} ** ${(s+1)*8}${u}`:o=`>= -(2${u} ** ${(s+1)*8-1}${u}) and < 2 ** ${(s+1)*8-1}${u}`:o=`>= ${e}${u} and <= ${t}${u}`,new D.ERR_OUT_OF_RANGE("value",o,r)}Qt(n,i,s)}function H(r,e){if(typeof r!="number")throw new D.ERR_INVALID_ARG_TYPE(e,"number",r)}function V(r,e,t){throw Math.floor(r)!==r?(H(r,t),new D.ERR_OUT_OF_RANGE(t||"offset","an integer",r)):e<0?new D.ERR_BUFFER_OUT_OF_BOUNDS:new D.ERR_OUT_OF_RANGE(t||"offset",`>= ${t?1:0} and <= ${e}`,r)}var Zt=/[^+/0-9A-Za-z-_]/g;function er(r){if(r=r.split("=")[0],r=r.trim().replace(Zt,""),r.length<2)return"";for(;r.length%4!==0;)r=r+"=";return r}function he(r,e){e=e||1/0;let t,n=r.length,i=null,s=[];for(let u=0;u<n;++u){if(t=r.charCodeAt(u),t>55295&&t<57344){if(!i){if(t>56319){(e-=3)>-1&&s.push(239,191,189);continue}else if(u+1===n){(e-=3)>-1&&s.push(239,191,189);continue}i=t;continue}if(t<56320){(e-=3)>-1&&s.push(239,191,189),i=t;continue}t=(i-55296<<10|t-56320)+65536}else i&&(e-=3)>-1&&s.push(239,191,189);if(i=null,t<128){if((e-=1)<0)break;s.push(t)}else if(t<2048){if((e-=2)<0)break;s.push(t>>6|192,t&63|128)}else if(t<65536){if((e-=3)<0)break;s.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((e-=4)<0)break;s.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return s}function tr(r){let e=[];for(let t=0;t<r.length;++t)e.push(r.charCodeAt(t)&255);return e}function rr(r,e){let t,n,i,s=[];for(let u=0;u<r.length&&!((e-=2)<0);++u)t=r.charCodeAt(u),n=t>>8,i=t%256,s.push(i),s.push(n);return s}function rt(r){return fe.toByteArray(er(r))}function Z(r,e,t,n){let i;for(i=0;i<n&&!(i+t>=e.length||i>=r.length);++i)e[i+t]=r[i];return i}function F(r,e){return r instanceof e||r!=null&&r.constructor!=null&&r.constructor.name!=null&&r.constructor.name===e.name}function ye(r){return r!==r}var nr=function(){let r="0123456789abcdef",e=new Array(256);for(let t=0;t<16;++t){let n=t*16;for(let i=0;i<16;++i)e[n+i]=r[t]+r[i]}return e}();function N(r){return typeof BigInt>"u"?ir:r}function ir(){throw new Error("BigInt not supported")}});var ht,gt=(r,e)=>(Object.keys(e).forEach(t=>{e[t]!==void 0&&(r[t]=e[t])}),r),ne=async(r,e)=>{let n=await(await fetch(r,{method:"POST",body:JSON.stringify(e),headers:gt({"Content-Type":"application/json"},{"x-tracker-cache":ht})})).json();if(n.error)throw n.error;return n};var ae=re(xe(),1);var mt=()=>{let r=null;try{typeof process.env<"u"?r=process.env.SECURE_LOCAL_STORAGE_HASH_KEY||process.env.REACT_APP_SECURE_LOCAL_STORAGE_HASH_KEY||process.env.NEXT_PUBLIC_SECURE_LOCAL_STORAGE_HASH_KEY||process.env.VITE_SECURE_LOCAL_STORAGE_HASH_KEY:console.warn("react-secure-storage : process is not defined! Just a warning!")}catch{return null}return r},wt=()=>{let r=null;try{typeof process.env<"u"?r=process.env.SECURE_LOCAL_STORAGE_PREFIX||process.env.REACT_APP_SECURE_LOCAL_STORAGE_PREFIX||process.env.NEXT_PUBLIC_SECURE_LOCAL_STORAGE_PREFIX||process.env.VITE_SECURE_LOCAL_STORAGE_PREFIX:console.warn("react-secure-storage : process is not defined! Just a warning!")}catch{return null}return r},yt=()=>{let r=null;try{typeof process.env<"u"?r=process.env.SECURE_LOCAL_STORAGE_DISABLED_KEYS||process.env.REACT_APP_SECURE_LOCAL_STORAGE_DISABLED_KEYS||process.env.NEXT_PUBLIC_SECURE_LOCAL_STORAGE_DISABLED_KEYS||process.env.VITE_SECURE_LOCAL_STORAGE_DISABLED_KEYS:console.warn("react-secure-storage : process is not defined! Just a warning!")}catch{return null}return r},_t={getHashKey:mt,getStoragePrefix:wt,getDisabledKeys:yt},Y=_t;var Me=re(ve(),1);var w={USERAGENT:"UserAgent",SCREEN_PRINT:"ScreenPrint",PLUGINS:"Plugins",FONTS:"Fonts",LOCAL_STORAGE:"LocalStorage",SESSION_STORAGE:"SessionStorage",TIMEZONE:"TimeZone",LANGUAGE:"Language",SYSTEM_LANGUAGE:"SystemLanguage",COOKIE:"Cookie",CANVAS:"Canvas",HOSTNAME:"Hostname"},Be=()=>{let r=Y.getDisabledKeys()||"";if(r==="")return[];let e=[w.USERAGENT,w.SCREEN_PRINT,w.PLUGINS,w.FONTS,w.LOCAL_STORAGE,w.SESSION_STORAGE,w.TIMEZONE,w.LANGUAGE,w.SYSTEM_LANGUAGE,w.COOKIE,w.CANVAS,w.HOSTNAME],t=[];return r.split("|").forEach(n=>{n===""?console.log("test"):e.includes(n)?t.push(n):console.warn(`react-secure-storage : ${n} is not present in the available disabled keys options! Please go through the documentation`)}),t};var St=class{getFingerprint(){let r="|",e=Be(),t="";return e.includes(w.USERAGENT)||(t+=navigator.userAgent+r),e.includes(w.HOSTNAME)||(t+=window.location.hostname+r),e.includes(w.SCREEN_PRINT)||(t+=this.getScreenPrint()+r),e.includes(w.PLUGINS)||(t+=this.getPlugins()+r),e.includes(w.FONTS)||(t+=this.getFonts()+r),e.includes(w.LOCAL_STORAGE)||(t+=this.isLocalStorage()+r),e.includes(w.SESSION_STORAGE)||(t+=this.isSessionStorage()+r),e.includes(w.TIMEZONE)||(t+=this.getTimeZone()+r),e.includes(w.LANGUAGE)||(t+=this.getLanguage()+r),e.includes(w.SYSTEM_LANGUAGE)||(t+=this.getSystemLanguage()+r),e.includes(w.COOKIE)||(t+=this.isCookie()+r),e.includes(w.CANVAS)||(t+=this.getCanvasPrint()),t.endsWith(r)&&(t=t.substring(0,t.length-1)),(0,Me.default)(t,256)}getScreenPrint(){return"Color Depth: "+this.getColorDepth()+", Device XDPI: "+this.getDeviceXDPI()+", Device YDPI: "+this.getDeviceYDPI()}getColorDepth(){return window.screen.colorDepth}getCurrentResolution(){return window.screen.width+"x"+window.screen.height}getAvailableResolution(){return window.screen.availWidth+"x"+window.screen.availHeight}getDeviceXDPI(){return""}getDeviceYDPI(){return""}getPlugins(){let r="";for(let e=0;e<navigator.plugins.length;e++)e===navigator.plugins.length-1?r+=navigator.plugins[e].name:r+=navigator.plugins[e].name+", ";return r}getFonts(){return""}isLocalStorage(){try{return!!localStorage}catch{return!0}}isSessionStorage(){try{return!!sessionStorage}catch{return!0}}isCookie(){return navigator.cookieEnabled}getTimeZone(){let r=new Date,e,t,n;return e=String(-(r.getTimezoneOffset()/60)),e<0?(e=e*-1,t=("0"+e).slice(-2),n="-"+t):(t=("0"+e).slice(-2),n="+"+t),n}getLanguage(){return navigator.language}getSystemLanguage(){return navigator.language||window.navigator.language}getCanvasPrint(){let r=document.createElement("canvas"),e;try{e=r.getContext("2d")}catch{return""}let t="ClientJS,org <canvas> 1.0";return e.textBaseline="top",e.font="14px 'Arial'",e.textBaseline="alphabetic",e.fillStyle="#f60",e.fillRect(125,1,62,20),e.fillStyle="#069",e.fillText(t,2,15),e.fillStyle="rgba(102, 204, 0, 0.7)",e.fillText(t,4,17),r.toDataURL()}},bt=new St,Fe=bt;var At="E86E2612010258B35137",xt=()=>{let r=Y.getHashKey()||At;return typeof window>"u"?r:Fe.getFingerprint()+r},se=xt;var vt=(r,e)=>`${r}/visitor/v1/${e}`,Te=(r,e)=>`${r}/visitor/v2/${e}`,Bt=(r,e)=>`${r}/remember_flow/${e}`,z=async(r,e,t,n,i)=>{let s=sessionStorage.getItem("aesirx-analytics-allow"),u=sessionStorage.getItem("aesirx-analytics-rejected");if(s==="0"||u==="true")return null;let{location:o,document:a}=window,{pathname:c,search:d,origin:f}=o;e=`${f}${c}${d}`,t=t?o.protocol+"//"+o.host+t:a.referrer?a.referrer:window.referer?window.referer==="/"?o.protocol+"//"+o.host:o.protocol+"//"+o.host+window.referer:"",n=window.navigator.userAgent;let h=ae.default.parse(window.navigator.userAgent),p=h?.browser?.name,g=h?.browser?.version??"0",m=window.navigator.userLanguage||window.navigator.language,y=h?.platform?.model??h?.platform?.type,_=window.location.search,B=new URLSearchParams(_),C="";try{let O=se(),I=[];for(let S of B.keys())(S.startsWith("utm_")||S.startsWith("gad_"))&&B.get(S)&&I.push({name:S,value:B.get(S)});i?.length&&i?.forEach(S=>{S?.name&&I.push({name:S?.name,value:S?.value})});let T=await ne(Te(r,"start"),{fingerprint:O,url:e?.replace(/^(https?:\/\/)?(www\.)?/,"$1"),...t&&(t!==e||a.referrer)&&{referer:t!==e?t?.replace(/^(https?:\/\/)?(www\.)?/,"$1"):a.referrer?.replace(/^(https?:\/\/)?(www\.)?/,"$1")},user_agent:n,ip:C,browser_name:p,browser_version:g,lang:m,device:y?.includes("iPhone")?"mobile":y?.includes("iPad")?"tablet":y,...I?.length&&{event_name:"visit",event_type:"action",attributes:I}});if(window.aesirxTrackEcommerce==="true"&&sessionStorage.getItem("aesirx-analytics-flow")!==(await T)?.flow_uuid){sessionStorage.setItem("aesirx-analytics-flow",(await T)?.flow_uuid);try{await ne(Bt(window.location.origin,(await T)?.flow_uuid),{})}catch(S){console.log("Remember Flow Error",S)}}return T}catch(O){console.error("Analytics Error: ",O)}},R=async(r,e,t,n)=>{let i=sessionStorage.getItem("aesirx-analytics-allow"),s=sessionStorage.getItem("aesirx-analytics-rejected");if(i==="0"||s==="true")return null;let{location:u,document:o}=window;e=e?u.protocol+"//"+u.host+e:o.referrer?o.referrer:window.referer?window.referer==="/"?u.protocol+"//"+u.host:u.protocol+"//"+u.host+window.referer:"";let a=n||u.protocol+"//"+u.host+u.pathname,c=window.navigator.userAgent,d=ae.default.parse(window.navigator.userAgent),f=d?.browser?.name,h=d?.browser?.version??"0",p=window.navigator.userLanguage||window.navigator.language,g=d?.platform?.model??d?.platform?.type,m="",y=se(),_={type:"application/json"},B=new Blob([JSON.stringify({fingerprint:y,url:a?.replace(/^(https?:\/\/)?(www\.)?/,"$1"),...e!=="/"&&e&&{referer:e?.replace(/^(https?:\/\/)?(www\.)?/,"$1")},user_agent:c,ip:m,browser_name:f,browser_version:h,lang:p,device:g?.includes("iPhone")?"mobile":g?.includes("iPad")?"tablet":g,...t})],_);return navigator.sendBeacon(Te(r,"start"),B)},Ie=(r,e,t)=>{if(e&&t){let n={event_uuid:e,visitor_uuid:t},i={type:"application/json"},s=new Blob([JSON.stringify(n)],i);navigator.sendBeacon(vt(r,"end"),s)}},Pe=r=>{document.addEventListener("visibilitychange",async()=>{if(document.visibilityState==="hidden"&&Ie(r,window.event_uuid,window.visitor_uuid),document.visibilityState==="visible"){let e=await z(r,"","","",window.attributes);window.event_uuid=e?.event_uuid}}),window.addEventListener("pagehide",e=>{e.persisted&&Ie(r,window.event_uuid,window.visitor_uuid)},!1)};var Le=window.aesirx1stparty?window.aesirx1stparty:"",J=Le?Le.replace(/\/$/,""):"",Oe=()=>{Array.from(document.querySelectorAll(".cart:not(.variations_form) .single_add_to_cart_button")).forEach(i=>{i.addEventListener("click",()=>{let s=i.closest(".product").querySelector(".product_title")?.innerText,u=i.closest(".product").querySelector('input[name="quantity"]').value;i.classList.contains("disabled")||n(s,i.value,u)})}),Array.from(document.querySelectorAll(".add_to_cart_button.product_type_simple")).forEach(i=>{i.addEventListener("click",()=>{let s=i.closest(".product").querySelector(".woocommerce-loop-product__title")?.innerText;i.classList.contains("disabled")||n(s,i.dataset.product_id,"1")})}),Array.from(document.querySelectorAll(".cart.variations_form .single_add_to_cart_button")).forEach(i=>{i.addEventListener("click",()=>{let s=i.closest(".product").querySelector(".product_title")?.innerText,u=i.closest(".product").querySelector('input[name="quantity"]').value,o=i.closest(".product").querySelector('input[name="product_id"]').value,a=i.closest(".product").querySelector('input[name="variation_id"]').value;i.classList.contains("disabled")||n(s,o,u,a)})});let n=(i,s,u=null,o=null)=>{let a={};a.product_name=i,a.product_id=s,o&&(a.variant_id=o),a.quantity=u,R(J,"",{event_name:"Add to cart",event_type:"submit",attributes:[{name:"woo.addtocart",value:JSON.stringify(a)}]})}},Re=()=>{Array.from(document.querySelectorAll('form[role="search"] button[type="submit"]')).forEach(t=>{t.addEventListener("click",()=>{let n=t.closest("form").querySelector('input[type="search"]')?.value;!t.classList.contains("disabled")&&t.closest("form").querySelector('input[name="post_type"]')?.value==="product"&&e(n)})});let e=t=>{let n=Array();ue(n,"1","analytics_woocommerce"),ue(n,t,"wooocommerce_search"),R(J,"",{event_name:"Search product",event_type:"submit",attributes:n})}},Ne=()=>{document.querySelector("form.woocommerce-checkout")?.addEventListener("submit",function(r){jQuery("form.woocommerce-checkout").on("checkout_place_order",function(){let e=r.target,t={},n=[];e.querySelectorAll(".cart_item").forEach(b=>{let ee=b.querySelector(".product-name"),Se="";for(let P=0;P<ee.childNodes.length;++P)ee.childNodes[P].nodeType===Node.TEXT_NODE&&(Se+=ee.childNodes[P]?.textContent);let st=b.querySelector(".product-quantity").innerText?.replace("\xD7",""),te=b.querySelector(".woocommerce-Price-amount bdi"),be="";for(let P=0;P<te.childNodes.length;++P)te.childNodes[P].nodeType===Node.TEXT_NODE&&(be+=te.childNodes[P]?.textContent);let at=b.querySelector(".woocommerce-Price-amount .woocommerce-Price-currencySymbol");n.push({name:Se?.trim(),quantity:st?.trim(),price:be?.trim(),symbol:at?.innerText})}),t.products=n;let s=e.querySelector(".order-total .woocommerce-Price-amount bdi"),u="";for(let b=0;b<s.childNodes.length;++b)s.childNodes[b].nodeType===Node.TEXT_NODE&&(u+=s.childNodes[b]?.textContent);t["order-total"]=u?.trim();let o=e.querySelector('input[name="billing_first_name"]'),a=e.querySelector('input[name="billing_last_name"]'),c=e.querySelector('input[name="billing_company"]'),d=e.querySelector('input[name="billing_address_1"]'),f=e.querySelector('input[name="billing_address_2"]'),h=e.querySelector('input[name="billing_postcode"]'),p=e.querySelector('input[name="billing_city"]'),g=e.querySelector('input[name="billing_state"]'),m=e.querySelector('input[name="billing_phone"]'),y=e.querySelector('input[name="billing_email"]'),_=e.querySelector('input[name="shipping_first_name"]'),B=e.querySelector('input[name="shipping_last_name"]'),C=e.querySelector('input[name="shipping_company"]'),O=e.querySelector('input[name="shipping_address_1"]'),I=e.querySelector('input[name="shipping_address_2"]'),T=e.querySelector('input[name="shipping_postcode"]'),S=e.querySelector('input[name="shipping_city"]'),K=e.querySelector('input[name="shipping_state"]'),v=e.querySelectorAll('input[name="shipping_method[0]"]'),q=e.querySelectorAll('input[name="payment_method"]'),ot=e.querySelector('input[name="mailpoet_woocommerce_checkout_optin"]'),_e="";q?.forEach(b=>{b.checked&&(_e=b?.value)});let Ee="";v?.forEach(b=>{b.checked&&(Ee=b?.value)}),t.billing_first_name=o?.value,t.billing_last_name=a?.value,t.billing_company=c?.value,t.billing_address_1=d?.value,t.billing_address_2=f?.value,t.billing_postcode=h?.value,t.billing_city=p?.value,t.billing_state=g?.value,t.billing_phone=m?.value,t.billing_email=y?.value,t.shipping_first_name=_.value,t.shipping_last_name=B.value,t.shipping_company=C?.value,t.shipping_address_1=O?.value,t.shipping_address_2=I?.value,t.shipping_postcode=T?.value,t.shipping_city=S?.value,t.shipping_state=K?.value,t.shipping_method=Ee,t.payment_method=_e,t.mailpoet_woocommerce_checkout_optin=ot?.value,R(J,"",{event_name:"Checkout",event_type:"submit",attributes:[{name:"woo.checkout",value:JSON.stringify(t)}]})})})},Ce=()=>{if(document.body.classList.contains("woocommerce")&&document.body.classList.contains("single-product")){let r=document.querySelector(".wp-block-post-title")?.innerText;if(r){let e=Array();ue(e,r,"woo.view_product"),R(J,"",{event_name:"View product",event_type:"view",attributes:e})}}},ue=(r,e,t)=>{e&&r.push({name:t,value:e??""})};var it=re(nt(),1);window.Buffer=it.Buffer;var or=()=>{window["aesirx-analytics-enable"]="true";let r=(p,g,m)=>{let y=p[g];return(..._)=>(m.apply(null,_),y.apply(p,_))},e=async p=>{if(!p)return;let{pathname:g,search:m,origin:y}=location;p=`${y}${g}${m}`;let _=p.toString();_.substring(0,4)==="http"?p="/"+_.split("/").splice(3).join("/"):p=_};if(!window.tracker){let p=g=>g;p.startTracker=z,window.tracker=p}history.pushState=r(history,"pushState",e),history.replaceState=r(history,"replaceState",e);let t=window.aesirx1stparty?window.aesirx1stparty:"",n=t?t.replace(/\/$/,""):"",{currentScript:i}=document;if(!i)return;let a=i.getAttribute.bind(i)("data-"+"aesirx-event-name")!=="false",c="[data-aesirx-event-name]",d=async()=>{if(document.readyState==="complete"){if(window["aesirx-consent-enable"]!=="true"){let p=await z(n);p&&(window.event_uuid=p.event_uuid,window.visitor_uuid=p.visitor_uuid)}a&&f(document)}};document.addEventListener("readystatechange",d,!0),Pe(n);let f=p=>{let g=p.querySelectorAll(c);Array.prototype.forEach.call(g,h)},h=p=>{p.addEventListener("click",()=>{let g=[];Object.keys(p.dataset).forEach(m=>{m.startsWith("aesirxEventAttribute")&&g.push({name:m.replace("aesirxEventAttribute","").toLowerCase(),value:p.dataset[m]})}),R(n,"",{event_name:p.dataset.aesirxEventName,event_type:p.dataset.aesirxEventType,attributes:g})},!0)};d()},sr=()=>{Oe(),Re(),Ne(),Ce()};or();document.addEventListener("DOMContentLoaded",()=>{(document.body.classList.contains("woocommerce-js")||document.body.classList.contains("woocommerce-no-js"))&&sr()});window.trackEventAnalytics=R;})();
|
2
2
|
/*! Bundled license information:
|
3
3
|
|
4
4
|
ieee754/index.js:
|
package/dist/index.d.ts
CHANGED
@@ -23,7 +23,7 @@ interface AnalyticsReact {
|
|
23
23
|
declare const AnalyticsReact: ({ location, history, children }: AnalyticsReact) => React.JSX.Element;
|
24
24
|
|
25
25
|
declare const startTracker: (endpoint: string, url?: string, referer?: string, user_agent?: string, attributesVisit?: any) => Promise<any>;
|
26
|
-
declare const trackEvent: (endpoint: string, referer?: string, data?: object) => Promise<boolean>;
|
26
|
+
declare const trackEvent: (endpoint: string, referer?: string, data?: object, _url?: string) => Promise<boolean>;
|
27
27
|
declare const endTrackerVisibilityState: (endPoint: string) => void;
|
28
28
|
|
29
29
|
interface Props {
|
package/dist/index.js
CHANGED
@@ -381,7 +381,7 @@ var startTracker = async (endpoint, url, referer, user_agent, attributesVisit) =
|
|
381
381
|
const fingerprint = fingerprint_default();
|
382
382
|
const attributes = [];
|
383
383
|
for (const key of urlParams.keys()) {
|
384
|
-
if (key.startsWith("utm_")) {
|
384
|
+
if (key.startsWith("utm_") || key.startsWith("gad_")) {
|
385
385
|
urlParams.get(key) && attributes.push({ name: key, value: urlParams.get(key) });
|
386
386
|
}
|
387
387
|
}
|
@@ -424,7 +424,7 @@ var startTracker = async (endpoint, url, referer, user_agent, attributesVisit) =
|
|
424
424
|
console.error("Analytics Error: ", error);
|
425
425
|
}
|
426
426
|
};
|
427
|
-
var trackEvent = async (endpoint, referer, data) => {
|
427
|
+
var trackEvent = async (endpoint, referer, data, _url) => {
|
428
428
|
const allow = sessionStorage.getItem("aesirx-analytics-allow");
|
429
429
|
const reject = sessionStorage.getItem("aesirx-analytics-rejected");
|
430
430
|
if (allow === "0" || reject === "true") {
|
@@ -432,7 +432,7 @@ var trackEvent = async (endpoint, referer, data) => {
|
|
432
432
|
}
|
433
433
|
const { location, document: document2 } = window;
|
434
434
|
referer = referer ? location.protocol + "//" + location.host + referer : document2.referrer ? document2.referrer : window["referer"] ? window["referer"] === "/" ? location.protocol + "//" + location.host : location.protocol + "//" + location.host + window["referer"] : "";
|
435
|
-
const url = location.protocol + "//" + location.host + location.pathname;
|
435
|
+
const url = _url ? _url : location.protocol + "//" + location.host + location.pathname;
|
436
436
|
const user_agent = window.navigator.userAgent;
|
437
437
|
const browser = Bowser.parse(window.navigator.userAgent);
|
438
438
|
const browser_name = browser?.browser?.name;
|