PageSourceSearch

https://kenguidroz.com/_next/static/chunks/2_vdykdom8b29.js

js kenguidroz.com collected 2026-10-04 02:14:36 UTC 60,782 bytes, 4 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="698c02d8-ae83-aecb-fc27-6e90caa69180")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,37037,t=>{"use strict";var e,n,r=t.i(843476),i=t.i(271645),o=t.i(290571),a=t.i(247167);function s(){return void 0!==a.default&&a.default.env?a.default.env:{}}var u=t.i(55605),c=t.i(45493);function l(t,e,n,r){var i,o=[t,e,n,r],a=(0,c.isPlainObject)(t)?t.event:t;if(!a||!(0,c.isString)(a))throw Error("Event missing");var s=(0,c.isPlainObject)(t)?null!=(i=t.properties)?i:{}:(0,c.isPlainObject)(e)?e:{},u={};return(0,c.isFunction)(n)||(u=null!=n?n:{}),(0,c.isPlainObject)(t)&&!(0,c.isFunction)(e)&&(u=null!=e?e:{}),[a,s,u,o.find(c.isFunction)]}function d(t,e,n,r,i){var o,a,s=null,u=null,l=[t,e,n,r,i],d=l.filter(c.isString);1===d.length?(u=(0,c.isString)(l[1])?l[1]:d[0],s=null):2===d.length&&("string"==typeof l[0]&&(s=l[0]),"string"==typeof l[1]&&(u=l[1]));var h=l.find(c.isFunction),p=l.filter(c.isPlainObject);return 1===p.length?(0,c.isPlainObject)(l[2])?(a={},o=l[2]):(0,c.isPlainObject)(l[3])?(o={},a=l[3]):(o=p[0],a={}):2===p.length&&(o=p[0],a=p[1]),[s,u,null!=o?o:o={},null!=a?a:a={},h]}var h=function(t){return function(){for(var e,n,r,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];for(var a={},s=["callback","options","traits","id"],u=0;u<i.length;u++){var l=i[u],d=s.pop();if("id"===d){if((0,c.isString)(l)||(0,c.isNumber)(l)){a.id=l.toString();continue}if(null==l)continue;d=s.pop()}if(("traits"===d||"options"===d)&&(null==l||(0,c.isPlainObject)(l))&&(a[d]=l),(0,c.isFunction)(l)){a.callback=l;break}}return[null!=(e=a.id)?e:t.id(),null!=(n=a.traits)?n:{},null!=(r=a.options)?r:{},a.callback]}};function p(t,e,n,r){(0,c.isNumber)(t)&&(t=t.toString()),(0,c.isNumber)(e)&&(e=e.toString());var i=[t,e,n,r],o=i.filter(c.isString),a=o[0],s=void 0===a?t:a,u=o[1],l=i.filter(c.isPlainObject)[0];return[s,void 0===u?null:u,void 0===l?{}:l,i.find(c.isFunction)]}var f=t.i(508991),g=t.i(683049),v=t.i(502471),_=t.i(416997),y=t.i(610991),m=function(t,e,n,r,i,o){return{__t:"bpc",c:e,p:r,u:t,s:n,t:i,r:o}},w=Object.keys(m("","","","","","")),b=function(t){var e=t.indexOf("#");return -1===e?t:t.slice(0,e)},S=function(t){try{return new URL(t).pathname}catch(e){return"/"===t[0]?t:"/"+t}},E=function(t){var e=t.c,n=t.p,r=t.s,i=t.u,o=t.r,a=t.t,s=e?S(e):n,u=e?e.indexOf("?")>-1?e:e+r:b(i);return{path:s,referrer:o,search:r,title:a,url:u}},k=function(){var t=document.querySelector("link[rel='canonical']");return m(location.href,t&&t.getAttribute("href")||void 0,location.search,location.pathname,document.title,document.referrer)},I=function(t,e){void 0===e&&(e=E(k()));var n,r,i,a=t.context;"page"===t.type&&(i=t.properties&&(n=t.properties,r=Object.keys(e),Object.assign.apply(Object,(0,o.__spreadArray)([{}],r.map(function(t){var e;if(n&&Object.prototype.hasOwnProperty.call(n,t))return(e={})[t]=n[t],e}),!1))),t.properties=(0,o.__assign)((0,o.__assign)((0,o.__assign)({},e),t.properties),t.name?{name:t.name}:{})),a.page=(0,o.__assign)((0,o.__assign)((0,o.__assign)({},e),i),a.page)},A=t.i(708721),M=function(t){function e(e,n){var r=t.call(this,"".concat(e," ").concat(n))||this;return r.field=e,r}return(0,o.__extends)(e,t),e}(Error),C="is not a string",P="is not an object",O=function(t){var e,n;this.settings=t,this.createMessageId=t.createMessageId,this.onEventMethodCall=null!=(e=t.onEventMethodCall)?e:function(){},this.onFinishedEvent=null!=(n=t.onFinishedEvent)?n:function(){}},x=function(t){function e(e){var n=t.call(this,{createMessageId:function(){return"ajs-next-".concat(Date.now(),"-").concat((0,y.v4)())},onEventMethodCall:function(t){var e=t.options;n.maybeUpdateAnonId(e)},onFinishedEvent:function(t){return n.addIdentity(t),t}})||this;return n.user=e,n}return(0,o.__extends)(e,t),e.prototype.maybeUpdateAnonId=function(t){(null==t?void 0:t.anonymousId)&&this.user.anonymousId(t.anonymousId)},e.prototype.addIdentity=function(t){this.user.id()&&(t.userId=this.user.id()),this.user.anonymousId()&&(t.anonymousId=this.user.anonymousId())},e.prototype.track=function(e,n,r,i,o){var a=t.prototype.track.call(this,e,n,r,i);return I(a,o),a},e.prototype.page=function(e,n,r,i,o,a){var s=t.prototype.page.call(this,e,n,r,i,o);return I(s,a),s},e.prototype.screen=function(e,n,r,i,o,a){var s=t.prototype.screen.call(this,e,n,r,i,o);return I(s,a),s},e.prototype.identify=function(e,n,r,i,o){var a=t.prototype.identify.call(this,e,n,r,i);return I(a,o),a},e.prototype.group=function(e,n,r,i,o){var a=t.prototype.group.call(this,e,n,r,i);return I(a,o),a},e.prototype.alias=function(e,n,r,i,o){var a=t.prototype.alias.call(this,e,n,r,i);return I(a,o),a},e}(function(){function t(t){this.settings=new O(t)}return t.prototype.track=function(t,e,n,r){return this.settings.onEventMethodCall({type:"track",options:n}),this.normalize((0,o.__assign)((0,o.__assign)({},this.baseEvent()),{event:t,type:"track",properties:null!=e?e:{},options:(0,o.__assign)({},n),integrations:(0,o.__assign)({},r)}))},t.prototype.page=function(t,e,n,r,i){this.settings.onEventMethodCall({type:"page",options:r});var a,s={type:"page",properties:(0,o.__assign)({},n),options:(0,o.__assign)({},r),integrations:(0,o.__assign)({},i)};return null!==t&&(s.category=t,s.properties=null!=(a=s.properties)?a:{},s.properties.category=t),null!==e&&(s.name=e),this.normalize((0,o.__assign)((0,o.__assign)({},this.baseEvent()),s))},t.prototype.screen=function(t,e,n,r,i){this.settings.onEventMethodCall({type:"screen",options:r});var a={type:"screen",properties:(0,o.__assign)({},n),options:(0,o.__assign)({},r),integrations:(0,o.__assign)({},i)};return null!==t&&(a.category=t),null!==e&&(a.name=e),this.normalize((0,o.__assign)((0,o.__assign)({},this.baseEvent()),a))},t.prototype.identify=function(t,e,n,r){return this.settings.onEventMethodCall({type:"identify",options:n}),this.normalize((0,o.__assign)((0,o.__assign)({},this.baseEvent()),{type:"identify",userId:t,traits:null!=e?e:{},options:(0,o.__assign)({},n),integrations:r}))},t.prototype.group=function(t,e,n,r){return this.settings.onEventMethodCall({type:"group",options:n}),this.normalize((0,o.__assign)((0,o.__assign)({},this.baseEvent()),{type:"group",traits:null!=e?e:{},options:(0,o.__assign)({},n),integrations:(0,o.__assign)({},r),groupId:t}))},t.prototype.alias=function(t,e,n,r){this.settings.onEventMethodCall({type:"alias",options:n});var i={userId:t,type:"alias",options:(0,o.__assign)({},n),integrations:(0,o.__assign)({},r)};return(null!==e&&(i.previousId=e),void 0===t)?this.normalize((0,o.__assign)((0,o.__assign)({},i),this.baseEvent())):this.normalize((0,o.__assign)((0,o.__assign)({},this.baseEvent()),i))},t.prototype.baseEvent=function(){return{integrations:{},options:{}}},t.prototype.context=function(t){var e,n=["userId","anonymousId","timestamp","messageId"];delete t.integrations;var r=Object.keys(t),i=null!=(e=t.context)?e:{},o={};return r.forEach(function(e){"context"!==e&&(n.includes(e)?(0,A.dset)(o,e,t[e]):(0,A.dset)(i,e,t[e]))}),[i,o]},t.prototype.normalize=function(t){var e,n,r,i=Object.keys(null!=(n=t.integrations)?n:{}).reduce(function(e,n){var r,i;return(0,o.__assign)((0,o.__assign)({},e),((r={})[n]=!!(null==(i=t.integrations)?void 0:i[n]),r))},{});e=t.options||{},t.options=Object.keys(e).filter(function(t){return function(t,e){return void 0!==e}(t,e[t])}).reduce(function(t,n){return t[n]=e[n],t},{});var a=(0,o.__assign)((0,o.__assign)({}
2,i),null==(r=t.options)?void 0:r.integrations),s=t.options?this.context(t.options):[],u=s[0],l=s[1],d=t.options,h=(0,o.__rest)(t,["options"]),p=(0,o.__assign)((0,o.__assign)((0,o.__assign)((0,o.__assign)({timestamp:new Date},h),{context:u,integrations:a}),l),{messageId:d.messageId||this.settings.createMessageId()});return this.settings.onFinishedEvent(p),!function(t){if(!(0,c.exists)(t))throw new M("Event","is nil");if("object"!=typeof t)throw new M("Event",P);if(!(0,c.isString)(t.type))throw new M(".type",C);if(!(0,c.isString)(t.messageId))throw new M(".messageId",C);if("track"===t.type){if(!(0,c.isString)(t.event))throw new M(".event",C);if(!(0,c.isPlainObject)(t.properties))throw new M(".properties",P)}["group","identify"].includes(t.type)&&function(t){if(!(0,c.isPlainObject)(t.traits))throw new M(".traits",P)}(t)}(p),p},t}()),j=function(t){return"addMiddleware"in t&&"destination"===t.type},N=t.i(793783),R=t.i(459912),L=t.i(382420),D=function(){var t,e,n=0;return{done:function(){return t},run:function(r){var i=r();return"object"==typeof i&&null!==i&&"then"in i&&"function"==typeof i.then&&(1==++n&&(t=new Promise(function(t){return e=t})),i.finally(function(){return 0==--n&&e()})),i}}},F=t.i(587603),K=function(t){function e(e){return t.call(this,"string"==typeof e?new N.PersistedPriorityQueue(4,e):e)||this}return(0,o.__extends)(e,t),e.prototype.flush=function(){return(0,o.__awaiter)(this,void 0,void 0,function(){return(0,o.__generator)(this,function(e){return(0,f.isOffline)()?[2,[]]:[2,t.prototype.flush.call(this)]})})},e}(function(t){function e(e){var n=t.call(this)||this;return n.criticalTasks=D(),n.plugins=[],n.failedInitializations=[],n.flushing=!1,n.queue=e,n.queue.on(R.ON_REMOVE_FROM_FUTURE,function(){n.scheduleFlush(0)}),n}return(0,o.__extends)(e,t),e.prototype.register=function(t,e,n){return(0,o.__awaiter)(this,void 0,void 0,function(){var r,i,a=this;return(0,o.__generator)(this,function(o){switch(o.label){case 0:if(this.plugins.push(e),r=function(n){a.failedInitializations.push(e.name),a.emit("initialization_failure",e),console.warn(e.name,n),t.log("warn","Failed to load destination",{plugin:e.name,error:n}),a.plugins=a.plugins.filter(function(t){return t!==e})},"destination"!==e.type||"Segment.io"===e.name)return[3,1];return e.load(t,n).catch(r),[3,4];case 1:return o.trys.push([1,3,,4]),[4,e.load(t,n)];case 2:return o.sent(),[3,4];case 3:return i=o.sent(),r(i),[3,4];case 4:return[2]}})})},e.prototype.deregister=function(t,e,n){return(0,o.__awaiter)(this,void 0,void 0,function(){var r;return(0,o.__generator)(this,function(i){switch(i.label){case 0:if(i.trys.push([0,3,,4]),!e.unload)return[3,2];return[4,Promise.resolve(e.unload(t,n))];case 1:i.sent(),i.label=2;case 2:return this.plugins=this.plugins.filter(function(t){return t.name!==e.name}),[3,4];case 3:return r=i.sent(),t.log("warn","Failed to unload destination",{plugin:e.name,error:r}),[3,4];case 4:return[2]}})})},e.prototype.dispatch=function(t){return(0,o.__awaiter)(this,void 0,void 0,function(){var e;return(0,o.__generator)(this,function(n){return t.log("debug","Dispatching"),t.stats.increment("message_dispatched"),this.queue.push(t),e=this.subscribeToDelivery(t),this.scheduleFlush(0),[2,e]})})},e.prototype.subscribeToDelivery=function(t){return(0,o.__awaiter)(this,void 0,void 0,function(){var e=this;return(0,o.__generator)(this,function(n){return[2,new Promise(function(n){var r=function(i,o){i.isSame(t)&&(e.off("flush",r),n(i))};e.on("flush",r)})]})})},e.prototype.dispatchSingle=function(t){return(0,o.__awaiter)(this,void 0,void 0,function(){var e=this;return(0,o.__generator)(this,function(n){return t.log("debug","Dispatching"),t.stats.increment("message_dispatched"),this.queue.updateAttempts(t),t.attempts=1,[2,this.deliver(t).catch(function(n){return e.enqueuRetry(n,t)?e.subscribeToDelivery(t):(t.setFailedDelivery({reason:n}),t)})]})})},e.prototype.isEmpty=function(){return 0===this.queue.length},e.prototype.scheduleFlush=function(t){var e=this;void 0===t&&(t=500),this.flushing||(this.flushing=!0,setTimeout(function(){e.flush().then(function(){setTimeout(function(){e.flushing=!1,e.queue.length&&e.scheduleFlush(0)},0)})},t))},e.prototype.deliver=function(t){return(0,o.__awaiter)(this,void 0,void 0,function(){var e,n,r,i;return(0,o.__generator)(this,function(o){switch(o.label){case 0:return[4,this.criticalTasks.done()];case 1:o.sent(),e=Date.now(),o.label=2;case 2:return o.trys.push([2,4,,5]),[4,this.flushOne(t)];
2case 3:return t=o.sent(),n=Date.now()-e,this.emit("delivery_success",t),t.stats.gauge("delivered",n),t.log("debug","Delivered",t.event),[2,t];case 4:throw i=r=o.sent(),t.log("error","Failed to deliver",i),this.emit("delivery_failure",t,i),t.stats.increment("delivery_failed"),r;case 5:return[2]}})})},e.prototype.enqueuRetry=function(t,e){return!!(!(t instanceof L.ContextCancelation)||t.retry)&&this.queue.pushWithBackoff(e)},e.prototype.flush=function(){return(0,o.__awaiter)(this,void 0,void 0,function(){var t,e;return(0,o.__generator)(this,function(n){switch(n.label){case 0:if(0===this.queue.length||!(t=this.queue.pop()))return[2,[]];t.attempts=this.queue.getAttempts(t),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.deliver(t)];case 2:return t=n.sent(),this.emit("flush",t,!0),[3,4];case 3:return e=n.sent(),this.enqueuRetry(e,t)||(t.setFailedDelivery({reason:e}),this.emit("flush",t,!1)),[2,[]];case 4:return[2,[t]]}})})},e.prototype.isReady=function(){return!0},e.prototype.availableExtensions=function(t){var e,n,r=(e="type",n={},this.plugins.filter(function(e){if("destination"!==e.type&&"Segment.io"!==e.name)return!0;var n,r,i,o=void 0;return null==(n=e.alternativeNames)||n.forEach(function(e){void 0!==t[e]&&(o=t[e])}),null!=(i=null!=(r=t[e.name])?r:o)?i:!1!==("Segment.io"===e.name||t.All)}).forEach(function(t){var r,i=void 0;if("string"==typeof e){var a=t[e];i="string"!=typeof a?JSON.stringify(a):a}else e instanceof Function&&(i=e(t));void 0!==i&&(n[i]=(0,o.__spreadArray)((0,o.__spreadArray)([],null!=(r=n[i])?r:[],!0),[t],!1))}),n),i=r.before,a=r.enrichment,s=r.destination,u=r.after;return{before:void 0===i?[]:i,enrichment:void 0===a?[]:a,destinations:void 0===s?[]:s,after:void 0===u?[]:u}},e.prototype.flushOne=function(t){var e,n;return(0,o.__awaiter)(this,void 0,void 0,function(){var r,i,a,s,u,c,l,d,h,p,f,g,v;return(0,o.__generator)(this,function(o){switch(o.label){case 0:if(!this.isReady())throw Error("Not ready");t.attempts>1&&this.emit("delivery_retry",t),i=(r=this.availableExtensions(null!=(e=t.event.integrations)?e:{})).before,a=r.enrichment,s=0,u=i,o.label=1;case 1:if(!(s<u.length))return[3,4];return c=u[s],[4,(0,F.ensure)(t,c)];case 2:(l=o.sent())instanceof L.CoreContext&&(t=l),this.emit("message_enriched",t,c),o.label=3;case 3:return s++,[3,1];case 4:d=0,h=a,o.label=5;case 5:if(!(d<h.length))return[3,8];return p=h[d],[4,(0,F.attempt)(t,p)];case 6:(l=o.sent())instanceof L.CoreContext&&(t=l),this.emit("message_enriched",t,p),o.label=7;case 7:return d++,[3,5];case 8:return g=(f=this.availableExtensions(null!=(n=t.event.integrations)?n:{})).destinations,v=f.after,[4,new Promise(function(e,n){setTimeout(function(){Promise.all(g.map(function(e){return(0,F.attempt)(t,e)})).then(e).catch(n)},0)})];case 9:return o.sent(),t.stats.increment("message_delivered"),this.emit("message_delivered",t),[4,Promise.all(v.map(function(e){return(0,F.attempt)(t,e)}))];case 10:return o.sent(),[2,t]}})})},e}(_.Emitter));function U(t){for(var e=t.constructor.prototype,n=0,r=Object.getOwnPropertyNames(e);n<r.length;n++){var i=r[n];if("constructor"!==i){var o=Object.getOwnPropertyDescriptor(t.constructor.prototype,i);o&&"function"==typeof o.value&&(t[i]=t[i].bind(t))}}return t}var q=function(t,e,n,r){console.warn("".concat(t.constructor.name,": Can't ").concat(e,' key "').concat(n,'" | Err: ').concat(r))},T=function(){function t(t){this.stores=t}return t.prototype.get=function(t){for(var e=null,n=0,r=this.stores;n<r.length;n++){var i=r[n];try{if(null!=(e=i.get(t)))return e}catch(e){q(i,"get",t,e)}}return null},t.prototype.set=function(t,e){this.stores.forEach(function(n){try{n.set(t,e)}catch(e){q(n,"set",t,e)}})},t.prototype.clear=function(t){this.stores.forEach(function(e){try{e.remove(t)}catch(n){q(e,"remove",t,n)}})},t.prototype.getAndSync=function(t){var e=this.get(t),n="number"==typeof e?e.toString():e;return this.set(t,n),n},t}(),z=function(){function t(){this.cache={}}return t.prototype.get=function(t){var e;return null!=(e=this.cache[t])?e:null},t.prototype.set=function(t,e){this.cache[t]=e},t.prototype.remove=function(t){delete this.cache[t]},t}(),B={Cookie:"cookie",LocalStorage:"localStorage",Memory:"memory"};function W(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}var H=function t(e,n){function r(t,r,i){if("u">typeof document){"number"==typeof(i=W({},n,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decode
2URIComponent).replace(/[()]/g,escape);var o="";for(var a in i)i[a]&&(o+="; "+a,!0!==i[a]&&(o+="="+i[a].split(";")[0]));return document.cookie=t+"="+e.write(r,t)+o}}return Object.create({set:r,get:function(t){if("u">typeof document&&(!arguments.length||t)){for(var n=document.cookie?document.cookie.split("; "):[],r={},i=0;i<n.length;i++){var o=n[i].split("="),a=o.slice(1).join("=");try{var s=decodeURIComponent(o[0]);if(r[s]=e.read(a,s),t===s)break}catch(t){}}return t?r[t]:r}},remove:function(t,e){r(t,"",W({},e,{expires:-1}))},withAttributes:function(e){return t(this.converter,W({},this.attributes,e))},withConverter:function(e){return t(W({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(e)}})}({read:function(t){return'"'===t[0]&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});function V(t){var e=function(t){try{return new URL(t)}catch(t){return}}(t);if(e)for(var n=function(t){var e=t.hostname.split("."),n=e[e.length-1],r=[];if(4===e.length&&parseInt(n,10)>0||e.length<=1)return r;for(var i=e.length-2;i>=0;--i)r.push(e.slice(i).join("."));return r}(e),r=0;r<n.length;++r){var i="__tld__",o=n[r],a={domain:"."+o};try{if(H.set(i,"1",a),H.get(i))return H.remove(i,a),o}catch(t){return}}}var G=function(){function t(e){void 0===e&&(e=t.defaults),this.options=(0,o.__assign)((0,o.__assign)({},t.defaults),e)}return Object.defineProperty(t,"defaults",{get:function(){return{maxage:365,domain:V(window.location.href),path:"/",sameSite:"Lax"}},enumerable:!1,configurable:!0}),t.prototype.opts=function(){return{sameSite:this.options.sameSite,expires:this.options.maxage,domain:this.options.domain,path:this.options.path,secure:this.options.secure}},t.prototype.get=function(t){var e;try{var n=H.get(t);if(null==n)return null;try{return null!=(e=JSON.parse(n))?e:null}catch(t){return null!=n?n:null}}catch(t){return null}},t.prototype.set=function(t,e){"string"==typeof e?H.set(t,e,this.opts()):null===e?H.remove(t,this.opts()):H.set(t,JSON.stringify(e),this.opts())},t.prototype.remove=function(t){return H.remove(t,this.opts())},t}(),J=function(){function t(){}return t.prototype.localStorageWarning=function(t,e){console.warn("Unable to access ".concat(t,", localStorage may be ").concat(e))},t.prototype.get=function(t){var e;try{var n=localStorage.getItem(t);if(null===n)return null;try{return null!=(e=JSON.parse(n))?e:null}catch(t){return null!=n?n:null}}catch(e){return this.localStorageWarning(t,"unavailable"),null}},t.prototype.set=function(t,e){try{localStorage.setItem(t,JSON.stringify(e))}catch(e){this.localStorageWarning(t,"full")}},t.prototype.remove=function(t){try{return localStorage.removeItem(t)}catch(e){this.localStorageWarning(t,"unavailable")}},t}();function Q(t){return t&&t.stores&&Array.isArray(t.stores)&&t.stores.every(function(t){return Object.values(B).includes(t)})}function $(t){return t.map(function(t){var e,n;switch("object"==typeof t&&void 0!==t.name?(e=t.name,n=t.settings):e=t,e){case B.Cookie:return new G(n);case B.LocalStorage:return new J;case B.Memory:return new z;default:throw Error("Unknown Store Type: ".concat(t))}})}function Z(t,e){return t.map(function(t){return e&&t===B.Cookie?{name:t,settings:e}:t})}var X={persist:!0,cookie:{key:"ajs_user_id",oldKey:"ajs_user"},localStorage:{key:"ajs_user_traits"}},Y=function(){function t(t,e){void 0===t&&(t=X);var n,r,i,a,s=this;this.options={},this.id=function(t){if(s.options.disable)return null;var e=s.identityStore.getAndSync(s.idKey);void 0!==t&&(s.identityStore.set(s.idKey,t),t!==e&&null!==e&&null!==t&&s.anonymousId(null));var n=s.identityStore.getAndSync(s.idKey);if(n)return n;var r=s.legacyUserStore.get(X.cookie.oldKey);return r?"object"==typeof r?r.id:r:null},this.anonymousId=function(t){var e,n;if(s.options.disable)return null;if(void 0===t){var r=null!=(e=s.identityStore.getAndSync(s.anonKey))?e:null==(n=s.legacySIO())?void 0:n[0];if(r)return r}return null===t?s.identityStore.set(s.anonKey,null):s.identityStore.set(s.anonKey,null!=t?t:(0,y.v4)()),s.identityStore.getAndSync(s.anonKey)},this.traits=function(t){var e;if(!s.options.disable)return null===t&&(t={}),t&&s.traitsStore.set(s.traitsKey,null!=t?t:{}),null!=(e=s.traitsStore.get(s.traitsKey))?e:{}},this.options=(0,o.__assign)((0,o.__assign)({},X),t),this.cookieOptions=e,this.idKey=null!=(r=null==(n=t.cookie)?void 0:n.key)?r:X.cookie.ke
2y,this.traitsKey=null!=(a=null==(i=t.localStorage)?void 0:i.key)?a:X.localStorage.key,this.anonKey="ajs_anonymous_id",this.identityStore=this.createStorage(this.options,e),this.legacyUserStore=this.createStorage(this.options,e,function(t){return t===B.Cookie}),this.traitsStore=this.createStorage(this.options,e,function(t){return t!==B.Cookie});var u=this.legacyUserStore.get(X.cookie.oldKey);u&&"object"==typeof u&&(u.id&&this.id(u.id),u.traits&&this.traits(u.traits)),U(this)}return t.prototype.legacySIO=function(){var t=this.legacyUserStore.get("_sio");if(!t)return null;var e=t.split("----");return[e[0],e[1]]},t.prototype.identify=function(t,e){if(!this.options.disable){e=null!=e?e:{};var n=this.id();(null===n||n===t)&&(e=(0,o.__assign)((0,o.__assign)({},this.traits()),e)),t&&this.id(t),this.traits(e)}},t.prototype.logout=function(){this.anonymousId(null),this.id(null),this.traits({})},t.prototype.reset=function(){this.logout(),this.identityStore.clear(this.idKey),this.identityStore.clear(this.anonKey),this.traitsStore.clear(this.traitsKey)},t.prototype.load=function(){return new t(this.options,this.cookieOptions)},t.prototype.save=function(){return!0},t.prototype.createStorage=function(t,e,n){var r=[B.LocalStorage,B.Cookie,B.Memory];return t.disable?new T([]):t.persist?(void 0!==t.storage&&null!==t.storage&&Q(t.storage)&&(r=t.storage.stores),t.localStorageFallbackDisabled&&(r=r.filter(function(t){return t!==B.LocalStorage})),n&&(r=r.filter(n)),new T($(Z(r,e)))):new T([new z])},t.defaults=X,t}(),tt={persist:!0,cookie:{key:"ajs_group_id"},localStorage:{key:"ajs_group_properties"}},te=function(t){function e(e,n){void 0===e&&(e=tt);var r=t.call(this,(0,o.__assign)((0,o.__assign)({},tt),e),n)||this;return r.anonymousId=function(t){},U(r),r}return(0,o.__extends)(e,t),e}(Y),tn=t.i(930694),tr=t.i(920611),ti=t.i(813113),to=t.i(134621),ta=function(t,e,n){n.getAndRemove(t).forEach(function(t){tf(e,t).catch(console.error)})},ts=ta.bind(void 0,"on"),tu=ta.bind(void 0,"setAnonymousId"),tc=function(t,e){Object.keys(e.calls).forEach(function(n){e.getAndRemove(n).forEach(function(e){setTimeout(function(){tf(t,e).catch(console.error)},0)})})},tl=function(t){if(td(t))return E(t.pop())},td=function(t){var e=t[t.length-1];if("object"!==Object.prototype.toString.call(e).slice(8,-1).toLowerCase()||"bpc"!==e.__t)return!1;for(var n in e)if(!w.includes(n))return!1;return!0},th=function(t,e,n,r){void 0===n&&(n=function(){}),void 0===r&&(r=console.error),this.method=t,this.resolve=n,this.reject=r,this.called=!1,this.args=e},tp=function(){function t(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._callMap={},this.add.apply(this,t)}return Object.defineProperty(t.prototype,"calls",{get:function(){return this._pushSnippetWindowBuffer(),this._callMap},set:function(t){this._callMap=t},enumerable:!1,configurable:!0}),t.prototype.get=function(t){var e;return null!=(e=this.calls[t])?e:[]},t.prototype.getAndRemove=function(t){var e=this.get(t);return this.calls[t]=[],e},t.prototype.add=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];e.forEach(function(e){["track","screen","alias","group","page","identify"].includes(e.method)&&!td(e.args)&&(e.args=(0,o.__spreadArray)((0,o.__spreadArray)([],e.args,!0),[k()],!1)),t.calls[e.method]?t.calls[e.method].push(e):t.calls[e.method]=[e]})},t.prototype.clear=function(){this._pushSnippetWindowBuffer(),this.calls={}},t.prototype.toArray=function(){var t;return(t=[]).concat.apply(t,Object.values(this.calls))},t.prototype._pushSnippetWindowBuffer=function(){if("npm"!==(0,to.getVersionType)()){var t=(0,ti.getGlobalAnalytics)();if(Array.isArray(t)){var e=t.splice(0,t.length).map(function(t){return new th(t[0],t.slice(1))});this.add.apply(this,e)}}},t}();function tf(t,e){return(0,o.__awaiter)(this,void 0,void 0,function(){var n,r;return(0,o.__generator)(this,function(i){switch(i.label){case 0:var o;if(i.trys.push([0,3,,4]),e.called)return[2,void 0];if(e.called=!0,!("object"==typeof(o=n=t[e.method].apply(t,e.args))&&null!==o&&"then"in o&&"function"==typeof o.then))return[3,2];return[4,n];case 1:i.sent(),i.label=2;case 2:return e.resolve(n),[3,4];case 3:return r=i.sent(),e.reject(r),[3,4];case 4:return[2]}})})}var tg=function(){function t(t){var e=this;this.trackSubmit=this._createMethod("trackSubmit"),this.trackClick=this._createMethod("trackClick"),this.trackLink=this._createMethod("trackLink"),this.pageView=this._createMethod("pageview"),this.identify=this._createMethod("identify"),this.reset=this._createMethod("reset"),this.group=this._createMethod("group"),this.track=this._createMethod("track"),this.ready=this._createMethod("ready"),this.alias=this._createMethod("alias"),this.debug=this._createChainableMethod("debug"),this.page=this._createMethod("page"),this.once=this._createChainableMethod("once"),this.off=this._createChainableMethod("off"),this.on=this._createChainableMethod("on"),this.addSourceMiddleware=this._createMethod("addSourceMiddleware"),this.setAnonymousId=this._createMethod("setAnonymousId"),this.addDestinationMiddleware=this._createMethod("addDestinationMiddleware"),this.screen=this._createMethod("screen"),this.register=this._createMethod("register"),this.deregister=this._createMethod("deregister"),this.user=this._createMethod("user"),this.VERSION=tn.version,this._preInitBuffer=new tp,this._promise=t(this._preInitBuffer),this._promise.then(function(t){var n=t[0],r=t[1];e.instance=n,e.ctx=r}).catch(function(){})}return t.prototype.then=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=this._promise).then.apply(t,e)},t.prototype.catch=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=this._promise).catch.apply(t,e)},t.prototype.finally=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(t=this._promise).finally.apply(t,e)},t.prototype._createMethod=function(t){var e=this;return function(){for(var n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return e.instance?Promise.resolve((n=e.instance)[t].apply(n,r)):new Promise(function(n,i){e._preInitBuffer.add(new th(t,r,n,i))})}},t.prototype._createChainableMethod=function(t){var e=this;return function(){for(var n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return e.instance?(n=e.instance)[t].apply(n,r):e._preInitBuffer.add(new th(t,r)),e}},t}(),tv=t.i(319045),t_=t.i(570541),ty=function(t){var e=!1;window.addEventListener("pagehide",function(){e||t(e=!0)}),document.addEventListener("visibilitychange",function(){if("hidden"==document.visibilityState){if(e)return;e=!0}else e=!1;t(e)})},tm=function(t){function e(e,n){var r=t.call(this,e)||this;return r.retryTimeout=n,r.name="RateLimitError",r}return(0,o.__extends)(e,t),e}(Error),tw=function(t){return(0,o.__assign)({"Content-Type":"text/plain"},"function"==typeof t?t():t)};function tb(t){return(encodeURI(JSON.stringify(t)).split(/%..|./).length-1)/1024}var tS=t.i(785630);function tE(t,e,n,r){var i=this;t||setTimeout(function(){return(0,o.__awaiter)(i,void 0,void 0,function(){var t,i;return(0,o.__generator)(this,function(a){switch(a.label){case 0:return t=!0,[4,function(t,e){return(0,o.__awaiter)(this,void 0,void 0,function(){var n,r=this;return(0,o.__generator)(this,function(i){switch(i.label){case 0:if(n=[],(0,f.isOffline)())return[2,e];return[4,(0,tS.pWhile)(function(){return e.length>0&&!(0,f.isOffline)()},function(){return(0,o.__awaiter)(r,void 0,void 0,function(){var r;return(0,o.__generator)(this,function(i){switch(i.label){case 0:if(!(r=e.pop()))return[2];return[4,(0,F.attempt)(r,t)];case 1:return i.sent()instanceof g.Context||n.push(r),[2]}})})})];case 1:return i.sent(),n.map(function(t){return e.pushWithBackoff(t)}),[2,e]}})})}(n,e)];case 1:return i=a.sent(),t=!1,e.todo>0&&r(t,i,n,r),[2]}})})},5e3*Math.random())}var tk=t.i(133041),tI=function(t){return"Segment.io"===t.name},tA="This is being deprecated and will be not be available in future releases of Analytics JS",tM=(0,tr.getGlobal)(),tC=null==tM?void 0:tM.analytics,tP=function(){function t(t,e){var n;this.timeout=300,this._getSegmentPluginMetadata=function(){var t;return null==(t=e.plugins.find(tI))?void 0:t.metadata},this.writeKey=t.writeKey,this.cdnSettings=null!=(n=t.cdnSettings)?n:{integrations:{"Segment.io":{apiKey:""}}},this.cdnURL=t.cdnURL}return Object.defineProperty(t.prototype,"apiHost",{get:function(){var t,e;return null==(e=null==(t=this._getSegmentPluginMetadata)?void 0:t.call(this))?void 0:e.apiHost}
2,enumerable:!1,configurable:!0}),t}();function tO(){console.warn(tA)}var tx=function(e){function n(t,n,r,i,a){var s,u,c,l,d,h,p=this;(p=e.call(this)||this)._debug=!1,p.initialized=!1,p.user=function(){return p._user},p.init=p.initialize.bind(p),p.log=tO,p.addIntegrationMiddleware=tO,p.listeners=tO,p.addEventListener=tO,p.removeAllListeners=tO,p.removeListener=tO,p.removeEventListener=tO,p.hasListeners=tO,p.add=tO,p.addIntegration=tO;var f=null==n?void 0:n.cookie,g=null!=(d=null==n?void 0:n.disableClientPersistence)&&d;p.queue=null!=r?r:(s="".concat(t.writeKey,":event-queue"),void 0===(u=null==n?void 0:n.retryQueue)&&(u=!1),void 0===(c=g)&&(c=!1),l=u?10:1,new K(c?new R.PriorityQueue(l,[]):new N.PersistedPriorityQueue(l,s))),p.settings=new tP(t,p.queue);var v=null==n?void 0:n.storage;return p._universalStorage=p.createStore(g,v,f),p._user=null!=i?i:new Y((0,o.__assign)({persist:!g,storage:null==n?void 0:n.storage},null==n?void 0:n.user),f).load(),p._group=null!=a?a:new te((0,o.__assign)({persist:!g,storage:null==n?void 0:n.storage},null==n?void 0:n.group),f).load(),p.eventFactory=new x(p._user),p.integrations=null!=(h=null==n?void 0:n.integrations)?h:{},p.options=null!=n?n:{},U(p),p}return(0,o.__extends)(n,e),n.prototype.createStore=function(t,e,n){return new T(t?[new z]:e&&Q(e)?$(Z(e.stores,n)):$([B.LocalStorage,{name:B.Cookie,settings:n},B.Memory]))},Object.defineProperty(n.prototype,"storage",{get:function(){return this._universalStorage},enumerable:!1,configurable:!0}),n.prototype.track=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,o.__awaiter)(this,void 0,void 0,function(){var e,n,r,i,a,s,u,c=this;return(0,o.__generator)(this,function(o){return e=tl(t),r=(n=l.apply(void 0,t))[0],i=n[1],a=n[2],s=n[3],u=this.eventFactory.track(r,i,a,this.integrations,e),[2,this._dispatch(u,s).then(function(t){return c.emit("track",r,t.event.properties,t.event.options),t})]})})},n.prototype.page=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,o.__awaiter)(this,void 0,void 0,function(){var e,n,r,i,a,s,u,c,l=this;return(0,o.__generator)(this,function(o){return e=tl(t),r=(n=d.apply(void 0,t))[0],i=n[1],a=n[2],s=n[3],u=n[4],c=this.eventFactory.page(r,i,a,s,this.integrations,e),[2,this._dispatch(c,u).then(function(t){return l.emit("page",r,i,t.event.properties,t.event.options),t})]})})},n.prototype.identify=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,o.__awaiter)(this,void 0,void 0,function(){var e,n,r,i,a,s,u,c=this;return(0,o.__generator)(this,function(o){return e=tl(t),r=(n=h(this._user).apply(void 0,t))[0],i=n[1],a=n[2],s=n[3],this._user.identify(r,i),u=this.eventFactory.identify(this._user.id(),this._user.traits(),a,this.integrations,e),[2,this._dispatch(u,s).then(function(t){return c.emit("identify",t.event.userId,t.event.traits,t.event.options),t})]})})},n.prototype.group=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=tl(e);if(0===e.length)return this._group;var i=h(this._group).apply(void 0,e),o=i[0],a=i[1],s=i[2],u=i[3];this._group.identify(o,a);var c=this._group.id(),l=this._group.traits(),d=this.eventFactory.group(c,l,s,this.integrations,r);return this._dispatch(d,u).then(function(e){return t.emit("group",e.event.groupId,e.event.traits,e.event.options),e})},n.prototype.alias=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,o.__awaiter)(this,void 0,void 0,function(){var e,n,r,i,a,s,u,c=this;return(0,o.__generator)(this,function(o){return e=tl(t),r=(n=p.apply(void 0,t))[0],i=n[1],a=n[2],s=n[3],u=this.eventFactory.alias(r,i,a,this.integrations,e),[2,this._dispatch(u,s).then(function(t){return c.emit("alias",r,i,t.event.options),t})]})})},n.prototype.screen=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,o.__awaiter)(this,void 0,void 0,function(){var e,n,r,i,a,s,u,c,l=this;return(0,o.__generator)(this,function(o){return e=tl(t),r=(n=d.apply(void 0,t))[0],i=n[1],a=n[2],s=n[3],u=n[4],c=this.eventFactory.screen(r,i,a,s,this.integrations,e),[2,this._dispatch(c,u).then(function(t){return l.emit("screen",r,i,t.event.properties,t.event.options),t})]})})},n.prototype.trackClick=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(0,o.__awaiter)(this,void 0,void 0,function(){var n;return(0,o.__generator)(this,function(r){switch(r.label){case 0:return[4,t.A(104098)];case 1:return[2,(n=r.sent().link).call.apply(n,(0,o.__spreadArray)([this],e,!1))]}})})},n.prototype.trackLink=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(0,o.__awaiter)(this,void 0,void 0,function(){var n;return(0,o.__generator)(this,function(r){switch(r.label){case 0:return[4,t.A(104098)];case 1:return[2,(n=r.sent().link).call.apply(n,(0,o.__spreadArray)([this],e,!1))]}})})},n.prototype.trackSubmit=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(0,o.__awaiter)(this,void 0,void 0,function(){var n;return(0,o.__generator)(this,function(r){switch(r.label){case 0:return[4,t.A(104098)];case 1:return[2,(n=r.sent().form).call.apply(n,(0,o.__spreadArray)([this],e,!1))]}})})},n.prototype.trackForm=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(0,o.__awaiter)(this,void 0,void 0,function(){var n;return(0,o.__generator)(this,function(r){switch(r.label){case 0:return[4,t.A(104098)];case 1:return[2,(n=r.sent().form).call.apply(n,(0,o.__spreadArray)([this],e,!1))]}})})},n.prototype.register=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,o.__awaiter)(this,void 0,void 0,function(){var e,n=this;return(0,o.__generator)(this,function(r){switch(r.label){case 0:return e=g.Context.system(),[4,Promise.all(t.map(function(t){return n.queue.register(e,t,n)}))];case 1:return r.sent(),[2,e]}})})},n.prototype.deregister=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,o.__awaiter)(this,void 0,void 0,function(){var e,n=this;return(0,o.__generator)(this,function(r){switch(r.label){case 0:return e=g.Context.system(),[4,Promise.all(t.map(function(t){var r=n.queue.plugins.find(function(e){return e.name===t});if(r)return n.queue.deregister(e,r,n);e.log("warn","plugin ".concat(t," not found"))}))];case 1:return r.sent(),[2,e]}})})},n.prototype.debug=function(t){return!1===t&&localStorage.getItem("debug")&&localStorage.removeItem("debug"),this._debug=t,this},n.prototype.reset=function(){this._user.reset(),this._group.reset(),this.emit
2("reset")},n.prototype.timeout=function(t){this.settings.timeout=t},n.prototype._dispatch=function(t,e){return(0,o.__awaiter)(this,void 0,void 0,function(){var n;return(0,o.__generator)(this,function(r){return((n=new g.Context(t)).stats.increment("analytics_js.invoke",1,[t.type]),(0,f.isOffline)()&&!this.options.retryQueue)?[2,n]:[2,function(t,e,n,r){return(0,o.__awaiter)(this,void 0,void 0,function(){var i,a;return(0,o.__generator)(this,function(o){switch(o.label){case 0:if(n.emit("dispatch_start",t),i=Date.now(),!e.isEmpty())return[3,2];return[4,e.dispatchSingle(t)];case 1:return a=o.sent(),[3,4];case 2:return[4,e.dispatch(t)];case 3:a=o.sent(),o.label=4;case 4:var s,u;if(!(null==r?void 0:r.callback))return[3,6];return[4,(0,v.invokeCallback)(a,r.callback,(s=i,Math.max((null!=(u=r.timeout)?u:300)-(Date.now()-s),0)))];case 5:a=o.sent(),o.label=6;case 6:return(null==r?void 0:r.debug)&&a.flush(),[2,a]}})})}(n,this.queue,this,{callback:e,debug:this._debug,timeout:this.settings.timeout})]})})},n.prototype.addSourceMiddleware=function(e){return(0,o.__awaiter)(this,void 0,void 0,function(){var n=this;return(0,o.__generator)(this,function(r){switch(r.label){case 0:return[4,this.queue.criticalTasks.run(function(){return(0,o.__awaiter)(n,void 0,void 0,function(){var n,r,i;return(0,o.__generator)(this,function(o){switch(o.label){case 0:return[4,t.A(971106)];case 1:return n=o.sent().sourceMiddlewarePlugin,r={},this.queue.plugins.forEach(function(t){if("destination"===t.type)return r[t.name]=!0}),i=n(e,r),[4,this.register(i)];case 2:return o.sent(),[2]}})})})];case 1:return r.sent(),[2,this]}})})},n.prototype.addDestinationMiddleware=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return this.queue.plugins.filter(j).forEach(function(n){("*"===t||n.name.toLowerCase()===t.toLowerCase())&&n.addMiddleware.apply(n,e)}),Promise.resolve(this)},n.prototype.setAnonymousId=function(t){return this._user.anonymousId(t)},n.prototype.queryString=function(e){return(0,o.__awaiter)(this,void 0,void 0,function(){return(0,o.__generator)(this,function(n){switch(n.label){case 0:if(!1===this.options.useQueryString)return[2,[]];return[4,t.A(216332)];case 1:return[2,(0,n.sent().queryString)(this,e)]}})})},n.prototype.use=function(t){return t(this),this},n.prototype.ready=function(t){return void 0===t&&(t=function(t){return t}),(0,o.__awaiter)(this,void 0,void 0,function(){return(0,o.__generator)(this,function(e){return[2,Promise.all(this.queue.plugins.map(function(t){return t.ready?t.ready():Promise.resolve()})).then(function(e){return t(e),e})]})})},n.prototype.noConflict=function(){return console.warn(tA),(0,ti.setGlobalAnalytics)(null!=tC?tC:this),this},n.prototype.normalize=function(t){return console.warn(tA),this.eventFactory.normalize(t)},Object.defineProperty(n.prototype,"failedInitializations",{get:function(){return console.warn(tA),this.queue.failedInitializations},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"VERSION",{get:function(){return tn.version},enumerable:!1,configurable:!0}),n.prototype.initialize=function(t,e){return(0,o.__awaiter)(this,void 0,void 0,function(){return(0,o.__generator)(this,function(t){return console.warn(tA),[2,Promise.resolve(this)]})})},n.prototype.pageview=function(t){return(0,o.__awaiter)(this,void 0,void 0,function(){return(0,o.__generator)(this,function(e){switch(e.label){case 0:return console.warn(tA),[4,this.page({path:t})];case 1:return e.sent(),[2,this]}})})},Object.defineProperty(n.prototype,"plugins",{get:function(){var t;return console.warn(tA),null!=(t=this._plugins)?t:{}},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"Integrations",{get:function(){return console.warn(tA),this.queue.plugins.filter(function(t){return"destination"===t.type}).reduce(function(t,e){var n="".concat(e.name.toLowerCase().replace(".","").split(" ").join("-"),"Integration"),r=window[n];if(!r)return t;var i=r.Integration;return i?t[e.name]=i:t[e.name]=r,t},{})},enumerable:!1,configurable:!0}),n.prototype.push=function(t){var e=t.shift();(!e||this[e])&&this[e].apply(this,t)},n}(_.Emitter),tj=function(t){function e(){var e=t.call(this,{writeKey:""},{disableClientPersistence:!0})||this;return e.initialized=!0,e}return(0,o.__extends)(e,t),e}
2(tx),tN=t.i(652977),tR=t.i(681473),tL=t.i(845955),tD=function(t){try{var e=new URLSearchParams;return Object.entries(t).forEach(function(t){var n=t[0],r=t[1];Array.isArray(r)?r.forEach(function(t){return e.append(n,t)}):e.append(n,r)}),e.toString()}catch(t){return""}},tF=new function(){var t=this;this.name="Page Enrichment",this.type="before",this.version="0.1.0",this.isLoaded=function(){return!0},this.load=function(e,n){return(0,o.__awaiter)(t,void 0,void 0,function(){var t;return(0,o.__generator)(this,function(e){switch(e.label){case 0:this.instance=n,e.label=1;case 1:return e.trys.push([1,3,,4]),t=this,[4,function(t){return(0,o.__awaiter)(this,void 0,void 0,function(){var e;return(0,o.__generator)(this,function(n){return(e=navigator.userAgentData)?t?[2,e.getHighEntropyValues(t).catch(function(){return e.toJSON()})]:[2,e.toJSON()]:[2,void 0]})})}(this.instance.options.highEntropyValuesClientHints)];case 2:return t.userAgentData=e.sent(),[3,4];case 3:return e.sent(),[3,4];case 4:return[2,Promise.resolve()]}})})},this.enrich=function(n){var r,i,a,s,u,c,l=n.event.context,d=l.page.search||"",h="object"==typeof d?tD(d):d;l.userAgent=navigator.userAgent,l.userAgentData=t.userAgentData;var p=navigator.userLanguage||navigator.language;void 0===l.locale&&void 0!==p&&(l.locale=p),null!=l.library||(l.library={name:"analytics.js",version:"".concat("web"===(0,to.getVersionType)()?"next":"npm:next","-").concat(tn.version)}),h&&!l.campaign&&((r=h).startsWith("?")&&(r=r.substring(1)),l.campaign=(r=r.replace(/\?/g,"&")).split("&").reduce(function(t,e){var n=e.split("="),r=n[0],i=n[1];if(r.includes("utm_")&&r.length>4){var o=r.slice(4);"campaign"===o&&(o="name"),t[o]=(0,tL.gracefulDecodeURIComponent)(void 0===i?"":i)}return t},{}));var f=function(){var t=H.get("_ga");if(t&&t.startsWith("amp"))return t}();f&&(l.amp={id:f}),s=(a=new T(null!=(c=t.instance.options.disableClientPersistence)&&c?[]:[new G(function(){if(e)return e;var t=V(window.location.href);return e={expires:31536e6,secure:!1,path:"/"},t&&(e.domain=t),e}())])).get("s:context.referrer"),(u=null!=(i=function(t){var e={btid:"dataxu",urid:"millennial-media"};t.startsWith("?")&&(t=t.substring(1));for(var n=(t=t.replace(/\?/g,"&")).split("&"),r=0;r<n.length;r++){var i=n[r].split("="),o=i[0],a=i[1];if(e[o])return{id:a,type:e[o]}}}(h))?i:s)&&(l&&(l.referrer=(0,o.__assign)((0,o.__assign)({},l.referrer),u)),a.set("s:context.referrer",u));try{l.timezone=Intl.DateTimeFormat().resolvedOptions().timeZone}catch(t){}return n},this.track=this.enrich,this.identify=this.enrich,this.page=this.enrich,this.group=this.enrich,this.alias=this.enrich,this.screen=this.enrich},tK=t.i(380924),tU=t.i(824124),tq=t.i(231320),tT=function(){function t(t,e){this.version="1.0.0",this.alternativeNames=[],this.loadPromise=(0,tR.createDeferred)(),this.middleware=[],this.alias=this._createMethod("alias"),this.group=this._createMethod("group"),this.identify=this._createMethod("identify"),this.page=this._createMethod("page"),this.screen=this._createMethod("screen"),this.track=this._createMethod("track"),this.action=e,this.name=t,this.type=e.type,this.alternativeNames.push(e.name)}return t.prototype.addMiddleware=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];"destination"===this.type&&(t=this.middleware).push.apply(t,e)},t.prototype.transform=function(t){return(0,o.__awaiter)(this,void 0,void 0,function(){var e;return(0,o.__generator)(this,function(n){switch(n.label){case 0:return[4,(0,tU.applyDestinationMiddleware)(this.name,t.event,this.middleware)];case 1:return null===(e=n.sent())&&t.cancel(new L.ContextCancelation({retry:!1,reason:"dropped by destination middleware"})),[2,new g.Context(e)]}})})},t.prototype._createMethod=function(t){var e=this;return function(n){return(0,o.__awaiter)(e,void 0,void 0,function(){var e,r;return(0,o.__generator)(this,function(i){switch(i.label){case 0:if(!this.action[t])return[2,n];if(e=n,"destination"!==this.type)return[3,2];return[4,this.transform(n)];case 1:e=i.sent(),i.label=2;case 2:return i.trys.push([2,5,,6]),[4,this.ready()];case 3:if(!i.sent())throw Error("Something prevented the destination from getting ready");return(0,tq.recordIntegrationMetric)(n,{integrationName:this.action.name,methodName:t,type:"action"}),[4,this.action[t](e)];case 4:return i.sent(),[3,6];case 5:throw r=i.sent(),(0,tq.recordIntegrationMetric)(n,{integrationName:this.action.name,methodName:t,type:"action",didError:!0}),r;case 6:return[2,n]}})})}},t.prototype.isLoaded=function(){return this.action.isLoaded()},t.prototype.ready=function(){return(0,o.__awaiter)(this,void 0,void 0,function(){return(0,o.__generator)(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,this.loadPromise.promise];case 1:return t.sent(),[2,!0];case 2:return t.sent(),[2,!1];case 3:return[2]}})})},t.prototype.load=function(t,e){return(0,o.__awaiter)(this,void 0,void 0,function(){var n,r,i,a;return(0,o.__generator)(this,function(o){switch(o.label){case 0:if(this.loadPromise.isSettled())return[2,this.loadPromise.promise];o.label=1;case 1:return o.trys.push([1,3,,4]),(0,tq.recordIntegrationMetric)(t,{integrationName:this.action.name,methodName:"load",type:"action"}),n=this.action.load(t,e),i=(r=this.loadPromise).resolve,[4,n];case 2:return i.apply(r,[o.sent()]),[2,n];case 3:throw a=o.sent(),(0,tq.recordIntegrationMetric)(t,{integrationName:this.action.name,methodName:"load",type:"action",didError:!0}),this.loadPromise.reject(a),a;case 4:return[2]}})})},t.prototype.unload=function(t,e){var n,r;return null==(r=(n=this.action).unload)?void 0:r.call(n,t,e)},t}(),tz=(0,tr.getGlobal)(),tB=null!=(n=tz.__SEGMENT_INSPECTOR__)?n:tz.__SEGMENT_INSPECTOR__={},tW=function(t){var e;return null==(e=tB.attach)?void 0:e.call(tB,t)},tH=t.i(778302),tV=function(){var t,e,n=null!=(t=window.location.hash)?t:"",r=null!=(e=window.location.search)?e:"";return r.length?r:n.replace(/(?=#).*(?=\?)/,"")},tG=function(e){function n(){var n=this,r=(0,tR.createDeferred)(),i=r.promise,a=r.resolve;return(n=e.call(this,function(e){return i.then(function(n){return function(e,n,r){var i,a,c,l,d,h,p,v,_;return void 0===n&&(n={}),(0,o.__awaiter)(this,void 0,void 0,function(){var y,m,w,b,S,E,k,I,A,M;return(0,o.__generator)(this,function(C){switch(C.label){case 0:if(!0===n.disable)return[2,[new tj,g.Context.system()]];if(n.globalAnalyticsKey&&(0,ti.setGlobalAnalyticsKey)(n.globalAnalyticsKey),e.cdnURL&&(0,u.setGlobalCDNUrl)(e.cdnURL),n.initialPageview&&r.add(new th("page",[])),y=tV(),m=null!=(i=e.cdnURL)?i:(0,u.getCDN)(),null==(a=e.cdnSettings))return[3,1];return b=a,[3,3];case 1:var P,O;return[4,(P=e.writeKey,O=m,(0,t_.fetch)("".concat(O,"/v1/projects/").concat(P,"/settings")).then(function(t){return t.ok?t.json():t.text().then(function(t){throw Error(t)})}).catch(function(t){throw console.error(t.message),t}))];
2case 2:b=C.sent(),C.label=3;case 3:if(w=b,n.updateCDNSettings&&(w=n.updateCDNSettings(w)),"function"!=typeof n.disable)return[3,5];return[4,n.disable(w)];case 4:if(C.sent())return[2,[new tj,g.Context.system()]];C.label=5;case 5:return S=null==(l=null==(c=w.integrations["Segment.io"])?void 0:c.retryQueue)||l,n=(0,o.__assign)({retryQueue:S},n),tW(E=new tx((0,o.__assign)((0,o.__assign)({},e),{cdnSettings:w,cdnURL:m}),n)),k=null!=(d=e.plugins)?d:[],I=null!=(h=e.classicIntegrations)?h:[],A=null==(p=n.integrations)?void 0:p["Segment.io"],tH.Stats.initRemoteMetrics((0,o.__assign)((0,o.__assign)({},w.metrics),{host:null!=(v=null==A?void 0:A.apiHost)?v:null==(_=w.metrics)?void 0:_.host,protocol:null==A?void 0:A.protocol})),[4,function(e,n,r,i,a,c,l){var d,h,p;return void 0===a&&(a=[]),(0,o.__awaiter)(this,void 0,void 0,function(){var v,_,y,m,w,b,S,E,k,I,A,M,C,P,O=this;return(0,o.__generator)(this,function(x){var j,L,D;switch(x.label){case 0:if(tu(r,l),ts(r,l),v=null==a?void 0:a.filter(function(t){return"object"==typeof t}),_=null==a?void 0:a.filter(function(t){return"function"==typeof t&&"string"==typeof t.pluginName}),"test"===s().NODE_ENV||!((null!=(D=null==(L=null==(j=n.middlewareSettings)?void 0:j.routingRules)?void 0:L.length)?D:0)>0))return[3,2];return[4,t.A(369583).then(function(t){return t.tsubMiddleware(n.middlewareSettings.routingRules)})];case 1:return m=x.sent(),[3,3];case 2:m=void 0,x.label=3;case 3:if(y=m,("test"===s().NODE_ENV||!(Object.keys(n.integrations).length>1))&&!(c.length>0))return[3,5];return[4,t.A(149122).then(function(t){return t.ajsDestinations(e,n,r.integrations,i,y,c)})];case 4:return b=x.sent(),[3,6];case 5:b=[],x.label=6;case 6:if(w=b,!n.legacyVideoPluginsEnabled)return[3,8];return[4,t.A(473470).then(function(t){return t.loadLegacyVideoPlugins(r)})];case 7:x.sent(),x.label=8;case 8:if(!(null==(d=i.plan)?void 0:d.track))return[3,10];return[4,t.A(128089).then(function(t){var e;return t.schemaFilter(null==(e=i.plan)?void 0:e.track,n)})];case 9:return E=x.sent(),[3,11];case 10:E=void 0,x.label=11;case 11:return S=E,k=(0,tN.mergedOptions)(n,i),[4,(function(t,e,n,r,i,a){var s,c,l;return(0,o.__awaiter)(this,void 0,void 0,function(){var d,h,p=this;return(0,o.__generator)(this,function(f){switch(f.label){case 0:return d=[],h=null!=(c=null==(s=t.middlewareSettings)?void 0:s.routingRules)?c:[],[4,Promise.all((null!=(l=t.remotePlugins)?l:[]).map(function(t){return(0,o.__awaiter)(p,void 0,void 0,function(){var s,c,l,p,f,v;return(0,o.__generator)(this,function(_){switch(_.label){case 0:var y,m;if(y=e[t.creationName],m=e[t.name],!1===e.All&&!y&&!m||!1===y||!1===m||0)return[2];_.label=1;case 1:if(_.trys.push([1,6,,7]),c=null==a?void 0:a.find(function(e){return e.pluginName===t.name}))return[3,3];return[4,function(t,e){return(0,o.__awaiter)(this,void 0,void 0,function(){var n,r,i,a,s,c;return(0,o.__generator)(this,function(o){switch(o.label){case 0:if(o.trys.push([0,9,,10]),n=RegExp("https://cdn.segment.(com|build)"),r=(0,u.getCDN)(),!e)return[3,6];a=(i=t.url.split("/"))[i.length-2],s=t.url.replace(a,btoa(a).replace(/=/g,"")),o.label=1;case 1:return o.trys.push([1,3,,5]),[4,(0,tK.loadScript)(s.replace(n,r))];case 2:case 4:return o.sent(),[3,5];case 3:return o.sent(),[4,(0,tK.loadScript)(t.url.replace(n,r))];case 5:return[3,8];case 6:return[4,(0,tK.loadScript)(t.url.replace(n,r))];case 7:o.sent(),o.label=8;case 8:if("function"==typeof window[t.libraryName])return[2,window[t.libraryName]];return[3,10];case 9:throw c=o.sent(),console.error("Failed to create PluginFactory",t),c;case 10:return[2]}})})}(t,null==r?void 0:r.obfuscate)];case 2:c=_.sent(),_.label=3;case 3:if(!(s=c))return[3,5];return l=n[t.name],[4,s((0,o.__assign)((0,o.__assign)({},t.settings),l))];case 4:!function(t){if(!Array.isArray(t))throw Error("Not a valid list of plugins");var e=["load","isLoaded","name","version","type"];t.forEach(function(t){e.forEach(function(e){var n;if(void 0===t[e])throw Error("Plugin: ".concat(null!=(n=t.name)?n:"unknown"," missing required function ").concat(e))})})}(f=Array.isArray(p=_.sent())?p:[p]),v=h.filter(function(e){return e.destinationName===t.creationName}),f.forEach(function(e){var n=new tT(t.creationName,e);v.length&&i&&n.addMiddleware(i),d.push(n)}),_.label=5;case 5:return[3,7];case 6:return console.warn("Failed to load Remote Plugin",_.sent()),(0,tq.recordIntegrationMetric)(g.Context.system(),{integrationName:t.name,methodName:"load",type:"action",didError:!0}),[3,7];case 7:return[2]}})})}))];
2case 1:return f.sent(),[2,d.filter(Boolean)]}})})})(n,r.integrations,k,i,y,_).catch(function(t){return console.error("Failed to load remote plugins",t),[]})];case 12:if(I=x.sent(),A=(0,o.__spreadArray)((0,o.__spreadArray)([tF],w,!0),I,!0),S&&A.push(S),(null==(h=i.integrations)?void 0:h.All)===!1&&!i.integrations["Segment.io"]||i.integrations&&!1===i.integrations["Segment.io"])return[3,14];return C=(M=A).push,[4,function(t,e,n){window.addEventListener("pagehide",function(){c.push.apply(c,Array.from(l)),l.clear()});var r,i,a,s,u=null!=(i=null==e?void 0:e.apiKey)?i:"",c=t.options.disableClientPersistence?new R.PriorityQueue(t.queue.queue.maxAttempts,[]):new N.PersistedPriorityQueue(t.queue.queue.maxAttempts,"".concat(u,":dest-Segment.io")),l=new Set,d=null!=(a=null==e?void 0:e.apiHost)?a:tk.SEGMENT_API_HOST,h=null!=(s=null==e?void 0:e.protocol)?s:"https",p="".concat(h,"://").concat(d),v=null==e?void 0:e.deliveryStrategy,_=v&&"strategy"in v&&"batching"===v.strategy?function(t,e){var n,r,i,a=[],s=!1,u=null!=(n=null==e?void 0:e.size)?n:10,c=null!=(r=null==e?void 0:e.timeout)?r:5e3,l=0;function d(n){if(0!==n.length){var r,i=null==(r=n[0])?void 0:r.writeKey,a=n.map(function(t){return t.sentAt,(0,o.__rest)(t,["sentAt"])});return(0,t_.fetch)("https://".concat(t,"/b"),{credentials:null==e?void 0:e.credentials,keepalive:(null==e?void 0:e.keepalive)||s,headers:tw(null==e?void 0:e.headers),method:"post",body:JSON.stringify({writeKey:i,batch:a,sentAt:new Date().toISOString()}),priority:null==e?void 0:e.priority}).then(function(t){var e;if(t.status>=500)throw Error("Bad response from server: ".concat(t.status));if(429===t.status){var n=null==(e=t.headers)?void 0:e.get("x-ratelimit-reset"),r="string"==typeof n?1e3*parseInt(n):c;throw new tm("Rate limit exceeded: ".concat(t.status),r)}})}}function h(t){var n;return void 0===t&&(t=1),(0,o.__awaiter)(this,void 0,void 0,function(){var r;return(0,o.__generator)(this,function(i){return a.length?(r=a,a=[],[2,null==(n=d(r))?void 0:n.catch(function(n){var i;g.Context.system().log("error","Error sending batch",n),t<=(null!=(i=null==e?void 0:e.maxRetries)?i:10)&&("RateLimitError"===n.name&&(l=n.retryTimeout),a.push.apply(a,r),a.map(function(e){"_metadata"in e&&(e._metadata=(0,o.__assign)((0,o.__assign)({},e._metadata),{retryCount:t}))}),p(t+1))})]):[2]})})}function p(t){void 0===t&&(t=1),i||(i=setTimeout(function(){i=void 0,h(t).catch(console.error)},l||c),l=0)}return ty(function(t){if((s=t)&&a.length){var e,n;Promise.all((e=[],n=0,a.forEach(function(t){tb(e[n])>=64&&n++,e[n]?e[n].push(t):e[n]=[t]}),e).map(d)).catch(console.error)}}),{dispatch:function(t,n){return(0,o.__awaiter)(this,void 0,void 0,function(){return(0,o.__generator)(this,function(t){return a.push(n),[2,a.length>=u||tb(a)>=450||(null==e?void 0:e.keepalive)&&tb(a)>=54||s?h():p()]})})}}}(d,v.config):(r=null==v?void 0:v.config,{dispatch:function(t,e){return(0,t_.fetch)(t,{credentials:null==r?void 0:r.credentials,keepalive:null==r?void 0:r.keepalive,headers:tw(null==r?void 0:r.headers),method:"post",body:JSON.stringify(e),priority:null==r?void 0:r.priority}).then(function(t){var e;if(t.status>=500)throw Error("Bad response from server: ".concat(t.status));if(429===t.status){var n=null==(e=t.headers)?void 0:e.get("x-ratelimit-reset"),r=n?1e3*parseInt(n):5e3;throw new tm("Rate limit exceeded: ".concat(t.status),r)}})}});function y(r){return(0,o.__awaiter)(this,void 0,void 0,function(){var i,a;return(0,o.__generator)(this,function(s){var u,d,h,g,v,y;return(0,f.isOffline)()?(c.push(r),tE(!1,c,m,tE),[2,r]):(l.add(r),i=r.event.type.charAt(0),a=(0,tv.toFacade)(r.event).json(),"track"===r.event.type&&delete a.traits,"alias"===r.event.type&&(u=a,y=t.user(),u.previousId=null!=(g=null!=(h=null!=(d=u.previousId)?d:u.from)?h:y.id())?g:y.anonymousId(),u.userId=null!=(v=u.userId)?v:u.to,delete u.from,delete u.to,a=u),c.getAttempts(r)>=c.maxAttempts)?(l.delete(r),[2,r]):[2,_.dispatch("".concat(p,"/").concat(i),function(t,e,n,r,i){var a,s=t.user();delete e.options,e.writeKey=null==n?void 0:n.apiKey,e.userId=e.userId||s.id(),e.anonymousId=e.anonymousId||s.anonymousId(),e.sentAt=new Date;var u=t.queue.failedInitializations||[];u.length>0&&(e._metadata={failedInitializations:u}),null!=i&&(i.attempts>1&&(e._metadata=(0,o.__assign)((0,o.__assign)({},e._metadata),{retryCount:i.attempts})),i.attempts++);var c=[],l=[];for(var d in r){var h=r[d];"Segment.io"===d&&c.push(d),"bundled"===h.bundlingStatus&&c.push(d),"unbundled"===h.bundlingStatus&&l.push(d)}for(var p=0,f=(null==n?void 0:n.unbundledIntegrations)||[];p<f.length;p++){var g=f[p];l.includes(g)||l.push(g)}var v=null!=(a=null==n?void 0:n.maybeBundledConfigIds)?a:{},_=[];
2return c.sort().forEach(function(t){var e;(null!=(e=v[t])?e:[]).forEach(function(t){_.push(t)})}),(null==n?void 0:n.addBundledMetadata)!==!1&&(e._metadata=(0,o.__assign)((0,o.__assign)({},e._metadata),{bundled:c.sort(),unbundled:l.sort(),bundledIds:_})),e}(t,a,e,n,r)).then(function(){return r}).catch(function(t){if(r.log("error","Error sending event",t),"RateLimitError"===t.name){var e=t.retryTimeout;c.pushWithBackoff(r,e)}else c.pushWithBackoff(r);return tE(!1,c,m,tE),r}).finally(function(){l.delete(r)})]})})}var m={metadata:{writeKey:u,apiHost:d,protocol:h},name:"Segment.io",type:"destination",version:"0.1.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:y,identify:y,page:y,alias:y,group:y,screen:y};return c.todo&&tE(!1,c,m,tE),m}(r,k["Segment.io"],n.integrations)];case 13:C.apply(M,[x.sent()]),x.label=14;case 14:return[4,r.register.apply(r,(0,o.__spreadArray)((0,o.__spreadArray)([],A,!1),v,!1))];case 15:return P=x.sent(),[4,(0,o.__awaiter)(void 0,void 0,void 0,function(){var t,e;return(0,o.__generator)(this,function(n){switch(n.label){case 0:t=0,e=l.getAndRemove("register"),n.label=1;case 1:if(!(t<e.length))return[3,4];return[4,tf(r,e[t]).catch(console.error)];case 2:n.sent(),n.label=3;case 3:return t++,[3,1];case 4:return[2]}})})];case 16:if(x.sent(),!Object.entries(null!=(p=n.enabledMiddleware)?p:{}).some(function(t){return t[1]}))return[3,18];return[4,t.A(414800).then(function(t){var e=t.remoteMiddlewares;return(0,o.__awaiter)(O,void 0,void 0,function(){return(0,o.__generator)(this,function(t){switch(t.label){case 0:return[4,e(P,n,i.obfuscate)];case 1:return[2,Promise.all(t.sent().map(function(t){return r.addSourceMiddleware(t)}))]}})})})];case 17:x.sent(),x.label=18;case 18:return[4,(0,o.__awaiter)(void 0,void 0,void 0,function(){var t,e;return(0,o.__generator)(this,function(n){switch(n.label){case 0:t=0,e=l.getAndRemove("addSourceMiddleware"),n.label=1;case 1:if(!(t<e.length))return[3,4];return[4,tf(r,e[t]).catch(console.error)];case 2:n.sent(),n.label=3;case 3:return t++,[3,1];case 4:return[2]}})})];case 19:return x.sent(),[2,P]}})})}(e.writeKey,w,E,n,k,I,r)];case 6:return M=C.sent(),E.initialized=!0,E.emit("initialize",e,n),[4,function(t,e,n){return(0,o.__awaiter)(this,void 0,void 0,function(){return(0,o.__generator)(this,function(r){switch(r.label){case 0:var i,a;return[4,(i=t,a=e,(0,o.__awaiter)(void 0,void 0,void 0,function(){return(0,o.__generator)(this,function(t){switch(t.label){case 0:if(!a.includes("ajs_"))return[3,2];return[4,i.queryString(a).catch(console.error)];case 1:t.sent(),t.label=2;case 2:return[2]}})}))];case 1:return r.sent(),tc(t,n),[2]}})})}(E,y,r)];case 7:return C.sent(),[2,[E,M]]}})})}(n[0],n[1],e)})})||this)._resolveLoadStart=function(t,e){return a([t,e])},n}return(0,o.__extends)(n,e),n.prototype.load=function(t,e){return void 0===e&&(e={}),this._resolveLoadStart(t,e),this},n.load=function(t,e){return void 0===e&&(e={}),new n().load(t,e)},n.standalone=function(t,e){return n.load({writeKey:t},e).then(function(t){return t[0]})},n}(tg),tJ=t.i(925521),tQ=t.i(177467),t$=t.i(107576);let tZ={analytics:new tG,userId:null,setUserId:()=>{},clientIp:null},tX=tJ.default.SEGMENT_TOKEN||"no-write-key",{apiHost:tY,protocol:t0}=(t=>{try{let e=new URL(t),n=e.pathname.replace(/\/$/,"");return{apiHost:`${e.host}${n}`,protocol:e.protocol.replace(":","")}}catch{return{apiHost:t.replace(/^https?:\/\//,""),protocol:"https"}}})((0,tQ.getSegmentProxyURL)()),t1=t$.isE2ETest?new tG:tG.load({writeKey:tX,cdnURL:(0,tQ.getSegmentCDNProxyURL)()},{cookie:{domain:(0,tQ.getDomainFromUrl)(tJ.default.BASE_URL)},integrations:{"Segment.io":{apiHost:tY,protocol:t0},"Google Ads Conversions":!1}}),t2=(0,i.createContext)(tZ);t.s(["AnalyticsContext",0,t2,"AnalyticsProvider",0,({children:t,initialClientIp:e})=>{let[n,o]=(0,i.useState)(null),[a,s]=(0,i.useState)(e);(0,i.useEffect)(()=>{n&&!a&&fetch("/api/client-id").then(t=>t.ok?t.json():null).then(t=>{t?.clientIp&&s(t.clientIp)}).catch(()=>{})},[n]);let u=(0,i.useMemo)(()=>({analytics:t1,userId:n,setUserId:o,clientIp:a}),[n,a]);return(0,r.jsx)(t2.Provider,{value:u,"data-sentry-element":"AnalyticsContext.Provider","data-sentry-component":"AnalyticsProvider","data-sentry-source-file":"AnalyticsContextProvider.tsx",children:t})},"_analytics",0,t1,"default",0,()=>(0,i.useContext)(t2)],37037)}]);
3
4//# debugId=698c02d8-ae83-aecb-fc27-6e90caa69180

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.