/*! UA-Web-Push: fadbcbc:1692694082640 */!function(){var t,e,n={96:function(t,e){"use strict";e.Z=class{constructor(){this._acquired=!1,this._waitingResolvers=[]}get acquired(){return this._acquired}acquireAsync(){return this._acquired?new Promise((t=>{this._waitingResolvers.push(t)})):(this._acquired=!0,Promise.resolve())}tryAcquire(){return!this._acquired&&(this._acquired=!0,!0)}release(){if(!this._acquired)throw new Error("Cannot release an unacquired lock");if(this._waitingResolvers.length>0){this._waitingResolvers.shift()()}else this._acquired=!1}}},1206:function(t){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=90)}({17:function(t,e,n){"use strict";e.__esModule=!0,e.default=void 0;var r=n(18),i=function(){function t(){}return t.getFirstMatch=function(t,e){var n=e.match(t);return n&&n.length>0&&n[1]||""},t.getSecondMatch=function(t,e){var n=e.match(t);return n&&n.length>1&&n[2]||""},t.matchAndReturnConst=function(t,e,n){if(t.test(e))return n},t.getWindowsVersionName=function(t){switch(t){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";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}},t.getMacOSVersionName=function(t){var e=t.split(".").splice(0,2).map((function(t){return parseInt(t,10)||0}));if(e.push(0),10===e[0])switch(e[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}},t.getAndroidVersionName=function(t){var e=t.split(".").splice(0,2).map((function(t){return parseInt(t,10)||0}));if(e.push(0),!(1===e[0]&&e[1]<5))return 1===e[0]&&e[1]<6?"Cupcake":1===e[0]&&e[1]>=6?"Donut":2===e[0]&&e[1]<2?"Eclair":2===e[0]&&2===e[1]?"Froyo":2===e[0]&&e[1]>2?"Gingerbread":3===e[0]?"Honeycomb":4===e[0]&&e[1]<1?"Ice Cream Sandwich":4===e[0]&&e[1]<4?"Jelly Bean":4===e[0]&&e[1]>=4?"KitKat":5===e[0]?"Lollipop":6===e[0]?"Marshmallow":7===e[0]?"Nougat":8===e[0]?"Oreo":9===e[0]?"Pie":void 0},t.getVersionPrecision=function(t){return t.split(".").length},t.compareVersions=function(e,n,r){void 0===r&&(r=!1);var i=t.getVersionPrecision(e),o=t.getVersionPrecision(n),a=Math.max(i,o),s=0,u=t.map([e,n],(function(e){var n=a-t.getVersionPrecision(e),r=e+new Array(n+1).join(".0");return t.map(r.split("."),(function(t){return new Array(20-t.length).join("0")+t})).reverse()}));for(r&&(s=a-Math.min(i,o)),a-=1;a>=s;){if(u[0][a]>u[1][a])return 1;if(u[0][a]===u[1][a]){if(a===s)return 0;a-=1}else if(u[0][a]1?i-1:0),a=1;a0){var a=Object.keys(n),u=s.default.find(a,(function(t){return e.isOS(t)}));if(u){var c=this.satisfies(n[u]);if(void 0!==c)return c}var l=s.default.find(a,(function(t){return e.isPlatform(t)}));if(l){var f=this.satisfies(n[l]);if(void 0!==f)return f}}if(o>0){var p=Object.keys(i),h=s.default.find(p,(function(t){return e.isBrowser(t,!0)}));if(void 0!==h)return this.compareVersion(i[h])}},e.isBrowser=function(t,e){void 0===e&&(e=!1);var n=this.getBrowserName().toLowerCase(),r=t.toLowerCase(),i=s.default.getBrowserTypeByAlias(r);return e&&i&&(r=i.toLowerCase()),r===n},e.compareVersion=function(t){var e=[0],n=t,r=!1,i=this.getBrowserVersion();if("string"==typeof i)return">"===t[0]||"<"===t[0]?(n=t.substr(1),"="===t[1]?(r=!0,n=t.substr(2)):e=[],">"===t[0]?e.push(1):e.push(-1)):"="===t[0]?n=t.substr(1):"~"===t[0]&&(r=!0,n=t.substr(1)),e.indexOf(s.default.compareVersions(i,n,r))>-1},e.isOS=function(t){return this.getOSName(!0)===String(t).toLowerCase()},e.isPlatform=function(t){return this.getPlatformType(!0)===String(t).toLowerCase()},e.isEngine=function(t){return this.getEngineName(!0)===String(t).toLowerCase()},e.is=function(t){return this.isBrowser(t)||this.isOS(t)||this.isPlatform(t)},e.some=function(t){var e=this;return void 0===t&&(t=[]),t.some((function(t){return e.is(t)}))},t}();e.default=c,t.exports=e.default},92:function(t,e,n){"use strict";e.__esModule=!0,e.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=/version\/(\d+(\.?_?\d+)+)/i,a=[{test:[/googlebot/i],describe:function(t){var e={name:"Googlebot"},n=i.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,t)||i.default.getFirstMatch(o,t);return n&&(e.version=n),e}},{test:[/opera/i],describe:function(t){var e={name:"Opera"},n=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/opr\/|opios/i],describe:function(t){var e={name:"Opera"},n=i.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,t)||i.default.getFirstMatch(o,t);return n&&(e.version=n),e}},{test:[/SamsungBrowser/i],describe:function(t){var e={name:"Samsung Internet for Android"},n=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/Whale/i],describe:function(t){var e={name:"NAVER Whale Browser"},n=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/MZBrowser/i],describe:function(t){var e={name:"MZ Browser"},n=i.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,t)||i.default.getFirstMatch(o,t);return n&&(e.version=n),e}},{test:[/focus/i],describe:function(t){var e={name:"Focus"},n=i.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,t)||i.default.getFirstMatch(o,t);return n&&(e.version=n),e}},{test:[/swing/i],describe:function(t){var e={name:"Swing"},n=i.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,t)||i.default.getFirstMatch(o,t);return n&&(e.version=n),e}},{test:[/coast/i],describe:function(t){var e={name:"Opera Coast"},n=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/yabrowser/i],describe:function(t){var e={name:"Yandex Browser"},n=i.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,t)||i.default.getFirstMatch(o,t);return n&&(e.version=n),e}},{test:[/ucbrowser/i],describe:function(t){var e={name:"UC Browser"},n=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/Maxthon|mxios/i],describe:function(t){var e={name:"Maxthon"},n=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/epiphany/i],describe:function(t){var e={name:"Epiphany"},n=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/puffin/i],describe:function(t){var e={name:"Puffin"},n=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/sleipnir/i],describe:function(t){var e={name:"Sleipnir"},n=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/k-meleon/i],describe:function(t){var e={name:"K-Meleon"},n=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/micromessenger/i],describe:function(t){var e={name:"WeChat"},n=i.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,t)||i.default.getFirstMatch(o,t);return n&&(e.version=n),e}},{test:[/qqbrowser/i],describe:function(t){var e={name:/qqbrowserlite/i.test(t)?"QQ Browser Lite":"QQ Browser"},n=i.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,t)||i.default.getFirstMatch(o,t);return n&&(e.version=n),e}},{test:[/msie|trident/i],describe:function(t){var e={name:"Internet Explorer"},n=i.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/\sedg\//i],describe:function(t){var e={name:"Microsoft Edge"},n=i.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/edg([ea]|ios)/i],describe:function(t){var e={name:"Microsoft Edge"},n=i.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/vivaldi/i],describe:function(t){var e={name:"Vivaldi"},n=i.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/seamonkey/i],describe:function(t){var e={name:"SeaMonkey"},n=i.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/sailfish/i],describe:function(t){var e={name:"Sailfish"},n=i.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,t);return n&&(e.version=n),e}},{test:[/silk/i],describe:function(t){var e={name:"Amazon Silk"},n=i.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/phantom/i],describe:function(t){var e={name:"PhantomJS"},n=i.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/slimerjs/i],describe:function(t){var e={name:"SlimerJS"},n=i.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(t){var e={name:"BlackBerry"},n=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/(web|hpw)[o0]s/i],describe:function(t){var e={name:"WebOS Browser"},n=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/bada/i],describe:function(t){var e={name:"Bada"},n=i.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/tizen/i],describe:function(t){var e={name:"Tizen"},n=i.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,t)||i.default.getFirstMatch(o,t);return n&&(e.version=n),e}},{test:[/qupzilla/i],describe:function(t){var e={name:"QupZilla"},n=i.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,t)||i.default.getFirstMatch(o,t);return n&&(e.version=n),e}},{test:[/firefox|iceweasel|fxios/i],describe:function(t){var e={name:"Firefox"},n=i.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/electron/i],describe:function(t){var e={name:"Electron"},n=i.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/chromium/i],describe:function(t){var e={name:"Chromium"},n=i.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,t)||i.default.getFirstMatch(o,t);return n&&(e.version=n),e}},{test:[/chrome|crios|crmo/i],describe:function(t){var e={name:"Chrome"},n=i.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/GSA/i],describe:function(t){var e={name:"Google Search"},n=i.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:function(t){var e=!t.test(/like android/i),n=t.test(/android/i);return e&&n},describe:function(t){var e={name:"Android Browser"},n=i.default.getFirstMatch(o,t);return n&&(e.version=n),e}},{test:[/playstation 4/i],describe:function(t){var e={name:"PlayStation 4"},n=i.default.getFirstMatch(o,t);return n&&(e.version=n),e}},{test:[/safari|applewebkit/i],describe:function(t){var e={name:"Safari"},n=i.default.getFirstMatch(o,t);return n&&(e.version=n),e}},{test:[/.*/i],describe:function(t){var e=-1!==t.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:i.default.getFirstMatch(e,t),version:i.default.getSecondMatch(e,t)}}}];e.default=a,t.exports=e.default},93:function(t,e,n){"use strict";e.__esModule=!0,e.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=n(18),a=[{test:[/Roku\/DVP/],describe:function(t){var e=i.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,t);return{name:o.OS_MAP.Roku,version:e}}},{test:[/windows phone/i],describe:function(t){var e=i.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,t);return{name:o.OS_MAP.WindowsPhone,version:e}}},{test:[/windows /i],describe:function(t){var e=i.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,t),n=i.default.getWindowsVersionName(e);return{name:o.OS_MAP.Windows,version:e,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?) Version\//],describe:function(t){var e=i.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,t);return{name:o.OS_MAP.iOS,version:e}}},{test:[/macintosh/i],describe:function(t){var e=i.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,t).replace(/[_\s]/g,"."),n=i.default.getMacOSVersionName(e),r={name:o.OS_MAP.MacOS,version:e};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe:function(t){var e=i.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,t).replace(/[_\s]/g,".");return{name:o.OS_MAP.iOS,version:e}}},{test:function(t){var e=!t.test(/like android/i),n=t.test(/android/i);return e&&n},describe:function(t){var e=i.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,t),n=i.default.getAndroidVersionName(e),r={name:o.OS_MAP.Android,version:e};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe:function(t){var e=i.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,t),n={name:o.OS_MAP.WebOS};return e&&e.length&&(n.version=e),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(t){var e=i.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,t)||i.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,t)||i.default.getFirstMatch(/\bbb(\d+)/i,t);return{name:o.OS_MAP.BlackBerry,version:e}}},{test:[/bada/i],describe:function(t){var e=i.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,t);return{name:o.OS_MAP.Bada,version:e}}},{test:[/tizen/i],describe:function(t){var e=i.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,t);return{name:o.OS_MAP.Tizen,version:e}}},{test:[/linux/i],describe:function(){return{name:o.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:o.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(t){var e=i.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,t);return{name:o.OS_MAP.PlayStation4,version:e}}}];e.default=a,t.exports=e.default},94:function(t,e,n){"use strict";e.__esModule=!0,e.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=n(18),a=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(t){var e=i.default.getFirstMatch(/(can-l01)/i,t)&&"Nova",n={type:o.PLATFORMS_MAP.mobile,vendor:"Huawei"};return e&&(n.model=e),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?) Version\//],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(t){var e=t.test(/ipod|iphone/i),n=t.test(/like (ipod|iphone)/i);return e&&!n},describe:function(t){var e=i.default.getFirstMatch(/(ipod|iphone)/i,t);return{type:o.PLATFORMS_MAP.mobile,vendor:"Apple",model:e}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(t){return"blackberry"===t.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(t){return"bada"===t.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(t){return"windows phone"===t.getBrowserName()},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(t){var e=Number(String(t.getOSVersion()).split(".")[0]);return"android"===t.getOSName(!0)&&e>=3},describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(t){return"android"===t.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(t){return"macos"===t.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(t){return"windows"===t.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(t){return"linux"===t.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(t){return"playstation 4"===t.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}},{test:function(t){return"roku"===t.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}}];e.default=a,t.exports=e.default},95:function(t,e,n){"use strict";e.__esModule=!0,e.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=n(18),a=[{test:function(t){return"microsoft edge"===t.getBrowserName(!0)},describe:function(t){if(/\sedg\//i.test(t))return{name:o.ENGINE_MAP.Blink};var e=i.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,t);return{name:o.ENGINE_MAP.EdgeHTML,version:e}}},{test:[/trident/i],describe:function(t){var e={name:o.ENGINE_MAP.Trident},n=i.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:function(t){return t.test(/presto/i)},describe:function(t){var e={name:o.ENGINE_MAP.Presto},n=i.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:function(t){var e=t.test(/gecko/i),n=t.test(/like gecko/i);return e&&!n},describe:function(t){var e={name:o.ENGINE_MAP.Gecko},n=i.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:o.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(t){var e={name:o.ENGINE_MAP.WebKit},n=i.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}}];e.default=a,t.exports=e.default}})},9496:function(t){"use strict";t.exports=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=void 0,i=void 0,o=void 0,a=[];return function(){var u=function(t){return"function"==typeof t?t():t}(e),c=(new Date).getTime(),l=!r||c-r>u;r=c;for(var f=arguments.length,p=Array(f),h=0;h0){const t=new Array(arguments.length);for(let e=0;e=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};var c=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},l=function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]255)throw new RangeError(n+"."+s+" has a 255 character limit")}}catch(t){r={error:t}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}}(this,["name","transactionId","interactionId","interactionId"])},t.prototype._validateProperties=function(t){if(Array.isArray(t)||"object"!=typeof t)throw new TypeError("CustomEvent: properties must be an object");var e;try{e=JSON.stringify(t)}catch(t){throw new TypeError("CustomEvent: properties must be JSON serializable.")}if(e.length>32768)throw new RangeError("CustomEvent: properties are "+e.length+" when JSON encoded, exceeding the maximum of 32768.")},t.prototype._validateBooleanProperty=function(t){if(this.properties&&this.properties.hasOwnProperty(t)&&"boolean"!=typeof this.properties[t])throw new TypeError("CustomEvent property '"+t+"' must be a Boolean")},t.prototype._validateIsoDateProperty=function(t){if(this.properties&&this.properties.hasOwnProperty(t)&&!f(this.properties[t]))throw new TypeError("CustomEvent property '"+t+"' must be an ISO_8601 date string")},t.prototype.toJSON=function(){var t=s.Z.getJSON("session")||{},e={web_channel:this._channel.channel_id},n=(new Date).toISOString().split(".")[0]+"Z",r=t.send_id,i=this._prepareProperties();return{occurred:n,user:e,send_id:r,body:{name:this.name,value:this.value,transaction:this.transactionId,interaction_id:this.interactionId,interaction_type:this.interactionType,template_type:this.templateType,session_id:t.id,properties:Object.keys(i).length?i:void 0}}},t.prototype.track=function(){return c(this,void 0,void 0,(function(){return l(this,(function(t){switch(t.label){case 0:return[4,(0,i.G1)(this._channel.opt_in)];case 1:return t.sent()?[4,this._prepareInteractionId()]:[2,{ok:!1,message:"Channel is not opted in or analytics/data-collection are disabled."}];case 2:return t.sent(),this.validate(),[4,(0,o.Z)(r.Z.paths.custom_events,{method:"post",body:this.toJSON()})];case 3:return[2,t.sent().json()]}}))}))},t}(),h=p;Object.defineProperty(p,"templates",{value:{account:n(3774).Z,media:n(1396).Z,retail:n(8193).Z}})},3774:function(t,e,n){"use strict";var r,i=n(5858),o=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=function(t){function e(e,n,r){void 0===n&&(n={});var i=t.call(this,"registered_account",e,n,r)||this;return i.templateType="account",i}return o(e,t),e.prototype._prepareProperties=function(){return this.value&&(this.properties.ltv=!0),t.prototype._prepareProperties.call(this)},e}(i.Z);e.Z=a},1396:function(t,e,n){"use strict";var r,i=n(5858),o=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=function(t){function e(e,n,r,i){void 0===r&&(r={});var o=t.call(this,e,n,r,i)||this;return o.templateType="media",o}return o(e,t),e.prototype.validate=function(){this._validateBooleanProperty("feature"),this._validateIsoDateProperty("published_date"),t.prototype.validate.call(this)},e.prototype._prepareProperties=function(){return this.value&&(this.properties.ltv=!0),t.prototype._prepareProperties.call(this)},e}(i.Z),s=function(t){function e(e,n,r){return void 0===n&&(n={}),t.call(this,"browsed_content",e,n,r)||this}return o(e,t),e}(a),u=function(t){function e(e,n,r){return void 0===n&&(n={}),t.call(this,"consumed_content",e,n,r)||this}return o(e,t),e}(a),c=function(t){function e(e,n,r){return void 0===n&&(n={}),t.call(this,"starred_content",e,n,r)||this}return o(e,t),e}(a),l=function(t){function e(e,n,r,i){void 0===r&&(r={});var o=t.call(this,"shared_content",void 0,r,i)||this;return o.properties.source=e,o.properties.medium=n,o}return o(e,t),e}(a);e.Z={_MediaEvent:a,BrowsedContentEvent:s,ConsumedContentEvent:u,StarredContentEvent:c,SharedContentEvent:l}},8193:function(t,e,n){"use strict";var r,i=n(5858),o=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),a=function(t){function e(e,n,r,i){void 0===r&&(r={});var o=t.call(this,e,n,r,i)||this;return o.templateType="retail",o}return o(e,t),e.prototype.validate=function(){this._validateBooleanProperty("new_item"),t.prototype.validate.call(this)},e}(i.Z),s=function(t){function e(e,n,r){return void 0===n&&(n={}),t.call(this,"browsed",e,n,r)||this}return o(e,t),e}(a),u=function(t){function e(e,n,r){return void 0===n&&(n={}),t.call(this,"added_to_cart",e,n,r)||this}return o(e,t),e}(a),c=function(t){function e(e,n,r){return void 0===n&&(n={}),t.call(this,"purchased",e,n,r)||this}return o(e,t),e.prototype._prepareProperties=function(){return this.value&&(this.properties.ltv=!0),t.prototype._prepareProperties.call(this)},e}(a),l=function(t){function e(e,n,r){return void 0===n&&(n={}),t.call(this,"starred_product",e,n,r)||this}return o(e,t),e}(a),f=function(t){function e(e,n,r,i){void 0===r&&(r={});var o=t.call(this,"shared_product",void 0,r,i)||this;return o.properties.source=e,o.properties.medium=n,o}return o(e,t),e}(a);e.Z={_RetailEvent:a,AddedToCartEvent:u,BrowsedEvent:s,PurchasedEvent:c,StarredProductEvent:l,SharedProductEvent:f}},5731:function(t,e,n){"use strict";n.d(e,{Aj:function(){return s},ZF:function(){return u},uy:function(){return a}});var r=n(7834),i=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},o=function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},u=function(){function t(t,e,n){this._client=t,this._locale=e,this._cache=n}return t.prototype.get=function(){return o(this,void 0,void 0,(function(){var t,e=this;return a(this,(function(n){switch(n.label){case 0:return[4,this._locale()];case 1:return t=n.sent(),[2,this._cache.get(this._cacheKey(t),(function(n){return o(e,void 0,void 0,(function(){var e;return a(this,(function(o){switch(o.label){case 0:return[4,this._client.get({locale:t,ifModifiedSince:n})];case 1:return(e=o.sent())===i.ZF?[2,r.b2]:[2,e]}}))}))}))]}}))}))},t.prototype._cacheKey=function(t){var e,n;return"remote_data:"+[null!==(e=t.language)&&void 0!==e?e:"default",null!==(n=t.country)&&void 0!==n?n:"default"].join("-")},t}();e.ZP=u;var c=function(){function t(t){this._remote=t}return t.prototype.get=function(t){return o(this,void 0,void 0,(function(){var e,n,r,i,o,u;return a(this,(function(a){switch(a.label){case 0:return[4,this.list()];case 1:e=a.sent();try{for(n=s(e),r=n.next();!r.done;r=n.next())if((i=r.value).id===t)return[2,i]}catch(t){o={error:t}}finally{try{r&&!r.done&&(u=n.return)&&u.call(n)}finally{if(o)throw o.error}}return[2,null]}}))}))},t.prototype.list=function(){return o(this,void 0,void 0,(function(){var t,e;return a(this,(function(n){switch(n.label){case 0:return[4,this._remote.get()];case 1:return t=n.sent(),e=[],t.filter(i.uy).forEach((function(t){t.data.preference_forms.forEach((function(t){return e.push(t.form)}))})),[2,e]}}))}))},t}(),l=Object.freeze({exists:!1,eligible:!1,data:null}),f=function(){function t(t,e){this._remote=t,this._provider=e}return t.prototype.get=function(t){return o(this,void 0,void 0,(function(){var e,r;return a(this,(function(i){switch(i.label){case 0:return[4,this._list()];case 1:return e=i.sent(),r=e.filter((function(e){return e.object.name===t})),r.length?[4,n.e(548).then(n.bind(n,8548))]:[2,l];case 2:return[2,(0,i.sent().default)(r,this._provider)]}}))}))},t.prototype._list=function(){return o(this,void 0,void 0,(function(){var t,e;return a(this,(function(n){switch(n.label){case 0:return[4,this._remote.get()];case 1:return t=n.sent(),e=[],t.filter(i.Aj).forEach((function(t){t.data.feature_flags.forEach((function(t){var n=t.flag,r=t.created,i=t.last_updated;e.push({object:n,meta:{created:r,lastModified:i}})}))})),[2,e]}}))}))},t}()},470:function(t,e,n){"use strict";n.d(e,{B:function(){return u},h:function(){return c}});var r=n(7362),i=n(9466),o=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},a=function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},a=function(t,e){for(var n=0,r=e.length,i=t.length;nthis._getExpiry(t)},t.prototype.info=function(t){var e=this._makeKey(t),n=this._getValue(e);return n===s?{cachedAt:0,exists:!1,expired:!0}:{cachedAt:this._getCachedAt(n),exists:!0,expired:this._getExpired(n)}},t.prototype.load=function(t,e){var n=this._makeKey(t),r=this._getValue(n);return r===s?s:this._getExpired(r)?(this._storage.removeItem(n),e?r.data:s):r.data},t.prototype.store=function(t,e){var n={cachedAt:this._getNow(),data:e};this._storage.setItem(this._makeKey(t),JSON.stringify(n))},t.prototype.invalidate=function(t){this._storage.removeItem(this._makeKey(t))},t.prototype._makeKey=function(t){return this._prefix+":"+t},t}(),l=function(){function t(t){this._storageManager=t}return t.prototype.get=function(t,e){return r(this,void 0,void 0,(function(){var n,r,o;return i(this,(function(i){switch(i.label){case 0:return n=this._storageManager.info(t),(r=this._storageManager.load(t,!0))===s||n.expired?[4,e(n.exists?n.cachedAt:void 0)]:[2,r];case 1:if((o=i.sent())===u){if(!n.exists||r===s)throw new Error("unable to cache a missed value");return this._storageManager.store(t,r),[2,r]}return this._storageManager.store(t,o),[2,o]}}))}))},t.prototype.invalidate=function(t){this._storageManager.invalidate(t)},t}(),f=function(){function t(t,e){var n=t.keyFn,r=t.indexKey;this._storageManager=e,this._indexKey=r,this._keyFn=n}return t.prototype.values=function(){var t=this,e=[],n=this._storageManager.load(this._indexKey);return n===s?[]:(n.forEach((function(r){var i=t._storageManager.load(r);i===s?t._storageManager.store(t._indexKey,n.filter((function(t){return t!==r}))):e.push(i)})),e)},t.prototype.push=function(t){var e=this._keyFn(t);this._pushToIndex(e),this._storageManager.store(e,t)},t.prototype._pushToIndex=function(t){var e=this._storageManager.load(this._indexKey);if(e!==s){var n=e.filter((function(e){return e!==t}));this._storageManager.store(this._indexKey,a(a([],o(n)),[t]))}else this._storageManager.store(this._indexKey,[t])},t}()},9466:function(t,e,n){"use strict";var r=n(7362),i=(0,n(1288).Z)((function(){return r.Z.storagePrefix+":db"}),"blob",{keyPath:"type"},(function(t){var e;return null===(e=t.target.result)||void 0===e?void 0:e.value}),1);e.Z=i},1288:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var r,i=n(8730),o=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},a=function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},o=function(t,e){for(var n=0,r=e.length,i=t.length;n36e5*e}}},6864:function(t,e,n){"use strict";function r(){return window.location}n.d(e,{Z:function(){return r}})},7834:function(t,e,n){"use strict";n.d(e,{L:function(){return a},f:function(){return o}});var r,i=(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=function(t){function e(n){void 0===n&&(n="Predicate was not satisfied.");var r=t.call(this,n)||this;return Object.setPrototypeOf(r,e.prototype),Error.captureStackTrace&&Error.captureStackTrace(r,e),r.name=r.constructor.name,r}return i(e,t),e}(TypeError),a=function(t){function e(n,r){void 0===r&&(r="Request Error");var i=t.call(this,r)||this;return i._statusCode=n,Object.setPrototypeOf(i,e.prototype),Error.captureStackTrace&&Error.captureStackTrace(i,e),i.name=i.constructor.name,i}return i(e,t),Object.defineProperty(e.prototype,"statusCode",{get:function(){return this._statusCode},enumerable:!1,configurable:!0}),e}(Error)},5313:function(t,e,n){"use strict";var r=n(7362),i=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},o=["tags","channel"];function a(t){return r.Z.storagePrefix+":"+t}e.Z={set:function(t,e){var n;return null===(n=self.localStorage)||void 0===n?void 0:n.setItem(a(t),e)},get:function(t){var e;return null===(e=self.localStorage)||void 0===e?void 0:e.getItem(a(t))},setJSON:function(t,e){return this.set(t,JSON.stringify(e))},getJSON:function(t){var e=this.get(t);if(e)return JSON.parse(e)},clear:function(){var t;null===(t=self.localStorage)||void 0===t||t.clear()},remove:function(t){var e;return null===(e=self.localStorage)||void 0===e?void 0:e.removeItem(a(t))},onStorage:function(t){return function(e){var n,a;try{for(var s=i(o),u=s.next();!u.done;u=s.next()){var c=u.value,l=r.Z.storagePrefix+":"+c;if(e.key===l){var f={};f[c]=JSON.parse(e.newValue||""),t(f)}}}catch(t){n={error:t}}finally{try{u&&!u.done&&(a=s.return)&&a.call(s)}finally{if(n)throw n.error}}}}}},8893:function(t,e){"use strict";e.Z=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},3653:function(t,e,n){"use strict";var r;n.d(e,{Z:function(){return o}});var i=new Uint8Array(16);function o(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(i)}},3958:function(t,e,n){"use strict";for(var r=n(7283),i=[],o=0;o<256;++o)i.push((o+256).toString(16).substr(1));e.Z=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(i[t[e+0]]+i[t[e+1]]+i[t[e+2]]+i[t[e+3]]+"-"+i[t[e+4]]+i[t[e+5]]+"-"+i[t[e+6]]+i[t[e+7]]+"-"+i[t[e+8]]+i[t[e+9]]+"-"+i[t[e+10]]+i[t[e+11]]+i[t[e+12]]+i[t[e+13]]+i[t[e+14]]+i[t[e+15]]).toLowerCase();if(!(0,r.Z)(n))throw TypeError("Stringified UUID is invalid");return n}},2045:function(t,e,n){"use strict";var r=n(3653),i=n(3958);e.Z=function(t,e,n){var o=(t=t||{}).random||(t.rng||r.Z)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,e){n=n||0;for(var a=0;a<16;++a)e[n+a]=o[a];return e}return(0,i.Z)(o)}},7283:function(t,e,n){"use strict";var r=n(8893);e.Z=function(t){return"string"==typeof t&&r.Z.test(t)}}},r={};function i(t){var e=r[t];if(void 0!==e)return e.exports;var o=r[t]={exports:{}};return n[t].call(o.exports,o,o.exports,i),o.exports}i.m=n,i.d=function(t,e){for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.f={},i.e=function(t){return Promise.all(Object.keys(i.f).reduce((function(e,n){return i.f[n](t,e),e}),[]))},i.u=function(t){return"ua-"+t+".min.js"},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},t={},e="web-push-sdk:",i.l=function(n,r,o,a){if(t[n])t[n].push(r);else{var s,u;if(void 0!==o)for(var c=document.getElementsByTagName("script"),l=0;l-1&&!t;)t=n[r--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i.p=t}(),function(){var t={630:0};i.f.j=function(e,n){var r=i.o(t,e)?t[e]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise((function(n,i){r=t[e]=[n,i]}));n.push(r[2]=o);var a=i.p+i.u(e),s=new Error;i.l(a,(function(n){if(i.o(t,e)&&(0!==(r=t[e])&&(t[e]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;s.message="Loading chunk "+e+" failed.\n("+o+": "+a+")",s.name="ChunkLoadError",s.type=o,s.request=a,r[1](s)}}),"chunk-"+e,e)}};var e=function(e,n){var r,o,a=n[0],s=n[1],u=n[2],c=0;if(a.some((function(e){return 0!==t[e]}))){for(r in s)i.o(s,r)&&(i.m[r]=s[r]);if(u)u(i)}for(e&&e(n);c0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};function f(t){var e=Intl.DateTimeFormat().resolvedOptions(),n=e.timeZone,r=l(e.locale.split("-"),2),i=r[0],o=r[1],a=(null==t?void 0:t.language)||i,s=(null==t?void 0:t.country)||o;!s&&navigator.languages&&(s=navigator.languages.reduce((function(t,e){return t||(t=e.includes("-")?e.split("-")[1]:null),t}),null)||"");return{localeCountry:s,localeLanguage:a,timezone:n}}var p=function(){return p=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},_=function(t,e){for(var n=0,r=e.length,i=t.length;n0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},D=function(){function t(t){this._getAudience=t}return t.prototype.set=function(t){return B(this,void 0,void 0,(function(){return L(this,(function(e){switch(e.label){case 0:return[4,(0,v.B)()];case 1:return e.sent()?[2,this.send(this.buildSetPayload(t))]:(console.warn("Data collection is disabled. Setting attributes is not allowed."),[2,!1])}}))}))},t.prototype.remove=function(){for(var t=[],e=0;e0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},Q=function(t,e){for(var n=0,r=e.length,i=t.length;n0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},st=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},ut=function(t){function e(e){var n=t.call(this)||this;return n.storeName=e,n._tagList={},n.tagMap=new Map,n._load(),n}return rt(e,t),e.prototype.has=function(t,e){void 0===e&&(e="device"),console.warn("Tags.has() is deprecated, and will be removed in a future version.");var n=this.tagMap.get(e);return!!n&&n.has(t)},e.prototype.add=function(t,e){var n;return void 0===e&&(e=""),it(this,void 0,void 0,(function(){return ot(this,(function(r){switch(r.label){case 0:return[4,(0,v.B)()];case 1:return r.sent()?(e=this._validateGroup(e),this.has(t,e)?[2,!0]:(this.tagMap.has(e)?null===(n=this.tagMap.get(e))||void 0===n||n.add(t):this.tagMap.set(e,new Set([t])),[2,this._send(I.ADD,[t],e)])):(console.warn("Data collection is disabled. Adding tags is not allowed."),[2,!1])}}))}))},e.prototype.remove=function(t,e){var n;return void 0===e&&(e=""),it(this,void 0,void 0,(function(){return ot(this,(function(r){return e=this._validateGroup(e),this.has(t,e)?(null===(n=this.tagMap.get(e))||void 0===n||n.delete(t),[2,this._send(I.REMOVE,[t],e)]):[2,!0]}))}))},e.prototype.clear=function(){this.tagMap=new Map,this.set([],"device")},e.prototype.set=function(t,e){return void 0===e&&(e=""),it(this,void 0,void 0,(function(){return ot(this,(function(n){switch(n.label){case 0:return[4,(0,v.B)()];case 1:return!n.sent()&&t.length?(console.warn("Data collection is disabled. Setting tags is not allowed."),[2,!1]):(e=this._validateGroup(e),this.tagMap.set(e,new Set(t)),[2,this._send(I.SET,t,e)])}}))}))},Object.defineProperty(e.prototype,"list",{get:function(){var t,e;console.warn("Tags.list is deprecated, and will be removed in a future version.");var n={};try{for(var r=at(this.tagMap),i=r.next();!i.done;i=r.next()){var o=st(i.value,2),a=o[0],s=o[1];s.size&&(n[a]=Array.from(s))}}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}return n},enumerable:!1,configurable:!0}),e.prototype._load=function(t){var e,n;void 0===t&&(t=A.Z.getJSON(this.storeName));var r=new Map;try{if(t)try{for(var i=at(Object.keys(t)),o=i.next();!o.done;o=i.next()){var a=o.value;r.set(a,new Set(t[a]))}}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}}catch(t){(0,nt.Z)("Error loading tags:",t)}return this.tagMap=r,this.tagMap},e.prototype._send=function(t,e,n){return it(this,void 0,void 0,(function(){return ot(this,(function(r){return this._store(),[2,this._apply(t,e,n)]}))}))},e.prototype.sync=function(t){this._load(t),this._store()},e.prototype._store=function(){var t=this.list;if(t!==this._tagList){A.Z.setJSON("tags",t),this._tagList=t;var e=new CustomEvent("tags",{detail:t});this.dispatchEvent(e)}},e}(e.EventTarget);function ct(t,e,n){var r=t.storeName,i=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return rt(r,t),r.prototype._apply=function(t,n,r){return e(t,n,r)},r.prototype._validateGroup=function(t){return n(t)},r}(ut);return new i(r)}var lt=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},ft=function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},ht=function(t,e){for(var n=0,r=e.length,i=t.length;n0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},Ot=function(t,e){for(var n=0,r=e.length,i=t.length;n0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},qt=function(t,e){for(var n=0,r=e.length,i=t.length;n10?(console.error("Airship SDK: Maximum named user changes reached"),[2,!1]):(i=new CustomEvent("channel",{detail:this}),this.dispatchEvent(i),[2,!0]);case 6:return o=a.sent(),console.error("Airship SDK: Error while storing channel",o),[2,!1];case 7:return[2]}}))}))},e.prototype._update=function(t){return void 0===t&&(t=!0),console.warn("Channel._update() is deprecated and will be removed in the future. Please use Channel.update() instead."),this.update(t)},e.prototype.update=function(t){return void 0===t&&(t=!0),Dt(this,void 0,void 0,(function(){var e,n;return Ft(this,(function(r){switch(r.label){case 0:return e=this.toJSON(),t&&delete e.opt_in,[4,(0,v.B)()];case 1:if(!r.sent())return console.warn("Data collection is disabled. Skipping channel update."),[2,!1];r.label=2;case 2:return r.trys.push([2,4,,5]),[4,(0,b.Z)(this.path,{method:"put",body:{channel:e}})];case 3:return r.sent(),[2,!0];case 4:return n=r.sent(),console.error("Airship SDK: Error while updating channel",n),[2,!1];case 5:return[2]}}))}))},e.prototype._applyTags=function(t,e,r){return Dt(this,void 0,void 0,(function(){var i,o,a;return Ft(this,(function(s){switch(s.label){case 0:(o={audience:{web_channel:this.channel_id}})[t]=((a={})[r]=e,a),i=o,s.label=1;case 1:return s.trys.push([1,3,,4]),[4,(0,b.Z)(n.Z.paths.tags,{method:"post",body:i})];case 2:return[2,s.sent().ok];case 3:return s.sent(),[2,!1];case 4:return[2]}}))}))},e.prototype._validateTagGroup=function(t){return t||"device"},e}(e.EventTarget),Kt=Vt,Wt=["web","email","sms","open","ios","android","amazon"];var Jt=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},zt=function(t,e){for(var n=0,r=e.length,i=t.length;n0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},fe=function(t,e){for(var n=0,r=e.length,i=t.length;nthis._namedUserTtlMs?[2]:[4,this._db.get(he)];case 2:return(e=n.sent())&&!t&&this.setNamedUserAssociatedTimestamp(),[2,e]}}))}))},t.prototype.setNamedUserId=function(t){return ue(this,void 0,void 0,(function(){return ce(this,(function(e){switch(e.label){case 0:return[4,this._db.set(he,t)];case 1:return e.sent(),[4,this.setNamedUserAssociatedTimestamp()];case 2:return e.sent(),[2]}}))}))},t.prototype.clearNamedUserId=function(){return ue(this,void 0,void 0,(function(){return ce(this,(function(t){switch(t.label){case 0:return[4,this._db.remove(he)];case 1:return t.sent(),[4,this.clearNamedUserAssociatedTimestamp()];case 2:return t.sent(),[2]}}))}))},t.prototype.setNamedUserAssociatedTimestamp=function(){return ue(this,void 0,void 0,(function(){return ce(this,(function(t){return this._db.set(de,String(this._getNow())),[2]}))}))},t.prototype.clearNamedUserAssociatedTimestamp=function(){return ue(this,void 0,void 0,(function(){return ce(this,(function(t){return this._db.remove(de),[2]}))}))},t.prototype.getNamedUserAssociatedTimestamp=function(){return ue(this,void 0,void 0,(function(){var t,e;return ce(this,(function(n){switch(n.label){case 0:return[4,this._db.get(de)];case 1:return(t=n.sent())?(e=Number.parseInt(t,10),Number.isNaN(e)?[4,this.clearNamedUserAssociatedTimestamp()]:[3,3]):[2];case 2:return n.sent(),[2];case 3:return[2,e]}}))}))},t.prototype.getPendingTagMutations=function(){return ue(this,void 0,void 0,(function(){var t;return ce(this,(function(e){switch(e.label){case 0:return[4,this._db.get(ve)];case 1:return[2,null!=(t=e.sent())?t:[]]}}))}))},t.prototype.setPendingTagMutations=function(t){return ue(this,void 0,void 0,(function(){return ce(this,(function(e){switch(e.label){case 0:return[4,this._db.set(ve,t)];case 1:return e.sent(),[2]}}))}))},t.prototype.appendTagMutations=function(t,e){return ue(this,void 0,void 0,(function(){var n;return ce(this,(function(r){switch(r.label){case 0:return[4,this.getTagMutations(t)];case 1:return n=r.sent(),[4,this._db.set(ge(t),n.concat.apply(n,fe([],le(e))))];case 2:return r.sent(),[2]}}))}))},t.prototype.getTagMutations=function(t){return ue(this,void 0,void 0,(function(){var e;return ce(this,(function(n){switch(n.label){case 0:return[4,this._db.get(ge(t))];case 1:return[2,null!=(e=n.sent())?e:[]]}}))}))},t.prototype.getPendingAttributeMutations=function(){return ue(this,void 0,void 0,(function(){var t;return ce(this,(function(e){switch(e.label){case 0:return[4,this._db.get(ye)];case 1:return[2,null!=(t=e.sent())?t:[]]}}))}))},t.prototype.setPendingAttributeMutations=function(t){return ue(this,void 0,void 0,(function(){return ce(this,(function(e){switch(e.label){case 0:return[4,this._db.set(ye,t)];case 1:return e.sent(),[2]}}))}))},t.prototype.appendAttributeMutations=function(t,e){return ue(this,void 0,void 0,(function(){var n;return ce(this,(function(r){switch(r.label){case 0:return[4,this.getAttributeMutations(t)];case 1:return n=r.sent(),[4,this._db.set(me(t),n.concat.apply(n,fe([],le(e))))];case 2:return r.sent(),[2]}}))}))},t.prototype.getAttributeMutations=function(t){return ue(this,void 0,void 0,(function(){var e;return ce(this,(function(n){switch(n.label){case 0:return[4,this._db.get(me(t))];case 1:return[2,null!=(e=n.sent())?e:[]]}}))}))},t.prototype.getPendingSubscriptionListMutations=function(){return ue(this,void 0,void 0,(function(){var t;return ce(this,(function(e){switch(e.label){case 0:return[4,this._db.get(be)];case 1:return[2,null!=(t=e.sent())?t:[]]}}))}))},t.prototype.setPendingSubscriptionListMutations=function(t){return ue(this,void 0,void 0,(function(){return ce(this,(function(e){switch(e.label){case 0:return[4,this._db.set(be,t)];case 1:return e.sent(),[2]}}))}))},t.prototype.appendSubscriptionListMutations=function(t,e){return ue(this,void 0,void 0,(function(){var n;return ce(this,(function(r){switch(r.label){case 0:return[4,this.getSubscriptionListMutations(t)];case 1:return n=r.sent(),[4,this._db.set(we(t),n.concat.apply(n,fe([],le(e))))];case 2:return r.sent(),[2]}}))}))},t.prototype.getSubscriptionListMutations=function(t){return ue(this,void 0,void 0,(function(){var e;return ce(this,(function(n){switch(n.label){case 0:return[4,this._db.get(we(t))];case 1:return[2,null!=(e=n.sent())?e:[]]}}))}))},t.prototype.getAssociatedChannels=function(t){return ue(this,void 0,void 0,(function(){var e;return ce(this,(function(n){switch(n.label){case 0:return[4,this._db.get(Se(t))];case 1:return[2,null!=(e=n.sent())?e:[]]}}))}))},t.prototype.appendAssociatedChannel=function(t,e){return ue(this,void 0,void 0,(function(){var n;return ce(this,(function(r){switch(r.label){case 0:return[4,this.getAssociatedChannels(t)];case 1:return n=r.sent(),[4,this._db.set(Se(t),fe(fe([],le(n)),[e]))];case 2:return r.sent(),[2]}}))}))},t.prototype.clearAssociatedChannels=function(t){return ue(this,void 0,void 0,(function(){return ce(this,(function(e){switch(e.label){case 0:return[4,this._db.remove(Se(t))];case 1:return e.sent(),[2]}}))}))},t}(),xe=Pe,Oe=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},Ee=function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},ke=function(t,e){for(var n=0,r=e.length,i=t.length;n0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},Ie=function(t,e){for(var n=0,r=e.length,i=t.length;n0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},qe=function(e){function n(n,r,i,o,a,s,u,c){var l,f=e.call(this)||this;return f._channel=n,f._locale=r,f._storage=i,f._client=o,f._registration=a,f._flags=s,f._lifecycle=u,f._emitter=c,f._mutex=new t.Z,f._ready=f._init(),null===(l=f._emitter)||void 0===l||l.addEventListener("channel",(function(t){return f._onChannel(t)})),f}return Le(n,e),n.prototype.contactId=function(){return De(this,void 0,void 0,(function(){var t=this;return Fe(this,(function(e){switch(e.label){case 0:return[4,this._ready];case 1:return e.sent(),[2,this._mutex.acquireAsync().then((function(){return t._storage.getOrCreateContactId()})).finally((function(){return t._mutex.release()}))]}}))}))},n.prototype._init=function(){return De(this,void 0,void 0,(function(){var t,e,n,r;return Fe(this,(function(i){switch(i.label){case 0:return[4,this._channel()];case 1:return t=i.sent(),[4,this._storage.getNamedUserId()];case 2:return e=i.sent(),t?[4,this._migrate(t,e)]:((0,nt.Z)("contact: initialized without channel"),[2]);case 3:return i.sent()?((0,nt.Z)("contact: successful migration"),[2]):[4,this._resolve(t.id)];case 4:return n=Ge.apply(void 0,[i.sent(),1]),r=n[0],[4,this._applyPendingAttributeMutations(r)];case 5:return i.sent(),[4,this._applyPendingTagMutations(r)];case 6:return i.sent(),[4,this._applyPendingSubscriptionListMutations(r)];case 7:return i.sent(),(0,nt.Z)("contact: initialized"),[2]}}))}))},n.prototype.identify=function(t){return De(this,void 0,void 0,(function(){var e=this;return Fe(this,(function(n){switch(n.label){case 0:return[4,this._ready];case 1:return n.sent(),function(t){if("string"!=typeof t)throw new K("must be a string");if(!t.trim())throw new K("must not be blank")}(t),[2,this._mutex.acquireAsync().then((function(){return e._identify(t)})).then((function(n){return e._lifecycle.accept("contact",Date.now(),{contactId:n,type:"identify",id:t})})).finally((function(){return e._mutex.release()}))]}}))}))},n.prototype._identify=function(t){return De(this,void 0,void 0,(function(){var e,n,r;return Fe(this,(function(i){switch(i.label){case 0:return[4,this._namedUserIdEquals(t)];case 1:return i.sent()?((0,nt.Z)("contact: identify, not setting as user is already identified"),[2,this._storage.getOrCreateContactId()]):[4,this._storage.getNamedUserId()];case 2:return i.sent()?((0,nt.Z)("contact: identify, this contact already has a named user. Creating new contact."),[4,this._storage.clearContactId()]):[3,5];case 3:return e=i.sent(),[4,this._resetStoredContact(e)];case 4:i.sent(),i.label=5;case 5:return[4,this._nonCanonicalChannelId()];case 6:if(!(n=i.sent()))throw new V;return[4,this._doIdentify(t,n)];case 7:return r=i.sent(),(0,nt.Z)("contact: identified",t,n,r),[2,r]}}))}))},n.prototype._namedUserIdEquals=function(t){return De(this,void 0,void 0,(function(){var e;return Fe(this,(function(n){switch(n.label){case 0:return e=t,[4,this._storage.getNamedUserId()];case 1:return[2,e===n.sent()]}}))}))},n.prototype.reset=function(){return De(this,void 0,void 0,(function(){var t=this;return Fe(this,(function(e){switch(e.label){case 0:return[4,this._ready];case 1:return e.sent(),[4,this._mutex.acquireAsync().then((function(){return t._reset()})).then((function(e){return t._lifecycle.accept("contact",Date.now(),{contactId:e,type:"reset"})})).finally((function(){return t._mutex.release()}))];case 2:return e.sent(),[2]}}))}))},n.prototype._reset=function(){return De(this,void 0,void 0,(function(){var t;return Fe(this,(function(e){switch(e.label){case 0:return[4,this._channel()];case 1:return t=e.sent(),[4,this._doReset(null==t?void 0:t.id)];case 2:return[2,e.sent()]}}))}))},n.prototype.editAttributes=function(){return De(this,void 0,void 0,(function(){var t,e,n=this;return Fe(this,(function(r){switch(r.label){case 0:return[4,this._ready];case 1:return r.sent(),[4,this._storage.getOrCreateContactId()];case 2:return t=r.sent(),e=Ht,[4,this._storage.getPendingAttributeMutations()];case 3:return[2,e.apply(void 0,[r.sent(),function(e){return De(n,void 0,void 0,(function(){return Fe(this,(function(n){switch(n.label){case 0:return[4,this._flags.isDataCollectionEnabled()];case 1:if(!n.sent())throw new bt;return[4,this._isRelevantToAirship()];case 2:return n.sent()?[3,4]:[4,this._storage.setPendingAttributeMutations(e)];case 3:case 5:return n.sent(),[2];case 4:return[4,this._applyPendingAttributeMutations(t,e)]}}))}))}])]}}))}))},n.prototype._applyPendingAttributeMutations=function(t,e){return De(this,void 0,void 0,(function(){var n,r;return Fe(this,(function(i){switch(i.label){case 0:return null==e?[3,1]:(r=e,[3,3]);case 1:return[4,this._storage.getPendingAttributeMutations()];case 2:r=i.sent(),i.label=3;case 3:return(n=r).length?[4,this._client.updateAttributes(t,n)]:[3,7];case 4:return i.sent(),[4,this._storage.setPendingAttributeMutations([])];case 5:return i.sent(),[4,this._storage.appendAttributeMutations(t,n)];case 6:i.sent(),this._lifecycle.accept("contact",Date.now(),{contactId:t,type:"attribute_mutation",mutations:n,outcome:Y(n)}),i.label=7;case 7:return[2]}}))}))},n.prototype.editTags=function(){return De(this,void 0,void 0,(function(){var t,e,n=this;return Fe(this,(function(r){switch(r.label){case 0:return[4,this._ready];case 1:return r.sent(),[4,this._storage.getOrCreateContactId()];case 2:return t=r.sent(),e=Re,[4,this._storage.getPendingTagMutations()];case 3:return[2,e.apply(void 0,[r.sent(),function(e){return De(n,void 0,void 0,(function(){return Fe(this,(function(n){switch(n.label){case 0:return[4,this._flags.isDataCollectionEnabled()];case 1:if(!n.sent())throw new bt;return[4,this._isRelevantToAirship()];case 2:return n.sent()?[3,4]:[4,this._storage.setPendingTagMutations(e)];case 3:case 5:return n.sent(),[2];case 4:return[4,this._applyPendingTagMutations(t,e)]}}))}))}])]}}))}))},n.prototype._applyPendingTagMutations=function(t,e){return De(this,void 0,void 0,(function(){var n,r;return Fe(this,(function(i){switch(i.label){case 0:return null==e?[3,1]:(r=e,[3,3]);case 1:return[4,this._storage.getPendingTagMutations()];case 2:r=i.sent(),i.label=3;case 3:return(n=r).length?[4,this._client.updateTags(t,n)]:[3,7];case 4:return i.sent(),[4,this._storage.setPendingTagMutations([])];case 5:return i.sent(),[4,this._storage.appendTagMutations(t,n)];case 6:i.sent(),this._lifecycle.accept("contact",Date.now(),{contactId:t,type:"tag_mutation",mutations:n,outcome:$(n)}),i.label=7;case 7:return[2]}}))}))},n.prototype._createSubscriptionManager=function(){var t=this;return new Te(this._client,this._storage,(function(){return De(t,void 0,void 0,(function(){return Fe(this,(function(t){switch(t.label){case 0:return[4,this._ready];case 1:return t.sent(),[2,this._storage.getOrCreateContactId()]}}))}))}),(function(){return t._flags.isDataCollectionEnabled()}),(function(){return t._isRelevantToAirship()}))},Object.defineProperty(n.prototype,"subscriptions",{get:function(){return this._subscriptions||(this._subscriptions=this._createSubscriptionManager()),this._subscriptions},enumerable:!1,configurable:!0}),n.prototype._applyPendingSubscriptionListMutations=function(t,e){return De(this,void 0,void 0,(function(){var n,r;return Fe(this,(function(i){switch(i.label){case 0:return null==e?[3,1]:(r=e,[3,3]);case 1:return[4,this._storage.getPendingSubscriptionListMutations()];case 2:r=i.sent(),i.label=3;case 3:return(n=r).length?[4,this._client.updateSubscriptions(t,n)]:[3,7];case 4:return i.sent(),[4,this._storage.setPendingSubscriptionListMutations([])];case 5:return i.sent(),[4,this._storage.appendSubscriptionListMutations(t,n)];case 6:i.sent(),this._lifecycle.accept("contact",Date.now(),{contactId:t,type:"subscription_list_mutation",mutations:n,outcome:Tt(n)}),i.label=7;case 7:return[2]}}))}))},n.prototype._registerAndAssociateChannel=function(t){return De(this,void 0,void 0,(function(){var e,n,r;return Fe(this,(function(i){switch(i.label){case 0:return[4,this._ready];case 1:return i.sent(),n=f,[4,this._locale()];case 2:return e=n.apply(void 0,[i.sent()]),[4,t(e)];case 3:return r=i.sent(),[2,this._associateChannel(r)]}}))}))},n.prototype._associateChannel=function(t){return De(this,void 0,void 0,(function(){var e;return Fe(this,(function(n){switch(n.label){case 0:return[4,this._storage.getOrCreateContactId()];case 1:return e=n.sent(),[4,this._client.associateChannel(e,t)];case 2:return n.sent(),[4,this._storage.appendAssociatedChannel(e,t)];case 3:return n.sent(),[4,this._applyPendingAttributeMutations(e)];case 4:return n.sent(),[4,this._applyPendingTagMutations(e)];case 5:return n.sent(),[4,this._applyPendingSubscriptionListMutations(e)];case 6:return n.sent(),[2]}}))}))},n.prototype.registerEmail=function(t,e){return De(this,void 0,void 0,(function(){var n=this;return Fe(this,(function(r){return[2,this._registerAndAssociateChannel((function(r){return De(n,void 0,void 0,(function(){return Fe(this,(function(n){switch(n.label){case 0:return[4,this._registration.registerEmail(t,Ue(Ue({},e),r))];case 1:return[2,{channelId:n.sent(),platform:"email"}]}}))}))}))]}))}))},n.prototype.registerSms=function(t,e){return De(this,void 0,void 0,(function(){var n=this;return Fe(this,(function(r){return[2,this._registerAndAssociateChannel((function(r){return De(n,void 0,void 0,(function(){return Fe(this,(function(n){switch(n.label){case 0:return[4,this._registration.registerSms(t,Ue(Ue({},e),r))];case 1:return[2,{channelId:n.sent(),platform:"sms"}]}}))}))}))]}))}))},n.prototype.registerOpen=function(t,e){return De(this,void 0,void 0,(function(){var n=this;return Fe(this,(function(r){return[2,this._registerAndAssociateChannel((function(r){return De(n,void 0,void 0,(function(){return Fe(this,(function(n){switch(n.label){case 0:return[4,this._registration.registerOpen(t,Ue(Ue({},e),r))];case 1:return[2,{channelId:n.sent(),platform:"open"}]}}))}))}))]}))}))},n.prototype.associateChannel=function(t,e){return De(this,void 0,void 0,(function(){return Fe(this,(function(n){switch(n.label){case 0:return[4,this._ready];case 1:if(n.sent(),r=t,!Wt.includes(r))throw new gt("invalid platform: "+t);return[2,this._associateChannel({platform:t,channelId:e})]}var r}))}))},n.prototype._migrate=function(t,e){return De(this,void 0,void 0,(function(){var n,r;return Fe(this,(function(i){switch(i.label){case 0:return(n=null==t?void 0:t.named_user_id)?n===e?((0,nt.Z)("contact: old nu matches new nu, no migration needed"),[2,!1]):[4,this._resolve(t.id,!0)]:((0,nt.Z)("contact: no old nu, no migration needed"),[2,!1]);case 1:return r=Ge.apply(void 0,[i.sent(),2]),r[1]?((0,nt.Z)("contact: migration for existing user resolved to anonymous"),[2,!1]):[4,this._storage.setNamedUserId(n)];case 2:return i.sent(),[2,!0]}}))}))},n.prototype._resolve=function(t,e){return De(this,void 0,void 0,(function(){var n,r,i,o,a,s,u;return Fe(this,(function(c){switch(c.label){case 0:return[4,this._storage.getOrCreateContactId()];case 1:return n=c.sent(),[4,this._storage.getNamedUserId()];case 2:return r=c.sent(),(i=!e)?[4,this._storage.sessionResolved()]:[3,4];case 3:i=c.sent(),c.label=4;case 4:return i?[2,[n,!r]]:[4,this._client.resolve(t)];case 5:return o=Ge.apply(void 0,[c.sent(),2]),a=o[0],s=o[1],[4,this._storage.setSessionResolved(!0)];case 6:return c.sent(),u=!r===s,n===a&&u?(this._lifecycle.accept("contact",Date.now(),{contactId:a,type:"resolve"}),[2,[a,s]]):[4,this._storage.setContactId(a)];case 7:return c.sent(),s?[4,this._storage.clearNamedUserId()]:[3,9];case 8:c.sent(),c.label=9;case 9:return[4,this._maybeEmitConflict(n,r)];case 10:return c.sent(),this._lifecycle.accept("contact",Date.now(),{contactId:a,type:"resolve"}),[2,[a,s]]}}))}))},n.prototype._doIdentify=function(t,e){return De(this,void 0,void 0,(function(){var n,r;return Fe(this,(function(i){switch(i.label){case 0:return[4,this._storage.getOrCreateContactId()];case 1:return n=i.sent(),[4,this._client.identify(t,e,{contactId:n})];case 2:return r=i.sent(),n===r?[3,4]:[4,this._maybeEmitConflict(n)];case 3:i.sent(),i.label=4;case 4:return[4,this._storage.setContactId(r)];case 5:return i.sent(),[4,this._storage.setNamedUserId(t)];case 6:return i.sent(),[4,this._storage.setSessionResolved(!0)];case 7:return i.sent(),[2,r]}}))}))},n.prototype._doReset=function(t){return De(this,void 0,void 0,(function(){var e,n,r,i;return Fe(this,(function(o){switch(o.label){case 0:return[4,this._storage.getOrCreateContactId()];case 1:return e=o.sent(),t?[4,this._client.reset(t)]:[3,3];case 2:return n=o.sent(),[3,5];case 3:return[4,this._storage.clearContactId()];case 4:n=o.sent(),o.label=5;case 5:return e===n?[3,8]:(r=this._maybeEmitConflict,i=[e],[4,this._storage.getNamedUserId()]);case 6:return[4,r.apply(this,i.concat([o.sent()]))];case 7:o.sent(),o.label=8;case 8:return[4,this._resetStoredContact(n)];case 9:return o.sent(),[2,n]}}))}))},n.prototype._onChannel=function(t){return De(this,void 0,void 0,(function(){var e,n,r,i;return Fe(this,(function(o){switch(o.label){case 0:return[4,this._ready];case 1:return o.sent(),(e=t.detail)?[4,this._isRelevantToAirship()]:[2];case 2:return o.sent()?[4,this._resolve(e.id)]:[2];case 3:return n=Ge.apply(void 0,[o.sent(),1]),r=n[0],[4,this._applyPendingAttributeMutations(r)];case 4:return o.sent(),[4,this._applyPendingTagMutations(r)];case 5:return o.sent(),[4,this._applyPendingSubscriptionListMutations(r)];case 6:return o.sent(),i=new CustomEvent("_channel_handled"),this.dispatchEvent(i),[2]}}))}))},n.prototype._maybeEmitConflict=function(t,e){return De(this,void 0,void 0,(function(){var n,r,i,o,a,s;return Fe(this,(function(u){switch(u.label){case 0:return[4,this._storage.getAttributeMutations(t)];case 1:return n=u.sent(),[4,this._storage.getTagMutations(t)];case 2:return r=u.sent(),[4,this._storage.getAssociatedChannels(t)];case 3:return i=u.sent(),[4,this._storage.getSubscriptionListMutations(t)];case 4:return o=u.sent(),e||n.length||r.length||i.length||o.length?(a={namedUserId:e,attributes:Y(n),tags:$(r),subscriptions:Mt(o),associatedChannels:i},s=new CustomEvent("conflict",{detail:a}),this.dispatchEvent(s),[2]):[2]}}))}))},Object.defineProperty(n.prototype,"ready",{get:function(){return this._ready},enumerable:!1,configurable:!0}),n.prototype._isRelevantToAirship=function(){return De(this,void 0,void 0,(function(){var t,e,n;return Fe(this,(function(r){switch(r.label){case 0:return[4,this._channel()];case 1:return t=r.sent(),[4,this._storage.getOrCreateContactId()];case 2:return e=r.sent(),[4,this._storage.getAssociatedChannels(e)];case 3:return n=r.sent(),[2,!!t||!!n.length]}}))}))},n.prototype._nonCanonicalChannelId=function(){var t;return De(this,void 0,void 0,(function(){var e,n,r;return Fe(this,(function(i){switch(i.label){case 0:return[4,this._channel()];case 1:return(e=i.sent())?[2,e.id]:[4,this._storage.getOrCreateContactId()];case 2:return n=i.sent(),[4,this._storage.getAssociatedChannels(n)];case 3:return r=i.sent(),[2,null===(t=r[0])||void 0===t?void 0:t.channelId]}}))}))},n.prototype._resetStoredContact=function(t){return De(this,void 0,void 0,(function(){return Fe(this,(function(e){switch(e.label){case 0:return[4,this._storage.setContactId(t)];case 1:return e.sent(),[4,this._storage.clearNamedUserId()];case 2:return e.sent(),[4,this._storage.setPendingAttributeMutations([])];case 3:return e.sent(),[4,this._storage.setPendingTagMutations([])];case 4:return e.sent(),[2]}}))}))},n}(e.EventTarget);function Ve(t,e,n,i,o,a){var s=new xe({prefix:t.storagePrefix,sessionLengthMs:t.contacts.sessionLengthMs,namedUserTtlMs:t.contacts.namedUserTtlMs,_forceExpireNamedUsers:t.contacts._forceExpireNamedUsers},r.Z,self.sessionStorage),u=function(t,e){var n=new Xt(t,e),r=new y.Gk({prefix:t.storagePrefix,ttlMs:t.cacheTtlMs},self.sessionStorage),i=new y.fU(r),o=new y.ZL({indexKey:"contact",keyFn:function(t){return t.listId+":"+t.scope}},r);return new $t(n,i,o)}({paths:t.paths.contact,storagePrefix:t.storagePrefix,cacheTtlMs:t.subscriptionLists.cacheTtlMs},k(t)),c=new ie({paths:t.paths.contact.registration},k(t));return new qe(e,n,s,u,c,i,o,a)}var Ke=i(5858);var We=36e5;function Je(t,e){if(void 0===t&&(t={}),void 0===e&&(e=!1),n.Z.configured)return n.Z;delete t.paths,delete t.consts,Object.assign(n.Z,t);var r=new URL(n.Z.workerUrl,n.Z.workerUrl.startsWith("/")?self.location.href:void 0);n.Z.deprecatedStoragePrefix=self.btoa(n.Z.storagePrefix+":"+n.Z.appKey+":"+n.Z.workerUrl);var i=r.pathname.replace(/[^/]+$/,"");if(n.Z.storagePrefix=self.btoa(n.Z.storagePrefix+":"+n.Z.appKey+":"+i),n.Z.secureBridgeUrl=function(t){return t.secureIframeUrl||t.secureBridgeUrl?t.secureIframeUrl||t.secureBridgeUrl:t.registrationDomain&&t.secureBridgePath?new URL(t.secureBridgePath,"https://"+t.registrationDomain).href:null}(n.Z),n.Z.registrationDomain?n.Z.secureHost="https://"+n.Z.registrationDomain:n.Z.secureBridgeUrl&&(n.Z.secureHost=new URL(n.Z.secureBridgeUrl).origin),n.Z.debug){var o=e?"secure-bridge":"main";console.log("UA[%s] configured with:",o,n.Z)}return n.Z.contacts.namedUserTtlMs=Math.max(We,n.Z.contacts.namedUserTtlMs),"string"!=typeof n.Z.appVersion&&(console.error("invalid app version "+n.Z.appVersion+" specified; resetting to default"),n.Z.appVersion=n.a),n.Z.configured=!0,n.Z}var ze=i(3058),He=i(6864);function Qe(t,e){var r=t.data[n.Z.storagePrefix];return"*"!==e&&t.origin!==e||!r?{}:r}function Ye(t){var e;return(e={})[n.Z.storagePrefix]=t,e}var $e=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};function Xe(t){t.tags&&((0,nt.Z)("[secure-bridge] Setting channel tags from message data: %o",t.tags),A.Z.setJSON("tags",t.tags)),t.channel&&((0,nt.Z)("[secure-bridge] Setting channel data from message data: %o",t.channel),r.Z.set("channel",t.channel)),t.subscriptionDomain&&((0,nt.Z)("[secure-bridge] Setting subscriptionDomain from message data: %s",t.subscriptionDomain),r.Z.set("subscriptionDomain",t.subscriptionDomain))}var tn=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},en=function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},rn=function(){function t(){this.plugins=new Map,this.loaders=new Map}return Object.defineProperty(t.prototype,"list",{get:function(){var t,e,n=[];try{for(var r=nn(this.plugins.keys()),i=r.next();!i.done;i=r.next()){var o=i.value;n.push(o)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}return n},enumerable:!1,configurable:!0}),t.prototype.load=function(t,e,n){var r=this,i=this.loaders.get(t);if(i)return i;var o=new Promise((function(i){var o={url:e,opts:n,setLoaded:function(t){i(t)}};r.plugins.set(t,o)}));this.loaders.set(t,o);var a=function(t,e,n){void 0===n&&(n=document);var r=n.createElement("script");return r.src=e,r.async=!0,r.setAttribute("rel",t),n.head.appendChild(r),r}(t,e);return a.addEventListener("error",(function(){throw r.loaders.delete(t),new Error("Error while loading plugin at URL: '"+e+"'")})),o},t.prototype._setLoaded=function(t,e,n){var r=this.plugins.get(t);if(!r)throw new Error("Airship Plugin "+t+" does not match any currently loading plugins: "+this.list.join(", "));return r.setLoaded(e(r.opts,n))},t.prototype.get=function(t){return tn(this,void 0,void 0,(function(){var e;return en(this,(function(n){if(e=this.loaders.get(t))return[2,e];throw new Error("The plugin '"+t+"' is not loaded. Make sure you have called plugins.load(...) correctly.")}))}))},t}(),on=rn;function an(t){return void 0===t&&(t=self),!("PushManager"in t)&&!!("safari"in t||navigator.userAgent.match(/Safari/)&&!navigator.userAgent.match(/Chrome/))}function sn(t,e){return e.push_address=t.endpoint,e.web.subscription=t.toJSON().keys,{channel:e}}var un=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},cn=function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=12.1||a.includes("firefox")&&s>=72),l.isAllowedPushRegistrationContext=vn(),l.setDataCollectionEnabled=function(t){return(0,v.h)(t,l)},l.isDataCollectionEnabled=v.B,l._lifecycleEvents=new In,n.Z.secureBridgeUrl&&n.Z.secureBridgeUrl.match(/accengage\.net/)&&!n.Z.mixedRegistrationDomains&&console.warn("WARNING: you should set 'mixedRegistrationDomains' to true if you are migrating from Accengage and were using an Accengage-owned domain"),(0,nt.Z)("[main] Web SDK environment:");var f={isSecure:bn(),isRegistrationDomain:l.isRegistrationDomain,mixedRegistrationDomains:n.Z.mixedRegistrationDomains,secureBridgeUrl:n.Z.secureBridgeUrl,allowedDomains:n.Z.allowedDomains};n.Z.secureBridgeUrl&&(f.sbOriginDifferentFromCurrent=new URL(n.Z.secureBridgeUrl).origin!==window.location.origin),(0,nt.Z)(f);var p,h=(!bn()||!l.isRegistrationDomain||n.Z.mixedRegistrationDomains)&&n.Z.secureBridgeUrl&&new URL(n.Z.secureBridgeUrl).origin!==window.location.origin&&!an();if(h&&!n.Z.secureBridgeUrl&&console.warn("Airship SDK is integrated on a non-secured domain but 'secureIframeUrl' is not provided."),l.hasExistingSubscription=Promise.resolve(),h&&n.Z.secureBridgeUrl){if(function(t,e){(0,nt.Z)("Setting up secure-bridge with %s",e);var i=n.Z.secureHost,o=document.createElement("iframe"),a=new Promise((function(t){o.onload=function(){return t(o)}})),s=new URL(e);function u(t){a.then((function(e){var n;(0,nt.Z)("[main] Sending data to secure-bridge (%s): %o",i,t),null===(n=e.contentWindow)||void 0===n||n.postMessage(Ye(t),i)}))}s.searchParams.append("__ua_secondary_origin",(0,He.Z)().origin),o.style.display="none",o.src=s.toString(),document.body.appendChild(o),window.addEventListener("message",(function(e){var n=Qe(e,i);t._set(n)})),t.addEventListener("tags",(function(t){u({tags:t.tags})})),t.addEventListener("channel",(function(){r.Z.get("channel").then((function(t){u({channel:t})}))})),t.addEventListener("subscriptiondomain",(function(t){u({subscriptionDomain:t.detail})}))}(l,n.Z.secureBridgeUrl),n.Z.mixedRegistrationDomains){var d=new Promise((function(t){l.addEventListener("subscriptiondomain",(function(e){return t(e.detail)}),{once:!0})}));l.hasExistingSubscription=Promise.race([d,(p=1e3,new Promise((function(t){setTimeout(t,p)})))])}}else l._channelPromise.then((function(t){return(0,ze.yj)(t)}));return l.channel=null,l.localeOverride=new u,l.CustomEvent=Ke.Z,l.plugins=new on,l._contactPromise=l.createContact(),window.addEventListener("storage",A.Z.onStorage((function(t){return l._set(t)}))),navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",(function(t){"push"===t.data.type&&((0,nt.Z)("Push event from worker",t),l.dispatchEvent({type:"push",push:t.data.push}))})),l}return jn(o,e),o.prototype.createContact=function(){return Nn(this,void 0,void 0,(function(){var t=this;return Rn(this,(function(e){switch(e.label){case 0:return[4,this._isSetup.promise];case 1:return e.sent(),[2,Ve(n.Z,(function(){return Nn(t,void 0,void 0,(function(){return Rn(this,(function(t){return[2,this.channel]}))}))}),(function(){return Nn(t,void 0,void 0,(function(){return Rn(this,(function(t){return[2,this.localeOverride]}))}))}),{isDataCollectionEnabled:this.isDataCollectionEnabled},this._lifecycleEvents,this)]}}))}))},o.prototype.checkDataCollection=function(){var t=this;return Promise.resolve(this.dataCollectionEnabled).then((function(e){t.dataCollectionEnabledSync=e}))},o.prototype.checkPermission=function(t){return Nn(this,void 0,void 0,(function(){return Rn(this,(function(e){switch(e.label){case 0:return n.Z.mixedRegistrationDomains?[4,this.hasExistingSubscription]:[3,2];case 1:if(e.sent())return[2];e.label=2;case 2:return this.permission&&"granted"!==this.permission&&t.optedIn&&this.isRegistrationDomain&&t.optOut(),[2]}}))}))},o.prototype.heartbeat=function(t){var e=(0,Tn.Z)("heartbeat",24),n=e.after,r=e.store;n&&((0,nt.Z)("SENDING heartbeat"),r(),t.optedIn&&this.isRegistrationDomain?this.register().catch((function(){return t.update()})):t.update())},o.prototype.getChannel=function(){return this._channelPromise},o.prototype._legacySetup=function(){try{var t=A.Z.getJSON("channel");(null==t?void 0:t.channel_id)&&this._setChannel(t),this._isSetup.resolve()}catch(t){throw this._isSetup.reject(t),t}},o.prototype._setup=function(){return Nn(this,void 0,void 0,(function(){var t,e=this;return Rn(this,(function(n){switch(n.label){case 0:return[4,xn()];case 1:return n.sent(),(t=[]).push(r.Z.get("channel").then((function(t){t&&t.channel_id&&e._setChannel(t)})).then((function(){return u.getStoredLocale().then((function(t){e.localeOverride.set(t),e.channel&&e.localeOverride.setChannel(e.channel)}))}))),t.push(r.Z.get("subscriptionDomain").then((function(t){t&&e._setSubscriptionDomain(t)}))),t.push(this.checkDataCollection()),[2,Promise.all(t).then((function(){return e._isSetup.resolve()})).catch((function(t){throw e._isSetup.reject(t),t}))]}}))}))},Object.defineProperty(o.prototype,"disableAnalytics",{get:function(){return r.Z.get(n.Z.consts.DISABLE_ANALYTICS).then((function(t){return!!t}))},set:function(t){r.Z.set(n.Z.consts.DISABLE_ANALYTICS,!!t)},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"dataCollectionEnabled",{get:function(){return(0,v.B)()},set:function(t){(0,v.h)(!!t,this),this.dataCollectionEnabledSync=!!t},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"permission",{get:function(){var t;if(bn())return null===(t=window.Notification)||void 0===t?void 0:t.permission},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"contact",{get:function(){return this._contactPromise},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"lifecycleEvents",{get:function(){return this._lifecycleEvents},enumerable:!1,configurable:!0}),o.prototype.register=function(){return Nn(this,void 0,void 0,(function(){var t=this;return Rn(this,(function(e){return[2,this._registrationMutex.acquireAsync().then((function(){return t._register(!0)})).finally((function(){return t._registrationMutex.release()}))]}))}))},o.prototype.create=function(){return Nn(this,void 0,void 0,(function(){var t=this;return Rn(this,(function(e){return[2,this._registrationMutex.acquireAsync().then((function(){var e,n;return t._register(null!==(n=null===(e=t.channel)||void 0===e?void 0:e.optedIn)&&void 0!==n&&n)})).finally((function(){return t._registrationMutex.release()}))]}))}))},o.prototype._register=function(t){return Nn(this,void 0,void 0,(function(){var e,r,i,o,a;return Rn(this,(function(s){switch(s.label){case 0:if(!an()){if(!bn())return[2,Promise.reject("Registration not possible on a non-secure context.")];if(!this.isRegistrationDomain)return[2,Promise.reject("Domain is not allowed for registration.")]}if(t&&!this.isAllowedPushRegistrationContext)return[2,Promise.reject("Registration cannot happen in this context.")];if(!this.dataCollectionEnabledSync)return[2,Promise.reject("Data collection is disabled. Cannot register user.")];if(!this.isWebPushSupported)return[2,Promise.reject("Web push not supported in browser")];e=null,s.label=1;case 1:return s.trys.push([1,3,,4]),[4,this._workerRegistration];case 2:return e=s.sent(),[3,4];case 3:return s.sent(),[3,4];case 4:return[4,this.hasExistingSubscription];case 5:return(r=s.sent())&&r!==(0,He.Z)().hostname?[2,Promise.reject("An existing registration exists on "+r)]:[4,pn(e,t)];case 6:return i=s.sent(),this.channel?[4,(0,b.Z)(this.channel.path,{method:"put",body:i})]:[3,8];case 7:return o=s.sent(),[3,10];case 8:return[4,(0,b.Z)(n.Z.paths.cra,{method:"post",body:i})];case 9:o=s.sent(),s.label=10;case 10:return[4,o.json()];case 11:return a=s.sent(),An()||A.Z.setJSON(kn,Date.now()),(0,(0,Tn.Z)("heartbeat",24).store)(),this._setSubscriptionDomain((0,He.Z)().hostname),[2,this._setChannel(a)]}}))}))},Object.defineProperty(o.prototype,"_intlDetails",{get:function(){return f(this.localeOverride)},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"_remoteData",{get:function(){var t=this;if(!this._remoteDataProvider){var e=new dn.ZP({paths:n.Z.paths.remote_data,sdkVersion:n.Z.VERSION,appKey:n.Z.appKey},k(n.Z)),r=new y.Gk({ttlMs:n.Z.remoteData.cacheTtlMs,prefix:n.Z.storagePrefix},self.sessionStorage);this._remoteDataProvider=new hn.ZP(e,(function(){return Nn(t,void 0,void 0,(function(){var t;return Rn(this,(function(e){return[2,{country:(t=this._intlDetails).localeCountry,language:t.localeLanguage}]}))}))}),new y.fU(r))}return this._remoteDataProvider},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"preferenceCenters",{get:function(){return this._preferenceCenterManager||(this._preferenceCenterManager=new hn.f6(this._remoteData)),this._preferenceCenterManager},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"featureFlags",{get:function(){var t=this;if(!this._featureFlagManager){var e={contactId:function(){return Nn(t,void 0,void 0,(function(){return Rn(this,(function(t){switch(t.label){case 0:return[4,this.contact];case 1:return[2,t.sent().contactId()]}}))}))},channelId:function(){return Nn(t,void 0,void 0,(function(){return Rn(this,(function(t){switch(t.label){case 0:return[4,this.getChannel()];case 1:return[2,t.sent().id]}}))}))},channelIdDigest:function(){return Nn(t,void 0,void 0,(function(){var t,e;return Rn(this,(function(n){switch(n.label){case 0:return[4,i.e(137).then(i.bind(i,2137))];case 1:return t=n.sent().sha256Digest,[4,this.getChannel()];case 2:return e=n.sent(),[2,t(e.id)]}}))}))},installTimestamp:function(){return Nn(t,void 0,void 0,(function(){return Rn(this,(function(t){return[2,An()]}))}))},deviceTags:function(){return Nn(t,void 0,void 0,(function(){var t,e;return Rn(this,(function(n){return t=A.Z.getJSON("tags"),[2,null!==(e=null==t?void 0:t.device)&&void 0!==e?e:[]]}))}))},analyticsEnabled:function(){return Nn(t,void 0,void 0,(function(){return Rn(this,(function(t){switch(t.label){case 0:return[4,this.disableAnalytics];case 1:return[2,!t.sent()]}}))}))},locale:function(){return Nn(t,void 0,void 0,(function(){return Rn(this,(function(t){return[2,this.localeOverride]}))}))},location:function(){return Nn(t,void 0,void 0,(function(){var t,e;return Rn(this,(function(n){switch(n.label){case 0:return[4,null===(e=null===navigator||void 0===navigator?void 0:navigator.permissions)||void 0===e?void 0:e.query({name:"geolocation"})];case 1:return(t=n.sent())?[2,t.state]:[2,"not_determined"]}}))}))},notificationDisplay:function(){return Nn(t,void 0,void 0,(function(){var t,e;return Rn(this,(function(n){switch(n.label){case 0:return[4,null===(e=null===navigator||void 0===navigator?void 0:navigator.permissions)||void 0===e?void 0:e.query({name:"notifications"})];case 1:return(t=n.sent())?[2,t.state]:[2,"not_determined"]}}))}))},notificationOptIn:function(){return Nn(t,void 0,void 0,(function(){return Rn(this,(function(t){switch(t.label){case 0:return[4,this.getChannel()];case 1:return[2,t.sent().optedIn]}}))}))},appVersion:function(){return Nn(t,void 0,void 0,(function(){return Rn(this,(function(t){return[2,n.Z.appVersion]}))}))}};this._featureFlagManager=new hn.TP(this._remoteData,e)}return this._featureFlagManager},enumerable:!1,configurable:!0}),o.prototype._set=function(t){void 0===t&&(t={}),t.channel&&t.channel.channel_id&&this._setChannel(t.channel),t.tags&&this.channel&&this.channel.tags.sync(t.tags),t.subscriptionDomain&&this._setSubscriptionDomain(t.subscriptionDomain),t.session&&this._setSession(t.session)},o.prototype._setSubscriptionDomain=function(t){r.Z.set("subscriptionDomain",t);var e=new CustomEvent("subscriptiondomain",{detail:t});this.dispatchEvent(e)},o.prototype._setChannel=function(t){var e=this;return this.channel?(this.channel.set(t),this.channel):(this.channel=new Kt((function(){return e.contact}),t),this.localeOverride.setChannel(this.channel),this.channel.addEventListener("channel",(function(t){t.channel=t.detail,e.dispatchEvent(t)})),this.channel.tags.addEventListener("tags",(function(t){var n=new CustomEvent("tags",{detail:t.detail});n.tags=t.detail,e.dispatchEvent(n)})),this.channel)},o.prototype._setSession=function(t){A.Z.setJSON("session",t),this._channelPromise.then((function(e){(0,ze.yj)(e,t)}))},Object.defineProperty(o.prototype,"isSetup",{get:function(){return this._isSetup.promise},enumerable:!1,configurable:!0}),o}(e.EventTarget),Ln=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},Un=function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},ar=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};function sr(t){return ir().then((function(e){var n={channel_id:e,body:t.body,title:t.title,icon:t.icon,require_interaction:"reqInt"in t&&Boolean(t.reqInt)},r=function(t){var e,n;if(null==t?void 0:t.onClick){var r=new URL(t.onClick.url),i=r.searchParams;try{for(var o=or(Object.entries(t.onClick.params||{})),a=o.next();!a.done;a=o.next()){var s=ar(a.value,2),u=s[0],c=s[1];i.set(u,c)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}return r.search=i.toString(),r.toString()}}(t);return r&&(n.action={"^u":r}),t.a4sb&&Array.isArray(t.a4sb)&&t.a4sb.length&&(n.buttons=t.a4sb.reduce((function(t,e){var n={id:String(e.id),label:e.title,icon:e.icon,actions:{open:{type:"url",content:e.url}}};return t.push(n),t}),[])),"a4sbigpicture"in t&&(n.image=t.a4sbigpicture),n}))}function ur(t){return"contact"===t.type}function cr(t){return"channel"===t.type}var lr=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},fr=function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};function wr(t,e){var r,i=function(t,e){var r;return br(this,void 0,void 0,(function(){var i,o,a,s,u,c;return gr(this,(function(l){switch(l.label){case 0:return i=function(t){return"a4sid"in t&&"string"==typeof t.a4sid}(e)?sr(e):Promise.resolve(e),[4,i];case 1:return o=l.sent(),(a=[Dn(t)]).push(function(t,e){var n={type:"push",push:e};return t.clients.matchAll().then((function(t){t.forEach((function(t){return t.postMessage(n)}))}))}(t,o)),s=o.title||n.Z.defaultTitle,u=o.require_interaction||!1,c=o.send_id,o.body&&a.push(t.registration.showNotification(s,{body:o.body,icon:o.icon||n.Z.defaultIcon,image:o.image,data:o,actions:null===(r=o.buttons)||void 0===r?void 0:r.map((function(t){return{title:t.label,action:t.id,icon:t.icon}})),requireInteraction:u})),[2,Promise.all(a).catch((function(t){return console.error("error processing notification",t)})).then((function(){return function(t,e){return br(this,void 0,void 0,(function(){var n,r,i,o,a,s,u;return gr(this,(function(c){switch(c.label){case 0:return[4,t.registration.getNotifications()];case 1:if(!(n=c.sent()))return[2];r=Date.now()/1e3;try{for(i=mr(n),o=i.next();!o.done;o=i.next())a=o.value,e&&a.data.send_id===e||a.data.expiry&&a.data.expiry0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]