@molin.ai/shop-ai 0.3.4 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  var Pp=Object.defineProperty;var Ap=(t,e,r)=>e in t?Pp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var ft=(t,e,r)=>(Ap(t,typeof e!="symbol"?e+"":e,r),r),ws=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)};var q=(t,e,r)=>(ws(t,e,"read from private field"),r?r.call(t):e.get(t)),J=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},$t=(t,e,r,i)=>(ws(t,e,"write to private field"),i?i.call(t,r):e.set(t,r),r);var nt=(t,e,r)=>(ws(t,e,"access private method"),r);function Cp(t){return t.replace(/[^A-Za-z0-9_-]/gi,"")}window.__INIT_MOLIN_SHOP_AI=function(e){if(!e)throw new Error("options is required");let{widgetId:r,config:i}=e;if(!r)throw new Error("widgetId is required");if(!i)throw new Error("config is required");r=Cp(r);let n=document.createElement("molin-shop-ai");n.setAttribute("widget",r),n.config=i,document.body.appendChild(n)};var Ni=window,ji=Ni.ShadowRoot&&(Ni.ShadyCSS===void 0||Ni.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,xs=Symbol(),Pa=new WeakMap,ei=class{constructor(e,r,i){if(this._$cssResult$=!0,i!==xs)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o,r=this.t;if(ji&&e===void 0){let i=r!==void 0&&r.length===1;i&&(e=Pa.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&Pa.set(r,e))}return e}toString(){return this.cssText}},Aa=t=>new ei(typeof t=="string"?t:t+"",void 0,xs),Ss=(t,...e)=>{let r=t.length===1?t[0]:e.reduce((i,n,s)=>i+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+t[s+1],t[0]);return new ei(r,t,xs)},Es=(t,e)=>{ji?t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):e.forEach(r=>{let i=document.createElement("style"),n=Ni.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,t.appendChild(i)})},Gi=ji?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let i of e.cssRules)r+=i.cssText;return Aa(r)})(t):t;var ks,Hi=window,Ca=Hi.trustedTypes,Tp=Ca?Ca.emptyScript:"",Ta=Hi.reactiveElementPolyfillSupport,As={toAttribute(t,e){switch(e){case Boolean:t=t?Tp:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},Ma=(t,e)=>e!==t&&(e==e||t==t),Ps={attribute:!0,type:String,converter:As,reflect:!1,hasChanged:Ma},Ce=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var r;this.finalize(),((r=this.h)!==null&&r!==void 0?r:this.h=[]).push(e)}static get observedAttributes(){this.finalize();let e=[];return this.elementProperties.forEach((r,i)=>{let n=this._$Ep(i,r);n!==void 0&&(this._$Ev.set(n,i),e.push(n))}),e}static createProperty(e,r=Ps){if(r.state&&(r.attribute=!1),this.finalize(),this.elementProperties.set(e,r),!r.noAccessor&&!this.prototype.hasOwnProperty(e)){let i=typeof e=="symbol"?Symbol():"__"+e,n=this.getPropertyDescriptor(e,i,r);n!==void 0&&Object.defineProperty(this.prototype,e,n)}}static getPropertyDescriptor(e,r,i){return{get(){return this[r]},set(n){let s=this[e];this[r]=n,this.requestUpdate(e,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||Ps}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;let e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){let r=this.properties,i=[...Object.getOwnPropertyNames(r),...Object.getOwnPropertySymbols(r)];for(let n of i)this.createProperty(n,r[n])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let i=new Set(e.flat(1/0).reverse());for(let n of i)r.unshift(Gi(n))}else e!==void 0&&r.push(Gi(e));return r}static _$Ep(e,r){let i=r.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}u(){var e;this._$E_=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(r=>r(this))}addController(e){var r,i;((r=this._$ES)!==null&&r!==void 0?r:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((i=e.hostConnected)===null||i===void 0||i.call(e))}removeController(e){var r;(r=this._$ES)===null||r===void 0||r.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,r)=>{this.hasOwnProperty(r)&&(this._$Ei.set(r,this[r]),delete this[r])})}createRenderRoot(){var e;let r=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return Es(r,this.constructor.elementStyles),r}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(r=>{var i;return(i=r.hostConnected)===null||i===void 0?void 0:i.call(r)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(r=>{var i;return(i=r.hostDisconnected)===null||i===void 0?void 0:i.call(r)})}attributeChangedCallback(e,r,i){this._$AK(e,i)}_$EO(e,r,i=Ps){var n;let s=this.constructor._$Ep(e,i);if(s!==void 0&&i.reflect===!0){let o=(((n=i.converter)===null||n===void 0?void 0:n.toAttribute)!==void 0?i.converter:As).toAttribute(r,i.type);this._$El=e,o==null?this.removeAttribute(s):this.setAttribute(s,o),this._$El=null}}_$AK(e,r){var i;let n=this.constructor,s=n._$Ev.get(e);if(s!==void 0&&this._$El!==s){let o=n.getPropertyOptions(s),a=typeof o.converter=="function"?{fromAttribute:o.converter}:((i=o.converter)===null||i===void 0?void 0:i.fromAttribute)!==void 0?o.converter:As;this._$El=s,this[s]=a.fromAttribute(r,o.type),this._$El=null}}requestUpdate(e,r,i){let n=!0;e!==void 0&&(((i=i||this.constructor.getPropertyOptions(e)).hasChanged||Ma)(this[e],r)?(this._$AL.has(e)||this._$AL.set(e,r),i.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,i))):n=!1),!this.isUpdatePending&&n&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(r){Promise.reject(r)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((n,s)=>this[s]=n),this._$Ei=void 0);let r=!1,i=this._$AL;try{r=this.shouldUpdate(i),r?(this.willUpdate(i),(e=this._$ES)===null||e===void 0||e.forEach(n=>{var s;return(s=n.hostUpdate)===null||s===void 0?void 0:s.call(n)}),this.update(i)):this._$Ek()}catch(n){throw r=!1,this._$Ek(),n}r&&this._$AE(i)}willUpdate(e){}_$AE(e){var r;(r=this._$ES)===null||r===void 0||r.forEach(i=>{var n;return(n=i.hostUpdated)===null||n===void 0?void 0:n.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((r,i)=>this._$EO(i,this[i],r)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};Ce.finalized=!0,Ce.elementProperties=new Map,Ce.elementStyles=[],Ce.shadowRootOptions={mode:"open"},Ta?.({ReactiveElement:Ce}),((ks=Hi.reactiveElementVersions)!==null&&ks!==void 0?ks:Hi.reactiveElementVersions=[]).push("1.6.1");var Cs,qi=window,vr=qi.trustedTypes,Fa=vr?vr.createPolicy("lit-html",{createHTML:t=>t}):void 0,Ui="$lit$",Te=`lit$${(Math.random()+"").slice(9)}$`,Ms="?"+Te,Mp=`<${Ms}>`,br=document,ii=()=>br.createComment(""),ni=t=>t===null||typeof t!="object"&&typeof t!="function",La=Array.isArray,Va=t=>La(t)||typeof t?.[Symbol.iterator]=="function",Ts=`[
2
2
  \f\r]`,ri=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ia=/-->/g,Da=/>/g,Qe=RegExp(`>|${Ts}(?:([^\\s"'>=/]+)(${Ts}*=${Ts}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Oa=/'/g,$a=/"/g,za=/^(?:script|style|textarea|title)$/i,Na=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),st=Na(1),rm=Na(2),Jt=Symbol.for("lit-noChange"),bt=Symbol.for("lit-nothing"),Ra=new WeakMap,yr=br.createTreeWalker(br,129,null,!1),ja=(t,e)=>{let r=t.length-1,i=[],n,s=e===2?"<svg>":"",o=ri;for(let l=0;l<r;l++){let h=t[l],c,p,u=-1,f=0;for(;f<h.length&&(o.lastIndex=f,p=o.exec(h),p!==null);)f=o.lastIndex,o===ri?p[1]==="!--"?o=Ia:p[1]!==void 0?o=Da:p[2]!==void 0?(za.test(p[2])&&(n=RegExp("</"+p[2],"g")),o=Qe):p[3]!==void 0&&(o=Qe):o===Qe?p[0]===">"?(o=n??ri,u=-1):p[1]===void 0?u=-2:(u=o.lastIndex-p[2].length,c=p[1],o=p[3]===void 0?Qe:p[3]==='"'?$a:Oa):o===$a||o===Oa?o=Qe:o===Ia||o===Da?o=ri:(o=Qe,n=void 0);let m=o===Qe&&t[l+1].startsWith("/>")?" ":"";s+=o===ri?h+Mp:u>=0?(i.push(c),h.slice(0,u)+Ui+h.slice(u)+Te+m):h+Te+(u===-2?(i.push(void 0),l):m)}let a=s+(t[r]||"<?>")+(e===2?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[Fa!==void 0?Fa.createHTML(a):a,i]},si=class t{constructor({strings:e,_$litType$:r},i){let n;this.parts=[];let s=0,o=0,a=e.length-1,l=this.parts,[h,c]=ja(e,r);if(this.el=t.createElement(h,i),yr.currentNode=this.el.content,r===2){let p=this.el.content,u=p.firstChild;u.remove(),p.append(...u.childNodes)}for(;(n=yr.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes()){let p=[];for(let u of n.getAttributeNames())if(u.endsWith(Ui)||u.startsWith(Te)){let f=c[o++];if(p.push(u),f!==void 0){let m=n.getAttribute(f.toLowerCase()+Ui).split(Te),g=/([.?@])?(.*)/.exec(f);l.push({type:1,index:s,name:g[2],strings:m,ctor:g[1]==="."?Yi:g[1]==="?"?Zi:g[1]==="@"?Xi:er})}else l.push({type:6,index:s})}for(let u of p)n.removeAttribute(u)}if(za.test(n.tagName)){let p=n.textContent.split(Te),u=p.length-1;if(u>0){n.textContent=vr?vr.emptyScript:"";for(let f=0;f<u;f++)n.append(p[f],ii()),yr.nextNode(),l.push({type:2,index:++s});n.append(p[u],ii())}}}else if(n.nodeType===8)if(n.data===Ms)l.push({type:2,index:s});else{let p=-1;for(;(p=n.data.indexOf(Te,p+1))!==-1;)l.push({type:7,index:s}),p+=Te.length-1}s++}}static createElement(e,r){let i=br.createElement("template");return i.innerHTML=e,i}};function tr(t,e,r=t,i){var n,s,o,a;if(e===Jt)return e;let l=i!==void 0?(n=r._$Co)===null||n===void 0?void 0:n[i]:r._$Cl,h=ni(e)?void 0:e._$litDirective$;return l?.constructor!==h&&((s=l?._$AO)===null||s===void 0||s.call(l,!1),h===void 0?l=void 0:(l=new h(t),l._$AT(t,r,i)),i!==void 0?((o=(a=r)._$Co)!==null&&o!==void 0?o:a._$Co=[])[i]=l:r._$Cl=l),l!==void 0&&(e=tr(t,l._$AS(t,e.values),l,i)),e}var Wi=class{constructor(e,r){this.u=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(e){var r;let{el:{content:i},parts:n}=this._$AD,s=((r=e?.creationScope)!==null&&r!==void 0?r:br).importNode(i,!0);yr.currentNode=s;let o=yr.nextNode(),a=0,l=0,h=n[0];for(;h!==void 0;){if(a===h.index){let c;h.type===2?c=new _r(o,o.nextSibling,this,e):h.type===1?c=new h.ctor(o,h.name,h.strings,this,e):h.type===6&&(c=new Ji(o,this,e)),this.u.push(c),h=n[++l]}a!==h?.index&&(o=yr.nextNode(),a++)}return s}p(e){let r=0;for(let i of this.u)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}},_r=class t{constructor(e,r,i,n){var s;this.type=2,this._$AH=bt,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=n,this._$Cm=(s=n?.isConnected)===null||s===void 0||s}get _$AU(){var e,r;return(r=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&r!==void 0?r:this._$Cm}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=tr(this,e,r),ni(e)?e===bt||e==null||e===""?(this._$AH!==bt&&this._$AR(),this._$AH=bt):e!==this._$AH&&e!==Jt&&this.g(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Va(e)?this.k(e):this.g(e)}S(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.S(e))}g(e){this._$AH!==bt&&ni(this._$AH)?this._$AA.nextSibling.data=e:this.T(br.createTextNode(e)),this._$AH=e}$(e){var r;let{values:i,_$litType$:n}=e,s=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=si.createElement(n.h,this.options)),n);if(((r=this._$AH)===null||r===void 0?void 0:r._$AD)===s)this._$AH.p(i);else{let o=new Wi(s,this),a=o.v(this.options);o.p(i),this.T(a),this._$AH=o}}_$AC(e){let r=Ra.get(e.strings);return r===void 0&&Ra.set(e.strings,r=new si(e)),r}k(e){La(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let s of e)n===r.length?r.push(i=new t(this.S(ii()),this.S(ii()),this,this.options)):i=r[n],i._$AI(s),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,r);e&&e!==this._$AB;){let n=e.nextSibling;e.remove(),e=n}}setConnected(e){var r;this._$AM===void 0&&(this._$Cm=e,(r=this._$AP)===null||r===void 0||r.call(this,e))}},er=class{constructor(e,r,i,n,s){this.type=1,this._$AH=bt,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=s,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=bt}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,r=this,i,n){let s=this.strings,o=!1;if(s===void 0)e=tr(this,e,r,0),o=!ni(e)||e!==this._$AH&&e!==Jt,o&&(this._$AH=e);else{let a=e,l,h;for(e=s[0],l=0;l<s.length-1;l++)h=tr(this,a[i+l],r,l),h===Jt&&(h=this._$AH[l]),o||(o=!ni(h)||h!==this._$AH[l]),h===bt?e=bt:e!==bt&&(e+=(h??"")+s[l+1]),this._$AH[l]=h}o&&!n&&this.j(e)}j(e){e===bt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Yi=class extends er{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===bt?void 0:e}},Fp=vr?vr.emptyScript:"",Zi=class extends er{constructor(){super(...arguments),this.type=4}j(e){e&&e!==bt?this.element.setAttribute(this.name,Fp):this.element.removeAttribute(this.name)}},Xi=class extends er{constructor(e,r,i,n,s){super(e,r,i,n,s),this.type=5}_$AI(e,r=this){var i;if((e=(i=tr(this,e,r,0))!==null&&i!==void 0?i:bt)===Jt)return;let n=this._$AH,s=e===bt&&n!==bt||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,o=e!==bt&&(n===bt||s);s&&this.element.removeEventListener(this.name,this,n),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var r,i;typeof this._$AH=="function"?this._$AH.call((i=(r=this.options)===null||r===void 0?void 0:r.host)!==null&&i!==void 0?i:this.element,e):this._$AH.handleEvent(e)}},Ji=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){tr(this,e)}},Ga={P:Ui,A:Te,M:Ms,C:1,L:ja,D:Wi,R:Va,V:tr,I:_r,H:er,N:Zi,U:Xi,F:Yi,B:Ji},Ba=qi.litHtmlPolyfillSupport;Ba?.(si,_r),((Cs=qi.litHtmlVersions)!==null&&Cs!==void 0?Cs:qi.litHtmlVersions=[]).push("2.7.0");var Ha=(t,e,r)=>{var i,n;let s=(i=r?.renderBefore)!==null&&i!==void 0?i:e,o=s._$litPart$;if(o===void 0){let a=(n=r?.renderBefore)!==null&&n!==void 0?n:null;s._$litPart$=o=new _r(e.insertBefore(ii(),a),a,void 0,r??{})}return o._$AI(t),o};var Fs,Is;var yt=class extends Ce{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,r;let i=super.createRenderRoot();return(e=(r=this.renderOptions).renderBefore)!==null&&e!==void 0||(r.renderBefore=i.firstChild),i}update(e){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Ha(r,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1)}render(){return Jt}};yt.finalized=!0,yt._$litElement$=!0,(Fs=globalThis.litElementHydrateSupport)===null||Fs===void 0||Fs.call(globalThis,{LitElement:yt});var qa=globalThis.litElementPolyfillSupport;qa?.({LitElement:yt});((Is=globalThis.litElementVersions)!==null&&Is!==void 0?Is:globalThis.litElementVersions=[]).push("3.3.0");var wr={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},xr=t=>(...e)=>({_$litDirective$:t,values:e}),Ne=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,i){this._$Ct=e,this._$AM=r,this._$Ci=i}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}};var{I:Ip}=Ga;var Ua=()=>document.createComment(""),Sr=(t,e,r)=>{var i;let n=t._$AA.parentNode,s=e===void 0?t._$AB:e._$AA;if(r===void 0){let o=n.insertBefore(Ua(),s),a=n.insertBefore(Ua(),s);r=new Ip(o,a,t,t.options)}else{let o=r._$AB.nextSibling,a=r._$AM,l=a!==t;if(l){let h;(i=r._$AQ)===null||i===void 0||i.call(r,t),r._$AM=t,r._$AP!==void 0&&(h=t._$AU)!==a._$AU&&r._$AP(h)}if(o!==s||l){let h=r._$AA;for(;h!==o;){let c=h.nextSibling;n.insertBefore(h,s),h=c}}}return r},je=(t,e,r=t)=>(t._$AI(e,r),t),Dp={},Wa=(t,e=Dp)=>t._$AH=e,Ya=t=>t._$AH,Ki=t=>{var e;(e=t._$AP)===null||e===void 0||e.call(t,!1,!0);let r=t._$AA,i=t._$AB.nextSibling;for(;r!==i;){let n=r.nextSibling;r.remove(),r=n}};var Za=(t,e,r)=>{let i=new Map;for(let n=e;n<=r;n++)i.set(t[n],n);return i},oi=xr(class extends Ne{constructor(t){if(super(t),t.type!==wr.CHILD)throw Error("repeat() can only be used in text expressions")}ht(t,e,r){let i;r===void 0?r=e:e!==void 0&&(i=e);let n=[],s=[],o=0;for(let a of t)n[o]=i?i(a,o):o,s[o]=r(a,o),o++;return{values:s,keys:n}}render(t,e,r){return this.ht(t,e,r).values}update(t,[e,r,i]){var n;let s=Ya(t),{values:o,keys:a}=this.ht(e,r,i);if(!Array.isArray(s))return this.ut=a,o;let l=(n=this.ut)!==null&&n!==void 0?n:this.ut=[],h=[],c,p,u=0,f=s.length-1,m=0,g=o.length-1;for(;u<=f&&m<=g;)if(s[u]===null)u++;else if(s[f]===null)f--;else if(l[u]===a[m])h[m]=je(s[u],o[m]),u++,m++;else if(l[f]===a[g])h[g]=je(s[f],o[g]),f--,g--;else if(l[u]===a[g])h[g]=je(s[u],o[g]),Sr(t,h[g+1],s[u]),u++,g--;else if(l[f]===a[m])h[m]=je(s[f],o[m]),Sr(t,s[u],s[f]),f--,m++;else if(c===void 0&&(c=Za(a,m,g),p=Za(l,u,f)),c.has(l[u]))if(c.has(l[f])){let d=p.get(a[m]),y=d!==void 0?s[d]:null;if(y===null){let v=Sr(t,s[u]);je(v,o[m]),h[m]=v}else h[m]=je(y,o[m]),Sr(t,s[u],y),s[d]=null;m++}else Ki(s[f]),f--;else Ki(s[u]),u++;for(;m<=g;){let d=Sr(t,h[g+1]);je(d,o[m]),h[m++]=d}for(;u<=f;){let d=s[u++];d!==null&&Ki(d)}return this.ut=a,Wa(t,h),Jt}});function js(t){return[...t.v,(t.i?"!":"")+t.n].join(":")}function Op(t,e=","){return t.map(js).join(e)}var rl=typeof CSS<"u"&&CSS.escape||(t=>t.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function Qi(t){for(var e=9,r=t.length;r--;)e=Math.imul(e^t.charCodeAt(r),1597334677);return"#"+((e^e>>>9)>>>0).toString(36)}function rn(t,e="@media "){return e+dt(t).map(r=>(typeof r=="string"&&(r={min:r}),r.raw||Object.keys(r).map(i=>`(${i}-width:${r[i]})`).join(" and "))).join(",")}function dt(t=[]){return Array.isArray(t)?t:t==null?[]:[t]}function Xa(t){return t}function nn(){}var St={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function il(t){return t.match(/[-=:;]/g)?.length||0}function Bs(t){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(t)?Math.max(0,29.63*(+RegExp.$1/(RegExp.$2?15:1))**.137-43):0,15)<<22|Math.min(il(t),15)<<18}var $p=["rst-c","st-ch","h-chi","y-lin","nk","sited","ecked","pty","ad-on","cus-w","ver","cus","cus-v","tive","sable","tiona","quire"];function Gs({n:t,i:e,v:r=[]},i,n,s){t&&(t=js({n:t,i:e,v:r})),s=[...dt(s)];for(let a of r){let l=i.theme("screens",a);for(let h of dt(l&&rn(l)||i.v(a))){var o;s.push(h),n|=l?67108864|Bs(h):a=="dark"?1073741824:h[0]=="@"?Bs(h):(o=h,1<<~(/:([a-z-]+)/.test(o)&&~$p.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:t,p:n,r:s,i:e}}var nl=new Map;function Ls(t){if(t.d){let e=[],r=Ds(t.r.reduce((i,n)=>n[0]=="@"?(e.push(n),i):n?Ds(i,s=>Ds(n,o=>{let a=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(o);if(a){let l=s.indexOf(a[1]);return~l?s.slice(0,l)+a[0]+s.slice(l+a[1].length):Os(s,o)}return Os(o,s)})):i,"&"),i=>Os(i,t.n?"."+rl(t.n):""));return r&&e.push(r.replace(/:merge\((.+?)\)/g,"$1")),e.reduceRight((i,n)=>n+"{"+i+"}",t.d)}}function Ds(t,e){return t.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(r,i,n)=>e(i)+n)}function Os(t,e){return t.replace(/&/g,e)}var Ja=new Intl.Collator("en",{numeric:!0});function sl(t,e){for(var r=0,i=t.length;r<i;){let n=i+r>>1;0>=ol(t[n],e)?r=n+1:i=n}return i}function ol(t,e){let r=t.p&St.o;return r==(e.p&St.o)&&(r==St.b||r==St.o)?0:t.p-e.p||t.o-e.o||Ja.compare(Ka(t.n),Ka(e.n))||Ja.compare(Qa(t.n),Qa(e.n))}function Ka(t){return(t||"").split(/:/).pop().split("/").pop()||"\0"}function Qa(t){return(t||"").replace(/\W/g,e=>String.fromCharCode(127+e.charCodeAt(0)))+"\0"}function $s(t,e){return Math.round(parseInt(t,16)*e)}function oe(t,e={}){if(typeof t=="function")return t(e);let{opacityValue:r="1",opacityVariable:i}=e,n=i?`var(${i})`:r;if(t.includes("<alpha-value>"))return t.replace("<alpha-value>",n);if(t[0]=="#"&&(t.length==4||t.length==7)){let s=(t.length-1)/3,o=[17,1,.062272][s-1];return`rgba(${[$s(t.substr(1,s),o),$s(t.substr(1+s,s),o),$s(t.substr(1+2*s,s),o),n]})`}return n=="1"?t:n=="0"?"#0000":t.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${n})`)}function al(t,e,r,i,n=[]){return function s(o,{n:a,p:l,r:h=[],i:c},p){let u=[],f="",m=0,g=0;for(let v in o||{}){var d,y;let b=o[v];if(v[0]=="@"){if(!b)continue;if(v[1]=="a"){u.push(...qs(a,l,en(""+b),p,l,h,c,!0));continue}if(v[1]=="l"){for(let _ of dt(b))u.push(...s(_,{n:a,p:(d=St[v[7]],l&~St.o|d),r:v[7]=="d"?[]:h,i:c},p));continue}if(v[1]=="i"){u.push(...dt(b).map(_=>({p:-1,o:0,r:[],d:v+" "+_})));continue}if(v[1]=="k"){u.push({p:St.d,o:0,r:[v],d:s(b,{p:St.d},p).map(Ls).join("")});continue}if(v[1]=="f"){u.push(...dt(b).map(_=>({p:St.d,o:0,r:[v],d:s(_,{p:St.d},p).map(Ls).join("")})));continue}}if(typeof b!="object"||Array.isArray(b))v=="label"&&b?a=b+Qi(JSON.stringify([l,c,o])):(b||b===0)&&(v=v.replace(/[A-Z]/g,_=>"-"+_.toLowerCase()),g+=1,m=Math.max(m,(y=v)[0]=="-"?0:il(y)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test(y)?+!!RegExp.$1||-!!RegExp.$2:0)+1),f+=(f?";":"")+dt(b).map(_=>p.s(v,Hs(""+_,p.theme)+(c?" !important":""))).join(";"));else if(v[0]=="@"||v.includes("&")){let _=l;v[0]=="@"&&(v=v.replace(/\bscreen\(([^)]+)\)/g,(x,T)=>{let S=p.theme("screens",T);return S?(_|=67108864,rn(S,"")):x}),_|=Bs(v)),u.push(...s(b,{n:a,p:_,r:[...h,v],i:c},p))}else u.push(...s(b,{p:l,r:[...h,v]},p))}return u.unshift({n:a,p:l,o:Math.max(0,15-g)+1.5*Math.min(m||15,15),r:h,d:f}),u.sort(ol)}(t,Gs(e,r,i,n),r)}function Hs(t,e){return t.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(r,i,n,s,o="")=>{let a=e(n,o);return typeof a=="function"&&/color|fill|stroke/i.test(n)?oe(a):""+dt(a).filter(l=>Object(l)!==l)})}function ll(t,e){let r,i=[];for(let n of t)n.d&&n.n?r?.p==n.p&&""+r.r==""+n.r?(r.c=[r.c,n.c].filter(Boolean).join(" "),r.d=r.d+";"+n.d):i.push(r={...n,n:n.n&&e}):i.push({...n,n:n.n&&e});return i}function tn(t,e,r=St.u,i,n){let s=[];for(let o of t)for(let a of function(l,h,c,p,u){l={...l,i:l.i||u};let f=function(m,g){let d=nl.get(m.n);return d?d(m,g):g.r(m.n,m.v[0]=="dark")}(l,h);return f?typeof f=="string"?({r:p,p:c}=Gs(l,h,c,p),ll(tn(en(f),h,c,p,l.i),l.n)):Array.isArray(f)?f.map(m=>{var g,d;return{o:0,...m,r:[...dt(p),...dt(m.r)],p:(g=c,d=m.p??c,g&~St.o|d)}}):al(f,l,h,c,p):[{c:js(l),p:0,o:0,r:[]}]}(o,e,r,i,n))s.splice(sl(s,a),0,a);return s}function qs(t,e,r,i,n,s,o,a){return ll((a?r.flatMap(l=>tn([l],i,n,s,o)):tn(r,i,n,s,o)).map(l=>l.p&St.o&&(l.n||e==St.b)?{...l,p:l.p&~St.o|e,o:0}:l),t)}function Rp(t,e,r,i){var n;return n=(s,o)=>{let{n:a,p:l,r:h,i:c}=Gs(s,o,e);return r&&qs(a,e,r,o,l,h,c,i)},nl.set(t,n),t}function Rs(t,e,r){if(t[t.length-1]!="("){let i=[],n=!1,s=!1,o="";for(let a of t)if(!(a=="("||/[~@]$/.test(a))){if(a[0]=="!"&&(a=a.slice(1),n=!n),a.endsWith(":")){i[a=="dark:"?"unshift":"push"](a.slice(0,-1));continue}a[0]=="-"&&(a=a.slice(1),s=!s),a.endsWith("-")&&(a=a.slice(0,-1)),a&&a!="&"&&(o+=(o&&"-")+a)}o&&(s&&(o="-"+o),e[0].push({n:o,v:i.filter(Bp),i:n}))}}function Bp(t,e,r){return r.indexOf(t)==e}var tl=new Map;function en(t){let e=tl.get(t);if(!e){let r=[],i=[[]],n=0,s=0,o=null,a=0,l=(h,c=0)=>{n!=a&&(r.push(t.slice(n,a+c)),h&&Rs(r,i)),n=a+1};for(;a<t.length;a++){let h=t[a];if(s)t[a-1]!="\\"&&(s+=+(h=="[")||-(h=="]"));else if(h=="[")s+=1;else if(o)t[a-1]!="\\"&&o.test(t.slice(a))&&(o=null,n=a+RegExp.lastMatch.length);else if(h=="/"&&t[a-1]!="\\"&&(t[a+1]=="*"||t[a+1]=="/"))o=t[a+1]=="*"?/^\*\//:/^[\r\n]/;else if(h=="(")l(),r.push(h);else if(h==":")t[a+1]!=":"&&l(!1,1);else if(/[\s,)]/.test(h)){l(!0);let c=r.lastIndexOf("(");if(h==")"){let p=r[c-1];if(/[~@]$/.test(p)){let u=i.shift();r.length=c,Rs([...r,"#"],i);let{v:f}=i[0].pop();for(let m of u)m.v.splice(+(m.v[0]=="dark")-+(f[0]=="dark"),f.length);Rs([...r,Rp(p.length>1?p.slice(0,-1)+Qi(JSON.stringify([p,u])):p+"("+Op(u)+")",St.a,u,/@$/.test(p))],i)}c=r.lastIndexOf("(",c-1)}r.length=c+1}else/[~@]/.test(h)&&t[a+1]=="("&&i.unshift([])}l(!0),tl.set(t,e=i[0])}return e}function B(t,e,r){return[t,Vs(e,r)]}function Vs(t,e){return typeof t=="function"?t:typeof t=="string"&&/^[\w-]+$/.test(t)?(r,i)=>({[t]:e?e(r,i):zs(r,1)}):r=>t||{[r[1]]:zs(r,2)}}function zs(t,e,r=t.slice(e).find(Boolean)||t.$$||t.input){return t.input[0]=="-"?`calc(${r} * -1)`:r}function L(t,e,r,i){return[t,Us(e,r,i)]}function Us(t,e,r){let i=typeof e=="string"?(n,s)=>({[e]:r?r(n,s):n._}):e||(({1:n,_:s},o,a)=>({[n||a]:s}));return(n,s)=>{let o=hl(t||n[1]),a=s.theme(o,n.$$)??be(n.$$,o,s);if(a!=null)return n._=zs(n,0,a),i(n,s,o)}}function Et(t,e={},r){return[t,Lp(e,r)]}function Lp(t={},e){return(r,i)=>{let{section:n=hl(r[0]).replace("-","")+"Color"}=t,[s,o]=Vp(r.$$);if(!s)return;let a=i.theme(n,s)||be(s,n,i);if(!a||typeof a=="object")return;let{opacityVariable:l=`--tw-${r[0].replace(/-$/,"")}-opacity`,opacitySection:h=n.replace("Color","Opacity"),property:c=n,selector:p}=t,u=i.theme(h,o||"DEFAULT")||o&&be(o,h,i),f=e||(({_:g})=>{let d=ai(c,g);return p?{[p]:d}:d});r._={value:oe(a,{opacityVariable:l||void 0,opacityValue:u||void 0}),color:g=>oe(a,g),opacityVariable:l||void 0,opacityValue:u||void 0};let m=f(r,i);if(!r.dark){let g=i.d(n,s,a);g&&g!==a&&(r._={value:oe(g,{opacityVariable:l||void 0,opacityValue:u||"1"}),color:d=>oe(g,d),opacityVariable:l||void 0,opacityValue:u||void 0},m={"&":m,[i.v("dark")]:f(r,i)})}return m}}function Vp(t){return(t.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function ai(t,e){let r={};return typeof e=="string"?r[t]=e:(e.opacityVariable&&e.value.includes(e.opacityVariable)&&(r[e.opacityVariable]=e.opacityValue||"1"),r[t]=e.value),r}function be(t,e,r){if(t[0]=="["&&t.slice(-1)=="]"){if(t=Er(Hs(t.slice(1,-1),r.theme)),!e)return t;if(!(/color|fill|stroke/i.test(e)&&!(/^color:/.test(t)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(t))||/image/i.test(e)&&!(/^image:/.test(t)||/^[a-z-]+\(/.test(t))||/weight/i.test(e)&&!(/^(number|any):/.test(t)||/^\d+$/.test(t))||/position/i.test(e)&&/^(length|size):/.test(t)))return t.replace(/^[a-z-]+:/,"")}}function hl(t){return t.replace(/-./g,e=>e[1].toUpperCase())}function Er(t){return t.includes("url(")?t.replace(/(.*?)(url\(.*?\))(.*?)/g,(e,r="",i,n="")=>Er(r)+i+Er(n)):t.replace(/(^|[^\\])_+/g,(e,r)=>r+" ".repeat(e.length-r.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,e=>e.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}function Ws({presets:t=[],...e}){let r={darkMode:void 0,darkColor:void 0,preflight:e.preflight!==!1&&[],theme:{},variants:dt(e.variants),rules:dt(e.rules),ignorelist:dt(e.ignorelist),hash:void 0,stringify:(i,n)=>i+":"+n,finalize:[]};for(let i of dt([...t,{darkMode:e.darkMode,darkColor:e.darkColor,preflight:e.preflight!==!1&&dt(e.preflight),theme:e.theme,hash:e.hash,stringify:e.stringify,finalize:e.finalize}])){let{preflight:n,darkMode:s=r.darkMode,darkColor:o=r.darkColor,theme:a,variants:l,rules:h,ignorelist:c,hash:p=r.hash,stringify:u=r.stringify,finalize:f}=typeof i=="function"?i(r):i;r={preflight:r.preflight!==!1&&n!==!1&&[...r.preflight,...dt(n)],darkMode:s,darkColor:o,theme:{...r.theme,...a,extend:{...r.theme.extend,...a?.extend}},variants:[...r.variants,...dt(l)],rules:[...r.rules,...dt(h)],ignorelist:[...r.ignorelist,...dt(c)],hash:p,stringify:u,finalize:[...r.finalize,...dt(f)]}}return r}function el(t,e,r,i,n,s){for(let o of e){let a=r.get(o);a||r.set(o,a=i(o));let l=a(t,n,s);if(l)return l}}function zp(t){var e;return Ns(t[0],typeof(e=t[1])=="function"?e:()=>e)}function Np(t){var e,r;return Array.isArray(t)?Ns(t[0],Vs(t[1],t[2])):Ns(t,Vs(e,r))}function Ns(t,e){return cl(t,(r,i,n,s)=>{let o=i.exec(r);if(o)return o.$$=r.slice(o[0].length),o.dark=s,e(o,n)})}function cl(t,e){let r=dt(t).map(jp);return(i,n,s)=>{for(let o of r){let a=e(i,o,n,s);if(a)return a}}}function jp(t){return typeof t=="string"?RegExp("^"+t+(t.includes("$")||t.slice(-1)=="-"?"":"$")):t}function pl(t,e){let r=Ws(t),i=function({theme:l,darkMode:h,darkColor:c=nn,variants:p,rules:u,hash:f,stringify:m,ignorelist:g,finalize:d}){let y=new Map,v=new Map,b=new Map,_=new Map,x=cl(g,(w,I)=>I.test(w));p.push(["dark",Array.isArray(h)||h=="class"?`${dt(h)[1]||".dark"} &`:typeof h=="string"&&h!="media"?h:"@media (prefers-color-scheme:dark)"]);let T=typeof f=="function"?w=>f(w,Qi):f?Qi:Xa;T!==Xa&&d.push(w=>({...w,n:w.n&&T(w.n),d:w.d?.replace(/--(tw(?:-[\w-]+)?)\b/g,(I,E)=>"--"+T(E).replace("#",""))}));let S={theme:function({extend:w={},...I}){let E={},M={get colors(){return k("colors")},theme:k,negative(){return{}},breakpoints(P){let D={};for(let O in P)typeof P[O]=="string"&&(D["screen-"+O]=P[O]);return D}};return k;function k(P,D,O,F){if(P){if({1:P,2:F}=/^(\S+?)(?:\s*\/\s*([^/]+))?$/.exec(P)||[,P],/[.[]/.test(P)){let z=[];P.replace(/\[([^\]]+)\]|([^.[]+)/g,(N,G,V=G)=>z.push(V)),P=z.shift(),O=D,D=z.join("-")}let $=E[P]||Object.assign(Object.assign(E[P]={},C(I,P)),C(w,P));if(D==null)return $;D||(D="DEFAULT");let R=$[D]??D.split("-").reduce((z,N)=>z?.[N],$)??O;return F?oe(R,{opacityValue:Hs(F,k)}):R}let A={};for(let $ of[...Object.keys(I),...Object.keys(w)])A[$]=k($);return A}function C(P,D){let O=P[D];return typeof O=="function"&&(O=O(M)),O&&/color|fill|stroke/i.test(D)?function F(A,$=[]){let R={};for(let z in A){let N=A[z],G=[...$,z];R[G.join("-")]=N,z=="DEFAULT"&&(G=$,R[$.join("-")]=N),typeof N=="object"&&Object.assign(R,F(N,G))}return R}(O):O}}(l),e:rl,h:T,s(w,I){return m(w,I,S)},d(w,I,E){return c(w,I,S,E)},v(w){return y.has(w)||y.set(w,el(w,p,v,zp,S)||"&:"+w),y.get(w)},r(w,I){let E=JSON.stringify([w,I]);return b.has(E)||b.set(E,!x(w,S)&&el(w,u,_,Np,S,I)),b.get(E)},f(w){return d.reduce((I,E)=>E(I,S),w)}};return S}(r),n=new Map,s=[],o=new Set;e.resume(l=>n.set(l,l),(l,h)=>{e.insert(l,s.length,h),s.push(h),o.add(l)});function a(l){let h=i.f(l),c=Ls(h);if(c&&!o.has(c)){o.add(c);let p=sl(s,l);e.insert(c,p,l),s.splice(p,0,l)}return h.n}return Object.defineProperties(function(h){if(!n.size)for(let p of dt(r.preflight))typeof p=="function"&&(p=p(i)),p&&(typeof p=="string"?qs("",St.b,en(p),i,St.b,[],!1,!0):al(p,{},i,St.b)).forEach(a);h=""+h;let c=n.get(h);if(!c){let p=new Set;for(let u of tn(en(h),i))p.add(u.c).add(a(u));c=[...p].filter(Boolean).join(" "),n.set(h,c).set(c,c)}return c},Object.getOwnPropertyDescriptors({get target(){return e.target},theme:i.theme,config:r,snapshot(){let l=e.snapshot(),h=new Set(o),c=new Map(n),p=[...s];return()=>{l(),o=h,n=c,s=p}},clear(){e.clear(),o=new Set,n=new Map,s=[]},destroy(){this.clear(),e.destroy()}}))}function Gp(t,e){return t!=e&&""+t.split(" ").sort()!=""+e.split(" ").sort()}function ul(t){let e=new MutationObserver(r);return{observe(n){e.observe(n,{attributeFilter:["class"],subtree:!0,childList:!0}),i(n),r([{target:n,type:""}])},disconnect(){e.disconnect()}};function r(n){for(let{type:s,target:o}of n)if(s[0]=="a")i(o);else for(let a of o.querySelectorAll("[class]"))i(a);e.takeRecords()}function i(n){let s,o=n.getAttribute?.("class");o&&Gp(o,s=t(o))&&n.setAttribute("class",s)}}function Hp(t){let e=document.querySelector(t||'style[data-twind=""]');return(!e||e.tagName!="STYLE")&&(e=document.createElement("style"),document.head.prepend(e)),e.dataset.twind="claimed",e}function sn(t){let e=t?.cssRules?t:(t&&typeof t!="string"?t:Hp(t)).sheet;return{target:e,snapshot(){let r=Array.from(e.cssRules,i=>i.cssText);return()=>{this.clear(),r.forEach(this.insert)}},clear(){for(let r=e.cssRules.length;r--;)e.deleteRule(r)},destroy(){e.ownerNode?.remove()},insert(r,i){try{e.insertRule(r,i)}catch{e.insertRule(":root{}",i)}},resume:nn}}var hi={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},columns:{auto:"auto","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",...Kt(4,"rem",4,.5,.5),...Kt(12,"rem",4,5),14:"3.5rem",...Kt(64,"rem",4,16,4),72:"18rem",80:"20rem",96:"24rem"},durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0,0,0.2,1) infinite",pulse:"pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1/1",video:"16/9"},backdropBlur:it("blur"),backdropBrightness:it("brightness"),backdropContrast:it("contrast"),backdropGrayscale:it("grayscale"),backdropHueRotate:it("hueRotate"),backdropInvert:it("invert"),backdropOpacity:it("opacity"),backdropSaturate:it("saturate"),backdropSepia:it("sepia"),backgroundColor:it("colors"),backgroundImage:{none:"none"},backgroundOpacity:it("opacity"),backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{none:"none",0:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{...Kt(200,"",100,0,50),...Kt(110,"",100,90,5),75:"0.75",125:"1.25"},borderColor:({theme:t})=>({DEFAULT:t("colors.gray.200","currentColor"),...t("colors")}),borderOpacity:it("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","1/2":"50%",full:"9999px"},borderSpacing:it("spacing"),borderWidth:{DEFAULT:"1px",...ae(8,"px")},boxShadow:{sm:"0 1px 2px 0 rgba(0,0,0,0.05)",DEFAULT:"0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1)",md:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)",lg:"0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)",xl:"0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)","2xl":"0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)",none:"0 0 #0000"},boxShadowColor:it("colors"),caretColor:it("colors"),accentColor:({theme:t})=>({auto:"auto",...t("colors")}),contrast:{...Kt(200,"",100,0,50),75:"0.75",125:"1.25"},content:{none:"none"},divideColor:it("borderColor"),divideOpacity:it("borderOpacity"),divideWidth:it("borderWidth"),dropShadow:{sm:"0 1px 1px rgba(0,0,0,0.05)",DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"},fill:({theme:t})=>({...t("colors"),none:"none"}),grayscale:{DEFAULT:"100%",0:"0"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{DEFAULT:"100%",0:"0"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:t})=>({...t("spacing"),...li(2,6),...li(12,12),auto:"auto",full:"100%"}),flexGrow:{DEFAULT:1,0:0},flexShrink:{DEFAULT:1,0:0},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:it("spacing"),gradientColorStops:it("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridColumn:{auto:"auto","span-full":"1 / -1"},gridRow:{auto:"auto","span-full":"1 / -1"},gridTemplateColumns:{none:"none"},gridTemplateRows:{none:"none"},height:({theme:t})=>({...t("spacing"),...li(2,6),min:"min-content",max:"max-content",fit:"fit-content",auto:"auto",full:"100%",screen:"100vh"}),inset:({theme:t})=>({...t("spacing"),...li(2,4),auto:"auto",full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{...Kt(10,"rem",4,3),none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},margin:({theme:t})=>({auto:"auto",...t("spacing")}),maxHeight:({theme:t})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh",...t("spacing")}),maxWidth:({theme:t,breakpoints:e})=>({...e(t("screens")),none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch"}),minHeight:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},opacity:{...Kt(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0"},padding:it("spacing"),placeholderColor:it("colors"),placeholderOpacity:it("opacity"),outlineColor:it("colors"),outlineOffset:ae(8,"px"),outlineWidth:ae(8,"px"),ringColor:({theme:t})=>({...t("colors"),DEFAULT:"#3b82f6"}),ringOffsetColor:it("colors"),ringOffsetWidth:ae(8,"px"),ringOpacity:({theme:t})=>({...t("opacity"),DEFAULT:"0.5"}),ringWidth:{DEFAULT:"3px",...ae(8,"px")},rotate:{...ae(2,"deg"),...ae(12,"deg",3),...ae(180,"deg",45)},saturate:Kt(200,"",100,0,50),scale:{...Kt(150,"",100,0,50),...Kt(110,"",100,90,5),75:"0.75",125:"1.25"},scrollMargin:it("spacing"),scrollPadding:it("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{...ae(2,"deg"),...ae(12,"deg",3)},space:it("spacing"),stroke:({theme:t})=>({...t("colors"),none:"none"}),strokeWidth:Kt(2),textColor:it("colors"),textDecorationColor:it("colors"),textDecorationThickness:{"from-font":"from-font",auto:"auto",...ae(8,"px")},textUnderlineOffset:{auto:"auto",...ae(8,"px")},textIndent:it("spacing"),textOpacity:it("opacity"),transitionDuration:({theme:t})=>({...t("durations"),DEFAULT:"150ms"}),transitionDelay:it("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",colors:"color,background-color,border-color,text-decoration-color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",linear:"linear",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},translate:({theme:t})=>({...t("spacing"),...li(2,4),full:"100%"}),width:({theme:t})=>({min:"min-content",max:"max-content",fit:"fit-content",screen:"100vw",...t("flexBasis")}),willChange:{scroll:"scroll-position"},zIndex:{...Kt(50,"",1,0,10),auto:"auto"}};function li(t,e){let r={};do for(var i=1;i<t;i++)r[`${i}/${t}`]=Number((i/t*100).toFixed(6))+"%";while(++t<=e);return r}function ae(t,e,r=0){let i={};for(;r<=t;r=2*r||1)i[r]=r+e;return i}function Kt(t,e="",r=1,i=0,n=1,s={}){for(;i<=t;i+=n)s[i]=i/r+e;return s}function it(t){return({theme:e})=>e(t)}var fl={"*,::before,::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"theme(borderColor.DEFAULT, currentColor)"},"::before,::after":{"--tw-content":"''"},html:{lineHeight:1.5,WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:4,fontFamily:`theme(fontFamily.sans, ${hi.fontFamily.sans})`,fontFeatureSettings:"theme(fontFamily.sans[1].fontFeatureSettings, normal)"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b,strong":{fontWeight:"bolder"},"code,kbd,samp,pre":{fontFamily:`theme(fontFamily.mono, ${hi.fontFamily.mono})`,fontFeatureSettings:"theme(fontFamily.mono[1].fontFeatureSettings, normal)",fontSize:"1em"},small:{fontSize:"80%"},"sub,sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",lineHeight:"inherit",color:"inherit",margin:"0",padding:"0"},"button,select":{textTransform:"none"},"button,[type='button'],[type='reset'],[type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre":{margin:"0"},fieldset:{margin:"0",padding:"0"},legend:{padding:"0"},"ol,ul,menu":{listStyle:"none",margin:"0",padding:"0"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{opacity:1,color:"theme(colors.gray.400, #9ca3af)"},'button,[role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"},"[hidden]":{display:"none"}};var bl=[B("\\[([-\\w]+):(.+)]",({1:t,2:e},r)=>({"@layer overrides":{"&":{[t]:be(`[${e}]`,"",r)}}})),B("(group|peer)([~/][^-[]+)?",({input:t},{h:e})=>[{c:e(t)}]),L("aspect-","aspectRatio"),B("container",(t,{theme:e})=>{let{screens:r=e("screens"),center:i,padding:n}=e("container"),s={width:"100%",marginRight:i&&"auto",marginLeft:i&&"auto",...o("xs")};for(let a in r){let l=r[a];typeof l=="string"&&(s[rn(l)]={"&":{maxWidth:l,...o(a)}})}return s;function o(a){let l=n&&(typeof n=="string"?n:n[a]||n.DEFAULT);if(l)return{paddingRight:l,paddingLeft:l}}}),L("content-","content",({_:t})=>({"--tw-content":t,content:"var(--tw-content)"})),B("(?:box-)?decoration-(slice|clone)","boxDecorationBreak"),B("box-(border|content)","boxSizing",({1:t})=>t+"-box"),B("hidden",{display:"none"}),B("table-(auto|fixed)","tableLayout"),B(["(block|flex|table|grid|inline|contents|flow-root|list-item)","(inline-(block|flex|table|grid))","(table-(caption|cell|column|row|(column|row|footer|header)-group))"],"display"),"(float)-(left|right|none)","(clear)-(left|right|none|both)","(overflow(?:-[xy])?)-(auto|hidden|clip|visible|scroll)","(isolation)-(auto)",B("isolate","isolation"),B("object-(contain|cover|fill|none|scale-down)","objectFit"),L("object-","objectPosition"),B("object-(top|bottom|center|(left|right)(-(top|bottom))?)","objectPosition",on),B("overscroll(-[xy])?-(auto|contain|none)",({1:t="",2:e})=>({["overscroll-behavior"+t]:e})),B("(static|fixed|absolute|relative|sticky)","position"),L("-?inset(-[xy])?(?:$|-)","inset",({1:t,_:e})=>({top:t!="-x"&&e,right:t!="-y"&&e,bottom:t!="-x"&&e,left:t!="-y"&&e})),L("-?(top|bottom|left|right)(?:$|-)","inset"),B("(visible|collapse)","visibility"),B("invisible",{visibility:"hidden"}),L("-?z-","zIndex"),B("flex-((row|col)(-reverse)?)","flexDirection",dl),B("flex-(wrap|wrap-reverse|nowrap)","flexWrap"),L("(flex-(?:grow|shrink))(?:$|-)"),L("(flex)-"),L("grow(?:$|-)","flexGrow"),L("shrink(?:$|-)","flexShrink"),L("basis-","flexBasis"),L("-?(order)-"),"-?(order)-(\\d+)",L("grid-cols-","gridTemplateColumns"),B("grid-cols-(\\d+)","gridTemplateColumns",vl),L("col-","gridColumn"),B("col-(span)-(\\d+)","gridColumn",yl),L("col-start-","gridColumnStart"),B("col-start-(auto|\\d+)","gridColumnStart"),L("col-end-","gridColumnEnd"),B("col-end-(auto|\\d+)","gridColumnEnd"),L("grid-rows-","gridTemplateRows"),B("grid-rows-(\\d+)","gridTemplateRows",vl),L("row-","gridRow"),B("row-(span)-(\\d+)","gridRow",yl),L("row-start-","gridRowStart"),B("row-start-(auto|\\d+)","gridRowStart"),L("row-end-","gridRowEnd"),B("row-end-(auto|\\d+)","gridRowEnd"),B("grid-flow-((row|col)(-dense)?)","gridAutoFlow",t=>on(dl(t))),B("grid-flow-(dense)","gridAutoFlow"),L("auto-cols-","gridAutoColumns"),L("auto-rows-","gridAutoRows"),L("gap-x(?:$|-)","gap","columnGap"),L("gap-y(?:$|-)","gap","rowGap"),L("gap(?:$|-)","gap"),"(justify-(?:items|self))-",B("justify-","justifyContent",ml),B("(content|items|self)-",t=>({["align-"+t[1]]:ml(t)})),B("(place-(content|items|self))-",({1:t,$$:e})=>({[t]:("wun".includes(e[3])?"space-":"")+e})),L("p([xytrbl])?(?:$|-)","padding",kr("padding")),L("-?m([xytrbl])?(?:$|-)","margin",kr("margin")),L("-?space-(x|y)(?:$|-)","space",({1:t,_:e})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${t}-reverse`]:"0",["margin-"+{y:"top",x:"left"}[t]]:`calc(${e} * calc(1 - var(--tw-space-${t}-reverse)))`,["margin-"+{y:"bottom",x:"right"}[t]]:`calc(${e} * var(--tw-space-${t}-reverse))`}})),B("space-(x|y)-reverse",({1:t})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${t}-reverse`]:"1"}})),L("w-","width"),L("min-w-","minWidth"),L("max-w-","maxWidth"),L("h-","height"),L("min-h-","minHeight"),L("max-h-","maxHeight"),L("font-","fontWeight"),L("font-","fontFamily",({_:t})=>typeof(t=dt(t))[1]=="string"?{fontFamily:de(t)}:{fontFamily:de(t[0]),...t[1]}),B("antialiased",{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}),B("subpixel-antialiased",{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"}),B("italic","fontStyle"),B("not-italic",{fontStyle:"normal"}),B("(ordinal|slashed-zero|(normal|lining|oldstyle|proportional|tabular)-nums|(diagonal|stacked)-fractions)",({1:t,2:e="",3:r})=>e=="normal"?{fontVariantNumeric:"normal"}:{["--tw-"+(r?"numeric-fraction":"pt".includes(e[0])?"numeric-spacing":e?"numeric-figure":t)]:t,fontVariantNumeric:"var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)",...Ge({"--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)"})}),L("tracking-","letterSpacing"),L("leading-","lineHeight"),B("list-(inside|outside)","listStylePosition"),L("list-","listStyleType"),B("list-","listStyleType"),L("placeholder-opacity-","placeholderOpacity",({_:t})=>({"&::placeholder":{"--tw-placeholder-opacity":t}})),Et("placeholder-",{property:"color",selector:"&::placeholder"}),B("text-(left|center|right|justify|start|end)","textAlign"),B("text-(ellipsis|clip)","textOverflow"),L("text-opacity-","textOpacity","--tw-text-opacity"),Et("text-",{property:"color"}),L("text-","fontSize",({_:t})=>typeof t=="string"?{fontSize:t}:{fontSize:t[0],...typeof t[1]=="string"?{lineHeight:t[1]}:t[1]}),L("indent-","textIndent"),B("(overline|underline|line-through)","textDecorationLine"),B("no-underline",{textDecorationLine:"none"}),L("underline-offset-","textUnderlineOffset"),Et("decoration-",{section:"textDecorationColor",opacityVariable:!1,opacitySection:"opacity"}),L("decoration-","textDecorationThickness"),B("decoration-","textDecorationStyle"),B("(uppercase|lowercase|capitalize)","textTransform"),B("normal-case",{textTransform:"none"}),B("truncate",{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),B("align-","verticalAlign"),B("whitespace-","whiteSpace"),B("break-normal",{wordBreak:"normal",overflowWrap:"normal"}),B("break-words",{overflowWrap:"break-word"}),B("break-all",{wordBreak:"break-all"}),B("break-keep",{wordBreak:"keep-all"}),Et("caret-",{opacityVariable:!1,opacitySection:"opacity"}),Et("accent-",{opacityVariable:!1,opacitySection:"opacity"}),B("bg-gradient-to-([trbl]|[tb][rl])","backgroundImage",({1:t})=>`linear-gradient(to ${rr(t," ")},var(--tw-gradient-stops))`),Et("from-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:t})=>({"--tw-gradient-from":t.value,"--tw-gradient-to":t.color({opacityValue:"0"}),"--tw-gradient-stops":"var(--tw-gradient-from),var(--tw-gradient-to)"})),Et("via-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:t})=>({"--tw-gradient-to":t.color({opacityValue:"0"}),"--tw-gradient-stops":`var(--tw-gradient-from),${t.value},var(--tw-gradient-to)`})),Et("to-",{section:"gradientColorStops",property:"--tw-gradient-to",opacityVariable:!1,opacitySection:"opacity"}),B("bg-(fixed|local|scroll)","backgroundAttachment"),B("bg-origin-(border|padding|content)","backgroundOrigin",({1:t})=>t+"-box"),B(["bg-(no-repeat|repeat(-[xy])?)","bg-repeat-(round|space)"],"backgroundRepeat"),B("bg-blend-","backgroundBlendMode"),B("bg-clip-(border|padding|content|text)","backgroundClip",({1:t})=>t+(t=="text"?"":"-box")),L("bg-opacity-","backgroundOpacity","--tw-bg-opacity"),Et("bg-",{section:"backgroundColor"}),L("bg-","backgroundImage"),L("bg-","backgroundPosition"),B("bg-(top|bottom|center|(left|right)(-(top|bottom))?)","backgroundPosition",on),L("bg-","backgroundSize"),L("rounded(?:$|-)","borderRadius"),L("rounded-([trbl]|[tb][rl])(?:$|-)","borderRadius",({1:t,_:e})=>{let r={t:["tl","tr"],r:["tr","br"],b:["bl","br"],l:["bl","tl"]}[t]||[t,t];return{[`border-${rr(r[0])}-radius`]:e,[`border-${rr(r[1])}-radius`]:e}}),B("border-(collapse|separate)","borderCollapse"),L("border-opacity(?:$|-)","borderOpacity","--tw-border-opacity"),B("border-(solid|dashed|dotted|double|none)","borderStyle"),L("border-spacing(-[xy])?(?:$|-)","borderSpacing",({1:t,_:e})=>({...Ge({"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0"}),["--tw-border-spacing"+(t||"-x")]:e,["--tw-border-spacing"+(t||"-y")]:e,"border-spacing":"var(--tw-border-spacing-x) var(--tw-border-spacing-y)"})),Et("border-([xytrbl])-",{section:"borderColor"},kr("border","Color")),Et("border-"),L("border-([xytrbl])(?:$|-)","borderWidth",kr("border","Width")),L("border(?:$|-)","borderWidth"),L("divide-opacity(?:$|-)","divideOpacity",({_:t})=>({"&>:not([hidden])~:not([hidden])":{"--tw-divide-opacity":t}})),B("divide-(solid|dashed|dotted|double|none)",({1:t})=>({"&>:not([hidden])~:not([hidden])":{borderStyle:t}})),B("divide-([xy]-reverse)",({1:t})=>({"&>:not([hidden])~:not([hidden])":{["--tw-divide-"+t]:"1"}})),L("divide-([xy])(?:$|-)","divideWidth",({1:t,_:e})=>{let r={x:"lr",y:"tb"}[t];return{"&>:not([hidden])~:not([hidden])":{[`--tw-divide-${t}-reverse`]:"0",[`border-${rr(r[0])}Width`]:`calc(${e} * calc(1 - var(--tw-divide-${t}-reverse)))`,[`border-${rr(r[1])}Width`]:`calc(${e} * var(--tw-divide-${t}-reverse))`}}}),Et("divide-",{property:"borderColor",selector:"&>:not([hidden])~:not([hidden])"}),L("ring-opacity(?:$|-)","ringOpacity","--tw-ring-opacity"),Et("ring-offset-",{property:"--tw-ring-offset-color",opacityVariable:!1}),L("ring-offset(?:$|-)","ringOffsetWidth","--tw-ring-offset-width"),B("ring-inset",{"--tw-ring-inset":"inset"}),Et("ring-",{property:"--tw-ring-color"}),L("ring(?:$|-)","ringWidth",({_:t},{theme:e})=>({...Ge({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","&":{"--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":e("ringOffsetWidth","","0px"),"--tw-ring-offset-color":oe(e("ringOffsetColor","","#fff")),"--tw-ring-color":oe(e("ringColor","","#93c5fd"),{opacityVariable:"--tw-ring-opacity"}),"--tw-ring-opacity":e("ringOpacity","","0.5")}}),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(${t} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),Et("shadow-",{section:"boxShadowColor",opacityVariable:!1,opacitySection:"opacity"},({_:t})=>({"--tw-shadow-color":t.value,"--tw-shadow":"var(--tw-shadow-colored)"})),L("shadow(?:$|-)","boxShadow",({_:t})=>({...Ge({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000"}),"--tw-shadow":de(t),"--tw-shadow-colored":de(t).replace(/([^,]\s+)(?:#[a-f\d]+|(?:(?:hsl|rgb)a?|hwb|lab|lch|color|var)\(.+?\)|[a-z]+)(,|$)/g,"$1var(--tw-shadow-color)$2"),boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),L("(opacity)-"),B("mix-blend-","mixBlendMode"),...gl(),...gl("backdrop-"),L("transition(?:$|-)","transitionProperty",(t,{theme:e})=>({transitionProperty:de(t),transitionTimingFunction:t._=="none"?void 0:de(e("transitionTimingFunction","")),transitionDuration:t._=="none"?void 0:de(e("transitionDuration",""))})),L("duration(?:$|-)","transitionDuration","transitionDuration",de),L("ease(?:$|-)","transitionTimingFunction","transitionTimingFunction",de),L("delay(?:$|-)","transitionDelay","transitionDelay",de),L("animate(?:$|-)","animation",(t,{theme:e,h:r,e:i})=>{let n=de(t),s=n.split(" "),o=e("keyframes",s[0]);return o?{["@keyframes "+(s[0]=i(r(s[0])))]:o,animation:s.join(" ")}:{animation:n}}),"(transform)-(none)",B("transform",Zs),B("transform-(cpu|gpu)",({1:t})=>({"--tw-transform":_l(t=="gpu")})),L("scale(-[xy])?-","scale",({1:t,_:e})=>({["--tw-scale"+(t||"-x")]:e,["--tw-scale"+(t||"-y")]:e,...Zs()})),L("-?(rotate)-","rotate",Ys),L("-?(translate-[xy])-","translate",Ys),L("-?(skew-[xy])-","skew",Ys),B("origin-(center|((top|bottom)(-(left|right))?)|left|right)","transformOrigin",on),"(appearance)-",L("(columns)-"),"(columns)-(\\d+)","(break-(?:before|after|inside))-",L("(cursor)-"),"(cursor)-",B("snap-(none)","scroll-snap-type"),B("snap-(x|y|both)",({1:t})=>({...Ge({"--tw-scroll-snap-strictness":"proximity"}),"scroll-snap-type":t+" var(--tw-scroll-snap-strictness)"})),B("snap-(mandatory|proximity)","--tw-scroll-snap-strictness"),B("snap-(?:(start|end|center)|align-(none))","scroll-snap-align"),B("snap-(normal|always)","scroll-snap-stop"),B("scroll-(auto|smooth)","scroll-behavior"),L("scroll-p([xytrbl])?(?:$|-)","padding",kr("scroll-padding")),L("-?scroll-m([xytrbl])?(?:$|-)","scroll-margin",kr("scroll-margin")),B("touch-(auto|none|manipulation)","touch-action"),B("touch-(pinch-zoom|pan-(?:(x|left|right)|(y|up|down)))",({1:t,2:e,3:r})=>({...Ge({"--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-touch-action":"var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)"}),[`--tw-${e?"pan-x":r?"pan-y":t}`]:t,"touch-action":"var(--tw-touch-action)"})),B("outline-none",{outline:"2px solid transparent","outline-offset":"2px"}),B("outline",{outlineStyle:"solid"}),B("outline-(dashed|dotted|double)","outlineStyle"),L("-?(outline-offset)-"),Et("outline-",{opacityVariable:!1,opacitySection:"opacity"}),L("outline-","outlineWidth"),"(pointer-events)-",L("(will-change)-"),"(will-change)-",["resize(?:-(none|x|y))?","resize",({1:t})=>({x:"horizontal",y:"vertical"})[t]||t||"both"],B("select-(none|text|all|auto)","userSelect"),Et("fill-",{section:"fill",opacityVariable:!1,opacitySection:"opacity"}),Et("stroke-",{section:"stroke",opacityVariable:!1,opacitySection:"opacity"}),L("stroke-","strokeWidth"),B("sr-only",{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"}),B("not-sr-only",{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"})];function on(t){return(typeof t=="string"?t:t[1]).replace(/-/g," ").trim()}function dl(t){return(typeof t=="string"?t:t[1]).replace("col","column")}function rr(t,e="-"){let r=[];for(let i of t)r.push({t:"top",r:"right",b:"bottom",l:"left"}[i]);return r.join(e)}function de(t){return t&&""+(t._||t)}function ml({$$:t}){return({r:"flex-","":"flex-",w:"space-",u:"space-",n:"space-"}[t[3]||""]||"")+t}function kr(t,e=""){return({1:r,_:i})=>{let n={x:"lr",y:"tb"}[r]||r+r;return n?{...ai(t+"-"+rr(n[0])+e,i),...ai(t+"-"+rr(n[1])+e,i)}:ai(t+e,i)}}function gl(t=""){let e=["blur","brightness","contrast","grayscale","hue-rotate","invert",t&&"opacity","saturate","sepia",!t&&"drop-shadow"].filter(Boolean),r={};for(let i of e)r[`--tw-${t}${i}`]="var(--tw-empty,/*!*/ /*!*/)";return r={...Ge(r),[`${t}filter`]:e.map(i=>`var(--tw-${t}${i})`).join(" ")},[`(${t}filter)-(none)`,B(`${t}filter`,r),...e.map(i=>L(`${i[0]=="h"?"-?":""}(${t}${i})(?:$|-)`,i,({1:n,_:s})=>({[`--tw-${n}`]:dt(s).map(o=>`${i}(${o})`).join(" "),...r})))]}function Ys({1:t,_:e}){return{["--tw-"+t]:e,...Zs()}}function Zs(){return{...Ge({"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-transform":_l()}),transform:"var(--tw-transform)"}}function _l(t){return[t?"translate3d(var(--tw-translate-x),var(--tw-translate-y),0)":"translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y))","rotate(var(--tw-rotate))","skewX(var(--tw-skew-x))","skewY(var(--tw-skew-y))","scaleX(var(--tw-scale-x))","scaleY(var(--tw-scale-y))"].join(" ")}function yl({1:t,2:e}){return`${t} ${e} / ${t} ${e}`}function vl({1:t}){return`repeat(${t},minmax(0,1fr))`}function Ge(t){return{"@layer defaults":{"*,::before,::after":t,"::backdrop":t}}}var wl=[["sticky","@supports ((position: -webkit-sticky) or (position:sticky))"],["motion-reduce","@media (prefers-reduced-motion:reduce)"],["motion-safe","@media (prefers-reduced-motion:no-preference)"],["print","@media print"],["(portrait|landscape)",({1:t})=>`@media (orientation:${t})`],["contrast-(more|less)",({1:t})=>`@media (prefers-contrast:${t})`],["(first-(letter|line)|placeholder|backdrop|before|after)",({1:t})=>`&::${t}`],["(marker|selection)",({1:t})=>`& *::${t},&::${t}`],["file","&::file-selector-button"],["(first|last|only)",({1:t})=>`&:${t}-child`],["even","&:nth-child(2n)"],["odd","&:nth-child(odd)"],["open","&[open]"],["(aria|data)-",({1:t,$$:e},r)=>e&&`&[${t}-${r.theme(t,e)||be(e,"",r)||`${e}="true"`}]`],["((group|peer)(~[^-[]+)?)(-\\[(.+)]|[-[].+?)(\\/.+)?",({2:t,3:e="",4:r,5:i="",6:n=e},{e:s,h:o,v:a})=>{let l=Er(i)||(r[0]=="["?r:a(r.slice(1)));return`${(l.includes("&")?l:"&"+l).replace(/&/g,`:merge(.${s(o(t+n))})`)}${t[0]=="p"?"~":" "}&`}],["(ltr|rtl)",({1:t})=>`[dir="${t}"] &`],["supports-",({$$:t},e)=>{if(t&&(t=e.theme("supports",t)||be(t,"",e)),t)return t.includes(":")||(t+=":var(--tw)"),/^\w*\s*\(/.test(t)||(t=`(${t})`),`@supports ${t.replace(/\b(and|or|not)\b/g," $1 ").trim()}`}],["max-",({$$:t},e)=>{if(t&&(t=e.theme("screens",t)||be(t,"",e)),typeof t=="string")return`@media not all and (min-width:${t})`}],["min-",({$$:t},e)=>(t&&(t=be(t,"",e)),t&&`@media (min-width:${t})`)],[/^\[(.+)]$/,({1:t})=>/[&@]/.test(t)&&Er(t).replace(/[}]+$/,"").split("{")]];function xl({colors:t,disablePreflight:e}={}){return{preflight:e?void 0:fl,theme:{...hi,colors:{inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",...t}},variants:wl,rules:bl,finalize(r){return r.n&&r.d&&r.r.some(i=>/^&::(before|after)$/.test(i))&&!/(^|;)content:/.test(r.d)?{...r,d:"content:var(--tw-content);"+r.d}:r}}}var qp={50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},Up={50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},Wp={50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},Yp={50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},Zp={50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},Xp={50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},Jp={50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},Kp={50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},Qp={50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},tu={50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},eu={50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},ru={50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},iu={50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},nu={50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},su={50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},ou={50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},au={50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},lu={50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},hu={50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},cu={50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},pu={50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},uu={50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},Sl={__proto__:null,slate:qp,gray:Up,zinc:Wp,neutral:Yp,stone:Zp,red:Xp,orange:Jp,amber:Kp,yellow:Qp,lime:tu,green:eu,emerald:ru,teal:iu,cyan:nu,sky:su,blue:ou,indigo:au,violet:lu,purple:hu,fuchsia:cu,pink:pu,rose:uu};function El({disablePreflight:t}={}){return xl({colors:Sl,disablePreflight:t})}var fu=new Map([["align-self","-ms-grid-row-align"],["color-adjust","-webkit-print-color-adjust"],["column-gap","grid-column-gap"],["forced-color-adjust","-ms-high-contrast-adjust"],["gap","grid-gap"],["grid-template-columns","-ms-grid-columns"],["grid-template-rows","-ms-grid-rows"],["justify-self","-ms-grid-column-align"],["margin-inline-end","-webkit-margin-end"],["margin-inline-start","-webkit-margin-start"],["mask-border","-webkit-mask-box-image"],["mask-border-outset","-webkit-mask-box-image-outset"],["mask-border-slice","-webkit-mask-box-image-slice"],["mask-border-source","-webkit-mask-box-image-source"],["mask-border-repeat","-webkit-mask-box-image-repeat"],["mask-border-width","-webkit-mask-box-image-width"],["overflow-wrap","word-wrap"],["padding-inline-end","-webkit-padding-end"],["padding-inline-start","-webkit-padding-start"],["print-color-adjust","color-adjust"],["row-gap","grid-row-gap"],["scroll-margin-bottom","scroll-snap-margin-bottom"],["scroll-margin-left","scroll-snap-margin-left"],["scroll-margin-right","scroll-snap-margin-right"],["scroll-margin-top","scroll-snap-margin-top"],["scroll-margin","scroll-snap-margin"],["text-combine-upright","-ms-text-combine-horizontal"]]);function kl(t){return fu.get(t)}function Pl(t){var e=/^(?:(text-(?:decoration$|e|or|si)|back(?:ground-cl|d|f)|box-d|mask(?:$|-[ispro]|-cl)|pr|hyphena|flex-d)|(tab-|column(?!-s)|text-align-l)|(ap)|u|hy)/i.exec(t);return e?e[1]?1:e[2]?2:e[3]?3:5:0}function Al(t,e){var r=/^(?:(pos)|(cli)|(background-i)|(flex(?:$|-b)|(?:max-|min-)?(?:block-s|inl|he|widt))|dis)/i.exec(t);return r?r[1]?/^sti/i.test(e)?1:0:r[2]?/^pat/i.test(e)?1:0:r[3]?/^image-/i.test(e)?1:0:r[4]?e[3]==="-"?2:0:/^(?:inline-)?grid$/i.test(e)?4:0:0}var du=[["-webkit-",1],["-moz-",2],["-ms-",4]];function Cl(){return({stringify:t})=>({stringify(e,r,i){let n="",s=kl(e);s&&(n+=t(s,r,i)+";");let o=Pl(e),a=Al(e,r);for(let l of du)o&l[1]&&(n+=t(l[0]+e,r,i)+";"),a&l[1]&&(n+=t(e,l[0]+r,i)+";");return n+t(e,r,i)}})}function Ml(){return{rules:[["line-clamp-none",{"-webkit-line-clamp":"unset"}],["line-clamp-",Us("lineClamp",({_:t})=>Tl(t))],["line-clamp-(\\d+)",({1:t})=>Tl(t)]]}}function Tl(t){return{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":`${t}`}}function Dl({className:t="prose",defaultColor:e="gray",extend:r={},colors:i={}}={}){return i={body:"700",headings:"900",lead:"600",links:"900",bold:"900",counters:"500",bullets:"300",hr:"200",quotes:"900","quote-borders":"200",captions:"500",code:"900","pre-code":"200","pre-bg":"800","th-borders":"300","td-borders":"200",...i,dark:i.dark===null?null:{body:"300",headings:"#fff",lead:"400",links:"#fff",bold:"#fff",counters:"400",bullets:"600",hr:"700",quotes:"100","quote-borders":"700",captions:"400",code:"#fff","pre-code":"300","pre-bg":"rgb(0 0 0 / 50%)","th-borders":"600","td-borders":"700",...i.dark}},{variants:[["headings","h1,h2,h3,h4,h5,h6,th"],["h1"],["h2"],["h3"],["h4"],["h5"],["h6"],["p"],["a"],["blockquote"],["figure"],["figcaption"],["strong"],["em"],["code"],["pre"],["ol"],["ul"],["li"],["table"],["thead"],["tr"],["th"],["td"],["img"],["video"],["hr"],["lead",".lead"]].map(([s,o=s])=>[`${t}-${s}`,(a,l)=>Ol(t,o[0]=="."?"."+l.e(l.h(o.slice(1))):o,l,h=>`& :is(${h.trim()})`)]),rules:[[`(lead|not-${t})`,({1:s},{h:o})=>[{c:o(s)}]],[`${t}-invert`,{"@layer base":{"--tw-prose-body":"var(--tw-prose-invert-body)","--tw-prose-headings":"var(--tw-prose-invert-headings)","--tw-prose-lead":"var(--tw-prose-invert-lead)","--tw-prose-links":"var(--tw-prose-invert-links)","--tw-prose-bold":"var(--tw-prose-invert-bold)","--tw-prose-counters":"var(--tw-prose-invert-counters)","--tw-prose-bullets":"var(--tw-prose-invert-bullets)","--tw-prose-hr":"var(--tw-prose-invert-hr)","--tw-prose-quotes":"var(--tw-prose-invert-quotes)","--tw-prose-quote-borders":"var(--tw-prose-invert-quote-borders)","--tw-prose-captions":"var(--tw-prose-invert-captions)","--tw-prose-code":"var(--tw-prose-invert-code)","--tw-prose-pre-code":"var(--tw-prose-invert-pre-code)","--tw-prose-pre-bg":"var(--tw-prose-invert-pre-bg)","--tw-prose-th-borders":"var(--tw-prose-invert-th-borders)","--tw-prose-td-borders":"var(--tw-prose-invert-td-borders)"}}],[t+"-",({$$:s},o)=>{let a=Il(o.theme("fontSize",s));return a&&{"@layer components":a}}],[t+"-",({$$:s},o)=>n(s,o)],[t,(s,o)=>({...n(e,o),"@layer base":[Fl(t,o,{a:{color:"var(--tw-prose-links)",textDecorationLine:"underline",fontWeight:"500"},strong:{color:"var(--tw-prose-bold)",fontWeight:"600"},"a strong,blockquote strong,thead th strong":{color:"inherit"},ul:{listStyleType:"disc"},ol:{listStyleType:"decimal"},'ol[type="A"]':{listStyleType:"upper-alpha"},'ol[type="a"]':{listStyleType:"lower-alpha"},'ol[type="A" s]':{listStyleType:"upper-alpha"},'ol[type="a" s]':{listStyleType:"lower-alpha"},'ol[type="I"]':{listStyleType:"upper-roman"},'ol[type="i"]':{listStyleType:"lower-roman"},'ol[type="I" s]':{listStyleType:"upper-roman"},'ol[type="i" s]':{listStyleType:"lower-roman"},'ol[type="1"]':{listStyleType:"decimal"},"ol,ul":{marginTop:H(20,16),marginBottom:H(20,16),paddingLeft:H(26,16)},li:{marginTop:H(8,16),marginBottom:H(8,16)},"ol>li,ul>li":{paddingLeft:H(6,16)},">ul>li p":{marginTop:H(12,16),marginBottom:H(12,16)},">ul>li>*:first-child,>ol>li>*:last-child":{marginTop:H(20,16)},">ul>li>*:last-child,>ol>li>*:last-child":{marginBottom:H(20,16)},"ol>li::marker":{fontWeight:"400",color:"var(--tw-prose-counters)"},"ul>li::marker":{color:"var(--tw-prose-bullets)"},"ul ul,ul ol,ol ul,ol ol":{marginTop:H(12,16),marginBottom:H(12,16)},hr:{borderColor:"var(--tw-prose-hr)",borderTopWidth:"1",marginTop:H(48,16),marginBottom:H(48,16)},blockquote:{marginTop:H(32,20),marginBottom:H(32,20),paddingLeft:H(20,20),fontWeight:"500",fontStyle:"italic",color:"var(--tw-prose-quotes)",borderLeftWidth:"0.25rem",borderLeftColor:"var(--tw-prose-quote-borders)",quotes:'"\\201C""\\201D""\\2018""\\2019"'},"blockquote p:first-of-type::before":{content:"open-quote"},"blockquote p:last-of-type::after":{content:"close-quote"},p:{marginTop:H(20,16),marginBottom:H(20,16)},h1:{color:"var(--tw-prose-headings)",fontWeight:"800",fontSize:H(36,16),marginTop:"0",marginBottom:H(32,36),lineHeight:1.15},"h1 strong":{fontWeight:"900",color:"inherit"},h2:{color:"var(--tw-prose-headings)",fontWeight:"700",fontSize:H(24,16),marginTop:H(48,24),marginBottom:H(24,24),lineHeight:"1.35"},"h2 strong":{fontWeight:"800",color:"inherit"},h3:{color:"var(--tw-prose-headings)",fontWeight:"600",fontSize:H(20,16),marginTop:H(32,20),marginBottom:H(12,20),lineHeight:"1.6"},"h3 strong":{fontWeight:"700",color:"inherit"},h4:{color:"var(--tw-prose-headings)",fontWeight:"600",marginTop:H(24,16),marginBottom:H(8,16),lineHeight:"1.5"},"h4 strong":{fontWeight:"700",color:"inherit"},"hr+*,h2+*,h3+*,h4+*":{marginTop:"0"},"img,video,figure":{marginTop:H(32,16),marginBottom:H(32,16)},"figure>*":{marginTop:"0",marginBottom:"0"},figcaption:{color:"var(--tw-prose-captions)",fontSize:H(14,16),lineHeight:"1.4",marginTop:H(12,14)},code:{color:"var(--tw-prose-code)",fontWeight:"600",fontSize:H(14,16)},"code::before,code::after":{content:'"`"'},"h2 code":{fontSize:H(21,24)},"h3 code":{fontSize:H(18,20)},"a code,h1 code,h2 code,h3 code,h4 code,blockquote code,thead th code":{color:"inherit"},pre:{color:"var(--tw-prose-pre-code)",backgroundColor:"var(--tw-prose-pre-bg)",overflowX:"auto",fontWeight:"400",fontSize:H(14,16),lineHeight:"1.7",marginTop:H(24,14),marginBottom:H(24,14),borderRadius:"0.375rem",paddingTop:H(12,14),paddingRight:H(16,14),paddingBottom:H(12,14),paddingLeft:H(16,14)},"pre code":{backgroundColor:"transparent",borderWidth:"0",borderRadius:"0",padding:"0",fontWeight:"inherit",color:"inherit",fontSize:"inherit",fontFamily:"inherit",lineHeight:"inherit"},"pre code::before":{content:"none"},"pre code::after":{content:"none"},table:{width:"100%",tableLayout:"auto",textAlign:"left",marginTop:H(32,16),marginBottom:H(32,16),fontSize:H(14,16),lineHeight:"1.7"},thead:{borderBottomWidth:"1px",borderBottomColor:"var(--tw-prose-th-borders)"},"thead th":{color:"var(--tw-prose-headings)",fontWeight:"600",verticalAlign:"bottom",paddingRight:H(8,14),paddingBottom:H(8,14),paddingLeft:H(8,14)},"thead th:first-child":{paddingLeft:"0"},"thead th:last-child":{paddingRight:"0"},"tbody tr":{borderBottomWidth:"1px",borderBottomColor:"var(--tw-prose-td-borders)"},"tbody tr:last-child":{borderBottomWidth:"0"},"tbody td,tfoot td":{verticalAlign:"baseline",paddingTop:H(8,14),paddingRight:H(8,14),paddingBottom:H(8,14),paddingLeft:H(8,14)},"tbody td:first-child,tfoot td:first-child":{paddingLeft:"0"},"tbody td:last-child,tfoot td:last-child":{paddingRight:"0"},[`.${o.e(o.h("lead"))}`]:{color:"var(--tw-prose-lead)",fontSize:H(20,16),lineHeight:"1.6",marginTop:H(24,20),marginBottom:H(24,20)},">:first-child":{marginTop:"0"},">:last-child":{marginBottom:"0"}}),Fl(t,o,r)],"@layer components":{...Il(o.theme("fontSize","base")),color:"var(--tw-prose-body)",maxWidth:"theme(max-w.prose, 65ch)"}})]]};function n(s,o){let a={},l={},h=(c,p,u)=>{let f=o.theme(`colors.${s}.${p}`,p);u["--tw-prose-"+c]=oe(f);let m=u!=l&&o.d("colors",`${s}-${p}`,f);m&&(l["--tw-prose-"+c]=oe(m))};for(let c in i){let p=i[c];c!="dark"&&p&&h(c,p,a)}for(let c in i.dark||{}){let p=i.dark[c];p&&(i.dark?h("invert-"+c,p,a):h(c,p,l))}return Object.keys(a).length?{"@layer defaults":{"&":a,[o.v("dark")]:l}}:void 0}}function Fl(t,e,r){let i={};for(let n in r)i[Ol(t,n,e,s=>`.${e.e(e.h(t))}${s}`)]=r[n];return i}function Ol(t,e,{e:r,h:i},n){return e.replace(/^[^>:]+$|(>)?((?:[^:,]+(?::[\w-]+)?)|:[\w-]+)(::[\w-]+)?/g,(s,o=" ",a=s,l="")=>n(`${o}:where(${a}):not(:where(.${r(i("not-"+t))} *))${l}`))}function Il(t){return t?typeof t=="string"?{fontSize:t}:{fontSize:t[0],...typeof t[1]=="string"?{lineHeight:t[1]}:t[1]}:void 0}function H(t,e){return`${(t/e).toFixed(3).replace(/^0|\.?0+$/g,"")}em`}var Xs=Ws({darkMode:["class"],theme:{extend:{fontFamily:{sans:["system-ui","Roboto","Helvetica","Arial","sans-serif"],serif:["ui-serif","Georgia","Cambria","serif"],mono:["ui-monospace","Menlo","Monaco","monospace"]}}},presets:[El(),Cl(),Ml(),Dl()],hash:!1});function $l(t,e=!0){let r=function(){if(mu)try{let l=sn(new CSSStyleSheet);return l.connect=h=>{let c=Js(h);c.adoptedStyleSheets=[...c.adoptedStyleSheets,l.target]},l.disconnect=nn,l}catch{}let s=document.createElement("style");s.media="not all",document.head.prepend(s);let o=[sn(s)],a=new WeakMap;return{get target(){return o[0].target},snapshot(){let l=o.map(h=>h.snapshot());return()=>l.forEach(h=>h())},clear(){o.forEach(l=>l.clear())},destroy(){o.forEach(l=>l.destroy())},insert(l,h,c){o[0].insert(l,h,c);let p=this.target.cssRules[h];o.forEach((u,f)=>f&&u.target.insertRule(p.cssText,h))},resume(l,h){return o[0].resume(l,h)},connect(l){let h=document.createElement("style");Js(l).appendChild(h);let c=sn(h),{cssRules:p}=this.target;for(let u=0;u<p.length;u++)c.target.insertRule(p[u].cssText,u);o.push(c),a.set(l,c)},disconnect(l){let h=o.indexOf(a.get(l));h>=0&&o.splice(h,1)}}}(),i=pl({...t,hash:t.hash??e},r),n=ul(i);return function(o){return class extends o{connectedCallback(){super.connectedCallback?.(),r.connect(this),n.observe(Js(this))}disconnectedCallback(){r.disconnect(this),super.disconnectedCallback?.()}constructor(...l){super(...l),this.tw=i}}}}var mu=typeof ShadowRoot<"u"&&(typeof ShadyCSS>"u"||ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;function Js(t){return t.shadowRoot||t.attachShadow({mode:"open"})}var kt=t=>$l(Xs)(t);var ln,Rl,hn,Bl,an=class extends kt(yt){constructor(){super();J(this,ln);J(this,hn);ft(this,"render",()=>st`
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Oa=/'/g,$a=/"/g,za=/^(?:script|style|textarea|title)$/i,Na=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),st=Na(1),rm=Na(2),Jt=Symbol.for("lit-noChange"),bt=Symbol.for("lit-nothing"),Ra=new WeakMap,yr=br.createTreeWalker(br,129,null,!1),ja=(t,e)=>{let r=t.length-1,i=[],n,s=e===2?"<svg>":"",o=ri;for(let l=0;l<r;l++){let h=t[l],c,p,u=-1,f=0;for(;f<h.length&&(o.lastIndex=f,p=o.exec(h),p!==null);)f=o.lastIndex,o===ri?p[1]==="!--"?o=Ia:p[1]!==void 0?o=Da:p[2]!==void 0?(za.test(p[2])&&(n=RegExp("</"+p[2],"g")),o=Qe):p[3]!==void 0&&(o=Qe):o===Qe?p[0]===">"?(o=n??ri,u=-1):p[1]===void 0?u=-2:(u=o.lastIndex-p[2].length,c=p[1],o=p[3]===void 0?Qe:p[3]==='"'?$a:Oa):o===$a||o===Oa?o=Qe:o===Ia||o===Da?o=ri:(o=Qe,n=void 0);let m=o===Qe&&t[l+1].startsWith("/>")?" ":"";s+=o===ri?h+Mp:u>=0?(i.push(c),h.slice(0,u)+Ui+h.slice(u)+Te+m):h+Te+(u===-2?(i.push(void 0),l):m)}let a=s+(t[r]||"<?>")+(e===2?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[Fa!==void 0?Fa.createHTML(a):a,i]},si=class t{constructor({strings:e,_$litType$:r},i){let n;this.parts=[];let s=0,o=0,a=e.length-1,l=this.parts,[h,c]=ja(e,r);if(this.el=t.createElement(h,i),yr.currentNode=this.el.content,r===2){let p=this.el.content,u=p.firstChild;u.remove(),p.append(...u.childNodes)}for(;(n=yr.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes()){let p=[];for(let u of n.getAttributeNames())if(u.endsWith(Ui)||u.startsWith(Te)){let f=c[o++];if(p.push(u),f!==void 0){let m=n.getAttribute(f.toLowerCase()+Ui).split(Te),g=/([.?@])?(.*)/.exec(f);l.push({type:1,index:s,name:g[2],strings:m,ctor:g[1]==="."?Yi:g[1]==="?"?Zi:g[1]==="@"?Xi:er})}else l.push({type:6,index:s})}for(let u of p)n.removeAttribute(u)}if(za.test(n.tagName)){let p=n.textContent.split(Te),u=p.length-1;if(u>0){n.textContent=vr?vr.emptyScript:"";for(let f=0;f<u;f++)n.append(p[f],ii()),yr.nextNode(),l.push({type:2,index:++s});n.append(p[u],ii())}}}else if(n.nodeType===8)if(n.data===Ms)l.push({type:2,index:s});else{let p=-1;for(;(p=n.data.indexOf(Te,p+1))!==-1;)l.push({type:7,index:s}),p+=Te.length-1}s++}}static createElement(e,r){let i=br.createElement("template");return i.innerHTML=e,i}};function tr(t,e,r=t,i){var n,s,o,a;if(e===Jt)return e;let l=i!==void 0?(n=r._$Co)===null||n===void 0?void 0:n[i]:r._$Cl,h=ni(e)?void 0:e._$litDirective$;return l?.constructor!==h&&((s=l?._$AO)===null||s===void 0||s.call(l,!1),h===void 0?l=void 0:(l=new h(t),l._$AT(t,r,i)),i!==void 0?((o=(a=r)._$Co)!==null&&o!==void 0?o:a._$Co=[])[i]=l:r._$Cl=l),l!==void 0&&(e=tr(t,l._$AS(t,e.values),l,i)),e}var Wi=class{constructor(e,r){this.u=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(e){var r;let{el:{content:i},parts:n}=this._$AD,s=((r=e?.creationScope)!==null&&r!==void 0?r:br).importNode(i,!0);yr.currentNode=s;let o=yr.nextNode(),a=0,l=0,h=n[0];for(;h!==void 0;){if(a===h.index){let c;h.type===2?c=new _r(o,o.nextSibling,this,e):h.type===1?c=new h.ctor(o,h.name,h.strings,this,e):h.type===6&&(c=new Ji(o,this,e)),this.u.push(c),h=n[++l]}a!==h?.index&&(o=yr.nextNode(),a++)}return s}p(e){let r=0;for(let i of this.u)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}},_r=class t{constructor(e,r,i,n){var s;this.type=2,this._$AH=bt,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=n,this._$Cm=(s=n?.isConnected)===null||s===void 0||s}get _$AU(){var e,r;return(r=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&r!==void 0?r:this._$Cm}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=tr(this,e,r),ni(e)?e===bt||e==null||e===""?(this._$AH!==bt&&this._$AR(),this._$AH=bt):e!==this._$AH&&e!==Jt&&this.g(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Va(e)?this.k(e):this.g(e)}S(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.S(e))}g(e){this._$AH!==bt&&ni(this._$AH)?this._$AA.nextSibling.data=e:this.T(br.createTextNode(e)),this._$AH=e}$(e){var r;let{values:i,_$litType$:n}=e,s=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=si.createElement(n.h,this.options)),n);if(((r=this._$AH)===null||r===void 0?void 0:r._$AD)===s)this._$AH.p(i);else{let o=new Wi(s,this),a=o.v(this.options);o.p(i),this.T(a),this._$AH=o}}_$AC(e){let r=Ra.get(e.strings);return r===void 0&&Ra.set(e.strings,r=new si(e)),r}k(e){La(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let s of e)n===r.length?r.push(i=new t(this.S(ii()),this.S(ii()),this,this.options)):i=r[n],i._$AI(s),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,r);e&&e!==this._$AB;){let n=e.nextSibling;e.remove(),e=n}}setConnected(e){var r;this._$AM===void 0&&(this._$Cm=e,(r=this._$AP)===null||r===void 0||r.call(this,e))}},er=class{constructor(e,r,i,n,s){this.type=1,this._$AH=bt,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=s,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=bt}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,r=this,i,n){let s=this.strings,o=!1;if(s===void 0)e=tr(this,e,r,0),o=!ni(e)||e!==this._$AH&&e!==Jt,o&&(this._$AH=e);else{let a=e,l,h;for(e=s[0],l=0;l<s.length-1;l++)h=tr(this,a[i+l],r,l),h===Jt&&(h=this._$AH[l]),o||(o=!ni(h)||h!==this._$AH[l]),h===bt?e=bt:e!==bt&&(e+=(h??"")+s[l+1]),this._$AH[l]=h}o&&!n&&this.j(e)}j(e){e===bt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Yi=class extends er{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===bt?void 0:e}},Fp=vr?vr.emptyScript:"",Zi=class extends er{constructor(){super(...arguments),this.type=4}j(e){e&&e!==bt?this.element.setAttribute(this.name,Fp):this.element.removeAttribute(this.name)}},Xi=class extends er{constructor(e,r,i,n,s){super(e,r,i,n,s),this.type=5}_$AI(e,r=this){var i;if((e=(i=tr(this,e,r,0))!==null&&i!==void 0?i:bt)===Jt)return;let n=this._$AH,s=e===bt&&n!==bt||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,o=e!==bt&&(n===bt||s);s&&this.element.removeEventListener(this.name,this,n),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var r,i;typeof this._$AH=="function"?this._$AH.call((i=(r=this.options)===null||r===void 0?void 0:r.host)!==null&&i!==void 0?i:this.element,e):this._$AH.handleEvent(e)}},Ji=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){tr(this,e)}},Ga={P:Ui,A:Te,M:Ms,C:1,L:ja,D:Wi,R:Va,V:tr,I:_r,H:er,N:Zi,U:Xi,F:Yi,B:Ji},Ba=qi.litHtmlPolyfillSupport;Ba?.(si,_r),((Cs=qi.litHtmlVersions)!==null&&Cs!==void 0?Cs:qi.litHtmlVersions=[]).push("2.7.0");var Ha=(t,e,r)=>{var i,n;let s=(i=r?.renderBefore)!==null&&i!==void 0?i:e,o=s._$litPart$;if(o===void 0){let a=(n=r?.renderBefore)!==null&&n!==void 0?n:null;s._$litPart$=o=new _r(e.insertBefore(ii(),a),a,void 0,r??{})}return o._$AI(t),o};var Fs,Is;var yt=class extends Ce{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,r;let i=super.createRenderRoot();return(e=(r=this.renderOptions).renderBefore)!==null&&e!==void 0||(r.renderBefore=i.firstChild),i}update(e){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Ha(r,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1)}render(){return Jt}};yt.finalized=!0,yt._$litElement$=!0,(Fs=globalThis.litElementHydrateSupport)===null||Fs===void 0||Fs.call(globalThis,{LitElement:yt});var qa=globalThis.litElementPolyfillSupport;qa?.({LitElement:yt});((Is=globalThis.litElementVersions)!==null&&Is!==void 0?Is:globalThis.litElementVersions=[]).push("3.3.0");var wr={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},xr=t=>(...e)=>({_$litDirective$:t,values:e}),Ne=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,i){this._$Ct=e,this._$AM=r,this._$Ci=i}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}};var{I:Ip}=Ga;var Ua=()=>document.createComment(""),Sr=(t,e,r)=>{var i;let n=t._$AA.parentNode,s=e===void 0?t._$AB:e._$AA;if(r===void 0){let o=n.insertBefore(Ua(),s),a=n.insertBefore(Ua(),s);r=new Ip(o,a,t,t.options)}else{let o=r._$AB.nextSibling,a=r._$AM,l=a!==t;if(l){let h;(i=r._$AQ)===null||i===void 0||i.call(r,t),r._$AM=t,r._$AP!==void 0&&(h=t._$AU)!==a._$AU&&r._$AP(h)}if(o!==s||l){let h=r._$AA;for(;h!==o;){let c=h.nextSibling;n.insertBefore(h,s),h=c}}}return r},je=(t,e,r=t)=>(t._$AI(e,r),t),Dp={},Wa=(t,e=Dp)=>t._$AH=e,Ya=t=>t._$AH,Ki=t=>{var e;(e=t._$AP)===null||e===void 0||e.call(t,!1,!0);let r=t._$AA,i=t._$AB.nextSibling;for(;r!==i;){let n=r.nextSibling;r.remove(),r=n}};var Za=(t,e,r)=>{let i=new Map;for(let n=e;n<=r;n++)i.set(t[n],n);return i},oi=xr(class extends Ne{constructor(t){if(super(t),t.type!==wr.CHILD)throw Error("repeat() can only be used in text expressions")}ht(t,e,r){let i;r===void 0?r=e:e!==void 0&&(i=e);let n=[],s=[],o=0;for(let a of t)n[o]=i?i(a,o):o,s[o]=r(a,o),o++;return{values:s,keys:n}}render(t,e,r){return this.ht(t,e,r).values}update(t,[e,r,i]){var n;let s=Ya(t),{values:o,keys:a}=this.ht(e,r,i);if(!Array.isArray(s))return this.ut=a,o;let l=(n=this.ut)!==null&&n!==void 0?n:this.ut=[],h=[],c,p,u=0,f=s.length-1,m=0,g=o.length-1;for(;u<=f&&m<=g;)if(s[u]===null)u++;else if(s[f]===null)f--;else if(l[u]===a[m])h[m]=je(s[u],o[m]),u++,m++;else if(l[f]===a[g])h[g]=je(s[f],o[g]),f--,g--;else if(l[u]===a[g])h[g]=je(s[u],o[g]),Sr(t,h[g+1],s[u]),u++,g--;else if(l[f]===a[m])h[m]=je(s[f],o[m]),Sr(t,s[u],s[f]),f--,m++;else if(c===void 0&&(c=Za(a,m,g),p=Za(l,u,f)),c.has(l[u]))if(c.has(l[f])){let d=p.get(a[m]),y=d!==void 0?s[d]:null;if(y===null){let v=Sr(t,s[u]);je(v,o[m]),h[m]=v}else h[m]=je(y,o[m]),Sr(t,s[u],y),s[d]=null;m++}else Ki(s[f]),f--;else Ki(s[u]),u++;for(;m<=g;){let d=Sr(t,h[g+1]);je(d,o[m]),h[m++]=d}for(;u<=f;){let d=s[u++];d!==null&&Ki(d)}return this.ut=a,Wa(t,h),Jt}});function js(t){return[...t.v,(t.i?"!":"")+t.n].join(":")}function Op(t,e=","){return t.map(js).join(e)}var rl=typeof CSS<"u"&&CSS.escape||(t=>t.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function Qi(t){for(var e=9,r=t.length;r--;)e=Math.imul(e^t.charCodeAt(r),1597334677);return"#"+((e^e>>>9)>>>0).toString(36)}function rn(t,e="@media "){return e+dt(t).map(r=>(typeof r=="string"&&(r={min:r}),r.raw||Object.keys(r).map(i=>`(${i}-width:${r[i]})`).join(" and "))).join(",")}function dt(t=[]){return Array.isArray(t)?t:t==null?[]:[t]}function Xa(t){return t}function nn(){}var St={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function il(t){return t.match(/[-=:;]/g)?.length||0}function Bs(t){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(t)?Math.max(0,29.63*(+RegExp.$1/(RegExp.$2?15:1))**.137-43):0,15)<<22|Math.min(il(t),15)<<18}var $p=["rst-c","st-ch","h-chi","y-lin","nk","sited","ecked","pty","ad-on","cus-w","ver","cus","cus-v","tive","sable","tiona","quire"];function Gs({n:t,i:e,v:r=[]},i,n,s){t&&(t=js({n:t,i:e,v:r})),s=[...dt(s)];for(let a of r){let l=i.theme("screens",a);for(let h of dt(l&&rn(l)||i.v(a))){var o;s.push(h),n|=l?67108864|Bs(h):a=="dark"?1073741824:h[0]=="@"?Bs(h):(o=h,1<<~(/:([a-z-]+)/.test(o)&&~$p.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:t,p:n,r:s,i:e}}var nl=new Map;function Ls(t){if(t.d){let e=[],r=Ds(t.r.reduce((i,n)=>n[0]=="@"?(e.push(n),i):n?Ds(i,s=>Ds(n,o=>{let a=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(o);if(a){let l=s.indexOf(a[1]);return~l?s.slice(0,l)+a[0]+s.slice(l+a[1].length):Os(s,o)}return Os(o,s)})):i,"&"),i=>Os(i,t.n?"."+rl(t.n):""));return r&&e.push(r.replace(/:merge\((.+?)\)/g,"$1")),e.reduceRight((i,n)=>n+"{"+i+"}",t.d)}}function Ds(t,e){return t.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(r,i,n)=>e(i)+n)}function Os(t,e){return t.replace(/&/g,e)}var Ja=new Intl.Collator("en",{numeric:!0});function sl(t,e){for(var r=0,i=t.length;r<i;){let n=i+r>>1;0>=ol(t[n],e)?r=n+1:i=n}return i}function ol(t,e){let r=t.p&St.o;return r==(e.p&St.o)&&(r==St.b||r==St.o)?0:t.p-e.p||t.o-e.o||Ja.compare(Ka(t.n),Ka(e.n))||Ja.compare(Qa(t.n),Qa(e.n))}function Ka(t){return(t||"").split(/:/).pop().split("/").pop()||"\0"}function Qa(t){return(t||"").replace(/\W/g,e=>String.fromCharCode(127+e.charCodeAt(0)))+"\0"}function $s(t,e){return Math.round(parseInt(t,16)*e)}function oe(t,e={}){if(typeof t=="function")return t(e);let{opacityValue:r="1",opacityVariable:i}=e,n=i?`var(${i})`:r;if(t.includes("<alpha-value>"))return t.replace("<alpha-value>",n);if(t[0]=="#"&&(t.length==4||t.length==7)){let s=(t.length-1)/3,o=[17,1,.062272][s-1];return`rgba(${[$s(t.substr(1,s),o),$s(t.substr(1+s,s),o),$s(t.substr(1+2*s,s),o),n]})`}return n=="1"?t:n=="0"?"#0000":t.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${n})`)}function al(t,e,r,i,n=[]){return function s(o,{n:a,p:l,r:h=[],i:c},p){let u=[],f="",m=0,g=0;for(let v in o||{}){var d,y;let b=o[v];if(v[0]=="@"){if(!b)continue;if(v[1]=="a"){u.push(...qs(a,l,en(""+b),p,l,h,c,!0));continue}if(v[1]=="l"){for(let _ of dt(b))u.push(...s(_,{n:a,p:(d=St[v[7]],l&~St.o|d),r:v[7]=="d"?[]:h,i:c},p));continue}if(v[1]=="i"){u.push(...dt(b).map(_=>({p:-1,o:0,r:[],d:v+" "+_})));continue}if(v[1]=="k"){u.push({p:St.d,o:0,r:[v],d:s(b,{p:St.d},p).map(Ls).join("")});continue}if(v[1]=="f"){u.push(...dt(b).map(_=>({p:St.d,o:0,r:[v],d:s(_,{p:St.d},p).map(Ls).join("")})));continue}}if(typeof b!="object"||Array.isArray(b))v=="label"&&b?a=b+Qi(JSON.stringify([l,c,o])):(b||b===0)&&(v=v.replace(/[A-Z]/g,_=>"-"+_.toLowerCase()),g+=1,m=Math.max(m,(y=v)[0]=="-"?0:il(y)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test(y)?+!!RegExp.$1||-!!RegExp.$2:0)+1),f+=(f?";":"")+dt(b).map(_=>p.s(v,Hs(""+_,p.theme)+(c?" !important":""))).join(";"));else if(v[0]=="@"||v.includes("&")){let _=l;v[0]=="@"&&(v=v.replace(/\bscreen\(([^)]+)\)/g,(x,T)=>{let S=p.theme("screens",T);return S?(_|=67108864,rn(S,"")):x}),_|=Bs(v)),u.push(...s(b,{n:a,p:_,r:[...h,v],i:c},p))}else u.push(...s(b,{p:l,r:[...h,v]},p))}return u.unshift({n:a,p:l,o:Math.max(0,15-g)+1.5*Math.min(m||15,15),r:h,d:f}),u.sort(ol)}(t,Gs(e,r,i,n),r)}function Hs(t,e){return t.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(r,i,n,s,o="")=>{let a=e(n,o);return typeof a=="function"&&/color|fill|stroke/i.test(n)?oe(a):""+dt(a).filter(l=>Object(l)!==l)})}function ll(t,e){let r,i=[];for(let n of t)n.d&&n.n?r?.p==n.p&&""+r.r==""+n.r?(r.c=[r.c,n.c].filter(Boolean).join(" "),r.d=r.d+";"+n.d):i.push(r={...n,n:n.n&&e}):i.push({...n,n:n.n&&e});return i}function tn(t,e,r=St.u,i,n){let s=[];for(let o of t)for(let a of function(l,h,c,p,u){l={...l,i:l.i||u};let f=function(m,g){let d=nl.get(m.n);return d?d(m,g):g.r(m.n,m.v[0]=="dark")}(l,h);return f?typeof f=="string"?({r:p,p:c}=Gs(l,h,c,p),ll(tn(en(f),h,c,p,l.i),l.n)):Array.isArray(f)?f.map(m=>{var g,d;return{o:0,...m,r:[...dt(p),...dt(m.r)],p:(g=c,d=m.p??c,g&~St.o|d)}}):al(f,l,h,c,p):[{c:js(l),p:0,o:0,r:[]}]}(o,e,r,i,n))s.splice(sl(s,a),0,a);return s}function qs(t,e,r,i,n,s,o,a){return ll((a?r.flatMap(l=>tn([l],i,n,s,o)):tn(r,i,n,s,o)).map(l=>l.p&St.o&&(l.n||e==St.b)?{...l,p:l.p&~St.o|e,o:0}:l),t)}function Rp(t,e,r,i){var n;return n=(s,o)=>{let{n:a,p:l,r:h,i:c}=Gs(s,o,e);return r&&qs(a,e,r,o,l,h,c,i)},nl.set(t,n),t}function Rs(t,e,r){if(t[t.length-1]!="("){let i=[],n=!1,s=!1,o="";for(let a of t)if(!(a=="("||/[~@]$/.test(a))){if(a[0]=="!"&&(a=a.slice(1),n=!n),a.endsWith(":")){i[a=="dark:"?"unshift":"push"](a.slice(0,-1));continue}a[0]=="-"&&(a=a.slice(1),s=!s),a.endsWith("-")&&(a=a.slice(0,-1)),a&&a!="&"&&(o+=(o&&"-")+a)}o&&(s&&(o="-"+o),e[0].push({n:o,v:i.filter(Bp),i:n}))}}function Bp(t,e,r){return r.indexOf(t)==e}var tl=new Map;function en(t){let e=tl.get(t);if(!e){let r=[],i=[[]],n=0,s=0,o=null,a=0,l=(h,c=0)=>{n!=a&&(r.push(t.slice(n,a+c)),h&&Rs(r,i)),n=a+1};for(;a<t.length;a++){let h=t[a];if(s)t[a-1]!="\\"&&(s+=+(h=="[")||-(h=="]"));else if(h=="[")s+=1;else if(o)t[a-1]!="\\"&&o.test(t.slice(a))&&(o=null,n=a+RegExp.lastMatch.length);else if(h=="/"&&t[a-1]!="\\"&&(t[a+1]=="*"||t[a+1]=="/"))o=t[a+1]=="*"?/^\*\//:/^[\r\n]/;else if(h=="(")l(),r.push(h);else if(h==":")t[a+1]!=":"&&l(!1,1);else if(/[\s,)]/.test(h)){l(!0);let c=r.lastIndexOf("(");if(h==")"){let p=r[c-1];if(/[~@]$/.test(p)){let u=i.shift();r.length=c,Rs([...r,"#"],i);let{v:f}=i[0].pop();for(let m of u)m.v.splice(+(m.v[0]=="dark")-+(f[0]=="dark"),f.length);Rs([...r,Rp(p.length>1?p.slice(0,-1)+Qi(JSON.stringify([p,u])):p+"("+Op(u)+")",St.a,u,/@$/.test(p))],i)}c=r.lastIndexOf("(",c-1)}r.length=c+1}else/[~@]/.test(h)&&t[a+1]=="("&&i.unshift([])}l(!0),tl.set(t,e=i[0])}return e}function B(t,e,r){return[t,Vs(e,r)]}function Vs(t,e){return typeof t=="function"?t:typeof t=="string"&&/^[\w-]+$/.test(t)?(r,i)=>({[t]:e?e(r,i):zs(r,1)}):r=>t||{[r[1]]:zs(r,2)}}function zs(t,e,r=t.slice(e).find(Boolean)||t.$$||t.input){return t.input[0]=="-"?`calc(${r} * -1)`:r}function L(t,e,r,i){return[t,Us(e,r,i)]}function Us(t,e,r){let i=typeof e=="string"?(n,s)=>({[e]:r?r(n,s):n._}):e||(({1:n,_:s},o,a)=>({[n||a]:s}));return(n,s)=>{let o=hl(t||n[1]),a=s.theme(o,n.$$)??be(n.$$,o,s);if(a!=null)return n._=zs(n,0,a),i(n,s,o)}}function Et(t,e={},r){return[t,Lp(e,r)]}function Lp(t={},e){return(r,i)=>{let{section:n=hl(r[0]).replace("-","")+"Color"}=t,[s,o]=Vp(r.$$);if(!s)return;let a=i.theme(n,s)||be(s,n,i);if(!a||typeof a=="object")return;let{opacityVariable:l=`--tw-${r[0].replace(/-$/,"")}-opacity`,opacitySection:h=n.replace("Color","Opacity"),property:c=n,selector:p}=t,u=i.theme(h,o||"DEFAULT")||o&&be(o,h,i),f=e||(({_:g})=>{let d=ai(c,g);return p?{[p]:d}:d});r._={value:oe(a,{opacityVariable:l||void 0,opacityValue:u||void 0}),color:g=>oe(a,g),opacityVariable:l||void 0,opacityValue:u||void 0};let m=f(r,i);if(!r.dark){let g=i.d(n,s,a);g&&g!==a&&(r._={value:oe(g,{opacityVariable:l||void 0,opacityValue:u||"1"}),color:d=>oe(g,d),opacityVariable:l||void 0,opacityValue:u||void 0},m={"&":m,[i.v("dark")]:f(r,i)})}return m}}function Vp(t){return(t.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function ai(t,e){let r={};return typeof e=="string"?r[t]=e:(e.opacityVariable&&e.value.includes(e.opacityVariable)&&(r[e.opacityVariable]=e.opacityValue||"1"),r[t]=e.value),r}function be(t,e,r){if(t[0]=="["&&t.slice(-1)=="]"){if(t=Er(Hs(t.slice(1,-1),r.theme)),!e)return t;if(!(/color|fill|stroke/i.test(e)&&!(/^color:/.test(t)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(t))||/image/i.test(e)&&!(/^image:/.test(t)||/^[a-z-]+\(/.test(t))||/weight/i.test(e)&&!(/^(number|any):/.test(t)||/^\d+$/.test(t))||/position/i.test(e)&&/^(length|size):/.test(t)))return t.replace(/^[a-z-]+:/,"")}}function hl(t){return t.replace(/-./g,e=>e[1].toUpperCase())}function Er(t){return t.includes("url(")?t.replace(/(.*?)(url\(.*?\))(.*?)/g,(e,r="",i,n="")=>Er(r)+i+Er(n)):t.replace(/(^|[^\\])_+/g,(e,r)=>r+" ".repeat(e.length-r.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,e=>e.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}function Ws({presets:t=[],...e}){let r={darkMode:void 0,darkColor:void 0,preflight:e.preflight!==!1&&[],theme:{},variants:dt(e.variants),rules:dt(e.rules),ignorelist:dt(e.ignorelist),hash:void 0,stringify:(i,n)=>i+":"+n,finalize:[]};for(let i of dt([...t,{darkMode:e.darkMode,darkColor:e.darkColor,preflight:e.preflight!==!1&&dt(e.preflight),theme:e.theme,hash:e.hash,stringify:e.stringify,finalize:e.finalize}])){let{preflight:n,darkMode:s=r.darkMode,darkColor:o=r.darkColor,theme:a,variants:l,rules:h,ignorelist:c,hash:p=r.hash,stringify:u=r.stringify,finalize:f}=typeof i=="function"?i(r):i;r={preflight:r.preflight!==!1&&n!==!1&&[...r.preflight,...dt(n)],darkMode:s,darkColor:o,theme:{...r.theme,...a,extend:{...r.theme.extend,...a?.extend}},variants:[...r.variants,...dt(l)],rules:[...r.rules,...dt(h)],ignorelist:[...r.ignorelist,...dt(c)],hash:p,stringify:u,finalize:[...r.finalize,...dt(f)]}}return r}function el(t,e,r,i,n,s){for(let o of e){let a=r.get(o);a||r.set(o,a=i(o));let l=a(t,n,s);if(l)return l}}function zp(t){var e;return Ns(t[0],typeof(e=t[1])=="function"?e:()=>e)}function Np(t){var e,r;return Array.isArray(t)?Ns(t[0],Vs(t[1],t[2])):Ns(t,Vs(e,r))}function Ns(t,e){return cl(t,(r,i,n,s)=>{let o=i.exec(r);if(o)return o.$$=r.slice(o[0].length),o.dark=s,e(o,n)})}function cl(t,e){let r=dt(t).map(jp);return(i,n,s)=>{for(let o of r){let a=e(i,o,n,s);if(a)return a}}}function jp(t){return typeof t=="string"?RegExp("^"+t+(t.includes("$")||t.slice(-1)=="-"?"":"$")):t}function pl(t,e){let r=Ws(t),i=function({theme:l,darkMode:h,darkColor:c=nn,variants:p,rules:u,hash:f,stringify:m,ignorelist:g,finalize:d}){let y=new Map,v=new Map,b=new Map,_=new Map,x=cl(g,(w,I)=>I.test(w));p.push(["dark",Array.isArray(h)||h=="class"?`${dt(h)[1]||".dark"} &`:typeof h=="string"&&h!="media"?h:"@media (prefers-color-scheme:dark)"]);let T=typeof f=="function"?w=>f(w,Qi):f?Qi:Xa;T!==Xa&&d.push(w=>({...w,n:w.n&&T(w.n),d:w.d?.replace(/--(tw(?:-[\w-]+)?)\b/g,(I,E)=>"--"+T(E).replace("#",""))}));let S={theme:function({extend:w={},...I}){let E={},M={get colors(){return k("colors")},theme:k,negative(){return{}},breakpoints(P){let D={};for(let O in P)typeof P[O]=="string"&&(D["screen-"+O]=P[O]);return D}};return k;function k(P,D,O,F){if(P){if({1:P,2:F}=/^(\S+?)(?:\s*\/\s*([^/]+))?$/.exec(P)||[,P],/[.[]/.test(P)){let z=[];P.replace(/\[([^\]]+)\]|([^.[]+)/g,(N,G,V=G)=>z.push(V)),P=z.shift(),O=D,D=z.join("-")}let $=E[P]||Object.assign(Object.assign(E[P]={},C(I,P)),C(w,P));if(D==null)return $;D||(D="DEFAULT");let R=$[D]??D.split("-").reduce((z,N)=>z?.[N],$)??O;return F?oe(R,{opacityValue:Hs(F,k)}):R}let A={};for(let $ of[...Object.keys(I),...Object.keys(w)])A[$]=k($);return A}function C(P,D){let O=P[D];return typeof O=="function"&&(O=O(M)),O&&/color|fill|stroke/i.test(D)?function F(A,$=[]){let R={};for(let z in A){let N=A[z],G=[...$,z];R[G.join("-")]=N,z=="DEFAULT"&&(G=$,R[$.join("-")]=N),typeof N=="object"&&Object.assign(R,F(N,G))}return R}(O):O}}(l),e:rl,h:T,s(w,I){return m(w,I,S)},d(w,I,E){return c(w,I,S,E)},v(w){return y.has(w)||y.set(w,el(w,p,v,zp,S)||"&:"+w),y.get(w)},r(w,I){let E=JSON.stringify([w,I]);return b.has(E)||b.set(E,!x(w,S)&&el(w,u,_,Np,S,I)),b.get(E)},f(w){return d.reduce((I,E)=>E(I,S),w)}};return S}(r),n=new Map,s=[],o=new Set;e.resume(l=>n.set(l,l),(l,h)=>{e.insert(l,s.length,h),s.push(h),o.add(l)});function a(l){let h=i.f(l),c=Ls(h);if(c&&!o.has(c)){o.add(c);let p=sl(s,l);e.insert(c,p,l),s.splice(p,0,l)}return h.n}return Object.defineProperties(function(h){if(!n.size)for(let p of dt(r.preflight))typeof p=="function"&&(p=p(i)),p&&(typeof p=="string"?qs("",St.b,en(p),i,St.b,[],!1,!0):al(p,{},i,St.b)).forEach(a);h=""+h;let c=n.get(h);if(!c){let p=new Set;for(let u of tn(en(h),i))p.add(u.c).add(a(u));c=[...p].filter(Boolean).join(" "),n.set(h,c).set(c,c)}return c},Object.getOwnPropertyDescriptors({get target(){return e.target},theme:i.theme,config:r,snapshot(){let l=e.snapshot(),h=new Set(o),c=new Map(n),p=[...s];return()=>{l(),o=h,n=c,s=p}},clear(){e.clear(),o=new Set,n=new Map,s=[]},destroy(){this.clear(),e.destroy()}}))}function Gp(t,e){return t!=e&&""+t.split(" ").sort()!=""+e.split(" ").sort()}function ul(t){let e=new MutationObserver(r);return{observe(n){e.observe(n,{attributeFilter:["class"],subtree:!0,childList:!0}),i(n),r([{target:n,type:""}])},disconnect(){e.disconnect()}};function r(n){for(let{type:s,target:o}of n)if(s[0]=="a")i(o);else for(let a of o.querySelectorAll("[class]"))i(a);e.takeRecords()}function i(n){let s,o=n.getAttribute?.("class");o&&Gp(o,s=t(o))&&n.setAttribute("class",s)}}function Hp(t){let e=document.querySelector(t||'style[data-twind=""]');return(!e||e.tagName!="STYLE")&&(e=document.createElement("style"),document.head.prepend(e)),e.dataset.twind="claimed",e}function sn(t){let e=t?.cssRules?t:(t&&typeof t!="string"?t:Hp(t)).sheet;return{target:e,snapshot(){let r=Array.from(e.cssRules,i=>i.cssText);return()=>{this.clear(),r.forEach(this.insert)}},clear(){for(let r=e.cssRules.length;r--;)e.deleteRule(r)},destroy(){e.ownerNode?.remove()},insert(r,i){try{e.insertRule(r,i)}catch{e.insertRule(":root{}",i)}},resume:nn}}var hi={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},columns:{auto:"auto","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",...Kt(4,"rem",4,.5,.5),...Kt(12,"rem",4,5),14:"3.5rem",...Kt(64,"rem",4,16,4),72:"18rem",80:"20rem",96:"24rem"},durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0,0,0.2,1) infinite",pulse:"pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1/1",video:"16/9"},backdropBlur:it("blur"),backdropBrightness:it("brightness"),backdropContrast:it("contrast"),backdropGrayscale:it("grayscale"),backdropHueRotate:it("hueRotate"),backdropInvert:it("invert"),backdropOpacity:it("opacity"),backdropSaturate:it("saturate"),backdropSepia:it("sepia"),backgroundColor:it("colors"),backgroundImage:{none:"none"},backgroundOpacity:it("opacity"),backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{none:"none",0:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{...Kt(200,"",100,0,50),...Kt(110,"",100,90,5),75:"0.75",125:"1.25"},borderColor:({theme:t})=>({DEFAULT:t("colors.gray.200","currentColor"),...t("colors")}),borderOpacity:it("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","1/2":"50%",full:"9999px"},borderSpacing:it("spacing"),borderWidth:{DEFAULT:"1px",...ae(8,"px")},boxShadow:{sm:"0 1px 2px 0 rgba(0,0,0,0.05)",DEFAULT:"0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1)",md:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)",lg:"0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)",xl:"0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)","2xl":"0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)",none:"0 0 #0000"},boxShadowColor:it("colors"),caretColor:it("colors"),accentColor:({theme:t})=>({auto:"auto",...t("colors")}),contrast:{...Kt(200,"",100,0,50),75:"0.75",125:"1.25"},content:{none:"none"},divideColor:it("borderColor"),divideOpacity:it("borderOpacity"),divideWidth:it("borderWidth"),dropShadow:{sm:"0 1px 1px rgba(0,0,0,0.05)",DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"},fill:({theme:t})=>({...t("colors"),none:"none"}),grayscale:{DEFAULT:"100%",0:"0"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{DEFAULT:"100%",0:"0"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:t})=>({...t("spacing"),...li(2,6),...li(12,12),auto:"auto",full:"100%"}),flexGrow:{DEFAULT:1,0:0},flexShrink:{DEFAULT:1,0:0},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:it("spacing"),gradientColorStops:it("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridColumn:{auto:"auto","span-full":"1 / -1"},gridRow:{auto:"auto","span-full":"1 / -1"},gridTemplateColumns:{none:"none"},gridTemplateRows:{none:"none"},height:({theme:t})=>({...t("spacing"),...li(2,6),min:"min-content",max:"max-content",fit:"fit-content",auto:"auto",full:"100%",screen:"100vh"}),inset:({theme:t})=>({...t("spacing"),...li(2,4),auto:"auto",full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{...Kt(10,"rem",4,3),none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},margin:({theme:t})=>({auto:"auto",...t("spacing")}),maxHeight:({theme:t})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh",...t("spacing")}),maxWidth:({theme:t,breakpoints:e})=>({...e(t("screens")),none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch"}),minHeight:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},opacity:{...Kt(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0"},padding:it("spacing"),placeholderColor:it("colors"),placeholderOpacity:it("opacity"),outlineColor:it("colors"),outlineOffset:ae(8,"px"),outlineWidth:ae(8,"px"),ringColor:({theme:t})=>({...t("colors"),DEFAULT:"#3b82f6"}),ringOffsetColor:it("colors"),ringOffsetWidth:ae(8,"px"),ringOpacity:({theme:t})=>({...t("opacity"),DEFAULT:"0.5"}),ringWidth:{DEFAULT:"3px",...ae(8,"px")},rotate:{...ae(2,"deg"),...ae(12,"deg",3),...ae(180,"deg",45)},saturate:Kt(200,"",100,0,50),scale:{...Kt(150,"",100,0,50),...Kt(110,"",100,90,5),75:"0.75",125:"1.25"},scrollMargin:it("spacing"),scrollPadding:it("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{...ae(2,"deg"),...ae(12,"deg",3)},space:it("spacing"),stroke:({theme:t})=>({...t("colors"),none:"none"}),strokeWidth:Kt(2),textColor:it("colors"),textDecorationColor:it("colors"),textDecorationThickness:{"from-font":"from-font",auto:"auto",...ae(8,"px")},textUnderlineOffset:{auto:"auto",...ae(8,"px")},textIndent:it("spacing"),textOpacity:it("opacity"),transitionDuration:({theme:t})=>({...t("durations"),DEFAULT:"150ms"}),transitionDelay:it("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",colors:"color,background-color,border-color,text-decoration-color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",linear:"linear",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},translate:({theme:t})=>({...t("spacing"),...li(2,4),full:"100%"}),width:({theme:t})=>({min:"min-content",max:"max-content",fit:"fit-content",screen:"100vw",...t("flexBasis")}),willChange:{scroll:"scroll-position"},zIndex:{...Kt(50,"",1,0,10),auto:"auto"}};function li(t,e){let r={};do for(var i=1;i<t;i++)r[`${i}/${t}`]=Number((i/t*100).toFixed(6))+"%";while(++t<=e);return r}function ae(t,e,r=0){let i={};for(;r<=t;r=2*r||1)i[r]=r+e;return i}function Kt(t,e="",r=1,i=0,n=1,s={}){for(;i<=t;i+=n)s[i]=i/r+e;return s}function it(t){return({theme:e})=>e(t)}var fl={"*,::before,::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"theme(borderColor.DEFAULT, currentColor)"},"::before,::after":{"--tw-content":"''"},html:{lineHeight:1.5,WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:4,fontFamily:`theme(fontFamily.sans, ${hi.fontFamily.sans})`,fontFeatureSettings:"theme(fontFamily.sans[1].fontFeatureSettings, normal)"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b,strong":{fontWeight:"bolder"},"code,kbd,samp,pre":{fontFamily:`theme(fontFamily.mono, ${hi.fontFamily.mono})`,fontFeatureSettings:"theme(fontFamily.mono[1].fontFeatureSettings, normal)",fontSize:"1em"},small:{fontSize:"80%"},"sub,sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",lineHeight:"inherit",color:"inherit",margin:"0",padding:"0"},"button,select":{textTransform:"none"},"button,[type='button'],[type='reset'],[type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre":{margin:"0"},fieldset:{margin:"0",padding:"0"},legend:{padding:"0"},"ol,ul,menu":{listStyle:"none",margin:"0",padding:"0"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{opacity:1,color:"theme(colors.gray.400, #9ca3af)"},'button,[role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"},"[hidden]":{display:"none"}};var bl=[B("\\[([-\\w]+):(.+)]",({1:t,2:e},r)=>({"@layer overrides":{"&":{[t]:be(`[${e}]`,"",r)}}})),B("(group|peer)([~/][^-[]+)?",({input:t},{h:e})=>[{c:e(t)}]),L("aspect-","aspectRatio"),B("container",(t,{theme:e})=>{let{screens:r=e("screens"),center:i,padding:n}=e("container"),s={width:"100%",marginRight:i&&"auto",marginLeft:i&&"auto",...o("xs")};for(let a in r){let l=r[a];typeof l=="string"&&(s[rn(l)]={"&":{maxWidth:l,...o(a)}})}return s;function o(a){let l=n&&(typeof n=="string"?n:n[a]||n.DEFAULT);if(l)return{paddingRight:l,paddingLeft:l}}}),L("content-","content",({_:t})=>({"--tw-content":t,content:"var(--tw-content)"})),B("(?:box-)?decoration-(slice|clone)","boxDecorationBreak"),B("box-(border|content)","boxSizing",({1:t})=>t+"-box"),B("hidden",{display:"none"}),B("table-(auto|fixed)","tableLayout"),B(["(block|flex|table|grid|inline|contents|flow-root|list-item)","(inline-(block|flex|table|grid))","(table-(caption|cell|column|row|(column|row|footer|header)-group))"],"display"),"(float)-(left|right|none)","(clear)-(left|right|none|both)","(overflow(?:-[xy])?)-(auto|hidden|clip|visible|scroll)","(isolation)-(auto)",B("isolate","isolation"),B("object-(contain|cover|fill|none|scale-down)","objectFit"),L("object-","objectPosition"),B("object-(top|bottom|center|(left|right)(-(top|bottom))?)","objectPosition",on),B("overscroll(-[xy])?-(auto|contain|none)",({1:t="",2:e})=>({["overscroll-behavior"+t]:e})),B("(static|fixed|absolute|relative|sticky)","position"),L("-?inset(-[xy])?(?:$|-)","inset",({1:t,_:e})=>({top:t!="-x"&&e,right:t!="-y"&&e,bottom:t!="-x"&&e,left:t!="-y"&&e})),L("-?(top|bottom|left|right)(?:$|-)","inset"),B("(visible|collapse)","visibility"),B("invisible",{visibility:"hidden"}),L("-?z-","zIndex"),B("flex-((row|col)(-reverse)?)","flexDirection",dl),B("flex-(wrap|wrap-reverse|nowrap)","flexWrap"),L("(flex-(?:grow|shrink))(?:$|-)"),L("(flex)-"),L("grow(?:$|-)","flexGrow"),L("shrink(?:$|-)","flexShrink"),L("basis-","flexBasis"),L("-?(order)-"),"-?(order)-(\\d+)",L("grid-cols-","gridTemplateColumns"),B("grid-cols-(\\d+)","gridTemplateColumns",vl),L("col-","gridColumn"),B("col-(span)-(\\d+)","gridColumn",yl),L("col-start-","gridColumnStart"),B("col-start-(auto|\\d+)","gridColumnStart"),L("col-end-","gridColumnEnd"),B("col-end-(auto|\\d+)","gridColumnEnd"),L("grid-rows-","gridTemplateRows"),B("grid-rows-(\\d+)","gridTemplateRows",vl),L("row-","gridRow"),B("row-(span)-(\\d+)","gridRow",yl),L("row-start-","gridRowStart"),B("row-start-(auto|\\d+)","gridRowStart"),L("row-end-","gridRowEnd"),B("row-end-(auto|\\d+)","gridRowEnd"),B("grid-flow-((row|col)(-dense)?)","gridAutoFlow",t=>on(dl(t))),B("grid-flow-(dense)","gridAutoFlow"),L("auto-cols-","gridAutoColumns"),L("auto-rows-","gridAutoRows"),L("gap-x(?:$|-)","gap","columnGap"),L("gap-y(?:$|-)","gap","rowGap"),L("gap(?:$|-)","gap"),"(justify-(?:items|self))-",B("justify-","justifyContent",ml),B("(content|items|self)-",t=>({["align-"+t[1]]:ml(t)})),B("(place-(content|items|self))-",({1:t,$$:e})=>({[t]:("wun".includes(e[3])?"space-":"")+e})),L("p([xytrbl])?(?:$|-)","padding",kr("padding")),L("-?m([xytrbl])?(?:$|-)","margin",kr("margin")),L("-?space-(x|y)(?:$|-)","space",({1:t,_:e})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${t}-reverse`]:"0",["margin-"+{y:"top",x:"left"}[t]]:`calc(${e} * calc(1 - var(--tw-space-${t}-reverse)))`,["margin-"+{y:"bottom",x:"right"}[t]]:`calc(${e} * var(--tw-space-${t}-reverse))`}})),B("space-(x|y)-reverse",({1:t})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${t}-reverse`]:"1"}})),L("w-","width"),L("min-w-","minWidth"),L("max-w-","maxWidth"),L("h-","height"),L("min-h-","minHeight"),L("max-h-","maxHeight"),L("font-","fontWeight"),L("font-","fontFamily",({_:t})=>typeof(t=dt(t))[1]=="string"?{fontFamily:de(t)}:{fontFamily:de(t[0]),...t[1]}),B("antialiased",{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}),B("subpixel-antialiased",{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"}),B("italic","fontStyle"),B("not-italic",{fontStyle:"normal"}),B("(ordinal|slashed-zero|(normal|lining|oldstyle|proportional|tabular)-nums|(diagonal|stacked)-fractions)",({1:t,2:e="",3:r})=>e=="normal"?{fontVariantNumeric:"normal"}:{["--tw-"+(r?"numeric-fraction":"pt".includes(e[0])?"numeric-spacing":e?"numeric-figure":t)]:t,fontVariantNumeric:"var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)",...Ge({"--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)"})}),L("tracking-","letterSpacing"),L("leading-","lineHeight"),B("list-(inside|outside)","listStylePosition"),L("list-","listStyleType"),B("list-","listStyleType"),L("placeholder-opacity-","placeholderOpacity",({_:t})=>({"&::placeholder":{"--tw-placeholder-opacity":t}})),Et("placeholder-",{property:"color",selector:"&::placeholder"}),B("text-(left|center|right|justify|start|end)","textAlign"),B("text-(ellipsis|clip)","textOverflow"),L("text-opacity-","textOpacity","--tw-text-opacity"),Et("text-",{property:"color"}),L("text-","fontSize",({_:t})=>typeof t=="string"?{fontSize:t}:{fontSize:t[0],...typeof t[1]=="string"?{lineHeight:t[1]}:t[1]}),L("indent-","textIndent"),B("(overline|underline|line-through)","textDecorationLine"),B("no-underline",{textDecorationLine:"none"}),L("underline-offset-","textUnderlineOffset"),Et("decoration-",{section:"textDecorationColor",opacityVariable:!1,opacitySection:"opacity"}),L("decoration-","textDecorationThickness"),B("decoration-","textDecorationStyle"),B("(uppercase|lowercase|capitalize)","textTransform"),B("normal-case",{textTransform:"none"}),B("truncate",{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),B("align-","verticalAlign"),B("whitespace-","whiteSpace"),B("break-normal",{wordBreak:"normal",overflowWrap:"normal"}),B("break-words",{overflowWrap:"break-word"}),B("break-all",{wordBreak:"break-all"}),B("break-keep",{wordBreak:"keep-all"}),Et("caret-",{opacityVariable:!1,opacitySection:"opacity"}),Et("accent-",{opacityVariable:!1,opacitySection:"opacity"}),B("bg-gradient-to-([trbl]|[tb][rl])","backgroundImage",({1:t})=>`linear-gradient(to ${rr(t," ")},var(--tw-gradient-stops))`),Et("from-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:t})=>({"--tw-gradient-from":t.value,"--tw-gradient-to":t.color({opacityValue:"0"}),"--tw-gradient-stops":"var(--tw-gradient-from),var(--tw-gradient-to)"})),Et("via-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:t})=>({"--tw-gradient-to":t.color({opacityValue:"0"}),"--tw-gradient-stops":`var(--tw-gradient-from),${t.value},var(--tw-gradient-to)`})),Et("to-",{section:"gradientColorStops",property:"--tw-gradient-to",opacityVariable:!1,opacitySection:"opacity"}),B("bg-(fixed|local|scroll)","backgroundAttachment"),B("bg-origin-(border|padding|content)","backgroundOrigin",({1:t})=>t+"-box"),B(["bg-(no-repeat|repeat(-[xy])?)","bg-repeat-(round|space)"],"backgroundRepeat"),B("bg-blend-","backgroundBlendMode"),B("bg-clip-(border|padding|content|text)","backgroundClip",({1:t})=>t+(t=="text"?"":"-box")),L("bg-opacity-","backgroundOpacity","--tw-bg-opacity"),Et("bg-",{section:"backgroundColor"}),L("bg-","backgroundImage"),L("bg-","backgroundPosition"),B("bg-(top|bottom|center|(left|right)(-(top|bottom))?)","backgroundPosition",on),L("bg-","backgroundSize"),L("rounded(?:$|-)","borderRadius"),L("rounded-([trbl]|[tb][rl])(?:$|-)","borderRadius",({1:t,_:e})=>{let r={t:["tl","tr"],r:["tr","br"],b:["bl","br"],l:["bl","tl"]}[t]||[t,t];return{[`border-${rr(r[0])}-radius`]:e,[`border-${rr(r[1])}-radius`]:e}}),B("border-(collapse|separate)","borderCollapse"),L("border-opacity(?:$|-)","borderOpacity","--tw-border-opacity"),B("border-(solid|dashed|dotted|double|none)","borderStyle"),L("border-spacing(-[xy])?(?:$|-)","borderSpacing",({1:t,_:e})=>({...Ge({"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0"}),["--tw-border-spacing"+(t||"-x")]:e,["--tw-border-spacing"+(t||"-y")]:e,"border-spacing":"var(--tw-border-spacing-x) var(--tw-border-spacing-y)"})),Et("border-([xytrbl])-",{section:"borderColor"},kr("border","Color")),Et("border-"),L("border-([xytrbl])(?:$|-)","borderWidth",kr("border","Width")),L("border(?:$|-)","borderWidth"),L("divide-opacity(?:$|-)","divideOpacity",({_:t})=>({"&>:not([hidden])~:not([hidden])":{"--tw-divide-opacity":t}})),B("divide-(solid|dashed|dotted|double|none)",({1:t})=>({"&>:not([hidden])~:not([hidden])":{borderStyle:t}})),B("divide-([xy]-reverse)",({1:t})=>({"&>:not([hidden])~:not([hidden])":{["--tw-divide-"+t]:"1"}})),L("divide-([xy])(?:$|-)","divideWidth",({1:t,_:e})=>{let r={x:"lr",y:"tb"}[t];return{"&>:not([hidden])~:not([hidden])":{[`--tw-divide-${t}-reverse`]:"0",[`border-${rr(r[0])}Width`]:`calc(${e} * calc(1 - var(--tw-divide-${t}-reverse)))`,[`border-${rr(r[1])}Width`]:`calc(${e} * var(--tw-divide-${t}-reverse))`}}}),Et("divide-",{property:"borderColor",selector:"&>:not([hidden])~:not([hidden])"}),L("ring-opacity(?:$|-)","ringOpacity","--tw-ring-opacity"),Et("ring-offset-",{property:"--tw-ring-offset-color",opacityVariable:!1}),L("ring-offset(?:$|-)","ringOffsetWidth","--tw-ring-offset-width"),B("ring-inset",{"--tw-ring-inset":"inset"}),Et("ring-",{property:"--tw-ring-color"}),L("ring(?:$|-)","ringWidth",({_:t},{theme:e})=>({...Ge({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","&":{"--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":e("ringOffsetWidth","","0px"),"--tw-ring-offset-color":oe(e("ringOffsetColor","","#fff")),"--tw-ring-color":oe(e("ringColor","","#93c5fd"),{opacityVariable:"--tw-ring-opacity"}),"--tw-ring-opacity":e("ringOpacity","","0.5")}}),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(${t} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),Et("shadow-",{section:"boxShadowColor",opacityVariable:!1,opacitySection:"opacity"},({_:t})=>({"--tw-shadow-color":t.value,"--tw-shadow":"var(--tw-shadow-colored)"})),L("shadow(?:$|-)","boxShadow",({_:t})=>({...Ge({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000"}),"--tw-shadow":de(t),"--tw-shadow-colored":de(t).replace(/([^,]\s+)(?:#[a-f\d]+|(?:(?:hsl|rgb)a?|hwb|lab|lch|color|var)\(.+?\)|[a-z]+)(,|$)/g,"$1var(--tw-shadow-color)$2"),boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),L("(opacity)-"),B("mix-blend-","mixBlendMode"),...gl(),...gl("backdrop-"),L("transition(?:$|-)","transitionProperty",(t,{theme:e})=>({transitionProperty:de(t),transitionTimingFunction:t._=="none"?void 0:de(e("transitionTimingFunction","")),transitionDuration:t._=="none"?void 0:de(e("transitionDuration",""))})),L("duration(?:$|-)","transitionDuration","transitionDuration",de),L("ease(?:$|-)","transitionTimingFunction","transitionTimingFunction",de),L("delay(?:$|-)","transitionDelay","transitionDelay",de),L("animate(?:$|-)","animation",(t,{theme:e,h:r,e:i})=>{let n=de(t),s=n.split(" "),o=e("keyframes",s[0]);return o?{["@keyframes "+(s[0]=i(r(s[0])))]:o,animation:s.join(" ")}:{animation:n}}),"(transform)-(none)",B("transform",Zs),B("transform-(cpu|gpu)",({1:t})=>({"--tw-transform":_l(t=="gpu")})),L("scale(-[xy])?-","scale",({1:t,_:e})=>({["--tw-scale"+(t||"-x")]:e,["--tw-scale"+(t||"-y")]:e,...Zs()})),L("-?(rotate)-","rotate",Ys),L("-?(translate-[xy])-","translate",Ys),L("-?(skew-[xy])-","skew",Ys),B("origin-(center|((top|bottom)(-(left|right))?)|left|right)","transformOrigin",on),"(appearance)-",L("(columns)-"),"(columns)-(\\d+)","(break-(?:before|after|inside))-",L("(cursor)-"),"(cursor)-",B("snap-(none)","scroll-snap-type"),B("snap-(x|y|both)",({1:t})=>({...Ge({"--tw-scroll-snap-strictness":"proximity"}),"scroll-snap-type":t+" var(--tw-scroll-snap-strictness)"})),B("snap-(mandatory|proximity)","--tw-scroll-snap-strictness"),B("snap-(?:(start|end|center)|align-(none))","scroll-snap-align"),B("snap-(normal|always)","scroll-snap-stop"),B("scroll-(auto|smooth)","scroll-behavior"),L("scroll-p([xytrbl])?(?:$|-)","padding",kr("scroll-padding")),L("-?scroll-m([xytrbl])?(?:$|-)","scroll-margin",kr("scroll-margin")),B("touch-(auto|none|manipulation)","touch-action"),B("touch-(pinch-zoom|pan-(?:(x|left|right)|(y|up|down)))",({1:t,2:e,3:r})=>({...Ge({"--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-touch-action":"var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)"}),[`--tw-${e?"pan-x":r?"pan-y":t}`]:t,"touch-action":"var(--tw-touch-action)"})),B("outline-none",{outline:"2px solid transparent","outline-offset":"2px"}),B("outline",{outlineStyle:"solid"}),B("outline-(dashed|dotted|double)","outlineStyle"),L("-?(outline-offset)-"),Et("outline-",{opacityVariable:!1,opacitySection:"opacity"}),L("outline-","outlineWidth"),"(pointer-events)-",L("(will-change)-"),"(will-change)-",["resize(?:-(none|x|y))?","resize",({1:t})=>({x:"horizontal",y:"vertical"})[t]||t||"both"],B("select-(none|text|all|auto)","userSelect"),Et("fill-",{section:"fill",opacityVariable:!1,opacitySection:"opacity"}),Et("stroke-",{section:"stroke",opacityVariable:!1,opacitySection:"opacity"}),L("stroke-","strokeWidth"),B("sr-only",{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"}),B("not-sr-only",{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"})];function on(t){return(typeof t=="string"?t:t[1]).replace(/-/g," ").trim()}function dl(t){return(typeof t=="string"?t:t[1]).replace("col","column")}function rr(t,e="-"){let r=[];for(let i of t)r.push({t:"top",r:"right",b:"bottom",l:"left"}[i]);return r.join(e)}function de(t){return t&&""+(t._||t)}function ml({$$:t}){return({r:"flex-","":"flex-",w:"space-",u:"space-",n:"space-"}[t[3]||""]||"")+t}function kr(t,e=""){return({1:r,_:i})=>{let n={x:"lr",y:"tb"}[r]||r+r;return n?{...ai(t+"-"+rr(n[0])+e,i),...ai(t+"-"+rr(n[1])+e,i)}:ai(t+e,i)}}function gl(t=""){let e=["blur","brightness","contrast","grayscale","hue-rotate","invert",t&&"opacity","saturate","sepia",!t&&"drop-shadow"].filter(Boolean),r={};for(let i of e)r[`--tw-${t}${i}`]="var(--tw-empty,/*!*/ /*!*/)";return r={...Ge(r),[`${t}filter`]:e.map(i=>`var(--tw-${t}${i})`).join(" ")},[`(${t}filter)-(none)`,B(`${t}filter`,r),...e.map(i=>L(`${i[0]=="h"?"-?":""}(${t}${i})(?:$|-)`,i,({1:n,_:s})=>({[`--tw-${n}`]:dt(s).map(o=>`${i}(${o})`).join(" "),...r})))]}function Ys({1:t,_:e}){return{["--tw-"+t]:e,...Zs()}}function Zs(){return{...Ge({"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-transform":_l()}),transform:"var(--tw-transform)"}}function _l(t){return[t?"translate3d(var(--tw-translate-x),var(--tw-translate-y),0)":"translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y))","rotate(var(--tw-rotate))","skewX(var(--tw-skew-x))","skewY(var(--tw-skew-y))","scaleX(var(--tw-scale-x))","scaleY(var(--tw-scale-y))"].join(" ")}function yl({1:t,2:e}){return`${t} ${e} / ${t} ${e}`}function vl({1:t}){return`repeat(${t},minmax(0,1fr))`}function Ge(t){return{"@layer defaults":{"*,::before,::after":t,"::backdrop":t}}}var wl=[["sticky","@supports ((position: -webkit-sticky) or (position:sticky))"],["motion-reduce","@media (prefers-reduced-motion:reduce)"],["motion-safe","@media (prefers-reduced-motion:no-preference)"],["print","@media print"],["(portrait|landscape)",({1:t})=>`@media (orientation:${t})`],["contrast-(more|less)",({1:t})=>`@media (prefers-contrast:${t})`],["(first-(letter|line)|placeholder|backdrop|before|after)",({1:t})=>`&::${t}`],["(marker|selection)",({1:t})=>`& *::${t},&::${t}`],["file","&::file-selector-button"],["(first|last|only)",({1:t})=>`&:${t}-child`],["even","&:nth-child(2n)"],["odd","&:nth-child(odd)"],["open","&[open]"],["(aria|data)-",({1:t,$$:e},r)=>e&&`&[${t}-${r.theme(t,e)||be(e,"",r)||`${e}="true"`}]`],["((group|peer)(~[^-[]+)?)(-\\[(.+)]|[-[].+?)(\\/.+)?",({2:t,3:e="",4:r,5:i="",6:n=e},{e:s,h:o,v:a})=>{let l=Er(i)||(r[0]=="["?r:a(r.slice(1)));return`${(l.includes("&")?l:"&"+l).replace(/&/g,`:merge(.${s(o(t+n))})`)}${t[0]=="p"?"~":" "}&`}],["(ltr|rtl)",({1:t})=>`[dir="${t}"] &`],["supports-",({$$:t},e)=>{if(t&&(t=e.theme("supports",t)||be(t,"",e)),t)return t.includes(":")||(t+=":var(--tw)"),/^\w*\s*\(/.test(t)||(t=`(${t})`),`@supports ${t.replace(/\b(and|or|not)\b/g," $1 ").trim()}`}],["max-",({$$:t},e)=>{if(t&&(t=e.theme("screens",t)||be(t,"",e)),typeof t=="string")return`@media not all and (min-width:${t})`}],["min-",({$$:t},e)=>(t&&(t=be(t,"",e)),t&&`@media (min-width:${t})`)],[/^\[(.+)]$/,({1:t})=>/[&@]/.test(t)&&Er(t).replace(/[}]+$/,"").split("{")]];function xl({colors:t,disablePreflight:e}={}){return{preflight:e?void 0:fl,theme:{...hi,colors:{inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",...t}},variants:wl,rules:bl,finalize(r){return r.n&&r.d&&r.r.some(i=>/^&::(before|after)$/.test(i))&&!/(^|;)content:/.test(r.d)?{...r,d:"content:var(--tw-content);"+r.d}:r}}}var qp={50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},Up={50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},Wp={50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},Yp={50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},Zp={50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},Xp={50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},Jp={50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},Kp={50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},Qp={50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},tu={50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},eu={50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},ru={50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},iu={50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},nu={50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},su={50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},ou={50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},au={50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},lu={50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},hu={50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},cu={50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},pu={50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},uu={50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},Sl={__proto__:null,slate:qp,gray:Up,zinc:Wp,neutral:Yp,stone:Zp,red:Xp,orange:Jp,amber:Kp,yellow:Qp,lime:tu,green:eu,emerald:ru,teal:iu,cyan:nu,sky:su,blue:ou,indigo:au,violet:lu,purple:hu,fuchsia:cu,pink:pu,rose:uu};function El({disablePreflight:t}={}){return xl({colors:Sl,disablePreflight:t})}var fu=new Map([["align-self","-ms-grid-row-align"],["color-adjust","-webkit-print-color-adjust"],["column-gap","grid-column-gap"],["forced-color-adjust","-ms-high-contrast-adjust"],["gap","grid-gap"],["grid-template-columns","-ms-grid-columns"],["grid-template-rows","-ms-grid-rows"],["justify-self","-ms-grid-column-align"],["margin-inline-end","-webkit-margin-end"],["margin-inline-start","-webkit-margin-start"],["mask-border","-webkit-mask-box-image"],["mask-border-outset","-webkit-mask-box-image-outset"],["mask-border-slice","-webkit-mask-box-image-slice"],["mask-border-source","-webkit-mask-box-image-source"],["mask-border-repeat","-webkit-mask-box-image-repeat"],["mask-border-width","-webkit-mask-box-image-width"],["overflow-wrap","word-wrap"],["padding-inline-end","-webkit-padding-end"],["padding-inline-start","-webkit-padding-start"],["print-color-adjust","color-adjust"],["row-gap","grid-row-gap"],["scroll-margin-bottom","scroll-snap-margin-bottom"],["scroll-margin-left","scroll-snap-margin-left"],["scroll-margin-right","scroll-snap-margin-right"],["scroll-margin-top","scroll-snap-margin-top"],["scroll-margin","scroll-snap-margin"],["text-combine-upright","-ms-text-combine-horizontal"]]);function kl(t){return fu.get(t)}function Pl(t){var e=/^(?:(text-(?:decoration$|e|or|si)|back(?:ground-cl|d|f)|box-d|mask(?:$|-[ispro]|-cl)|pr|hyphena|flex-d)|(tab-|column(?!-s)|text-align-l)|(ap)|u|hy)/i.exec(t);return e?e[1]?1:e[2]?2:e[3]?3:5:0}function Al(t,e){var r=/^(?:(pos)|(cli)|(background-i)|(flex(?:$|-b)|(?:max-|min-)?(?:block-s|inl|he|widt))|dis)/i.exec(t);return r?r[1]?/^sti/i.test(e)?1:0:r[2]?/^pat/i.test(e)?1:0:r[3]?/^image-/i.test(e)?1:0:r[4]?e[3]==="-"?2:0:/^(?:inline-)?grid$/i.test(e)?4:0:0}var du=[["-webkit-",1],["-moz-",2],["-ms-",4]];function Cl(){return({stringify:t})=>({stringify(e,r,i){let n="",s=kl(e);s&&(n+=t(s,r,i)+";");let o=Pl(e),a=Al(e,r);for(let l of du)o&l[1]&&(n+=t(l[0]+e,r,i)+";"),a&l[1]&&(n+=t(e,l[0]+r,i)+";");return n+t(e,r,i)}})}function Ml(){return{rules:[["line-clamp-none",{"-webkit-line-clamp":"unset"}],["line-clamp-",Us("lineClamp",({_:t})=>Tl(t))],["line-clamp-(\\d+)",({1:t})=>Tl(t)]]}}function Tl(t){return{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":`${t}`}}function Dl({className:t="prose",defaultColor:e="gray",extend:r={},colors:i={}}={}){return i={body:"700",headings:"900",lead:"600",links:"900",bold:"900",counters:"500",bullets:"300",hr:"200",quotes:"900","quote-borders":"200",captions:"500",code:"900","pre-code":"200","pre-bg":"800","th-borders":"300","td-borders":"200",...i,dark:i.dark===null?null:{body:"300",headings:"#fff",lead:"400",links:"#fff",bold:"#fff",counters:"400",bullets:"600",hr:"700",quotes:"100","quote-borders":"700",captions:"400",code:"#fff","pre-code":"300","pre-bg":"rgb(0 0 0 / 50%)","th-borders":"600","td-borders":"700",...i.dark}},{variants:[["headings","h1,h2,h3,h4,h5,h6,th"],["h1"],["h2"],["h3"],["h4"],["h5"],["h6"],["p"],["a"],["blockquote"],["figure"],["figcaption"],["strong"],["em"],["code"],["pre"],["ol"],["ul"],["li"],["table"],["thead"],["tr"],["th"],["td"],["img"],["video"],["hr"],["lead",".lead"]].map(([s,o=s])=>[`${t}-${s}`,(a,l)=>Ol(t,o[0]=="."?"."+l.e(l.h(o.slice(1))):o,l,h=>`& :is(${h.trim()})`)]),rules:[[`(lead|not-${t})`,({1:s},{h:o})=>[{c:o(s)}]],[`${t}-invert`,{"@layer base":{"--tw-prose-body":"var(--tw-prose-invert-body)","--tw-prose-headings":"var(--tw-prose-invert-headings)","--tw-prose-lead":"var(--tw-prose-invert-lead)","--tw-prose-links":"var(--tw-prose-invert-links)","--tw-prose-bold":"var(--tw-prose-invert-bold)","--tw-prose-counters":"var(--tw-prose-invert-counters)","--tw-prose-bullets":"var(--tw-prose-invert-bullets)","--tw-prose-hr":"var(--tw-prose-invert-hr)","--tw-prose-quotes":"var(--tw-prose-invert-quotes)","--tw-prose-quote-borders":"var(--tw-prose-invert-quote-borders)","--tw-prose-captions":"var(--tw-prose-invert-captions)","--tw-prose-code":"var(--tw-prose-invert-code)","--tw-prose-pre-code":"var(--tw-prose-invert-pre-code)","--tw-prose-pre-bg":"var(--tw-prose-invert-pre-bg)","--tw-prose-th-borders":"var(--tw-prose-invert-th-borders)","--tw-prose-td-borders":"var(--tw-prose-invert-td-borders)"}}],[t+"-",({$$:s},o)=>{let a=Il(o.theme("fontSize",s));return a&&{"@layer components":a}}],[t+"-",({$$:s},o)=>n(s,o)],[t,(s,o)=>({...n(e,o),"@layer base":[Fl(t,o,{a:{color:"var(--tw-prose-links)",textDecorationLine:"underline",fontWeight:"500"},strong:{color:"var(--tw-prose-bold)",fontWeight:"600"},"a strong,blockquote strong,thead th strong":{color:"inherit"},ul:{listStyleType:"disc"},ol:{listStyleType:"decimal"},'ol[type="A"]':{listStyleType:"upper-alpha"},'ol[type="a"]':{listStyleType:"lower-alpha"},'ol[type="A" s]':{listStyleType:"upper-alpha"},'ol[type="a" s]':{listStyleType:"lower-alpha"},'ol[type="I"]':{listStyleType:"upper-roman"},'ol[type="i"]':{listStyleType:"lower-roman"},'ol[type="I" s]':{listStyleType:"upper-roman"},'ol[type="i" s]':{listStyleType:"lower-roman"},'ol[type="1"]':{listStyleType:"decimal"},"ol,ul":{marginTop:H(20,16),marginBottom:H(20,16),paddingLeft:H(26,16)},li:{marginTop:H(8,16),marginBottom:H(8,16)},"ol>li,ul>li":{paddingLeft:H(6,16)},">ul>li p":{marginTop:H(12,16),marginBottom:H(12,16)},">ul>li>*:first-child,>ol>li>*:last-child":{marginTop:H(20,16)},">ul>li>*:last-child,>ol>li>*:last-child":{marginBottom:H(20,16)},"ol>li::marker":{fontWeight:"400",color:"var(--tw-prose-counters)"},"ul>li::marker":{color:"var(--tw-prose-bullets)"},"ul ul,ul ol,ol ul,ol ol":{marginTop:H(12,16),marginBottom:H(12,16)},hr:{borderColor:"var(--tw-prose-hr)",borderTopWidth:"1",marginTop:H(48,16),marginBottom:H(48,16)},blockquote:{marginTop:H(32,20),marginBottom:H(32,20),paddingLeft:H(20,20),fontWeight:"500",fontStyle:"italic",color:"var(--tw-prose-quotes)",borderLeftWidth:"0.25rem",borderLeftColor:"var(--tw-prose-quote-borders)",quotes:'"\\201C""\\201D""\\2018""\\2019"'},"blockquote p:first-of-type::before":{content:"open-quote"},"blockquote p:last-of-type::after":{content:"close-quote"},p:{marginTop:H(20,16),marginBottom:H(20,16)},h1:{color:"var(--tw-prose-headings)",fontWeight:"800",fontSize:H(36,16),marginTop:"0",marginBottom:H(32,36),lineHeight:1.15},"h1 strong":{fontWeight:"900",color:"inherit"},h2:{color:"var(--tw-prose-headings)",fontWeight:"700",fontSize:H(24,16),marginTop:H(48,24),marginBottom:H(24,24),lineHeight:"1.35"},"h2 strong":{fontWeight:"800",color:"inherit"},h3:{color:"var(--tw-prose-headings)",fontWeight:"600",fontSize:H(20,16),marginTop:H(32,20),marginBottom:H(12,20),lineHeight:"1.6"},"h3 strong":{fontWeight:"700",color:"inherit"},h4:{color:"var(--tw-prose-headings)",fontWeight:"600",marginTop:H(24,16),marginBottom:H(8,16),lineHeight:"1.5"},"h4 strong":{fontWeight:"700",color:"inherit"},"hr+*,h2+*,h3+*,h4+*":{marginTop:"0"},"img,video,figure":{marginTop:H(32,16),marginBottom:H(32,16)},"figure>*":{marginTop:"0",marginBottom:"0"},figcaption:{color:"var(--tw-prose-captions)",fontSize:H(14,16),lineHeight:"1.4",marginTop:H(12,14)},code:{color:"var(--tw-prose-code)",fontWeight:"600",fontSize:H(14,16)},"code::before,code::after":{content:'"`"'},"h2 code":{fontSize:H(21,24)},"h3 code":{fontSize:H(18,20)},"a code,h1 code,h2 code,h3 code,h4 code,blockquote code,thead th code":{color:"inherit"},pre:{color:"var(--tw-prose-pre-code)",backgroundColor:"var(--tw-prose-pre-bg)",overflowX:"auto",fontWeight:"400",fontSize:H(14,16),lineHeight:"1.7",marginTop:H(24,14),marginBottom:H(24,14),borderRadius:"0.375rem",paddingTop:H(12,14),paddingRight:H(16,14),paddingBottom:H(12,14),paddingLeft:H(16,14)},"pre code":{backgroundColor:"transparent",borderWidth:"0",borderRadius:"0",padding:"0",fontWeight:"inherit",color:"inherit",fontSize:"inherit",fontFamily:"inherit",lineHeight:"inherit"},"pre code::before":{content:"none"},"pre code::after":{content:"none"},table:{width:"100%",tableLayout:"auto",textAlign:"left",marginTop:H(32,16),marginBottom:H(32,16),fontSize:H(14,16),lineHeight:"1.7"},thead:{borderBottomWidth:"1px",borderBottomColor:"var(--tw-prose-th-borders)"},"thead th":{color:"var(--tw-prose-headings)",fontWeight:"600",verticalAlign:"bottom",paddingRight:H(8,14),paddingBottom:H(8,14),paddingLeft:H(8,14)},"thead th:first-child":{paddingLeft:"0"},"thead th:last-child":{paddingRight:"0"},"tbody tr":{borderBottomWidth:"1px",borderBottomColor:"var(--tw-prose-td-borders)"},"tbody tr:last-child":{borderBottomWidth:"0"},"tbody td,tfoot td":{verticalAlign:"baseline",paddingTop:H(8,14),paddingRight:H(8,14),paddingBottom:H(8,14),paddingLeft:H(8,14)},"tbody td:first-child,tfoot td:first-child":{paddingLeft:"0"},"tbody td:last-child,tfoot td:last-child":{paddingRight:"0"},[`.${o.e(o.h("lead"))}`]:{color:"var(--tw-prose-lead)",fontSize:H(20,16),lineHeight:"1.6",marginTop:H(24,20),marginBottom:H(24,20)},">:first-child":{marginTop:"0"},">:last-child":{marginBottom:"0"}}),Fl(t,o,r)],"@layer components":{...Il(o.theme("fontSize","base")),color:"var(--tw-prose-body)",maxWidth:"theme(max-w.prose, 65ch)"}})]]};function n(s,o){let a={},l={},h=(c,p,u)=>{let f=o.theme(`colors.${s}.${p}`,p);u["--tw-prose-"+c]=oe(f);let m=u!=l&&o.d("colors",`${s}-${p}`,f);m&&(l["--tw-prose-"+c]=oe(m))};for(let c in i){let p=i[c];c!="dark"&&p&&h(c,p,a)}for(let c in i.dark||{}){let p=i.dark[c];p&&(i.dark?h("invert-"+c,p,a):h(c,p,l))}return Object.keys(a).length?{"@layer defaults":{"&":a,[o.v("dark")]:l}}:void 0}}function Fl(t,e,r){let i={};for(let n in r)i[Ol(t,n,e,s=>`.${e.e(e.h(t))}${s}`)]=r[n];return i}function Ol(t,e,{e:r,h:i},n){return e.replace(/^[^>:]+$|(>)?((?:[^:,]+(?::[\w-]+)?)|:[\w-]+)(::[\w-]+)?/g,(s,o=" ",a=s,l="")=>n(`${o}:where(${a}):not(:where(.${r(i("not-"+t))} *))${l}`))}function Il(t){return t?typeof t=="string"?{fontSize:t}:{fontSize:t[0],...typeof t[1]=="string"?{lineHeight:t[1]}:t[1]}:void 0}function H(t,e){return`${(t/e).toFixed(3).replace(/^0|\.?0+$/g,"")}em`}var Xs=Ws({darkMode:["class"],theme:{extend:{spacing:{px:"1px",0:"0",.5:"2px",1:"4px",1.5:"6px",2:"8px",2.5:"10px",3:"12px",3.5:"14px",4:"16px",5:"20px",6:"24px",7:"28px",8:"32px",9:"36px",10:"40px",11:"44px",12:"48px",14:"56px",16:"64px",20:"80px",24:"96px",28:"112px",32:"128px",36:"144px",40:"160px",44:"176px",48:"192px",52:"208px",56:"224px",60:"240px",64:"256px",72:"288px",80:"320px",96:"384px"},padding:{px:"1px",0:"0",.5:"2px",1:"4px",1.5:"6px",2:"8px",2.5:"10px",3:"12px",3.5:"14px",4:"16px",5:"20px",6:"24px",7:"28px",8:"32px",9:"36px",10:"40px",11:"44px",12:"48px",14:"56px",16:"64px",20:"80px",24:"96px",28:"112px",32:"128px",36:"144px",40:"160px",44:"176px",48:"192px",52:"208px",56:"224px",60:"240px",64:"256px",72:"288px",80:"320px",96:"384px"},lineHeight:{3:"12px",4:"16px",5:"20px",6:"24px",7:"28px",8:"32px",9:"36px",10:"40px"},maxWidth:{xs:"320px",sm:"384px",md:"448px",lg:"512px",xl:"576px","2xl":"672px","3xl":"768px","4xl":"896px","5xl":"1024px","6xl":"1152px","7xl":"1280px"},maxHeight:{.5:"2px",1:"4px",1.5:"6px",2:"8px",2.5:"10px",3:"12px",3.5:"14px",4:"16px",5:"20px",6:"24px",7:"28px",8:"32px",9:"36px",10:"40px",11:"44px",12:"48px",14:"56px",16:"64px",20:"80px",24:"96px",28:"112px",32:"128px",36:"144px",40:"160px",44:"176px",48:"192px",52:"208px",56:"224px",60:"240px",64:"256px",72:"288px",80:"320px",96:"384px"},borderRadius:{sm:"2px",DEFAULT:"4px",md:"6px",lg:"8px",xl:"12px","2xl":"16px","3xl":"24px"},fontSize:{xs:["12px","16px"],sm:["14px","20px"],base:["16px","24px"],lg:["18px","28px"],xl:["20px","28px"],"2xl":["24px","32px"],"3xl":["30px","36px"],"4xl":["36px","40px"],"5xl":["48px","1"],"6xl":["60px","1"],"7xl":["72px","1"],"8xl":["96px","1"],"9xl":["128px","1"]},fontFamily:{sans:["system-ui","Roboto","Helvetica","Arial","sans-serif"],serif:["ui-serif","Georgia","Cambria","serif"],mono:["ui-monospace","Menlo","Monaco","monospace"]}}},presets:[El(),Cl(),Ml(),Dl()],hash:!1});function $l(t,e=!0){let r=function(){if(mu)try{let l=sn(new CSSStyleSheet);return l.connect=h=>{let c=Js(h);c.adoptedStyleSheets=[...c.adoptedStyleSheets,l.target]},l.disconnect=nn,l}catch{}let s=document.createElement("style");s.media="not all",document.head.prepend(s);let o=[sn(s)],a=new WeakMap;return{get target(){return o[0].target},snapshot(){let l=o.map(h=>h.snapshot());return()=>l.forEach(h=>h())},clear(){o.forEach(l=>l.clear())},destroy(){o.forEach(l=>l.destroy())},insert(l,h,c){o[0].insert(l,h,c);let p=this.target.cssRules[h];o.forEach((u,f)=>f&&u.target.insertRule(p.cssText,h))},resume(l,h){return o[0].resume(l,h)},connect(l){let h=document.createElement("style");Js(l).appendChild(h);let c=sn(h),{cssRules:p}=this.target;for(let u=0;u<p.length;u++)c.target.insertRule(p[u].cssText,u);o.push(c),a.set(l,c)},disconnect(l){let h=o.indexOf(a.get(l));h>=0&&o.splice(h,1)}}}(),i=pl({...t,hash:t.hash??e},r),n=ul(i);return function(o){return class extends o{connectedCallback(){super.connectedCallback?.(),r.connect(this),n.observe(Js(this))}disconnectedCallback(){r.disconnect(this),super.disconnectedCallback?.()}constructor(...l){super(...l),this.tw=i}}}}var mu=typeof ShadowRoot<"u"&&(typeof ShadyCSS>"u"||ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;function Js(t){return t.shadowRoot||t.attachShadow({mode:"open"})}var kt=t=>$l(Xs)(t);var ln,Rl,hn,Bl,an=class extends kt(yt){constructor(){super();J(this,ln);J(this,hn);ft(this,"render",()=>st`
4
4
  <div class="${q(this,ln,Rl)?"block":"hidden"} flex h-full w-full flex-col items-stretch justify-center space-y-8 px-4">
5
5
  <!-- limitations section -->
6
6
  ${this.config.limitations&&this.config.limitations.items.length>0?st`
@@ -320,7 +320,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
320
320
  mt-[9px] because the message is 50px tall, the icon is 32px tall, we want to center it
321
321
  -->
322
322
  <div class="mt-[9px] h-8 w-8 flex-shrink-0 flex-grow-0 overflow-hidden rounded-full">
323
- ${this.config.logoSvg?Wr(this.config.logoSvg):st`<img class="h-full w-full object-cover" src="${this.config.logoUrl||""}" alt="Logo" />`}
323
+ ${this.config.logoSvg?Wr(this.config.logoSvg):st`<img class="h-full w-full object-cover bg-white" src="${this.config.logoUrl||""}" alt="Logo" />`}
324
324
  </div>
325
325
 
326
326
  <!--
@@ -335,7 +335,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
335
335
  <div class="flex items-center justify-between space-x-4 p-4">
336
336
  <mw-pulse-dot class="contents" position="bottom-right" color="green-500">
337
337
  <div class="h-10 w-10 overflow-hidden rounded">
338
- ${this.config.logoSvg?Wr(this.config.logoSvg):st`<img class="h-full w-full object-cover" src="${this.config.logoUrl||""}" alt="Logo" />`}
338
+ ${this.config.logoSvg?Wr(this.config.logoSvg):st`<img class="h-full w-full object-cover bg-white" src="${this.config.logoUrl||""}" alt="Logo" />`}
339
339
  </div>
340
340
  </mw-pulse-dot>
341
341
 
@@ -394,12 +394,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
394
394
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function ma(t,e){if(t){if(typeof t=="string")return ra(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ra(t,e):void 0}}function ra(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i}function Je(t,e){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=ma(t))||e&&t&&typeof t.length=="number"){r&&(t=r);var i=0,n=function(){};return{s:n,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(l){throw l},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
395
395
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s,o=!0,a=!1;return{s:function(){r=r.call(t)},n:function(){var l=r.next();return o=l.done,l},e:function(l){a=!0,s=l},f:function(){try{o||r.return==null||r.return()}finally{if(a)throw s}}}}var cr=String.fromCharCode,Tc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Mc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",Kn={};function Fc(t,e){if(!Kn[t]){Kn[t]={};for(var r=0;r<t.length;r++)Kn[t][t.charAt(r)]=r}return Kn[t][e]}var re={compressToBase64:function(t){if(t==null)return"";var e=re._compress(t,6,function(r){return Tc.charAt(r)});switch(e.length%4){default:case 0:return e;case 1:return e+"===";case 2:return e+"==";case 3:return e+"="}},decompressFromBase64:function(t){return t==null?"":t==""?null:re._decompress(t.length,32,function(e){return Fc(Tc,t.charAt(e))})},compressToUTF16:function(t){return t==null?"":re._compress(t,15,function(e){return cr(e+32)})+" "},decompressFromUTF16:function(t){return t==null?"":t==""?null:re._decompress(t.length,16384,function(e){return t.charCodeAt(e)-32})},compressToUint8Array:function(t){for(var e=re.compress(t),r=new Uint8Array(2*e.length),i=0,n=e.length;i<n;i++){var s=e.charCodeAt(i);r[2*i]=s>>>8,r[2*i+1]=s%256}return r},decompressFromUint8Array:function(t){if(t==null)return re.decompress(t);for(var e=new Array(t.length/2),r=0,i=e.length;r<i;r++)e[r]=256*t[2*r]+t[2*r+1];var n=[];return e.forEach(function(s){n.push(cr(s))}),re.decompress(n.join(""))},compressToEncodedURIComponent:function(t){return t==null?"":re._compress(t,6,function(e){return Mc.charAt(e)})},decompressFromEncodedURIComponent:function(t){return t==null?"":t==""?null:(t=t.replace(/ /g,"+"),re._decompress(t.length,32,function(e){return Fc(Mc,t.charAt(e))}))},compress:function(t){return re._compress(t,16,function(e){return cr(e)})},_compress:function(t,e,r){if(t==null)return"";var i,n,s,o="",a="",l="",h=2,c=3,p=2,u=0,f=0,m={},g={},d=[];for(s=0;s<t.length;s+=1)if(o=t.charAt(s),Object.prototype.hasOwnProperty.call(m,o)||(m[o]=c++,g[o]=!0),a=l+o,Object.prototype.hasOwnProperty.call(m,a))l=a;else{if(Object.prototype.hasOwnProperty.call(g,l)){if(l.charCodeAt(0)<256){for(i=0;i<p;i++)u<<=1,f==e-1?(f=0,d.push(r(u)),u=0):f++;for(n=l.charCodeAt(0),i=0;i<8;i++)u=u<<1|1&n,f==e-1?(f=0,d.push(r(u)),u=0):f++,n>>=1}else{for(n=1,i=0;i<p;i++)u=u<<1|n,f==e-1?(f=0,d.push(r(u)),u=0):f++,n=0;for(n=l.charCodeAt(0),i=0;i<16;i++)u=u<<1|1&n,f==e-1?(f=0,d.push(r(u)),u=0):f++,n>>=1}--h==0&&(h=Math.pow(2,p),p++),delete g[l]}else for(n=m[l],i=0;i<p;i++)u=u<<1|1&n,f==e-1?(f=0,d.push(r(u)),u=0):f++,n>>=1;--h==0&&(h=Math.pow(2,p),p++),m[a]=c++,l=String(o)}if(l!==""){if(Object.prototype.hasOwnProperty.call(g,l)){if(l.charCodeAt(0)<256){for(i=0;i<p;i++)u<<=1,f==e-1?(f=0,d.push(r(u)),u=0):f++;for(n=l.charCodeAt(0),i=0;i<8;i++)u=u<<1|1&n,f==e-1?(f=0,d.push(r(u)),u=0):f++,n>>=1}else{for(n=1,i=0;i<p;i++)u=u<<1|n,f==e-1?(f=0,d.push(r(u)),u=0):f++,n=0;for(n=l.charCodeAt(0),i=0;i<16;i++)u=u<<1|1&n,f==e-1?(f=0,d.push(r(u)),u=0):f++,n>>=1}--h==0&&(h=Math.pow(2,p),p++),delete g[l]}else for(n=m[l],i=0;i<p;i++)u=u<<1|1&n,f==e-1?(f=0,d.push(r(u)),u=0):f++,n>>=1;--h==0&&(h=Math.pow(2,p),p++)}for(n=2,i=0;i<p;i++)u=u<<1|1&n,f==e-1?(f=0,d.push(r(u)),u=0):f++,n>>=1;for(;;){if(u<<=1,f==e-1){d.push(r(u));break}f++}return d.join("")},decompress:function(t){return t==null?"":t==""?null:re._decompress(t.length,32768,function(e){return t.charCodeAt(e)})},_decompress:function(t,e,r){var i,n,s,o,a,l,h,c=[],p=[],u={val:r(0),position:e,index:1},f=4,m=4,g=3,d="";for(i=0;i<3;i+=1)c[i]=i;for(s=0,a=Math.pow(2,2),l=1;l!=a;)o=u.val&u.position,u.position>>=1,u.position==0&&(u.position=e,u.val=r(u.index++)),s|=(o>0?1:0)*l,l<<=1;switch(s){case 0:for(s=0,a=Math.pow(2,8),l=1;l!=a;)o=u.val&u.position,u.position>>=1,u.position==0&&(u.position=e,u.val=r(u.index++)),s|=(o>0?1:0)*l,l<<=1;h=cr(s);break;case 1:for(s=0,a=Math.pow(2,16),l=1;l!=a;)o=u.val&u.position,u.position>>=1,u.position==0&&(u.position=e,u.val=r(u.index++)),s|=(o>0?1:0)*l,l<<=1;h=cr(s);break;case 2:return""}for(c[3]=h,n=h,p.push(h);;){if(u.index>t)return"";for(s=0,a=Math.pow(2,g),l=1;l!=a;)o=u.val&u.position,u.position>>=1,u.position==0&&(u.position=e,u.val=r(u.index++)),s|=(o>0?1:0)*l,l<<=1;switch(h=s){case 0:for(s=0,a=Math.pow(2,8),l=1;l!=a;)o=u.val&u.position,u.position>>=1,u.position==0&&(u.position=e,u.val=r(u.index++)),s|=(o>0?1:0)*l,l<<=1;c[m++]=cr(s),h=m-1,f--;break;case 1:for(s=0,a=Math.pow(2,16),l=1;l!=a;)o=u.val&u.position,u.position>>=1,u.position==0&&(u.position=e,u.val=r(u.index++)),s|=(o>0?1:0)*l,l<<=1;c[m++]=cr(s),h=m-1,f--;break;case 2:return p.join("")}if(f==0&&(f=Math.pow(2,g),g++),c[h])d=c[h];else{if(h!==m)return null;d=n+n.charAt(0)}p.push(d),c[m++]=n+d.charAt(0),n=d,--f==0&&(f=Math.pow(2,g),g++)}}},Pe={DEBUG:!1,LIB_VERSION:"1.61.0"},Qc=Array.prototype,tp=Object.prototype,us=tp.toString,Gf=tp.hasOwnProperty,K=typeof window<"u"?window:{},ur=K.navigator||{userAgent:""},At=K.document||{},pe=ur.userAgent,Hf=["localhost","127.0.0.1"],Ic=Qc.forEach,Dc=Qc.indexOf,qf=Array.isArray,ga={},vt={log:function(){if(Pe.DEBUG&&!ge(window.console)&&window.console){for(var t=("__rrweb_original__"in window.console.log)?window.console.log.__rrweb_original__:window.console.log,e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];try{t.apply(window.console,r)}catch{Ve(r,function(s){t(s)})}}},error:function(){if(Pe.DEBUG&&!ge(window.console)&&window.console){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var i=["PostHog error:"].concat(e),n="__rrweb_original__"in window.console.error?window.console.error.__rrweb_original__:window.console.error;try{n.apply(window.console,i)}catch{Ve(i,function(o){n(o)})}}},critical:function(){if(!ge(window.console)&&window.console){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var i=["PostHog error:"].concat(e),n="__rrweb_original__"in window.console.error?window.console.error.__rrweb_original__:window.console.error;try{n.apply(window.console,i)}catch{Ve(i,function(o){n(o)})}}}},ia=function(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")};function Ve(t,e,r){if(Array.isArray(t)){if(Ic&&t.forEach===Ic)t.forEach(e,r);else if("length"in t&&t.length===+t.length){for(var i=0,n=t.length;i<n;i++)if(i in t&&e.call(r,t[i],i)===ga)return}}}function lt(t,e,r){if(t!=null){if(Array.isArray(t))return Ve(t,e,r);for(var i in t)if(Gf.call(t,i)&&e.call(r,t[i],i)===ga)return}}var It=function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];return Ve(r,function(n){for(var s in n)n[s]!==void 0&&(t[s]=n[s])}),t},Le=qf||function(t){return us.call(t)==="[object Array]"},ep=function(t){try{return/^\s*\bfunction\b/.test(t)}catch{return!1}};function ut(t,e){return t.indexOf(e)!==-1}var dr=function(t){return t===Object(t)&&!Le(t)},ge=function(t){return t===void 0},rp=function(t){return us.call(t)=="[object String]"},Uf=function(t){return us.call(t)=="[object Number]"},Wf=function t(e){return lt(e,function(r,i){(function(n){return us.call(n)=="[object Date]"})(r)?e[i]=Yf(r):dr(r)&&(e[i]=t(r))}),e},Yf=function(t){function e(r){return r<10?"0"+r:r}return t.getUTCFullYear()+"-"+e(t.getUTCMonth()+1)+"-"+e(t.getUTCDate())+"T"+e(t.getUTCHours())+":"+e(t.getUTCMinutes())+":"+e(t.getUTCSeconds())},ip=function(t){return function(){try{for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return t.apply(this,r)}catch(n){vt.critical("Implementation error. Please turn on debug and contact support@posthog.com."),vt.critical(n)}}},na=function(t){var e={};return lt(t,function(r,i){rp(r)&&r.length>0&&(e[i]=r)}),e},Zf=["$performance_raw"];function np(t,e){return r=t,i=function(s,o){return o&&Zf.indexOf(o)>-1?s:typeof s=="string"&&e!==null?s.slice(0,e):s},n=new Set,function s(o,a){return o!==Object(o)?i?i(o,a):o:n.has(o)?void 0:(n.add(o),Le(o)?(l=[],Ve(o,function(h){l.push(s(h))})):(l={},lt(o,function(h,c){n.has(h)||(l[c]=s(h,c))})),l);var l}(r);var r,i,n}function fs(t){var e,r,i,n,s,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a=0,l=0,h="",c=[];if(!t)return t;t=Xf(t);do e=(s=t.charCodeAt(a++)<<16|t.charCodeAt(a++)<<8|t.charCodeAt(a++))>>18&63,r=s>>12&63,i=s>>6&63,n=63&s,c[l++]=o.charAt(e)+o.charAt(r)+o.charAt(i)+o.charAt(n);while(a<t.length);switch(h=c.join(""),t.length%3){case 1:h=h.slice(0,-2)+"==";break;case 2:h=h.slice(0,-1)+"="}return h}var Yo,Xf=function(t){var e,r,i,n,s="";for(e=r=0,i=(t=(t+"").replace(/\r\n/g,`
396
396
  `).replace(/\r/g,`
397
- `)).length,n=0;n<i;n++){var o=t.charCodeAt(n),a=null;o<128?r++:a=o>127&&o<2048?String.fromCharCode(o>>6|192,63&o|128):String.fromCharCode(o>>12|224,o>>6&63|128,63&o|128),a!==null&&(r>e&&(s+=t.substring(e,r)),s+=a,e=r=n+1)}return r>e&&(s+=t.substring(e,t.length)),s},Xe=(Yo=function(){for(var t=new Date().valueOf(),e=0;t==new Date().valueOf();)e++;return t.toString(16)+e.toString(16)},function(){var t=typeof window<"u"?(window.screen.height*window.screen.width).toString(16):"0";return Yo()+"-"+Math.random().toString(16).replace(".","")+"-"+function(){var e,r,i=pe,n=0,s=[];function o(a,l){var h,c=0;for(h=0;h<l.length;h++)c|=s[h]<<8*h;return a^c}for(e=0;e<i.length;e++)r=i.charCodeAt(e),s.unshift(255&r),s.length>=4&&(n=o(n,s),s=[]);return s.length>0&&(n=o(n,s)),n.toString(16)}()+"-"+t+"-"+Yo()}),Jf=function(t){return!!/(google web preview|baiduspider|yandexbot|bingbot|googlebot|yahoo! slurp|ahrefsbot|facebookexternalhit|facebookcatalog|applebot|semrushbot|duckduckbot|twitterbot|rogerbot|linkedinbot|mj12bot|sitebulb|bot.htm|bot.php|hubspot|crawler)/i.test(t)},Oc=function(t,e){var r=e.replace(/[[]/,"\\[").replace(/[\]]/,"\\]"),i=new RegExp("[\\?&]"+r+"=([^&#]*)").exec(t);if(i===null||i&&typeof i[1]!="string"&&i[1].length)return"";var n=i[1];try{n=decodeURIComponent(n)}catch{vt.error("Skipping decoding for malformed query param: "+n)}return n.replace(/\+/g," ")},$c=function(t,e){var r=t.match(new RegExp(e+"=([^&]*)"));return r?r[1]:null},$i=function(){function t(e){return e&&(e.preventDefault=t.preventDefault,e.stopPropagation=t.stopPropagation),e}return t.preventDefault=function(){this.returnValue=!1},t.stopPropagation=function(){this.cancelBubble=!0},function(e,r,i,n,s){if(e)if(e.addEventListener&&!n)e.addEventListener(r,i,!!s);else{var o="on"+r,a=e[o];e[o]=function(l,h,c){return function(p){if(p=p||t(window.event)){var u,f=!0;ep(c)&&(u=c(p));var m=h.call(l,p);return u!==!1&&m!==!1||(f=!1),f}}}(e,i,a)}else vt.error("No valid element provided to register_event")}}();function ya(t,e){var r=function(){var i=At.createElement("script");i.type="text/javascript",i.src=t,i.onload=function(o){return e(void 0,o)},i.onerror=function(o){return e(o)};var n,s=At.querySelectorAll("body > script");s.length>0?(n=s[0].parentNode)===null||n===void 0||n.insertBefore(i,s[0]):At.body.appendChild(i)};At.body?r():At.addEventListener("DOMContentLoaded",r)}var Mt={campaignParams:function(t){var e=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gclid","fbclid","msclkid"].concat(t||[]),r={};return lt(e,function(i){var n=Oc(At.URL,i);n.length&&(r[i]=n)}),r},searchEngine:function(){var t=At.referrer;return t?t.search("https?://(.*)google.([^/?]*)")===0?"google":t.search("https?://(.*)bing.com")===0?"bing":t.search("https?://(.*)yahoo.com")===0?"yahoo":t.search("https?://(.*)duckduckgo.com")===0?"duckduckgo":null:null},searchInfo:function(){var t=Mt.searchEngine(),e=t!="yahoo"?"q":"p",r={};if(t!==null){r.$search_engine=t;var i=Oc(At.referrer,e);i.length&&(r.ph_keyword=i)}return r},browser:function(t,e,r){return e=e||"",r||ut(t," OPR/")?ut(t,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":ut(t,"IEMobile")||ut(t,"WPDesktop")?"Internet Explorer Mobile":ut(t,"SamsungBrowser/")?"Samsung Internet":ut(t,"Edge")||ut(t,"Edg/")?"Microsoft Edge":ut(t,"FBIOS")?"Facebook Mobile":ut(t,"Chrome")?"Chrome":ut(t,"CriOS")?"Chrome iOS":ut(t,"UCWEB")||ut(t,"UCBrowser")?"UC Browser":ut(t,"FxiOS")?"Firefox iOS":ut(e,"Apple")?ut(t,"Mobile")?"Mobile Safari":"Safari":ut(t,"Android")?"Android Mobile":ut(t,"Konqueror")?"Konqueror":ut(t,"Firefox")?"Firefox":ut(t,"MSIE")||ut(t,"Trident/")?"Internet Explorer":ut(t,"Gecko")?"Mozilla":""},browserVersion:function(t,e,r){var i={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/}[Mt.browser(t,e,r)];if(i===void 0)return null;var n=t.match(i);return n?parseFloat(n[n.length-2]):null},browserLanguage:function(){return ur.language||ur.userLanguage},os:function(t){if(/Windows/i.test(t)){if(/Phone/.test(t)||/WPDesktop/.test(t))return{os_name:"Windows Phone",os_version:""};var e=/Windows NT ([0-9.]+)/i.exec(t);return e&&e[1]?{os_name:"Windows",os_version:e[1]}:{os_name:"Windows",os_version:""}}if(/(iPhone|iPad|iPod)/.test(t)){var r=/OS (\d+)_(\d+)_?(\d+)?/i.exec(t);return r&&r[1]?{os_name:"iOS",os_version:[r[1],r[2],r[3]||"0"].join(".")}:{os_name:"iOS",os_version:""}}if(/Android/.test(t)){var i=/Android (\d+)\.(\d+)\.?(\d+)?/i.exec(t);return i&&i[1]?{os_name:"Android",os_version:[i[1],i[2],i[3]||"0"].join(".")}:{os_name:"Android",os_version:""}}if(/(BlackBerry|PlayBook|BB10)/i.test(t))return{os_name:"BlackBerry",os_version:""};if(/Mac/i.test(t)){var n=/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i.exec(t);return n&&n[1]?{os_name:"Mac OS X",os_version:[n[1],n[2],n[3]||"0"].join(".")}:{os_name:"Mac OS X",os_version:""}}return/Linux/.test(t)?{os_name:"Linux",os_version:""}:/CrOS/.test(t)?{os_name:"Chrome OS",os_version:""}:{os_name:"",os_version:""}},device:function(t){return/Windows Phone/i.test(t)||/WPDesktop/.test(t)?"Windows Phone":/iPad/.test(t)?"iPad":/iPod/.test(t)?"iPod Touch":/iPhone/.test(t)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":/Android/.test(t)&&!/Mobile/.test(t)?"Android Tablet":/Android/.test(t)?"Android":""},deviceType:function(t){var e=this.device(t);return e==="iPad"||e==="Android Tablet"?"Tablet":e?"Mobile":"Desktop"},referrer:function(){return At.referrer||"$direct"},referringDomain:function(){if(!At.referrer)return"$direct";var t=At.createElement("a");return t.href=At.referrer,t.host},properties:function(){var t=Mt.os(pe),e=t.os_name,r=t.os_version;return It(na({$os:e,$os_version:r,$browser:Mt.browser(pe,ur.vendor,K.opera),$device:Mt.device(pe),$device_type:Mt.deviceType(pe)}),{$current_url:K?.location.href,$host:K?.location.host,$pathname:K?.location.pathname,$browser_version:Mt.browserVersion(pe,ur.vendor,K.opera),$browser_language:Mt.browserLanguage(),$screen_height:K?.screen.height,$screen_width:K?.screen.width,$viewport_height:K?.innerHeight,$viewport_width:K?.innerWidth,$lib:"web",$lib_version:Pe.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:(Date.now=Date.now||function(){return+new Date},Date.now()/1e3)})},people_properties:function(){var t=Mt.os(pe),e=t.os_name,r=t.os_version;return It(na({$os:e,$os_version:r,$browser:Mt.browser(pe,ur.vendor,K.opera)}),{$browser_version:Mt.browserVersion(pe,ur.vendor,K.opera)})}};function as(t){switch(fr(t.className)){case"string":return t.className;case"object":return("baseVal"in t.className?t.className.baseVal:null)||t.getAttribute("class")||"";default:return""}}function ls(t){var e="";return rs(t)&&!op(t)&&t.childNodes&&t.childNodes.length&&lt(t.childNodes,function(r){sp(r)&&r.textContent&&(e+=ia(r.textContent).split(/(\s+)/).filter(Jr).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),ia(e)}function Rc(t){return!!t&&t.nodeType===1}function mr(t,e){return!!t&&!!t.tagName&&t.tagName.toLowerCase()===e.toLowerCase()}function sp(t){return!!t&&t.nodeType===3}function Bc(t){return!!t&&t.nodeType===11}var Zo=["a","button","form","input","select","textarea","label"];function rs(t){for(var e=t;e.parentNode&&!mr(e,"body");e=e.parentNode){var r=as(e).split(" ");if(ut(r,"ph-sensitive")||ut(r,"ph-no-capture"))return!1}if(ut(as(t).split(" "),"ph-include"))return!0;var i=t.type||"";if(typeof i=="string")switch(i.toLowerCase()){case"hidden":case"password":return!1}var n=t.name||t.id||"";return!(typeof n=="string"&&/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(n.replace(/[^a-zA-Z0-9]/g,"")))}function op(t){return!!(mr(t,"input")&&!["button","checkbox","submit","reset"].includes(t.type)||mr(t,"select")||mr(t,"textarea")||t.getAttribute("contenteditable")==="true")}function Jr(t){return!(t===null||ge(t)||typeof t=="string"&&(t=ia(t),/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/.test((t||"").replace(/[- ]/g,""))||/(^\d{3}-?\d{2}-?\d{4}$)/.test(t)))}function Lc(t){var e=ls(t);return Jr(e="".concat(e," ").concat(ap(t)).trim())?e:""}function ap(t){var e="";return t&&t.childNodes&&t.childNodes.length&&lt(t.childNodes,function(r){var i;if(r&&((i=r.tagName)===null||i===void 0?void 0:i.toLowerCase())==="span")try{var n=ls(r);e="".concat(e," ").concat(n).trim(),r.childNodes&&r.childNodes.length&&(e="".concat(e," ").concat(ap(r)).trim())}catch(s){console.error(s)}}),e}var Kf=function(){function t(e){Bt(this,t),this.clicks=[],this.enabled=e}return Lt(t,[{key:"isRageClick",value:function(e,r,i){if(!this.enabled)return!1;var n=this.clicks[this.clicks.length-1];if(n&&Math.abs(e-n.x)+Math.abs(r-n.y)<30&&i-n.timestamp<1e3){if(this.clicks.push({x:e,y:r,timestamp:i}),this.clicks.length===3)return!0}else this.clicks=[{x:e,y:r,timestamp:i}];return!1}}]),t}(),Qf=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,ke={is_supported:function(){return!0},error:function(t){vt.error("cookieStore error: "+t)},get:function(t){try{for(var e=t+"=",r=document.cookie.split(";"),i=0;i<r.length;i++){for(var n=r[i];n.charAt(0)==" ";)n=n.substring(1,n.length);if(n.indexOf(e)===0)return decodeURIComponent(n.substring(e.length,n.length))}}catch{}return null},parse:function(t){var e;try{e=JSON.parse(ke.get(t))||{}}catch{}return e},set:function(t,e,r,i,n){try{var s="",o="",a="";if(i){var l=document.location.hostname.match(Qf),h=l?l[0]:"";s=h?"; domain=."+h:""}if(r){var c=new Date;c.setTime(c.getTime()+24*r*60*60*1e3),o="; expires="+c.toUTCString()}n&&(a="; secure");var p=t+"="+encodeURIComponent(JSON.stringify(e))+o+"; SameSite=Lax; path=/"+s+a;return document.cookie=p,p}catch{return}},remove:function(t,e){try{ke.set(t,"",-1,e)}catch{return}}},Xo=null,wt={is_supported:function(){if(Xo!==null)return Xo;var t=!0;if(typeof window<"u")try{var e="__mplssupport__";wt.set(e,"xyz"),wt.get(e)!=='"xyz"'&&(t=!1),wt.remove(e)}catch{t=!1}else t=!1;return t||vt.error("localStorage unsupported; falling back to cookie store"),Xo=t,t},error:function(t){vt.error("localStorage error: "+t)},get:function(t){try{return window.localStorage.getItem(t)}catch(e){wt.error(e)}return null},parse:function(t){try{return JSON.parse(wt.get(t))||{}}catch{}return null},set:function(t,e){try{window.localStorage.setItem(t,JSON.stringify(e))}catch(r){wt.error(r)}},remove:function(t){try{window.localStorage.removeItem(t)}catch(e){wt.error(e)}}},sa=et(et({},wt),{},{parse:function(t){try{var e={};try{(e=ke.parse(t)||{}).distinct_id&&ke.set(t,{distinct_id:e.distinct_id})}catch{}var r=It(e,JSON.parse(wt.get(t)||"{}"));return wt.set(t,r),r}catch{}return null},set:function(t,e,r,i,n){try{wt.set(t,e),e.distinct_id&&ke.set(t,{distinct_id:e.distinct_id},r,i,n)}catch(s){wt.error(s)}},remove:function(t,e){try{window.localStorage.removeItem(t),ke.remove(t,e)}catch(r){wt.error(r)}}}),Qn={},td={is_supported:function(){return!0},error:function(t){vt.error("memoryStorage error: "+t)},get:function(t){return Qn[t]||null},parse:function(t){return Qn[t]||null},set:function(t,e){Qn[t]=e},remove:function(t){delete Qn[t]}},pr=null,Ot={is_supported:function(){if(pr!==null)return pr;if(pr=!0,typeof window<"u")try{var t="__support__";Ot.set(t,"xyz"),Ot.get(t)!=='"xyz"'&&(pr=!1),Ot.remove(t)}catch{pr=!1}else pr=!1;return pr},error:function(t){Pe.DEBUG&&vt.error("sessionStorage error: ",t)},get:function(t){try{return window.sessionStorage.getItem(t)}catch(e){Ot.error(e)}return null},parse:function(t){try{return JSON.parse(Ot.get(t))||null}catch{}return null},set:function(t,e){try{window.sessionStorage.setItem(t,JSON.stringify(e))}catch(r){Ot.error(r)}},remove:function(t){try{window.sessionStorage.removeItem(t)}catch(e){Ot.error(e)}}},lp="$people_distinct_id",is="__alias",Oi="__timers",Vc="$autocapture_disabled_server_side",oa="$session_recording_enabled_server_side",zc="$console_log_recording_enabled_server_side",Nc="$session_recording_recorder_version_server_side",aa="$sesid",Kr="$enabled_feature_flags",la="$early_access_features",Qr="$stored_person_properties",Ye="$stored_group_properties",ha="$user_state",ed=[lp,is,"__cmpns",Oi,oa,aa,Kr,ha,la,Ye,Qr],rd=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"],jc=function(){function t(e){Bt(this,t);var r="";e.token&&(r=e.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),this.props={},this.campaign_params_saved=!1,this.custom_campaign_params=e.custom_campaign_params||[],e.persistence_name?this.name="ph_"+e.persistence_name:this.name="ph_"+r+"_posthog",rd.indexOf(e.persistence.toLowerCase())===-1&&(vt.critical("Unknown persistence type "+e.persistence+"; falling back to cookie"),e.persistence="cookie");var i=e.persistence.toLowerCase();i==="localstorage"&&wt.is_supported()?this.storage=wt:i==="localstorage+cookie"&&sa.is_supported()?this.storage=sa:i==="sessionstorage"&&Ot.is_supported()?this.storage=Ot:this.storage=i==="memory"?td:ke,this.user_state="anonymous",this.load(),this.update_config(e),this.save()}return Lt(t,[{key:"properties",value:function(){var e={};return lt(this.props,function(r,i){if(i===Kr&&fr(r)==="object")for(var n=Object.keys(r),s=0;s<n.length;s++)e["$feature/".concat(n[s])]=r[n[s]];else a=i,l=!1,((o=ed)===null?l:Dc&&o.indexOf===Dc?o.indexOf(a)!=-1:(lt(o,function(h){if(l||(l=h===a))return ga}),l))||(e[i]=r);var o,a,l}),e}},{key:"load",value:function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=It({},e))}}},{key:"save",value:function(){this.disabled||this.storage.set(this.name,this.props,this.expire_days,this.cross_subdomain,this.secure)}},{key:"remove",value:function(){this.storage.remove(this.name,!1),this.storage.remove(this.name,!0)}},{key:"clear",value:function(){this.remove(),this.props={}}},{key:"register_once",value:function(e,r,i){var n=this;if(dr(e)){r===void 0&&(r="None"),this.expire_days=i===void 0?this.default_expiry:i;var s=!1;if(lt(e,function(o,a){n.props.hasOwnProperty(a)&&n.props[a]!==r||(n.props[a]=o,s=!0)}),s)return this.save(),!0}return!1}},{key:"register",value:function(e,r){var i=this;if(dr(e)){this.expire_days=r===void 0?this.default_expiry:r;var n=!1;if(lt(e,function(s,o){e.hasOwnProperty(o)&&i.props[o]!==s&&(i.props[o]=s,n=!0)}),n)return this.save(),!0}return!1}},{key:"unregister",value:function(e){e in this.props&&(delete this.props[e],this.save())}},{key:"update_campaign_params",value:function(){this.campaign_params_saved||(this.register(Mt.campaignParams(this.custom_campaign_params)),this.campaign_params_saved=!0)}},{key:"update_search_keyword",value:function(){this.register(Mt.searchInfo())}},{key:"update_referrer_info",value:function(){this.register({$referrer:this.props.$referrer||Mt.referrer(),$referring_domain:this.props.$referring_domain||Mt.referringDomain()})}},{key:"get_referrer_info",value:function(){return na({$referrer:this.props.$referrer,$referring_domain:this.props.$referring_domain})}},{key:"safe_merge",value:function(e){return lt(this.props,function(r,i){i in e||(e[i]=r)}),e}},{key:"update_config",value:function(e){this.default_expiry=this.expire_days=e.cookie_expiration,this.set_disabled(e.disable_persistence),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie)}},{key:"set_disabled",value:function(e){this.disabled=e,this.disabled?this.remove():this.save()}},{key:"set_cross_subdomain",value:function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())}},{key:"get_cross_subdomain",value:function(){return!!this.cross_subdomain}},{key:"set_secure",value:function(e){e!==this.secure&&(this.secure=e,this.remove(),this.save())}},{key:"set_event_timer",value:function(e,r){var i=this.props[Oi]||{};i[e]=r,this.props[Oi]=i,this.save()}},{key:"remove_event_timer",value:function(e){var r=(this.props[Oi]||{})[e];return ge(r)||(delete this.props[Oi][e],this.save()),r}},{key:"get_user_state",value:function(){return this.props[ha]||"anonymous"}},{key:"set_user_state",value:function(e){this.props[ha]=e,this.save()}}]),t}(),Ze={_initializedTokens:[],_isAutocaptureEnabled:!1,_setIsAutocaptureEnabled:function(t){var e=!!t.get_property(Vc),r=!!t.get_config("autocapture");this._isAutocaptureEnabled=r&&!e},_previousElementSibling:function(t){if(t.previousElementSibling)return t.previousElementSibling;var e=t;do e=e.previousSibling;while(e&&!Rc(e));return e},_getAugmentPropertiesFromElement:function(t){if(!rs(t))return{};var e={};return lt(t.attributes,function(r){if(r.name.indexOf("data-ph-capture-attribute")===0){var i=r.name.replace("data-ph-capture-attribute-",""),n=r.value;i&&n&&Jr(n)&&(e[i]=n)}}),e},_getPropertiesFromElement:function(t,e,r){var i=t.tagName.toLowerCase(),n={tag_name:i};Zo.indexOf(i)>-1&&!r&&(i.toLowerCase()==="a"||i.toLowerCase()==="button"?n.$el_text=Lc(t):n.$el_text=ls(t));var s=as(t);s.length>0&&(n.classes=s.split(" ").filter(function(h){return h!==""})),lt(t.attributes,function(h){var c;op(t)&&["name","id","class"].indexOf(h.name)===-1||!e&&Jr(h.value)&&(typeof(c=h.name)!="string"||c.substring(0,10)!=="_ngcontent"&&c.substring(0,7)!=="_nghost")&&(n["attr__"+h.name]=h.value)});for(var o=1,a=1,l=t;l=this._previousElementSibling(l);)o++,l.tagName===t.tagName&&a++;return n.nth_child=o,n.nth_of_type=a,n},_getDefaultProperties:function(t){return{$event_type:t,$ce_version:1}},_extractCustomPropertyValue:function(t){var e=[];return lt(document.querySelectorAll(t.css_selector),function(r){var i;["input","select"].indexOf(r.tagName.toLowerCase())>-1?i=r.value:r.textContent&&(i=r.textContent),Jr(i)&&e.push(i)}),e.join(", ")},_getCustomProperties:function(t){var e=this,r={};return lt(this._customProperties,function(i){lt(i.event_selectors,function(n){lt(document.querySelectorAll(n),function(s){ut(t,s)&&rs(s)&&(r[i.name]=e._extractCustomPropertyValue(i))})})}),r},_getEventTarget:function(t){return t.target===void 0?t.srcElement||null:(e=t.target)!==null&&e!==void 0&&e.shadowRoot?t.composedPath()[0]||null:t.target||null;var e},_captureEvent:function(t,e){var r,i=this,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"$autocapture",s=this._getEventTarget(t);if(sp(s)&&(s=s.parentNode||null),n==="$autocapture"&&t.type==="click"&&t instanceof MouseEvent&&(r=this.rageclicks)!==null&&r!==void 0&&r.isRageClick(t.clientX,t.clientY,new Date().getTime())&&this._captureEvent(t,e,"$rageclick"),s&&function(f,m){var g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;if(!f||mr(f,"html")||!Rc(f))return!1;if(g!=null&&g.url_allowlist){var d=window.location.href,y=g.url_allowlist;if(y&&!y.some(function(k){return d.match(k)}))return!1}if(g!=null&&g.dom_event_allowlist){var v=g.dom_event_allowlist;if(v&&!v.some(function(k){return m.type===k}))return!1}if(g!=null&&g.element_allowlist){var b=g.element_allowlist;if(b&&!b.some(function(k){return f.tagName.toLowerCase()===k}))return!1}if(g!=null&&g.css_selector_allowlist){var _=g.css_selector_allowlist;if(_&&!_.some(function(k){return f.matches(k)}))return!1}for(var x=!1,T=[f],S=!0,w=f;w.parentNode&&!mr(w,"body");)if(Bc(w.parentNode))T.push(w.parentNode.host),w=w.parentNode.host;else{if(!(S=w.parentNode||!1))break;if(Zo.indexOf(S.tagName.toLowerCase())>-1)x=!0;else{var I=window.getComputedStyle(S);I&&I.getPropertyValue("cursor")==="pointer"&&(x=!0)}T.push(S),w=S}var E=window.getComputedStyle(f);if(E&&E.getPropertyValue("cursor")==="pointer"&&m.type==="click")return!0;var M=f.tagName.toLowerCase();switch(M){case"html":return!1;case"form":return m.type==="submit";case"input":case"select":case"textarea":return m.type==="change"||m.type==="click";default:return x?m.type==="click":m.type==="click"&&(Zo.indexOf(M)>-1||f.getAttribute("contenteditable")==="true")}}(s,t,this.config)){for(var o=[s],a=s;a.parentNode&&!mr(a,"body");)Bc(a.parentNode)?(o.push(a.parentNode.host),a=a.parentNode.host):(o.push(a.parentNode),a=a.parentNode);var l,h=[],c={},p=!1;if(lt(o,function(f){var m=rs(f);f.tagName.toLowerCase()==="a"&&(l=f.getAttribute("href"),l=m&&Jr(l)&&l),ut(as(f).split(" "),"ph-no-capture")&&(p=!0),h.push(i._getPropertiesFromElement(f,e.get_config("mask_all_element_attributes"),e.get_config("mask_all_text")));var g=i._getAugmentPropertiesFromElement(f);It(c,g)}),e.get_config("mask_all_text")||(s.tagName.toLowerCase()==="a"||s.tagName.toLowerCase()==="button"?h[0].$el_text=Lc(s):h[0].$el_text=ls(s)),l&&(h[0].attr__href=l),p)return!1;var u=It(this._getDefaultProperties(t.type),{$elements:h},this._getCustomProperties(o),c);return e.capture(n,u),!0}},_navigate:function(t){window.location.href=t},_addDomEventHandlers:function(t){var e=this,r=function(i){i=i||window.event,e._captureEvent(i,t)};$i(document,"submit",r,!1,!0),$i(document,"change",r,!1,!0),$i(document,"click",r,!1,!0)},_customProperties:[],rageclicks:null,config:void 0,init:function(t){var e;typeof t.__autocapture!="boolean"&&(this.config=t.__autocapture),(e=this.config)!==null&&e!==void 0&&e.url_allowlist&&(this.config.url_allowlist=this.config.url_allowlist.map(function(r){return new RegExp(r)})),this.rageclicks=new Kf(t.get_config("rageclick"))},afterDecideResponse:function(t,e){this._setIsAutocaptureEnabled(e);var r=e.get_config("token");this._initializedTokens.indexOf(r)>-1?vt.log('autocapture already initialized for token "'+r+'"'):(e.persistence&&e.persistence.register(rt({},Vc,!!t.autocapture_opt_out)),this._initializedTokens.push(r),t&&t.config&&t.config.enable_collect_everything&&this._isAutocaptureEnabled?(t.custom_properties&&(this._customProperties=t.custom_properties),this._addDomEventHandlers(e)):e.__autocapture=!1)},enabledForProject:function(t,e,r){if(!t)return!0;e=ge(e)?10:e,r=ge(r)?10:r;for(var i=0,n=0;n<t.length;n++)i+=t.charCodeAt(n);return i%e<r},isBrowserSupported:function(){return ep(document.querySelectorAll)}};(function(t){for(var e in t)typeof t[e]=="function"&&(t[e]=t[e].bind(t))})(Ze),function(t){for(var e in t)typeof t[e]=="function"&&(t[e]=ip(t[e]))}(Ze);var id="__ph_opt_in_out_";function nd(t,e){pp(!0,t,e)}function sd(t,e){pp(!1,t,e)}function od(t,e){return cp(t,e)==="1"}function hp(t,e){return!!function(r){if(r&&r.respectDnt){var i=r&&r.window||K,n=i.navigator||{},s=!1;return lt([n.doNotTrack,n.msDoNotTrack,i.doNotTrack],function(o){ut([!0,1,"1","yes"],o)&&(s=!0)}),s}return!1}(e)||cp(t,e)==="0"}function ad(t,e){va(e=e||{}).remove(ba(t,e),!!e.crossSubdomainCookie)}function va(t){return(t=t||{}).persistenceType==="localStorage"?wt:t.persistenceType==="localStorage+cookie"?sa:ke}function ba(t,e){return((e=e||{}).persistencePrefix||id)+t}function cp(t,e){return va(e).get(ba(t,e))}function pp(t,e,r){rp(e)&&e.length?(va(r=r||{}).set(ba(e,r),t?1:0,Uf(r.cookieExpiration)?r.cookieExpiration:null,r.crossSubdomainCookie,r.secureCookie),r.capture&&t&&r.capture(r.captureEventName||"$opt_in",r.captureProperties||{},{send_instantly:!0})):console.error("gdpr."+(t?"optIn":"optOut")+" called with an invalid token")}function up(t,e){var r=!1;try{var i=t.get_config("token"),n=t.get_config("respect_dnt"),s=t.get_config("opt_out_capturing_persistence_type"),o=t.get_config("opt_out_capturing_cookie_prefix")||void 0,a=t.get_config("window");i&&(r=hp(i,{respectDnt:n,persistenceType:s,persistencePrefix:o,window:a}))}catch(l){e||console.error("Unexpected error when checking capturing opt-out status: "+l)}return r}function Gc(t,e,r){return function(){for(var i=up(t,r),n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];if(!i)return e.apply(this,s);var a=s[s.length-1];typeof a=="function"&&a(0)}}var Jo="$set",ld=function(){function t(e){var r=this;Bt(this,t),this._posthog=e,this.set=Gc(e,function(i,n,s){var o=r.set_action(i,n);return r._posthog.setPersonPropertiesForFlags(o.$set||{}),dr(i)&&(s=n),r._get_config("save_referrer")&&r._posthog.sessionPersistence.update_referrer_info(),o[Jo]=It({},Mt.people_properties(),r._posthog.sessionPersistence.get_referrer_info(),o[Jo]),r._send_request(o,s)}),this.set_once=Gc(e,function(i,n,s){var o=r.set_once_action(i,n);return dr(i)&&(s=n),r._send_request(o,s)})}return Lt(t,[{key:"toString",value:function(){return this._posthog.toString()+".people"}},{key:"_send_request",value:function(e,r){e.$token=this._get_config("token"),e.$distinct_id=this._posthog.get_distinct_id();var i=this._posthog.get_property("$device_id"),n=this._posthog.get_property("$user_id"),s=this._posthog.get_property("$had_persisted_distinct_id");i&&(e.$device_id=i),n&&(e.$user_id=n),s&&(e.$had_persisted_distinct_id=s);var o=Wf(e),a=np(o,this._get_config("properties_string_max_length")),l=fs(JSON.stringify(o));return this._posthog._send_request(this._get_config("api_host")+"/engage/",{data:l},{},this._posthog._prepare_callback(r,a)),a}},{key:"_get_config",value:function(e){return this._posthog.get_config(e)}},{key:"_is_reserved_property",value:function(e){return e==="$distinct_id"||e==="$token"||e==="$device_id"||e==="$user_id"||e==="$had_persisted_distinct_id"}},{key:"set_action",value:function(e,r){return this.apiActionParser(Jo,e,r)}},{key:"set_once_action",value:function(e,r){return this.apiActionParser("$set_once",e,r)}},{key:"apiActionParser",value:function(e,r,i){var n=this,s={},o={};return dr(r)?lt(r,function(a,l){n._is_reserved_property(l)||(o[l]=a)}):o[r]=i,s[e]=o,s}}]),t}(),Ko="$active_feature_flags",ts="$override_feature_flags",Hc="$feature_flag_payloads",qc=function(t){var e,r={},i=Je(function(a){for(var l=Object.keys(a),h=l.length,c=new Array(h);h--;)c[h]=[l[h],a[l[h]]];return c}(t||{}));try{for(i.s();!(e=i.n()).done;){var n=ps(e.value,2),s=n[0],o=n[1];o&&(r[s]=o)}}catch(a){i.e(a)}finally{i.f()}return r},hd=function(){function t(e){Bt(this,t),this.instance=e,this._override_warning=!1,this.flagCallReported={},this.featureFlagEventHandlers=[],this.reloadFeatureFlagsQueued=!1,this.reloadFeatureFlagsInAction=!1}return Lt(t,[{key:"getFlags",value:function(){return Object.keys(this.getFlagVariants())}},{key:"getFlagVariants",value:function(){var e=this.instance.get_property(Kr),r=this.instance.get_property(ts);if(!r)return e||{};for(var i=It({},e),n=Object.keys(r),s=0;s<n.length;s++)r[n[s]]===!1?delete i[n[s]]:i[n[s]]=r[n[s]];return this._override_warning||(console.warn("[PostHog] Overriding feature flags!",{enabledFlags:e,overriddenFlags:r,finalFlags:i}),this._override_warning=!0),i}},{key:"getFlagPayloads",value:function(){return this.instance.get_property(Hc)||{}}},{key:"reloadFeatureFlags",value:function(){this.reloadFeatureFlagsQueued||(this.reloadFeatureFlagsQueued=!0,this._startReloadTimer())}},{key:"setAnonymousDistinctId",value:function(e){this.$anon_distinct_id=e}},{key:"setReloadingPaused",value:function(e){this.reloadFeatureFlagsInAction=e}},{key:"resetRequestQueue",value:function(){this.reloadFeatureFlagsQueued=!1}},{key:"_startReloadTimer",value:function(){var e=this;this.reloadFeatureFlagsQueued&&!this.reloadFeatureFlagsInAction&&setTimeout(function(){!e.reloadFeatureFlagsInAction&&e.reloadFeatureFlagsQueued&&(e.reloadFeatureFlagsQueued=!1,e._reloadFeatureFlagsRequest())},5)}},{key:"_reloadFeatureFlagsRequest",value:function(){var e=this;this.setReloadingPaused(!0);var r=this.instance.get_config("token"),i=this.instance.get_property(Qr),n=this.instance.get_property(Ye),s=fs(JSON.stringify({token:r,distinct_id:this.instance.get_distinct_id(),groups:this.instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:i,group_properties:n}));this.instance._send_request(this.instance.get_config("api_host")+"/decide/?v=3",{data:s},{method:"POST"},this.instance._prepare_callback(function(o){e.$anon_distinct_id=void 0,e.receivedFeatureFlags(o),e.setReloadingPaused(!1),e._startReloadTimer()}))}},{key:"getFeatureFlag",value:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.getFlags())return console.warn('getFeatureFlag for key "'+e+`" failed. Feature flags didn't load in time.`),!1;var i=this.getFlagVariants()[e];return!r.send_event&&"send_event"in r||this.flagCallReported[e]||(this.flagCallReported[e]=!0,this.instance.capture("$feature_flag_called",{$feature_flag:e,$feature_flag_response:i})),i}},{key:"getFeatureFlagPayload",value:function(e){return this.getFlagPayloads()[e]}},{key:"isFeatureEnabled",value:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.getFlags()?!!this.getFeatureFlag(e,r):(console.warn('isFeatureEnabled for key "'+e+`" failed. Feature flags didn't load in time.`),!1)}},{key:"addFeatureFlagsHandler",value:function(e){this.featureFlagEventHandlers.push(e)}},{key:"removeFeatureFlagsHandler",value:function(e){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter(function(r){return r!==e})}},{key:"receivedFeatureFlags",value:function(e){this.instance.decideEndpointWasHit=!0;var r=this.getFlagVariants(),i=this.getFlagPayloads();(function(n,s){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},l=n.featureFlags,h=n.featureFlagPayloads;if(l)if(Array.isArray(l)){var c,p={};if(l)for(var u=0;u<l.length;u++)p[l[u]]=!0;s&&s.register((rt(c={},Ko,l),rt(c,Kr,p),c))}else{var f,m=l,g=h;n.errorsWhileComputingFlags&&(m=et(et({},o),m),g=et(et({},a),g)),s&&s.register((rt(f={},Ko,Object.keys(qc(m))),rt(f,Kr,m||{}),rt(f,Hc,g||{}),f))}})(e,this.instance.persistence,r,i),this._fireFeatureFlagsCallbacks()}},{key:"override",value:function(e){if(this._override_warning=!1,e===!1)this.instance.persistence.unregister(ts);else if(Array.isArray(e)){for(var r={},i=0;i<e.length;i++)r[e[i]]=!0;this.instance.persistence.register(rt({},ts,r))}else this.instance.persistence.register(rt({},ts,e))}},{key:"onFeatureFlags",value:function(e){var r=this;if(this.addFeatureFlagsHandler(e),this.instance.decideEndpointWasHit){var i=this._prepareFeatureFlagsForCallbacks(),n=i.flags,s=i.flagVariants;e(n,s)}return function(){return r.removeFeatureFlagsHandler(e)}}},{key:"updateEarlyAccessFeatureEnrollment",value:function(e,r){var i,n=rt({},"$feature_enrollment/".concat(e),r);this.instance.capture("$feature_enrollment_update",{$feature_flag:e,$feature_enrollment:r,$set:n}),this.setPersonPropertiesForFlags(n,!1);var s=et(et({},this.getFlagVariants()),{},rt({},e,r));this.instance.persistence.register((rt(i={},Ko,Object.keys(qc(s))),rt(i,Kr,s),i)),this._fireFeatureFlagsCallbacks()}},{key:"getEarlyAccessFeatures",value:function(e){var r=this,i=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=this.instance.get_property(la);if(n&&!i)return e(n);this.instance._send_request("".concat(this.instance.get_config("api_host"),"/api/early_access_features/?token=").concat(this.instance.get_config("token")),{},{method:"GET"},function(s){var o=s.earlyAccessFeatures;return r.instance.persistence.register(rt({},la,o)),e(o)})}},{key:"_prepareFeatureFlagsForCallbacks",value:function(){var e=this.getFlags(),r=this.getFlagVariants();return{flags:e.filter(function(i){return r[i]}),flagVariants:Object.keys(r).filter(function(i){return r[i]}).reduce(function(i,n){return i[n]=r[n],i},{})}}},{key:"_fireFeatureFlagsCallbacks",value:function(){var e=this._prepareFeatureFlagsForCallbacks(),r=e.flags,i=e.flagVariants;this.featureFlagEventHandlers.forEach(function(n){return n(r,i)})}},{key:"setPersonPropertiesForFlags",value:function(e){var r=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=this.instance.get_property(Qr)||{};this.instance.register(rt({},Qr,et(et({},i),e))),r&&this.instance.reloadFeatureFlags()}},{key:"resetPersonPropertiesForFlags",value:function(){this.instance.unregister(Qr)}},{key:"setGroupPropertiesForFlags",value:function(e){var r=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=this.instance.get_property(Ye)||{};Object.keys(i).length!==0&&Object.keys(i).forEach(function(n){i[n]=et(et({},i[n]),e[n]),delete e[n]}),this.instance.register(rt({},Ye,et(et({},i),e))),r&&this.instance.reloadFeatureFlags()}},{key:"resetGroupPropertiesForFlags",value:function(e){if(e){var r=this.instance.get_property(Ye)||{};this.instance.register(rt({},Ye,et(et({},r),{},rt({},e,{}))))}else this.instance.unregister(Ye)}}]),t}(),cd="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2IiBmaWxsPSJibGFjayIvPgo8cGF0aCBkPSJNOCAwSDE2TDAgMTZWOEw4IDBaIiBmaWxsPSIjMkQyRDJEIi8+CjxwYXRoIGQ9Ik0xNiA4VjE2SDhMMTYgOFoiIGZpbGw9IiMyRDJEMkQiLz4KPC9zdmc+Cg==",Uc=2,pd=4,ud=6,fd="rrweb/console@1",Ee,dd="/e/";(function(t){t[t.Mutation=0]="Mutation",t[t.MouseMove=1]="MouseMove",t[t.MouseInteraction=2]="MouseInteraction",t[t.Scroll=3]="Scroll",t[t.ViewportResize=4]="ViewportResize",t[t.Input=5]="Input",t[t.TouchMove=6]="TouchMove",t[t.MediaInteraction=7]="MediaInteraction",t[t.StyleSheetRule=8]="StyleSheetRule",t[t.CanvasMutation=9]="CanvasMutation",t[t.Font=10]="Font",t[t.Log=11]="Log",t[t.Drag=12]="Drag",t[t.StyleDeclaration=13]="StyleDeclaration",t[t.Selection=14]="Selection",t[t.AdoptedStyleSheet=15]="AdoptedStyleSheet"})(Ee||(Ee={}));var md=[Ee.MouseMove,Ee.MouseInteraction,Ee.Scroll,Ee.ViewportResize,Ee.Input,Ee.TouchMove,Ee.MediaInteraction,Ee.Drag],gd=function(){function t(e){Bt(this,t),rt(this,"lastActivityTimestamp",Date.now()),rt(this,"isIdle",!1),this.instance=e,this.captureStarted=!1,this.snapshots=[],this.emit=!1,this.endpoint=dd,this.stopRrweb=void 0,this.windowId=null,this.sessionId=null,this.receivedDecide=!1}return Lt(t,[{key:"startRecordingIfEnabled",value:function(){this.isRecordingEnabled()?this.startCaptureAndTrySendingQueuedSnapshots():this.stopRecording()}},{key:"started",value:function(){return this.captureStarted}},{key:"stopRecording",value:function(){this.captureStarted&&this.stopRrweb&&(this.stopRrweb(),this.stopRrweb=void 0,this.captureStarted=!1)}},{key:"isRecordingEnabled",value:function(){var e=!!this.instance.get_property(oa),r=!this.instance.get_config("disable_session_recording");return e&&r}},{key:"isConsoleLogCaptureEnabled",value:function(){var e=!!this.instance.get_property(zc),r=this.instance.get_config("enable_recording_console_log");return r??e}},{key:"getRecordingVersion",value:function(){var e,r=this.instance.get_property(Nc);return((e=this.instance.get_config("session_recording"))===null||e===void 0?void 0:e.recorderVersion)||r||"v1"}},{key:"afterDecideResponse",value:function(e){var r,i,n,s,o,a;this.receivedDecide=!0,this.instance.persistence&&this.instance.persistence.register((rt(o={},oa,!!e.sessionRecording),rt(o,zc,(n=e.sessionRecording)===null||n===void 0?void 0:n.consoleLogRecordingEnabled),rt(o,Nc,(s=e.sessionRecording)===null||s===void 0?void 0:s.recorderVersion),o)),(r=e.sessionRecording)!==null&&r!==void 0&&r.endpoint&&(this.endpoint=(a=e.sessionRecording)===null||a===void 0?void 0:a.endpoint),(i=e.sessionRecording)!==null&&i!==void 0&&i.recorderVersion&&(this.recorderVersion=e.sessionRecording.recorderVersion),this.startRecordingIfEnabled()}},{key:"startCaptureAndTrySendingQueuedSnapshots",value:function(){var e=this;this.receivedDecide&&(this.emit=!0,this.snapshots.forEach(function(r){return e._captureSnapshot(r)})),this._startCapture()}},{key:"_startCapture",value:function(){var e=this;if(Object.assign!==void 0&&!this.captureStarted&&!this.instance.get_config("disable_session_recording")){this.captureStarted=!0,this.instance.sessionManager.checkAndGetSessionAndWindowId();var r=this.getRecordingVersion()==="v2"?"recorder-v2.js":"recorder.js";this.instance.__loaded_recorder_version!==this.getRecordingVersion()?ya(this.instance.get_config("api_host")+"/static/".concat(r,"?v=").concat(Pe.LIB_VERSION),function(i){if(i)return vt.error("Could not load ".concat(r),i);e._onScriptLoaded()}):this._onScriptLoaded()}}},{key:"_isInteractiveEvent",value:function(e){var r;return e.type===3&&md.indexOf((r=e.data)===null||r===void 0?void 0:r.source)!==-1}},{key:"_updateWindowAndSessionIds",value:function(e){var r=this._isInteractiveEvent(e);if(r||this.isIdle||e.timestamp-this.lastActivityTimestamp>3e5&&(this.isIdle=!0),r&&(this.lastActivityTimestamp=e.timestamp,this.isIdle&&(this.isIdle=!1,this._tryTakeFullSnapshot())),!this.isIdle){var i=this.instance.sessionManager.checkAndGetSessionAndWindowId(!r,e.timestamp),n=i.windowId,s=i.sessionId;[Uc,pd].indexOf(e.type)!==-1||this.windowId===n&&this.sessionId===s||this._tryTakeFullSnapshot(),this.windowId=n,this.sessionId=s}}},{key:"_tryTakeFullSnapshot",value:function(){if(!this.captureStarted)return!1;try{var e;return(e=this.rrwebRecord)===null||e===void 0||e.takeFullSnapshot(),!0}catch(r){return vt.error("Error taking full snapshot.",r),!1}}},{key:"_onScriptLoaded",value:function(){var e=this,r={blockClass:"ph-no-capture",blockSelector:void 0,ignoreClass:"ph-ignore-input",maskTextClass:"ph-mask",maskTextSelector:void 0,maskAllInputs:!0,maskInputOptions:{},maskInputFn:void 0,slimDOMOptions:{},collectFonts:!1,inlineStylesheet:!0,recordCrossOriginIframes:!1};this.rrwebRecord=window.rrweb?window.rrweb.record:window.rrwebRecord;for(var i=this.instance.get_config("session_recording"),n=0,s=Object.entries(i||{});n<s.length;n++){var o=ps(s[n],2),a=o[0],l=o[1];a in r&&(r[a]=l)}this.rrwebRecord?(this.stopRrweb=this.rrwebRecord(et({emit:function(h){e.onRRwebEmit(h)},plugins:window.rrwebConsoleRecord&&this.isConsoleLogCaptureEnabled()?[window.rrwebConsoleRecord.getRecordConsolePlugin()]:[]},r)),this.instance._addCaptureHook(function(h){try{var c;h==="$pageview"&&((c=e.rrwebRecord)===null||c===void 0||c.addCustomEvent("$pageview",{href:window.location.href}))}catch(p){vt.error("Could not add $pageview to rrweb session",p)}}),this.lastActivityTimestamp=Date.now(),this.isIdle=!1):vt.error("onScriptLoaded was called but rrwebRecord is not available. This indicates something has gone wrong.")}},{key:"onRRwebEmit",value:function(e){if(e=function(i){if(i&&fr(i)==="object"&&i.type===ud&&fr(i.data)==="object"&&i.data.plugin===fd){i.data.payload.payload.length>10&&(i.data.payload.payload=i.data.payload.payload.slice(0,10),i.data.payload.payload.push("...[truncated]"));for(var n=[],s=0;s<i.data.payload.payload.length;s++)i.data.payload.payload[s]&&i.data.payload.payload[s].length>2e3?n.push(i.data.payload.payload[s].slice(0,2e3)+"...[truncated]"):n.push(i.data.payload.payload[s]);return i.data.payload.payload=n,i}return i}(function(i){if(i&&fr(i)==="object"){var n=JSON.stringify(i);if(n.length>5e6){var s,o=Je(n.matchAll(/data:([\w\/\-\.]+);(\w+),([^)"]*)/gim));try{for(o.s();!(s=o.n()).done;){var a=s.value;n=a[1].toLocaleLowerCase().slice(0,6)==="image/"?n.replace(a[0],cd):n.replace(a[0],"")}}catch(l){o.e(l)}finally{o.f()}}return JSON.parse(n)}return i}(e)),this._updateWindowAndSessionIds(e),!this.isIdle){var r={$snapshot_data:e,$session_id:this.sessionId,$window_id:this.windowId};this.instance._captureMetrics.incr("rrweb-record"),this.instance._captureMetrics.incr("rrweb-record-".concat(e.type)),this.emit?this._captureSnapshot(r):this.snapshots.push(r)}}},{key:"_captureSnapshot",value:function(e){this.instance.capture("$snapshot",e,{transport:"XHR",method:"POST",endpoint:this.endpoint,_noTruncate:!0,_batchKey:"sessionRecording",_metrics:{rrweb_full_snapshot:e.$snapshot_data.type===Uc}})}}]),t}(),Se={entryType:0,timeOrigin:1,name:2,startTime:3,redirectStart:4,redirectEnd:5,workerStart:6,fetchStart:7,domainLookupStart:8,domainLookupEnd:9,connectStart:10,secureConnectionStart:11,connectEnd:12,requestStart:13,responseStart:14,responseEnd:15,decodedBodySize:16,encodedBodySize:17,initiatorType:18,nextHopProtocol:19,renderBlockingStatus:20,responseStatus:21,transferSize:22,element:23,renderTime:24,loadTime:25,size:26,id:27,url:28,domComplete:29,domContentLoadedEvent:30,domInteractive:31,loadEventEnd:32,loadEventStart:33,redirectCount:34,navigationType:35,unloadEventEnd:36,unloadEventStart:37,duration:39,timestamp:40},yd=["first-input","navigation","paint","resource"],vd=["/s/","/e/"],bd=function(){function t(e){Bt(this,t),rt(this,"_forceAllowLocalhost",!1),this.instance=e}return Lt(t,[{key:"startObservingIfEnabled",value:function(){this.isEnabled()?this.startObserving():this.stopObserving()}},{key:"startObserving",value:function(){var e=this;if(!this.observer)if(!Hf.includes(location.hostname)||this._forceAllowLocalhost)try{this.observer=new PerformanceObserver(function(i){i.getEntries().forEach(function(n){e._capturePerformanceEvent(n)})});var r=PerformanceObserver.supportedEntryTypes.filter(function(i){return yd.includes(i)});r.forEach(function(i){var n;(n=e.observer)===null||n===void 0||n.observe({type:i,buffered:!0})})}catch(i){console.error("PostHog failed to start performance observer",i),this.stopObserving()}else vt.log("PostHog Peformance observer not started because we are on localhost.")}},{key:"stopObserving",value:function(){this.observer&&(this.observer.disconnect(),this.observer=void 0)}},{key:"isObserving",value:function(){return!!this.observer}},{key:"isEnabled",value:function(){var e,r;return(e=(r=this.instance.get_config("capture_performance"))!==null&&r!==void 0?r:this.remoteEnabled)!==null&&e!==void 0&&e}},{key:"afterDecideResponse",value:function(e){this.remoteEnabled=e.capturePerformance||!1,this.isEnabled()&&this.startObserving()}},{key:"_capturePerformanceEvent",value:function(e){if(e.name.indexOf(this.instance.get_config("api_host"))===0){var r=e.name.replace(this.instance.get_config("api_host"),"");if(vd.find(function(f){return r.indexOf(f)===0}))return}var i={url:e.name},n=this.instance.get_config("session_recording");if(n.maskNetworkRequestFn&&(i=n.maskNetworkRequestFn(i)),i){var s=e.toJSON();s.name=i.url;var o={},a=Math.floor(Date.now()-performance.now());for(var l in o[Se.timeOrigin]=a,o[Se.timestamp]=Math.floor(a+e.startTime),Se)s[l]!==void 0&&(o[Se[l]]=s[l]);if(this.capturePerformanceEvent(o),_d(e)){var h,c=Je(e.serverTiming||[]);try{for(c.s();!(h=c.n()).done;){var p,u=h.value;this.capturePerformanceEvent((rt(p={},Se.timeOrigin,a),rt(p,Se.timestamp,Math.floor(a+e.startTime)),rt(p,Se.name,u.name),rt(p,Se.duration,u.duration),rt(p,Se.entryType,"serverTiming"),p))}}catch(f){c.e(f)}finally{c.f()}}}}},{key:"capturePerformanceEvent",value:function(e){var r,i=e[Se.timestamp];(r=this.instance.sessionRecording)===null||r===void 0||r.onRRwebEmit({type:6,data:{plugin:"posthog/network@1",payload:e},timestamp:i})}}]),t}(),_d=function(t){return t.entryType==="navigation"||t.entryType==="resource"},wd=function(){function t(e){Bt(this,t),this.instance=e,this.instance.decideEndpointWasHit=this.instance._hasBootstrappedFeatureFlags()}return Lt(t,[{key:"call",value:function(){var e=this,r=fs(JSON.stringify({token:this.instance.get_config("token"),distinct_id:this.instance.get_distinct_id(),groups:this.instance.getGroups(),person_properties:this.instance.get_property(Qr),group_properties:this.instance.get_property(Ye)}));this.instance._send_request("".concat(this.instance.get_config("api_host"),"/decide/?v=3"),{data:r,verbose:!0},{method:"POST"},function(i){return e.parseDecideResponse(i)})}},{key:"parseDecideResponse",value:function(e){var r,i,n=this;if(e?.status!==0){if(this.instance.decideEndpointWasHit=!0,!document||!document.body)return console.log("document not ready yet, trying again in 500 milliseconds..."),void setTimeout(function(){n.parseDecideResponse(e)},500);if(this.instance.toolbar.afterDecideResponse(e),(r=this.instance.sessionRecording)===null||r===void 0||r.afterDecideResponse(e),Ze.afterDecideResponse(e,this.instance),(i=this.instance.webPerformance)===null||i===void 0||i.afterDecideResponse(e),this.instance.featureFlags.receivedFeatureFlags(e),this.instance.compression={},e.supportedCompression&&!this.instance.get_config("disable_compression")){var s,o={},a=Je(e.supportedCompression);try{for(a.s();!(s=a.n()).done;)o[s.value]=!0}catch(u){a.e(u)}finally{a.f()}this.instance.compression=o}if(e.siteApps)if(this.instance.get_config("opt_in_site_apps")){var l,h=this.instance.get_config("api_host"),c=Je(e.siteApps);try{var p=function(){var u=l.value,f=u.id,m=u.url,g=[h,h[h.length-1]==="/"&&m[0]==="/"?m.substring(1):m].join("");window["__$$ph_site_app_".concat(f)]=n.instance,ya(g,function(d){d&&console.error("Error while initializing PostHog app with config id ".concat(f),d)})};for(c.s();!(l=c.n()).done;)p()}catch(u){c.e(u)}finally{c.f()}}else e.siteApps.length>0&&console.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}else console.error("Failed to fetch feature flags from PostHog.")}}]),t}(),xd=["https://app.posthog.com","https://eu.posthog.com"],Sd=["source"],Ed=function(){function t(e){Bt(this,t),this.instance=e}return Lt(t,[{key:"afterDecideResponse",value:function(e){var r=e.toolbarParams||e.editorParams||(e.toolbarVersion?{toolbarVersion:e.toolbarVersion}:{});e.isAuthenticated&&r.toolbarVersion&&r.toolbarVersion.indexOf("toolbar")===0&&this.loadToolbar(et({},r))}},{key:"maybeLoadToolbar",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.location,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:window.history;try{if(!r){try{window.localStorage.setItem("test","test"),window.localStorage.removeItem("test")}catch{return!1}r=window.localStorage}var n,s=$c(e.hash,"__posthog")||$c(e.hash,"state"),o=s?JSON.parse(decodeURIComponent(s)):null;return o&&o.action==="ph_authorize"?((n=o).source="url",n&&Object.keys(n).length>0&&(o.desiredHash?e.hash=o.desiredHash:i?i.replaceState("",document.title,e.pathname+e.search):e.hash="")):((n=JSON.parse(r.getItem("_postHogToolbarParams")||"{}")).source="localstorage",delete n.userIntent),!(!n.token||this.instance.get_config("token")!==n.token)&&(this.loadToolbar(n),!0)}catch{return!1}}},{key:"loadToolbar",value:function(e){var r=this;if(window._postHogToolbarLoaded)return!1;window._postHogToolbarLoaded=!0;var i=this.instance.get_config("api_host"),n=3e4*Math.floor(Date.now()/3e4),s="".concat(i).concat(i.endsWith("/")?"":"/","static/toolbar.js?_ts=").concat(n),o=!xd.includes(this.instance.get_config("api_host"))&&this.instance.get_config("advanced_disable_toolbar_metrics"),a=et(et({token:this.instance.get_config("token")},e),{},{apiURL:i},o?{instrument:!1}:{});a.source;var l=Nf(a,Sd);return window.localStorage.setItem("_postHogToolbarParams",JSON.stringify(l)),ya(s,function(h){h?vt.error("Failed to load toolbar",h):(window.ph_load_toolbar||window.ph_load_editor)(a,r.instance)}),$i(window,"turbolinks:load",function(){window._postHogToolbarLoaded=!1,r.loadToolbar(a)}),!0}},{key:"_loadEditor",value:function(e){return this.loadToolbar(e)}},{key:"maybeLoadEditor",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.location,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:window.history;return this.maybeLoadToolbar(e,r,i)}}]),t}(),fp=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:3e3;Bt(this,t),this.isPolling=!0,this._event_queue=[],this._empty_queue_count=0,this._poller=void 0,this._pollInterval=e}return Lt(t,[{key:"setPollInterval",value:function(e){this._pollInterval=e,this.isPolling&&this.poll()}},{key:"poll",value:function(){}},{key:"unload",value:function(){}},{key:"getTime",value:function(){return new Date().getTime()}}]),t}(),kd=function(t){Jc(r,fp);var e=Kc(r);function r(i,n){var s,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:3e3;return Bt(this,r),(s=e.call(this,o)).handlePollRequest=n,s.captureMetrics=i,s}return Lt(r,[{key:"enqueue",value:function(i,n,s){this.captureMetrics.incr("batch-enqueue"),this._event_queue.push({url:i,data:n,options:s}),this.isPolling||(this.isPolling=!0,this.poll())}},{key:"poll",value:function(){var i=this;clearTimeout(this._poller),this._poller=setTimeout(function(){if(i._event_queue.length>0){var n=i.formatQueue(),s=function(a){var l=n[a],h=l.url,c=l.data,p=l.options;lt(c,function(u,f){c[f].offset=Math.abs(c[f].timestamp-i.getTime()),delete c[f].timestamp}),i.handlePollRequest(h,c,p),i.captureMetrics.incr("batch-requests"),i.captureMetrics.incr("batch-requests-".concat(h.slice(h.length-2))),i.captureMetrics.incr("batch-handle",c.length),i.captureMetrics.incr("batch-handle-".concat(h.slice(h.length-2)),c.length)};for(var o in n)s(o);i._event_queue.length=0,i._empty_queue_count=0}else i._empty_queue_count++;i._empty_queue_count>4&&(i.isPolling=!1,i._empty_queue_count=0),i.isPolling&&i.poll()},this._pollInterval)}},{key:"updateUnloadMetrics",value:function(){var i=this.formatQueue();for(var n in i){var s=i[n],o=s.url,a=s.data;this.captureMetrics.incr("batch-unload-requests"),this.captureMetrics.incr("batch-unload-requests-".concat(o.slice(o.length-2))),this.captureMetrics.incr("batch-unload",a.length),this.captureMetrics.incr("batch-unload-".concat(o.slice(o.length-2)),a.length)}}},{key:"unload",value:function(){var i=this;clearTimeout(this._poller);var n=this._event_queue.length>0?this.formatQueue():{};this._event_queue.length=0;var s=Object.values(n);[].concat(ea(s.filter(function(o){return o.url.indexOf("/e")===0})),ea(s.filter(function(o){return o.url.indexOf("/e")!==0}))).map(function(o){var a=o.url,l=o.data,h=o.options;i.handlePollRequest(a,l,et(et({},h),{},{transport:"sendBeacon"}))})}},{key:"formatQueue",value:function(){var i={};return lt(this._event_queue,function(n){var s=n.url,o=n.data,a=n.options,l=(a?a._batchKey:null)||s;i[l]===void 0&&(i[l]={data:[],url:s,options:a}),a&&i[l].options&&i[l].options._metrics&&!i[l].options._metrics.rrweb_full_snapshot&&(i[l].options._metrics.rrweb_full_snapshot=a._metrics.rrweb_full_snapshot),i[l].data.push(o)}),i}}]),r}(),Pd=function(){function t(e){Bt(this,t),this.enabled=e,this.metrics={}}return Lt(t,[{key:"incr",value:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.enabled&&(e="phjs-".concat(e),this.metrics[e]=(this.metrics[e]||0)+r)}},{key:"decr",value:function(e){this.enabled&&(e="phjs-".concat(e),this.metrics[e]=(this.metrics[e]||0)-1)}}]),t}(),ie=Uint8Array,jt=Uint16Array,ti=Uint32Array,_a=new ie([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),wa=new ie([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Wc=new ie([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),dp=function(t,e){for(var r=new jt(31),i=0;i<31;++i)r[i]=e+=1<<t[i-1];var n=new ti(r[30]);for(i=1;i<30;++i)for(var s=r[i];s<r[i+1];++s)n[s]=s-r[i]<<5|i;return[r,n]},mp=dp(_a,2),Ad=mp[0],ca=mp[1];Ad[28]=258,ca[258]=28;for(pa=dp(wa,0)[1],hs=new jt(32768),mt=0;mt<32768;++mt)Ue=(43690&mt)>>>1|(21845&mt)<<1,Ue=(61680&(Ue=(52428&Ue)>>>2|(13107&Ue)<<2))>>>4|(3855&Ue)<<4,hs[mt]=((65280&Ue)>>>8|(255&Ue)<<8)>>>1;var Ue,pa,hs,mt,Ri=function(t,e,r){for(var i=t.length,n=0,s=new jt(e);n<i;++n)++s[t[n]-1];var o,a=new jt(e);for(n=0;n<e;++n)a[n]=a[n-1]+s[n-1]<<1;if(r){o=new jt(1<<e);var l=15-e;for(n=0;n<i;++n)if(t[n])for(var h=n<<4|t[n],c=e-t[n],p=a[t[n]-1]++<<c,u=p|(1<<c)-1;p<=u;++p)o[hs[p]>>>l]=h}else for(o=new jt(i),n=0;n<i;++n)o[n]=hs[a[t[n]-1]++]>>>15-t[n];return o},gr=new ie(288);for(mt=0;mt<144;++mt)gr[mt]=8;for(mt=144;mt<256;++mt)gr[mt]=9;for(mt=256;mt<280;++mt)gr[mt]=7;for(mt=280;mt<288;++mt)gr[mt]=8;var cs=new ie(32);for(mt=0;mt<32;++mt)cs[mt]=5;var me,Cd=Ri(gr,9,0),Td=Ri(cs,5,0),gp=function(t){return(t/8>>0)+(7&t&&1)},yp=function(t,e,r){(e==null||e<0)&&(e=0),(r==null||r>t.length)&&(r=t.length);var i=new(t instanceof jt?jt:t instanceof ti?ti:ie)(r-e);return i.set(t.subarray(e,r)),i},Be=function(t,e,r){r<<=7&e;var i=e/8>>0;t[i]|=r,t[i+1]|=r>>>8},Ii=function(t,e,r){r<<=7&e;var i=e/8>>0;t[i]|=r,t[i+1]|=r>>>8,t[i+2]|=r>>>16},Qo=function(t,e){for(var r=[],i=0;i<t.length;++i)t[i]&&r.push({s:i,f:t[i]});var n=r.length,s=r.slice();if(!n)return[new ie(0),0];if(n==1){var o=new ie(r[0].s+1);return o[r[0].s]=1,[o,1]}r.sort(function(x,T){return x.f-T.f}),r.push({s:-1,f:25001});var a=r[0],l=r[1],h=0,c=1,p=2;for(r[0]={s:-1,f:a.f+l.f,l:a,r:l};c!=n-1;)a=r[r[h].f<r[p].f?h++:p++],l=r[h!=c&&r[h].f<r[p].f?h++:p++],r[c++]={s:-1,f:a.f+l.f,l:a,r:l};var u=s[0].s;for(i=1;i<n;++i)s[i].s>u&&(u=s[i].s);var f=new jt(u+1),m=Md(r[c-1],f,0);if(m>e){i=0;var g=0,d=m-e,y=1<<d;for(s.sort(function(x,T){return f[T.s]-f[x.s]||x.f-T.f});i<n;++i){var v=s[i].s;if(!(f[v]>e))break;g+=y-(1<<m-f[v]),f[v]=e}for(g>>>=d;g>0;){var b=s[i].s;f[b]<e?g-=1<<e-f[b]++-1:++i}for(;i>=0&&g;--i){var _=s[i].s;f[_]==e&&(--f[_],++g)}m=e}return[new ie(f),m]},Md=function t(e,r,i){return e.s==-1?Math.max(t(e.l,r,i+1),t(e.r,r,i+1)):r[e.s]=i},Yc=function(t){for(var e=t.length;e&&!t[--e];);for(var r=new jt(++e),i=0,n=t[0],s=1,o=function(l){r[i++]=l},a=1;a<=e;++a)if(t[a]==n&&a!=e)++s;else{if(!n&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(n),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(n);s=1,n=t[a]}return[r.subarray(0,i),e]},Di=function(t,e){for(var r=0,i=0;i<e.length;++i)r+=t[i]*e[i];return r},ns=function(t,e,r){var i=r.length,n=gp(e+2);t[n]=255&i,t[n+1]=i>>>8,t[n+2]=255^t[n],t[n+3]=255^t[n+1];for(var s=0;s<i;++s)t[n+s+4]=r[s];return 8*(n+4+i)},Zc=function(t,e,r,i,n,s,o,a,l,h,c){Be(e,c++,r),++n[256];for(var p=Qo(n,15),u=p[0],f=p[1],m=Qo(s,15),g=m[0],d=m[1],y=Yc(u),v=y[0],b=y[1],_=Yc(g),x=_[0],T=_[1],S=new jt(19),w=0;w<v.length;++w)S[31&v[w]]++;for(w=0;w<x.length;++w)S[31&x[w]]++;for(var I=Qo(S,7),E=I[0],M=I[1],k=19;k>4&&!E[Wc[k-1]];--k);var C,P,D,O,F=h+5<<3,A=Di(n,gr)+Di(s,cs)+o,$=Di(n,u)+Di(s,g)+o+14+3*k+Di(S,E)+(2*S[16]+3*S[17]+7*S[18]);if(F<=A&&F<=$)return ns(e,c,t.subarray(l,l+h));if(Be(e,c,1+($<A)),c+=2,$<A){C=Ri(u,f,0),P=u,D=Ri(g,d,0),O=g;var R=Ri(E,M,0);for(Be(e,c,b-257),Be(e,c+5,T-1),Be(e,c+10,k-4),c+=14,w=0;w<k;++w)Be(e,c+3*w,E[Wc[w]]);c+=3*k;for(var z=[v,x],N=0;N<2;++N){var G=z[N];for(w=0;w<G.length;++w){var V=31&G[w];Be(e,c,R[V]),c+=E[V],V>15&&(Be(e,c,G[w]>>>5&127),c+=G[w]>>>12)}}}else C=Cd,P=gr,D=Td,O=cs;for(w=0;w<a;++w)if(i[w]>255){V=i[w]>>>18&31,Ii(e,c,C[V+257]),c+=P[V+257],V>7&&(Be(e,c,i[w]>>>23&31),c+=_a[V]);var Y=31&i[w];Ii(e,c,D[Y]),c+=O[Y],Y>3&&(Ii(e,c,i[w]>>>5&8191),c+=wa[Y])}else Ii(e,c,C[i[w]]),c+=P[i[w]];return Ii(e,c,C[256]),c+P[256]},Fd=new ti([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Id=new ie(0),Dd=function(){for(var t=new ti(256),e=0;e<256;++e){for(var r=e,i=9;--i;)r=(1&r&&3988292384)^r>>>1;t[e]=r}return t}(),Od=function(){var t=4294967295;return{p:function(e){for(var r=t,i=0;i<e.length;++i)r=Dd[255&r^e[i]]^r>>>8;t=r},d:function(){return 4294967295^t}}},$d=function(t,e,r,i,n){return function(s,o,a,l,h,c){var p=s.length,u=new ie(l+p+5*(1+Math.floor(p/7e3))+h),f=u.subarray(l,u.length-h),m=0;if(!o||p<8)for(var g=0;g<=p;g+=65535){var d=g+65535;d<p?m=ns(f,m,s.subarray(g,d)):(f[g]=c,m=ns(f,m,s.subarray(g,p)))}else{for(var y=Fd[o-1],v=y>>>13,b=8191&y,_=(1<<a)-1,x=new jt(32768),T=new jt(_+1),S=Math.ceil(a/3),w=2*S,I=function(Gt){return(s[Gt]^s[Gt+1]<<S^s[Gt+2]<<w)&_},E=new ti(25e3),M=new jt(288),k=new jt(32),C=0,P=0,D=(g=0,0),O=0,F=0;g<p;++g){var A=I(g),$=32767&g,R=T[A];if(x[$]=R,T[A]=$,O<=g){var z=p-g;if((C>7e3||D>24576)&&z>423){m=Zc(s,f,0,E,M,k,P,D,F,g-F,m),D=C=P=0,F=g;for(var N=0;N<286;++N)M[N]=0;for(N=0;N<30;++N)k[N]=0}var G=2,V=0,Y=b,X=$-R&32767;if(z>2&&A==I(g-X))for(var Z=Math.min(v,z)-1,W=Math.min(32767,g),ht=Math.min(258,z);X<=W&&--Y&&$!=R;){if(s[g+G]==s[g+G-X]){for(var Q=0;Q<ht&&s[g+Q]==s[g+Q-X];++Q);if(Q>G){if(G=Q,V=X,Q>Z)break;var gt=Math.min(X,Q-2),ct=0;for(N=0;N<gt;++N){var j=g-X+N+32768&32767,Ft=j-x[j]+32768&32767;Ft>ct&&(ct=Ft,R=j)}}}X+=($=R)-(R=x[$])+32768&32767}if(V){E[D++]=268435456|ca[G]<<18|pa[V];var ne=31&ca[G],se=31&pa[V];P+=_a[ne]+wa[se],++M[257+ne],++k[se],O=g+G,++C}else E[D++]=s[g],++M[s[g]]}}m=Zc(s,f,c,E,M,k,P,D,F,g-F,m),c||(m=ns(f,m,Id))}return yp(u,0,l+gp(m)+h)}(t,e.level==null?6:e.level,e.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):12+e.mem,r,i,!n)},ua=function(t,e,r){for(;r;++e)t[e]=r,r>>>=8},Rd=function(t,e){var r=e.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=e.level<2?4:e.level==9?2:0,t[9]=3,e.mtime!=0&&ua(t,4,Math.floor(new Date(e.mtime||Date.now())/1e3)),r){t[3]=8;for(var i=0;i<=r.length;++i)t[i+10]=r.charCodeAt(i)}},Bd=function(t){return 10+(t.filename&&t.filename.length+1||0)};function Ld(t,e){e===void 0&&(e={});var r=Od(),i=t.length;r.p(t);var n=$d(t,e,Bd(e),8),s=n.length;return Rd(n,e),ua(n,s-8,r.d()),ua(n,s-4,i),n}function Vd(t,e){var r=t.length;if(!e&&typeof TextEncoder<"u")return new TextEncoder().encode(t);for(var i=new ie(t.length+(t.length>>>1)),n=0,s=function(h){i[n++]=h},o=0;o<r;++o){if(n+5>i.length){var a=new ie(n+8+(r-o<<1));a.set(i),i=a}var l=t.charCodeAt(o);l<128||e?s(l):l<2048?(s(192|l>>>6),s(128|63&l)):l>55295&&l<57344?(s(240|(l=65536+(1047552&l)|1023&t.charCodeAt(++o))>>>18),s(128|l>>>12&63),s(128|l>>>6&63),s(128|63&l)):(s(224|l>>>12),s(128|l>>>6&63),s(128|63&l))}return yp(i,0,n)}(function(t){t.GZipJS="gzip-js",t.LZ64="lz64",t.Base64="base64"})(me||(me={}));var Bi,xa,Dt,zd=function(t,e,r){var i=e||{};i.ip=r.ip?1:0,i._=new Date().getTime().toString(),i.ver=Pe.LIB_VERSION;var n=t.split("?");if(n.length>1){var s,o=Je(n[1].split("&"));try{for(o.s();!(s=o.n()).done;){var a=s.value.split("=")[0];i[a]&&delete i[a]}}catch(h){o.e(h)}finally{o.f()}}var l=t.indexOf("?")>-1?"&":"?";return t+l+function(h){var c,p,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"&",f=[];return lt(h,function(m,g){c=encodeURIComponent(m.toString()),p=encodeURIComponent(g),f[f.length]=p+"="+c}),f.join(u)}(i)},Sa=function t(e,r){if(r.blob&&e.buffer)return new Blob([e.buffer],{type:"text/plain"});if(r.sendBeacon||r.blob){var i=t(e,{method:"POST"});return new Blob([i],{type:"application/x-www-form-urlencoded"})}if(r.method!=="POST")return null;var n,s;return n=Array.isArray(e)||(s=e,Object.prototype.toString.call(s)==="[object Uint8Array]")?"data="+encodeURIComponent(e):"data="+encodeURIComponent(e.data),"compression"in e&&e.compression&&(n+="&compression="+e.compression),n},vp=function(t){var e=t.url,r=t.data,i=t.headers,n=t.options,s=t.captureMetrics,o=t.callback,a=t.retriesPerformedSoFar,l=t.retryQueue,h=t.onXHRError,c=t.timeout,p=c===void 0?1e4:c,u=new XMLHttpRequest;u.open(n.method||"GET",e,!0);var f=Sa(r,n);s.incr("_send_request"),s.incr("_send_request_inflight"),lt(i,function(m,g){u.setRequestHeader(g,m)}),n.method!=="POST"||n.blob||u.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),u.timeout=p,u.withCredentials=!0,u.onreadystatechange=function(){if(u.readyState===4)if(s.incr("xhr-response"),s.incr("xhr-response-".concat(u.status)),s.decr("_send_request_inflight"),u.status===200){if(o){var m;try{m=JSON.parse(u.responseText)}catch(g){return void vt.error(g)}o(m)}}else typeof h=="function"&&h(u),[401,403,404,500].indexOf(u.status)<0&&l.enqueue({url:e,data:r,options:n,headers:i,retriesPerformedSoFar:(a||0)+1,callback:o}),o&&o({status:0})},u.send(f)},Nd=function(t){Jc(r,fp);var e=Kc(r);function r(i,n){var s;return Bt(this,r),(s=e.call(this)).captureMetrics=i,s.isPolling=!1,s.queue=[],s.areWeOnline=!0,s.onXHRError=n,typeof window<"u"&&"onLine"in window.navigator&&(s.areWeOnline=window.navigator.onLine,window.addEventListener("online",function(){s._handleWeAreNowOnline()}),window.addEventListener("offline",function(){s.areWeOnline=!1})),s}return Lt(r,[{key:"enqueue",value:function(i){var n=i.retriesPerformedSoFar||0;if(!(n>=10)){var s=3e3*Math.pow(2,n),o=new Date(Date.now()+s);console.warn("Enqueued failed request for retry in ".concat(s)),this.queue.push({retryAt:o,requestData:i}),this.isPolling||(this.isPolling=!0,this.poll())}}},{key:"poll",value:function(){var i=this;this._poller&&clearTimeout(this._poller),this._poller=setTimeout(function(){i.areWeOnline&&i.queue.length>0&&i.flush(),i.poll()},this._pollInterval)}},{key:"flush",value:function(){var i=new Date(Date.now()),n=this.queue.filter(function(l){return l.retryAt<i});if(n.length>0){this.queue=this.queue.filter(function(l){return l.retryAt>=i});var s,o=Je(n);try{for(o.s();!(s=o.n()).done;){var a=s.value.requestData;this._executeXhrRequest(a)}}catch(l){o.e(l)}finally{o.f()}}}},{key:"unload",value:function(){this._poller&&(clearTimeout(this._poller),this._poller=void 0);var i,n=Je(this.queue);try{for(n.s();!(i=n.n()).done;){var s=i.value.requestData,o=s.url,a=s.data,l=s.options;try{window.navigator.sendBeacon(o,Sa(a,et(et({},l),{},{sendBeacon:!0})))}catch(h){Pe.DEBUG&&console.error(h)}}}catch(h){n.e(h)}finally{n.f()}this.queue=[]}},{key:"_executeXhrRequest",value:function(i){var n=i.url,s=i.data,o=i.options,a=i.headers,l=i.callback,h=i.retriesPerformedSoFar;vp({url:n,data:s||{},options:o||{},headers:a||{},retriesPerformedSoFar:h||0,callback:l,captureMetrics:this.captureMetrics,retryQueue:this,onXHRError:this.onXHRError})}},{key:"_handleWeAreNowOnline",value:function(){this.areWeOnline=!0,this.flush()}}]),r}(),jd=18e5,Gd=864e5,Hd=function(){function t(e,r){Bt(this,t),this.config=e,this.persistence=r,this._windowId=void 0,this._sessionId=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null;var i=e.persistence_name||e.token;if(this.window_id_storage_key="ph_"+i+"_window_id",this.primary_window_exists_storage_key="ph_"+i+"_primary_window_exists",this._canUseSessionStorage()){var n=Ot.parse(this.window_id_storage_key),s=Ot.parse(this.primary_window_exists_storage_key);n&&!s?this._windowId=n:Ot.remove(this.window_id_storage_key),Ot.set(this.primary_window_exists_storage_key,!0)}this._listenToReloadWindow()}return Lt(t,[{key:"_canUseSessionStorage",value:function(){return this.config.persistence!=="memory"&&!this.persistence.disabled&&Ot.is_supported()}},{key:"_setWindowId",value:function(e){e!==this._windowId&&(this._windowId=e,this._canUseSessionStorage()&&Ot.set(this.window_id_storage_key,e))}},{key:"_getWindowId",value:function(){return this._windowId?this._windowId:this._canUseSessionStorage()?Ot.parse(this.window_id_storage_key):null}},{key:"_setSessionId",value:function(e,r,i){e===this._sessionId&&r===this._sessionActivityTimestamp&&i===this._sessionStartTimestamp||(this._sessionStartTimestamp=i,this._sessionActivityTimestamp=r,this._sessionId=e,this.persistence.register(rt({},aa,[r,e,i])))}},{key:"_getSessionId",value:function(){if(this._sessionId&&this._sessionActivityTimestamp&&this._sessionStartTimestamp)return[this._sessionActivityTimestamp,this._sessionId,this._sessionStartTimestamp];var e=this.persistence.props[aa];return Array.isArray(e)&&e.length===2&&e.push(e[0]),e||[0,null,0]}},{key:"resetSessionId",value:function(){this._setSessionId(null,null,null)}},{key:"_listenToReloadWindow",value:function(){var e=this;window.addEventListener("beforeunload",function(){e._canUseSessionStorage()&&Ot.remove(e.primary_window_exists_storage_key)})}},{key:"checkAndGetSessionAndWindowId",value:function(){var e=arguments.length>0&&arguments[0]!==void 0&&arguments[0],r=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:null)||new Date().getTime(),i=ps(this._getSessionId(),3),n=i[0],s=i[1],o=i[2],a=this._getWindowId(),l=o&&o>0&&Math.abs(r-o)>Gd;!s||!e&&Math.abs(r-n)>jd||l?(s=Xe(),a=Xe(),o=r):a||(a=Xe());var h=n===0||!e||l?r:n,c=o===0?new Date().getTime():o;return this._setWindowId(a),this._setSessionId(s,h,c),{sessionId:s,windowId:a}}}]),t}(),qd=Lt(function t(e,r,i,n){Bt(this,t),this.name="posthog-js",this.setupOnce=function(s){s(function(o){var a,l,h;if(o.level!=="error"||!e.__loaded)return o;o.tags||(o.tags={});var c=e.config.ui_host||e.config.api_host;o.tags["PostHog Person URL"]=c+"/person/"+e.get_distinct_id(),e.sessionRecordingStarted()&&(o.tags["PostHog Recording URL"]=e.get_session_replay_url({withTimestamp:!0}));var p=((a=o.exception)===null||a===void 0?void 0:a.values)||[],u={$sentry_event_id:o.event_id,$sentry_exception:o.exception,$sentry_exception_message:(l=p[0])===null||l===void 0?void 0:l.value,$sentry_exception_type:(h=p[0])===null||h===void 0?void 0:h.type,$sentry_tags:o.tags};return r&&i&&(u.$sentry_url=(n||"https://sentry.io/organizations/")+r+"/issues/?project="+i+"&query="+o.event_id),e.capture("$exception",u),o})}}),Ud=function(t){var e=function(r,i){r.event.userId||r.event.anonymousId===t.get_distinct_id()||t.reset(),r.event.userId&&r.event.userId!==t.get_distinct_id()&&(t.register({distinct_id:r.event.userId}),t.reloadFeatureFlags());var n=t._calculate_event_properties(i,r.event.properties);return r.event.properties=Object.assign({},n,r.event.properties),r};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:function(r){return e(r,r.event.event)},page:function(r){return e(r,"$pageview")},identify:function(r){return e(r,"$identify")},screen:function(r){return e(r,"$screen")}}},Wd=function(){function t(){Bt(this,t),rt(this,"_seenFirstPageView",!1)}return Lt(t,[{key:"onPageview",value:function(){this._seenFirstPageView&&(this._pageViewId=Xe()),this._seenFirstPageView=!0}},{key:"getPageViewId",value:function(){return this._pageViewId||(this._pageViewId=Xe()),this._pageViewId}}]),t}();(function(t){t[t.INIT_MODULE=0]="INIT_MODULE",t[t.INIT_SNIPPET=1]="INIT_SNIPPET"})(Bi||(Bi={}));var fa=function(){},es={},Wt="posthog",ss=K.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,bp=!ss&&pe.indexOf("MSIE")===-1&&pe.indexOf("Mozilla")===-1,Xc=function(){var t,e,r;return{api_host:"https://app.posthog.com",api_method:"POST",api_transport:"XHR",ui_host:null,token:"",autocapture:!0,rageclick:!0,cross_subdomain_cookie:(At==null||(t=At.location)===null||t===void 0||(e=t.hostname)===null||e===void 0?void 0:e.indexOf("herokuapp.com"))===-1,persistence:"cookie",persistence_name:"",cookie_name:"",loaded:fa,store_google:!0,custom_campaign_params:[],save_referrer:!0,test:!1,verbose:!1,capture_pageview:!0,capture_pageleave:!0,debug:!1,cookie_expiration:365,upgrade:!1,disable_session_recording:!1,disable_persistence:!1,disable_cookie:!1,enable_recording_console_log:void 0,secure_cookie:(K==null||(r=K.location)===null||r===void 0?void 0:r.protocol)==="https:",ip:!0,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_capturing_persistence_type:"localStorage",opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_blacklist:[],respect_dnt:!1,sanitize_properties:null,xhr_headers:{},inapp_protocol:"//",inapp_link_new_window:!1,request_batching:!0,properties_string_max_length:65535,session_recording:{blockClass:"ph-no-capture",blockSelector:null,ignoreClass:"ph-ignore-input",maskAllInputs:!0,maskInputOptions:{},maskInputFn:null,slimDOMOptions:{},collectFonts:!1,inlineStylesheet:!0},mask_all_element_attributes:!1,mask_all_text:!1,advanced_disable_decide:!1,advanced_disable_toolbar_metrics:!1,on_xhr_error:function(i){var n="Bad HTTP status: "+i.status+" "+i.statusText;console.error(n)},get_device_id:function(i){return i},_onCapture:fa,_capture_metrics:!1,capture_performance:void 0,name:"posthog",callback_fn:"posthog._jsc",bootstrap:{},disable_compression:!1}},da=function(t,e,r,i){var n,s=r!==Wt&&Dt?r?Dt[r]:void 0:Dt,o={initComplete:!1,syncCode:!1},a=function(l){return function(h){o[l]||(o[l]=!0,o.initComplete&&o.syncCode&&i?.(h))}};if(s&&xa===Bi.INIT_MODULE)n=s;else{if(s&&!Le(s))return void console.error("You have already initialized "+r);n=new Ea}return n._init(t,e,r,a("initComplete")),n.toolbar.maybeLoadToolbar(),n.sessionRecording=new gd(n),n.sessionRecording.startRecordingIfEnabled(),n.webPerformance=new bd(n),n.webPerformance.startObservingIfEnabled(),n.__autocapture=n.get_config("autocapture"),Ze._setIsAutocaptureEnabled(n),Ze._isAutocaptureEnabled&&(n.__autocapture=n.get_config("autocapture"),Ze.enabledForProject(n.get_config("token"),100,100)?Ze.isBrowserSupported()?Ze.init(n):(n.__autocapture=!1,vt.log("Disabling Automatic Event Collection because this browser is not supported")):(n.__autocapture=!1,vt.log("Not in active bucket: disabling Automatic Event Collection."))),Pe.DEBUG=Pe.DEBUG||n.get_config("debug"),s!==void 0&&Le(s)&&(n._execute_array.call(n.people,s.people),n._execute_array(s)),a("syncCode")(n),n},Ea=function(){function t(){var e=this;Bt(this,t),this.config=Xc(),this.compression={},this.decideEndpointWasHit=!1,this.SentryIntegration=qd,this.segmentIntegration=function(){return Ud(e)},this.__captureHooks=[],this.__request_queue=[],this.__loaded=!1,this.__loaded_recorder_version=void 0,this.__autocapture=void 0,this._jsc=function(){},this.people=new ld(this),this.featureFlags=new hd(this),this.feature_flags=this.featureFlags,this.toolbar=new Ed(this),this.pageViewIdManager=new Wd,this._captureMetrics=void 0,this._requestQueue=void 0,this._retryQueue=void 0,this.persistence=void 0,this.sessionPersistence=void 0,this.sessionManager=void 0}return Lt(t,[{key:"init",value:function(e,r,i){if(ge(i))console.error("You must name your new library: init(token, config, name)");else{if(i!==Wt){var n=da(e,r,i,function(s){Dt[i]=s,s._loaded()});return Dt[i]=n,n}console.error("You must initialize the main posthog object right after you include the PostHog js snippet")}}},{key:"_init",value:function(e){var r,i,n=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0;this.__loaded=!0,this.config={},this._triggered_notifs=[];var l,h={segmentRegister:!1,syncCode:!1},c=function(_){return function(){h[_]||(h[_]=!0,h.segmentRegister&&h.syncCode&&a?.(n))}};if(this.set_config(It({},Xc(),s,{name:o,token:e,callback_fn:(o===Wt?o:Wt+"."+o)+"._jsc"})),this._jsc=function(){},(K!=null&&(r=K.rrweb)!==null&&r!==void 0&&r.record||K!=null&&K.rrwebRecord)&&(this.__loaded_recorder_version=K==null||(l=K.rrweb)===null||l===void 0?void 0:l.version),this._captureMetrics=new Pd(this.get_config("_capture_metrics")),this._requestQueue=new kd(this._captureMetrics,this._handle_queued_event.bind(this)),this._retryQueue=new Nd(this._captureMetrics,this.get_config("on_xhr_error")),this.__captureHooks=[],this.__request_queue=[],this.persistence=new jc(this.config),this.sessionManager=new Hd(this.config,this.persistence),this.sessionPersistence=this.config.persistence==="sessionStorage"?this.persistence:new jc(et(et({},this.config),{},{persistence:"sessionStorage"})),this._gdpr_init(),s.segment?(this.config.get_device_id=function(){return s.segment.user().anonymousId()},s.segment.user().id()&&(this.register({distinct_id:s.segment.user().id()}),this.persistence.set_user_state("identified")),s.segment.register(this.segmentIntegration()).then(c("segmentRegister"))):c("segmentRegister")(),((i=s.bootstrap)===null||i===void 0?void 0:i.distinctID)!==void 0){var p,u,f=this.get_config("get_device_id")(Xe()),m=(p=s.bootstrap)!==null&&p!==void 0&&p.isIdentifiedID?f:s.bootstrap.distinctID;this.persistence.set_user_state((u=s.bootstrap)!==null&&u!==void 0&&u.isIdentifiedID?"identified":"anonymous"),this.register({distinct_id:s.bootstrap.distinctID,$device_id:m})}if(this._hasBootstrappedFeatureFlags()){var g,d,y=Object.keys(((g=s.bootstrap)===null||g===void 0?void 0:g.featureFlags)||{}).filter(function(_){var x,T;return!((x=s.bootstrap)===null||x===void 0||(T=x.featureFlags)===null||T===void 0||!T[_])}).reduce(function(_,x){var T,S;return _[x]=((T=s.bootstrap)===null||T===void 0||(S=T.featureFlags)===null||S===void 0?void 0:S[x])||!1,_},{}),v=Object.keys(((d=s.bootstrap)===null||d===void 0?void 0:d.featureFlagPayloads)||{}).filter(function(_){return y[_]}).reduce(function(_,x){var T,S,w,I;return(T=s.bootstrap)!==null&&T!==void 0&&(S=T.featureFlagPayloads)!==null&&S!==void 0&&S[x]&&(_[x]=(w=s.bootstrap)===null||w===void 0||(I=w.featureFlagPayloads)===null||I===void 0?void 0:I[x]),_},{});this.featureFlags.receivedFeatureFlags({featureFlags:y,featureFlagPayloads:v})}if(!this.get_distinct_id()){var b=this.get_config("get_device_id")(Xe());this.register_once({distinct_id:b,$device_id:b},""),this.persistence.set_user_state("anonymous")}K.addEventListener&&K.addEventListener("onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this)),c("syncCode")()}},{key:"_loaded",value:function(){this.featureFlags.setReloadingPaused(!0);try{this.get_config("loaded")(this)}catch(e){console.error("`loaded` function failed",e)}this._start_queue_if_opted_in(),this.get_config("capture_pageview")&&this.capture("$pageview",{},{send_instantly:!0}),this.get_config("advanced_disable_decide")||new wd(this).call(),this.featureFlags.resetRequestQueue(),this.featureFlags.setReloadingPaused(!1)}},{key:"_start_queue_if_opted_in",value:function(){this.has_opted_out_capturing()||this.get_config("request_batching")&&this._requestQueue.poll()}},{key:"_dom_loaded",value:function(){var e=this;this.has_opted_out_capturing()||Ve(this.__request_queue,function(r){e._send_request.apply(e,ea(r))}),this.__request_queue=[],this._start_queue_if_opted_in()}},{key:"_prepare_callback",value:function(e,r){if(ge(e))return null;if(ss)return function(o){e(o,r)};var i=this._jsc,n=""+Math.floor(1e8*Math.random()),s=this.get_config("callback_fn")+"["+n+"]";return i[n]=function(o){delete i[n],e(o,r)},s}},{key:"_handle_unload",value:function(){this.get_config("request_batching")?(this.get_config("capture_pageview")&&this.get_config("capture_pageleave")&&this.capture("$pageleave"),this.get_config("_capture_metrics")&&(this._requestQueue.updateUnloadMetrics(),this.capture("$capture_metrics",this._captureMetrics.metrics)),this._requestQueue.unload(),this._retryQueue.unload()):this.get_config("capture_pageview")&&this.get_config("capture_pageleave")&&this.capture("$pageleave",null,{transport:"sendBeacon"})}},{key:"_handle_queued_event",value:function(e,r,i){var n=JSON.stringify(r);this.__compress_and_send_json_request(e,n,i||es,fa)}},{key:"__compress_and_send_json_request",value:function(e,r,i,n){var s,o=function(c,p,u){return c===me.LZ64?[{data:re.compressToBase64(p),compression:me.LZ64},u]:c===me.GZipJS?[Ld(Vd(p),{mtime:0}),et(et({},u),{},{blob:!0,urlQueryArgs:{compression:me.GZipJS}})]:[{data:fs(p)},u]}((s=this.compression)[me.GZipJS]?me.GZipJS:s[me.LZ64]?me.LZ64:me.Base64,r,i),a=ps(o,2),l=a[0],h=a[1];this._send_request(e,l,h,n)}},{key:"_send_request",value:function(e,r,i,n){if(bp)this.__request_queue.push([e,r,i,n]);else{var s={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")};i=It(s,i||{}),ss||(i.method="GET");var o="sendBeacon"in K.navigator&&i.transport==="sendBeacon";if(e=zd(e,i.urlQueryArgs||{},{ip:this.get_config("ip")}),o)try{K.navigator.sendBeacon(e,Sa(r,et(et({},i),{},{sendBeacon:!0})))}catch(c){this.get_config("debug")&&console.error(c)}else if(ss)try{vp({url:e,data:r,headers:this.get_config("xhr_headers"),options:i,captureMetrics:this._captureMetrics,callback:n,retriesPerformedSoFar:0,retryQueue:this._retryQueue,onXHRError:this.get_config("on_xhr_error")})}catch(c){console.error(c)}else{var a,l=At.createElement("script");l.type="text/javascript",l.async=!0,l.defer=!0,l.src=e;var h=At.getElementsByTagName("script")[0];(a=h.parentNode)===null||a===void 0||a.insertBefore(l,h)}}}},{key:"_execute_array",value:function(e){var r,i=this,n=[],s=[],o=[];Ve(e,function(l){l&&(r=l[0],Le(r)?o.push(l):typeof l=="function"?l.call(i):Le(l)&&r==="alias"?n.push(l):Le(l)&&r.indexOf("capture")!==-1&&typeof i[r]=="function"?o.push(l):s.push(l))});var a=function(l,h){Ve(l,function(c){if(Le(c[0])){var p=h;lt(c,function(u){p=p[u[0]].apply(p,u.slice(1))})}else this[c[0]].apply(this,c.slice(1))},h)};a(n,this),a(s,this),a(o,this)}},{key:"_hasBootstrappedFeatureFlags",value:function(){var e,r;return((e=this.config.bootstrap)===null||e===void 0?void 0:e.featureFlags)&&Object.keys((r=this.config.bootstrap)===null||r===void 0?void 0:r.featureFlags).length>0||!1}},{key:"push",value:function(e){this._execute_array([e])}},{key:"capture",value:function(e,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:es;if(this.__loaded&&!up(this,!1)){this._captureMetrics.incr("capture"),e==="$snapshot"&&this._captureMetrics.incr("snapshot");var n=(i=i||es).transport;if(n&&(i.transport=n),ge(e)||typeof e!="string")console.error("No event name provided to posthog.capture");else if(!Jf(pe)){this.sessionPersistence.update_search_keyword(),this.get_config("store_google")&&this.sessionPersistence.update_campaign_params(),this.get_config("save_referrer")&&this.sessionPersistence.update_referrer_info();var s={event:e,properties:this._calculate_event_properties(e,r||{})};e==="$identify"&&(s.$set=i.$set,s.$set_once=i.$set_once),(s=np(s,i._noTruncate?null:this.get_config("properties_string_max_length"))).timestamp=i.timestamp||new Date,this.get_config("debug")&&vt.log("PostHog.js send",s);var o=JSON.stringify(s),a=this.get_config("api_host")+(i.endpoint||"/e/"),l=i!==es;return!this.get_config("request_batching")||l&&!i._batchKey||i.send_instantly?this.__compress_and_send_json_request(a,o,i):this._requestQueue.enqueue(a,s,i),this._invokeCaptureHooks(e,s),s}}}},{key:"_addCaptureHook",value:function(e){this.__captureHooks.push(e)}},{key:"_invokeCaptureHooks",value:function(e,r){this.config._onCapture(e,r),lt(this.__captureHooks,function(i){return i(e)})}},{key:"_calculate_event_properties",value:function(e,r){var i,n=this.persistence.remove_event_timer(e),s=et({},r);if(s.token=this.get_config("token"),e==="$snapshot"){var o=et(et({},this.persistence.properties()),this.sessionPersistence.properties());return s.distinct_id=o.distinct_id,s}var a=Mt.properties();if(this.sessionManager){var l=this.sessionManager.checkAndGetSessionAndWindowId(),h=l.sessionId,c=l.windowId;s.$session_id=h,s.$window_id=c}if((i=this.webPerformance)!==null&&i!==void 0&&i.isEnabled&&(e==="$pageview"&&this.pageViewIdManager.onPageview(),s=It(s,{$pageview_id:this.pageViewIdManager.getPageViewId()})),e==="$performance_event"){var p=this.persistence.properties();return s.distinct_id=p.distinct_id,s.$current_url=a.$current_url,s}if(n!==void 0){var u=new Date().getTime()-n;s.$duration=parseFloat((u/1e3).toFixed(3))}s=It({},Mt.properties(),this.persistence.properties(),this.sessionPersistence.properties(),s);var f=this.get_config("property_blacklist");Le(f)?lt(f,function(g){delete s[g]}):console.error("Invalid value for property_blacklist config: "+f);var m=this.get_config("sanitize_properties");return m&&(s=m(s,e)),s}},{key:"register",value:function(e,r){this.persistence.register(e,r)}},{key:"register_once",value:function(e,r,i){this.persistence.register_once(e,r,i)}},{key:"register_for_session",value:function(e){this.sessionPersistence.register(e)}},{key:"unregister",value:function(e){this.persistence.unregister(e)}},{key:"unregister_for_session",value:function(e){this.sessionPersistence.unregister(e)}},{key:"_register_single",value:function(e,r){this.register(rt({},e,r))}},{key:"getFeatureFlag",value:function(e,r){return this.featureFlags.getFeatureFlag(e,r)}},{key:"getFeatureFlagPayload",value:function(e){var r=this.featureFlags.getFeatureFlagPayload(e);try{return JSON.parse(r)}catch{return r}}},{key:"isFeatureEnabled",value:function(e,r){return this.featureFlags.isFeatureEnabled(e,r)}},{key:"reloadFeatureFlags",value:function(){this.featureFlags.reloadFeatureFlags()}},{key:"updateEarlyAccessFeatureEnrollment",value:function(e,r){this.featureFlags.updateEarlyAccessFeatureEnrollment(e,r)}},{key:"getEarlyAccessFeatures",value:function(e){var r=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return this.featureFlags.getEarlyAccessFeatures(e,r)}},{key:"onFeatureFlags",value:function(e){return this.featureFlags.onFeatureFlags(e)}},{key:"identify",value:function(e,r,i){if(e){this._captureMetrics.incr("identify");var n=this.get_distinct_id();if(this.register({$user_id:e}),!this.get_property("$device_id")){var s=n;this.register_once({$had_persisted_distinct_id:!0,$device_id:s},"")}e!==n&&e!==this.get_property(is)&&(this.unregister(is),this.register({distinct_id:e}));var o=this.persistence.get_user_state()==="anonymous";e!==n&&o?(this.persistence.set_user_state("identified"),this.capture("$identify",{distinct_id:e,$anon_distinct_id:n},{$set:r||{},$set_once:i||{}}),this.featureFlags.setAnonymousDistinctId(n)):(r&&this.people.set(r),i&&this.people.set_once(i)),e!==n&&this.reloadFeatureFlags()}else console.error("Unique user id has not been set in posthog.identify")}},{key:"group",value:function(e,r,i){if(e&&r){this._captureMetrics.incr("group");var n=this.getGroups();n[e]!==r&&this.resetGroupPropertiesForFlags(e),this.register({$groups:et(et({},n),{},rt({},e,r))}),i&&(this.capture("$groupidentify",{$group_type:e,$group_key:r,$group_set:i}),this.setGroupPropertiesForFlags(rt({},e,i))),n[e]===r||i||this.reloadFeatureFlags()}else console.error("posthog.group requires a group type and group key")}},{key:"resetGroups",value:function(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}},{key:"setPersonPropertiesForFlags",value:function(e){var r=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];this.featureFlags.setPersonPropertiesForFlags(e,r)}},{key:"resetPersonPropertiesForFlags",value:function(){this.featureFlags.resetPersonPropertiesForFlags()}},{key:"setGroupPropertiesForFlags",value:function(e){var r=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];this.featureFlags.setGroupPropertiesForFlags(e,r)}},{key:"resetGroupPropertiesForFlags",value:function(e){this.featureFlags.resetGroupPropertiesForFlags(e)}},{key:"reset",value:function(e){var r=this.get_property("$device_id");this.persistence.clear(),this.sessionPersistence.clear(),this.persistence.set_user_state("anonymous"),this.sessionManager.resetSessionId();var i=this.get_config("get_device_id")(Xe());this.register_once({distinct_id:i,$device_id:e?i:r},"")}},{key:"get_distinct_id",value:function(){return this.get_property("distinct_id")}},{key:"getGroups",value:function(){return this.get_property("$groups")||{}}},{key:"get_session_id",value:function(){return this.sessionManager.checkAndGetSessionAndWindowId(!0).sessionId}},{key:"get_session_replay_url",value:function(e){var r=(this.config.ui_host||this.config.api_host)+"/replay/"+this.get_session_id();if(e!=null&&e.withTimestamp&&this.sessionManager._sessionStartTimestamp){var i,n=(i=e.timestampLookBack)!==null&&i!==void 0?i:10;if(!this.sessionManager._sessionStartTimestamp)return r;var s=Math.max(Math.floor((new Date().getTime()-(this.sessionManager._sessionStartTimestamp||0))/1e3)-n,0);r+="?t=".concat(s)}return r}},{key:"alias",value:function(e,r){return e===this.get_property(lp)?(vt.critical("Attempting to create alias for existing People user - aborting."),-2):(ge(r)&&(r=this.get_distinct_id()),e!==r?(this._register_single(is,e),this.capture("$create_alias",{alias:e,distinct_id:r})):(console.error("alias matches current distinct_id - skipping api call."),this.identify(e),-1))}},{key:"set_config",value:function(e){var r=et({},this.config);dr(e)&&(It(this.config,e),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),this.sessionPersistence&&this.sessionPersistence.update_config(this.config),wt.is_supported()&&wt.get("ph_debug")==="true"&&(this.config.debug=!0),this.get_config("debug")&&(Pe.DEBUG=!0),this.sessionRecording&&e.disable_session_recording!==void 0&&r.disable_session_recording!==e.disable_session_recording&&(e.disable_session_recording?this.sessionRecording.stopRecording():this.sessionRecording.startRecordingIfEnabled()))}},{key:"startSessionRecording",value:function(){this.set_config({disable_session_recording:!1})}},{key:"stopSessionRecording",value:function(){this.set_config({disable_session_recording:!0})}},{key:"sessionRecordingStarted",value:function(){var e;return!((e=this.sessionRecording)===null||e===void 0||!e.started())}},{key:"loadToolbar",value:function(e){return this.toolbar.loadToolbar(e)}},{key:"get_config",value:function(e){var r;return(r=this.config)===null||r===void 0?void 0:r[e]}},{key:"get_property",value:function(e){return this.persistence.props[e]}},{key:"getSessionProperty",value:function(e){return this.sessionPersistence.props[e]}},{key:"toString",value:function(){var e,r=(e=this.get_config("name"))!==null&&e!==void 0?e:Wt;return r!==Wt&&(r=Wt+"."+r),r}},{key:"_gdpr_init",value:function(){this.get_config("opt_out_capturing_persistence_type")==="localStorage"&&wt.is_supported()&&(!this.has_opted_in_capturing()&&this.has_opted_in_capturing({persistence_type:"cookie"})&&this.opt_in_capturing({enable_persistence:!1}),!this.has_opted_out_capturing()&&this.has_opted_out_capturing({persistence_type:"cookie"})&&this.opt_out_capturing({clear_persistence:!1}),this.clear_opt_in_out_capturing({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_capturing()?this._gdpr_update_persistence({clear_persistence:!0}):this.has_opted_in_capturing()||!this.get_config("opt_out_capturing_by_default")&&!ke.get("ph_optout")||(ke.remove("ph_optout"),this.opt_out_capturing({clear_persistence:this.get_config("opt_out_persistence_by_default")}))}},{key:"_gdpr_update_persistence",value:function(e){var r;if(e&&e.clear_persistence)r=!0;else{if(!e||!e.enable_persistence)return;r=!1}this.get_config("disable_persistence")||this.persistence.disabled===r||this.persistence.set_disabled(r),this.get_config("disable_persistence")||this.sessionPersistence.disabled===r||this.sessionPersistence.set_disabled(r)}},{key:"_gdpr_call_func",value:function(e,r){return r=It({capture:this.capture.bind(this),persistence_type:this.get_config("opt_out_capturing_persistence_type"),cookie_prefix:this.get_config("opt_out_capturing_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),secure_cookie:this.get_config("secure_cookie")},r||{}),wt.is_supported()||r.persistence_type!=="localStorage"||(r.persistence_type="cookie"),e(this.get_config("token"),{capture:r.capture,captureEventName:r.capture_event_name,captureProperties:r.capture_properties,persistenceType:r.persistence_type,persistencePrefix:r.cookie_prefix,cookieExpiration:r.cookie_expiration,crossSubdomainCookie:r.cross_subdomain_cookie,secureCookie:r.secure_cookie})}},{key:"opt_in_capturing",value:function(e){e=It({enable_persistence:!0},e||{}),this._gdpr_call_func(nd,e),this._gdpr_update_persistence(e)}},{key:"opt_out_capturing",value:function(e){var r=It({clear_persistence:!0},e||{});this._gdpr_call_func(sd,r),this._gdpr_update_persistence(r)}},{key:"has_opted_in_capturing",value:function(e){return this._gdpr_call_func(od,e)}},{key:"has_opted_out_capturing",value:function(e){return this._gdpr_call_func(hp,e)}},{key:"clear_opt_in_out_capturing",value:function(e){var r=It({enable_persistence:!0},e??{});this._gdpr_call_func(ad,r),this._gdpr_update_persistence(r)}},{key:"debug",value:function(e){e===!1?(K.console.log("You've disabled debug mode."),localStorage&&localStorage.removeItem("ph_debug"),this.set_config({debug:!1})):(K.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),localStorage&&localStorage.setItem("ph_debug","true"),this.set_config({debug:!0}))}},{key:"decodeLZ64",value:function(e){return re.decompressFromBase64(e||null)}}]),t}();(function(t,e){for(var r=0;r<e.length;r++)t.prototype[e[r]]=ip(t.prototype[e[r]])})(Ea,["identify"]);var We={},Yd=function(){Dt.init=function(t,e,r){if(r)return Dt[r]||(Dt[r]=We[r]=da(t||"",e||{},r,function(n){Dt[r]=We[r]=n,n._loaded()})),Dt[r];var i=Dt;return We[Wt]?i=We[Wt]:t&&(i=da(t,e||{},Wt,function(n){We[Wt]=n,n._loaded()}),We[Wt]=i),Dt=i,xa===Bi.INIT_SNIPPET&&(K[Wt]=Dt),lt(We,function(n,s){s!==Wt&&(Dt[s]=n)}),i}},Zd=function(){function t(){t.done||(t.done=!0,bp=!1,lt(We,function(e){e._dom_loaded()}))}At.addEventListener&&(At.readyState==="complete"?t():At.addEventListener("DOMContentLoaded",t,!1)),$i(K,"load",t,!0)},ka=(xa=Bi.INIT_MODULE,Dt=new Ea,Yd(),Dt.init(),Zd(),Dt);ka.init("phc_OTZ3wJ6VemgVupCRKS5Sbqb9Ks0JYe0hMYZPtLwl0nu",{api_host:"https://ph-eu.molin.ai",ui_host:"https://eu.posthog.com",secure_cookie:document.location.protocol==="https:",persistence:"cookie",autocapture:!1,rageclick:!1,capture_pageview:!0,disable_session_recording:!0});function ye(t,e){ka.capture(t,e)}var Ae,ve,ms,_p,gs,wp,ys,xp,vs,Sp,bs,Ep,_s,kp,ds=class extends kt(yt){constructor(){super();J(this,ms);J(this,gs);J(this,ys);J(this,vs);J(this,bs);J(this,_s);J(this,Ae,new Xn(this,{url:({resume:r}={})=>{let i=new URL(this.config.wsApiUrl);return i.searchParams.set("widgetId",this.widgetId),i.searchParams.set("resume",r?"1":""),i},onReconnect:()=>{},onError:r=>{console.error("ws error",r),ye("ShopAssistant: error",{widgetId:this.widgetId,error:"websocket onError"})},onClose:()=>{},onNewMessage:r=>{r.role==="assistant"&&ye("ShopAssistant: user received bot message (streaming started)",{widgetId:this.widgetId,message:r})},onUpdateMessage:r=>{},onMessageDone:r=>{let i={...q(this,Ae)?.messages.find(n=>n.id===r.message?.id)};Object.assign(i,r.message),i.role==="assistant"&&ye("ShopAssistant: user received bot message (streaming ended)",{widgetId:this.widgetId,text:i.content??"",message:i,usage_TOKENS_COMPLETION:r.message.usage.TOKENS_COMPLETION})},onMessageError:r=>{console.error("ws error",r),r.message&&q(this,ve)&&alert(r.message),ye("ShopAssistant: error",{widgetId:this.widgetId,error:"websocket ERROR message type: "+r.message})}}));J(this,ve,!1);this.widgetId="",this.config}render(){console.assert(this.widgetId,"widget id is required"),console.assert(this.config,"config is required");let r=Object.entries(this.config.bubble.position).filter(([s,o])=>o).map(([s,o])=>`${s}-[${o}]`).reduce((s,o)=>(s[o]=!0,s),{}),i={bottom:"4.5rem"},n=Object.entries(this.config.bubble.position).filter(([s,o])=>o).map(([s,o])=>`sm:${s}-[calc(${[i[s],o].filter(a=>!!a).join("+")})]`).reduce((s,o)=>(s[o]=!0,s),{});return st`
397
+ `)).length,n=0;n<i;n++){var o=t.charCodeAt(n),a=null;o<128?r++:a=o>127&&o<2048?String.fromCharCode(o>>6|192,63&o|128):String.fromCharCode(o>>12|224,o>>6&63|128,63&o|128),a!==null&&(r>e&&(s+=t.substring(e,r)),s+=a,e=r=n+1)}return r>e&&(s+=t.substring(e,t.length)),s},Xe=(Yo=function(){for(var t=new Date().valueOf(),e=0;t==new Date().valueOf();)e++;return t.toString(16)+e.toString(16)},function(){var t=typeof window<"u"?(window.screen.height*window.screen.width).toString(16):"0";return Yo()+"-"+Math.random().toString(16).replace(".","")+"-"+function(){var e,r,i=pe,n=0,s=[];function o(a,l){var h,c=0;for(h=0;h<l.length;h++)c|=s[h]<<8*h;return a^c}for(e=0;e<i.length;e++)r=i.charCodeAt(e),s.unshift(255&r),s.length>=4&&(n=o(n,s),s=[]);return s.length>0&&(n=o(n,s)),n.toString(16)}()+"-"+t+"-"+Yo()}),Jf=function(t){return!!/(google web preview|baiduspider|yandexbot|bingbot|googlebot|yahoo! slurp|ahrefsbot|facebookexternalhit|facebookcatalog|applebot|semrushbot|duckduckbot|twitterbot|rogerbot|linkedinbot|mj12bot|sitebulb|bot.htm|bot.php|hubspot|crawler)/i.test(t)},Oc=function(t,e){var r=e.replace(/[[]/,"\\[").replace(/[\]]/,"\\]"),i=new RegExp("[\\?&]"+r+"=([^&#]*)").exec(t);if(i===null||i&&typeof i[1]!="string"&&i[1].length)return"";var n=i[1];try{n=decodeURIComponent(n)}catch{vt.error("Skipping decoding for malformed query param: "+n)}return n.replace(/\+/g," ")},$c=function(t,e){var r=t.match(new RegExp(e+"=([^&]*)"));return r?r[1]:null},$i=function(){function t(e){return e&&(e.preventDefault=t.preventDefault,e.stopPropagation=t.stopPropagation),e}return t.preventDefault=function(){this.returnValue=!1},t.stopPropagation=function(){this.cancelBubble=!0},function(e,r,i,n,s){if(e)if(e.addEventListener&&!n)e.addEventListener(r,i,!!s);else{var o="on"+r,a=e[o];e[o]=function(l,h,c){return function(p){if(p=p||t(window.event)){var u,f=!0;ep(c)&&(u=c(p));var m=h.call(l,p);return u!==!1&&m!==!1||(f=!1),f}}}(e,i,a)}else vt.error("No valid element provided to register_event")}}();function ya(t,e){var r=function(){var i=At.createElement("script");i.type="text/javascript",i.src=t,i.onload=function(o){return e(void 0,o)},i.onerror=function(o){return e(o)};var n,s=At.querySelectorAll("body > script");s.length>0?(n=s[0].parentNode)===null||n===void 0||n.insertBefore(i,s[0]):At.body.appendChild(i)};At.body?r():At.addEventListener("DOMContentLoaded",r)}var Mt={campaignParams:function(t){var e=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gclid","fbclid","msclkid"].concat(t||[]),r={};return lt(e,function(i){var n=Oc(At.URL,i);n.length&&(r[i]=n)}),r},searchEngine:function(){var t=At.referrer;return t?t.search("https?://(.*)google.([^/?]*)")===0?"google":t.search("https?://(.*)bing.com")===0?"bing":t.search("https?://(.*)yahoo.com")===0?"yahoo":t.search("https?://(.*)duckduckgo.com")===0?"duckduckgo":null:null},searchInfo:function(){var t=Mt.searchEngine(),e=t!="yahoo"?"q":"p",r={};if(t!==null){r.$search_engine=t;var i=Oc(At.referrer,e);i.length&&(r.ph_keyword=i)}return r},browser:function(t,e,r){return e=e||"",r||ut(t," OPR/")?ut(t,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":ut(t,"IEMobile")||ut(t,"WPDesktop")?"Internet Explorer Mobile":ut(t,"SamsungBrowser/")?"Samsung Internet":ut(t,"Edge")||ut(t,"Edg/")?"Microsoft Edge":ut(t,"FBIOS")?"Facebook Mobile":ut(t,"Chrome")?"Chrome":ut(t,"CriOS")?"Chrome iOS":ut(t,"UCWEB")||ut(t,"UCBrowser")?"UC Browser":ut(t,"FxiOS")?"Firefox iOS":ut(e,"Apple")?ut(t,"Mobile")?"Mobile Safari":"Safari":ut(t,"Android")?"Android Mobile":ut(t,"Konqueror")?"Konqueror":ut(t,"Firefox")?"Firefox":ut(t,"MSIE")||ut(t,"Trident/")?"Internet Explorer":ut(t,"Gecko")?"Mozilla":""},browserVersion:function(t,e,r){var i={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/}[Mt.browser(t,e,r)];if(i===void 0)return null;var n=t.match(i);return n?parseFloat(n[n.length-2]):null},browserLanguage:function(){return ur.language||ur.userLanguage},os:function(t){if(/Windows/i.test(t)){if(/Phone/.test(t)||/WPDesktop/.test(t))return{os_name:"Windows Phone",os_version:""};var e=/Windows NT ([0-9.]+)/i.exec(t);return e&&e[1]?{os_name:"Windows",os_version:e[1]}:{os_name:"Windows",os_version:""}}if(/(iPhone|iPad|iPod)/.test(t)){var r=/OS (\d+)_(\d+)_?(\d+)?/i.exec(t);return r&&r[1]?{os_name:"iOS",os_version:[r[1],r[2],r[3]||"0"].join(".")}:{os_name:"iOS",os_version:""}}if(/Android/.test(t)){var i=/Android (\d+)\.(\d+)\.?(\d+)?/i.exec(t);return i&&i[1]?{os_name:"Android",os_version:[i[1],i[2],i[3]||"0"].join(".")}:{os_name:"Android",os_version:""}}if(/(BlackBerry|PlayBook|BB10)/i.test(t))return{os_name:"BlackBerry",os_version:""};if(/Mac/i.test(t)){var n=/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i.exec(t);return n&&n[1]?{os_name:"Mac OS X",os_version:[n[1],n[2],n[3]||"0"].join(".")}:{os_name:"Mac OS X",os_version:""}}return/Linux/.test(t)?{os_name:"Linux",os_version:""}:/CrOS/.test(t)?{os_name:"Chrome OS",os_version:""}:{os_name:"",os_version:""}},device:function(t){return/Windows Phone/i.test(t)||/WPDesktop/.test(t)?"Windows Phone":/iPad/.test(t)?"iPad":/iPod/.test(t)?"iPod Touch":/iPhone/.test(t)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":/Android/.test(t)&&!/Mobile/.test(t)?"Android Tablet":/Android/.test(t)?"Android":""},deviceType:function(t){var e=this.device(t);return e==="iPad"||e==="Android Tablet"?"Tablet":e?"Mobile":"Desktop"},referrer:function(){return At.referrer||"$direct"},referringDomain:function(){if(!At.referrer)return"$direct";var t=At.createElement("a");return t.href=At.referrer,t.host},properties:function(){var t=Mt.os(pe),e=t.os_name,r=t.os_version;return It(na({$os:e,$os_version:r,$browser:Mt.browser(pe,ur.vendor,K.opera),$device:Mt.device(pe),$device_type:Mt.deviceType(pe)}),{$current_url:K?.location.href,$host:K?.location.host,$pathname:K?.location.pathname,$browser_version:Mt.browserVersion(pe,ur.vendor,K.opera),$browser_language:Mt.browserLanguage(),$screen_height:K?.screen.height,$screen_width:K?.screen.width,$viewport_height:K?.innerHeight,$viewport_width:K?.innerWidth,$lib:"web",$lib_version:Pe.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:(Date.now=Date.now||function(){return+new Date},Date.now()/1e3)})},people_properties:function(){var t=Mt.os(pe),e=t.os_name,r=t.os_version;return It(na({$os:e,$os_version:r,$browser:Mt.browser(pe,ur.vendor,K.opera)}),{$browser_version:Mt.browserVersion(pe,ur.vendor,K.opera)})}};function as(t){switch(fr(t.className)){case"string":return t.className;case"object":return("baseVal"in t.className?t.className.baseVal:null)||t.getAttribute("class")||"";default:return""}}function ls(t){var e="";return rs(t)&&!op(t)&&t.childNodes&&t.childNodes.length&&lt(t.childNodes,function(r){sp(r)&&r.textContent&&(e+=ia(r.textContent).split(/(\s+)/).filter(Jr).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),ia(e)}function Rc(t){return!!t&&t.nodeType===1}function mr(t,e){return!!t&&!!t.tagName&&t.tagName.toLowerCase()===e.toLowerCase()}function sp(t){return!!t&&t.nodeType===3}function Bc(t){return!!t&&t.nodeType===11}var Zo=["a","button","form","input","select","textarea","label"];function rs(t){for(var e=t;e.parentNode&&!mr(e,"body");e=e.parentNode){var r=as(e).split(" ");if(ut(r,"ph-sensitive")||ut(r,"ph-no-capture"))return!1}if(ut(as(t).split(" "),"ph-include"))return!0;var i=t.type||"";if(typeof i=="string")switch(i.toLowerCase()){case"hidden":case"password":return!1}var n=t.name||t.id||"";return!(typeof n=="string"&&/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(n.replace(/[^a-zA-Z0-9]/g,"")))}function op(t){return!!(mr(t,"input")&&!["button","checkbox","submit","reset"].includes(t.type)||mr(t,"select")||mr(t,"textarea")||t.getAttribute("contenteditable")==="true")}function Jr(t){return!(t===null||ge(t)||typeof t=="string"&&(t=ia(t),/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/.test((t||"").replace(/[- ]/g,""))||/(^\d{3}-?\d{2}-?\d{4}$)/.test(t)))}function Lc(t){var e=ls(t);return Jr(e="".concat(e," ").concat(ap(t)).trim())?e:""}function ap(t){var e="";return t&&t.childNodes&&t.childNodes.length&&lt(t.childNodes,function(r){var i;if(r&&((i=r.tagName)===null||i===void 0?void 0:i.toLowerCase())==="span")try{var n=ls(r);e="".concat(e," ").concat(n).trim(),r.childNodes&&r.childNodes.length&&(e="".concat(e," ").concat(ap(r)).trim())}catch(s){console.error(s)}}),e}var Kf=function(){function t(e){Bt(this,t),this.clicks=[],this.enabled=e}return Lt(t,[{key:"isRageClick",value:function(e,r,i){if(!this.enabled)return!1;var n=this.clicks[this.clicks.length-1];if(n&&Math.abs(e-n.x)+Math.abs(r-n.y)<30&&i-n.timestamp<1e3){if(this.clicks.push({x:e,y:r,timestamp:i}),this.clicks.length===3)return!0}else this.clicks=[{x:e,y:r,timestamp:i}];return!1}}]),t}(),Qf=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,ke={is_supported:function(){return!0},error:function(t){vt.error("cookieStore error: "+t)},get:function(t){try{for(var e=t+"=",r=document.cookie.split(";"),i=0;i<r.length;i++){for(var n=r[i];n.charAt(0)==" ";)n=n.substring(1,n.length);if(n.indexOf(e)===0)return decodeURIComponent(n.substring(e.length,n.length))}}catch{}return null},parse:function(t){var e;try{e=JSON.parse(ke.get(t))||{}}catch{}return e},set:function(t,e,r,i,n){try{var s="",o="",a="";if(i){var l=document.location.hostname.match(Qf),h=l?l[0]:"";s=h?"; domain=."+h:""}if(r){var c=new Date;c.setTime(c.getTime()+24*r*60*60*1e3),o="; expires="+c.toUTCString()}n&&(a="; secure");var p=t+"="+encodeURIComponent(JSON.stringify(e))+o+"; SameSite=Lax; path=/"+s+a;return document.cookie=p,p}catch{return}},remove:function(t,e){try{ke.set(t,"",-1,e)}catch{return}}},Xo=null,wt={is_supported:function(){if(Xo!==null)return Xo;var t=!0;if(typeof window<"u")try{var e="__mplssupport__";wt.set(e,"xyz"),wt.get(e)!=='"xyz"'&&(t=!1),wt.remove(e)}catch{t=!1}else t=!1;return t||vt.error("localStorage unsupported; falling back to cookie store"),Xo=t,t},error:function(t){vt.error("localStorage error: "+t)},get:function(t){try{return window.localStorage.getItem(t)}catch(e){wt.error(e)}return null},parse:function(t){try{return JSON.parse(wt.get(t))||{}}catch{}return null},set:function(t,e){try{window.localStorage.setItem(t,JSON.stringify(e))}catch(r){wt.error(r)}},remove:function(t){try{window.localStorage.removeItem(t)}catch(e){wt.error(e)}}},sa=et(et({},wt),{},{parse:function(t){try{var e={};try{(e=ke.parse(t)||{}).distinct_id&&ke.set(t,{distinct_id:e.distinct_id})}catch{}var r=It(e,JSON.parse(wt.get(t)||"{}"));return wt.set(t,r),r}catch{}return null},set:function(t,e,r,i,n){try{wt.set(t,e),e.distinct_id&&ke.set(t,{distinct_id:e.distinct_id},r,i,n)}catch(s){wt.error(s)}},remove:function(t,e){try{window.localStorage.removeItem(t),ke.remove(t,e)}catch(r){wt.error(r)}}}),Qn={},td={is_supported:function(){return!0},error:function(t){vt.error("memoryStorage error: "+t)},get:function(t){return Qn[t]||null},parse:function(t){return Qn[t]||null},set:function(t,e){Qn[t]=e},remove:function(t){delete Qn[t]}},pr=null,Ot={is_supported:function(){if(pr!==null)return pr;if(pr=!0,typeof window<"u")try{var t="__support__";Ot.set(t,"xyz"),Ot.get(t)!=='"xyz"'&&(pr=!1),Ot.remove(t)}catch{pr=!1}else pr=!1;return pr},error:function(t){Pe.DEBUG&&vt.error("sessionStorage error: ",t)},get:function(t){try{return window.sessionStorage.getItem(t)}catch(e){Ot.error(e)}return null},parse:function(t){try{return JSON.parse(Ot.get(t))||null}catch{}return null},set:function(t,e){try{window.sessionStorage.setItem(t,JSON.stringify(e))}catch(r){Ot.error(r)}},remove:function(t){try{window.sessionStorage.removeItem(t)}catch(e){Ot.error(e)}}},lp="$people_distinct_id",is="__alias",Oi="__timers",Vc="$autocapture_disabled_server_side",oa="$session_recording_enabled_server_side",zc="$console_log_recording_enabled_server_side",Nc="$session_recording_recorder_version_server_side",aa="$sesid",Kr="$enabled_feature_flags",la="$early_access_features",Qr="$stored_person_properties",Ye="$stored_group_properties",ha="$user_state",ed=[lp,is,"__cmpns",Oi,oa,aa,Kr,ha,la,Ye,Qr],rd=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"],jc=function(){function t(e){Bt(this,t);var r="";e.token&&(r=e.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),this.props={},this.campaign_params_saved=!1,this.custom_campaign_params=e.custom_campaign_params||[],e.persistence_name?this.name="ph_"+e.persistence_name:this.name="ph_"+r+"_posthog",rd.indexOf(e.persistence.toLowerCase())===-1&&(vt.critical("Unknown persistence type "+e.persistence+"; falling back to cookie"),e.persistence="cookie");var i=e.persistence.toLowerCase();i==="localstorage"&&wt.is_supported()?this.storage=wt:i==="localstorage+cookie"&&sa.is_supported()?this.storage=sa:i==="sessionstorage"&&Ot.is_supported()?this.storage=Ot:this.storage=i==="memory"?td:ke,this.user_state="anonymous",this.load(),this.update_config(e),this.save()}return Lt(t,[{key:"properties",value:function(){var e={};return lt(this.props,function(r,i){if(i===Kr&&fr(r)==="object")for(var n=Object.keys(r),s=0;s<n.length;s++)e["$feature/".concat(n[s])]=r[n[s]];else a=i,l=!1,((o=ed)===null?l:Dc&&o.indexOf===Dc?o.indexOf(a)!=-1:(lt(o,function(h){if(l||(l=h===a))return ga}),l))||(e[i]=r);var o,a,l}),e}},{key:"load",value:function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=It({},e))}}},{key:"save",value:function(){this.disabled||this.storage.set(this.name,this.props,this.expire_days,this.cross_subdomain,this.secure)}},{key:"remove",value:function(){this.storage.remove(this.name,!1),this.storage.remove(this.name,!0)}},{key:"clear",value:function(){this.remove(),this.props={}}},{key:"register_once",value:function(e,r,i){var n=this;if(dr(e)){r===void 0&&(r="None"),this.expire_days=i===void 0?this.default_expiry:i;var s=!1;if(lt(e,function(o,a){n.props.hasOwnProperty(a)&&n.props[a]!==r||(n.props[a]=o,s=!0)}),s)return this.save(),!0}return!1}},{key:"register",value:function(e,r){var i=this;if(dr(e)){this.expire_days=r===void 0?this.default_expiry:r;var n=!1;if(lt(e,function(s,o){e.hasOwnProperty(o)&&i.props[o]!==s&&(i.props[o]=s,n=!0)}),n)return this.save(),!0}return!1}},{key:"unregister",value:function(e){e in this.props&&(delete this.props[e],this.save())}},{key:"update_campaign_params",value:function(){this.campaign_params_saved||(this.register(Mt.campaignParams(this.custom_campaign_params)),this.campaign_params_saved=!0)}},{key:"update_search_keyword",value:function(){this.register(Mt.searchInfo())}},{key:"update_referrer_info",value:function(){this.register({$referrer:this.props.$referrer||Mt.referrer(),$referring_domain:this.props.$referring_domain||Mt.referringDomain()})}},{key:"get_referrer_info",value:function(){return na({$referrer:this.props.$referrer,$referring_domain:this.props.$referring_domain})}},{key:"safe_merge",value:function(e){return lt(this.props,function(r,i){i in e||(e[i]=r)}),e}},{key:"update_config",value:function(e){this.default_expiry=this.expire_days=e.cookie_expiration,this.set_disabled(e.disable_persistence),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie)}},{key:"set_disabled",value:function(e){this.disabled=e,this.disabled?this.remove():this.save()}},{key:"set_cross_subdomain",value:function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())}},{key:"get_cross_subdomain",value:function(){return!!this.cross_subdomain}},{key:"set_secure",value:function(e){e!==this.secure&&(this.secure=e,this.remove(),this.save())}},{key:"set_event_timer",value:function(e,r){var i=this.props[Oi]||{};i[e]=r,this.props[Oi]=i,this.save()}},{key:"remove_event_timer",value:function(e){var r=(this.props[Oi]||{})[e];return ge(r)||(delete this.props[Oi][e],this.save()),r}},{key:"get_user_state",value:function(){return this.props[ha]||"anonymous"}},{key:"set_user_state",value:function(e){this.props[ha]=e,this.save()}}]),t}(),Ze={_initializedTokens:[],_isAutocaptureEnabled:!1,_setIsAutocaptureEnabled:function(t){var e=!!t.get_property(Vc),r=!!t.get_config("autocapture");this._isAutocaptureEnabled=r&&!e},_previousElementSibling:function(t){if(t.previousElementSibling)return t.previousElementSibling;var e=t;do e=e.previousSibling;while(e&&!Rc(e));return e},_getAugmentPropertiesFromElement:function(t){if(!rs(t))return{};var e={};return lt(t.attributes,function(r){if(r.name.indexOf("data-ph-capture-attribute")===0){var i=r.name.replace("data-ph-capture-attribute-",""),n=r.value;i&&n&&Jr(n)&&(e[i]=n)}}),e},_getPropertiesFromElement:function(t,e,r){var i=t.tagName.toLowerCase(),n={tag_name:i};Zo.indexOf(i)>-1&&!r&&(i.toLowerCase()==="a"||i.toLowerCase()==="button"?n.$el_text=Lc(t):n.$el_text=ls(t));var s=as(t);s.length>0&&(n.classes=s.split(" ").filter(function(h){return h!==""})),lt(t.attributes,function(h){var c;op(t)&&["name","id","class"].indexOf(h.name)===-1||!e&&Jr(h.value)&&(typeof(c=h.name)!="string"||c.substring(0,10)!=="_ngcontent"&&c.substring(0,7)!=="_nghost")&&(n["attr__"+h.name]=h.value)});for(var o=1,a=1,l=t;l=this._previousElementSibling(l);)o++,l.tagName===t.tagName&&a++;return n.nth_child=o,n.nth_of_type=a,n},_getDefaultProperties:function(t){return{$event_type:t,$ce_version:1}},_extractCustomPropertyValue:function(t){var e=[];return lt(document.querySelectorAll(t.css_selector),function(r){var i;["input","select"].indexOf(r.tagName.toLowerCase())>-1?i=r.value:r.textContent&&(i=r.textContent),Jr(i)&&e.push(i)}),e.join(", ")},_getCustomProperties:function(t){var e=this,r={};return lt(this._customProperties,function(i){lt(i.event_selectors,function(n){lt(document.querySelectorAll(n),function(s){ut(t,s)&&rs(s)&&(r[i.name]=e._extractCustomPropertyValue(i))})})}),r},_getEventTarget:function(t){return t.target===void 0?t.srcElement||null:(e=t.target)!==null&&e!==void 0&&e.shadowRoot?t.composedPath()[0]||null:t.target||null;var e},_captureEvent:function(t,e){var r,i=this,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"$autocapture",s=this._getEventTarget(t);if(sp(s)&&(s=s.parentNode||null),n==="$autocapture"&&t.type==="click"&&t instanceof MouseEvent&&(r=this.rageclicks)!==null&&r!==void 0&&r.isRageClick(t.clientX,t.clientY,new Date().getTime())&&this._captureEvent(t,e,"$rageclick"),s&&function(f,m){var g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;if(!f||mr(f,"html")||!Rc(f))return!1;if(g!=null&&g.url_allowlist){var d=window.location.href,y=g.url_allowlist;if(y&&!y.some(function(k){return d.match(k)}))return!1}if(g!=null&&g.dom_event_allowlist){var v=g.dom_event_allowlist;if(v&&!v.some(function(k){return m.type===k}))return!1}if(g!=null&&g.element_allowlist){var b=g.element_allowlist;if(b&&!b.some(function(k){return f.tagName.toLowerCase()===k}))return!1}if(g!=null&&g.css_selector_allowlist){var _=g.css_selector_allowlist;if(_&&!_.some(function(k){return f.matches(k)}))return!1}for(var x=!1,T=[f],S=!0,w=f;w.parentNode&&!mr(w,"body");)if(Bc(w.parentNode))T.push(w.parentNode.host),w=w.parentNode.host;else{if(!(S=w.parentNode||!1))break;if(Zo.indexOf(S.tagName.toLowerCase())>-1)x=!0;else{var I=window.getComputedStyle(S);I&&I.getPropertyValue("cursor")==="pointer"&&(x=!0)}T.push(S),w=S}var E=window.getComputedStyle(f);if(E&&E.getPropertyValue("cursor")==="pointer"&&m.type==="click")return!0;var M=f.tagName.toLowerCase();switch(M){case"html":return!1;case"form":return m.type==="submit";case"input":case"select":case"textarea":return m.type==="change"||m.type==="click";default:return x?m.type==="click":m.type==="click"&&(Zo.indexOf(M)>-1||f.getAttribute("contenteditable")==="true")}}(s,t,this.config)){for(var o=[s],a=s;a.parentNode&&!mr(a,"body");)Bc(a.parentNode)?(o.push(a.parentNode.host),a=a.parentNode.host):(o.push(a.parentNode),a=a.parentNode);var l,h=[],c={},p=!1;if(lt(o,function(f){var m=rs(f);f.tagName.toLowerCase()==="a"&&(l=f.getAttribute("href"),l=m&&Jr(l)&&l),ut(as(f).split(" "),"ph-no-capture")&&(p=!0),h.push(i._getPropertiesFromElement(f,e.get_config("mask_all_element_attributes"),e.get_config("mask_all_text")));var g=i._getAugmentPropertiesFromElement(f);It(c,g)}),e.get_config("mask_all_text")||(s.tagName.toLowerCase()==="a"||s.tagName.toLowerCase()==="button"?h[0].$el_text=Lc(s):h[0].$el_text=ls(s)),l&&(h[0].attr__href=l),p)return!1;var u=It(this._getDefaultProperties(t.type),{$elements:h},this._getCustomProperties(o),c);return e.capture(n,u),!0}},_navigate:function(t){window.location.href=t},_addDomEventHandlers:function(t){var e=this,r=function(i){i=i||window.event,e._captureEvent(i,t)};$i(document,"submit",r,!1,!0),$i(document,"change",r,!1,!0),$i(document,"click",r,!1,!0)},_customProperties:[],rageclicks:null,config:void 0,init:function(t){var e;typeof t.__autocapture!="boolean"&&(this.config=t.__autocapture),(e=this.config)!==null&&e!==void 0&&e.url_allowlist&&(this.config.url_allowlist=this.config.url_allowlist.map(function(r){return new RegExp(r)})),this.rageclicks=new Kf(t.get_config("rageclick"))},afterDecideResponse:function(t,e){this._setIsAutocaptureEnabled(e);var r=e.get_config("token");this._initializedTokens.indexOf(r)>-1?vt.log('autocapture already initialized for token "'+r+'"'):(e.persistence&&e.persistence.register(rt({},Vc,!!t.autocapture_opt_out)),this._initializedTokens.push(r),t&&t.config&&t.config.enable_collect_everything&&this._isAutocaptureEnabled?(t.custom_properties&&(this._customProperties=t.custom_properties),this._addDomEventHandlers(e)):e.__autocapture=!1)},enabledForProject:function(t,e,r){if(!t)return!0;e=ge(e)?10:e,r=ge(r)?10:r;for(var i=0,n=0;n<t.length;n++)i+=t.charCodeAt(n);return i%e<r},isBrowserSupported:function(){return ep(document.querySelectorAll)}};(function(t){for(var e in t)typeof t[e]=="function"&&(t[e]=t[e].bind(t))})(Ze),function(t){for(var e in t)typeof t[e]=="function"&&(t[e]=ip(t[e]))}(Ze);var id="__ph_opt_in_out_";function nd(t,e){pp(!0,t,e)}function sd(t,e){pp(!1,t,e)}function od(t,e){return cp(t,e)==="1"}function hp(t,e){return!!function(r){if(r&&r.respectDnt){var i=r&&r.window||K,n=i.navigator||{},s=!1;return lt([n.doNotTrack,n.msDoNotTrack,i.doNotTrack],function(o){ut([!0,1,"1","yes"],o)&&(s=!0)}),s}return!1}(e)||cp(t,e)==="0"}function ad(t,e){va(e=e||{}).remove(ba(t,e),!!e.crossSubdomainCookie)}function va(t){return(t=t||{}).persistenceType==="localStorage"?wt:t.persistenceType==="localStorage+cookie"?sa:ke}function ba(t,e){return((e=e||{}).persistencePrefix||id)+t}function cp(t,e){return va(e).get(ba(t,e))}function pp(t,e,r){rp(e)&&e.length?(va(r=r||{}).set(ba(e,r),t?1:0,Uf(r.cookieExpiration)?r.cookieExpiration:null,r.crossSubdomainCookie,r.secureCookie),r.capture&&t&&r.capture(r.captureEventName||"$opt_in",r.captureProperties||{},{send_instantly:!0})):console.error("gdpr."+(t?"optIn":"optOut")+" called with an invalid token")}function up(t,e){var r=!1;try{var i=t.get_config("token"),n=t.get_config("respect_dnt"),s=t.get_config("opt_out_capturing_persistence_type"),o=t.get_config("opt_out_capturing_cookie_prefix")||void 0,a=t.get_config("window");i&&(r=hp(i,{respectDnt:n,persistenceType:s,persistencePrefix:o,window:a}))}catch(l){e||console.error("Unexpected error when checking capturing opt-out status: "+l)}return r}function Gc(t,e,r){return function(){for(var i=up(t,r),n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];if(!i)return e.apply(this,s);var a=s[s.length-1];typeof a=="function"&&a(0)}}var Jo="$set",ld=function(){function t(e){var r=this;Bt(this,t),this._posthog=e,this.set=Gc(e,function(i,n,s){var o=r.set_action(i,n);return r._posthog.setPersonPropertiesForFlags(o.$set||{}),dr(i)&&(s=n),r._get_config("save_referrer")&&r._posthog.sessionPersistence.update_referrer_info(),o[Jo]=It({},Mt.people_properties(),r._posthog.sessionPersistence.get_referrer_info(),o[Jo]),r._send_request(o,s)}),this.set_once=Gc(e,function(i,n,s){var o=r.set_once_action(i,n);return dr(i)&&(s=n),r._send_request(o,s)})}return Lt(t,[{key:"toString",value:function(){return this._posthog.toString()+".people"}},{key:"_send_request",value:function(e,r){e.$token=this._get_config("token"),e.$distinct_id=this._posthog.get_distinct_id();var i=this._posthog.get_property("$device_id"),n=this._posthog.get_property("$user_id"),s=this._posthog.get_property("$had_persisted_distinct_id");i&&(e.$device_id=i),n&&(e.$user_id=n),s&&(e.$had_persisted_distinct_id=s);var o=Wf(e),a=np(o,this._get_config("properties_string_max_length")),l=fs(JSON.stringify(o));return this._posthog._send_request(this._get_config("api_host")+"/engage/",{data:l},{},this._posthog._prepare_callback(r,a)),a}},{key:"_get_config",value:function(e){return this._posthog.get_config(e)}},{key:"_is_reserved_property",value:function(e){return e==="$distinct_id"||e==="$token"||e==="$device_id"||e==="$user_id"||e==="$had_persisted_distinct_id"}},{key:"set_action",value:function(e,r){return this.apiActionParser(Jo,e,r)}},{key:"set_once_action",value:function(e,r){return this.apiActionParser("$set_once",e,r)}},{key:"apiActionParser",value:function(e,r,i){var n=this,s={},o={};return dr(r)?lt(r,function(a,l){n._is_reserved_property(l)||(o[l]=a)}):o[r]=i,s[e]=o,s}}]),t}(),Ko="$active_feature_flags",ts="$override_feature_flags",Hc="$feature_flag_payloads",qc=function(t){var e,r={},i=Je(function(a){for(var l=Object.keys(a),h=l.length,c=new Array(h);h--;)c[h]=[l[h],a[l[h]]];return c}(t||{}));try{for(i.s();!(e=i.n()).done;){var n=ps(e.value,2),s=n[0],o=n[1];o&&(r[s]=o)}}catch(a){i.e(a)}finally{i.f()}return r},hd=function(){function t(e){Bt(this,t),this.instance=e,this._override_warning=!1,this.flagCallReported={},this.featureFlagEventHandlers=[],this.reloadFeatureFlagsQueued=!1,this.reloadFeatureFlagsInAction=!1}return Lt(t,[{key:"getFlags",value:function(){return Object.keys(this.getFlagVariants())}},{key:"getFlagVariants",value:function(){var e=this.instance.get_property(Kr),r=this.instance.get_property(ts);if(!r)return e||{};for(var i=It({},e),n=Object.keys(r),s=0;s<n.length;s++)r[n[s]]===!1?delete i[n[s]]:i[n[s]]=r[n[s]];return this._override_warning||(console.warn("[PostHog] Overriding feature flags!",{enabledFlags:e,overriddenFlags:r,finalFlags:i}),this._override_warning=!0),i}},{key:"getFlagPayloads",value:function(){return this.instance.get_property(Hc)||{}}},{key:"reloadFeatureFlags",value:function(){this.reloadFeatureFlagsQueued||(this.reloadFeatureFlagsQueued=!0,this._startReloadTimer())}},{key:"setAnonymousDistinctId",value:function(e){this.$anon_distinct_id=e}},{key:"setReloadingPaused",value:function(e){this.reloadFeatureFlagsInAction=e}},{key:"resetRequestQueue",value:function(){this.reloadFeatureFlagsQueued=!1}},{key:"_startReloadTimer",value:function(){var e=this;this.reloadFeatureFlagsQueued&&!this.reloadFeatureFlagsInAction&&setTimeout(function(){!e.reloadFeatureFlagsInAction&&e.reloadFeatureFlagsQueued&&(e.reloadFeatureFlagsQueued=!1,e._reloadFeatureFlagsRequest())},5)}},{key:"_reloadFeatureFlagsRequest",value:function(){var e=this;this.setReloadingPaused(!0);var r=this.instance.get_config("token"),i=this.instance.get_property(Qr),n=this.instance.get_property(Ye),s=fs(JSON.stringify({token:r,distinct_id:this.instance.get_distinct_id(),groups:this.instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:i,group_properties:n}));this.instance._send_request(this.instance.get_config("api_host")+"/decide/?v=3",{data:s},{method:"POST"},this.instance._prepare_callback(function(o){e.$anon_distinct_id=void 0,e.receivedFeatureFlags(o),e.setReloadingPaused(!1),e._startReloadTimer()}))}},{key:"getFeatureFlag",value:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.getFlags())return console.warn('getFeatureFlag for key "'+e+`" failed. Feature flags didn't load in time.`),!1;var i=this.getFlagVariants()[e];return!r.send_event&&"send_event"in r||this.flagCallReported[e]||(this.flagCallReported[e]=!0,this.instance.capture("$feature_flag_called",{$feature_flag:e,$feature_flag_response:i})),i}},{key:"getFeatureFlagPayload",value:function(e){return this.getFlagPayloads()[e]}},{key:"isFeatureEnabled",value:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.getFlags()?!!this.getFeatureFlag(e,r):(console.warn('isFeatureEnabled for key "'+e+`" failed. Feature flags didn't load in time.`),!1)}},{key:"addFeatureFlagsHandler",value:function(e){this.featureFlagEventHandlers.push(e)}},{key:"removeFeatureFlagsHandler",value:function(e){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter(function(r){return r!==e})}},{key:"receivedFeatureFlags",value:function(e){this.instance.decideEndpointWasHit=!0;var r=this.getFlagVariants(),i=this.getFlagPayloads();(function(n,s){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},l=n.featureFlags,h=n.featureFlagPayloads;if(l)if(Array.isArray(l)){var c,p={};if(l)for(var u=0;u<l.length;u++)p[l[u]]=!0;s&&s.register((rt(c={},Ko,l),rt(c,Kr,p),c))}else{var f,m=l,g=h;n.errorsWhileComputingFlags&&(m=et(et({},o),m),g=et(et({},a),g)),s&&s.register((rt(f={},Ko,Object.keys(qc(m))),rt(f,Kr,m||{}),rt(f,Hc,g||{}),f))}})(e,this.instance.persistence,r,i),this._fireFeatureFlagsCallbacks()}},{key:"override",value:function(e){if(this._override_warning=!1,e===!1)this.instance.persistence.unregister(ts);else if(Array.isArray(e)){for(var r={},i=0;i<e.length;i++)r[e[i]]=!0;this.instance.persistence.register(rt({},ts,r))}else this.instance.persistence.register(rt({},ts,e))}},{key:"onFeatureFlags",value:function(e){var r=this;if(this.addFeatureFlagsHandler(e),this.instance.decideEndpointWasHit){var i=this._prepareFeatureFlagsForCallbacks(),n=i.flags,s=i.flagVariants;e(n,s)}return function(){return r.removeFeatureFlagsHandler(e)}}},{key:"updateEarlyAccessFeatureEnrollment",value:function(e,r){var i,n=rt({},"$feature_enrollment/".concat(e),r);this.instance.capture("$feature_enrollment_update",{$feature_flag:e,$feature_enrollment:r,$set:n}),this.setPersonPropertiesForFlags(n,!1);var s=et(et({},this.getFlagVariants()),{},rt({},e,r));this.instance.persistence.register((rt(i={},Ko,Object.keys(qc(s))),rt(i,Kr,s),i)),this._fireFeatureFlagsCallbacks()}},{key:"getEarlyAccessFeatures",value:function(e){var r=this,i=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=this.instance.get_property(la);if(n&&!i)return e(n);this.instance._send_request("".concat(this.instance.get_config("api_host"),"/api/early_access_features/?token=").concat(this.instance.get_config("token")),{},{method:"GET"},function(s){var o=s.earlyAccessFeatures;return r.instance.persistence.register(rt({},la,o)),e(o)})}},{key:"_prepareFeatureFlagsForCallbacks",value:function(){var e=this.getFlags(),r=this.getFlagVariants();return{flags:e.filter(function(i){return r[i]}),flagVariants:Object.keys(r).filter(function(i){return r[i]}).reduce(function(i,n){return i[n]=r[n],i},{})}}},{key:"_fireFeatureFlagsCallbacks",value:function(){var e=this._prepareFeatureFlagsForCallbacks(),r=e.flags,i=e.flagVariants;this.featureFlagEventHandlers.forEach(function(n){return n(r,i)})}},{key:"setPersonPropertiesForFlags",value:function(e){var r=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=this.instance.get_property(Qr)||{};this.instance.register(rt({},Qr,et(et({},i),e))),r&&this.instance.reloadFeatureFlags()}},{key:"resetPersonPropertiesForFlags",value:function(){this.instance.unregister(Qr)}},{key:"setGroupPropertiesForFlags",value:function(e){var r=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=this.instance.get_property(Ye)||{};Object.keys(i).length!==0&&Object.keys(i).forEach(function(n){i[n]=et(et({},i[n]),e[n]),delete e[n]}),this.instance.register(rt({},Ye,et(et({},i),e))),r&&this.instance.reloadFeatureFlags()}},{key:"resetGroupPropertiesForFlags",value:function(e){if(e){var r=this.instance.get_property(Ye)||{};this.instance.register(rt({},Ye,et(et({},r),{},rt({},e,{}))))}else this.instance.unregister(Ye)}}]),t}(),cd="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2IiBmaWxsPSJibGFjayIvPgo8cGF0aCBkPSJNOCAwSDE2TDAgMTZWOEw4IDBaIiBmaWxsPSIjMkQyRDJEIi8+CjxwYXRoIGQ9Ik0xNiA4VjE2SDhMMTYgOFoiIGZpbGw9IiMyRDJEMkQiLz4KPC9zdmc+Cg==",Uc=2,pd=4,ud=6,fd="rrweb/console@1",Ee,dd="/e/";(function(t){t[t.Mutation=0]="Mutation",t[t.MouseMove=1]="MouseMove",t[t.MouseInteraction=2]="MouseInteraction",t[t.Scroll=3]="Scroll",t[t.ViewportResize=4]="ViewportResize",t[t.Input=5]="Input",t[t.TouchMove=6]="TouchMove",t[t.MediaInteraction=7]="MediaInteraction",t[t.StyleSheetRule=8]="StyleSheetRule",t[t.CanvasMutation=9]="CanvasMutation",t[t.Font=10]="Font",t[t.Log=11]="Log",t[t.Drag=12]="Drag",t[t.StyleDeclaration=13]="StyleDeclaration",t[t.Selection=14]="Selection",t[t.AdoptedStyleSheet=15]="AdoptedStyleSheet"})(Ee||(Ee={}));var md=[Ee.MouseMove,Ee.MouseInteraction,Ee.Scroll,Ee.ViewportResize,Ee.Input,Ee.TouchMove,Ee.MediaInteraction,Ee.Drag],gd=function(){function t(e){Bt(this,t),rt(this,"lastActivityTimestamp",Date.now()),rt(this,"isIdle",!1),this.instance=e,this.captureStarted=!1,this.snapshots=[],this.emit=!1,this.endpoint=dd,this.stopRrweb=void 0,this.windowId=null,this.sessionId=null,this.receivedDecide=!1}return Lt(t,[{key:"startRecordingIfEnabled",value:function(){this.isRecordingEnabled()?this.startCaptureAndTrySendingQueuedSnapshots():this.stopRecording()}},{key:"started",value:function(){return this.captureStarted}},{key:"stopRecording",value:function(){this.captureStarted&&this.stopRrweb&&(this.stopRrweb(),this.stopRrweb=void 0,this.captureStarted=!1)}},{key:"isRecordingEnabled",value:function(){var e=!!this.instance.get_property(oa),r=!this.instance.get_config("disable_session_recording");return e&&r}},{key:"isConsoleLogCaptureEnabled",value:function(){var e=!!this.instance.get_property(zc),r=this.instance.get_config("enable_recording_console_log");return r??e}},{key:"getRecordingVersion",value:function(){var e,r=this.instance.get_property(Nc);return((e=this.instance.get_config("session_recording"))===null||e===void 0?void 0:e.recorderVersion)||r||"v1"}},{key:"afterDecideResponse",value:function(e){var r,i,n,s,o,a;this.receivedDecide=!0,this.instance.persistence&&this.instance.persistence.register((rt(o={},oa,!!e.sessionRecording),rt(o,zc,(n=e.sessionRecording)===null||n===void 0?void 0:n.consoleLogRecordingEnabled),rt(o,Nc,(s=e.sessionRecording)===null||s===void 0?void 0:s.recorderVersion),o)),(r=e.sessionRecording)!==null&&r!==void 0&&r.endpoint&&(this.endpoint=(a=e.sessionRecording)===null||a===void 0?void 0:a.endpoint),(i=e.sessionRecording)!==null&&i!==void 0&&i.recorderVersion&&(this.recorderVersion=e.sessionRecording.recorderVersion),this.startRecordingIfEnabled()}},{key:"startCaptureAndTrySendingQueuedSnapshots",value:function(){var e=this;this.receivedDecide&&(this.emit=!0,this.snapshots.forEach(function(r){return e._captureSnapshot(r)})),this._startCapture()}},{key:"_startCapture",value:function(){var e=this;if(Object.assign!==void 0&&!this.captureStarted&&!this.instance.get_config("disable_session_recording")){this.captureStarted=!0,this.instance.sessionManager.checkAndGetSessionAndWindowId();var r=this.getRecordingVersion()==="v2"?"recorder-v2.js":"recorder.js";this.instance.__loaded_recorder_version!==this.getRecordingVersion()?ya(this.instance.get_config("api_host")+"/static/".concat(r,"?v=").concat(Pe.LIB_VERSION),function(i){if(i)return vt.error("Could not load ".concat(r),i);e._onScriptLoaded()}):this._onScriptLoaded()}}},{key:"_isInteractiveEvent",value:function(e){var r;return e.type===3&&md.indexOf((r=e.data)===null||r===void 0?void 0:r.source)!==-1}},{key:"_updateWindowAndSessionIds",value:function(e){var r=this._isInteractiveEvent(e);if(r||this.isIdle||e.timestamp-this.lastActivityTimestamp>3e5&&(this.isIdle=!0),r&&(this.lastActivityTimestamp=e.timestamp,this.isIdle&&(this.isIdle=!1,this._tryTakeFullSnapshot())),!this.isIdle){var i=this.instance.sessionManager.checkAndGetSessionAndWindowId(!r,e.timestamp),n=i.windowId,s=i.sessionId;[Uc,pd].indexOf(e.type)!==-1||this.windowId===n&&this.sessionId===s||this._tryTakeFullSnapshot(),this.windowId=n,this.sessionId=s}}},{key:"_tryTakeFullSnapshot",value:function(){if(!this.captureStarted)return!1;try{var e;return(e=this.rrwebRecord)===null||e===void 0||e.takeFullSnapshot(),!0}catch(r){return vt.error("Error taking full snapshot.",r),!1}}},{key:"_onScriptLoaded",value:function(){var e=this,r={blockClass:"ph-no-capture",blockSelector:void 0,ignoreClass:"ph-ignore-input",maskTextClass:"ph-mask",maskTextSelector:void 0,maskAllInputs:!0,maskInputOptions:{},maskInputFn:void 0,slimDOMOptions:{},collectFonts:!1,inlineStylesheet:!0,recordCrossOriginIframes:!1};this.rrwebRecord=window.rrweb?window.rrweb.record:window.rrwebRecord;for(var i=this.instance.get_config("session_recording"),n=0,s=Object.entries(i||{});n<s.length;n++){var o=ps(s[n],2),a=o[0],l=o[1];a in r&&(r[a]=l)}this.rrwebRecord?(this.stopRrweb=this.rrwebRecord(et({emit:function(h){e.onRRwebEmit(h)},plugins:window.rrwebConsoleRecord&&this.isConsoleLogCaptureEnabled()?[window.rrwebConsoleRecord.getRecordConsolePlugin()]:[]},r)),this.instance._addCaptureHook(function(h){try{var c;h==="$pageview"&&((c=e.rrwebRecord)===null||c===void 0||c.addCustomEvent("$pageview",{href:window.location.href}))}catch(p){vt.error("Could not add $pageview to rrweb session",p)}}),this.lastActivityTimestamp=Date.now(),this.isIdle=!1):vt.error("onScriptLoaded was called but rrwebRecord is not available. This indicates something has gone wrong.")}},{key:"onRRwebEmit",value:function(e){if(e=function(i){if(i&&fr(i)==="object"&&i.type===ud&&fr(i.data)==="object"&&i.data.plugin===fd){i.data.payload.payload.length>10&&(i.data.payload.payload=i.data.payload.payload.slice(0,10),i.data.payload.payload.push("...[truncated]"));for(var n=[],s=0;s<i.data.payload.payload.length;s++)i.data.payload.payload[s]&&i.data.payload.payload[s].length>2e3?n.push(i.data.payload.payload[s].slice(0,2e3)+"...[truncated]"):n.push(i.data.payload.payload[s]);return i.data.payload.payload=n,i}return i}(function(i){if(i&&fr(i)==="object"){var n=JSON.stringify(i);if(n.length>5e6){var s,o=Je(n.matchAll(/data:([\w\/\-\.]+);(\w+),([^)"]*)/gim));try{for(o.s();!(s=o.n()).done;){var a=s.value;n=a[1].toLocaleLowerCase().slice(0,6)==="image/"?n.replace(a[0],cd):n.replace(a[0],"")}}catch(l){o.e(l)}finally{o.f()}}return JSON.parse(n)}return i}(e)),this._updateWindowAndSessionIds(e),!this.isIdle){var r={$snapshot_data:e,$session_id:this.sessionId,$window_id:this.windowId};this.instance._captureMetrics.incr("rrweb-record"),this.instance._captureMetrics.incr("rrweb-record-".concat(e.type)),this.emit?this._captureSnapshot(r):this.snapshots.push(r)}}},{key:"_captureSnapshot",value:function(e){this.instance.capture("$snapshot",e,{transport:"XHR",method:"POST",endpoint:this.endpoint,_noTruncate:!0,_batchKey:"sessionRecording",_metrics:{rrweb_full_snapshot:e.$snapshot_data.type===Uc}})}}]),t}(),Se={entryType:0,timeOrigin:1,name:2,startTime:3,redirectStart:4,redirectEnd:5,workerStart:6,fetchStart:7,domainLookupStart:8,domainLookupEnd:9,connectStart:10,secureConnectionStart:11,connectEnd:12,requestStart:13,responseStart:14,responseEnd:15,decodedBodySize:16,encodedBodySize:17,initiatorType:18,nextHopProtocol:19,renderBlockingStatus:20,responseStatus:21,transferSize:22,element:23,renderTime:24,loadTime:25,size:26,id:27,url:28,domComplete:29,domContentLoadedEvent:30,domInteractive:31,loadEventEnd:32,loadEventStart:33,redirectCount:34,navigationType:35,unloadEventEnd:36,unloadEventStart:37,duration:39,timestamp:40},yd=["first-input","navigation","paint","resource"],vd=["/s/","/e/"],bd=function(){function t(e){Bt(this,t),rt(this,"_forceAllowLocalhost",!1),this.instance=e}return Lt(t,[{key:"startObservingIfEnabled",value:function(){this.isEnabled()?this.startObserving():this.stopObserving()}},{key:"startObserving",value:function(){var e=this;if(!this.observer)if(!Hf.includes(location.hostname)||this._forceAllowLocalhost)try{this.observer=new PerformanceObserver(function(i){i.getEntries().forEach(function(n){e._capturePerformanceEvent(n)})});var r=PerformanceObserver.supportedEntryTypes.filter(function(i){return yd.includes(i)});r.forEach(function(i){var n;(n=e.observer)===null||n===void 0||n.observe({type:i,buffered:!0})})}catch(i){console.error("PostHog failed to start performance observer",i),this.stopObserving()}else vt.log("PostHog Peformance observer not started because we are on localhost.")}},{key:"stopObserving",value:function(){this.observer&&(this.observer.disconnect(),this.observer=void 0)}},{key:"isObserving",value:function(){return!!this.observer}},{key:"isEnabled",value:function(){var e,r;return(e=(r=this.instance.get_config("capture_performance"))!==null&&r!==void 0?r:this.remoteEnabled)!==null&&e!==void 0&&e}},{key:"afterDecideResponse",value:function(e){this.remoteEnabled=e.capturePerformance||!1,this.isEnabled()&&this.startObserving()}},{key:"_capturePerformanceEvent",value:function(e){if(e.name.indexOf(this.instance.get_config("api_host"))===0){var r=e.name.replace(this.instance.get_config("api_host"),"");if(vd.find(function(f){return r.indexOf(f)===0}))return}var i={url:e.name},n=this.instance.get_config("session_recording");if(n.maskNetworkRequestFn&&(i=n.maskNetworkRequestFn(i)),i){var s=e.toJSON();s.name=i.url;var o={},a=Math.floor(Date.now()-performance.now());for(var l in o[Se.timeOrigin]=a,o[Se.timestamp]=Math.floor(a+e.startTime),Se)s[l]!==void 0&&(o[Se[l]]=s[l]);if(this.capturePerformanceEvent(o),_d(e)){var h,c=Je(e.serverTiming||[]);try{for(c.s();!(h=c.n()).done;){var p,u=h.value;this.capturePerformanceEvent((rt(p={},Se.timeOrigin,a),rt(p,Se.timestamp,Math.floor(a+e.startTime)),rt(p,Se.name,u.name),rt(p,Se.duration,u.duration),rt(p,Se.entryType,"serverTiming"),p))}}catch(f){c.e(f)}finally{c.f()}}}}},{key:"capturePerformanceEvent",value:function(e){var r,i=e[Se.timestamp];(r=this.instance.sessionRecording)===null||r===void 0||r.onRRwebEmit({type:6,data:{plugin:"posthog/network@1",payload:e},timestamp:i})}}]),t}(),_d=function(t){return t.entryType==="navigation"||t.entryType==="resource"},wd=function(){function t(e){Bt(this,t),this.instance=e,this.instance.decideEndpointWasHit=this.instance._hasBootstrappedFeatureFlags()}return Lt(t,[{key:"call",value:function(){var e=this,r=fs(JSON.stringify({token:this.instance.get_config("token"),distinct_id:this.instance.get_distinct_id(),groups:this.instance.getGroups(),person_properties:this.instance.get_property(Qr),group_properties:this.instance.get_property(Ye)}));this.instance._send_request("".concat(this.instance.get_config("api_host"),"/decide/?v=3"),{data:r,verbose:!0},{method:"POST"},function(i){return e.parseDecideResponse(i)})}},{key:"parseDecideResponse",value:function(e){var r,i,n=this;if(e?.status!==0){if(this.instance.decideEndpointWasHit=!0,!document||!document.body)return console.log("document not ready yet, trying again in 500 milliseconds..."),void setTimeout(function(){n.parseDecideResponse(e)},500);if(this.instance.toolbar.afterDecideResponse(e),(r=this.instance.sessionRecording)===null||r===void 0||r.afterDecideResponse(e),Ze.afterDecideResponse(e,this.instance),(i=this.instance.webPerformance)===null||i===void 0||i.afterDecideResponse(e),this.instance.featureFlags.receivedFeatureFlags(e),this.instance.compression={},e.supportedCompression&&!this.instance.get_config("disable_compression")){var s,o={},a=Je(e.supportedCompression);try{for(a.s();!(s=a.n()).done;)o[s.value]=!0}catch(u){a.e(u)}finally{a.f()}this.instance.compression=o}if(e.siteApps)if(this.instance.get_config("opt_in_site_apps")){var l,h=this.instance.get_config("api_host"),c=Je(e.siteApps);try{var p=function(){var u=l.value,f=u.id,m=u.url,g=[h,h[h.length-1]==="/"&&m[0]==="/"?m.substring(1):m].join("");window["__$$ph_site_app_".concat(f)]=n.instance,ya(g,function(d){d&&console.error("Error while initializing PostHog app with config id ".concat(f),d)})};for(c.s();!(l=c.n()).done;)p()}catch(u){c.e(u)}finally{c.f()}}else e.siteApps.length>0&&console.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}else console.error("Failed to fetch feature flags from PostHog.")}}]),t}(),xd=["https://app.posthog.com","https://eu.posthog.com"],Sd=["source"],Ed=function(){function t(e){Bt(this,t),this.instance=e}return Lt(t,[{key:"afterDecideResponse",value:function(e){var r=e.toolbarParams||e.editorParams||(e.toolbarVersion?{toolbarVersion:e.toolbarVersion}:{});e.isAuthenticated&&r.toolbarVersion&&r.toolbarVersion.indexOf("toolbar")===0&&this.loadToolbar(et({},r))}},{key:"maybeLoadToolbar",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.location,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:window.history;try{if(!r){try{window.localStorage.setItem("test","test"),window.localStorage.removeItem("test")}catch{return!1}r=window.localStorage}var n,s=$c(e.hash,"__posthog")||$c(e.hash,"state"),o=s?JSON.parse(decodeURIComponent(s)):null;return o&&o.action==="ph_authorize"?((n=o).source="url",n&&Object.keys(n).length>0&&(o.desiredHash?e.hash=o.desiredHash:i?i.replaceState("",document.title,e.pathname+e.search):e.hash="")):((n=JSON.parse(r.getItem("_postHogToolbarParams")||"{}")).source="localstorage",delete n.userIntent),!(!n.token||this.instance.get_config("token")!==n.token)&&(this.loadToolbar(n),!0)}catch{return!1}}},{key:"loadToolbar",value:function(e){var r=this;if(window._postHogToolbarLoaded)return!1;window._postHogToolbarLoaded=!0;var i=this.instance.get_config("api_host"),n=3e4*Math.floor(Date.now()/3e4),s="".concat(i).concat(i.endsWith("/")?"":"/","static/toolbar.js?_ts=").concat(n),o=!xd.includes(this.instance.get_config("api_host"))&&this.instance.get_config("advanced_disable_toolbar_metrics"),a=et(et({token:this.instance.get_config("token")},e),{},{apiURL:i},o?{instrument:!1}:{});a.source;var l=Nf(a,Sd);return window.localStorage.setItem("_postHogToolbarParams",JSON.stringify(l)),ya(s,function(h){h?vt.error("Failed to load toolbar",h):(window.ph_load_toolbar||window.ph_load_editor)(a,r.instance)}),$i(window,"turbolinks:load",function(){window._postHogToolbarLoaded=!1,r.loadToolbar(a)}),!0}},{key:"_loadEditor",value:function(e){return this.loadToolbar(e)}},{key:"maybeLoadEditor",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.location,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:window.history;return this.maybeLoadToolbar(e,r,i)}}]),t}(),fp=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:3e3;Bt(this,t),this.isPolling=!0,this._event_queue=[],this._empty_queue_count=0,this._poller=void 0,this._pollInterval=e}return Lt(t,[{key:"setPollInterval",value:function(e){this._pollInterval=e,this.isPolling&&this.poll()}},{key:"poll",value:function(){}},{key:"unload",value:function(){}},{key:"getTime",value:function(){return new Date().getTime()}}]),t}(),kd=function(t){Jc(r,fp);var e=Kc(r);function r(i,n){var s,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:3e3;return Bt(this,r),(s=e.call(this,o)).handlePollRequest=n,s.captureMetrics=i,s}return Lt(r,[{key:"enqueue",value:function(i,n,s){this.captureMetrics.incr("batch-enqueue"),this._event_queue.push({url:i,data:n,options:s}),this.isPolling||(this.isPolling=!0,this.poll())}},{key:"poll",value:function(){var i=this;clearTimeout(this._poller),this._poller=setTimeout(function(){if(i._event_queue.length>0){var n=i.formatQueue(),s=function(a){var l=n[a],h=l.url,c=l.data,p=l.options;lt(c,function(u,f){c[f].offset=Math.abs(c[f].timestamp-i.getTime()),delete c[f].timestamp}),i.handlePollRequest(h,c,p),i.captureMetrics.incr("batch-requests"),i.captureMetrics.incr("batch-requests-".concat(h.slice(h.length-2))),i.captureMetrics.incr("batch-handle",c.length),i.captureMetrics.incr("batch-handle-".concat(h.slice(h.length-2)),c.length)};for(var o in n)s(o);i._event_queue.length=0,i._empty_queue_count=0}else i._empty_queue_count++;i._empty_queue_count>4&&(i.isPolling=!1,i._empty_queue_count=0),i.isPolling&&i.poll()},this._pollInterval)}},{key:"updateUnloadMetrics",value:function(){var i=this.formatQueue();for(var n in i){var s=i[n],o=s.url,a=s.data;this.captureMetrics.incr("batch-unload-requests"),this.captureMetrics.incr("batch-unload-requests-".concat(o.slice(o.length-2))),this.captureMetrics.incr("batch-unload",a.length),this.captureMetrics.incr("batch-unload-".concat(o.slice(o.length-2)),a.length)}}},{key:"unload",value:function(){var i=this;clearTimeout(this._poller);var n=this._event_queue.length>0?this.formatQueue():{};this._event_queue.length=0;var s=Object.values(n);[].concat(ea(s.filter(function(o){return o.url.indexOf("/e")===0})),ea(s.filter(function(o){return o.url.indexOf("/e")!==0}))).map(function(o){var a=o.url,l=o.data,h=o.options;i.handlePollRequest(a,l,et(et({},h),{},{transport:"sendBeacon"}))})}},{key:"formatQueue",value:function(){var i={};return lt(this._event_queue,function(n){var s=n.url,o=n.data,a=n.options,l=(a?a._batchKey:null)||s;i[l]===void 0&&(i[l]={data:[],url:s,options:a}),a&&i[l].options&&i[l].options._metrics&&!i[l].options._metrics.rrweb_full_snapshot&&(i[l].options._metrics.rrweb_full_snapshot=a._metrics.rrweb_full_snapshot),i[l].data.push(o)}),i}}]),r}(),Pd=function(){function t(e){Bt(this,t),this.enabled=e,this.metrics={}}return Lt(t,[{key:"incr",value:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.enabled&&(e="phjs-".concat(e),this.metrics[e]=(this.metrics[e]||0)+r)}},{key:"decr",value:function(e){this.enabled&&(e="phjs-".concat(e),this.metrics[e]=(this.metrics[e]||0)-1)}}]),t}(),ie=Uint8Array,jt=Uint16Array,ti=Uint32Array,_a=new ie([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),wa=new ie([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Wc=new ie([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),dp=function(t,e){for(var r=new jt(31),i=0;i<31;++i)r[i]=e+=1<<t[i-1];var n=new ti(r[30]);for(i=1;i<30;++i)for(var s=r[i];s<r[i+1];++s)n[s]=s-r[i]<<5|i;return[r,n]},mp=dp(_a,2),Ad=mp[0],ca=mp[1];Ad[28]=258,ca[258]=28;for(pa=dp(wa,0)[1],hs=new jt(32768),mt=0;mt<32768;++mt)Ue=(43690&mt)>>>1|(21845&mt)<<1,Ue=(61680&(Ue=(52428&Ue)>>>2|(13107&Ue)<<2))>>>4|(3855&Ue)<<4,hs[mt]=((65280&Ue)>>>8|(255&Ue)<<8)>>>1;var Ue,pa,hs,mt,Ri=function(t,e,r){for(var i=t.length,n=0,s=new jt(e);n<i;++n)++s[t[n]-1];var o,a=new jt(e);for(n=0;n<e;++n)a[n]=a[n-1]+s[n-1]<<1;if(r){o=new jt(1<<e);var l=15-e;for(n=0;n<i;++n)if(t[n])for(var h=n<<4|t[n],c=e-t[n],p=a[t[n]-1]++<<c,u=p|(1<<c)-1;p<=u;++p)o[hs[p]>>>l]=h}else for(o=new jt(i),n=0;n<i;++n)o[n]=hs[a[t[n]-1]++]>>>15-t[n];return o},gr=new ie(288);for(mt=0;mt<144;++mt)gr[mt]=8;for(mt=144;mt<256;++mt)gr[mt]=9;for(mt=256;mt<280;++mt)gr[mt]=7;for(mt=280;mt<288;++mt)gr[mt]=8;var cs=new ie(32);for(mt=0;mt<32;++mt)cs[mt]=5;var me,Cd=Ri(gr,9,0),Td=Ri(cs,5,0),gp=function(t){return(t/8>>0)+(7&t&&1)},yp=function(t,e,r){(e==null||e<0)&&(e=0),(r==null||r>t.length)&&(r=t.length);var i=new(t instanceof jt?jt:t instanceof ti?ti:ie)(r-e);return i.set(t.subarray(e,r)),i},Be=function(t,e,r){r<<=7&e;var i=e/8>>0;t[i]|=r,t[i+1]|=r>>>8},Ii=function(t,e,r){r<<=7&e;var i=e/8>>0;t[i]|=r,t[i+1]|=r>>>8,t[i+2]|=r>>>16},Qo=function(t,e){for(var r=[],i=0;i<t.length;++i)t[i]&&r.push({s:i,f:t[i]});var n=r.length,s=r.slice();if(!n)return[new ie(0),0];if(n==1){var o=new ie(r[0].s+1);return o[r[0].s]=1,[o,1]}r.sort(function(x,T){return x.f-T.f}),r.push({s:-1,f:25001});var a=r[0],l=r[1],h=0,c=1,p=2;for(r[0]={s:-1,f:a.f+l.f,l:a,r:l};c!=n-1;)a=r[r[h].f<r[p].f?h++:p++],l=r[h!=c&&r[h].f<r[p].f?h++:p++],r[c++]={s:-1,f:a.f+l.f,l:a,r:l};var u=s[0].s;for(i=1;i<n;++i)s[i].s>u&&(u=s[i].s);var f=new jt(u+1),m=Md(r[c-1],f,0);if(m>e){i=0;var g=0,d=m-e,y=1<<d;for(s.sort(function(x,T){return f[T.s]-f[x.s]||x.f-T.f});i<n;++i){var v=s[i].s;if(!(f[v]>e))break;g+=y-(1<<m-f[v]),f[v]=e}for(g>>>=d;g>0;){var b=s[i].s;f[b]<e?g-=1<<e-f[b]++-1:++i}for(;i>=0&&g;--i){var _=s[i].s;f[_]==e&&(--f[_],++g)}m=e}return[new ie(f),m]},Md=function t(e,r,i){return e.s==-1?Math.max(t(e.l,r,i+1),t(e.r,r,i+1)):r[e.s]=i},Yc=function(t){for(var e=t.length;e&&!t[--e];);for(var r=new jt(++e),i=0,n=t[0],s=1,o=function(l){r[i++]=l},a=1;a<=e;++a)if(t[a]==n&&a!=e)++s;else{if(!n&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(n),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(n);s=1,n=t[a]}return[r.subarray(0,i),e]},Di=function(t,e){for(var r=0,i=0;i<e.length;++i)r+=t[i]*e[i];return r},ns=function(t,e,r){var i=r.length,n=gp(e+2);t[n]=255&i,t[n+1]=i>>>8,t[n+2]=255^t[n],t[n+3]=255^t[n+1];for(var s=0;s<i;++s)t[n+s+4]=r[s];return 8*(n+4+i)},Zc=function(t,e,r,i,n,s,o,a,l,h,c){Be(e,c++,r),++n[256];for(var p=Qo(n,15),u=p[0],f=p[1],m=Qo(s,15),g=m[0],d=m[1],y=Yc(u),v=y[0],b=y[1],_=Yc(g),x=_[0],T=_[1],S=new jt(19),w=0;w<v.length;++w)S[31&v[w]]++;for(w=0;w<x.length;++w)S[31&x[w]]++;for(var I=Qo(S,7),E=I[0],M=I[1],k=19;k>4&&!E[Wc[k-1]];--k);var C,P,D,O,F=h+5<<3,A=Di(n,gr)+Di(s,cs)+o,$=Di(n,u)+Di(s,g)+o+14+3*k+Di(S,E)+(2*S[16]+3*S[17]+7*S[18]);if(F<=A&&F<=$)return ns(e,c,t.subarray(l,l+h));if(Be(e,c,1+($<A)),c+=2,$<A){C=Ri(u,f,0),P=u,D=Ri(g,d,0),O=g;var R=Ri(E,M,0);for(Be(e,c,b-257),Be(e,c+5,T-1),Be(e,c+10,k-4),c+=14,w=0;w<k;++w)Be(e,c+3*w,E[Wc[w]]);c+=3*k;for(var z=[v,x],N=0;N<2;++N){var G=z[N];for(w=0;w<G.length;++w){var V=31&G[w];Be(e,c,R[V]),c+=E[V],V>15&&(Be(e,c,G[w]>>>5&127),c+=G[w]>>>12)}}}else C=Cd,P=gr,D=Td,O=cs;for(w=0;w<a;++w)if(i[w]>255){V=i[w]>>>18&31,Ii(e,c,C[V+257]),c+=P[V+257],V>7&&(Be(e,c,i[w]>>>23&31),c+=_a[V]);var Y=31&i[w];Ii(e,c,D[Y]),c+=O[Y],Y>3&&(Ii(e,c,i[w]>>>5&8191),c+=wa[Y])}else Ii(e,c,C[i[w]]),c+=P[i[w]];return Ii(e,c,C[256]),c+P[256]},Fd=new ti([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Id=new ie(0),Dd=function(){for(var t=new ti(256),e=0;e<256;++e){for(var r=e,i=9;--i;)r=(1&r&&3988292384)^r>>>1;t[e]=r}return t}(),Od=function(){var t=4294967295;return{p:function(e){for(var r=t,i=0;i<e.length;++i)r=Dd[255&r^e[i]]^r>>>8;t=r},d:function(){return 4294967295^t}}},$d=function(t,e,r,i,n){return function(s,o,a,l,h,c){var p=s.length,u=new ie(l+p+5*(1+Math.floor(p/7e3))+h),f=u.subarray(l,u.length-h),m=0;if(!o||p<8)for(var g=0;g<=p;g+=65535){var d=g+65535;d<p?m=ns(f,m,s.subarray(g,d)):(f[g]=c,m=ns(f,m,s.subarray(g,p)))}else{for(var y=Fd[o-1],v=y>>>13,b=8191&y,_=(1<<a)-1,x=new jt(32768),T=new jt(_+1),S=Math.ceil(a/3),w=2*S,I=function(Gt){return(s[Gt]^s[Gt+1]<<S^s[Gt+2]<<w)&_},E=new ti(25e3),M=new jt(288),k=new jt(32),C=0,P=0,D=(g=0,0),O=0,F=0;g<p;++g){var A=I(g),$=32767&g,R=T[A];if(x[$]=R,T[A]=$,O<=g){var z=p-g;if((C>7e3||D>24576)&&z>423){m=Zc(s,f,0,E,M,k,P,D,F,g-F,m),D=C=P=0,F=g;for(var N=0;N<286;++N)M[N]=0;for(N=0;N<30;++N)k[N]=0}var G=2,V=0,Y=b,X=$-R&32767;if(z>2&&A==I(g-X))for(var Z=Math.min(v,z)-1,W=Math.min(32767,g),ht=Math.min(258,z);X<=W&&--Y&&$!=R;){if(s[g+G]==s[g+G-X]){for(var Q=0;Q<ht&&s[g+Q]==s[g+Q-X];++Q);if(Q>G){if(G=Q,V=X,Q>Z)break;var gt=Math.min(X,Q-2),ct=0;for(N=0;N<gt;++N){var j=g-X+N+32768&32767,Ft=j-x[j]+32768&32767;Ft>ct&&(ct=Ft,R=j)}}}X+=($=R)-(R=x[$])+32768&32767}if(V){E[D++]=268435456|ca[G]<<18|pa[V];var ne=31&ca[G],se=31&pa[V];P+=_a[ne]+wa[se],++M[257+ne],++k[se],O=g+G,++C}else E[D++]=s[g],++M[s[g]]}}m=Zc(s,f,c,E,M,k,P,D,F,g-F,m),c||(m=ns(f,m,Id))}return yp(u,0,l+gp(m)+h)}(t,e.level==null?6:e.level,e.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):12+e.mem,r,i,!n)},ua=function(t,e,r){for(;r;++e)t[e]=r,r>>>=8},Rd=function(t,e){var r=e.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=e.level<2?4:e.level==9?2:0,t[9]=3,e.mtime!=0&&ua(t,4,Math.floor(new Date(e.mtime||Date.now())/1e3)),r){t[3]=8;for(var i=0;i<=r.length;++i)t[i+10]=r.charCodeAt(i)}},Bd=function(t){return 10+(t.filename&&t.filename.length+1||0)};function Ld(t,e){e===void 0&&(e={});var r=Od(),i=t.length;r.p(t);var n=$d(t,e,Bd(e),8),s=n.length;return Rd(n,e),ua(n,s-8,r.d()),ua(n,s-4,i),n}function Vd(t,e){var r=t.length;if(!e&&typeof TextEncoder<"u")return new TextEncoder().encode(t);for(var i=new ie(t.length+(t.length>>>1)),n=0,s=function(h){i[n++]=h},o=0;o<r;++o){if(n+5>i.length){var a=new ie(n+8+(r-o<<1));a.set(i),i=a}var l=t.charCodeAt(o);l<128||e?s(l):l<2048?(s(192|l>>>6),s(128|63&l)):l>55295&&l<57344?(s(240|(l=65536+(1047552&l)|1023&t.charCodeAt(++o))>>>18),s(128|l>>>12&63),s(128|l>>>6&63),s(128|63&l)):(s(224|l>>>12),s(128|l>>>6&63),s(128|63&l))}return yp(i,0,n)}(function(t){t.GZipJS="gzip-js",t.LZ64="lz64",t.Base64="base64"})(me||(me={}));var Bi,xa,Dt,zd=function(t,e,r){var i=e||{};i.ip=r.ip?1:0,i._=new Date().getTime().toString(),i.ver=Pe.LIB_VERSION;var n=t.split("?");if(n.length>1){var s,o=Je(n[1].split("&"));try{for(o.s();!(s=o.n()).done;){var a=s.value.split("=")[0];i[a]&&delete i[a]}}catch(h){o.e(h)}finally{o.f()}}var l=t.indexOf("?")>-1?"&":"?";return t+l+function(h){var c,p,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"&",f=[];return lt(h,function(m,g){c=encodeURIComponent(m.toString()),p=encodeURIComponent(g),f[f.length]=p+"="+c}),f.join(u)}(i)},Sa=function t(e,r){if(r.blob&&e.buffer)return new Blob([e.buffer],{type:"text/plain"});if(r.sendBeacon||r.blob){var i=t(e,{method:"POST"});return new Blob([i],{type:"application/x-www-form-urlencoded"})}if(r.method!=="POST")return null;var n,s;return n=Array.isArray(e)||(s=e,Object.prototype.toString.call(s)==="[object Uint8Array]")?"data="+encodeURIComponent(e):"data="+encodeURIComponent(e.data),"compression"in e&&e.compression&&(n+="&compression="+e.compression),n},vp=function(t){var e=t.url,r=t.data,i=t.headers,n=t.options,s=t.captureMetrics,o=t.callback,a=t.retriesPerformedSoFar,l=t.retryQueue,h=t.onXHRError,c=t.timeout,p=c===void 0?1e4:c,u=new XMLHttpRequest;u.open(n.method||"GET",e,!0);var f=Sa(r,n);s.incr("_send_request"),s.incr("_send_request_inflight"),lt(i,function(m,g){u.setRequestHeader(g,m)}),n.method!=="POST"||n.blob||u.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),u.timeout=p,u.withCredentials=!0,u.onreadystatechange=function(){if(u.readyState===4)if(s.incr("xhr-response"),s.incr("xhr-response-".concat(u.status)),s.decr("_send_request_inflight"),u.status===200){if(o){var m;try{m=JSON.parse(u.responseText)}catch(g){return void vt.error(g)}o(m)}}else typeof h=="function"&&h(u),[401,403,404,500].indexOf(u.status)<0&&l.enqueue({url:e,data:r,options:n,headers:i,retriesPerformedSoFar:(a||0)+1,callback:o}),o&&o({status:0})},u.send(f)},Nd=function(t){Jc(r,fp);var e=Kc(r);function r(i,n){var s;return Bt(this,r),(s=e.call(this)).captureMetrics=i,s.isPolling=!1,s.queue=[],s.areWeOnline=!0,s.onXHRError=n,typeof window<"u"&&"onLine"in window.navigator&&(s.areWeOnline=window.navigator.onLine,window.addEventListener("online",function(){s._handleWeAreNowOnline()}),window.addEventListener("offline",function(){s.areWeOnline=!1})),s}return Lt(r,[{key:"enqueue",value:function(i){var n=i.retriesPerformedSoFar||0;if(!(n>=10)){var s=3e3*Math.pow(2,n),o=new Date(Date.now()+s);console.warn("Enqueued failed request for retry in ".concat(s)),this.queue.push({retryAt:o,requestData:i}),this.isPolling||(this.isPolling=!0,this.poll())}}},{key:"poll",value:function(){var i=this;this._poller&&clearTimeout(this._poller),this._poller=setTimeout(function(){i.areWeOnline&&i.queue.length>0&&i.flush(),i.poll()},this._pollInterval)}},{key:"flush",value:function(){var i=new Date(Date.now()),n=this.queue.filter(function(l){return l.retryAt<i});if(n.length>0){this.queue=this.queue.filter(function(l){return l.retryAt>=i});var s,o=Je(n);try{for(o.s();!(s=o.n()).done;){var a=s.value.requestData;this._executeXhrRequest(a)}}catch(l){o.e(l)}finally{o.f()}}}},{key:"unload",value:function(){this._poller&&(clearTimeout(this._poller),this._poller=void 0);var i,n=Je(this.queue);try{for(n.s();!(i=n.n()).done;){var s=i.value.requestData,o=s.url,a=s.data,l=s.options;try{window.navigator.sendBeacon(o,Sa(a,et(et({},l),{},{sendBeacon:!0})))}catch(h){Pe.DEBUG&&console.error(h)}}}catch(h){n.e(h)}finally{n.f()}this.queue=[]}},{key:"_executeXhrRequest",value:function(i){var n=i.url,s=i.data,o=i.options,a=i.headers,l=i.callback,h=i.retriesPerformedSoFar;vp({url:n,data:s||{},options:o||{},headers:a||{},retriesPerformedSoFar:h||0,callback:l,captureMetrics:this.captureMetrics,retryQueue:this,onXHRError:this.onXHRError})}},{key:"_handleWeAreNowOnline",value:function(){this.areWeOnline=!0,this.flush()}}]),r}(),jd=18e5,Gd=864e5,Hd=function(){function t(e,r){Bt(this,t),this.config=e,this.persistence=r,this._windowId=void 0,this._sessionId=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null;var i=e.persistence_name||e.token;if(this.window_id_storage_key="ph_"+i+"_window_id",this.primary_window_exists_storage_key="ph_"+i+"_primary_window_exists",this._canUseSessionStorage()){var n=Ot.parse(this.window_id_storage_key),s=Ot.parse(this.primary_window_exists_storage_key);n&&!s?this._windowId=n:Ot.remove(this.window_id_storage_key),Ot.set(this.primary_window_exists_storage_key,!0)}this._listenToReloadWindow()}return Lt(t,[{key:"_canUseSessionStorage",value:function(){return this.config.persistence!=="memory"&&!this.persistence.disabled&&Ot.is_supported()}},{key:"_setWindowId",value:function(e){e!==this._windowId&&(this._windowId=e,this._canUseSessionStorage()&&Ot.set(this.window_id_storage_key,e))}},{key:"_getWindowId",value:function(){return this._windowId?this._windowId:this._canUseSessionStorage()?Ot.parse(this.window_id_storage_key):null}},{key:"_setSessionId",value:function(e,r,i){e===this._sessionId&&r===this._sessionActivityTimestamp&&i===this._sessionStartTimestamp||(this._sessionStartTimestamp=i,this._sessionActivityTimestamp=r,this._sessionId=e,this.persistence.register(rt({},aa,[r,e,i])))}},{key:"_getSessionId",value:function(){if(this._sessionId&&this._sessionActivityTimestamp&&this._sessionStartTimestamp)return[this._sessionActivityTimestamp,this._sessionId,this._sessionStartTimestamp];var e=this.persistence.props[aa];return Array.isArray(e)&&e.length===2&&e.push(e[0]),e||[0,null,0]}},{key:"resetSessionId",value:function(){this._setSessionId(null,null,null)}},{key:"_listenToReloadWindow",value:function(){var e=this;window.addEventListener("beforeunload",function(){e._canUseSessionStorage()&&Ot.remove(e.primary_window_exists_storage_key)})}},{key:"checkAndGetSessionAndWindowId",value:function(){var e=arguments.length>0&&arguments[0]!==void 0&&arguments[0],r=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:null)||new Date().getTime(),i=ps(this._getSessionId(),3),n=i[0],s=i[1],o=i[2],a=this._getWindowId(),l=o&&o>0&&Math.abs(r-o)>Gd;!s||!e&&Math.abs(r-n)>jd||l?(s=Xe(),a=Xe(),o=r):a||(a=Xe());var h=n===0||!e||l?r:n,c=o===0?new Date().getTime():o;return this._setWindowId(a),this._setSessionId(s,h,c),{sessionId:s,windowId:a}}}]),t}(),qd=Lt(function t(e,r,i,n){Bt(this,t),this.name="posthog-js",this.setupOnce=function(s){s(function(o){var a,l,h;if(o.level!=="error"||!e.__loaded)return o;o.tags||(o.tags={});var c=e.config.ui_host||e.config.api_host;o.tags["PostHog Person URL"]=c+"/person/"+e.get_distinct_id(),e.sessionRecordingStarted()&&(o.tags["PostHog Recording URL"]=e.get_session_replay_url({withTimestamp:!0}));var p=((a=o.exception)===null||a===void 0?void 0:a.values)||[],u={$sentry_event_id:o.event_id,$sentry_exception:o.exception,$sentry_exception_message:(l=p[0])===null||l===void 0?void 0:l.value,$sentry_exception_type:(h=p[0])===null||h===void 0?void 0:h.type,$sentry_tags:o.tags};return r&&i&&(u.$sentry_url=(n||"https://sentry.io/organizations/")+r+"/issues/?project="+i+"&query="+o.event_id),e.capture("$exception",u),o})}}),Ud=function(t){var e=function(r,i){r.event.userId||r.event.anonymousId===t.get_distinct_id()||t.reset(),r.event.userId&&r.event.userId!==t.get_distinct_id()&&(t.register({distinct_id:r.event.userId}),t.reloadFeatureFlags());var n=t._calculate_event_properties(i,r.event.properties);return r.event.properties=Object.assign({},n,r.event.properties),r};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:function(r){return e(r,r.event.event)},page:function(r){return e(r,"$pageview")},identify:function(r){return e(r,"$identify")},screen:function(r){return e(r,"$screen")}}},Wd=function(){function t(){Bt(this,t),rt(this,"_seenFirstPageView",!1)}return Lt(t,[{key:"onPageview",value:function(){this._seenFirstPageView&&(this._pageViewId=Xe()),this._seenFirstPageView=!0}},{key:"getPageViewId",value:function(){return this._pageViewId||(this._pageViewId=Xe()),this._pageViewId}}]),t}();(function(t){t[t.INIT_MODULE=0]="INIT_MODULE",t[t.INIT_SNIPPET=1]="INIT_SNIPPET"})(Bi||(Bi={}));var fa=function(){},es={},Wt="posthog",ss=K.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,bp=!ss&&pe.indexOf("MSIE")===-1&&pe.indexOf("Mozilla")===-1,Xc=function(){var t,e,r;return{api_host:"https://app.posthog.com",api_method:"POST",api_transport:"XHR",ui_host:null,token:"",autocapture:!0,rageclick:!0,cross_subdomain_cookie:(At==null||(t=At.location)===null||t===void 0||(e=t.hostname)===null||e===void 0?void 0:e.indexOf("herokuapp.com"))===-1,persistence:"cookie",persistence_name:"",cookie_name:"",loaded:fa,store_google:!0,custom_campaign_params:[],save_referrer:!0,test:!1,verbose:!1,capture_pageview:!0,capture_pageleave:!0,debug:!1,cookie_expiration:365,upgrade:!1,disable_session_recording:!1,disable_persistence:!1,disable_cookie:!1,enable_recording_console_log:void 0,secure_cookie:(K==null||(r=K.location)===null||r===void 0?void 0:r.protocol)==="https:",ip:!0,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_capturing_persistence_type:"localStorage",opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_blacklist:[],respect_dnt:!1,sanitize_properties:null,xhr_headers:{},inapp_protocol:"//",inapp_link_new_window:!1,request_batching:!0,properties_string_max_length:65535,session_recording:{blockClass:"ph-no-capture",blockSelector:null,ignoreClass:"ph-ignore-input",maskAllInputs:!0,maskInputOptions:{},maskInputFn:null,slimDOMOptions:{},collectFonts:!1,inlineStylesheet:!0},mask_all_element_attributes:!1,mask_all_text:!1,advanced_disable_decide:!1,advanced_disable_toolbar_metrics:!1,on_xhr_error:function(i){var n="Bad HTTP status: "+i.status+" "+i.statusText;console.error(n)},get_device_id:function(i){return i},_onCapture:fa,_capture_metrics:!1,capture_performance:void 0,name:"posthog",callback_fn:"posthog._jsc",bootstrap:{},disable_compression:!1}},da=function(t,e,r,i){var n,s=r!==Wt&&Dt?r?Dt[r]:void 0:Dt,o={initComplete:!1,syncCode:!1},a=function(l){return function(h){o[l]||(o[l]=!0,o.initComplete&&o.syncCode&&i?.(h))}};if(s&&xa===Bi.INIT_MODULE)n=s;else{if(s&&!Le(s))return void console.error("You have already initialized "+r);n=new Ea}return n._init(t,e,r,a("initComplete")),n.toolbar.maybeLoadToolbar(),n.sessionRecording=new gd(n),n.sessionRecording.startRecordingIfEnabled(),n.webPerformance=new bd(n),n.webPerformance.startObservingIfEnabled(),n.__autocapture=n.get_config("autocapture"),Ze._setIsAutocaptureEnabled(n),Ze._isAutocaptureEnabled&&(n.__autocapture=n.get_config("autocapture"),Ze.enabledForProject(n.get_config("token"),100,100)?Ze.isBrowserSupported()?Ze.init(n):(n.__autocapture=!1,vt.log("Disabling Automatic Event Collection because this browser is not supported")):(n.__autocapture=!1,vt.log("Not in active bucket: disabling Automatic Event Collection."))),Pe.DEBUG=Pe.DEBUG||n.get_config("debug"),s!==void 0&&Le(s)&&(n._execute_array.call(n.people,s.people),n._execute_array(s)),a("syncCode")(n),n},Ea=function(){function t(){var e=this;Bt(this,t),this.config=Xc(),this.compression={},this.decideEndpointWasHit=!1,this.SentryIntegration=qd,this.segmentIntegration=function(){return Ud(e)},this.__captureHooks=[],this.__request_queue=[],this.__loaded=!1,this.__loaded_recorder_version=void 0,this.__autocapture=void 0,this._jsc=function(){},this.people=new ld(this),this.featureFlags=new hd(this),this.feature_flags=this.featureFlags,this.toolbar=new Ed(this),this.pageViewIdManager=new Wd,this._captureMetrics=void 0,this._requestQueue=void 0,this._retryQueue=void 0,this.persistence=void 0,this.sessionPersistence=void 0,this.sessionManager=void 0}return Lt(t,[{key:"init",value:function(e,r,i){if(ge(i))console.error("You must name your new library: init(token, config, name)");else{if(i!==Wt){var n=da(e,r,i,function(s){Dt[i]=s,s._loaded()});return Dt[i]=n,n}console.error("You must initialize the main posthog object right after you include the PostHog js snippet")}}},{key:"_init",value:function(e){var r,i,n=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0;this.__loaded=!0,this.config={},this._triggered_notifs=[];var l,h={segmentRegister:!1,syncCode:!1},c=function(_){return function(){h[_]||(h[_]=!0,h.segmentRegister&&h.syncCode&&a?.(n))}};if(this.set_config(It({},Xc(),s,{name:o,token:e,callback_fn:(o===Wt?o:Wt+"."+o)+"._jsc"})),this._jsc=function(){},(K!=null&&(r=K.rrweb)!==null&&r!==void 0&&r.record||K!=null&&K.rrwebRecord)&&(this.__loaded_recorder_version=K==null||(l=K.rrweb)===null||l===void 0?void 0:l.version),this._captureMetrics=new Pd(this.get_config("_capture_metrics")),this._requestQueue=new kd(this._captureMetrics,this._handle_queued_event.bind(this)),this._retryQueue=new Nd(this._captureMetrics,this.get_config("on_xhr_error")),this.__captureHooks=[],this.__request_queue=[],this.persistence=new jc(this.config),this.sessionManager=new Hd(this.config,this.persistence),this.sessionPersistence=this.config.persistence==="sessionStorage"?this.persistence:new jc(et(et({},this.config),{},{persistence:"sessionStorage"})),this._gdpr_init(),s.segment?(this.config.get_device_id=function(){return s.segment.user().anonymousId()},s.segment.user().id()&&(this.register({distinct_id:s.segment.user().id()}),this.persistence.set_user_state("identified")),s.segment.register(this.segmentIntegration()).then(c("segmentRegister"))):c("segmentRegister")(),((i=s.bootstrap)===null||i===void 0?void 0:i.distinctID)!==void 0){var p,u,f=this.get_config("get_device_id")(Xe()),m=(p=s.bootstrap)!==null&&p!==void 0&&p.isIdentifiedID?f:s.bootstrap.distinctID;this.persistence.set_user_state((u=s.bootstrap)!==null&&u!==void 0&&u.isIdentifiedID?"identified":"anonymous"),this.register({distinct_id:s.bootstrap.distinctID,$device_id:m})}if(this._hasBootstrappedFeatureFlags()){var g,d,y=Object.keys(((g=s.bootstrap)===null||g===void 0?void 0:g.featureFlags)||{}).filter(function(_){var x,T;return!((x=s.bootstrap)===null||x===void 0||(T=x.featureFlags)===null||T===void 0||!T[_])}).reduce(function(_,x){var T,S;return _[x]=((T=s.bootstrap)===null||T===void 0||(S=T.featureFlags)===null||S===void 0?void 0:S[x])||!1,_},{}),v=Object.keys(((d=s.bootstrap)===null||d===void 0?void 0:d.featureFlagPayloads)||{}).filter(function(_){return y[_]}).reduce(function(_,x){var T,S,w,I;return(T=s.bootstrap)!==null&&T!==void 0&&(S=T.featureFlagPayloads)!==null&&S!==void 0&&S[x]&&(_[x]=(w=s.bootstrap)===null||w===void 0||(I=w.featureFlagPayloads)===null||I===void 0?void 0:I[x]),_},{});this.featureFlags.receivedFeatureFlags({featureFlags:y,featureFlagPayloads:v})}if(!this.get_distinct_id()){var b=this.get_config("get_device_id")(Xe());this.register_once({distinct_id:b,$device_id:b},""),this.persistence.set_user_state("anonymous")}K.addEventListener&&K.addEventListener("onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this)),c("syncCode")()}},{key:"_loaded",value:function(){this.featureFlags.setReloadingPaused(!0);try{this.get_config("loaded")(this)}catch(e){console.error("`loaded` function failed",e)}this._start_queue_if_opted_in(),this.get_config("capture_pageview")&&this.capture("$pageview",{},{send_instantly:!0}),this.get_config("advanced_disable_decide")||new wd(this).call(),this.featureFlags.resetRequestQueue(),this.featureFlags.setReloadingPaused(!1)}},{key:"_start_queue_if_opted_in",value:function(){this.has_opted_out_capturing()||this.get_config("request_batching")&&this._requestQueue.poll()}},{key:"_dom_loaded",value:function(){var e=this;this.has_opted_out_capturing()||Ve(this.__request_queue,function(r){e._send_request.apply(e,ea(r))}),this.__request_queue=[],this._start_queue_if_opted_in()}},{key:"_prepare_callback",value:function(e,r){if(ge(e))return null;if(ss)return function(o){e(o,r)};var i=this._jsc,n=""+Math.floor(1e8*Math.random()),s=this.get_config("callback_fn")+"["+n+"]";return i[n]=function(o){delete i[n],e(o,r)},s}},{key:"_handle_unload",value:function(){this.get_config("request_batching")?(this.get_config("capture_pageview")&&this.get_config("capture_pageleave")&&this.capture("$pageleave"),this.get_config("_capture_metrics")&&(this._requestQueue.updateUnloadMetrics(),this.capture("$capture_metrics",this._captureMetrics.metrics)),this._requestQueue.unload(),this._retryQueue.unload()):this.get_config("capture_pageview")&&this.get_config("capture_pageleave")&&this.capture("$pageleave",null,{transport:"sendBeacon"})}},{key:"_handle_queued_event",value:function(e,r,i){var n=JSON.stringify(r);this.__compress_and_send_json_request(e,n,i||es,fa)}},{key:"__compress_and_send_json_request",value:function(e,r,i,n){var s,o=function(c,p,u){return c===me.LZ64?[{data:re.compressToBase64(p),compression:me.LZ64},u]:c===me.GZipJS?[Ld(Vd(p),{mtime:0}),et(et({},u),{},{blob:!0,urlQueryArgs:{compression:me.GZipJS}})]:[{data:fs(p)},u]}((s=this.compression)[me.GZipJS]?me.GZipJS:s[me.LZ64]?me.LZ64:me.Base64,r,i),a=ps(o,2),l=a[0],h=a[1];this._send_request(e,l,h,n)}},{key:"_send_request",value:function(e,r,i,n){if(bp)this.__request_queue.push([e,r,i,n]);else{var s={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")};i=It(s,i||{}),ss||(i.method="GET");var o="sendBeacon"in K.navigator&&i.transport==="sendBeacon";if(e=zd(e,i.urlQueryArgs||{},{ip:this.get_config("ip")}),o)try{K.navigator.sendBeacon(e,Sa(r,et(et({},i),{},{sendBeacon:!0})))}catch(c){this.get_config("debug")&&console.error(c)}else if(ss)try{vp({url:e,data:r,headers:this.get_config("xhr_headers"),options:i,captureMetrics:this._captureMetrics,callback:n,retriesPerformedSoFar:0,retryQueue:this._retryQueue,onXHRError:this.get_config("on_xhr_error")})}catch(c){console.error(c)}else{var a,l=At.createElement("script");l.type="text/javascript",l.async=!0,l.defer=!0,l.src=e;var h=At.getElementsByTagName("script")[0];(a=h.parentNode)===null||a===void 0||a.insertBefore(l,h)}}}},{key:"_execute_array",value:function(e){var r,i=this,n=[],s=[],o=[];Ve(e,function(l){l&&(r=l[0],Le(r)?o.push(l):typeof l=="function"?l.call(i):Le(l)&&r==="alias"?n.push(l):Le(l)&&r.indexOf("capture")!==-1&&typeof i[r]=="function"?o.push(l):s.push(l))});var a=function(l,h){Ve(l,function(c){if(Le(c[0])){var p=h;lt(c,function(u){p=p[u[0]].apply(p,u.slice(1))})}else this[c[0]].apply(this,c.slice(1))},h)};a(n,this),a(s,this),a(o,this)}},{key:"_hasBootstrappedFeatureFlags",value:function(){var e,r;return((e=this.config.bootstrap)===null||e===void 0?void 0:e.featureFlags)&&Object.keys((r=this.config.bootstrap)===null||r===void 0?void 0:r.featureFlags).length>0||!1}},{key:"push",value:function(e){this._execute_array([e])}},{key:"capture",value:function(e,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:es;if(this.__loaded&&!up(this,!1)){this._captureMetrics.incr("capture"),e==="$snapshot"&&this._captureMetrics.incr("snapshot");var n=(i=i||es).transport;if(n&&(i.transport=n),ge(e)||typeof e!="string")console.error("No event name provided to posthog.capture");else if(!Jf(pe)){this.sessionPersistence.update_search_keyword(),this.get_config("store_google")&&this.sessionPersistence.update_campaign_params(),this.get_config("save_referrer")&&this.sessionPersistence.update_referrer_info();var s={event:e,properties:this._calculate_event_properties(e,r||{})};e==="$identify"&&(s.$set=i.$set,s.$set_once=i.$set_once),(s=np(s,i._noTruncate?null:this.get_config("properties_string_max_length"))).timestamp=i.timestamp||new Date,this.get_config("debug")&&vt.log("PostHog.js send",s);var o=JSON.stringify(s),a=this.get_config("api_host")+(i.endpoint||"/e/"),l=i!==es;return!this.get_config("request_batching")||l&&!i._batchKey||i.send_instantly?this.__compress_and_send_json_request(a,o,i):this._requestQueue.enqueue(a,s,i),this._invokeCaptureHooks(e,s),s}}}},{key:"_addCaptureHook",value:function(e){this.__captureHooks.push(e)}},{key:"_invokeCaptureHooks",value:function(e,r){this.config._onCapture(e,r),lt(this.__captureHooks,function(i){return i(e)})}},{key:"_calculate_event_properties",value:function(e,r){var i,n=this.persistence.remove_event_timer(e),s=et({},r);if(s.token=this.get_config("token"),e==="$snapshot"){var o=et(et({},this.persistence.properties()),this.sessionPersistence.properties());return s.distinct_id=o.distinct_id,s}var a=Mt.properties();if(this.sessionManager){var l=this.sessionManager.checkAndGetSessionAndWindowId(),h=l.sessionId,c=l.windowId;s.$session_id=h,s.$window_id=c}if((i=this.webPerformance)!==null&&i!==void 0&&i.isEnabled&&(e==="$pageview"&&this.pageViewIdManager.onPageview(),s=It(s,{$pageview_id:this.pageViewIdManager.getPageViewId()})),e==="$performance_event"){var p=this.persistence.properties();return s.distinct_id=p.distinct_id,s.$current_url=a.$current_url,s}if(n!==void 0){var u=new Date().getTime()-n;s.$duration=parseFloat((u/1e3).toFixed(3))}s=It({},Mt.properties(),this.persistence.properties(),this.sessionPersistence.properties(),s);var f=this.get_config("property_blacklist");Le(f)?lt(f,function(g){delete s[g]}):console.error("Invalid value for property_blacklist config: "+f);var m=this.get_config("sanitize_properties");return m&&(s=m(s,e)),s}},{key:"register",value:function(e,r){this.persistence.register(e,r)}},{key:"register_once",value:function(e,r,i){this.persistence.register_once(e,r,i)}},{key:"register_for_session",value:function(e){this.sessionPersistence.register(e)}},{key:"unregister",value:function(e){this.persistence.unregister(e)}},{key:"unregister_for_session",value:function(e){this.sessionPersistence.unregister(e)}},{key:"_register_single",value:function(e,r){this.register(rt({},e,r))}},{key:"getFeatureFlag",value:function(e,r){return this.featureFlags.getFeatureFlag(e,r)}},{key:"getFeatureFlagPayload",value:function(e){var r=this.featureFlags.getFeatureFlagPayload(e);try{return JSON.parse(r)}catch{return r}}},{key:"isFeatureEnabled",value:function(e,r){return this.featureFlags.isFeatureEnabled(e,r)}},{key:"reloadFeatureFlags",value:function(){this.featureFlags.reloadFeatureFlags()}},{key:"updateEarlyAccessFeatureEnrollment",value:function(e,r){this.featureFlags.updateEarlyAccessFeatureEnrollment(e,r)}},{key:"getEarlyAccessFeatures",value:function(e){var r=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return this.featureFlags.getEarlyAccessFeatures(e,r)}},{key:"onFeatureFlags",value:function(e){return this.featureFlags.onFeatureFlags(e)}},{key:"identify",value:function(e,r,i){if(e){this._captureMetrics.incr("identify");var n=this.get_distinct_id();if(this.register({$user_id:e}),!this.get_property("$device_id")){var s=n;this.register_once({$had_persisted_distinct_id:!0,$device_id:s},"")}e!==n&&e!==this.get_property(is)&&(this.unregister(is),this.register({distinct_id:e}));var o=this.persistence.get_user_state()==="anonymous";e!==n&&o?(this.persistence.set_user_state("identified"),this.capture("$identify",{distinct_id:e,$anon_distinct_id:n},{$set:r||{},$set_once:i||{}}),this.featureFlags.setAnonymousDistinctId(n)):(r&&this.people.set(r),i&&this.people.set_once(i)),e!==n&&this.reloadFeatureFlags()}else console.error("Unique user id has not been set in posthog.identify")}},{key:"group",value:function(e,r,i){if(e&&r){this._captureMetrics.incr("group");var n=this.getGroups();n[e]!==r&&this.resetGroupPropertiesForFlags(e),this.register({$groups:et(et({},n),{},rt({},e,r))}),i&&(this.capture("$groupidentify",{$group_type:e,$group_key:r,$group_set:i}),this.setGroupPropertiesForFlags(rt({},e,i))),n[e]===r||i||this.reloadFeatureFlags()}else console.error("posthog.group requires a group type and group key")}},{key:"resetGroups",value:function(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}},{key:"setPersonPropertiesForFlags",value:function(e){var r=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];this.featureFlags.setPersonPropertiesForFlags(e,r)}},{key:"resetPersonPropertiesForFlags",value:function(){this.featureFlags.resetPersonPropertiesForFlags()}},{key:"setGroupPropertiesForFlags",value:function(e){var r=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];this.featureFlags.setGroupPropertiesForFlags(e,r)}},{key:"resetGroupPropertiesForFlags",value:function(e){this.featureFlags.resetGroupPropertiesForFlags(e)}},{key:"reset",value:function(e){var r=this.get_property("$device_id");this.persistence.clear(),this.sessionPersistence.clear(),this.persistence.set_user_state("anonymous"),this.sessionManager.resetSessionId();var i=this.get_config("get_device_id")(Xe());this.register_once({distinct_id:i,$device_id:e?i:r},"")}},{key:"get_distinct_id",value:function(){return this.get_property("distinct_id")}},{key:"getGroups",value:function(){return this.get_property("$groups")||{}}},{key:"get_session_id",value:function(){return this.sessionManager.checkAndGetSessionAndWindowId(!0).sessionId}},{key:"get_session_replay_url",value:function(e){var r=(this.config.ui_host||this.config.api_host)+"/replay/"+this.get_session_id();if(e!=null&&e.withTimestamp&&this.sessionManager._sessionStartTimestamp){var i,n=(i=e.timestampLookBack)!==null&&i!==void 0?i:10;if(!this.sessionManager._sessionStartTimestamp)return r;var s=Math.max(Math.floor((new Date().getTime()-(this.sessionManager._sessionStartTimestamp||0))/1e3)-n,0);r+="?t=".concat(s)}return r}},{key:"alias",value:function(e,r){return e===this.get_property(lp)?(vt.critical("Attempting to create alias for existing People user - aborting."),-2):(ge(r)&&(r=this.get_distinct_id()),e!==r?(this._register_single(is,e),this.capture("$create_alias",{alias:e,distinct_id:r})):(console.error("alias matches current distinct_id - skipping api call."),this.identify(e),-1))}},{key:"set_config",value:function(e){var r=et({},this.config);dr(e)&&(It(this.config,e),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),this.sessionPersistence&&this.sessionPersistence.update_config(this.config),wt.is_supported()&&wt.get("ph_debug")==="true"&&(this.config.debug=!0),this.get_config("debug")&&(Pe.DEBUG=!0),this.sessionRecording&&e.disable_session_recording!==void 0&&r.disable_session_recording!==e.disable_session_recording&&(e.disable_session_recording?this.sessionRecording.stopRecording():this.sessionRecording.startRecordingIfEnabled()))}},{key:"startSessionRecording",value:function(){this.set_config({disable_session_recording:!1})}},{key:"stopSessionRecording",value:function(){this.set_config({disable_session_recording:!0})}},{key:"sessionRecordingStarted",value:function(){var e;return!((e=this.sessionRecording)===null||e===void 0||!e.started())}},{key:"loadToolbar",value:function(e){return this.toolbar.loadToolbar(e)}},{key:"get_config",value:function(e){var r;return(r=this.config)===null||r===void 0?void 0:r[e]}},{key:"get_property",value:function(e){return this.persistence.props[e]}},{key:"getSessionProperty",value:function(e){return this.sessionPersistence.props[e]}},{key:"toString",value:function(){var e,r=(e=this.get_config("name"))!==null&&e!==void 0?e:Wt;return r!==Wt&&(r=Wt+"."+r),r}},{key:"_gdpr_init",value:function(){this.get_config("opt_out_capturing_persistence_type")==="localStorage"&&wt.is_supported()&&(!this.has_opted_in_capturing()&&this.has_opted_in_capturing({persistence_type:"cookie"})&&this.opt_in_capturing({enable_persistence:!1}),!this.has_opted_out_capturing()&&this.has_opted_out_capturing({persistence_type:"cookie"})&&this.opt_out_capturing({clear_persistence:!1}),this.clear_opt_in_out_capturing({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_capturing()?this._gdpr_update_persistence({clear_persistence:!0}):this.has_opted_in_capturing()||!this.get_config("opt_out_capturing_by_default")&&!ke.get("ph_optout")||(ke.remove("ph_optout"),this.opt_out_capturing({clear_persistence:this.get_config("opt_out_persistence_by_default")}))}},{key:"_gdpr_update_persistence",value:function(e){var r;if(e&&e.clear_persistence)r=!0;else{if(!e||!e.enable_persistence)return;r=!1}this.get_config("disable_persistence")||this.persistence.disabled===r||this.persistence.set_disabled(r),this.get_config("disable_persistence")||this.sessionPersistence.disabled===r||this.sessionPersistence.set_disabled(r)}},{key:"_gdpr_call_func",value:function(e,r){return r=It({capture:this.capture.bind(this),persistence_type:this.get_config("opt_out_capturing_persistence_type"),cookie_prefix:this.get_config("opt_out_capturing_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),secure_cookie:this.get_config("secure_cookie")},r||{}),wt.is_supported()||r.persistence_type!=="localStorage"||(r.persistence_type="cookie"),e(this.get_config("token"),{capture:r.capture,captureEventName:r.capture_event_name,captureProperties:r.capture_properties,persistenceType:r.persistence_type,persistencePrefix:r.cookie_prefix,cookieExpiration:r.cookie_expiration,crossSubdomainCookie:r.cross_subdomain_cookie,secureCookie:r.secure_cookie})}},{key:"opt_in_capturing",value:function(e){e=It({enable_persistence:!0},e||{}),this._gdpr_call_func(nd,e),this._gdpr_update_persistence(e)}},{key:"opt_out_capturing",value:function(e){var r=It({clear_persistence:!0},e||{});this._gdpr_call_func(sd,r),this._gdpr_update_persistence(r)}},{key:"has_opted_in_capturing",value:function(e){return this._gdpr_call_func(od,e)}},{key:"has_opted_out_capturing",value:function(e){return this._gdpr_call_func(hp,e)}},{key:"clear_opt_in_out_capturing",value:function(e){var r=It({enable_persistence:!0},e??{});this._gdpr_call_func(ad,r),this._gdpr_update_persistence(r)}},{key:"debug",value:function(e){e===!1?(K.console.log("You've disabled debug mode."),localStorage&&localStorage.removeItem("ph_debug"),this.set_config({debug:!1})):(K.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),localStorage&&localStorage.setItem("ph_debug","true"),this.set_config({debug:!0}))}},{key:"decodeLZ64",value:function(e){return re.decompressFromBase64(e||null)}}]),t}();(function(t,e){for(var r=0;r<e.length;r++)t.prototype[e[r]]=ip(t.prototype[e[r]])})(Ea,["identify"]);var We={},Yd=function(){Dt.init=function(t,e,r){if(r)return Dt[r]||(Dt[r]=We[r]=da(t||"",e||{},r,function(n){Dt[r]=We[r]=n,n._loaded()})),Dt[r];var i=Dt;return We[Wt]?i=We[Wt]:t&&(i=da(t,e||{},Wt,function(n){We[Wt]=n,n._loaded()}),We[Wt]=i),Dt=i,xa===Bi.INIT_SNIPPET&&(K[Wt]=Dt),lt(We,function(n,s){s!==Wt&&(Dt[s]=n)}),i}},Zd=function(){function t(){t.done||(t.done=!0,bp=!1,lt(We,function(e){e._dom_loaded()}))}At.addEventListener&&(At.readyState==="complete"?t():At.addEventListener("DOMContentLoaded",t,!1)),$i(K,"load",t,!0)},ka=(xa=Bi.INIT_MODULE,Dt=new Ea,Yd(),Dt.init(),Zd(),Dt);ka.init("phc_OTZ3wJ6VemgVupCRKS5Sbqb9Ks0JYe0hMYZPtLwl0nu",{api_host:"https://ph-eu.molin.ai",ui_host:"https://eu.posthog.com",secure_cookie:document.location.protocol==="https:",persistence:"cookie",autocapture:!1,rageclick:!1,capture_pageview:!0,disable_session_recording:!0});function ye(t,e){ka.capture(t,e)}var Ae,ve,ms,_p,gs,wp,ys,xp,vs,Sp,bs,Ep,_s,kp,ds=class extends kt(yt){constructor(){super();J(this,ms);J(this,gs);J(this,ys);J(this,vs);J(this,bs);J(this,_s);J(this,Ae,new Xn(this,{url:({resume:r}={})=>{let i=new URL(this.config.wsApiUrl);return i.searchParams.set("widgetId",this.widgetId),i.searchParams.set("resume",r?"1":""),i},onReconnect:()=>{},onError:r=>{console.error("ws error",r),ye("ShopAssistant: error",{widgetId:this.widgetId,error:"websocket onError"})},onClose:()=>{},onNewMessage:r=>{r.role==="assistant"&&ye("ShopAssistant: user received bot message (streaming started)",{widgetId:this.widgetId,message:r})},onUpdateMessage:r=>{},onMessageDone:r=>{let i={...q(this,Ae)?.messages.find(n=>n.id===r.message?.id)};Object.assign(i,r.message),i.role==="assistant"&&ye("ShopAssistant: user received bot message (streaming ended)",{widgetId:this.widgetId,text:i.content??"",message:i,usage_TOKENS_COMPLETION:r.message.usage.TOKENS_COMPLETION})},onMessageError:r=>{console.error("ws error",r),r.message&&q(this,ve)&&alert(r.message),ye("ShopAssistant: error",{widgetId:this.widgetId,error:"websocket ERROR message type: "+r.message})}}));J(this,ve,!1);this.widgetId="",this.config}render(){console.assert(this.widgetId,"widget id is required"),console.assert(this.config,"config is required");let r=Object.entries(this.config.bubble.position).filter(([s,o])=>o).map(([s,o])=>`${s}-[${o}]`).reduce((s,o)=>(s[o]=!0,s),{}),i={bottom:"72px"},n=Object.entries(this.config.bubble.position).filter(([s,o])=>o).map(([s,o])=>`sm:${s}-[calc(${[i[s],o].filter(a=>!!a).join("+")})]`).reduce((s,o)=>(s[o]=!0,s),{});return st`
398
398
  <mw-bubble class="${kc(r)} fixed z-50" @click=${nt(this,ys,xp)} ?dialog-shown="${q(this,ve)}"></mw-bubble>
399
399
 
400
400
  <div id="dialog" class="${q(this,ve)?"visible opacity-100 translate-y-0":"invisible opacity-0 translate-y-3"} ${Object.keys(n).join(" ")} fixed bottom-0 left-0 right-0 top-0 z-[99999] overflow-hidden bg-white font-sans text-[16px] leading-normal text-gray-800 subpixel-antialiased shadow-2xl transition-all sm:left-auto sm:top-auto sm:h-4/5 sm:max-h-[800px] sm:w-5/6 sm:max-w-[420px] sm:rounded-2xl">
401
401
  <div class="mx-auto flex h-full w-full max-w-4xl flex-col">
402
- <mw-header class="z-10 border-b bg-[${this.config.header.background}]" .config="${this.config}" @mw-close="${nt(this,vs,Sp)}"></mw-header>
402
+ <mw-header class="z-10 text-lg border-b bg-[${this.config.header.background}]" .config="${this.config}" @mw-close="${nt(this,vs,Sp)}"></mw-header>
403
403
 
404
404
  <!-- this structure of 2 divs is required for the native scroll to bottom -->
405
405
  <div class="flex h-full flex-shrink flex-grow flex-col-reverse overflow-auto bg-[#FDFDFD] pt-4">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@molin.ai/shop-ai",
3
- "version": "0.3.4",
3
+ "version": "0.4.0",
4
4
  "description": "Molin Shop AI",
5
5
  "keywords": [
6
6
  "molin",