(()=>{var qr=Object.defineProperty;var u=(t,e)=>()=>(t&&(e=t(t=0)),e);var jr=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Mr=(t,e)=>{for(var r in e)qr(t,r,{get:e[r],enumerable:!0})};function G(t,e){return function(){return t.apply(e,arguments)}}var Ie=u(()=>{"use strict"});function zr(t){return t!==null&&!X(t)&&t.constructor!==null&&!X(t.constructor)&&O(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}function Vr(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Et(t.buffer),e}function Q(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let n,o;if(typeof t!="object"&&(t=[t]),j(t))for(n=0,o=t.length;n0;)if(o=r[n],e===o.toLowerCase())return o;return null}function Ne(){let{caseless:t}=Pt(this)&&this||{},e={},r=(n,o)=>{let i=t&&xt(e,o)||o;fe(e[i])&&fe(n)?e[i]=Ne(e[i],n):fe(n)?e[i]=Ne({},n):j(n)?e[i]=n.slice():e[i]=n};for(let n=0,o=arguments.length;n{"use strict";Ie();({toString:Jr}=Object.prototype),{getPrototypeOf:Ue}=Object,de=(t=>e=>{let r=Jr.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),I=t=>(t=t.toLowerCase(),e=>de(e)===t),pe=t=>e=>typeof e===t,{isArray:j}=Array,X=pe("undefined");Et=I("ArrayBuffer");$r=pe("string"),O=pe("function"),Rt=pe("number"),me=t=>t!==null&&typeof t=="object",Wr=t=>t===!0||t===!1,fe=t=>{if(de(t)!=="object")return!1;let e=Ue(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Kr=I("Date"),Gr=I("File"),Xr=I("Blob"),Qr=I("FileList"),Zr=t=>me(t)&&O(t.pipe),Yr=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||O(t.append)&&((e=de(t))==="formdata"||e==="object"&&O(t.toString)&&t.toString()==="[object FormData]"))},en=I("URLSearchParams"),tn=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");St=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Pt=t=>!X(t)&&t!==St;rn=(t,e,r,{allOwnKeys:n}={})=>(Q(e,(o,i)=>{r&&O(o)?t[i]=G(o,r):t[i]=o},{allOwnKeys:n}),t),nn=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),on=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},sn=(t,e,r,n)=>{let o,i,s,c={};if(e=e||{},t==null)return e;do{for(o=Object.getOwnPropertyNames(t),i=o.length;i-- >0;)s=o[i],(!n||n(s,t,e))&&!c[s]&&(e[s]=t[s],c[s]=!0);t=r!==!1&&Ue(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},an=(t,e,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;let n=t.indexOf(e,r);return n!==-1&&n===r},cn=t=>{if(!t)return null;if(j(t))return t;let e=t.length;if(!Rt(e))return null;let r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},ln=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Ue(Uint8Array)),un=(t,e)=>{let n=(t&&t[Symbol.iterator]).call(t),o;for(;(o=n.next())&&!o.done;){let i=o.value;e.call(t,i[0],i[1])}},fn=(t,e)=>{let r,n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},dn=I("HTMLFormElement"),pn=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),wt=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),mn=I("RegExp"),At=(t,e)=>{let r=Object.getOwnPropertyDescriptors(t),n={};Q(r,(o,i)=>{let s;(s=e(o,i,t))!==!1&&(n[i]=s||o)}),Object.defineProperties(t,n)},hn=t=>{At(t,(e,r)=>{if(O(t)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;let n=t[r];if(O(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},yn=(t,e)=>{let r={},n=o=>{o.forEach(i=>{r[i]=!0})};return j(t)?n(t):n(String(t).split(e)),r},gn=()=>{},wn=(t,e)=>(t=+t,Number.isFinite(t)?t:e),De="abcdefghijklmnopqrstuvwxyz",bt="0123456789",Ot={DIGIT:bt,ALPHA:De,ALPHA_DIGIT:De+De.toUpperCase()+bt},bn=(t=16,e=Ot.ALPHA_DIGIT)=>{let r="",{length:n}=e;for(;t--;)r+=e[Math.random()*n|0];return r};Rn=t=>{let e=new Array(10),r=(n,o)=>{if(me(n)){if(e.indexOf(n)>=0)return;if(!("toJSON"in n)){e[o]=n;let i=j(n)?[]:{};return Q(n,(s,c)=>{let f=r(s,o+1);!X(f)&&(i[c]=f)}),e[o]=void 0,i}}return n};return r(t,0)},xn=I("AsyncFunction"),Sn=t=>t&&(me(t)||O(t))&&O(t.then)&&O(t.catch),a={isArray:j,isArrayBuffer:Et,isBuffer:zr,isFormData:Yr,isArrayBufferView:Vr,isString:$r,isNumber:Rt,isBoolean:Wr,isObject:me,isPlainObject:fe,isUndefined:X,isDate:Kr,isFile:Gr,isBlob:Xr,isRegExp:mn,isFunction:O,isStream:Zr,isURLSearchParams:en,isTypedArray:ln,isFileList:Qr,forEach:Q,merge:Ne,extend:rn,trim:tn,stripBOM:nn,inherits:on,toFlatObject:sn,kindOf:de,kindOfTest:I,endsWith:an,toArray:cn,forEachEntry:un,matchAll:fn,isHTMLForm:dn,hasOwnProperty:wt,hasOwnProp:wt,reduceDescriptors:At,freezeMethods:hn,toObjectSet:yn,toCamelCase:pn,noop:gn,toFiniteNumber:wn,findKey:xt,global:St,isContextDefined:Pt,ALPHABET:Ot,generateString:bn,isSpecCompliantForm:En,toJSONObject:Rn,isAsyncFn:xn,isThenable:Sn}});function M(t,e,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}var Tt,Ct,y,D=u(()=>{"use strict";b();a.inherits(M,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:a.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});Tt=M.prototype,Ct={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{Ct[t]={value:t}});Object.defineProperties(M,Ct);Object.defineProperty(Tt,"isAxiosError",{value:!0});M.from=(t,e,r,n,o,i)=>{let s=Object.create(Tt);return a.toFlatObject(t,s,function(f){return f!==Error.prototype},c=>c!=="isAxiosError"),M.call(s,t.message,e,r,n,o),s.cause=t,s.name=t.name,i&&Object.assign(s,i),s};y=M});var he,Fe=u(()=>{he=null});function Le(t){return a.isPlainObject(t)||a.isArray(t)}function Dt(t){return a.endsWith(t,"[]")?t.slice(0,-2):t}function It(t,e,r){return t?t.concat(e).map(function(o,i){return o=Dt(o),!r&&i?"["+o+"]":o}).join(r?".":""):e}function Pn(t){return a.isArray(t)&&!t.some(Le)}function On(t,e,r){if(!a.isObject(t))throw new TypeError("target must be an object");e=e||new(he||FormData),r=a.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,R){return!a.isUndefined(R[h])});let n=r.metaTokens,o=r.visitor||d,i=r.dots,s=r.indexes,f=(r.Blob||typeof Blob<"u"&&Blob)&&a.isSpecCompliantForm(e);if(!a.isFunction(o))throw new TypeError("visitor must be a function");function p(m){if(m===null)return"";if(a.isDate(m))return m.toISOString();if(!f&&a.isBlob(m))throw new y("Blob is not supported. Use a Buffer instead.");return a.isArrayBuffer(m)||a.isTypedArray(m)?f&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function d(m,h,R){let S=m;if(m&&!R&&typeof m=="object"){if(a.endsWith(h,"{}"))h=n?h:h.slice(0,-2),m=JSON.stringify(m);else if(a.isArray(m)&&Pn(m)||(a.isFileList(m)||a.endsWith(h,"[]"))&&(S=a.toArray(m)))return h=Dt(h),S.forEach(function(k,Hr){!(a.isUndefined(k)||k===null)&&e.append(s===!0?It([h],Hr,i):s===null?h:h+"[]",p(k))}),!1}return Le(m)?!0:(e.append(It(R,h,i),p(m)),!1)}let l=[],g=Object.assign(An,{defaultVisitor:d,convertValue:p,isVisitable:Le});function w(m,h){if(!a.isUndefined(m)){if(l.indexOf(m)!==-1)throw Error("Circular reference detected in "+h.join("."));l.push(m),a.forEach(m,function(S,L){(!(a.isUndefined(S)||S===null)&&o.call(e,S,a.isString(L)?L.trim():L,h,g))===!0&&w(S,h?h.concat(L):[L])}),l.pop()}}if(!a.isObject(t))throw new TypeError("data must be an object");return w(t),e}var An,v,Z=u(()=>{"use strict";b();D();Fe();An=a.toFlatObject(a,{},null,function(e){return/^is[A-Z]/.test(e)});v=On});function Nt(t){let e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function Ut(t,e){this._pairs=[],t&&v(t,this,e)}var Ft,ye,ke=u(()=>{"use strict";Z();Ft=Ut.prototype;Ft.append=function(e,r){this._pairs.push([e,r])};Ft.toString=function(e){let r=e?function(n){return e.call(this,n,Nt)}:Nt;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};ye=Ut});function Tn(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Y(t,e,r){if(!e)return t;let n=r&&r.encode||Tn,o=r&&r.serialize,i;if(o?i=o(e,r):i=a.isURLSearchParams(e)?e.toString():new ye(e,r).toString(n),i){let s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}var ve=u(()=>{"use strict";b();ke()});var Be,_e,Lt=u(()=>{"use strict";b();Be=class{constructor(){this.handlers=[]}use(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){a.forEach(this.handlers,function(n){n!==null&&e(n)})}},_e=Be});var ge,He=u(()=>{"use strict";ge={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}});var kt,vt=u(()=>{"use strict";ke();kt=typeof URLSearchParams<"u"?URLSearchParams:ye});var Bt,_t=u(()=>{"use strict";Bt=typeof FormData<"u"?FormData:null});var Ht,qt=u(()=>{"use strict";Ht=typeof Blob<"u"?Blob:null});var jt,Mt=u(()=>{vt();_t();qt();jt={isBrowser:!0,classes:{URLSearchParams:kt,FormData:Bt,Blob:Ht},protocols:["http","https","file","blob","url","data"]}});var qe={};Mr(qe,{hasBrowserEnv:()=>Jt,hasStandardBrowserEnv:()=>Cn,hasStandardBrowserWebWorkerEnv:()=>In});var Jt,Cn,In,zt=u(()=>{Jt=typeof window<"u"&&typeof document<"u",Cn=(t=>Jt&&["ReactNative","NativeScript","NS"].indexOf(t)<0)(typeof navigator<"u"&&navigator.product),In=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")()});var P,J=u(()=>{Mt();zt();P={...qe,...jt}});function je(t,e){return v(t,new P.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,i){return P.isNode&&a.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}var Vt=u(()=>{"use strict";b();Z();J()});function Dn(t){return a.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Nn(t){let e={},r=Object.keys(t),n,o=r.length,i;for(n=0;n=r.length;return s=!s&&a.isArray(o)?o.length:s,f?(a.hasOwnProp(o,s)?o[s]=[o[s],n]:o[s]=n,!c):((!o[s]||!a.isObject(o[s]))&&(o[s]=[]),e(r,n,o[s],i)&&a.isArray(o[s])&&(o[s]=Nn(o[s])),!c)}if(a.isFormData(t)&&a.isFunction(t.entries)){let r={};return a.forEachEntry(t,(n,o)=>{e(Dn(n),o,r,0)}),r}return null}var we,Me=u(()=>{"use strict";b();we=Un});function Fn(t,e,r){if(a.isString(t))try{return(e||JSON.parse)(t),a.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}var Je,z,be=u(()=>{"use strict";b();D();He();Z();Vt();J();Me();Je={transitional:ge,adapter:["xhr","http"],transformRequest:[function(e,r){let n=r.getContentType()||"",o=n.indexOf("application/json")>-1,i=a.isObject(e);if(i&&a.isHTMLForm(e)&&(e=new FormData(e)),a.isFormData(e))return o&&o?JSON.stringify(we(e)):e;if(a.isArrayBuffer(e)||a.isBuffer(e)||a.isStream(e)||a.isFile(e)||a.isBlob(e))return e;if(a.isArrayBufferView(e))return e.buffer;if(a.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let c;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return je(e,this.formSerializer).toString();if((c=a.isFileList(e))||n.indexOf("multipart/form-data")>-1){let f=this.env&&this.env.FormData;return v(c?{"files[]":e}:e,f&&new f,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),Fn(e)):e}],transformResponse:[function(e){let r=this.transitional||Je.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(e&&a.isString(e)&&(n&&!this.responseType||o)){let s=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(c){if(s)throw c.name==="SyntaxError"?y.from(c,y.ERR_BAD_RESPONSE,this,null,this.response):c}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:P.classes.FormData,Blob:P.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};a.forEach(["delete","get","head","post","put","patch"],t=>{Je.headers[t]={}});z=Je});var Ln,$t,Wt=u(()=>{"use strict";b();Ln=a.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),$t=t=>{let e={},r,n,o;return t&&t.split(` `).forEach(function(s){o=s.indexOf(":"),r=s.substring(0,o).trim().toLowerCase(),n=s.substring(o+1).trim(),!(!r||e[r]&&Ln[r])&&(r==="set-cookie"?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)}),e}});function ee(t){return t&&String(t).trim().toLowerCase()}function Ee(t){return t===!1||t==null?t:a.isArray(t)?t.map(Ee):String(t)}function kn(t){let e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,n;for(;n=r.exec(t);)e[n[1]]=n[2];return e}function ze(t,e,r,n,o){if(a.isFunction(n))return n.call(this,e,r);if(o&&(e=r),!!a.isString(e)){if(a.isString(n))return e.indexOf(n)!==-1;if(a.isRegExp(n))return n.test(e)}}function Bn(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,r,n)=>r.toUpperCase()+n)}function _n(t,e){let r=a.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+r,{value:function(o,i,s){return this[n].call(this,e,o,i,s)},configurable:!0})})}var Kt,vn,V,A,q=u(()=>{"use strict";b();Wt();Kt=Symbol("internals");vn=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());V=class{constructor(e){e&&this.set(e)}set(e,r,n){let o=this;function i(c,f,p){let d=ee(f);if(!d)throw new Error("header name must be a non-empty string");let l=a.findKey(o,d);(!l||o[l]===void 0||p===!0||p===void 0&&o[l]!==!1)&&(o[l||f]=Ee(c))}let s=(c,f)=>a.forEach(c,(p,d)=>i(p,d,f));return a.isPlainObject(e)||e instanceof this.constructor?s(e,r):a.isString(e)&&(e=e.trim())&&!vn(e)?s($t(e),r):e!=null&&i(r,e,n),this}get(e,r){if(e=ee(e),e){let n=a.findKey(this,e);if(n){let o=this[n];if(!r)return o;if(r===!0)return kn(o);if(a.isFunction(r))return r.call(this,o,n);if(a.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,r){if(e=ee(e),e){let n=a.findKey(this,e);return!!(n&&this[n]!==void 0&&(!r||ze(this,this[n],n,r)))}return!1}delete(e,r){let n=this,o=!1;function i(s){if(s=ee(s),s){let c=a.findKey(n,s);c&&(!r||ze(n,n[c],c,r))&&(delete n[c],o=!0)}}return a.isArray(e)?e.forEach(i):i(e),o}clear(e){let r=Object.keys(this),n=r.length,o=!1;for(;n--;){let i=r[n];(!e||ze(this,this[i],i,e,!0))&&(delete this[i],o=!0)}return o}normalize(e){let r=this,n={};return a.forEach(this,(o,i)=>{let s=a.findKey(n,i);if(s){r[s]=Ee(o),delete r[i];return}let c=e?Bn(i):String(i).trim();c!==i&&delete r[i],r[c]=Ee(o),n[c]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let r=Object.create(null);return a.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=e&&a.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,r])=>e+": "+r).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...r){let n=new this(e);return r.forEach(o=>n.set(o)),n}static accessor(e){let n=(this[Kt]=this[Kt]={accessors:{}}).accessors,o=this.prototype;function i(s){let c=ee(s);n[c]||(_n(o,s),n[c]=!0)}return a.isArray(e)?e.forEach(i):i(e),this}};V.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);a.reduceDescriptors(V.prototype,({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(n){this[r]=n}}});a.freezeMethods(V);A=V});function te(t,e){let r=this||z,n=e||r,o=A.from(n.headers),i=n.data;return a.forEach(t,function(c){i=c.call(r,i,o.normalize(),e?e.status:void 0)}),o.normalize(),i}var Gt=u(()=>{"use strict";b();be();q()});function re(t){return!!(t&&t.__CANCEL__)}var Ve=u(()=>{"use strict"});function Xt(t,e,r){y.call(this,t??"canceled",y.ERR_CANCELED,e,r),this.name="CanceledError"}var B,ne=u(()=>{"use strict";D();b();a.inherits(Xt,y,{__CANCEL__:!0});B=Xt});function $e(t,e,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?t(r):e(new y("Request failed with status code "+r.status,[y.ERR_BAD_REQUEST,y.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}var Qt=u(()=>{"use strict";D()});var Zt,Yt=u(()=>{b();J();Zt=P.hasStandardBrowserEnv?{write(t,e,r,n,o,i){let s=[t+"="+encodeURIComponent(e)];a.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),a.isString(n)&&s.push("path="+n),a.isString(o)&&s.push("domain="+o),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(t){let e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}}});function We(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}var er=u(()=>{"use strict"});function Ke(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}var tr=u(()=>{"use strict"});function oe(t,e){return t&&!We(e)?Ke(t,e):e}var Ge=u(()=>{"use strict";er();tr()});var rr,nr=u(()=>{"use strict";b();J();rr=P.hasStandardBrowserEnv?function(){let e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),n;function o(i){let s=i;return e&&(r.setAttribute("href",s),s=r.href),r.setAttribute("href",s),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=o(window.location.href),function(s){let c=a.isString(s)?o(s):s;return c.protocol===n.protocol&&c.host===n.host}}():function(){return function(){return!0}}()});function Xe(t){let e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}var or=u(()=>{"use strict"});function Hn(t,e){t=t||10;let r=new Array(t),n=new Array(t),o=0,i=0,s;return e=e!==void 0?e:1e3,function(f){let p=Date.now(),d=n[i];s||(s=p),r[o]=f,n[o]=p;let l=i,g=0;for(;l!==o;)g+=r[l++],l=l%t;if(o=(o+1)%t,o===i&&(i=(i+1)%t),p-s{"use strict";ir=Hn});function ar(t,e){let r=0,n=ir(50,250);return o=>{let i=o.loaded,s=o.lengthComputable?o.total:void 0,c=i-r,f=n(c),p=i<=s;r=i;let d={loaded:i,total:s,progress:s?i/s:void 0,bytes:c,rate:f||void 0,estimated:f&&s&&p?(s-i)/f:void 0,event:o};d[e?"download":"upload"]=!0,t(d)}}var qn,cr,lr=u(()=>{"use strict";b();Qt();Yt();ve();Ge();nr();He();D();ne();or();J();q();sr();qn=typeof XMLHttpRequest<"u",cr=qn&&function(t){return new Promise(function(r,n){let o=t.data,i=A.from(t.headers).normalize(),{responseType:s,withXSRFToken:c}=t,f;function p(){t.cancelToken&&t.cancelToken.unsubscribe(f),t.signal&&t.signal.removeEventListener("abort",f)}let d;if(a.isFormData(o)){if(P.hasStandardBrowserEnv||P.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((d=i.getContentType())!==!1){let[h,...R]=d?d.split(";").map(S=>S.trim()).filter(Boolean):[];i.setContentType([h||"multipart/form-data",...R].join("; "))}}let l=new XMLHttpRequest;if(t.auth){let h=t.auth.username||"",R=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.set("Authorization","Basic "+btoa(h+":"+R))}let g=oe(t.baseURL,t.url);l.open(t.method.toUpperCase(),Y(g,t.params,t.paramsSerializer),!0),l.timeout=t.timeout;function w(){if(!l)return;let h=A.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),S={data:!s||s==="text"||s==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:h,config:t,request:l};$e(function(k){r(k),p()},function(k){n(k),p()},S),l=null}if("onloadend"in l?l.onloadend=w:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(w)},l.onabort=function(){l&&(n(new y("Request aborted",y.ECONNABORTED,t,l)),l=null)},l.onerror=function(){n(new y("Network Error",y.ERR_NETWORK,t,l)),l=null},l.ontimeout=function(){let R=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",S=t.transitional||ge;t.timeoutErrorMessage&&(R=t.timeoutErrorMessage),n(new y(R,S.clarifyTimeoutError?y.ETIMEDOUT:y.ECONNABORTED,t,l)),l=null},P.hasStandardBrowserEnv&&(c&&a.isFunction(c)&&(c=c(t)),c||c!==!1&&rr(g))){let h=t.xsrfHeaderName&&t.xsrfCookieName&&Zt.read(t.xsrfCookieName);h&&i.set(t.xsrfHeaderName,h)}o===void 0&&i.setContentType(null),"setRequestHeader"in l&&a.forEach(i.toJSON(),function(R,S){l.setRequestHeader(S,R)}),a.isUndefined(t.withCredentials)||(l.withCredentials=!!t.withCredentials),s&&s!=="json"&&(l.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&l.addEventListener("progress",ar(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",ar(t.onUploadProgress)),(t.cancelToken||t.signal)&&(f=h=>{l&&(n(!h||h.type?new B(null,t,l):h),l.abort(),l=null)},t.cancelToken&&t.cancelToken.subscribe(f),t.signal&&(t.signal.aborted?f():t.signal.addEventListener("abort",f)));let m=Xe(g);if(m&&P.protocols.indexOf(m)===-1){n(new y("Unsupported protocol "+m+":",y.ERR_BAD_REQUEST,t));return}l.send(o||null)})}});var Qe,ur,jn,Re,Ze=u(()=>{b();Fe();lr();D();Qe={http:he,xhr:cr};a.forEach(Qe,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});ur=t=>`- ${t}`,jn=t=>a.isFunction(t)||t===null||t===!1,Re={getAdapter:t=>{t=a.isArray(t)?t:[t];let{length:e}=t,r,n,o={};for(let i=0;i`adapter ${c} `+(f===!1?"is not supported by the environment":"is not available in the build")),s=e?i.length>1?`since : `+i.map(ur).join(` `):" "+ur(i[0]):"as no adapter specified";throw new y("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return n},adapters:Qe}});function Ye(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new B(null,t)}function xe(t){return Ye(t),t.headers=A.from(t.headers),t.data=te.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Re.getAdapter(t.adapter||z.adapter)(t).then(function(n){return Ye(t),n.data=te.call(t,t.transformResponse,n),n.headers=A.from(n.headers),n},function(n){return re(n)||(Ye(t),n&&n.response&&(n.response.data=te.call(t,t.transformResponse,n.response),n.response.headers=A.from(n.response.headers))),Promise.reject(n)})}var fr=u(()=>{"use strict";Gt();Ve();be();ne();q();Ze()});function N(t,e){e=e||{};let r={};function n(p,d,l){return a.isPlainObject(p)&&a.isPlainObject(d)?a.merge.call({caseless:l},p,d):a.isPlainObject(d)?a.merge({},d):a.isArray(d)?d.slice():d}function o(p,d,l){if(a.isUndefined(d)){if(!a.isUndefined(p))return n(void 0,p,l)}else return n(p,d,l)}function i(p,d){if(!a.isUndefined(d))return n(void 0,d)}function s(p,d){if(a.isUndefined(d)){if(!a.isUndefined(p))return n(void 0,p)}else return n(void 0,d)}function c(p,d,l){if(l in e)return n(p,d);if(l in t)return n(void 0,p)}let f={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:c,headers:(p,d)=>o(dr(p),dr(d),!0)};return a.forEach(Object.keys(Object.assign({},t,e)),function(d){let l=f[d]||o,g=l(t[d],e[d],d);a.isUndefined(g)&&l!==c||(r[d]=g)}),r}var dr,et=u(()=>{"use strict";b();q();dr=t=>t instanceof A?t.toJSON():t});var Se,tt=u(()=>{Se="1.6.2"});function Mn(t,e,r){if(typeof t!="object")throw new y("options must be an object",y.ERR_BAD_OPTION_VALUE);let n=Object.keys(t),o=n.length;for(;o-- >0;){let i=n[o],s=e[i];if(s){let c=t[i],f=c===void 0||s(c,i,t);if(f!==!0)throw new y("option "+i+" must be "+f,y.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new y("Unknown option "+i,y.ERR_BAD_OPTION)}}var rt,pr,Pe,mr=u(()=>{"use strict";tt();D();rt={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{rt[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});pr={};rt.transitional=function(e,r,n){function o(i,s){return"[Axios v"+Se+"] Transitional option '"+i+"'"+s+(n?". "+n:"")}return(i,s,c)=>{if(e===!1)throw new y(o(s," has been removed"+(r?" in "+r:"")),y.ERR_DEPRECATED);return r&&!pr[s]&&(pr[s]=!0,console.warn(o(s," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(i,s,c):!0}};Pe={assertOptions:Mn,validators:rt}});var _,$,ie,hr=u(()=>{"use strict";b();ve();Lt();fr();et();Ge();mr();q();_=Pe.validators,$=class{constructor(e){this.defaults=e,this.interceptors={request:new _e,response:new _e}}request(e,r){typeof e=="string"?(r=r||{},r.url=e):r=e||{},r=N(this.defaults,r);let{transitional:n,paramsSerializer:o,headers:i}=r;n!==void 0&&Pe.assertOptions(n,{silentJSONParsing:_.transitional(_.boolean),forcedJSONParsing:_.transitional(_.boolean),clarifyTimeoutError:_.transitional(_.boolean)},!1),o!=null&&(a.isFunction(o)?r.paramsSerializer={serialize:o}:Pe.assertOptions(o,{encode:_.function,serialize:_.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=i&&a.merge(i.common,i[r.method]);i&&a.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),r.headers=A.concat(s,i);let c=[],f=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(r)===!1||(f=f&&h.synchronous,c.unshift(h.fulfilled,h.rejected))});let p=[];this.interceptors.response.forEach(function(h){p.push(h.fulfilled,h.rejected)});let d,l=0,g;if(!f){let m=[xe.bind(this),void 0];for(m.unshift.apply(m,c),m.push.apply(m,p),g=m.length,d=Promise.resolve(r);l{"use strict";ne();se=class{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});let n=this;this.promise.then(o=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](o);n._listeners=null}),this.promise.then=o=>{let i,s=new Promise(c=>{n.subscribe(c),i=c}).then(o);return s.cancel=function(){n.unsubscribe(i)},s},e(function(i,s,c){n.reason||(n.reason=new B(i,s,c),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let r=this._listeners.indexOf(e);r!==-1&&this._listeners.splice(r,1)}static source(){let e;return{token:new se(function(o){e=o}),cancel:e}}},yr=se});function nt(t){return function(r){return t.apply(null,r)}}var wr=u(()=>{"use strict"});function ot(t){return a.isObject(t)&&t.isAxiosError===!0}var br=u(()=>{"use strict";b()});var it,Er,Rr=u(()=>{it={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(it).forEach(([t,e])=>{it[e]=t});Er=it});function xr(t){let e=new ie(t),r=G(ie.prototype.request,e);return a.extend(r,ie.prototype,e,{allOwnKeys:!0}),a.extend(r,e,null,{allOwnKeys:!0}),r.create=function(o){return xr(N(t,o))},r}var E,W,Sr=u(()=>{"use strict";b();Ie();hr();et();be();Me();ne();gr();Ve();tt();Z();D();wr();br();q();Ze();Rr();E=xr(z);E.Axios=ie;E.CanceledError=B;E.CancelToken=yr;E.isCancel=re;E.VERSION=Se;E.toFormData=v;E.AxiosError=y;E.Cancel=E.CanceledError;E.all=function(e){return Promise.all(e)};E.spread=nt;E.isAxiosError=ot;E.mergeConfig=N;E.AxiosHeaders=A;E.formToJSON=t=>we(a.isHTMLForm(t)?new FormData(t):t);E.getAdapter=Re.getAdapter;E.HttpStatusCode=Er;E.default=E;W=E});var Cs,Is,Ds,Ns,Us,Fs,Ls,ks,vs,Bs,_s,Hs,qs,js,Ms,Js,Pr=u(()=>{Sr();({Axios:Cs,AxiosError:Is,CanceledError:Ds,isCancel:Ns,CancelToken:Us,VERSION:Fs,all:Ls,Cancel:ks,isAxiosError:vs,spread:Bs,toFormData:_s,AxiosHeaders:Hs,HttpStatusCode:qs,formToJSON:js,getAdapter:Ms,mergeConfig:Js}=W)});var st,T,at=u(()=>{st=class{constructor(e=!1){this.debugMode=e}setDebugMode(e){this.debugMode=e}log(e,...r){this.debugMode&&console.log(`[LOG] ${e}`,...r)}debug(e,...r){this.debugMode&&console.log(`[DEBUG] ${e}`,...r)}info(e,...r){this.debugMode&&console.info(`[INFO] ${e}`,...r)}warn(e,...r){this.debugMode&&console.warn(`[WARN] ${e}`,...r)}error(e,...r){this.debugMode&&console.error(`[ERROR] ${e}`,...r)}},T=new st(!1)});function Ar(t){Ae={...Ae,...t},T.setDebugMode(Ae?.debug===!0)}function ae(){return Ae}var Ae,ct=u(()=>{at();Ae={api:{},collector:{},dataCapture:{autoCapture:!1,sessionReplay:{enabled:!1}},debug:!1}});var H,ce,lt=u(()=>{H=class{constructor(){this.errors=[]}static getInstance(){return H.instance||(H.instance=new H),H.instance}addError(e,r){this.errors.push({message:e,error:r})}getErrors(){return this.errors}},ce=H.getInstance()});function ut(){if(!Oe&&(Oe=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Oe))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Oe(Jn)}var Oe,Jn,Or=u(()=>{Jn=new Uint8Array(16)});function Tr(t,e=0){return(x[t[e+0]]+x[t[e+1]]+x[t[e+2]]+x[t[e+3]]+"-"+x[t[e+4]]+x[t[e+5]]+"-"+x[t[e+6]]+x[t[e+7]]+"-"+x[t[e+8]]+x[t[e+9]]+"-"+x[t[e+10]]+x[t[e+11]]+x[t[e+12]]+x[t[e+13]]+x[t[e+14]]+x[t[e+15]]).toLowerCase()}var x,Cr=u(()=>{x=[];for(let t=0;t<256;++t)x.push((t+256).toString(16).slice(1))});var zn,ft,Ir=u(()=>{zn=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),ft={randomUUID:zn}});function Vn(t,e,r){if(ft.randomUUID&&!e&&!t)return ft.randomUUID();t=t||{};let n=t.random||(t.rng||ut)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,e){r=r||0;for(let o=0;o<16;++o)e[r+o]=n[o];return e}return Tr(n)}var K,Dr=u(()=>{Ir();Or();Cr();K=Vn});var Nr=u(()=>{Dr()});var dt,$n,le,pt=u(()=>{Nr();lt();dt=class{constructor(e=30){this.requestId=K();this.ttlInMinutes=e}clearSession(){localStorage.removeItem("session")}initializeSession(){try{let e=localStorage.getItem("session");if(e){let{sessionId:o,requestId:i,timestamp:s,identity:c}=JSON.parse(e),f=new Date().getTime();if(f-s{Wn="0.2.65/333b30fe",Te=Wn});var U,Ur=u(()=>{Pr();ct();lt();pt();mt();W.defaults.withCredentials=!0;U=class{static async formatRequest(e,r){return JSON.stringify({type:e,data:r})}static secureEnv(){return Boolean(window.crypto?.subtle)}static async post(e,r,n){try{let o=ae()?.api?.baseUrl;if(!o)throw console.error("Internal honeypot error: missing base url"),new Error("Missing base URL");let i=`${o}${e}`,s={identity:le.getIdentity(),identities:le.getIdentities()},c={...n,...s,library_version:Te},f=await U.formatRequest(r,c);return(await W.post(i,f,{headers:{"Content-Type":"application/json;charset=UTF-8"}})).data}catch(o){throw ce.addError("Failed to communicate with the backend server"),U.postError(o),o}}static async postError(e){try{let n=ae()?.api?.routes?.errors;if(!n)return;let o=await U.formatRequest("error",{message:e}),i=await W.post(n,o,{headers:{"Content-Type":"application/json;charset=UTF-8"}})}catch{console.error("error HP10002")}}}});var Ce,ht=u(()=>{Ce=(t,e,r,n)=>{let o=0,i=s=>{try{let c=new URLSearchParams(window.location.search).has("hpdebug");(n?.debug===!0||c)&&console.log(`[hp] ${s}`)}catch{}};return{name:"honeypot-enrichment",type:"before",setup:async s=>{try{s.userId&&(n?.trackIdentities?(i(`setting user_id: ${s.userId}`),await r(s.userId)):i(`ignoring user_id since trackIdentities is set to false: ${s.userId}`))}catch{}let c=await e();i(`initialized plugin. honey=${JSON.stringify(c)}`)},execute:async s=>{try{let{user_id:c,event_type:f}=s;try{c&&(n?.trackIdentities?(i(`processing identify event: ${c}`),await r(c)):i(`ignoring identify event since trackIdentities is set to false: ${c}`))}catch{}let d=f.startsWith("[Amplitude] ")?f.replace("[Amplitude] ",""):f;o=o+1;let l=!1;if(n?.excludeEvents?.includes(d)||n?.includeEvents?.length&&!n?.includeEvents.includes(d)){if(n?.enrichEventProperties){let m={ignored:!0};s.event_properties={...s.event_properties,honey:m}}return i(`ignoring event: ${f}`),s}l||(i(`tracking event: ${f}`),await t(f,s.event_properties));let w=await e();return w?.geofenced&&w?.redirect_auto?(i(`dropping event: ${f}`),null):(n?.enrichEventProperties&&(s.event_properties={...s.event_properties,honey:w},i(`enriching event: ${f}. ${JSON.stringify(s.event_properties)}`)),s)}catch{return s}}}}});var yt,Kn,Fr=u(()=>{ht();yt=class{constructor(){this.config=null;this.honey=null;this.id=[];this.q=[];this.didInit=!1;this.didLoad=!1;this.callbacks={};this.geofenced=!1}setup(e){this.config=e}amplitudePlugin(e){return Ce(this.track.bind(this),this.get.bind(this),this.identify.bind(this),e)}geofence(){window.honeypot?.geofence&&window.honeypot.geofence(),this.geofenced=!0}ensureHoneypot(){window.honeypot||(window.honeypot={q:[],id:[]})}async identify(e,r,n){if(this.ensureHoneypot(),window.honeypot?.identify)window.honeypot.identify(e,r,n);else{let o={id:e,...r?{properties:r}:{},...n?{type:n}:{}};Array.isArray(window.honeypot.id)||(window.honeypot.id=[]),window.honeypot.id.push(o)}}on(e,r){this.ensureHoneypot(),window.honeypot.on?window.honeypot.on(e,r):(window.honeypot.callbacks[e]??=[]).push(r)}async flow(e,r){return this.ensureHoneypot(),new Promise((n,o)=>{let i=Date.now(),s=()=>{window&&window.honeypot&&this.didInit?n(window.honeypot.flow(e,r)):Date.now()-i>=5e3?o(new Error("Flow could not be created. Did you call the load() method first?")):setTimeout(s,100)};s()})}async track(e,r={}){this.ensureHoneypot();try{if(window.honeypot?.track)window.honeypot.track(e,r);else{let n=this.q||[];n.push([e,r]),this.q=n}}catch(n){this.config?.debug&&console.error("Error tracking event:",n)}}async init(){}maybeTime(e,r){if(this.config?.debug){if(r){console.timeEnd(e);return}console.time(e)}}load(e,r,n){return this.didLoad=!0,new Promise(o=>{let i=document.createElement("script");i.async=!0;let s=new URL(e),c=null,f=null;try{c=window.location.href}catch{}try{f=document.title}catch{}s.searchParams.append("url",c||"URL not available"),s.searchParams.append("title",f||"Title not available");try{if(window.honeypot&&Array.isArray(window.honeypot.q)){let l=window.honeypot.q.map(g=>g[0]);s.searchParams.append("events",JSON.stringify(l))}}catch(l){this.config?.debug&&console.error("Error appending event names to the script URL:",l)}try{let l=["hpdebug","hpgeotest"],g=new URLSearchParams(window.location.search);l.forEach(w=>{g.has(w)&&s.searchParams.append(w,g.get(w)||"")})}catch{}r&&(s.searchParams.append("identity",r),n&&s.searchParams.append("type",n));let p=new URLSearchParams(window.location.search).get("georef");p&&s.searchParams.append("georef",p),this.maybeTime("load honeypot");try{let l=window?.honeypot?.id;if(l){let g=null;Array.isArray(l)&&l.length>0?g=l[0]?.id:g=l?.id,g&&s.searchParams.append("identity",g)}}catch{}i.src=s.toString(),document.head.appendChild(i);let d=this.config;i.onload=()=>{this.didInit=!0,this.maybeTime("load honeypot",!0);try{window.honeypot&&(window.honeypot.config=d)}catch{}o(window.honeypot)}})}async get(){if(!this.didLoad&&this.config?.url)try{if(await this.load(this.config.url),window.honeypot)return window.honeypot.get()}catch{throw new Error("Failed to load")}else if(this.didLoad&&!this.didInit)return new Promise((e,r)=>{let n=Date.now(),o=()=>{window.honeypot&&window.honeypot.get?e(window.honeypot.get()):Date.now()-n>=2e3?r(new Error("Timeout: Honeypot SDK did not initialize in time.")):setTimeout(o,50)};o()});return new Promise((e,r)=>{(()=>{if(window.honeypot&&window.honeypot.honey)e(window.honeypot.honey);else{if(window.honeypot?.get)return window.honeypot.get();r(new Error("Honey not found"))}})()})}},Kn=new yt});var ue,Lr=u(()=>{ht();ue=class{amplitudePlugin(e){return Ce(this.track.bind(this),this.get.bind(this),this.identify.bind(this),e)}}});var kr=u(()=>{Fr();Lr()});var C,vr=u(()=>{C=class{static sleep(e){return new Promise(r=>setTimeout(r,e))}static isConstantLike(e){return typeof e=="string"&&!e.match(/[^A-Z0-9_x]/)}static getConstantsFromPrototype(e){return Object.keys(e.__proto__).filter(C.isConstantLike)}static recur(e,r=new WeakSet,n=!1){if(r.has(e))return{};try{r.add(e)}catch{}var o=n?[]:{};for(var i in e)try{let s;if(i==="enabledPlugin"||typeof e[i]=="function")continue;Array.isArray(e[i])?typeof e[i][0]=="object"?(s=C.recur(e[i],r,!0),o[i]=s.length?s:e[i]):o[i]=e[i]:typeof e[i]=="object"?(s=C.recur(e[i],r),Object.keys(s).length&&(o[i]=s)):n?o.push(e[i]):o[i]=e[i]}catch{}return o}static isValidUrlOrPath(e){try{if(!e)return!1;if(e.startsWith("/"))return!0;if(e.startsWith("http://")||e.startsWith("https://"))return new URL(e),!0}catch{return!1}return!1}static onRedirectPage(e){if(!C.isValidUrlOrPath(e))return!1;var r=e===window.location.pathname;if(!r)try{r=new URL(e,window.location.origin).href===window.location.href}catch{}return r}}});var gt,Gn,F,Br=u(()=>{Ur();ct();at();kr();vr();mt();pt();new URLSearchParams(window.location.search).has("hpdebug")&&console.log(`hp${Te}`);gt=class extends ue{constructor(){super(...arguments);this.config=null;this.honey=null;this.id=null;this.q=[];this.didInit=!1;this.callbacks={};this.geofenceResults=null;this.intervalId=null}setup(r){this.config=r}_setup(r){Ar(r),T.setDebugMode(r?.debug===!0);try{this.didInit=!0;let n=window.navigator,o=this.maybeRescreen.bind(this);"connection"in n&&(n.connection||n?.mozConnection||n?.webkitConnection).addEventListener("change",()=>{T.debug("Connection changed"),o()})}catch(n){T.error("Could not setup Honeypot"),T.error(n)}}async identify(r,n={},o="account"){try{le.setIdentity(r,n,o)}catch{}}async track(r,n={}){let o=ae()?.api?.routes?.ping;if(!o)return Promise.reject("Internal honeypot error: no endpoint is configured");try{let s={event:{time:String(Date.now()),type:r,properties:n}};T.info("Payload"),T.info(JSON.stringify(s));let c=await U.post(o,"beacon",s);return this.honey=c?.honey,this.geofenceResults=c?.geofenceResults||null,this.processGeofenceResults(),this.get()}catch(i){return Promise.reject(i)}}async get(){return this.honey?Promise.resolve(this.honey):Promise.reject("Honey not found")}processGeofenceResults(){if(!this.geofenceResults)return;let r=this.geofenceResults;r.redirectUrl&&r.autoRedirect&&this.geofence(),r?.rescreenEnabled&&r?.rescreenFrequencySeconds&&r.rescreenFrequencySeconds>=1?this.startRescreening(r.rescreenFrequencySeconds):this.stopRescreening()}async maybeRescreen(){return this.geofenceResults?.rescreenEnabled?await this.track("__rescreen"):Promise.resolve("skipped")}startRescreening(r){let n=this.maybeRescreen.bind(this);this.intervalId||(this.intervalId=setInterval(async()=>{let o=await n();T.info("Schedule results"),T.info(JSON.stringify(o))},r*1e3))}stopRescreening(){try{this.intervalId!==null&&(clearInterval(this.intervalId),this.intervalId=null)}catch{}}geofence(){try{let r=this.geofenceResults?.redirectUrl;r&&C.isValidUrlOrPath(r)&&!C.onRedirectPage(r)&&window.location.pathname!="/geo-unavailable"&&(window.location.href=r+"?georef="+this.geofenceResults?.ref)}catch{}}},Gn=new gt,F=Gn});var Xn=jr((La,_r)=>{Br();window&&(window.honeypot&&(F.id=window.honeypot.id||null,F.config=window.honeypot.config||{},F.q=window.honeypot.q||[],F.fq=window.honeypot.fq||[],F.callbacks=window.honeypot.callbacks||{},F.geofenced=window.honeypot.geofenced||!1),window.honeypot=F);_r.exports={honeypot:F}});Xn();})(); honeypot._setup({"api":{"baseUrl":"https://os-ujcrq.quill.run","routes":{"ping":"/58sj3ae84cd6"}}}) honeypot.honey = {"redirect_auto":false,"redirect_url":""} honeypot.geofenceResults = {"autoRedirect":false,"redirectUrl":null,"ref":null,"rescreenFrequencySeconds":-1} honeypot.processGeofenceResults()