@v-tilt/browser 1.0.10 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/LICENSE +21 -0
  2. package/dist/array.js +1 -1
  3. package/dist/array.js.map +1 -1
  4. package/dist/array.no-external.js +1 -1
  5. package/dist/array.no-external.js.map +1 -1
  6. package/dist/constants.d.ts +1 -0
  7. package/dist/main.js +1 -1
  8. package/dist/main.js.map +1 -1
  9. package/dist/module.d.ts +57 -4
  10. package/dist/module.js +1 -1
  11. package/dist/module.js.map +1 -1
  12. package/dist/module.no-external.d.ts +57 -4
  13. package/dist/module.no-external.js +1 -1
  14. package/dist/module.no-external.js.map +1 -1
  15. package/dist/rate-limiter.d.ts +52 -0
  16. package/dist/request-queue.d.ts +78 -0
  17. package/dist/request.d.ts +54 -0
  18. package/dist/retry-queue.d.ts +64 -0
  19. package/dist/types.d.ts +1 -0
  20. package/dist/user-manager.d.ts +21 -0
  21. package/dist/utils/event-utils.d.ts +35 -17
  22. package/dist/utils/index.d.ts +21 -0
  23. package/dist/utils/request-utils.d.ts +17 -0
  24. package/dist/vtilt.d.ts +40 -8
  25. package/lib/constants.d.ts +1 -0
  26. package/lib/constants.js +2 -1
  27. package/lib/rate-limiter.d.ts +52 -0
  28. package/lib/rate-limiter.js +80 -0
  29. package/lib/request-queue.d.ts +78 -0
  30. package/lib/request-queue.js +156 -0
  31. package/lib/request.d.ts +54 -0
  32. package/lib/request.js +265 -0
  33. package/lib/retry-queue.d.ts +64 -0
  34. package/lib/retry-queue.js +182 -0
  35. package/lib/types.d.ts +1 -0
  36. package/lib/user-manager.d.ts +21 -0
  37. package/lib/user-manager.js +66 -0
  38. package/lib/utils/event-utils.d.ts +35 -17
  39. package/lib/utils/event-utils.js +247 -118
  40. package/lib/utils/index.d.ts +21 -0
  41. package/lib/utils/index.js +58 -0
  42. package/lib/utils/request-utils.d.ts +17 -0
  43. package/lib/utils/request-utils.js +80 -0
  44. package/lib/vtilt.d.ts +40 -8
  45. package/lib/vtilt.js +161 -11
  46. package/package.json +61 -61
package/dist/main.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";function i(){return i=Object.assign?Object.assign.bind():function(i){for(var a=1;a<arguments.length;a++){var e=arguments[a];for(var t in e)({}).hasOwnProperty.call(e,t)&&(i[t]=e[t])}return i},i.apply(null,arguments)}Object.defineProperty(exports,"__esModule",{value:!0});class a{constructor(i){void 0===i&&(i={}),this.config=this.parseConfigFromScript(i)}parseConfigFromScript(a){if(!document.currentScript)return i({projectId:a.projectId||"",token:a.token||""},a);var e=document.currentScript,t=i({projectId:"",token:""},a);if(t.host=e.getAttribute("data-host")||a.host,t.proxy=e.getAttribute("data-proxy")||a.proxy,t.proxyUrl=e.getAttribute("data-proxy-url")||a.proxyUrl,t.token=e.getAttribute("data-token")||a.token||"",t.projectId=e.getAttribute("data-project-id")||a.projectId||"",t.domain=e.getAttribute("data-domain")||a.domain,t.storage=e.getAttribute("data-storage")||a.storage,t.stringifyPayload="false"!==e.getAttribute("data-stringify-payload"),t.webVitals="true"===e.getAttribute("web-vitals")||"true"===e.getAttribute("data-web-vitals")||a.webVitals,t.proxy&&t.proxyUrl)throw console.error("Error: Both data-proxy and data-proxy-url are specified. Please use only one of them."),new Error("Both data-proxy and data-proxy-url are specified. Please use only one of them.");for(var r of(t.globalAttributes=i({},a.globalAttributes),Array.from(e.attributes)))r.name.startsWith("tb_")&&(t.globalAttributes[r.name.slice(3).replace(/-/g,"_")]=r.value),r.name.startsWith("data-tb-")&&(t.globalAttributes[r.name.slice(8).replace(/-/g,"_")]=r.value);return t}getConfig(){return i({},this.config)}updateConfig(a){this.config=i({},this.config,a)}}var e="vt_session_id",t="vt_window_id",r="vt_primary_window_exists",n="vt_anonymous_id",s="vt_distinct_id",o="vt_device_id",c="vt_user_properties",u="vt_user_state",A="localStorage",l="sessionStorage",h={"Asia/Barnaul":"RU","Africa/Nouakchott":"MR","Africa/Lusaka":"ZM","Asia/Pyongyang":"KP","Europe/Bratislava":"SK","America/Belize":"BZ","America/Maceio":"BR","Pacific/Chuuk":"FM","Indian/Comoro":"KM","Pacific/Palau":"PW","Asia/Jakarta":"ID","Africa/Windhoek":"NA","America/Chihuahua":"MX","America/Nome":"US","Africa/Mbabane":"SZ","Africa/Porto-Novo":"BJ","Europe/San_Marino":"SM","Pacific/Fakaofo":"TK","America/Denver":"US","Europe/Belgrade":"RS","America/Indiana/Tell_City":"US","America/Fortaleza":"BR","America/Halifax":"CA","Europe/Bucharest":"RO","America/Indiana/Petersburg":"US","Europe/Kirov":"RU","Europe/Athens":"GR","America/Argentina/Ushuaia":"AR","Europe/Monaco":"MC","Europe/Vilnius":"LT","Europe/Copenhagen":"DK","Pacific/Kanton":"KI","America/Caracas":"VE","Asia/Almaty":"KZ","Europe/Paris":"FR","Africa/Blantyre":"MW","Asia/Muscat":"OM","America/North_Dakota/Beulah":"US","America/Matamoros":"MX","Asia/Irkutsk":"RU","America/Costa_Rica":"CR","America/Araguaina":"BR","Atlantic/Canary":"ES","America/Santo_Domingo":"DO","America/Vancouver":"CA","Africa/Addis_Ababa":"ET","Africa/Accra":"GH","Pacific/Kwajalein":"MH","Asia/Baghdad":"IQ","Australia/Adelaide":"AU","Australia/Hobart":"AU","America/Guayaquil":"EC","America/Argentina/Tucuman":"AR","Australia/Lindeman":"AU","America/New_York":"US","Pacific/Fiji":"FJ","America/Antigua":"AG","Africa/Casablanca":"MA","America/Paramaribo":"SR","Africa/Cairo":"EG","America/Cayenne":"GF","America/Detroit":"US","Antarctica/Syowa":"AQ","Africa/Douala":"CM","America/Argentina/La_Rioja":"AR","Africa/Lagos":"NG","America/St_Barthelemy":"BL","Asia/Nicosia":"CY","Asia/Macau":"MO","Europe/Riga":"LV","Asia/Ashgabat":"TM","Indian/Antananarivo":"MG","America/Argentina/San_Juan":"AR","Asia/Aden":"YE","Asia/Tomsk":"RU","America/Asuncion":"PY","Pacific/Bougainville":"PG","Asia/Vientiane":"LA","America/Mazatlan":"MX","Africa/Luanda":"AO","Europe/Oslo":"NO","Africa/Kinshasa":"CD","Europe/Warsaw":"PL","America/Grand_Turk":"TC","Asia/Seoul":"KR","Africa/Tripoli":"LY","America/St_Thomas":"VI","Asia/Kathmandu":"NP","Pacific/Pitcairn":"PN","Pacific/Nauru":"NR","America/Curacao":"CW","Asia/Kabul":"AF","Pacific/Tongatapu":"TO","Europe/Simferopol":"UA","Asia/Ust-Nera":"RU","Africa/Mogadishu":"SO","Indian/Mayotte":"YT","Pacific/Niue":"NU","America/Thunder_Bay":"CA","Atlantic/Azores":"PT","Pacific/Gambier":"PF","Europe/Stockholm":"SE","Africa/Libreville":"GA","America/Punta_Arenas":"CL","America/Guatemala":"GT","America/Noronha":"BR","Europe/Helsinki":"FI","Asia/Gaza":"PS","Pacific/Kosrae":"FM","America/Aruba":"AW","America/Nassau":"BS","Asia/Choibalsan":"MN","America/Winnipeg":"CA","America/Anguilla":"AI","Asia/Thimphu":"BT","Asia/Beirut":"LB","Atlantic/Faroe":"FO","Europe/Berlin":"DE","Europe/Amsterdam":"NL","Pacific/Honolulu":"US","America/Regina":"CA","America/Scoresbysund":"GL","Europe/Vienna":"AT","Europe/Tirane":"AL","Africa/El_Aaiun":"EH","America/Creston":"CA","Asia/Qostanay":"KZ","Asia/Ho_Chi_Minh":"VN","Europe/Samara":"RU","Europe/Rome":"IT","Australia/Eucla":"AU","America/El_Salvador":"SV","America/Chicago":"US","Africa/Abidjan":"CI","Asia/Kamchatka":"RU","Pacific/Tarawa":"KI","America/Santiago":"CL","America/Bahia":"BR","Indian/Christmas":"CX","Asia/Atyrau":"KZ","Asia/Dushanbe":"TJ","Europe/Ulyanovsk":"RU","America/Yellowknife":"CA","America/Recife":"BR","Australia/Sydney":"AU","America/Fort_Nelson":"CA","Pacific/Efate":"VU","Europe/Saratov":"RU","Africa/Banjul":"GM","Asia/Omsk":"RU","Europe/Ljubljana":"SI","Europe/Budapest":"HU","Europe/Astrakhan":"RU","America/Argentina/Buenos_Aires":"AR","Pacific/Chatham":"NZ","America/Argentina/Salta":"AR","Africa/Niamey":"NE","Asia/Pontianak":"ID","Indian/Reunion":"RE","Asia/Hong_Kong":"HK","Antarctica/McMurdo":"AQ","Africa/Malabo":"GQ","America/Los_Angeles":"US","America/Argentina/Cordoba":"AR","Pacific/Pohnpei":"FM","America/Tijuana":"MX","America/Campo_Grande":"BR","America/Dawson_Creek":"CA","Asia/Novosibirsk":"RU","Pacific/Pago_Pago":"AS","Asia/Jerusalem":"IL","Europe/Sarajevo":"BA","Africa/Freetown":"SL","Asia/Yekaterinburg":"RU","America/Juneau":"US","Africa/Ouagadougou":"BF","Africa/Monrovia":"LR","Europe/Kiev":"UA","America/Argentina/San_Luis":"AR","Asia/Tokyo":"JP","Asia/Qatar":"QA","America/La_Paz":"BO","America/Bogota":"CO","America/Thule":"GL","Asia/Manila":"PH","Asia/Hovd":"MN","Asia/Tehran":"IR","Atlantic/Madeira":"PT","America/Metlakatla":"US","Europe/Vatican":"VA","Asia/Bishkek":"KG","Asia/Dili":"TL","Antarctica/Palmer":"AQ","Atlantic/Cape_Verde":"CV","Indian/Chagos":"IO","America/Kentucky/Monticello":"US","Africa/Algiers":"DZ","Africa/Maseru":"LS","Asia/Kuala_Lumpur":"MY","Africa/Khartoum":"SD","America/Argentina/Rio_Gallegos":"AR","America/Blanc-Sablon":"CA","Africa/Maputo":"MZ","America/Tortola":"VG","Atlantic/Bermuda":"BM","America/Argentina/Catamarca":"AR","America/Cayman":"KY","America/Puerto_Rico":"PR","Pacific/Majuro":"MH","Europe/Busingen":"DE","Pacific/Midway":"UM","Indian/Cocos":"CC","Asia/Singapore":"SG","America/Boise":"US","America/Nuuk":"GL","America/Goose_Bay":"CA","Australia/Broken_Hill":"AU","Africa/Dar_es_Salaam":"TZ","Africa/Asmara":"ER","Asia/Samarkand":"UZ","Asia/Tbilisi":"GE","America/Argentina/Jujuy":"AR","America/Indiana/Winamac":"US","America/Porto_Velho":"BR","Asia/Magadan":"RU","Europe/Zaporozhye":"UA","Antarctica/Casey":"AQ","Asia/Shanghai":"CN","Pacific/Norfolk":"NF","Europe/Guernsey":"GG","Australia/Brisbane":"AU","Antarctica/DumontDUrville":"AQ","America/Havana":"CU","America/Atikokan":"CA","America/Mexico_City":"MX","America/Rankin_Inlet":"CA","America/Cuiaba":"BR","America/Resolute":"CA","Africa/Ceuta":"ES","Arctic/Longyearbyen":"SJ","Pacific/Guam":"GU","Asia/Damascus":"SY","Asia/Colombo":"LK","Asia/Yerevan":"AM","America/Montserrat":"MS","America/Belem":"BR","Europe/Kaliningrad":"RU","Atlantic/South_Georgia":"GS","Asia/Tashkent":"UZ","Asia/Kolkata":"IN","America/St_Johns":"CA","Asia/Srednekolymsk":"RU","Asia/Yakutsk":"RU","Europe/Prague":"CZ","Africa/Djibouti":"DJ","Asia/Dubai":"AE","Europe/Uzhgorod":"UA","America/Edmonton":"CA","Asia/Famagusta":"CY","America/Indiana/Knox":"US","Asia/Hebron":"PS","Asia/Taipei":"TW","Europe/London":"GB","Africa/Dakar":"SN","Australia/Darwin":"AU","America/Glace_Bay":"CA","Antarctica/Vostok":"AQ","America/Indiana/Vincennes":"US","America/Nipigon":"CA","Asia/Kuwait":"KW","Pacific/Guadalcanal":"SB","America/Toronto":"CA","Africa/Gaborone":"BW","Africa/Bujumbura":"BI","Africa/Lubumbashi":"CD","America/Merida":"MX","America/Marigot":"MF","Europe/Zagreb":"HR","Pacific/Easter":"CL","America/Santarem":"BR","Pacific/Noumea":"NC","America/Sitka":"US","Atlantic/Stanley":"FK","Pacific/Funafuti":"TV","America/Iqaluit":"CA","America/Rainy_River":"CA","America/Anchorage":"US","America/Lima":"PE","Asia/Baku":"AZ","America/Indiana/Vevay":"US","Asia/Ulaanbaatar":"MN","America/Managua":"NI","Asia/Krasnoyarsk":"RU","Asia/Qyzylorda":"KZ","America/Eirunepe":"BR","Europe/Podgorica":"ME","Europe/Chisinau":"MD","Europe/Mariehamn":"AX","Europe/Volgograd":"RU","Africa/Nairobi":"KE","Europe/Isle_of_Man":"IM","America/Menominee":"US","Africa/Harare":"ZW","Asia/Anadyr":"RU","America/Moncton":"CA","Indian/Maldives":"MV","America/Whitehorse":"CA","Antarctica/Mawson":"AQ","Europe/Madrid":"ES","America/Argentina/Mendoza":"AR","America/Manaus":"BR","Africa/Bangui":"CF","Indian/Mauritius":"MU","Africa/Tunis":"TN","Australia/Lord_Howe":"AU","America/Kentucky/Louisville":"US","America/North_Dakota/Center":"US","Asia/Novokuznetsk":"RU","Asia/Makassar":"ID","America/Port_of_Spain":"TT","America/Bahia_Banderas":"MX","Pacific/Auckland":"NZ","America/Sao_Paulo":"BR","Asia/Dhaka":"BD","America/Pangnirtung":"CA","Europe/Dublin":"IE","Asia/Brunei":"BN","Africa/Brazzaville":"CG","America/Montevideo":"UY","America/Jamaica":"JM","America/Indiana/Indianapolis":"US","America/Kralendijk":"BQ","Europe/Gibraltar":"GI","Pacific/Marquesas":"PF","Pacific/Apia":"WS","Europe/Jersey":"JE","America/Phoenix":"US","Africa/Ndjamena":"TD","Asia/Karachi":"PK","Africa/Kampala":"UG","Asia/Sakhalin":"RU","America/Martinique":"MQ","Europe/Moscow":"RU","Africa/Conakry":"GN","America/Barbados":"BB","Africa/Lome":"TG","America/Ojinaga":"MX","America/Tegucigalpa":"HN","Asia/Bangkok":"TH","Africa/Johannesburg":"ZA","Europe/Vaduz":"LI","Africa/Sao_Tome":"ST","America/Cambridge_Bay":"CA","America/Lower_Princes":"SX","America/Miquelon":"PM","America/St_Kitts":"KN","Australia/Melbourne":"AU","Europe/Minsk":"BY","Asia/Vladivostok":"RU","Europe/Sofia":"BG","Antarctica/Davis":"AQ","Pacific/Galapagos":"EC","America/North_Dakota/New_Salem":"US","Asia/Amman":"JO","Pacific/Wallis":"WF","America/Hermosillo":"MX","Pacific/Kiritimati":"KI","Antarctica/Macquarie":"AU","America/Guyana":"GY","Asia/Riyadh":"SA","Pacific/Tahiti":"PF","America/St_Vincent":"VC","America/Cancun":"MX","America/Grenada":"GD","Pacific/Wake":"UM","America/Dawson":"CA","Europe/Brussels":"BE","Indian/Kerguelen":"TF","America/Yakutat":"US","Indian/Mahe":"SC","Atlantic/Reykjavik":"IS","America/Panama":"PA","America/Guadeloupe":"GP","Europe/Malta":"MT","Antarctica/Troll":"AQ","Asia/Jayapura":"ID","Asia/Bahrain":"BH","Asia/Chita":"RU","Europe/Tallinn":"EE","Asia/Khandyga":"RU","America/Rio_Branco":"BR","Atlantic/St_Helena":"SH","Africa/Juba":"SS","America/Adak":"US","Pacific/Saipan":"MP","America/St_Lucia":"LC","America/Inuvik":"CA","Europe/Luxembourg":"LU","Africa/Bissau":"GW","Asia/Oral":"KZ","America/Boa_Vista":"BR","Europe/Skopje":"MK","America/Port-au-Prince":"HT","Pacific/Port_Moresby":"PG","Europe/Andorra":"AD","America/Indiana/Marengo":"US","Africa/Kigali":"RW","Africa/Bamako":"ML","America/Dominica":"DM","Asia/Aqtobe":"KZ","Europe/Istanbul":"TR","Pacific/Rarotonga":"CK","America/Danmarkshavn":"GL","Europe/Zurich":"CH","Asia/Yangon":"MM","America/Monterrey":"MX","Europe/Lisbon":"PT","Asia/Kuching":"MY","Antarctica/Rothera":"AQ","Australia/Perth":"AU","Asia/Phnom_Penh":"KH","America/Swift_Current":"CA","Asia/Aqtau":"KZ","Asia/Urumqi":"CN","Asia/Calcutta":"IN"};function d(){return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,i=>(+i^crypto.getRandomValues(new Uint8Array(1))[0]&15>>+i/4).toString(16))}function m(i){return!(!i||"string"!=typeof i)&&!(i.length<2||i.length>10240)}function f(i,a,e){if(i)if(Array.isArray(i))i.forEach((i,t)=>{a.call(e,i,t)});else for(var t in i)Object.prototype.hasOwnProperty.call(i,t)&&a.call(e,i[t],t)}function p(i,a,e,t){var{capture:r=!1,passive:n=!0}=null!=t?t:{};null==i||i.addEventListener(a,e,{capture:r,passive:n})}var v="undefined"!=typeof window?window:void 0,g="undefined"!=typeof globalThis?globalThis:v,S=null==g?void 0:g.navigator,_=null==g?void 0:g.document,E=null==g?void 0:g.location,y=null==g?void 0:g.fetch,w=(null==g?void 0:g.XMLHttpRequest)&&"withCredentials"in new g.XMLHttpRequest?g.XMLHttpRequest:void 0;null==g||g.AbortController;var P=null==S?void 0:S.userAgent,C=null!=v?v:{};class M{constructor(i,a){void 0===i&&(i="cookie"),this.storageMethod=i,this.domain=a,this.i=void 0,this.t()}o(){return this.storageMethod===A||this.storageMethod===l}u(){return this.o()?this.storageMethod===A?localStorage:sessionStorage:null}A(i){return{value:i,expiry:(new Date).getTime()+18e5}}l(i){var a=this.u();if(a){var t=this.A(i);a.setItem(e,JSON.stringify(t))}}getSessionIdFromCookie(){var i={};return document.cookie.split(";").forEach(function(a){var[e,t]=a.split("=");i[e.trim()]=t}),i[e]||null}setSessionIdFromCookie(i){var a=e+"="+i+"; Max-Age=1800; path=/; secure";this.domain&&(a+="; domain="+this.domain),document.cookie=a}h(i){this.o()?this.l(i):this.setSessionIdFromCookie(i)}m(){var i=this.u();if(i){var a=i.getItem(e);if(!a)return null;var t=null;try{t=JSON.parse(a)}catch(i){return null}return"object"!=typeof t||null===t?null:(new Date).getTime()>t.expiry?(i.removeItem(e),null):t.value}return this.getSessionIdFromCookie()}getSessionId(){var i=this.m();return i||(i=d(),this.h(i)),i}setSessionId(){var i=this.m()||d();return this.h(i),i}p(){var i=this.u();if(i)i.removeItem(e);else{var a="Thu, 01 Jan 1970 00:00:00 UTC";document.cookie=e+"=; expires="+a+"; path=/;",this.domain&&(document.cookie=e+"=; expires="+a+"; path=/; domain="+this.domain+";")}}resetSessionId(){this.p(),this.setSessionId(),this.v(d())}getWindowId(){if(this.i)return this.i;if(this.S()&&v){var i=v.sessionStorage.getItem(t);if(i)return this.i=i,i}var a=d();return this.v(a),a}v(i){i!==this.i&&(this.i=i,this.S()&&v&&v.sessionStorage.setItem(t,i))}S(){if(void 0===v||!v.sessionStorage)return!1;try{var i="__vt_session_storage_test__";return v.sessionStorage.setItem(i,"test"),v.sessionStorage.removeItem(i),!0}catch(i){return!1}}t(){if(this.S()&&v){var i=v.sessionStorage.getItem(r),a=v.sessionStorage.getItem(t);a&&!i?this.i=a:(a&&v.sessionStorage.removeItem(t),this.v(d())),v.sessionStorage.setItem(r,"true"),this.P()}else this.i=d()}P(){v&&this.S()&&p(v,"beforeunload",()=>{v&&v.sessionStorage&&v.sessionStorage.removeItem(r)},{capture:!1})}}class R{constructor(i,a){void 0===i&&(i="localStorage"),this.C=null,this.storageMethod=i,this.domain=a,this.userIdentity=this.loadUserIdentity()}getUserIdentity(){return i({},this.userIdentity)}getDistinctId(){return this.userIdentity.distinct_id}getAnonymousId(){return this.userIdentity.anonymous_id||(this.userIdentity.anonymous_id=this.generateAnonymousId(),this.saveUserIdentity()),this.userIdentity.anonymous_id}getUserProperties(){return i({},this.userIdentity.properties)}identify(a,e,t){if("number"==typeof a&&(a=a.toString(),console.warn("The first argument to vTilt.identify was a number, but it should be a string. It has been converted to a string.")),a)if(this.isDistinctIdStringLike(a))console.error('The string "'+a+'" was set in vTilt.identify which indicates an error. This ID should be unique to the user and not a hardcoded string.');else if("COOKIELESS_SENTINEL_VALUE"!==a){var r=this.userIdentity.distinct_id;if(this.userIdentity.distinct_id=a,!this.userIdentity.device_id){var n=r||this.userIdentity.anonymous_id;this.userIdentity.device_id=n,this.userIdentity.properties=i({},this.userIdentity.properties,{$had_persisted_distinct_id:!0,$device_id:n})}a!==r&&(this.userIdentity.distinct_id=a);var s="anonymous"===this.userIdentity.user_state;a!==r&&s?(this.userIdentity.user_state="identified",e&&(this.userIdentity.properties=i({},this.userIdentity.properties,e)),t&&Object.keys(t).forEach(i=>{i in this.userIdentity.properties||(this.userIdentity.properties[i]=t[i])}),this.saveUserIdentity()):e||t?("anonymous"===this.userIdentity.user_state&&(this.userIdentity.user_state="identified"),e&&(this.userIdentity.properties=i({},this.userIdentity.properties,e)),t&&Object.keys(t).forEach(i=>{i in this.userIdentity.properties||(this.userIdentity.properties[i]=t[i])}),this.saveUserIdentity()):a!==r&&(this.userIdentity.user_state="identified",this.saveUserIdentity())}else console.error('The string "'+a+'" was set in vTilt.identify which indicates an error. This ID is only used as a sentinel value.');else console.error("Unique user id has not been set in vTilt.identify")}setUserProperties(a,e){if(!a&&!e)return!1;var t=this.userIdentity.distinct_id||this.userIdentity.anonymous_id,r=this.getPersonPropertiesHash(t,a,e);return this.C===r?(console.info("VTilt: A duplicate setUserProperties call was made with the same properties. It has been ignored."),!1):(a&&(this.userIdentity.properties=i({},this.userIdentity.properties,a)),e&&Object.keys(e).forEach(i=>{i in this.userIdentity.properties||(this.userIdentity.properties[i]=e[i])}),this.saveUserIdentity(),this.C=r,!0)}getPersonPropertiesHash(i,a,e){return JSON.stringify({distinct_id:i,userPropertiesToSet:a,userPropertiesToSetOnce:e})}reset(a){var e=this.generateAnonymousId(),t=this.userIdentity.device_id,r=a?this.generateDeviceId():t;this.userIdentity={distinct_id:null,anonymous_id:e,device_id:r,properties:{},user_state:"anonymous"},this.C=null,this.saveUserIdentity(),this.userIdentity.properties=i({},this.userIdentity.properties,{$last_vtilt_reset:(new Date).toISOString()}),this.saveUserIdentity()}getEffectiveId(){return this.userIdentity.distinct_id||this.getAnonymousId()}getDeviceId(){return this.userIdentity.device_id}getUserState(){return this.userIdentity.user_state}setDistinctId(i){this.userIdentity.distinct_id=i,this.saveUserIdentity()}setUserState(i){this.userIdentity.user_state=i,this.saveUserIdentity()}updateUserProperties(a,e){a&&(this.userIdentity.properties=i({},this.userIdentity.properties,a)),e&&Object.keys(e).forEach(i=>{i in this.userIdentity.properties||(this.userIdentity.properties[i]=e[i])}),this.saveUserIdentity()}ensureDeviceId(a){this.userIdentity.device_id||(this.userIdentity.device_id=a,this.userIdentity.properties=i({},this.userIdentity.properties,{$had_persisted_distinct_id:!0,$device_id:a}),this.saveUserIdentity())}isDistinctIdStringLikePublic(i){return this.isDistinctIdStringLike(i)}createAlias(i,a){return this.isValidDistinctId(i)?(void 0===a&&(a=this.getDistinctId()||this.getAnonymousId()),this.isValidDistinctId(a)?i===a?(console.warn("alias matches current distinct_id - should use identify instead"),null):{distinct_id:i,original:a}:(console.warn("Invalid original distinct ID"),null)):(console.warn("Invalid alias provided"),null)}isValidDistinctId(i){if(!i||"string"!=typeof i)return!1;var a=i.toLowerCase().trim();return!["null","undefined","false","true","anonymous","anon","user","test","guest","visitor","unknown","none"].includes(a)&&0!==i.trim().length}isDistinctIdStringLike(i){if(!i||"string"!=typeof i)return!1;var a=i.toLowerCase().trim();return["null","undefined","false","true","anonymous","anon","user","test","guest","visitor","unknown","none","demo","example","sample","placeholder"].includes(a)}loadUserIdentity(){var i=this.getStoredValue(n)||this.generateAnonymousId(),a=this.getStoredValue(s)||null,e=this.getStoredValue(o)||this.generateDeviceId(),t=this.getStoredUserProperties(),r=this.getStoredValue(u)||"anonymous";return{distinct_id:a,anonymous_id:i||this.generateAnonymousId(),device_id:e,properties:t,user_state:r}}saveUserIdentity(){this.setStoredValue(n,this.userIdentity.anonymous_id),this.setStoredValue(o,this.userIdentity.device_id),this.setStoredValue(u,this.userIdentity.user_state),this.userIdentity.distinct_id?this.setStoredValue(s,this.userIdentity.distinct_id):this.removeStoredValue(s),this.setStoredUserProperties(this.userIdentity.properties)}generateAnonymousId(){return"anon_"+d()}generateDeviceId(){return"device_"+d()}getStoredValue(i){try{return this.storageMethod===A?localStorage.getItem(i):this.storageMethod===l?sessionStorage.getItem(i):this.getCookieValue(i)}catch(i){return console.warn("Failed to access storage:",i),null}}setStoredValue(i,a){try{this.storageMethod===A?localStorage.setItem(i,a):this.storageMethod===l?sessionStorage.setItem(i,a):this.setCookieValue(i,a)}catch(i){console.warn("Failed to save to storage:",i)}}removeStoredValue(i){this.storageMethod===A?localStorage.removeItem(i):this.storageMethod===l?sessionStorage.removeItem(i):this.removeCookieValue(i)}getStoredUserProperties(){var i=this.getStoredValue(c);if(!i)return{};try{return JSON.parse(i)}catch(i){return{}}}setStoredUserProperties(i){this.setStoredValue(c,JSON.stringify(i))}getCookieValue(i){var a=document.cookie.split(";");for(var e of a){var[t,r]=e.trim().split("=");if(t===i)return decodeURIComponent(r)}return null}setCookieValue(i,a){var e=i+"="+encodeURIComponent(a)+"; Max-Age=31536000; path=/; secure; SameSite=Lax";this.domain&&(e+="; domain="+this.domain),document.cookie=e}removeCookieValue(i){var a=i+"=; Max-Age=0; path=/";this.domain&&(a+="; domain="+this.domain),document.cookie=a}}class U{constructor(i,a){if(this.instance=a,i.webVitals&&v)try{this.webVitals=require("web-vitals"),this.initializeWebVitals()}catch(i){console.warn("web-vitals library not found. Please install it to enable web vitals tracking.",i)}}initializeWebVitals(){if(this.webVitals){var i=i=>{try{if(!(v&&_&&S&&E))return;var{country:a,locale:e}=function(){var i,a;if(!S)return{country:i,locale:a};try{var e=Intl.DateTimeFormat().resolvedOptions().timeZone;i=h[e],a=S.languages&&S.languages.length?S.languages[0]:S.userLanguage||S.language||S.browserLanguage||"en"}catch(i){}return{country:i,locale:a}}();this.instance.capture("web_vital",{name:i.name,value:i.value,delta:i.delta,rating:i.rating,id:i.id,navigationType:i.navigationType,pathname:E.pathname,href:E.href,"user-agent":S.userAgent,locale:e,location:a,referrer:_.referrer})}catch(i){console.error("Error sending web vital:",i)}};this.webVitals.onCLS&&this.webVitals.onCLS(i),this.webVitals.onFCP&&this.webVitals.onFCP(i),this.webVitals.onLCP&&this.webVitals.onLCP(i),this.webVitals.onTTFB&&this.webVitals.onTTFB(i),this.webVitals.onINP&&this.webVitals.onINP(i)}}}function b(i){return"function"==typeof i}function I(i,a,e){try{if(!(a in i))return()=>{};var t=i[a],r=e(t);return b(r)&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__vtilt_wrapped__:{enumerable:!1,value:!0}})),i[a]=r,()=>{i[a]=t}}catch(i){return()=>{}}}class k{constructor(i){var a;this._instance=i,this.M=(null===(a=null==v?void 0:v.location)||void 0===a?void 0:a.pathname)||""}get isEnabled(){return!0}startIfEnabled(){this.isEnabled&&this.monitorHistoryChanges()}stop(){this.R&&this.R(),this.R=void 0}monitorHistoryChanges(){var i,a;if(v&&E&&(this.M=E.pathname||"",v.history)){var e=this;(null===(i=v.history.pushState)||void 0===i?void 0:i.__vtilt_wrapped__)||I(v.history,"pushState",i=>function(a,t,r){i.call(this,a,t,r),e.U("pushState")}),(null===(a=v.history.replaceState)||void 0===a?void 0:a.__vtilt_wrapped__)||I(v.history,"replaceState",i=>function(a,t,r){i.call(this,a,t,r),e.U("replaceState")}),this.I()}}U(i){var a;try{var e=null===(a=null==v?void 0:v.location)||void 0===a?void 0:a.pathname;if(!e||!E||!_)return;if(e!==this.M&&this.isEnabled){var t={navigation_type:i};this._instance.capture("$pageview",t)}this.M=e}catch(a){console.error("Error capturing "+i+" pageview",a)}}I(){if(!this.R&&v){var i=()=>{this.U("popstate")};p(v,"popstate",i),this.R=()=>{v&&v.removeEventListener("popstate",i)}}}}var T="Mobile",B="iOS",x="Android",N="Tablet",D=x+" "+N,K="iPad",L="Apple",O=L+" Watch",G="Safari",V="BlackBerry",F="Samsung",j=F+"Browser",W=F+" Internet",H="Chrome",J=H+" OS",Z=H+" "+B,z="Internet Explorer",q=z+" "+T,X="Opera",Y=X+" Mini",Q="Edge",ii="Microsoft "+Q,ai="Firefox",ei=ai+" "+B,ti="Nintendo",ri="PlayStation",ni="Xbox",si=x+" "+T,oi=T+" "+G,ci="Windows",ui=ci+" Phone",Ai="Nokia",li="Ouya",hi="Generic",di=hi+" "+T.toLowerCase(),mi=hi+" "+N.toLowerCase(),fi="Konqueror",pi="(\\d+(\\.\\d+)?)",vi=new RegExp("Version/"+pi),gi=new RegExp(ni,"i"),Si=new RegExp(ri+" \\w+","i"),_i=new RegExp(ti+" \\w+","i"),Ei=new RegExp(V+"|PlayBook|BB10","i"),yi={"NT3.51":"NT 3.11","NT4.0":"NT 4.0","5.0":"2000",5.1:"XP",5.2:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1",6.4:"10","10.0":"10"};function wi(i,a){return i.toLowerCase().includes(a.toLowerCase())}var Pi=(i,a)=>a&&wi(a,L)||function(i){return wi(i,G)&&!wi(i,H)&&!wi(i,x)}(i),Ci=function(i,a){return a=a||"",wi(i," OPR/")&&wi(i,"Mini")?Y:wi(i," OPR/")?X:Ei.test(i)?V:wi(i,"IE"+T)||wi(i,"WPDesktop")?q:wi(i,j)?W:wi(i,Q)||wi(i,"Edg/")?ii:wi(i,"FBIOS")?"Facebook "+T:wi(i,"UCWEB")||wi(i,"UCBrowser")?"UC Browser":wi(i,"CriOS")?Z:wi(i,"CrMo")||wi(i,H)?H:wi(i,x)&&wi(i,G)?si:wi(i,"FxiOS")?ei:wi(i.toLowerCase(),fi.toLowerCase())?fi:Pi(i,a)?wi(i,T)?oi:G:wi(i,ai)?ai:wi(i,"MSIE")||wi(i,"Trident/")?z:wi(i,"Gecko")?ai:""},Mi={[q]:[new RegExp("rv:"+pi)],[ii]:[new RegExp(Q+"?\\/"+pi)],[H]:[new RegExp("("+H+"|CrMo)\\/"+pi)],[Z]:[new RegExp("CriOS\\/"+pi)],"UC Browser":[new RegExp("(UCBrowser|UCWEB)\\/"+pi)],[G]:[vi],[oi]:[vi],[X]:[new RegExp("(Opera|OPR)\\/"+pi)],[ai]:[new RegExp(ai+"\\/"+pi)],[ei]:[new RegExp("FxiOS\\/"+pi)],[fi]:[new RegExp("Konqueror[:/]?"+pi,"i")],[V]:[new RegExp(V+" "+pi),vi],[si]:[new RegExp("android\\s"+pi,"i")],[W]:[new RegExp(j+"\\/"+pi)],[z]:[new RegExp("(rv:|MSIE )"+pi)],Mozilla:[new RegExp("rv:"+pi)]},Ri=[[new RegExp(ni+"; "+ni+" (.*?)[);]","i"),i=>[ni,i&&i[1]||""]],[new RegExp(ti,"i"),[ti,""]],[new RegExp(ri,"i"),[ri,""]],[Ei,[V,""]],[new RegExp(ci,"i"),(i,a)=>{if(/Phone/.test(a)||/WPDesktop/.test(a))return[ui,""];if(new RegExp(T).test(a)&&!/IEMobile\b/.test(a))return[ci+" "+T,""];var e=/Windows NT ([0-9.]+)/i.exec(a);if(e&&e[1]){var t=e[1],r=yi[t]||"";return/arm/i.test(a)&&(r="RT"),[ci,r]}return[ci,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,i=>{if(i&&i[3]){var a=[i[3],i[4],i[5]||"0"];return[B,a.join(".")]}return[B,""]}],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,i=>{var a="";return i&&i.length>=3&&(a=void 0===i[2]?i[3]:i[2]),["watchOS",a]}],[new RegExp("("+x+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+x+")","i"),i=>{if(i&&i[2]){var a=[i[2],i[3],i[4]||"0"];return[x,a.join(".")]}return[x,""]}],[/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i,i=>{var a=["Mac OS X",""];if(i&&i[1]){var e=[i[1],i[2],i[3]||"0"];a[1]=e.join(".")}return a}],[/Mac/i,["Mac OS X",""]],[/CrOS/,[J,""]],[/Linux|debian/i,["Linux",""]]],Ui=function(i){return _i.test(i)?ti:Si.test(i)?ri:gi.test(i)?ni:new RegExp(li,"i").test(i)?li:new RegExp("("+ui+"|WPDesktop)","i").test(i)?ui:/iPad/.test(i)?K:/iPod/.test(i)?"iPod Touch":/iPhone/.test(i)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(i)?O:Ei.test(i)?V:/(kobo)\s(ereader|touch)/i.test(i)?"Kobo":new RegExp(Ai,"i").test(i)?Ai:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(i)||/(kf[a-z]+)( bui|\)).+silk\//i.test(i)?"Kindle Fire":/(Android|ZTE)/i.test(i)?!new RegExp(T).test(i)||/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(i)?/pixel[\daxl ]{1,6}/i.test(i)&&!/pixel c/i.test(i)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(i)||/lmy47v/i.test(i)&&!/QTAQZ3/i.test(i)?x:D:x:new RegExp("(pda|"+T+")","i").test(i)?di:new RegExp(N,"i").test(i)&&!new RegExp(N+" pc","i").test(i)?mi:""};function bi(){if(void 0!==S)return S.language||S.userLanguage}function Ii(){var i={};if(!P)return i;var[a,e]=function(i){for(var a=0;a<Ri.length;a++){var[e,t]=Ri[a],r=e.exec(i),n=r&&(b(t)?t(r,i):t);if(n)return n}return["",""]}(P);a&&(i.$os=a),e&&(i.$os_version=e);var t=Ci(P,null==S?void 0:S.vendor);t&&(i.$browser=t);var r=function(i,a){var e=Ci(i,a),t=Mi[e];if(void 0===t)return null;for(var r=0;r<t.length;r++){var n=t[r],s=i.match(n);if(s)return parseFloat(s[s.length-2])}return null}(P,null==S?void 0:S.vendor);r&&(i.$browser_version=r);var n=Ui(P);n&&(i.$device=n);var s=function(i){var a=Ui(i);return a===K||a===D||"Kobo"===a||"Kindle Fire"===a||a===mi?N:a===ti||a===ni||a===ri||a===li?"Console":a===O?"Wearable":a?T:"Desktop"}(P);s&&(i.$device_type=s);var o=function(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch(i){return}}();o&&(i.$timezone=o);var c=function(){try{return(new Date).getTimezoneOffset()}catch(i){return}}();void 0!==c&&(i.$timezone_offset=c),E&&(i.$current_url=E.href,i.$host=E.host,i.$pathname=E.pathname),P&&(i.$raw_user_agent=P.length>1e3?P.substring(0,997)+"...":P);var u,A=bi(),l="string"==typeof(u=bi())?u.split("-")[0]:void 0;return A&&(i.$browser_language=A),l&&(i.$browser_language_prefix=l),(null==v?void 0:v.screen)&&(v.screen.height&&(i.$screen_height=v.screen.height),v.screen.width&&(i.$screen_width=v.screen.width)),v&&(v.innerHeight&&(i.$viewport_height=v.innerHeight),v.innerWidth&&(i.$viewport_width=v.innerWidth)),i.$lib="web",i.$lib_version="1.0.7",i.$insert_id=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),i.$time=Date.now()/1e3,i.$referrer=(null==_?void 0:_.referrer)||"$direct",i.$referring_domain=function(){if(!(null==_?void 0:_.referrer))return"$direct";try{return new URL(_.referrer).host||"$direct"}catch(i){return"$direct"}}(),i}var ki=Array.isArray;class Ti{constructor(i){void 0===i&&(i={}),this.__loaded=!1,this.k=!1,this.T=null,this.__request_queue=[],this.B=!1,this.configManager=new a(i);var e=this.configManager.getConfig(),t=e.domain;!t&&E&&(t=this.getCurrentDomain()),this.sessionManager=new M(e.storage||"cookie",t),this.userManager=new R(e.persistence||"localStorage",t),this.webVitalsManager=new U(e,this)}init(i,a,e){var t;if(e&&e!==xi){var r=null!==(t=Bi[e])&&void 0!==t?t:new Ti;return r._init(i,a,e),Bi[e]=r,Bi[xi][e]=r,r}return this._init(i,a,e)}_init(a,e,t){return void 0===e&&(e={}),this.__loaded?(console.warn("vTilt: You have already initialized vTilt! Re-initializing is a no-op"),this):(this.updateConfig(i({},e,{projectId:a||e.projectId,name:t})),this.__loaded=!0,this.historyAutocapture=new k(this),this.historyAutocapture.startIfEnabled(),this.N(),this)}toString(){var i,a=null!==(i=this.configManager.getConfig().name)&&void 0!==i?i:xi;return a!==xi&&(a=xi+"."+a),a}getCurrentDomain(){if(!E)return"";var i=E.protocol,a=E.hostname,e=E.port;return i+"//"+a+(e?":"+e:"")}D(){var i=this.configManager.getConfig();return!(!i.projectId||!i.token)||(this.B||(console.warn("VTilt: projectId and token are required for tracking. Events will be skipped until init() or updateConfig() is called with these fields."),this.B=!0),!1)}buildUrl(){var i=this.configManager.getConfig(),{proxyUrl:a,proxy:e,host:t,token:r}=i;return a||(e?e+"/api/tracking?token="+r:t?t.replace(/\/+$/gm,"")+"/api/tracking?token="+r:"/api/tracking?token="+r)}sendRequest(i,a,e){if(this.D()){if(e&&void 0!==v)if(v.__VTILT_ENQUEUE_REQUESTS)return void this.__request_queue.push({url:i,event:a});var t=new XMLHttpRequest;t.open("POST",i,!0),t.setRequestHeader("Content-Type","application/json"),t.send(JSON.stringify(a))}}K(i){this.sendRequest(i.url,i.event,!1)}capture(a,e){if(this.sessionManager.setSessionId(),S&&S.userAgent&&function(i){return!(i&&"string"==typeof i&&i.length>500)}(S.userAgent)){var t=this.buildUrl(),r=Ii(),n=this.userManager.getUserProperties(),s=this.sessionManager.getSessionId(),o=this.sessionManager.getWindowId(),c=this.userManager.getAnonymousId(),u=i({},r,n,{$session_id:s,$window_id:o},c?{$anon_distinct_id:c}:{},e);"$pageview"===a&&_&&(u.title=_.title);var A,l,h=this.configManager.getConfig();if(!1!==h.stringifyPayload){if(A=Object.assign({},u,h.globalAttributes),!m(A=JSON.stringify(A)))return}else if(A=Object.assign({},u,h.globalAttributes),!m(JSON.stringify(A)))return;l="$identify"===a?this.userManager.getAnonymousId():this.userManager.getDistinctId()||this.userManager.getAnonymousId();var d={timestamp:(new Date).toISOString(),event:a,project_id:h.projectId||"",domain:h.domain||this.getCurrentDomain(),payload:A,distinct_id:l,anonymous_id:c};this.sendRequest(t,d,!0)}}trackEvent(i,a){void 0===a&&(a={}),this.capture(i,a)}identify(i,a,e){if("number"==typeof i&&(i=String(i),console.warn("The first argument to vTilt.identify was a number, but it should be a string. It has been converted to a string.")),i)if(this.userManager.isDistinctIdStringLikePublic(i))console.error('The string "'+i+'" was set in vTilt.identify which indicates an error. This ID should be unique to the user and not a hardcoded string.');else if("COOKIELESS_SENTINEL_VALUE"!==i){var t=this.userManager.getDistinctId(),r=this.userManager.getAnonymousId(),n=this.userManager.getDeviceId(),s="anonymous"===this.userManager.getUserState();if(!n){var o=t||r;this.userManager.ensureDeviceId(o)}i!==t&&s?(this.userManager.setUserState("identified"),this.userManager.updateUserProperties(a,e),this.capture("$identify",{distinct_id:i,$anon_distinct_id:t||r,$set:a||{},$set_once:e||{}}),this.userManager.setDistinctId(i)):a||e?(s&&this.userManager.setUserState("identified"),this.userManager.updateUserProperties(a,e),this.capture("$set",{$set:a||{},$set_once:e||{}})):i!==t&&(this.userManager.setUserState("identified"),this.userManager.setDistinctId(i))}else console.error('The string "'+i+'" was set in vTilt.identify which indicates an error. This ID is only used as a sentinel value.');else console.error("Unique user id has not been set in vTilt.identify")}setUserProperties(i,a){this.userManager.setUserProperties(i,a)&&this.capture("$set",{$set:i||{},$set_once:a||{}})}resetUser(i){this.sessionManager.resetSessionId(),this.userManager.reset(i)}getUserIdentity(){return this.userManager.getUserIdentity()}getDeviceId(){return this.userManager.getDeviceId()}getUserState(){return this.userManager.getUserState()}createAlias(i,a){var e=this.userManager.createAlias(i,a);e?this.capture("$alias",{$original_id:e.original,$alias_id:e.distinct_id}):i===(a||this.userManager.getDistinctId()||this.userManager.getAnonymousId())&&this.identify(i)}N(){_&&("visible"===_.visibilityState?this.k||(this.k=!0,setTimeout(()=>{if(_&&E){this.capture("$pageview",{navigation_type:"initial_load"})}},300),this.T&&(_.removeEventListener("visibilitychange",this.T),this.T=null)):this.T||(this.T=()=>{this.N()},p(_,"visibilitychange",this.T)))}getConfig(){return this.configManager.getConfig()}getSessionId(){return this.sessionManager.getSessionId()}updateConfig(i){this.configManager.updateConfig(i);var a=this.configManager.getConfig(),e=a.domain;!e&&E&&(e=this.getCurrentDomain()),this.sessionManager=new M(a.storage||"cookie",e),this.userManager=new R(a.persistence||"localStorage",e),this.webVitalsManager=new U(a,this)}_execute_array(i){Array.isArray(i)&&i.forEach(i=>{if(i&&Array.isArray(i)&&i.length>0){var a=i[0],e=i.slice(1);if("function"==typeof this[a])try{this[a](...e)}catch(i){console.error("vTilt: Error executing queued call "+a+":",i)}}})}_dom_loaded(){this.__request_queue.forEach(i=>{this.K(i)}),this.__request_queue=[]}}var Bi={},xi="vt",Ni=!(void 0!==w||void 0!==y)&&-1===(null==P?void 0:P.indexOf("MSIE"))&&-1===(null==P?void 0:P.indexOf("Mozilla"));v&&(v.__VTILT_ENQUEUE_REQUESTS=Ni);var Di,Ki,Li=function(){function i(){i.done||(i.done=!0,Ni=!1,void 0!==v&&(v.__VTILT_ENQUEUE_REQUESTS=!1),f(Bi,function(i){i._dom_loaded()}))}_&&"function"==typeof _.addEventListener?"complete"===_.readyState?i():p(_,"DOMContentLoaded",i,{capture:!1}):v&&console.error("Browser doesn't support `document.addEventListener` so vTilt couldn't be initialized")};"undefined"!=typeof window&&window.vt&&Array.isArray(window.vt)&&(Di=Bi[xi]=new Ti,(Ki=C.vt)&&f(Ki._i,function(i){if(i&&ki(i)){var a=Di.init(i[0],i[1],i[2]),e=Ki[i[2]||"vt"]||Ki;a&&a._execute_array(e)}}),C.vt=Di,Li());var Oi=function(){var i=Bi[xi]=new Ti;return Li(),i}();exports.VTilt=Ti,exports.default=Oi,exports.vt=Oi;
1
+ "use strict";function i(i,e,t,a,r,n,s){try{var o=i[n](s),c=o.value}catch(i){return void t(i)}o.done?e(c):Promise.resolve(c).then(a,r)}function e(e){return function(){var t=this,a=arguments;return new Promise(function(r,n){var s=e.apply(t,a);function o(e){i(s,r,n,o,c,"next",e)}function c(e){i(s,r,n,o,c,"throw",e)}o(void 0)})}}function t(){return t=Object.assign?Object.assign.bind():function(i){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var a in t)({}).hasOwnProperty.call(t,a)&&(i[a]=t[a])}return i},t.apply(null,arguments)}Object.defineProperty(exports,"__esModule",{value:!0});class a{constructor(i){void 0===i&&(i={}),this.config=this.parseConfigFromScript(i)}parseConfigFromScript(i){if(!document.currentScript)return t({projectId:i.projectId||"",token:i.token||""},i);var e=document.currentScript,a=t({projectId:"",token:""},i);if(a.host=e.getAttribute("data-host")||i.host,a.proxy=e.getAttribute("data-proxy")||i.proxy,a.proxyUrl=e.getAttribute("data-proxy-url")||i.proxyUrl,a.token=e.getAttribute("data-token")||i.token||"",a.projectId=e.getAttribute("data-project-id")||i.projectId||"",a.domain=e.getAttribute("data-domain")||i.domain,a.storage=e.getAttribute("data-storage")||i.storage,a.stringifyPayload="false"!==e.getAttribute("data-stringify-payload"),a.webVitals="true"===e.getAttribute("web-vitals")||"true"===e.getAttribute("data-web-vitals")||i.webVitals,a.proxy&&a.proxyUrl)throw console.error("Error: Both data-proxy and data-proxy-url are specified. Please use only one of them."),new Error("Both data-proxy and data-proxy-url are specified. Please use only one of them.");for(var r of(a.globalAttributes=t({},i.globalAttributes),Array.from(e.attributes)))r.name.startsWith("tb_")&&(a.globalAttributes[r.name.slice(3).replace(/-/g,"_")]=r.value),r.name.startsWith("data-tb-")&&(a.globalAttributes[r.name.slice(8).replace(/-/g,"_")]=r.value);return a}getConfig(){return t({},this.config)}updateConfig(i){this.config=t({},this.config,i)}}var r="vt_session_id",n="vt_window_id",s="vt_primary_window_exists",o="vt_anonymous_id",c="vt_distinct_id",u="vt_device_id",h="vt_user_properties",l="vt_user_state",d="$initial_person_info",f="localStorage",A="sessionStorage",v={"Asia/Barnaul":"RU","Africa/Nouakchott":"MR","Africa/Lusaka":"ZM","Asia/Pyongyang":"KP","Europe/Bratislava":"SK","America/Belize":"BZ","America/Maceio":"BR","Pacific/Chuuk":"FM","Indian/Comoro":"KM","Pacific/Palau":"PW","Asia/Jakarta":"ID","Africa/Windhoek":"NA","America/Chihuahua":"MX","America/Nome":"US","Africa/Mbabane":"SZ","Africa/Porto-Novo":"BJ","Europe/San_Marino":"SM","Pacific/Fakaofo":"TK","America/Denver":"US","Europe/Belgrade":"RS","America/Indiana/Tell_City":"US","America/Fortaleza":"BR","America/Halifax":"CA","Europe/Bucharest":"RO","America/Indiana/Petersburg":"US","Europe/Kirov":"RU","Europe/Athens":"GR","America/Argentina/Ushuaia":"AR","Europe/Monaco":"MC","Europe/Vilnius":"LT","Europe/Copenhagen":"DK","Pacific/Kanton":"KI","America/Caracas":"VE","Asia/Almaty":"KZ","Europe/Paris":"FR","Africa/Blantyre":"MW","Asia/Muscat":"OM","America/North_Dakota/Beulah":"US","America/Matamoros":"MX","Asia/Irkutsk":"RU","America/Costa_Rica":"CR","America/Araguaina":"BR","Atlantic/Canary":"ES","America/Santo_Domingo":"DO","America/Vancouver":"CA","Africa/Addis_Ababa":"ET","Africa/Accra":"GH","Pacific/Kwajalein":"MH","Asia/Baghdad":"IQ","Australia/Adelaide":"AU","Australia/Hobart":"AU","America/Guayaquil":"EC","America/Argentina/Tucuman":"AR","Australia/Lindeman":"AU","America/New_York":"US","Pacific/Fiji":"FJ","America/Antigua":"AG","Africa/Casablanca":"MA","America/Paramaribo":"SR","Africa/Cairo":"EG","America/Cayenne":"GF","America/Detroit":"US","Antarctica/Syowa":"AQ","Africa/Douala":"CM","America/Argentina/La_Rioja":"AR","Africa/Lagos":"NG","America/St_Barthelemy":"BL","Asia/Nicosia":"CY","Asia/Macau":"MO","Europe/Riga":"LV","Asia/Ashgabat":"TM","Indian/Antananarivo":"MG","America/Argentina/San_Juan":"AR","Asia/Aden":"YE","Asia/Tomsk":"RU","America/Asuncion":"PY","Pacific/Bougainville":"PG","Asia/Vientiane":"LA","America/Mazatlan":"MX","Africa/Luanda":"AO","Europe/Oslo":"NO","Africa/Kinshasa":"CD","Europe/Warsaw":"PL","America/Grand_Turk":"TC","Asia/Seoul":"KR","Africa/Tripoli":"LY","America/St_Thomas":"VI","Asia/Kathmandu":"NP","Pacific/Pitcairn":"PN","Pacific/Nauru":"NR","America/Curacao":"CW","Asia/Kabul":"AF","Pacific/Tongatapu":"TO","Europe/Simferopol":"UA","Asia/Ust-Nera":"RU","Africa/Mogadishu":"SO","Indian/Mayotte":"YT","Pacific/Niue":"NU","America/Thunder_Bay":"CA","Atlantic/Azores":"PT","Pacific/Gambier":"PF","Europe/Stockholm":"SE","Africa/Libreville":"GA","America/Punta_Arenas":"CL","America/Guatemala":"GT","America/Noronha":"BR","Europe/Helsinki":"FI","Asia/Gaza":"PS","Pacific/Kosrae":"FM","America/Aruba":"AW","America/Nassau":"BS","Asia/Choibalsan":"MN","America/Winnipeg":"CA","America/Anguilla":"AI","Asia/Thimphu":"BT","Asia/Beirut":"LB","Atlantic/Faroe":"FO","Europe/Berlin":"DE","Europe/Amsterdam":"NL","Pacific/Honolulu":"US","America/Regina":"CA","America/Scoresbysund":"GL","Europe/Vienna":"AT","Europe/Tirane":"AL","Africa/El_Aaiun":"EH","America/Creston":"CA","Asia/Qostanay":"KZ","Asia/Ho_Chi_Minh":"VN","Europe/Samara":"RU","Europe/Rome":"IT","Australia/Eucla":"AU","America/El_Salvador":"SV","America/Chicago":"US","Africa/Abidjan":"CI","Asia/Kamchatka":"RU","Pacific/Tarawa":"KI","America/Santiago":"CL","America/Bahia":"BR","Indian/Christmas":"CX","Asia/Atyrau":"KZ","Asia/Dushanbe":"TJ","Europe/Ulyanovsk":"RU","America/Yellowknife":"CA","America/Recife":"BR","Australia/Sydney":"AU","America/Fort_Nelson":"CA","Pacific/Efate":"VU","Europe/Saratov":"RU","Africa/Banjul":"GM","Asia/Omsk":"RU","Europe/Ljubljana":"SI","Europe/Budapest":"HU","Europe/Astrakhan":"RU","America/Argentina/Buenos_Aires":"AR","Pacific/Chatham":"NZ","America/Argentina/Salta":"AR","Africa/Niamey":"NE","Asia/Pontianak":"ID","Indian/Reunion":"RE","Asia/Hong_Kong":"HK","Antarctica/McMurdo":"AQ","Africa/Malabo":"GQ","America/Los_Angeles":"US","America/Argentina/Cordoba":"AR","Pacific/Pohnpei":"FM","America/Tijuana":"MX","America/Campo_Grande":"BR","America/Dawson_Creek":"CA","Asia/Novosibirsk":"RU","Pacific/Pago_Pago":"AS","Asia/Jerusalem":"IL","Europe/Sarajevo":"BA","Africa/Freetown":"SL","Asia/Yekaterinburg":"RU","America/Juneau":"US","Africa/Ouagadougou":"BF","Africa/Monrovia":"LR","Europe/Kiev":"UA","America/Argentina/San_Luis":"AR","Asia/Tokyo":"JP","Asia/Qatar":"QA","America/La_Paz":"BO","America/Bogota":"CO","America/Thule":"GL","Asia/Manila":"PH","Asia/Hovd":"MN","Asia/Tehran":"IR","Atlantic/Madeira":"PT","America/Metlakatla":"US","Europe/Vatican":"VA","Asia/Bishkek":"KG","Asia/Dili":"TL","Antarctica/Palmer":"AQ","Atlantic/Cape_Verde":"CV","Indian/Chagos":"IO","America/Kentucky/Monticello":"US","Africa/Algiers":"DZ","Africa/Maseru":"LS","Asia/Kuala_Lumpur":"MY","Africa/Khartoum":"SD","America/Argentina/Rio_Gallegos":"AR","America/Blanc-Sablon":"CA","Africa/Maputo":"MZ","America/Tortola":"VG","Atlantic/Bermuda":"BM","America/Argentina/Catamarca":"AR","America/Cayman":"KY","America/Puerto_Rico":"PR","Pacific/Majuro":"MH","Europe/Busingen":"DE","Pacific/Midway":"UM","Indian/Cocos":"CC","Asia/Singapore":"SG","America/Boise":"US","America/Nuuk":"GL","America/Goose_Bay":"CA","Australia/Broken_Hill":"AU","Africa/Dar_es_Salaam":"TZ","Africa/Asmara":"ER","Asia/Samarkand":"UZ","Asia/Tbilisi":"GE","America/Argentina/Jujuy":"AR","America/Indiana/Winamac":"US","America/Porto_Velho":"BR","Asia/Magadan":"RU","Europe/Zaporozhye":"UA","Antarctica/Casey":"AQ","Asia/Shanghai":"CN","Pacific/Norfolk":"NF","Europe/Guernsey":"GG","Australia/Brisbane":"AU","Antarctica/DumontDUrville":"AQ","America/Havana":"CU","America/Atikokan":"CA","America/Mexico_City":"MX","America/Rankin_Inlet":"CA","America/Cuiaba":"BR","America/Resolute":"CA","Africa/Ceuta":"ES","Arctic/Longyearbyen":"SJ","Pacific/Guam":"GU","Asia/Damascus":"SY","Asia/Colombo":"LK","Asia/Yerevan":"AM","America/Montserrat":"MS","America/Belem":"BR","Europe/Kaliningrad":"RU","Atlantic/South_Georgia":"GS","Asia/Tashkent":"UZ","Asia/Kolkata":"IN","America/St_Johns":"CA","Asia/Srednekolymsk":"RU","Asia/Yakutsk":"RU","Europe/Prague":"CZ","Africa/Djibouti":"DJ","Asia/Dubai":"AE","Europe/Uzhgorod":"UA","America/Edmonton":"CA","Asia/Famagusta":"CY","America/Indiana/Knox":"US","Asia/Hebron":"PS","Asia/Taipei":"TW","Europe/London":"GB","Africa/Dakar":"SN","Australia/Darwin":"AU","America/Glace_Bay":"CA","Antarctica/Vostok":"AQ","America/Indiana/Vincennes":"US","America/Nipigon":"CA","Asia/Kuwait":"KW","Pacific/Guadalcanal":"SB","America/Toronto":"CA","Africa/Gaborone":"BW","Africa/Bujumbura":"BI","Africa/Lubumbashi":"CD","America/Merida":"MX","America/Marigot":"MF","Europe/Zagreb":"HR","Pacific/Easter":"CL","America/Santarem":"BR","Pacific/Noumea":"NC","America/Sitka":"US","Atlantic/Stanley":"FK","Pacific/Funafuti":"TV","America/Iqaluit":"CA","America/Rainy_River":"CA","America/Anchorage":"US","America/Lima":"PE","Asia/Baku":"AZ","America/Indiana/Vevay":"US","Asia/Ulaanbaatar":"MN","America/Managua":"NI","Asia/Krasnoyarsk":"RU","Asia/Qyzylorda":"KZ","America/Eirunepe":"BR","Europe/Podgorica":"ME","Europe/Chisinau":"MD","Europe/Mariehamn":"AX","Europe/Volgograd":"RU","Africa/Nairobi":"KE","Europe/Isle_of_Man":"IM","America/Menominee":"US","Africa/Harare":"ZW","Asia/Anadyr":"RU","America/Moncton":"CA","Indian/Maldives":"MV","America/Whitehorse":"CA","Antarctica/Mawson":"AQ","Europe/Madrid":"ES","America/Argentina/Mendoza":"AR","America/Manaus":"BR","Africa/Bangui":"CF","Indian/Mauritius":"MU","Africa/Tunis":"TN","Australia/Lord_Howe":"AU","America/Kentucky/Louisville":"US","America/North_Dakota/Center":"US","Asia/Novokuznetsk":"RU","Asia/Makassar":"ID","America/Port_of_Spain":"TT","America/Bahia_Banderas":"MX","Pacific/Auckland":"NZ","America/Sao_Paulo":"BR","Asia/Dhaka":"BD","America/Pangnirtung":"CA","Europe/Dublin":"IE","Asia/Brunei":"BN","Africa/Brazzaville":"CG","America/Montevideo":"UY","America/Jamaica":"JM","America/Indiana/Indianapolis":"US","America/Kralendijk":"BQ","Europe/Gibraltar":"GI","Pacific/Marquesas":"PF","Pacific/Apia":"WS","Europe/Jersey":"JE","America/Phoenix":"US","Africa/Ndjamena":"TD","Asia/Karachi":"PK","Africa/Kampala":"UG","Asia/Sakhalin":"RU","America/Martinique":"MQ","Europe/Moscow":"RU","Africa/Conakry":"GN","America/Barbados":"BB","Africa/Lome":"TG","America/Ojinaga":"MX","America/Tegucigalpa":"HN","Asia/Bangkok":"TH","Africa/Johannesburg":"ZA","Europe/Vaduz":"LI","Africa/Sao_Tome":"ST","America/Cambridge_Bay":"CA","America/Lower_Princes":"SX","America/Miquelon":"PM","America/St_Kitts":"KN","Australia/Melbourne":"AU","Europe/Minsk":"BY","Asia/Vladivostok":"RU","Europe/Sofia":"BG","Antarctica/Davis":"AQ","Pacific/Galapagos":"EC","America/North_Dakota/New_Salem":"US","Asia/Amman":"JO","Pacific/Wallis":"WF","America/Hermosillo":"MX","Pacific/Kiritimati":"KI","Antarctica/Macquarie":"AU","America/Guyana":"GY","Asia/Riyadh":"SA","Pacific/Tahiti":"PF","America/St_Vincent":"VC","America/Cancun":"MX","America/Grenada":"GD","Pacific/Wake":"UM","America/Dawson":"CA","Europe/Brussels":"BE","Indian/Kerguelen":"TF","America/Yakutat":"US","Indian/Mahe":"SC","Atlantic/Reykjavik":"IS","America/Panama":"PA","America/Guadeloupe":"GP","Europe/Malta":"MT","Antarctica/Troll":"AQ","Asia/Jayapura":"ID","Asia/Bahrain":"BH","Asia/Chita":"RU","Europe/Tallinn":"EE","Asia/Khandyga":"RU","America/Rio_Branco":"BR","Atlantic/St_Helena":"SH","Africa/Juba":"SS","America/Adak":"US","Pacific/Saipan":"MP","America/St_Lucia":"LC","America/Inuvik":"CA","Europe/Luxembourg":"LU","Africa/Bissau":"GW","Asia/Oral":"KZ","America/Boa_Vista":"BR","Europe/Skopje":"MK","America/Port-au-Prince":"HT","Pacific/Port_Moresby":"PG","Europe/Andorra":"AD","America/Indiana/Marengo":"US","Africa/Kigali":"RW","Africa/Bamako":"ML","America/Dominica":"DM","Asia/Aqtobe":"KZ","Europe/Istanbul":"TR","Pacific/Rarotonga":"CK","America/Danmarkshavn":"GL","Europe/Zurich":"CH","Asia/Yangon":"MM","America/Monterrey":"MX","Europe/Lisbon":"PT","Asia/Kuching":"MY","Antarctica/Rothera":"AQ","Australia/Perth":"AU","Asia/Phnom_Penh":"KH","America/Swift_Current":"CA","Asia/Aqtau":"KZ","Asia/Urumqi":"CN","Asia/Calcutta":"IN"};function m(){return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,i=>(+i^crypto.getRandomValues(new Uint8Array(1))[0]&15>>+i/4).toString(16))}function p(i){return!(!i||"string"!=typeof i)&&!(i.length<2||i.length>10240)}function g(i,e,t){if(i)if(Array.isArray(i))i.forEach((i,a)=>{e.call(t,i,a)});else for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&e.call(t,i[a],a)}function _(i,e,t,a){var{capture:r=!1,passive:n=!0}=null!=a?a:{};null==i||i.addEventListener(e,t,{capture:r,passive:n})}function S(i,e){if(!e)return i;for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(i[t]=e[t]);return i}function w(i){for(var e=arguments.length,t=new Array(e>1?e-1:0),a=1;a<e;a++)t[a-1]=arguments[a];for(var r of t)for(var n of r)i.push(n);return i}var y="undefined"!=typeof window?window:void 0,b="undefined"!=typeof globalThis?globalThis:y,E=null==b?void 0:b.navigator,M=null==b?void 0:b.document,C=null==b?void 0:b.location,P=null==b?void 0:b.fetch,R=(null==b?void 0:b.XMLHttpRequest)&&"withCredentials"in new b.XMLHttpRequest?b.XMLHttpRequest:void 0;null==b||b.AbortController;var T=null==E?void 0:E.userAgent,U=null!=y?y:{};class k{constructor(i,e){void 0===i&&(i="cookie"),this.storageMethod=i,this.domain=e,this.o=void 0,this.A()}v(){return this.storageMethod===f||this.storageMethod===A}m(){return this.v()?this.storageMethod===f?localStorage:sessionStorage:null}S(i){return{value:i,expiry:(new Date).getTime()+18e5}}M(i){var e=this.m();if(e){var t=this.S(i);e.setItem(r,JSON.stringify(t))}}getSessionIdFromCookie(){var i={};return document.cookie.split(";").forEach(function(e){var[t,a]=e.split("=");i[t.trim()]=a}),i[r]||null}setSessionIdFromCookie(i){var e=r+"="+i+"; Max-Age=1800; path=/; secure";this.domain&&(e+="; domain="+this.domain),document.cookie=e}C(i){this.v()?this.M(i):this.setSessionIdFromCookie(i)}P(){var i=this.m();if(i){var e=i.getItem(r);if(!e)return null;var t=null;try{t=JSON.parse(e)}catch(i){return null}return"object"!=typeof t||null===t?null:(new Date).getTime()>t.expiry?(i.removeItem(r),null):t.value}return this.getSessionIdFromCookie()}getSessionId(){var i=this.P();return i||(i=m(),this.C(i)),i}setSessionId(){var i=this.P()||m();return this.C(i),i}R(){var i=this.m();if(i)i.removeItem(r);else{var e="Thu, 01 Jan 1970 00:00:00 UTC";document.cookie=r+"=; expires="+e+"; path=/;",this.domain&&(document.cookie=r+"=; expires="+e+"; path=/; domain="+this.domain+";")}}resetSessionId(){this.R(),this.setSessionId(),this.T(m())}getWindowId(){if(this.o)return this.o;if(this.U()&&y){var i=y.sessionStorage.getItem(n);if(i)return this.o=i,i}var e=m();return this.T(e),e}T(i){i!==this.o&&(this.o=i,this.U()&&y&&y.sessionStorage.setItem(n,i))}U(){if(void 0===y||!y.sessionStorage)return!1;try{var i="__vt_session_storage_test__";return y.sessionStorage.setItem(i,"test"),y.sessionStorage.removeItem(i),!0}catch(i){return!1}}A(){if(this.U()&&y){var i=y.sessionStorage.getItem(s),e=y.sessionStorage.getItem(n);e&&!i?this.o=e:(e&&y.sessionStorage.removeItem(n),this.T(m())),y.sessionStorage.setItem(s,"true"),this.k()}else this.o=m()}k(){y&&this.U()&&_(y,"beforeunload",()=>{y&&y.sessionStorage&&y.sessionStorage.removeItem(s)},{capture:!1})}}function I(i){if(!M)return null;var e=M.createElement("a");return e.href=i,e}function B(i,e){for(var t=((i.split("#")[0]||"").split(/\?(.*)/)[1]||"").replace(/^\?+/g,"").split("&"),a=0;a<t.length;a++){var r=t[a].split("=");if(r[0]===e){if(r.length<2)return"";var n=r[1];try{n=decodeURIComponent(n)}catch(i){}return n.replace(/\+/g," ")}}return""}function x(i,e,t){if(!i||!e||!e.length)return i;for(var a=i.split("#"),r=a[0]||"",n=a[1],s=r.split("?"),o=s[1],c=s[0],u=(o||"").split("&"),h=[],l=0;l<u.length;l++){var d=u[l].split("="),f=d[0],A=d.slice(1).join("=");-1!==e.indexOf(f)?h.push(f+"="+t):f&&h.push(f+(A?"="+A:""))}var v=h.join("&");return c+(v?"?"+v:"")+(n?"#"+n:"")}function D(i){return"function"==typeof i}var N="Mobile",O="iOS",L="Android",K="Tablet",G=L+" "+K,j="iPad",F="Apple",V=F+" Watch",H="Safari",q="BlackBerry",W="Samsung",z=W+"Browser",J=W+" Internet",Z="Chrome",X=Z+" OS",Q=Z+" "+O,Y="Internet Explorer",ii=Y+" "+N,ei="Opera",ti=ei+" Mini",ai="Edge",ri="Microsoft "+ai,ni="Firefox",si=ni+" "+O,oi="Nintendo",ci="PlayStation",ui="Xbox",hi=L+" "+N,li=N+" "+H,di="Windows",fi=di+" Phone",Ai="Nokia",vi="Ouya",mi="Generic",pi=mi+" "+N.toLowerCase(),gi=mi+" "+K.toLowerCase(),_i="Konqueror",Si="(\\d+(\\.\\d+)?)",wi=new RegExp("Version/"+Si),yi=new RegExp(ui,"i"),bi=new RegExp(ci+" \\w+","i"),Ei=new RegExp(oi+" \\w+","i"),Mi=new RegExp(q+"|PlayBook|BB10","i"),Ci={"NT3.51":"NT 3.11","NT4.0":"NT 4.0","5.0":"2000",5.1:"XP",5.2:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1",6.4:"10","10.0":"10"};function Pi(i,e){return i.toLowerCase().includes(e.toLowerCase())}var Ri=(i,e)=>e&&Pi(e,F)||function(i){return Pi(i,H)&&!Pi(i,Z)&&!Pi(i,L)}(i),Ti=function(i,e){return e=e||"",Pi(i," OPR/")&&Pi(i,"Mini")?ti:Pi(i," OPR/")?ei:Mi.test(i)?q:Pi(i,"IE"+N)||Pi(i,"WPDesktop")?ii:Pi(i,z)?J:Pi(i,ai)||Pi(i,"Edg/")?ri:Pi(i,"FBIOS")?"Facebook "+N:Pi(i,"UCWEB")||Pi(i,"UCBrowser")?"UC Browser":Pi(i,"CriOS")?Q:Pi(i,"CrMo")||Pi(i,Z)?Z:Pi(i,L)&&Pi(i,H)?hi:Pi(i,"FxiOS")?si:Pi(i.toLowerCase(),_i.toLowerCase())?_i:Ri(i,e)?Pi(i,N)?li:H:Pi(i,ni)?ni:Pi(i,"MSIE")||Pi(i,"Trident/")?Y:Pi(i,"Gecko")?ni:""},Ui={[ii]:[new RegExp("rv:"+Si)],[ri]:[new RegExp(ai+"?\\/"+Si)],[Z]:[new RegExp("("+Z+"|CrMo)\\/"+Si)],[Q]:[new RegExp("CriOS\\/"+Si)],"UC Browser":[new RegExp("(UCBrowser|UCWEB)\\/"+Si)],[H]:[wi],[li]:[wi],[ei]:[new RegExp("(Opera|OPR)\\/"+Si)],[ni]:[new RegExp(ni+"\\/"+Si)],[si]:[new RegExp("FxiOS\\/"+Si)],[_i]:[new RegExp("Konqueror[:/]?"+Si,"i")],[q]:[new RegExp(q+" "+Si),wi],[hi]:[new RegExp("android\\s"+Si,"i")],[J]:[new RegExp(z+"\\/"+Si)],[Y]:[new RegExp("(rv:|MSIE )"+Si)],Mozilla:[new RegExp("rv:"+Si)]},ki=function(i,e){var t=Ti(i,e),a=Ui[t];if(void 0===a)return null;for(var r=0;r<a.length;r++){var n=a[r],s=i.match(n);if(s)return parseFloat(s[s.length-2])}return null},Ii=[[new RegExp(ui+"; "+ui+" (.*?)[);]","i"),i=>[ui,i&&i[1]||""]],[new RegExp(oi,"i"),[oi,""]],[new RegExp(ci,"i"),[ci,""]],[Mi,[q,""]],[new RegExp(di,"i"),(i,e)=>{if(/Phone/.test(e)||/WPDesktop/.test(e))return[fi,""];if(new RegExp(N).test(e)&&!/IEMobile\b/.test(e))return[di+" "+N,""];var t=/Windows NT ([0-9.]+)/i.exec(e);if(t&&t[1]){var a=t[1],r=Ci[a]||"";return/arm/i.test(e)&&(r="RT"),[di,r]}return[di,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,i=>{if(i&&i[3]){var e=[i[3],i[4],i[5]||"0"];return[O,e.join(".")]}return[O,""]}],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,i=>{var e="";return i&&i.length>=3&&(e=void 0===i[2]?i[3]:i[2]),["watchOS",e]}],[new RegExp("("+L+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+L+")","i"),i=>{if(i&&i[2]){var e=[i[2],i[3],i[4]||"0"];return[L,e.join(".")]}return[L,""]}],[/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i,i=>{var e=["Mac OS X",""];if(i&&i[1]){var t=[i[1],i[2],i[3]||"0"];e[1]=t.join(".")}return e}],[/Mac/i,["Mac OS X",""]],[/CrOS/,[X,""]],[/Linux|debian/i,["Linux",""]]],Bi=function(i){return Ei.test(i)?oi:bi.test(i)?ci:yi.test(i)?ui:new RegExp(vi,"i").test(i)?vi:new RegExp("("+fi+"|WPDesktop)","i").test(i)?fi:/iPad/.test(i)?j:/iPod/.test(i)?"iPod Touch":/iPhone/.test(i)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(i)?V:Mi.test(i)?q:/(kobo)\s(ereader|touch)/i.test(i)?"Kobo":new RegExp(Ai,"i").test(i)?Ai:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(i)||/(kf[a-z]+)( bui|\)).+silk\//i.test(i)?"Kindle Fire":/(Android|ZTE)/i.test(i)?!new RegExp(N).test(i)||/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(i)?/pixel[\daxl ]{1,6}/i.test(i)&&!/pixel c/i.test(i)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(i)||/lmy47v/i.test(i)&&!/QTAQZ3/i.test(i)?L:G:L:new RegExp("(pda|"+N+")","i").test(i)?pi:new RegExp(K,"i").test(i)&&!new RegExp(K+" pc","i").test(i)?gi:""},xi="https?://(.*)",Di=["gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx"],Ni=w(["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid"],Di),Oi="<masked>";function Li(i){var e=function(i){return i?0===i.search(xi+"google.([^/?]*)")?"google":0===i.search(xi+"bing.com")?"bing":0===i.search(xi+"yahoo.com")?"yahoo":0===i.search(xi+"duckduckgo.com")?"duckduckgo":null:null}(i),t="yahoo"!==e?"q":"p",a={};if(null!==e){a.$search_engine=e;var r=M?B(M.referrer,t):"";r.length&&(a.ph_keyword=r)}return a}function Ki(){if("undefined"!=typeof navigator)return navigator.language||navigator.userLanguage}function $i(){return(null==M?void 0:M.referrer)||"$direct"}function Gi(){var i;return(null==M?void 0:M.referrer)&&(null===(i=I(M.referrer))||void 0===i?void 0:i.host)||"$direct"}function ji(i){var e,{r:t,u:a}=i,r={$referrer:t,$referring_domain:null==t?void 0:"$direct"===t?"$direct":null===(e=I(t))||void 0===e?void 0:e.host};if(a){r.$current_url=a;var n=I(a);r.$host=null==n?void 0:n.host,r.$pathname=null==n?void 0:n.pathname;var s=function(i){var e=Ni.concat([]),t={};return g(e,function(e){var a=B(i,e);t[e]=a||null}),t}(a);S(r,s)}t&&S(r,Li(t));return r}function Fi(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch(i){return}}function Vi(){try{return(new Date).getTimezoneOffset()}catch(i){return}}function Hi(i,e){if(!T)return{};var t,a,r,[n,s]=function(i){for(var e=0;e<Ii.length;e++){var[t,a]=Ii[e],r=t.exec(i),n=r&&(D(a)?a(r,i):a);if(n)return n}return["",""]}(T);return S(function(i){var e={};for(var t in i)if(Object.prototype.hasOwnProperty.call(i,t)){var a=i[t];null!=a&&""!==a&&(e[t]=a)}return e}({$os:n,$os_version:s,$browser:Ti(T,navigator.vendor),$device:Bi(T),$device_type:(a=T,r=Bi(a),r===j||r===G||"Kobo"===r||"Kindle Fire"===r||r===gi?K:r===oi||r===ui||r===ci||r===vi?"Console":r===V?"Wearable":r?N:"Desktop"),$timezone:Fi(),$timezone_offset:Vi()}),{$current_url:x(null==C?void 0:C.href,[],Oi),$host:null==C?void 0:C.host,$pathname:null==C?void 0:C.pathname,$raw_user_agent:T.length>1e3?T.substring(0,997)+"...":T,$browser_version:ki(T,navigator.vendor),$browser_language:Ki(),$browser_language_prefix:(t=Ki(),"string"==typeof t?t.split("-")[0]:void 0),$screen_height:null==y?void 0:y.screen.height,$screen_width:null==y?void 0:y.screen.width,$viewport_height:null==y?void 0:y.innerHeight,$viewport_width:null==y?void 0:y.innerWidth,$lib:"web",$lib_version:"1.0.7",$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:Date.now()/1e3})}class qi{constructor(i,e){void 0===i&&(i="localStorage"),this.I=null,this.storageMethod=i,this.domain=e,this.userIdentity=this.loadUserIdentity()}getUserIdentity(){return t({},this.userIdentity)}getDistinctId(){return this.userIdentity.distinct_id}getAnonymousId(){return this.userIdentity.anonymous_id||(this.userIdentity.anonymous_id=this.generateAnonymousId(),this.saveUserIdentity()),this.userIdentity.anonymous_id}getUserProperties(){return t({},this.userIdentity.properties)}identify(i,e,a){if("number"==typeof i&&(i=i.toString(),console.warn("The first argument to vTilt.identify was a number, but it should be a string. It has been converted to a string.")),i)if(this.isDistinctIdStringLike(i))console.error('The string "'+i+'" was set in vTilt.identify which indicates an error. This ID should be unique to the user and not a hardcoded string.');else if("COOKIELESS_SENTINEL_VALUE"!==i){var r=this.userIdentity.distinct_id;if(this.userIdentity.distinct_id=i,!this.userIdentity.device_id){var n=r||this.userIdentity.anonymous_id;this.userIdentity.device_id=n,this.userIdentity.properties=t({},this.userIdentity.properties,{$had_persisted_distinct_id:!0,$device_id:n})}i!==r&&(this.userIdentity.distinct_id=i);var s="anonymous"===this.userIdentity.user_state;i!==r&&s?(this.userIdentity.user_state="identified",e&&(this.userIdentity.properties=t({},this.userIdentity.properties,e)),a&&Object.keys(a).forEach(i=>{i in this.userIdentity.properties||(this.userIdentity.properties[i]=a[i])}),this.saveUserIdentity()):e||a?("anonymous"===this.userIdentity.user_state&&(this.userIdentity.user_state="identified"),e&&(this.userIdentity.properties=t({},this.userIdentity.properties,e)),a&&Object.keys(a).forEach(i=>{i in this.userIdentity.properties||(this.userIdentity.properties[i]=a[i])}),this.saveUserIdentity()):i!==r&&(this.userIdentity.user_state="identified",this.saveUserIdentity())}else console.error('The string "'+i+'" was set in vTilt.identify which indicates an error. This ID is only used as a sentinel value.');else console.error("Unique user id has not been set in vTilt.identify")}setUserProperties(i,e){if(!i&&!e)return!1;var a=this.userIdentity.distinct_id||this.userIdentity.anonymous_id,r=this.getPersonPropertiesHash(a,i,e);return this.I===r?(console.info("VTilt: A duplicate setUserProperties call was made with the same properties. It has been ignored."),!1):(i&&(this.userIdentity.properties=t({},this.userIdentity.properties,i)),e&&Object.keys(e).forEach(i=>{i in this.userIdentity.properties||(this.userIdentity.properties[i]=e[i])}),this.saveUserIdentity(),this.I=r,!0)}getPersonPropertiesHash(i,e,t){return JSON.stringify({distinct_id:i,userPropertiesToSet:e,userPropertiesToSetOnce:t})}reset(i){var e=this.generateAnonymousId(),a=this.userIdentity.device_id,r=i?this.generateDeviceId():a;this.userIdentity={distinct_id:null,anonymous_id:e,device_id:r,properties:{},user_state:"anonymous"},this.I=null,this.saveUserIdentity(),this.userIdentity.properties=t({},this.userIdentity.properties,{$last_vtilt_reset:(new Date).toISOString()}),this.saveUserIdentity()}getEffectiveId(){return this.userIdentity.distinct_id||this.getAnonymousId()}getDeviceId(){return this.userIdentity.device_id}getUserState(){return this.userIdentity.user_state}setDistinctId(i){this.userIdentity.distinct_id=i,this.saveUserIdentity()}setUserState(i){this.userIdentity.user_state=i,this.saveUserIdentity()}updateUserProperties(i,e){i&&(this.userIdentity.properties=t({},this.userIdentity.properties,i)),e&&Object.keys(e).forEach(i=>{i in this.userIdentity.properties||(this.userIdentity.properties[i]=e[i])}),this.saveUserIdentity()}ensureDeviceId(i){this.userIdentity.device_id||(this.userIdentity.device_id=i,this.userIdentity.properties=t({},this.userIdentity.properties,{$had_persisted_distinct_id:!0,$device_id:i}),this.saveUserIdentity())}isDistinctIdStringLikePublic(i){return this.isDistinctIdStringLike(i)}createAlias(i,e){return this.isValidDistinctId(i)?(void 0===e&&(e=this.getDistinctId()||this.getAnonymousId()),this.isValidDistinctId(e)?i===e?(console.warn("alias matches current distinct_id - should use identify instead"),null):{distinct_id:i,original:e}:(console.warn("Invalid original distinct ID"),null)):(console.warn("Invalid alias provided"),null)}isValidDistinctId(i){if(!i||"string"!=typeof i)return!1;var e=i.toLowerCase().trim();return!["null","undefined","false","true","anonymous","anon","user","test","guest","visitor","unknown","none"].includes(e)&&0!==i.trim().length}isDistinctIdStringLike(i){if(!i||"string"!=typeof i)return!1;var e=i.toLowerCase().trim();return["null","undefined","false","true","anonymous","anon","user","test","guest","visitor","unknown","none","demo","example","sample","placeholder"].includes(e)}loadUserIdentity(){var i=this.getStoredValue(o)||this.generateAnonymousId(),e=this.getStoredValue(c)||null,t=this.getStoredValue(u)||this.generateDeviceId(),a=this.getStoredUserProperties(),r=this.getStoredValue(l)||"anonymous";return{distinct_id:e,anonymous_id:i||this.generateAnonymousId(),device_id:t,properties:a,user_state:r}}saveUserIdentity(){this.setStoredValue(o,this.userIdentity.anonymous_id),this.setStoredValue(u,this.userIdentity.device_id),this.setStoredValue(l,this.userIdentity.user_state),this.userIdentity.distinct_id?this.setStoredValue(c,this.userIdentity.distinct_id):this.removeStoredValue(c),this.setStoredUserProperties(this.userIdentity.properties)}generateAnonymousId(){return"anon_"+m()}generateDeviceId(){return"device_"+m()}getStoredValue(i){try{return this.storageMethod===f?localStorage.getItem(i):this.storageMethod===A?sessionStorage.getItem(i):this.getCookieValue(i)}catch(i){return console.warn("Failed to access storage:",i),null}}setStoredValue(i,e){try{this.storageMethod===f?localStorage.setItem(i,e):this.storageMethod===A?sessionStorage.setItem(i,e):this.setCookieValue(i,e)}catch(i){console.warn("Failed to save to storage:",i)}}removeStoredValue(i){this.storageMethod===f?localStorage.removeItem(i):this.storageMethod===A?sessionStorage.removeItem(i):this.removeCookieValue(i)}getStoredUserProperties(){var i=this.getStoredValue(h);if(!i)return{};try{return JSON.parse(i)}catch(i){return{}}}setStoredUserProperties(i){this.setStoredValue(h,JSON.stringify(i))}getCookieValue(i){var e=document.cookie.split(";");for(var t of e){var[a,r]=t.trim().split("=");if(a===i)return decodeURIComponent(r)}return null}setCookieValue(i,e){var t=i+"="+encodeURIComponent(e)+"; Max-Age=31536000; path=/; secure; SameSite=Lax";this.domain&&(t+="; domain="+this.domain),document.cookie=t}removeCookieValue(i){var e=i+"=; Max-Age=0; path=/";this.domain&&(e+="; domain="+this.domain),document.cookie=e}register_once(i,e){var t=this.getStoredUserProperties(),a=!1;for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(r in t||(t[r]=i[r],a=!0));if(e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(n in t||(t[n]=e[n],a=!0));a&&this.setStoredUserProperties(t)}set_initial_person_info(i,e){if(!this.getStoredUserProperties()[d]){var t=function(i,e){var t=i?w([],Di,e||[]):[],a=null==C?void 0:C.href.substring(0,1e3);return{r:$i().substring(0,1e3),u:a?x(a,t,Oi):void 0}}(i,e);this.register_once({[d]:t},void 0)}}get_initial_props(){var i,e,t=this.getStoredUserProperties()[d];return t?(i=ji(t),e={},g(i,function(i,t){var a;e["$initial_"+(a=String(t),a.startsWith("$")?a.substring(1):a)]=i}),e):{}}update_referrer_info(){var i={$referrer:$i(),$referring_domain:Gi()};this.register_once(i,void 0)}}class Wi{constructor(i,e){if(this.instance=e,i.webVitals&&y)try{this.webVitals=require("web-vitals"),this.initializeWebVitals()}catch(i){console.warn("web-vitals library not found. Please install it to enable web vitals tracking.",i)}}initializeWebVitals(){if(this.webVitals){var i=i=>{try{if(!(y&&M&&E&&C))return;var{country:e,locale:t}=function(){var i,e;if(!E)return{country:i,locale:e};try{var t=Intl.DateTimeFormat().resolvedOptions().timeZone;i=v[t],e=E.languages&&E.languages.length?E.languages[0]:E.userLanguage||E.language||E.browserLanguage||"en"}catch(i){}return{country:i,locale:e}}();this.instance.capture("web_vital",{name:i.name,value:i.value,delta:i.delta,rating:i.rating,id:i.id,navigationType:i.navigationType,pathname:C.pathname,href:C.href,"user-agent":E.userAgent,locale:t,location:e,referrer:M.referrer})}catch(i){console.error("Error sending web vital:",i)}};this.webVitals.onCLS&&this.webVitals.onCLS(i),this.webVitals.onFCP&&this.webVitals.onFCP(i),this.webVitals.onLCP&&this.webVitals.onLCP(i),this.webVitals.onTTFB&&this.webVitals.onTTFB(i),this.webVitals.onINP&&this.webVitals.onINP(i)}}}function zi(i,e,t){try{if(!(e in i))return()=>{};var a=i[e],r=t(a);return D(r)&&(r.prototype=r.prototype||{},Object.defineProperties(r,{__vtilt_wrapped__:{enumerable:!1,value:!0}})),i[e]=r,()=>{i[e]=a}}catch(i){return()=>{}}}class Ji{constructor(i){var e;this._instance=i,this.B=(null===(e=null==y?void 0:y.location)||void 0===e?void 0:e.pathname)||""}get isEnabled(){return!0}startIfEnabled(){this.isEnabled&&this.monitorHistoryChanges()}stop(){this.D&&this.D(),this.D=void 0}monitorHistoryChanges(){var i,e;if(y&&C&&(this.B=C.pathname||"",y.history)){var t=this;(null===(i=y.history.pushState)||void 0===i?void 0:i.__vtilt_wrapped__)||zi(y.history,"pushState",i=>function(e,a,r){i.call(this,e,a,r),t.N("pushState")}),(null===(e=y.history.replaceState)||void 0===e?void 0:e.__vtilt_wrapped__)||zi(y.history,"replaceState",i=>function(e,a,r){i.call(this,e,a,r),t.N("replaceState")}),this.O()}}N(i){var e;try{var t=null===(e=null==y?void 0:y.location)||void 0===e?void 0:e.pathname;if(!t||!C||!M)return;if(t!==this.B&&this.isEnabled){var a={navigation_type:i};this._instance.capture("$pageview",a)}this.B=t}catch(e){console.error("Error capturing "+i+" pageview",e)}}O(){if(!this.D&&y){var i=()=>{this.N("popstate")};_(y,"popstate",i),this.D=()=>{y&&y.removeEventListener("popstate",i)}}}}var Zi=Uint8Array,Xi=Uint16Array,Qi=Int32Array,Yi=new Zi([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),ie=new Zi([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),ee=new Zi([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),te=function(i,e){for(var t=new Xi(31),a=0;a<31;++a)t[a]=e+=1<<i[a-1];var r=new Qi(t[30]);for(a=1;a<30;++a)for(var n=t[a];n<t[a+1];++n)r[n]=n-t[a]<<5|a;return{b:t,r:r}},ae=te(Yi,2),re=ae.b,ne=ae.r;re[28]=258,ne[258]=28;for(var se=te(ie,0).r,oe=new Xi(32768),ce=0;ce<32768;++ce){var ue=(43690&ce)>>1|(21845&ce)<<1;ue=(61680&(ue=(52428&ue)>>2|(13107&ue)<<2))>>4|(3855&ue)<<4,oe[ce]=((65280&ue)>>8|(255&ue)<<8)>>1}var he=function(i,e,t){for(var a=i.length,r=0,n=new Xi(e);r<a;++r)i[r]&&++n[i[r]-1];var s,o=new Xi(e);for(r=1;r<e;++r)o[r]=o[r-1]+n[r-1]<<1;if(t){s=new Xi(1<<e);var c=15-e;for(r=0;r<a;++r)if(i[r])for(var u=r<<4|i[r],h=e-i[r],l=o[i[r]-1]++<<h,d=l|(1<<h)-1;l<=d;++l)s[oe[l]>>c]=u}else for(s=new Xi(a),r=0;r<a;++r)i[r]&&(s[r]=oe[o[i[r]-1]++]>>15-i[r]);return s},le=new Zi(288);for(ce=0;ce<144;++ce)le[ce]=8;for(ce=144;ce<256;++ce)le[ce]=9;for(ce=256;ce<280;++ce)le[ce]=7;for(ce=280;ce<288;++ce)le[ce]=8;var de=new Zi(32);for(ce=0;ce<32;++ce)de[ce]=5;var fe=he(le,9,0),Ae=he(de,5,0),ve=function(i){return(i+7)/8|0},me=function(i,e,t){return(null==t||t>i.length)&&(t=i.length),new Zi(i.subarray(e,t))},pe=function(i,e,t){t<<=7&e;var a=e/8|0;i[a]|=t,i[a+1]|=t>>8},ge=function(i,e,t){t<<=7&e;var a=e/8|0;i[a]|=t,i[a+1]|=t>>8,i[a+2]|=t>>16},_e=function(i,e){for(var t=[],a=0;a<i.length;++a)i[a]&&t.push({s:a,f:i[a]});var r=t.length,n=t.slice();if(!r)return{t:Ce,l:0};if(1==r){var s=new Zi(t[0].s+1);return s[t[0].s]=1,{t:s,l:1}}t.sort(function(i,e){return i.f-e.f}),t.push({s:-1,f:25001});var o=t[0],c=t[1],u=0,h=1,l=2;for(t[0]={s:-1,f:o.f+c.f,l:o,r:c};h!=r-1;)o=t[t[u].f<t[l].f?u++:l++],c=t[u!=h&&t[u].f<t[l].f?u++:l++],t[h++]={s:-1,f:o.f+c.f,l:o,r:c};var d=n[0].s;for(a=1;a<r;++a)n[a].s>d&&(d=n[a].s);var f=new Xi(d+1),A=Se(t[h-1],f,0);if(A>e){a=0;var v=0,m=A-e,p=1<<m;for(n.sort(function(i,e){return f[e.s]-f[i.s]||i.f-e.f});a<r;++a){var g=n[a].s;if(!(f[g]>e))break;v+=p-(1<<A-f[g]),f[g]=e}for(v>>=m;v>0;){var _=n[a].s;f[_]<e?v-=1<<e-f[_]++-1:++a}for(;a>=0&&v;--a){var S=n[a].s;f[S]==e&&(--f[S],++v)}A=e}return{t:new Zi(f),l:A}},Se=function(i,e,t){return-1==i.s?Math.max(Se(i.l,e,t+1),Se(i.r,e,t+1)):e[i.s]=t},we=function(i){for(var e=i.length;e&&!i[--e];);for(var t=new Xi(++e),a=0,r=i[0],n=1,s=function(i){t[a++]=i},o=1;o<=e;++o)if(i[o]==r&&o!=e)++n;else{if(!r&&n>2){for(;n>138;n-=138)s(32754);n>2&&(s(n>10?n-11<<5|28690:n-3<<5|12305),n=0)}else if(n>3){for(s(r),--n;n>6;n-=6)s(8304);n>2&&(s(n-3<<5|8208),n=0)}for(;n--;)s(r);n=1,r=i[o]}return{c:t.subarray(0,a),n:e}},ye=function(i,e){for(var t=0,a=0;a<e.length;++a)t+=i[a]*e[a];return t},be=function(i,e,t){var a=t.length,r=ve(e+2);i[r]=255&a,i[r+1]=a>>8,i[r+2]=255^i[r],i[r+3]=255^i[r+1];for(var n=0;n<a;++n)i[r+n+4]=t[n];return 8*(r+4+a)},Ee=function(i,e,t,a,r,n,s,o,c,u,h){pe(e,h++,t),++r[256];for(var l=_e(r,15),d=l.t,f=l.l,A=_e(n,15),v=A.t,m=A.l,p=we(d),g=p.c,_=p.n,S=we(v),w=S.c,y=S.n,b=new Xi(19),E=0;E<g.length;++E)++b[31&g[E]];for(E=0;E<w.length;++E)++b[31&w[E]];for(var M=_e(b,7),C=M.t,P=M.l,R=19;R>4&&!C[ee[R-1]];--R);var T,U,k,I,B=u+5<<3,x=ye(r,le)+ye(n,de)+s,D=ye(r,d)+ye(n,v)+s+14+3*R+ye(b,C)+2*b[16]+3*b[17]+7*b[18];if(c>=0&&B<=x&&B<=D)return be(e,h,i.subarray(c,c+u));if(pe(e,h,1+(D<x)),h+=2,D<x){T=he(d,f,0),U=d,k=he(v,m,0),I=v;var N=he(C,P,0);pe(e,h,_-257),pe(e,h+5,y-1),pe(e,h+10,R-4),h+=14;for(E=0;E<R;++E)pe(e,h+3*E,C[ee[E]]);h+=3*R;for(var O=[g,w],L=0;L<2;++L){var K=O[L];for(E=0;E<K.length;++E){var G=31&K[E];pe(e,h,N[G]),h+=C[G],G>15&&(pe(e,h,K[E]>>5&127),h+=K[E]>>12)}}}else T=fe,U=le,k=Ae,I=de;for(E=0;E<o;++E){var j=a[E];if(j>255){ge(e,h,T[(G=j>>18&31)+257]),h+=U[G+257],G>7&&(pe(e,h,j>>23&31),h+=Yi[G]);var F=31&j;ge(e,h,k[F]),h+=I[F],F>3&&(ge(e,h,j>>5&8191),h+=ie[F])}else ge(e,h,T[j]),h+=U[j]}return ge(e,h,T[256]),h+U[256]},Me=new Qi([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Ce=new Zi(0),Pe=function(){for(var i=new Int32Array(256),e=0;e<256;++e){for(var t=e,a=9;--a;)t=(1&t&&-306674912)^t>>>1;i[e]=t}return i}(),Re=function(i,e,t,a,r){if(!r&&(r={l:1},e.dictionary)){var n=e.dictionary.subarray(-32768),s=new Zi(n.length+i.length);s.set(n),s.set(i,n.length),i=s,r.w=n.length}return function(i,e,t,a,r,n){var s=n.z||i.length,o=new Zi(a+s+5*(1+Math.ceil(s/7e3))+r),c=o.subarray(a,o.length-r),u=n.l,h=7&(n.r||0);if(e){h&&(c[0]=n.r>>3);for(var l=Me[e-1],d=l>>13,f=8191&l,A=(1<<t)-1,v=n.p||new Xi(32768),m=n.h||new Xi(A+1),p=Math.ceil(t/3),g=2*p,_=function(e){return(i[e]^i[e+1]<<p^i[e+2]<<g)&A},S=new Qi(25e3),w=new Xi(288),y=new Xi(32),b=0,E=0,M=n.i||0,C=0,P=n.w||0,R=0;M+2<s;++M){var T=_(M),U=32767&M,k=m[T];if(v[U]=k,m[T]=U,P<=M){var I=s-M;if((b>7e3||C>24576)&&(I>423||!u)){h=Ee(i,c,0,S,w,y,E,C,R,M-R,h),C=b=E=0,R=M;for(var B=0;B<286;++B)w[B]=0;for(B=0;B<30;++B)y[B]=0}var x=2,D=0,N=f,O=U-k&32767;if(I>2&&T==_(M-O))for(var L=Math.min(d,I)-1,K=Math.min(32767,M),G=Math.min(258,I);O<=K&&--N&&U!=k;){if(i[M+x]==i[M+x-O]){for(var j=0;j<G&&i[M+j]==i[M+j-O];++j);if(j>x){if(x=j,D=O,j>L)break;var F=Math.min(O,j-2),V=0;for(B=0;B<F;++B){var H=M-O+B&32767,q=H-v[H]&32767;q>V&&(V=q,k=H)}}}O+=(U=k)-(k=v[U])&32767}if(D){S[C++]=268435456|ne[x]<<18|se[D];var W=31&ne[x],z=31&se[D];E+=Yi[W]+ie[z],++w[257+W],++y[z],P=M+x,++b}else S[C++]=i[M],++w[i[M]]}}for(M=Math.max(M,P);M<s;++M)S[C++]=i[M],++w[i[M]];h=Ee(i,c,u,S,w,y,E,C,R,M-R,h),u||(n.r=7&h|c[h/8|0]<<3,h-=7,n.h=m,n.p=v,n.i=M,n.w=P)}else{for(M=n.w||0;M<s+u;M+=65535){var J=M+65535;J>=s&&(c[h/8|0]=u,J=s),h=be(c,h+1,i.subarray(M,J))}n.i=s}return me(o,0,a+ve(h)+r)}(i,null==e.level?6:e.level,null==e.mem?r.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(i.length)))):20:12+e.mem,t,a,r)},Te=function(i,e,t){for(;t;++e)i[e]=t,t>>>=8};function Ue(i,e){e||(e={});var t=function(){var i=-1;return{p:function(e){for(var t=i,a=0;a<e.length;++a)t=Pe[255&t^e[a]]^t>>>8;i=t},d:function(){return~i}}}(),a=i.length;t.p(i);var r,n=Re(i,e,10+((r=e).filename?r.filename.length+1:0),8),s=n.length;return function(i,e){var t=e.filename;if(i[0]=31,i[1]=139,i[2]=8,i[8]=e.level<2?4:9==e.level?2:0,i[9]=3,0!=e.mtime&&Te(i,4,Math.floor(new Date(e.mtime||Date.now())/1e3)),t){i[3]=8;for(var a=0;a<=t.length;++a)i[a+10]=t.charCodeAt(a)}}(n,e),Te(n,s-8,t.d()),Te(n,s-4,a),n}var ke="undefined"!=typeof TextEncoder&&new TextEncoder,Ie="undefined"!=typeof TextDecoder&&new TextDecoder;try{Ie.decode(Ce,{stream:!0})}catch(i){}var Be,xe="text/plain";!function(i){i.GZipJS="gzip-js",i.None="none"}(Be||(Be={}));var De=i=>{var{data:e,compression:t}=i;if(e){var a=(i=>JSON.stringify(i,(i,e)=>"bigint"==typeof e?e.toString():e))(e),r=new Blob([a]).size;if(t===Be.GZipJS&&r>=1024)try{var n=Ue(function(i,e){if(ke)return ke.encode(i);for(var t=i.length,a=new Zi(i.length+(i.length>>1)),r=0,n=function(i){a[r++]=i},s=0;s<t;++s){if(r+5>a.length){var o=new Zi(r+8+(t-s<<1));o.set(a),a=o}var c=i.charCodeAt(s);c<128||e?n(c):c<2048?(n(192|c>>6),n(128|63&c)):c>55295&&c<57344?(n(240|(c=65536+(1047552&c)|1023&i.charCodeAt(++s))>>18),n(128|c>>12&63),n(128|c>>6&63),n(128|63&c)):(n(224|c>>12),n(128|c>>6&63),n(128|63&c))}return me(a,0,r)}(a),{mtime:0}),s=new Blob([n],{type:xe});if(s.size<.95*r)return{contentType:xe,body:s,estimatedSize:s.size}}catch(i){}return{contentType:"application/json",body:a,estimatedSize:r}}},Ne=[{name:"fetch",available:"undefined"!=typeof fetch,method:i=>{var a=De(i);if(a){var{contentType:r,body:n,estimatedSize:s}=a,o=t({"Content-Type":r},i.headers||{});r===xe&&i.compression===Be.GZipJS&&(o["Content-Encoding"]="gzip");var c=new AbortController,u=i.timeout?setTimeout(()=>c.abort(),i.timeout):null;fetch(i.url,{method:i.method||"POST",headers:o,body:n,keepalive:s<52428.8,signal:c.signal}).then(function(){var t=e(function*(e){var t,a=yield e.text(),r={statusCode:e.status,text:a};if(200===e.status)try{r.json=JSON.parse(a)}catch(i){}null===(t=i.callback)||void 0===t||t.call(i,r)});return function(i){return t.apply(this,arguments)}}()).catch(()=>{var e;null===(e=i.callback)||void 0===e||e.call(i,{statusCode:0})}).finally(()=>{u&&clearTimeout(u)})}}},{name:"XHR",available:"undefined"!=typeof XMLHttpRequest,method:i=>{var e=new XMLHttpRequest;e.open(i.method||"POST",i.url,!0);var t=De(i);if(t){var{contentType:a,body:r}=t;i.headers&&Object.entries(i.headers).forEach(i=>{var[t,a]=i;e.setRequestHeader(t,a)}),e.setRequestHeader("Content-Type",a),a===xe&&i.compression===Be.GZipJS&&e.setRequestHeader("Content-Encoding","gzip"),i.timeout&&(e.timeout=i.timeout),e.onreadystatechange=()=>{var t;if(4===e.readyState){var a={statusCode:e.status,text:e.responseText};if(200===e.status)try{a.json=JSON.parse(e.responseText)}catch(i){}null===(t=i.callback)||void 0===t||t.call(i,a)}},e.onerror=()=>{var e;null===(e=i.callback)||void 0===e||e.call(i,{statusCode:0})},e.send(r)}}},{name:"sendBeacon",available:"undefined"!=typeof navigator&&!!navigator.sendBeacon,method:i=>{var e=De(i);if(e){var{contentType:t,body:a}=e;try{var r="string"==typeof a?new Blob([a],{type:t}):a,n=i.compression===Be.GZipJS&&t===xe?i.url+(i.url.includes("?")?"&":"?")+"compression=gzip-js":i.url;navigator.sendBeacon(n,r)}catch(i){}}}}],Oe=i=>{var e,t=i.transport||"fetch",a=Ne.find(i=>i.name===t&&i.available)||Ne.find(i=>i.available);if(!a)return console.error("vTilt: No available transport method"),void(null===(e=i.callback)||void 0===e||e.call(i,{statusCode:0}));a.method(i)};class Le{constructor(i,e){var t,a,r,n;this.L=!0,this.K=[],this.$=(t=(null==e?void 0:e.flush_interval_ms)||3e3,a=250,r=5e3,n=3e3,"number"!=typeof t||isNaN(t)?n:Math.min(Math.max(t,a),r)),this.G=i}get length(){return this.K.length}enqueue(i){this.K.push(i),this.j||this.F()}unload(){if(this.V(),0!==this.K.length){var i=this.H();for(var e in i){var a=i[e];this.G(t({},a,{transport:"sendBeacon"}))}}}enable(){this.L=!1,this.F()}pause(){this.L=!0,this.V()}flush(){this.V(),this.q(),this.F()}F(){this.L||(this.j=setTimeout(()=>{this.V(),this.q(),this.K.length>0&&this.F()},this.$))}V(){this.j&&(clearTimeout(this.j),this.j=void 0)}q(){if(0!==this.K.length){var i=this.H(),e=Date.now();for(var t in i){var a=i[t];a.events.forEach(i=>{var t=new Date(i.timestamp).getTime();i.$offset=Math.abs(t-e)}),this.G(a)}}}H(){var i={};return this.K.forEach(e=>{var t=e.batchKey||e.url;i[t]||(i[t]={url:e.url,events:[],batchKey:e.batchKey}),i[t].events.push(e.event)}),this.K=[],i}}class Ke{constructor(i){this.W=!1,this.J=3e3,this.K=[],this.Z=!0,this.G=i.sendRequest,this.X=i.sendBeacon,y&&void 0!==E&&"onLine"in E&&(this.Z=E.onLine,_(y,"online",()=>{this.Z=!0,this.Y()}),_(y,"offline",()=>{this.Z=!1}))}get length(){return this.K.length}enqueue(i,e){if(void 0===e&&(e=0),e>=10)console.warn("VTilt: Request failed after 10 retries, giving up");else{var t=function(i){var e=3e3*Math.pow(2,i),t=e/2,a=Math.min(18e5,e),r=(Math.random()-.5)*(a-t);return Math.ceil(a+r)}(e),a=Date.now()+t;this.K.push({retryAt:a,request:i,retriesPerformedSoFar:e+1});var r="VTilt: Enqueued failed request for retry in "+Math.round(t/1e3)+"s";this.Z||(r+=" (Browser is offline)"),console.warn(r),this.W||(this.W=!0,this.ii())}}retriableRequest(i){var t=this;return e(function*(){try{var e=yield t.G(i);200!==e.statusCode&&(e.statusCode<400||e.statusCode>=500)&&t.enqueue(i,0)}catch(e){t.enqueue(i,0)}})()}ii(){this.ei&&clearTimeout(this.ei),this.ei=setTimeout(()=>{this.Z&&this.K.length>0&&this.Y(),this.K.length>0?this.ii():this.W=!1},this.J)}Y(){var i=this,t=Date.now(),a=[],r=[];this.K.forEach(i=>{i.retryAt<t?r.push(i):a.push(i)}),this.K=a,r.forEach(function(){var t=e(function*(e){var{request:t,retriesPerformedSoFar:a}=e;try{var r=yield i.G(t);200!==r.statusCode&&(r.statusCode<400||r.statusCode>=500)&&i.enqueue(t,a)}catch(e){i.enqueue(t,a)}});return function(i){return t.apply(this,arguments)}}())}unload(){this.ei&&(clearTimeout(this.ei),this.ei=void 0),this.K.forEach(i=>{var{request:e}=i;try{this.X(e)}catch(i){console.error("VTilt: Failed to send beacon on unload",i)}}),this.K=[]}}var $e="vt_rate_limit";class Ge{constructor(i){var e,t;void 0===i&&(i={}),this.lastEventRateLimited=!1,this.eventsPerSecond=null!==(e=i.eventsPerSecond)&&void 0!==e?e:10,this.eventsBurstLimit=Math.max(null!==(t=i.eventsBurstLimit)&&void 0!==t?t:10*this.eventsPerSecond,this.eventsPerSecond),this.persistence=i.persistence,this.captureWarning=i.captureWarning,this.lastEventRateLimited=this.checkRateLimit(!0).isRateLimited}checkRateLimit(i){var e,t,a,r;void 0===i&&(i=!1);var n=Date.now(),s=null!==(t=null===(e=this.persistence)||void 0===e?void 0:e.get($e))&&void 0!==t?t:{tokens:this.eventsBurstLimit,last:n},o=(n-s.last)/1e3;s.tokens+=o*this.eventsPerSecond,s.last=n,s.tokens>this.eventsBurstLimit&&(s.tokens=this.eventsBurstLimit);var c=s.tokens<1;return c||i||(s.tokens=Math.max(0,s.tokens-1)),!c||this.lastEventRateLimited||i||null===(a=this.captureWarning)||void 0===a||a.call(this,"vTilt client rate limited. Config: "+this.eventsPerSecond+" events/second, "+this.eventsBurstLimit+" burst limit."),this.lastEventRateLimited=c,null===(r=this.persistence)||void 0===r||r.set($e,s),{isRateLimited:c,remainingTokens:s.tokens}}shouldAllowEvent(){return!this.checkRateLimit(!1).isRateLimited}getRemainingTokens(){return this.checkRateLimit(!0).remainingTokens}}var je=Array.isArray;class Fe{constructor(i){void 0===i&&(i={}),this.__loaded=!1,this.ti=!1,this.ai=null,this.__request_queue=[],this.ri=!1,this.ni=!1,this.configManager=new a(i);var e=this.configManager.getConfig(),t=e.domain;!t&&C&&(t=this.getCurrentDomain()),this.sessionManager=new k(e.storage||"cookie",t),this.userManager=new qi(e.persistence||"localStorage",t),this.webVitalsManager=new Wi(e,this),this.rateLimiter=new Ge({eventsPerSecond:10,eventsBurstLimit:100,captureWarning:i=>{this.si("$$client_ingestion_warning",{$$client_ingestion_warning_message:i})}}),this.retryQueue=new Ke({sendRequest:i=>this.oi(i),sendBeacon:i=>this.ci(i)}),this.requestQueue=new Le(i=>this.ui(i),{flush_interval_ms:3e3})}init(i,e,t){var a;if(t&&t!==He){var r=null!==(a=Ve[t])&&void 0!==a?a:new Fe;return r._init(i,e,t),Ve[t]=r,Ve[He][t]=r,r}return this._init(i,e,t)}_init(i,e,a){if(void 0===e&&(e={}),this.__loaded)return console.warn("vTilt: You have already initialized vTilt! Re-initializing is a no-op"),this;this.updateConfig(t({},e,{projectId:i||e.projectId,name:a})),this.__loaded=!0;var r=this.configManager.getConfig();return this.userManager.set_initial_person_info(r.mask_personal_data_properties,r.custom_personal_data_properties),this.historyAutocapture=new Ji(this),this.historyAutocapture.startIfEnabled(),this.hi(),this.li(),this}hi(){if(y){var i=()=>{this.requestQueue.unload(),this.retryQueue.unload()};_(y,"beforeunload",i),_(y,"pagehide",i)}}toString(){var i,e=null!==(i=this.configManager.getConfig().name)&&void 0!==i?i:He;return e!==He&&(e=He+"."+e),e}getCurrentDomain(){if(!C)return"";var i=C.protocol,e=C.hostname,t=C.port;return i+"//"+e+(t?":"+t:"")}di(){var i=this.configManager.getConfig();return!(!i.projectId||!i.token)||(this.ri||(console.warn("VTilt: projectId and token are required for tracking. Events will be skipped until init() or updateConfig() is called with these fields."),this.ri=!0),!1)}buildUrl(){var i=this.configManager.getConfig(),{proxyUrl:e,proxy:t,host:a,token:r}=i;return e||(t?t+"/api/tracking?token="+r:a?a.replace(/\/+$/gm,"")+"/api/tracking?token="+r:"/api/tracking?token="+r)}sendRequest(i,e,t){if(this.di()){if(t&&void 0!==y)if(y.__VTILT_ENQUEUE_REQUESTS)return void this.__request_queue.push({url:i,event:e});this.requestQueue.enqueue({url:i,event:e})}}ui(i){var{transport:e}=i;"sendBeacon"!==e?this.retryQueue.retriableRequest(i):this.ci(i)}oi(i){return new Promise(e=>{var{url:t,events:a}=i,r=1===a.length?a[0]:{events:a},n=this.configManager.getConfig().disable_compression?Be.None:Be.GZipJS;Oe({url:t,data:r,method:"POST",transport:"XHR",compression:n,callback:i=>{e({statusCode:i.statusCode})}})})}ci(i){var{url:e,events:t}=i,a=1===t.length?t[0]:{events:t},r=this.configManager.getConfig().disable_compression?Be.None:Be.GZipJS;Oe({url:e,data:a,method:"POST",transport:"sendBeacon",compression:r})}fi(i){this.sendRequest(i.url,i.event,!1)}capture(i,e,a){if(this.sessionManager.setSessionId(),E&&E.userAgent&&function(i){return!(i&&"string"==typeof i&&i.length>500)}(E.userAgent)&&((null==a?void 0:a.skip_client_rate_limiting)||this.rateLimiter.shouldAllowEvent())){var r=this.buildUrl(),n=Hi(),s=this.userManager.getUserProperties(),o=this.userManager.get_initial_props(),c=this.sessionManager.getSessionId(),u=this.sessionManager.getWindowId(),h=this.userManager.getAnonymousId(),l={};!this.ni&&Object.keys(o).length>0&&Object.assign(l,o),e.$set_once&&Object.assign(l,e.$set_once);var d=t({},n,s,{$session_id:c,$window_id:u},h?{$anon_distinct_id:h}:{},Object.keys(l).length>0?{$set_once:l}:{},e.$set?{$set:e.$set}:{},e);!this.ni&&Object.keys(o).length>0&&(this.ni=!0),"$pageview"===i&&M&&(d.title=M.title);var f,A,v=this.configManager.getConfig();if(!1!==v.stringifyPayload){if(f=Object.assign({},d,v.globalAttributes),!p(f=JSON.stringify(f)))return}else if(f=Object.assign({},d,v.globalAttributes),!p(JSON.stringify(f)))return;A="$identify"===i?this.userManager.getAnonymousId():this.userManager.getDistinctId()||this.userManager.getAnonymousId();var m={timestamp:(new Date).toISOString(),event:i,project_id:v.projectId||"",domain:v.domain||this.getCurrentDomain(),payload:f,distinct_id:A,anonymous_id:h};this.sendRequest(r,m,!0)}}si(i,e){this.capture(i,e,{skip_client_rate_limiting:!0})}trackEvent(i,e){void 0===e&&(e={}),this.capture(i,e)}identify(i,e,t){if("number"==typeof i&&(i=String(i),console.warn("The first argument to vTilt.identify was a number, but it should be a string. It has been converted to a string.")),i)if(this.userManager.isDistinctIdStringLikePublic(i))console.error('The string "'+i+'" was set in vTilt.identify which indicates an error. This ID should be unique to the user and not a hardcoded string.');else if("COOKIELESS_SENTINEL_VALUE"!==i){var a=this.userManager.getDistinctId(),r=this.userManager.getAnonymousId(),n=this.userManager.getDeviceId(),s="anonymous"===this.userManager.getUserState();if(!n){var o=a||r;this.userManager.ensureDeviceId(o)}i!==a&&s?(this.userManager.setUserState("identified"),this.userManager.updateUserProperties(e,t),this.capture("$identify",{distinct_id:i,$anon_distinct_id:a||r,$set:e||{},$set_once:t||{}}),this.userManager.setDistinctId(i)):e||t?(s&&this.userManager.setUserState("identified"),this.userManager.updateUserProperties(e,t),this.capture("$set",{$set:e||{},$set_once:t||{}})):i!==a&&(this.userManager.setUserState("identified"),this.userManager.setDistinctId(i))}else console.error('The string "'+i+'" was set in vTilt.identify which indicates an error. This ID is only used as a sentinel value.');else console.error("Unique user id has not been set in vTilt.identify")}setUserProperties(i,e){this.userManager.setUserProperties(i,e)&&this.capture("$set",{$set:i||{},$set_once:e||{}})}resetUser(i){this.sessionManager.resetSessionId(),this.userManager.reset(i)}getUserIdentity(){return this.userManager.getUserIdentity()}getDeviceId(){return this.userManager.getDeviceId()}getUserState(){return this.userManager.getUserState()}createAlias(i,e){var t=this.userManager.createAlias(i,e);t?this.capture("$alias",{$original_id:t.original,$alias_id:t.distinct_id}):i===(e||this.userManager.getDistinctId()||this.userManager.getAnonymousId())&&this.identify(i)}li(){M&&("visible"===M.visibilityState?this.ti||(this.ti=!0,setTimeout(()=>{if(M&&C){this.capture("$pageview",{navigation_type:"initial_load"})}},300),this.ai&&(M.removeEventListener("visibilitychange",this.ai),this.ai=null)):this.ai||(this.ai=()=>{this.li()},_(M,"visibilitychange",this.ai)))}getConfig(){return this.configManager.getConfig()}getSessionId(){return this.sessionManager.getSessionId()}updateConfig(i){this.configManager.updateConfig(i);var e=this.configManager.getConfig(),t=e.domain;!t&&C&&(t=this.getCurrentDomain()),this.sessionManager=new k(e.storage||"cookie",t),this.userManager=new qi(e.persistence||"localStorage",t),this.webVitalsManager=new Wi(e,this)}_execute_array(i){Array.isArray(i)&&i.forEach(i=>{if(i&&Array.isArray(i)&&i.length>0){var e=i[0],t=i.slice(1);if("function"==typeof this[e])try{this[e](...t)}catch(i){console.error("vTilt: Error executing queued call "+e+":",i)}}})}_dom_loaded(){this.requestQueue.enable(),this.__request_queue.forEach(i=>{this.fi(i)}),this.__request_queue=[]}}var Ve={},He="vt",qe=!(void 0!==R||void 0!==P)&&-1===(null==T?void 0:T.indexOf("MSIE"))&&-1===(null==T?void 0:T.indexOf("Mozilla"));y&&(y.__VTILT_ENQUEUE_REQUESTS=qe);var We,ze,Je=function(){function i(){i.done||(i.done=!0,qe=!1,void 0!==y&&(y.__VTILT_ENQUEUE_REQUESTS=!1),g(Ve,function(i){i._dom_loaded()}))}M&&"function"==typeof M.addEventListener?"complete"===M.readyState?i():_(M,"DOMContentLoaded",i,{capture:!1}):y&&console.error("Browser doesn't support `document.addEventListener` so vTilt couldn't be initialized")};"undefined"!=typeof window&&window.vt&&Array.isArray(window.vt)&&(We=Ve[He]=new Fe,(ze=U.vt)&&g(ze._i,function(i){if(i&&je(i)){var e=We.init(i[0],i[1],i[2]),t=ze[i[2]||"vt"]||ze;e&&e._execute_array(t)}}),U.vt=We,Je());var Ze=function(){var i=Ve[He]=new Fe;return Je(),i}();exports.VTilt=Fe,exports.default=Ze,exports.vt=Ze;
2
2
  //# sourceMappingURL=main.js.map