PageSourceSearch

https://render.com/_next/static/chunks/19su20ya9ueyv.js?dpl=sjh8j

js render.com collected 2026-09-24 07:15:15 UTC 63,277 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]="14f6fcd8-42bc-a78e-d512-75ecb05831e2")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,202089,t=>{"use strict";var e=t.i(271645);t.s(["default",0,function(){return(0,e.useEffect)(()=>{t.A(398289)},[]),null}])},458087,t=>{"use strict";var e,n,r=t.i(290571),i=t.i(247167);function o(){return void 0!==i.default&&i.default.env?i.default.env:{}}var a=t.i(55605),s=t.i(45493);function u(t,e,n,r){var i,o=[t,e,n,r],a=(0,s.isPlainObject)(t)?t.event:t;if(!a||!(0,s.isString)(a))throw Error("Event missing");var u=(0,s.isPlainObject)(t)?null!=(i=t.properties)?i:{}:(0,s.isPlainObject)(e)?e:{},l={};return(0,s.isFunction)(n)||(l=null!=n?n:{}),(0,s.isPlainObject)(t)&&!(0,s.isFunction)(e)&&(l=null!=e?e:{}),[a,u,l,o.find(s.isFunction)]}function l(t,e,n,r,i){var o,a,u=null,l=null,c=[t,e,n,r,i],d=c.filter(s.isString);1===d.length?(l=(0,s.isString)(c[1])?c[1]:d[0],u=null):2===d.length&&("string"==typeof c[0]&&(u=c[0]),"string"==typeof c[1]&&(l=c[1]));var h=c.find(s.isFunction),f=c.filter(s.isPlainObject);return 1===f.length?(0,s.isPlainObject)(c[2])?(a={},o=c[2]):(0,s.isPlainObject)(c[3])?(o={},a=c[3]):(o=f[0],a={}):2===f.length&&(o=f[0],a=f[1]),[u,l,null!=o?o:o={},null!=a?a:a={},h]}var c=function(t){return function(){for(var e,n,r,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];for(var a={},u=["callback","options","traits","id"],l=0;l<i.length;l++){var c=i[l],d=u.pop();if("id"===d){if((0,s.isString)(c)||(0,s.isNumber)(c)){a.id=c.toString();continue}if(null==c)continue;d=u.pop()}if(("traits"===d||"options"===d)&&(null==c||(0,s.isPlainObject)(c))&&(a[d]=c),(0,s.isFunction)(c)){a.callback=c;break}}return[null!=(e=a.id)?e:t.id(),null!=(n=a.traits)?n:{},null!=(r=a.options)?r:{},a.callback]}};function d(t,e,n,r){(0,s.isNumber)(t)&&(t=t.toString()),(0,s.isNumber)(e)&&(e=e.toString());var i=[t,e,n,r],o=i.filter(s.isString),a=o[0],u=void 0===a?t:a,l=o[1],c=i.filter(s.isPlainObject)[0];return[u,void 0===l?null:l,void 0===c?{}:c,i.find(s.isFunction)]}var h=t.i(508991),f=t.i(683049),p=t.i(502471),v=t.i(416997),g=t.i(610991),_=function(t,e,n,r,i,o){return{__t:"bpc",c:e,p:r,u:t,s:n,t:i,r:o}},y=Object.keys(_("","","","","","")),m=function(t){var e=t.indexOf("#");return -1===e?t:t.slice(0,e)},b=function(t){try{return new URL(t).pathname}catch(e){return"/"===t[0]?t:"/"+t}},w=function(t){var e=t.c,n=t.p,r=t.s,i=t.u,o=t.r,a=t.t,s=e?b(e):n,u=e?e.indexOf("?")>-1?e:e+r:m(i);return{path:s,referrer:o,search:r,title:a,url:u}},S=function(){var t=document.querySelector("link[rel='canonical']");return _(location.href,t&&t.getAttribute("href")||void 0,location.search,location.pathname,document.title,document.referrer)},k=function(t,e){void 0===e&&(e=w(S()));var n,i,o,a=t.context;"page"===t.type&&(o=t.properties&&(n=t.properties,i=Object.keys(e),Object.assign.apply(Object,(0,r.__spreadArray)([{}],i.map(function(t){var e;if(n&&Object.prototype.hasOwnProperty.call(n,t))return(e={})[t]=n[t],e}),!1))),t.properties=(0,r.__assign)((0,r.__assign)((0,r.__assign)({},e),t.properties),t.name?{name:t.name}:{})),a.page=(0,r.__assign)((0,r.__assign)((0,r.__assign)({},e),o),a.page)},C=t.i(708721),E=function(t){function e(e,n){var r=t.call(this,"".concat(e," ").concat(n))||this;return r.field=e,r}return(0,r.__extends)(e,t),e}(Error),I="is not a string",x="is not an object",A=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(){}},M=function(t){function e(e){var n=t.call(this,{createMessageId:function(){return"ajs-next-".concat(Date.now(),"-").concat((0,g.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,r.__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 k(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 k(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 k(s,a),s},e.prototype.identify=function(e,n,r,i,o){var a=t.prototype.identify.call(this,e,n,r,i);return k(a,o),a},e.prototype.group=function(e,n,r,i,o){var a=t.prototype.group.call(this,e,n,r,i);return k(a,o),a},e.prototype.alias=function(e,n,r,i,o){var a=t.prototype.alias.call(this,e,n,r,i);return k(a,o),a},e}(function(){function t(t){this.settings=new A(t)}return t.prototype.track=function(t,e,n,i){return this.settings.onEventMethodCall({type:"track",options:n}),this.normalize((0,r.__assign)((0,r.__assign)({},this.baseEvent()),{event:t,type:"track",properties:null!=e?e:{},options:(0,r.__assign)({},n),integrations:(0,r.__assign)({},i)}))},t.prototype.page=function(t,e,n,i,o){this.settings.onEventMethodCall({type:"page",options:i});var a,s={type:"page",properties:(0,r.__assign)({},n),options:(0,r.__assign)({},i),integrations:(0,r.__assign)({},o)};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,r.__assign)((0,r.__assign)({},this.baseEvent()),s))},t.prototype.screen=function(t,e,n,i,o){this.settings.onEventMethodCall({type:"screen",options:i});var a={type:"screen",properties:(0,r.__assign)({},n),options:(0,r.__assign)({},i),integrations:(0,r.__assign)({},o)};return null!==t&&(a.category=t),null!==e&&(a.name=e),this.normalize((0,r.__assign)((0,r.__assign)({},this.baseEvent()),a))},t.prototype.identify=function(t,e,n,i){return this.settings.onEventMethodCall({type:"identify",options:n}),this.normalize((0,r.__assign)((0,r.__assign)({},this.baseEvent()),{type:"identify",userId:t,traits:null!=e?e:{},options:(0,r.__assign)({},n),integrations:i}))},t.prototype.group=function(t,e,n,i){return this.settings.onEventMethodCall({type:"group",options:n}),this.normalize((0,r.__assign)((0,r.__assign)({},this.baseEvent()),{type:"group",traits:null!=e?e:{},options:(0,r.__assign)({},n),integrations:(0,r.__assign)({},i),groupId:t}))},t.prototype.alias=function(t,e,n,i){this.settings.onEventMethodCall({type:"alias",options:n});var o={userId:t,type:"alias",options:(0,r.__assign)({},n),integrations:(0,r.__assign)({},i)};return(null!==e&&(o.previousId=e),void 0===t)?this.normalize((0,r.__assign)((0,r.__assign)({},o),this.baseEvent())):this.normalize((0,r.__assign)((0,r.__assign)({},this.baseEvent()),o))},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,C.dset)(o,e,t[e]):(0,C.dset)(i,e,t[e]))}),[i,o]},t.prototype.normalize=function(t){var e,n,i,o=Object.keys(null!=(n=t.integrations)?n:{}).reduce(function(e,n){var i,o;return(0,r.__assign)((0,r.__assign)({},e),((i={})[n]=!!(null==(o=t.integrations)?void 0:o[n]),i))},{});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,r.__assign)((0,r.__assign)({},o),null==(i=t.options)?void 0:i.integrations),u=t.options?this.context(t.options):[],l=u[0],c=u[1],d=t.options,h=(0,r.__rest)(t,["options"]),f=(0,r.__assign)((0,r.__assign)((0,r.__assign)((0,r.__assign)({timestamp:new Date},h),{context:l,integrations:a}),c),{messageId:d.messageId||this.settings.createMessageId()});return this.settings.onFinishedEvent(f),!function(t){if(!(0,s.exists)(t))throw new E("Event","is nil");if("object"!=typeof t)throw new E("Event",x);if(!(0,s.isString)(t.type))throw new E(".type",I);if(!(0,s.isString)(t.messageId))throw new E(".messageId",I);if("track"===t.type){if(!(0,s.isString)(t.event))throw new E(".event",I);if(!(0,s.isPlainObject)(t.properties))throw new E(".properties",x)}["group","identify"].includes(t.type)&&function(t){if(!(0,s.isPlainObject)(t.traits))throw new E(".traits",x)}(t)}(f),f},t}()),O=function(t){return"addMiddleware"in t&&"destination"===t.type},P=t.i(793783),j=t.i(459912),R=t.i(382420),N=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}}},L=t.i(587603),D=function(t){function e(e){return t.call(this,"string"==typeof e?new P.PersistedPriorityQueue(4,e):e)||this}return(0,r.__extends)(e,t),e.prototype.flush=function(){return(0,r.__awaiter)(this,void 0,void 0,function(){return(0,r.__generator)(this,function(e){return(0,h.isOffline)()?[2,[]]:[2,t.prototype.flush.call(this)]})})},e}(function(t){function e(e){var n=t.call(this)||this;return n.criticalTasks=N(),n.plugins=[],n.failedInitializations=[],n.flushing=!1,n.queue=e,n.queue.on(j.ON_REMOVE_FROM_FUTURE,function(){n.scheduleFlush(0)}),n}return(0,r.__extends)(e,t),e.prototype.register=function(t,e,n){return(0,r.__awaiter)(this,void 0,void 0,function(){var i,o,a=this;return(0,r.__generator)(this,function(r){switch(r.label){case 0:if(this.plugins.push(e),i=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(i),[3,4];case 1:return r.trys.push([1,3,,4]),[4,e.load(t,n)];case 2:return r.sent(),[3,4];case 3:return o=r.sent(),i(o),[3,4];case 4:return[2]}})})},e.prototype.deregister=function(t,e,n){return(0,r.__awaiter)(this,void 0,void 0,function(){var i;return(0,r.__generator)(this,function(r){switch(r.label){case 0:if(r.trys.push([0,3,,4]),!e.unload)return[3,2];return[4,Promise.resolve(e.unload(t,n))];case 1:r.sent(),r.label=2;case 2:return this.plugins=this.plugins.filter(function(t){return t.name!==e.name}),[3,4];case 3:return i=r.sent(),t.log("warn","Failed to unload destination",{plugin:e.name,error:i}),[3,4];case 4:return[2]}})})},e.prototype.dispatch=function(t){return(0,r.__awaiter)(this,void 0,void 0,function(){var e;return(0,r.__generator)(this,function(n){return t.log("debug","Dis
2patching"),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,r.__awaiter)(this,void 0,void 0,function(){var e=this;return(0,r.__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,r.__awaiter)(this,void 0,void 0,function(){var e=this;return(0,r.__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){var e;return(0,r.__awaiter)(this,void 0,void 0,function(){var n,i,o,a,s;return(0,r.__generator)(this,function(r){switch(r.label){case 0:return[4,this.criticalTasks.done()];case 1:r.sent(),n=Date.now(),r.label=2;case 2:return r.trys.push([2,4,,5]),[4,this.flushOne(t)];case 3:if(t=r.sent(),i=Date.now()-n,o=t.failedDelivery())return a=o.reason instanceof Error?o.reason:Error(String(null!=(e=o.reason)?e:"Unknown delivery failure")),t.log("error","Failed to deliver",a),this.emit("delivery_failure",t,a),t.stats.increment("delivery_failed"),[2,t];return this.emit("delivery_success",t),t.stats.gauge("delivered",i),t.log("debug","Delivered",t.event),[2,t];case 4:throw a=s=r.sent(),t.log("error","Failed to deliver",a),this.emit("delivery_failure",t,a),t.stats.increment("delivery_failed"),s;case 5:return[2]}})})},e.prototype.enqueuRetry=function(t,e){return!!(!(t instanceof R.ContextCancelation)||t.retry)&&this.queue.pushWithBackoff(e)},e.prototype.flush=function(){return(0,r.__awaiter)(this,void 0,void 0,function(){var t,e,n;return(0,r.__generator)(this,function(r){switch(r.label){case 0:if(0===this.queue.length||!(t=this.queue.pop()))return[2,[]];t.attempts=this.queue.getAttempts(t),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.deliver(t)];case 2:return e=!(t=r.sent()).failedDelivery(),this.emit("flush",t,e),[3,4];case 3:return n=r.sent(),this.enqueuRetry(n,t)||(t.setFailedDelivery({reason:n}),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,i=(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 i,o=void 0;if("string"==typeof e){var a=t[e];o="string"!=typeof a?JSON.stringify(a):a}else e instanceof Function&&(o=e(t));void 0!==o&&(n[o]=(0,r.__spreadArray)((0,r.__spreadArray)([],null!=(i=n[o])?i:[],!0),[t],!1))}),n),o=i.before,a=i.enrichment,s=i.destination,u=i.after;return{before:void 0===o?[]:o,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,r.__awaiter)(this,void 0,void 0,function(){var i,o,a,s,u,l,c,d,h,f,p,v,g;return(0,r.__generator)(this,function(r){switch(r.label){case 0:if(!this.isReady())throw Error("Not ready");t.attempts>1&&this.emit("delivery_retry",t),o=(i=this.availableExtensions(null!=(e=t.event.integrations)?e:{})).before,a=i.enrichment,s=0,u=o,r.label=1;case 1:if(!(s<u.length))return[3,4];return l=u[s],[4,(0,L.ensure)(t,l)];case 2:(c=r.sent())instanceof R.CoreContext&&(t=c),this.emit("message_enriched",t,l),r.label=3;case 3:return s++,[3,1];case 4:d=0,h=a,r.label=5;case 5:if(!(d<h.length))return[3,8];return f=h[d],[4,(0,L.attempt)(t,f)];
2case 6:(c=r.sent())instanceof R.CoreContext&&(t=c),this.emit("message_enriched",t,f),r.label=7;case 7:return d++,[3,5];case 8:return v=(p=this.availableExtensions(null!=(n=t.event.integrations)?n:{})).destinations,g=p.after,[4,new Promise(function(e,n){setTimeout(function(){Promise.all(v.map(function(e){return(0,L.attempt)(t,e)})).then(e).catch(n)},0)})];case 9:return r.sent(),t.stats.increment("message_delivered"),this.emit("message_delivered",t),[4,Promise.all(g.map(function(e){return(0,L.attempt)(t,e)}))];case 10:return r.sent(),[2,t]}})})},e}(v.Emitter));function F(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 K=function(t,e,n,r){console.warn("".concat(t.constructor.name,": Can't ").concat(e,' key "').concat(n,'" | Err: ').concat(r))},q=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){K(i,"get",t,e)}}return null},t.prototype.set=function(t,e){this.stores.forEach(function(n){try{n.set(t,e)}catch(e){K(n,"set",t,e)}})},t.prototype.clear=function(t){this.stores.forEach(function(e){try{e.remove(t)}catch(n){K(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}(),T=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"},z=t.i(117595);function U(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(z.default.set(i,"1",a),z.default.get(i))return z.default.remove(i,a),o}catch(t){return}}}var W=function(){function t(e){void 0===e&&(e=t.defaults),this.options=(0,r.__assign)((0,r.__assign)({},t.defaults),e)}return Object.defineProperty(t,"defaults",{get:function(){return{maxage:365,domain:U(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=z.default.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?z.default.set(t,e,this.opts()):null===e?z.default.remove(t,this.opts()):z.default.set(t,JSON.stringify(e),this.opts())},t.prototype.remove=function(t){return z.default.remove(t,this.opts())},t}(),H=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 V(t){return t&&t.stores&&Array.isArray(t.stores)&&t.stores.every(function(t){return Object.values(B).includes(t)})}function J(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 W(n);case B.LocalStorage:return new H;case B.Memory:return new T;default:throw Error("Unknown Store Type: ".concat(t))}})}function Q(t,e){return t.map(function(t){return e&&t===B.Cookie?{name:t,settings:e}:t})}
2var G={persist:!0,cookie:{key:"ajs_user_id",oldKey:"ajs_user"},localStorage:{key:"ajs_user_traits"}},X=function(){function t(t,e){void 0===t&&(t=G);var n,i,o,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(G.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,g.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,r.__assign)((0,r.__assign)({},G),t),this.cookieOptions=e,this.idKey=null!=(i=null==(n=t.cookie)?void 0:n.key)?i:G.cookie.key,this.traitsKey=null!=(a=null==(o=t.localStorage)?void 0:o.key)?a:G.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(G.cookie.oldKey);u&&"object"==typeof u&&(u.id&&this.id(u.id),u.traits&&this.traits(u.traits)),F(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,r.__assign)((0,r.__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 q([]):t.persist?(void 0!==t.storage&&null!==t.storage&&V(t.storage)&&(r=t.storage.stores),t.localStorageFallbackDisabled&&(r=r.filter(function(t){return t!==B.LocalStorage})),n&&(r=r.filter(n)),new q(J(Q(r,e)))):new q([new T])},t.defaults=G,t}(),$={persist:!0,cookie:{key:"ajs_group_id"},localStorage:{key:"ajs_group_properties"}},Z=function(t){function e(e,n){void 0===e&&(e=$);var i=t.call(this,(0,r.__assign)((0,r.__assign)({},$),e),n)||this;return i.anonymousId=function(t){},F(i),i}return(0,r.__extends)(e,t),e}(X),Y=t.i(930694),tt=t.i(920611),te=t.i(813113),tn=t.i(134621),tr=function(t,e,n){n.getAndRemove(t).forEach(function(t){td(e,t).catch(console.error)})},ti=tr.bind(void 0,"on"),to=tr.bind(void 0,"setAnonymousId"),ta=function(t,e){Object.keys(e.calls).forEach(function(n){e.getAndRemove(n).forEach(function(e){setTimeout(function(){td(t,e).catch(console.error)},0)})})},ts=function(t){if(tu(t))return w(t.pop())},tu=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(!y.includes(n))return!1;return!0},tl=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},tc=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)&&!tu(e.args)&&(e.args=(0,r.__spreadArray)((0,r.__spreadArray)([],e.args,!0),[S()],!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,tn.getVersionType)()){var t=(0,te.getGlobalAnalytics)();if(Array.isArray(t)){var e=t.splice(0,t.length).map(function(t){return new tl(t[0],t.slice(1))});this.add.apply(this,e)}}},t}();function td(t,e){return(0,r.__awaiter)(this,void 0,void 0,function(){var n,i;return(0,r.__generator)(this,function(r){switch(r.label){case 0:var o;if(r.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:r.sent(),r.label=2;case 2:return e.resolve(n),[3,4];case 3:return i=r.sent(),e.reject(i),[3,4];case 4:return[2]}})})}var th=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=Y.version,this._preInitBuffer=new tc,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 tl
2(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 tl(t,r)),e}},t}(),tf=t.i(319045),tp=t.i(570541),tv=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)})},tg=function(t){function e(e,n,r){void 0===r&&(r=!1);var i=t.call(this,e)||this;return i.retryTimeout=n,i.isRetryableWithoutCount=r,i.name="RateLimitError",i}return(0,r.__extends)(e,t),e}(Error),t_=function(t){return(0,r.__assign)({"Content-Type":"text/plain"},"function"==typeof t?t():t)},ty={408:"retry",410:"retry",429:"retry",460:"retry",501:"drop",505:"drop",511:"drop"};function tm(t,e,n,r){return Math.min(Math.max(null!=t?t:e,n),r)}function tb(t,e){if(429!==t.status)return null;var n,r=null==(n=t.headers)?void 0:n.get("Retry-After");if(!r)return null;var i=parseInt(r,10);return Number.isNaN(i)?null:{retryAfterMs:1e3*Math.max(0,Math.min(i,e.maxRetryInterval)),fromHeader:!0}}function tw(t,e){var n=e.statusCodeOverrides[String(t)];return n||(t>=500?e.default5xxBehavior:t>=400?e.default4xxBehavior:"drop")}function tS(t,e){var n,i,o,a,s=t||e?{rateLimitConfig:(0,r.__assign)((0,r.__assign)({},null==t?void 0:t.rateLimitConfig),null==e?void 0:e.rateLimitConfig),backoffConfig:(0,r.__assign)((0,r.__assign)((0,r.__assign)({},null==t?void 0:t.backoffConfig),null==e?void 0:e.backoffConfig),{statusCodeOverrides:(0,r.__assign)((0,r.__assign)({},null==(n=null==t?void 0:t.backoffConfig)?void 0:n.statusCodeOverrides),null==(i=null==e?void 0:e.backoffConfig)?void 0:i.statusCodeOverrides)})}:void 0,u=null==s?void 0:s.rateLimitConfig,l=null==s?void 0:s.backoffConfig;return{rateLimitConfig:{maxRetryCount:tm(null==u?void 0:u.maxRetryCount,10,0,100),maxRetryInterval:tm(null==u?void 0:u.maxRetryInterval,300,.1,86400),maxRateLimitDuration:tm(null==u?void 0:u.maxRateLimitDuration,43200,10,86400)},backoffConfig:{maxRetryCount:tm(null==l?void 0:l.maxRetryCount,10,0,100),baseBackoffInterval:tm(null==l?void 0:l.baseBackoffInterval,.5,.1,300),maxBackoffInterval:tm(null==l?void 0:l.maxBackoffInterval,60,.1,86400),maxTotalBackoffDuration:tm(null==l?void 0:l.maxTotalBackoffDuration,43200,60,604800),jitterPercent:tm(null==l?void 0:l.jitterPercent,10,0,100),default4xxBehavior:null!=(o=null==l?void 0:l.default4xxBehavior)?o:"drop",default5xxBehavior:null!=(a=null==l?void 0:l.default5xxBehavior)?a:"retry",statusCodeOverrides:(0,r.__assign)((0,r.__assign)({},ty),null==l?void 0:l.statusCodeOverrides)}}}function tk(t){return(encodeURI(JSON.stringify(t)).split(/%..|./).length-1)/1024}var tC=t.i(785630);function tE(t,e,n,i){var o=this;t||setTimeout(function(){return(0,r.__awaiter)(o,void 0,void 0,function(){var t,o;return(0,r.__generator)(this,function(a){switch(a.label){case 0:return t=!0,[4,function(t,e){return(0,r.__awaiter)(this,void 0,void 0,function(){var n,i=this;return(0,r.__generator)(this,function(o){switch(o.label){case 0:if(n=[],(0,h.isOffline)())return[2,e];return[4,(0,tC.pWhile)(function(){return e.length>0&&!(0,h.isOffline)()},function(){return(0,r.__awaiter)(i,void 0,void 0,function(){var i;return(0,r.__generator)(this,function(r){switch(r.label){case 0:if(!(i=e.pop()))return[2];return[4,(0,L.attempt)(i,t)];case 1:return r.sent()instanceof f.Context||n.push(i),[2]}})})})];case 1:return o.sent(),n.map(function(t){return e.pushWithBackoff(t)}),[2,e]}})})}(n,e)];case 1:return o=a.sent(),t=!1,e.todo>0&&i(t,o,n,i),[2]}})})},500*Math.random()+100)}var tI=t.i(133041),tx=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,tt.getGlobal)(),tO=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(tx))?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 tj(){console.warn(tA)}var tR=function(e){function n(t,n,i,o,a){var s,u,l,c,d,h,f=this;(f=e.call(this)||this)._debug=!1,f.initialized=!1,f.user=function(){return f._user},f.init=f.initialize.bind(f),f.log=tj,f.addIntegrationMiddleware=tj,f.listeners=tj,f.addEventListener=tj,f.removeAllListeners=tj,f.removeListener=tj,f.removeEventListener=tj,f.hasListeners=tj,f.add=tj,f.addIntegration=tj;var p=null==n?void 0:n.cookie,v=null!=(d=null==n?void 0:n.disableClientPersistence)&&d;f.queue=null!=i?i:(s="".concat(t.writeKey,":event-queue"),void 0===(u=null==n?void 0:n.retryQueue)&&(u=!1),void 0===(l=v)&&(l=!1),c=u?10:1,new D(l?new j.PriorityQueue(c,[]):new P.PersistedPriorityQueue(c,s))),f.settings=new tP(t,f.queue);var g=null==n?void 0:n.storage;return f._universalStorage=f.createStore(v,g,p),f._user=null!=o?o:new X((0,r.__assign)({persist:!v,storage:null==n?void 0:n.storage},null==n?void 0:n.user),p).load(),f._group=null!=a?a:new Z((0,r.__assign)({persist:!v,storage:null==n?void 0:n.storage},null==n?void 0:n.group),p).load(),f.eventFactory=new M(f._user),f.integrations=null!=(h=null==n?void 0:n.integrations)?h:{},f.options=null!=n?n:{},F(f),f}return(0,r.__extends)(n,e),n.prototype.createStore=function(t,e,n){return new q(t?[new T]:e&&V(e)?J(Q(e.stores,n)):J([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,r.__awaiter)(this,void 0,void 0,function(){var e,n,i,o,a,s,l,c=this;return(0,r.__generator)(this,function(r){return e=ts(t),i=(n=u.apply(void 0,t))[0],o=n[1],a=n[2],s=n[3],l=this.eventFactory.track(i,o,a,this.integrations,e),[2,this._dispatch(l,s).then(function(t){return c.emit("track",i,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,r.__awaiter)(this,void 0,void 0,function(){var e,n,i,o,a,s,u,c,d=this;return(0,r.__generator)(this,function(r){return e=ts(t),i=(n=l.apply(void 0,t))[0],o=n[1],a=n[2],s=n[3],u=n[4],c=this.eventFactory.page(i,o,a,s,this.integrations,e),[2,this._dispatch(c,u).then(function(t){return d.emit("page",i,o,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,r.__awaiter)(this,void 0,void 0,function(){var e,n,i,o,a,s,u,l=this;return(0,r.__generator)(this,function(r){return e=ts(t),i=(n=c(this._user).apply(void 0,t))[0],o=n[1],a=n[2],s=n[3],this._user.identify(i,o),u=this.eventFactory.identify(this._user.id(),this._user.traits(),a,this.integrations,e),[2,this._dispatch(u,s).then(function(t){return l.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=ts(e);if(0===e.length)return this._group;var i=c(this._group).apply(void 0,e),o=i[0],a=i[1],s=i[2],u=i[3];this._group.identify(o,a);var l=this._group.id(),d=this._group.traits(),h=this.eventFactory.group(l,d,s,this.integrations,r);return this._dispatch(h,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,r.__awaiter)(this,void 0,void 0,function(){var e,n,i,o,a,s,u,l=this;return(0,r.__generator)(this,function(r){return e=ts(t),i=(n=d.apply(void 0,t))[0],o=n[1],a=n[2],s=n[3],u=this.eventFactory.alias(i,o,a,this.integrations,e),[2,this._dispatch(u,s).then(function(t){return l.emit("alias",i,o,t.event.options),t})]})})},n.prototype.screen=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,r.__awaiter)(this,void 0,void 0,function(){var e,n,i,o,a,s,u,c,d=this;return(0,r.__generator)(this,function(r){return e=ts(t),i=(n=l.apply(void 0,t))[0],o=n[1],a=n[2],s=n[3],u=n[4],c=this.eventFactory.screen(i,o,a,s,this.integrations,e),[2,this._dispatch(c,u).then(function(t){return d.emit("screen",i,o,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,r.__awaiter)(this,void 0,void 0,function(){var n;return(0,r.__generator)(this,function(i){switch(i.label){case 0:return[4,t.A(104098)];case 1:return[2,(n=i.sent().link).call.apply(n,(0,r.__spreadArray)([this],e,!1))]}})})},n.prototype.trackLink=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(0,r.__awaiter)(this,void 0,void 0,function(){var n;return(0,r.__generator)(this,function(i){switch(i.label){case 0:return[4,t.A(104098)];case 1:return[2,(n=i.sent().link).call.apply(n,(0,r.__spreadArray)([this],e,!1))]}})})},n.prototype.trackSubmit=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(0,r.__awaiter)(this,void 0,void 0,function(){var n;return(0,r.__generator)(this,function(i){switch(i.label){case 0:return[4,t.A(104098)];case 1:return[2,(n=i.sent().form).call.apply(n,(0,r.__spreadArray)([this],e,!1))]}})})},n.prototype.trackForm=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(0,r.__awaiter)(this,void 0,void 0,function(){var n;return(0,r.__generator)(this,function(i){switch(i.label){case 0:return[4,t.A(104098)];case 1:return[2,(n=i.sent().form).call.apply(n,(0,r.__spreadArray)([this],e,!1))]}})})},n.prototype.register=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,r.__awaiter)(this,void 0,void 0,function(){var e,n=this;return(0,r.__generator)(this,function(r){switch(r.label){case 0:return e=f.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,r.__awaiter)(this,void 0,void 0,function(){var e,n=this;return(0,r.__generator)(this,function(r){switch(r.label){case 0:return e=f.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,r.__awaiter)(this,void 0,void 0,function(){var n;return(0,r.__generator)(this,function(i){return((n=new f.Context(t)).stats.increment("analytics_js.invoke",1,[t.type]),(0,h.isOffline)()&&!this.options.retryQueue)?[2,n]:[2,function(t,e,n,i){return(0,r.__awaiter)(this,void 0,void 0,function(){var o,a;return(0,r.__generator)(this,function(r){switch(r.label){case 0:if(n.emit("dispatch_start",t),o=Date.now(),!e.isEmpty())return[3,2];return[4,e.dispatchSingle(t)];case 1:return a=r.sent(),[3,4];case 2:return[4,e.dispatch(t)];case 3:a=r.sent(),r.label=4;case 4:var s,u;if(!(null==i?void 0:i.callback))return[3,6];return[4,(0,p.invokeCallback)(a,i.callback,(s=o,Math.max((null!=(u=i.timeout)?u:300)-(Date.now()-s),0)))];case 5:a=r.sent(),r.label=6;case 6:return(null==i?void 0:i.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,r.__awaiter)(this,void 0,void 0,function(){var n=this;return(0,r.__generator)(this,function(i){switch(i.label){case 0:return[4,this.queue.criticalTasks.run(function(){return(0,r.__awaiter)(n,void 0,void 0,function(){var n,i,o;return(0,r.__generator)(this,function(r){switch(r.label){case 0:return[4,t.A(971106)];case 1:return n=r.sent().sourceMiddlewarePlugin,i={},this.queue.plugins.forEach(function(t){if("destination"===t.type)return i[t.name]=!0}),o=n(e,i),[4,this.register(o)];case 2:return r.sent(),[2]}})})})];case 1:return i.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(O).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,r.__awaiter)(this,void 0,void 0,function(){return(0,r.__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,r.__awaiter)(this,void 0,void 0,function(){return(0,r.__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,te.setGlobalAnalytics)(null!=tO?tO: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 Y.version},enumerable:!1,configurable:!0}),n.prototype.initialize=function(t,e){return(0,r.__awaiter)(this,void 0,void 0,function(){return(0,r.__generator)(this,function(t){return console.warn(tA),[2,Promise.resolve(this)]})})},n.prototype.pageview=function(t){return(0,r.__awaiter)(this,void 0,void 0,function(){return(0,r.__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}(v.Emitter),tN=function(t){function e(){var e=t.call(this,{writeKey:""},{disableClientPersistence:!0})||this;return e.initialized=!0,e}return(0,r.__extends)(e,t),e}(tR),tL=t.i(652977),tD=t.i(681473),tF=t.i(845955),tK=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""}},tq=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,r.__awaiter)(t,void 0,void 0,function(){var t;return(0,r.__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,r.__awaiter)(this,void 0,void 0,function(){var e;return(0,r.__generator)(this,function(n){return(e=navigator.userAgentData)?t?[2,e.getHighEntropyValues(t).cat
2ch(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 i,o,a,s,u,l,c=n.event.context,d=c.page.search||"",h="object"==typeof d?tK(d):d;c.userAgent=navigator.userAgent,c.userAgentData=t.userAgentData;var f=navigator.userLanguage||navigator.language;void 0===c.locale&&void 0!==f&&(c.locale=f),null!=c.library||(c.library={name:"analytics.js",version:"".concat("web"===(0,tn.getVersionType)()?"next":"npm:next","-").concat(Y.version)}),h&&!c.campaign&&((i=h).startsWith("?")&&(i=i.substring(1)),c.campaign=(i=i.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,tF.gracefulDecodeURIComponent)(void 0===i?"":i)}return t},{}));var p=function(){var t=z.default.get("_ga");if(t&&t.startsWith("amp"))return t}();p&&(c.amp={id:p}),s=(a=new q(null!=(l=t.instance.options.disableClientPersistence)&&l?[]:[new W(function(){if(e)return e;var t=U(window.location.href);return e={expires:31536e6,secure:!1,path:"/"},t&&(e.domain=t),e}())])).get("s:context.referrer"),(u=null!=(o=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))?o:s)&&(c&&(c.referrer=(0,r.__assign)((0,r.__assign)({},c.referrer),u)),a.set("s:context.referrer",u));try{c.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},tT=t.i(380924),tB=t.i(824124),tz=t.i(231320),tU=function(){function t(t,e){this.version="1.0.0",this.alternativeNames=[],this.loadPromise=(0,tD.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,r.__awaiter)(this,void 0,void 0,function(){var e;return(0,r.__generator)(this,function(n){switch(n.label){case 0:return[4,(0,tB.applyDestinationMiddleware)(this.name,t.event,this.middleware)];case 1:return null===(e=n.sent())&&t.cancel(new R.ContextCancelation({retry:!1,reason:"dropped by destination middleware"})),[2,new f.Context(e)]}})})},t.prototype._createMethod=function(t){var e=this;return function(n){return(0,r.__awaiter)(e,void 0,void 0,function(){var e,i;return(0,r.__generator)(this,function(r){switch(r.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=r.sent(),r.label=2;case 2:return r.trys.push([2,5,,6]),[4,this.ready()];case 3:if(!r.sent())throw Error("Something prevented the destination from getting ready");return(0,tz.recordIntegrationMetric)(n,{integrationName:this.action.name,methodName:t,type:"action"}),[4,this.action[t](e)];case 4:return r.sent(),[3,6];case 5:throw i=r.sent(),(0,tz.recordIntegrationMetric)(n,{integrationName:this.action.name,methodName:t,type:"action",didError:!0}),i;case 6:return[2,n]}})})}},t.prototype.isLoaded=function(){return this.action.isLoaded()},t.prototype.ready=function(){return(0,r.__awaiter)(this,void 0,void 0,function(){return(0,r.__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,r.__awaiter)(this,void 0,void 0,function(){var n,i,o,a;return(0,r.__generator)(this,function(r){switch(r.label){case 0:if(this.loadPromise.isSettled())return[2,this.loadPromise.promise];r.label=1;case 1:return r.trys.push([1,3,,4]),(0,tz.recordIntegrationMetric)(t,{integrationName:this.action.name,methodName:"load",type:"action"}),n=this.action.load(t,e),o=(i=this.loadPromise).resolve,[4,n];case 2:return o.apply(i,[r.sent()]),[2,n];case 3:throw a=r.sent(),(0,tz.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}(),tW=(0,tt.getGlobal)(),tH=null!=(n=tW.__SEGMENT_INSPECTOR__)?n:tW.__SEGMENT_INSPECTOR__={},tV=function(t){var e;return null==(e=tH.attach)?void 0:e.call(tH,t)},tJ=t.i(778302),tQ=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,i=(0,tD.createDeferred)(),s=i.promise,u=i.resolve;return(n=e.call(this,function(e){return s.then(function(n){return function(e,n,i){var s,u,l,c,d,p,v,g,_;return void 0===n&&(n={}),(0,r.__awaiter)(this,void 0,void 0,function(){var y,m,b,w,S,k,C,E,I,x;return(0,r.__generator)(this,function(A){switch(A.label){case 0:if(!0===n.disable)return[2,[new tN,f.Context.system()]];if(n.globalAnalyticsKey&&(0,te.setGlobalAnalyticsKey)(n.globalAnalyticsKey),e.cdnURL&&(0,a.setGlobalCDNUrl)(e.cdnURL),n.initialPageview&&i.add(new tl
2("page",[])),y=tQ(),m=null!=(s=e.cdnURL)?s:(0,a.getCDN)(),null==(u=e.cdnSettings))return[3,1];return w=u,[3,3];case 1:var M,O;return[4,(M=e.writeKey,O=m,(0,tp.fetch)("".concat(O,"/v1/projects/").concat(M,"/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}))];case 2:w=A.sent(),A.label=3;case 3:if(b=w,n.updateCDNSettings&&(b=n.updateCDNSettings(b)),"function"!=typeof n.disable)return[3,5];return[4,n.disable(b)];case 4:if(A.sent())return[2,[new tN,f.Context.system()]];A.label=5;case 5:return S=null==(c=null==(l=b.integrations["Segment.io"])?void 0:l.retryQueue)||c,n=(0,r.__assign)({retryQueue:S},n),tV(k=new tR((0,r.__assign)((0,r.__assign)({},e),{cdnSettings:b,cdnURL:m}),n)),C=null!=(d=e.plugins)?d:[],E=null!=(p=e.classicIntegrations)?p:[],I=null==(v=n.integrations)?void 0:v["Segment.io"],tJ.Stats.initRemoteMetrics((0,r.__assign)((0,r.__assign)({},b.metrics),{host:null!=(g=null==I?void 0:I.apiHost)?g:null==(_=b.metrics)?void 0:_.host,protocol:null==I?void 0:I.protocol})),[4,function(e,n,i,s,u,l,c){var d,p,v;return void 0===u&&(u=[]),(0,r.__awaiter)(this,void 0,void 0,function(){var g,_,y,m,b,w,S,k,C,E,I,x,A,M,O=this;return(0,r.__generator)(this,function(R){var N,L,D;switch(R.label){case 0:if(to(i,c),ti(i,c),g=null==u?void 0:u.filter(function(t){return"object"==typeof t}),_=null==u?void 0:u.filter(function(t){return"function"==typeof t&&"string"==typeof t.pluginName}),"test"===o().NODE_ENV||!((null!=(D=null==(L=null==(N=n.middlewareSettings)?void 0:N.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=R.sent(),[3,3];case 2:m=void 0,R.label=3;case 3:if(y=m,("test"===o().NODE_ENV||!(Object.keys(n.integrations).length>1))&&!(l.length>0))return[3,5];return[4,t.A(149122).then(function(t){return t.ajsDestinations(e,n,i.integrations,s,y,l)})];case 4:return w=R.sent(),[3,6];case 5:w=[],R.label=6;case 6:if(b=w,!n.legacyVideoPluginsEnabled)return[3,8];return[4,t.A(473470).then(function(t){return t.loadLegacyVideoPlugins(i)})];case 7:R.sent(),R.label=8;case 8:if(!(null==(d=s.plan)?void 0:d.track))return[3,10];return[4,t.A(128089).then(function(t){var e;return t.schemaFilter(null==(e=s.plan)?void 0:e.track,n)})];case 9:return k=R.sent(),[3,11];case 10:k=void 0,R.label=11;case 11:return S=k,C=(0,tL.mergedOptions)(n,s),[4,(function(t,e,n,i,o,s){var u,l,c;return(0,r.__awaiter)(this,void 0,void 0,function(){var d,h,p=this;return(0,r.__generator)(this,function(v){switch(v.label){case 0:return d=[],h=null!=(l=null==(u=t.middlewareSettings)?void 0:u.routingRules)?l:[],[4,Promise.all((null!=(c=t.remotePlugins)?c:[]).map(function(t){return(0,r.__awaiter)(p,void 0,void 0,function(){var u,l,c,p,v,g;return(0,r.__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]),l=null==s?void 0:s.find(function(e){return e.pluginName===t.name}))return[3,3];return[4,function(t,e){return(0,r.__awaiter)(this,void 0,void 0,function(){var n,i,o,s,u,l;return(0,r.__generator)(this,function(r){switch(r.label){case 0:if(r.trys.push([0,9,,10]),n=RegExp("https://cdn.segment.(com|build)"),i=(0,a.getCDN)(),!e)return[3,6];s=(o=t.url.split("/"))[o.length-2],u=t.url.replace(s,btoa(s).replace(/=/g,"")),r.label=1;case 1:return r.trys.push([1,3,,5]),[4,(0,tT.loadScript)(u.replace(n,i))];case 2:case 4:return r.sent(),[3,5];case 3:return r.sent(),[4,(0,tT.loadScript)(t.url.replace(n,i))];case 5:return[3,8];case 6:return[4,(0,tT.loadScript)(t.url.replace(n,i))];case 7:r.sent(),r.label=8;case 8:if("function"==typeof window[t.libraryName])return[2,window[t.libraryName]];return[3,10];case 9:throw l=r.sent(),console.error("Failed to create PluginFactory",t),l;case 10:return[2]}})})}(t,null==i?void 0:i.obfuscate)];case 2:l=_.sent(),_.label=3;case 3:if(!(u=l))return[3,5];return c=n[t.name],[4,u((0,r.__assign)((0,r.__assign)({},t.settings),c))];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))})})}(v=Array.isArray(p=_.sent())?p:[p]),g=h.filter(function(e){return e.destinationName===t.creationName}),v.forEach(function(e){var n=new tU(t.creationName,e);g.length&&o&&n.addMiddleware(o),d.push(n)}),_.label=5;case 5:return[3,7];case 6:return console.warn("Failed to load Remote Plugin",_.sent()),(0,tz.recordIntegrationMetric)(f.Context.system(),{integrationName:t.name,methodName:"load",type:"action",didError:!0}),[3,7];case 7:return[2]}})})}))];
2case 1:return v.sent(),[2,d.filter(Boolean)]}})})})(n,i.integrations,C,s,y,_).catch(function(t){return console.error("Failed to load remote plugins",t),[]})];case 12:if(E=R.sent(),I=(0,r.__spreadArray)((0,r.__spreadArray)([tq],b,!0),E,!0),S&&I.push(S),(null==(p=s.integrations)?void 0:p.All)===!1&&!s.integrations["Segment.io"]||s.integrations&&!1===s.integrations["Segment.io"])return[3,14];return A=(x=I).push,[4,function(t,e,n){window.addEventListener("pagehide",function(){c.push.apply(c,Array.from(d)),d.clear()});var i,o,a,s,u,l=null!=(o=null==e?void 0:e.apiKey)?o:"",c=t.options.disableClientPersistence?new j.PriorityQueue(t.queue.queue.maxAttempts,[]):new P.PersistedPriorityQueue(t.queue.queue.maxAttempts,"".concat(l,":dest-Segment.io")),d=new Set,p=new WeakMap,v=null!=(a=null==e?void 0:e.apiHost)?a:tI.SEGMENT_API_HOST,g=null!=(s=null==e?void 0:e.protocol)?s:"https",_="".concat(g,"://").concat(v),y=null==(u=null==n?void 0:n["Segment.io"])?void 0:u.httpConfig,m=tS(null==e?void 0:e.httpConfig,y);!1!==t.options.retryQueue&&(c.maxAttempts=m.backoffConfig.maxRetryCount);var b=null==e?void 0:e.deliveryStrategy,w=b&&"strategy"in b&&"batching"===b.strategy?function(t,e,n,i){void 0===i&&(i="https");var o,a,s,u=[],l=!1,c=null!=(o=null==e?void 0:e.size)?o:10,d=null!=(a=null==e?void 0:e.timeout)?a:5e3,h=null!=n?n:tS(),p=0,v=0,g=!1,_=!1,y=0,m=0,b=0;function w(n,o){if(0!==n.length){var a,s=null==(a=n[0])?void 0:a.writeKey,u=n.map(function(t){return t.sentAt,(0,r.__rest)(t,["sentAt"])}),c=t_(null==e?void 0:e.headers);if(o>0&&(c["X-Retry-Count"]=String(o)),s){var d=btoa(s+":");c.Authorization="Basic ".concat(d)}var f=t.startsWith("http://")||t.startsWith("https://")?"":"".concat(i,"://");return(0,tp.fetch)("".concat(f).concat(t,"/b"),{credentials:null==e?void 0:e.credentials,keepalive:(null==e?void 0:e.keepalive)||l,headers:c,method:"post",body:JSON.stringify({writeKey:s,batch:u,sentAt:new Date().toISOString()}),priority:null==e?void 0:e.priority}).then(function(t){var e=t.status;if(!(e<400)){var n=tw(e,h.backoffConfig);if("drop"!==n){var r=tb(t,h.rateLimitConfig);if(r)throw new tg("Rate limit exceeded: ".concat(e),r.retryAfterMs,r.fromHeader)}if("retry"===n)throw Error("Retryable error: ".concat(e))}})}}function S(){u.length>0&&C(1)}function k(t){var n;return void 0===t&&(t=1),(0,r.__awaiter)(this,void 0,void 0,function(){var i,o,a,s;return(0,r.__generator)(this,function(l){return(g||(v=0,y=0,m=0,b=0),g=!1,_=!0,u.length)?(o=(i=function(t){for(var e=[],n=0;n<t.length;n++){var i=t[n],o=(0,r.__spreadArray)((0,r.__spreadArray)([],e,!0),[i],!1);if(e.length>0&&tk(o)>=450)return{batch:e,remaining:t.slice(n)};e.push(i)}return{batch:e,remaining:[]}}(u)).batch,a=i.remaining,0===o.length)?(_=!1,[2]):(u=a,s=v,v+=1,[2,null==(n=w(o,s))?void 0:n.then(function(t){return u.length>0&&C(1),t}).catch(function(n){f.Context.system().log("error","Error sending batch",n);var i=null!=(d=null==e?void 0:e.maxRetries)?d:h.backoffConfig.maxRetryCount,a="RateLimitError"===n.name,s=a&&n.isRetryableWithoutCount;if(!(s||t<=i))return S();if(s){if(++y>h.rateLimitConfig.maxRetryCount)return S();var l=n.retryTimeout;b+=l;var c=1e3*h.rateLimitConfig.maxRateLimitDuration;if(b>c)return S();p=l}if(!a){_=t,v=Math.max(0,Math.min(1e3*(w=h.backoffConfig).baseBackoffInterval*Math.pow(2,_-1),1e3*w.maxBackoffInterval)*(1+(Math.random()-.5)*2*(w.jitterPercent/100))),m+=v;var d,v,_,w,k=1e3*h.backoffConfig.maxTotalBackoffDuration;if(m>k)return S()}u=(0,r.__spreadArray)((0,r.__spreadArray)([],o,!0),u,!0),o.forEach(function(e){"_metadata"in e&&(e._metadata=(0,r.__assign)((0,r.__assign)({},e._metadata),{retryCount:t}))}),g=!0,C(s?t:t+1,v)}).finally(function(){_=!1})]):(_=!1,[2])})})}function C(t,e){void 0===t&&(t=1),s||(s=setTimeout(function(){s=void 0,k(t).catch(console.error)},p||e||d),p=0)}return tv(function(t){if((l=t)&&u.length){var e,n;Promise.all((e=[],n=0,u.forEach(function(t){tk(e[n])>=64&&n++,e[n]?e[n].push(t):e[n]=[t]}),e).map(function(t){return w(t,0)})).catch(console.error)}}),{dispatch:function(t,n,i){return(0,r.__awaiter)(this,void 0,void 0,function(){return(0,r.__generator)(this,function(t){if(u.push(n),g)return[2];return u.length>=c||tk(u)>=450||(null==e?void 0:e.keepalive)&&tk(u)>
2=54||l?[2,_?C():k()]:[2,C()]})})}}}(v,b.config,m,g):(i=null==b?void 0:b.config,{dispatch:function(t,e,n){var r=t_(null==i?void 0:i.headers),o=null==e?void 0:e.writeKey;if(o){var a=btoa(o+":");r.Authorization="Basic ".concat(a)}return n&&(r["X-Retry-Count"]=String(n)),(0,tp.fetch)(t,{credentials:null==i?void 0:i.credentials,keepalive:null==i?void 0:i.keepalive,headers:r,method:"post",body:JSON.stringify(e),priority:null==i?void 0:i.priority}).then(function(t){var e=t.status;if(!(e<400)){var n=null!=m?m:tS(),r=tw(e,n.backoffConfig);if("drop"!==r){var i=tb(t,n.rateLimitConfig);if(i)throw new tg("Rate limit exceeded: ".concat(e),i.retryAfterMs,i.fromHeader)}if("retry"===r)throw Error("Retryable error: ".concat(e));var o=Error("Non-retryable error: ".concat(e));throw o.name="NonRetryableError",o}})}});function S(i){return(0,r.__awaiter)(this,void 0,void 0,function(){var o,a,s,u;return(0,r.__generator)(this,function(l){var f,v,g,y,b,S;return(0,h.isOffline)()?(c.push(i),tE(!1,c,k,tE),[2,i]):(d.add(i),o=i.event.type.charAt(0),a=(0,tf.toFacade)(i.event).json(),"track"===i.event.type&&delete a.traits,"alias"===i.event.type&&(f=a,S=t.user(),f.previousId=null!=(y=null!=(g=null!=(v=f.previousId)?v:f.from)?g:S.id())?y:S.anonymousId(),f.userId=null!=(b=f.userId)?b:f.to,delete f.from,delete f.to,a=f),(s=c.getAttempts(i))>=c.maxAttempts)?(d.delete(i),u=Error("Retry attempts exhausted (".concat(s,"/").concat(c.maxAttempts,")")),i.setFailedDelivery({reason:u}),t.emit("error",{code:"delivery_failure",reason:u,ctx:i}),[2,i]):[2,w.dispatch("".concat(_,"/").concat(o),function(t,e,n,i,o){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!=o&&(o.attempts>1&&(e._metadata=(0,r.__assign)((0,r.__assign)({},e._metadata),{retryCount:o.attempts})),o.attempts++);var l=[],c=[];for(var d in i){var h=i[d];"Segment.io"===d&&l.push(d),"bundled"===h.bundlingStatus&&l.push(d),"unbundled"===h.bundlingStatus&&c.push(d)}for(var f=0,p=(null==n?void 0:n.unbundledIntegrations)||[];f<p.length;f++){var v=p[f];c.includes(v)||c.push(v)}var g=null!=(a=null==n?void 0:n.maybeBundledConfigIds)?a:{},_=[];return l.sort().forEach(function(t){var e;
2(null!=(e=g[t])?e:[]).forEach(function(t){_.push(t)})}),(null==n?void 0:n.addBundledMetadata)!==!1&&(e._metadata=(0,r.__assign)((0,r.__assign)({},e._metadata),{bundled:l.sort(),unbundled:c.sort(),bundledIds:_})),e}(t,a,e,n,i),s).then(function(){return i}).catch(function(e){var n;if(i.log("error","Error sending event",e),"RateLimitError"===e.name){var r=(null!=(n=p.get(i))?n:0)+1;if(p.set(i,r),r>m.rateLimitConfig.maxRetryCount)i.setFailedDelivery({reason:e}),t.emit("error",{code:"delivery_failure",reason:e,ctx:i});else{var o=e.retryTimeout;c.pushWithDelay(i,o)}}else"NonRetryableError"===e.name?(i.setFailedDelivery({reason:e}),t.emit("error",{code:"delivery_failure",reason:e,ctx:i})):c.pushWithBackoff(i);return tE(!1,c,k,tE),i}).finally(function(){d.delete(i)})]})})}var k={metadata:{writeKey:l,apiHost:v,protocol:g},name:"Segment.io",type:"destination",version:"0.1.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:S,identify:S,page:S,alias:S,group:S,screen:S};return c.todo&&tE(!1,c,k,tE),k}(i,C["Segment.io"],n.integrations)];case 13:A.apply(x,[R.sent()]),R.label=14;case 14:return[4,i.register.apply(i,(0,r.__spreadArray)((0,r.__spreadArray)([],I,!1),g,!1))];case 15:return M=R.sent(),[4,(0,r.__awaiter)(void 0,void 0,void 0,function(){var t,e;return(0,r.__generator)(this,function(n){switch(n.label){case 0:t=0,e=c.getAndRemove("register"),n.label=1;case 1:if(!(t<e.length))return[3,4];return[4,td(i,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(R.sent(),!Object.entries(null!=(v=n.enabledMiddleware)?v:{}).some(function(t){return t[1]}))return[3,18];return[4,t.A(414800).then(function(t){var e=t.remoteMiddlewares;return(0,r.__awaiter)(O,void 0,void 0,function(){return(0,r.__generator)(this,function(t){switch(t.label){case 0:return[4,e(M,n,s.obfuscate)];case 1:return[2,Promise.all(t.sent().map(function(t){return i.addSourceMiddleware(t)}))]}})})})];case 17:R.sent(),R.label=18;case 18:return[4,(0,r.__awaiter)(void 0,void 0,void 0,function(){var t,e;return(0,r.__generator)(this,function(n){switch(n.label){case 0:t=0,e=c.getAndRemove("addSourceMiddleware"),n.label=1;case 1:if(!(t<e.length))return[3,4];return[4,td(i,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 R.sent(),[2,M]}})})}(e.writeKey,b,k,n,C,E,i)];case 6:return x=A.sent(),k.initialized=!0,k.emit("initialize",e,n),[4,function(t,e,n){return(0,r.__awaiter)(this,void 0,void 0,function(){return(0,r.__generator)(this,function(i){switch(i.label){case 0:var o,a;return[4,(o=t,a=e,(0,r.__awaiter)(void 0,void 0,void 0,function(){return(0,r.__generator)(this,function(t){switch(t.label){case 0:if(!a.includes("ajs_"))return[3,2];return[4,o.queryString(a).catch(console.error)];case 1:t.sent(),t.label=2;case 2:return[2]}})}))];case 1:return i.sent(),ta(t,n),[2]}})})}(k,y,i)];case 7:return A.sent(),[2,[k,x]]}})})}(n[0],n[1],e)})})||this)._resolveLoadStart=function(t,e){return u([t,e])},n}return(0,r.__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}(th),tX=t.i(365753);let t$=null;var tZ=t.i(271645);t.s(["default",0,function(){return(0,tZ.useEffect)(()=>{let t=function(){if(t$)return t$;let t="render.com"===window.location.hostname?tX.segmentProductionWriteKey:tX.segmentDevelopmentWriteKey;return t$=tG.load({writeKey:t,cdnURL:`${window.location.origin}/seg/cdn`},{integrations:{"Segment.io":{apiHost:`${window.location.host}/segapi/v1`,protocol:"https"}}})}();window.analytics=t;try{let e=document.cookie.split(";").find(t=>t.trim().startsWith("ajs_anonymous_id="))?.trim().split("=").at(1);e&&t.setAnonymousId(e)}catch{}},[]),null}],458087)}]);
3
4//# debugId=14f6fcd8-42bc-a78e-d512-75ecb05831e2

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.