posthog-js 1.347.2 → 1.348.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.
- package/dist/array.full.es5.js +1 -1
- package/dist/array.full.js +1 -1
- package/dist/array.full.no-external.js +1 -1
- package/dist/array.js +1 -1
- package/dist/array.no-external.js +1 -1
- package/dist/conversations.js +1 -1
- package/dist/conversations.js.map +1 -1
- package/dist/customizations.full.js +1 -1
- package/dist/lazy-recorder.js +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/module.d.ts +43 -1
- package/dist/module.full.d.ts +43 -1
- package/dist/module.full.js +1 -1
- package/dist/module.full.js.map +1 -1
- package/dist/module.full.no-external.d.ts +43 -1
- package/dist/module.full.no-external.js +1 -1
- package/dist/module.full.no-external.js.map +1 -1
- package/dist/module.js +1 -1
- package/dist/module.js.map +1 -1
- package/dist/module.no-external.d.ts +43 -1
- package/dist/module.no-external.js +1 -1
- package/dist/module.no-external.js.map +1 -1
- package/dist/posthog-recorder.js +1 -1
- package/dist/product-tours-preview.d.ts +2 -0
- package/dist/product-tours-preview.js +1 -1
- package/dist/product-tours-preview.js.map +1 -1
- package/dist/product-tours.js +1 -1
- package/dist/product-tours.js.map +1 -1
- package/dist/src/extensions/conversations/external/components/ConversationsWidget.d.ts +43 -2
- package/dist/src/extensions/conversations/external/components/TicketListItem.d.ts +13 -0
- package/dist/src/extensions/conversations/external/components/TicketListView.d.ts +15 -0
- package/dist/src/extensions/conversations/external/components/styles.d.ts +184 -0
- package/dist/src/extensions/conversations/external/components/utils.d.ts +8 -0
- package/dist/src/extensions/conversations/external/index.d.ts +39 -1
- package/dist/src/extensions/product-tours/product-tours.d.ts +2 -0
- package/dist/src/posthog-product-tours-types.d.ts +42 -0
- package/dist/surveys-preview.d.ts +2 -0
- package/lib/package.json +1 -1
- package/lib/src/extensions/conversations/external/components/ConversationsWidget.d.ts +43 -2
- package/lib/src/extensions/conversations/external/components/ConversationsWidget.js +96 -28
- package/lib/src/extensions/conversations/external/components/ConversationsWidget.js.map +1 -1
- package/lib/src/extensions/conversations/external/components/TicketListItem.d.ts +13 -0
- package/lib/src/extensions/conversations/external/components/TicketListItem.js +47 -0
- package/lib/src/extensions/conversations/external/components/TicketListItem.js.map +1 -0
- package/lib/src/extensions/conversations/external/components/TicketListView.d.ts +15 -0
- package/lib/src/extensions/conversations/external/components/TicketListView.js +75 -0
- package/lib/src/extensions/conversations/external/components/TicketListView.js.map +1 -0
- package/lib/src/extensions/conversations/external/components/styles.d.ts +184 -0
- package/lib/src/extensions/conversations/external/components/styles.js +189 -0
- package/lib/src/extensions/conversations/external/components/styles.js.map +1 -1
- package/lib/src/extensions/conversations/external/components/utils.d.ts +8 -0
- package/lib/src/extensions/conversations/external/components/utils.js +49 -0
- package/lib/src/extensions/conversations/external/components/utils.js.map +1 -0
- package/lib/src/extensions/conversations/external/index.d.ts +39 -1
- package/lib/src/extensions/conversations/external/index.js +253 -31
- package/lib/src/extensions/conversations/external/index.js.map +1 -1
- package/lib/src/extensions/product-tours/components/ProductTourSurveyStepInner.js +1 -1
- package/lib/src/extensions/product-tours/components/ProductTourSurveyStepInner.js.map +1 -1
- package/lib/src/extensions/product-tours/product-tours.d.ts +2 -0
- package/lib/src/extensions/product-tours/product-tours.js +78 -71
- package/lib/src/extensions/product-tours/product-tours.js.map +1 -1
- package/lib/src/posthog-product-tours-types.d.ts +42 -0
- package/lib/src/posthog-product-tours-types.js +43 -1
- package/lib/src/posthog-product-tours-types.js.map +1 -1
- package/lib/src/utils/product-tour-event-receiver.js +2 -1
- package/lib/src/utils/product-tour-event-receiver.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/react/dist/esm/index.js +25 -1
- package/react/dist/esm/index.js.map +1 -1
- package/react/dist/types/index.d.ts +4 -2
- package/react/dist/umd/index.js +25 -0
- package/react/dist/umd/index.js.map +1 -1
package/dist/product-tours.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(t){"use strict";var r="undefined"!=typeof window?window:void 0,e="undefined"!=typeof globalThis?globalThis:r;"undefined"==typeof self&&(e.self=e),"undefined"==typeof File&&(e.File=function(){});var n=null==e?void 0:e.navigator,o=null==e?void 0:e.document;null==e||e.location,null==e||e.fetch,null!=e&&e.XMLHttpRequest&&"withCredentials"in new e.XMLHttpRequest&&e.XMLHttpRequest,null==e||e.AbortController,null==n||n.userAgent;var i=null!=r?r:{};function u(){return u=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var e=arguments[r];for(var n in e)({}).hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t},u.apply(null,arguments)}var l,a,s,c,h,d,f,p,v,m,g,b,y={},_=[],w=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,x=Array.isArray;function k(t,r){for(var e in r)t[e]=r[e];return t}function T(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function C(t,r,e,n,o){var i={type:t,props:r,key:e,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==o?++s:o,__i:-1,__u:0};return null==o&&null!=a.vnode&&a.vnode(i),i}function S(t){return t.children}function q(t,r){this.props=t,this.context=r}function M(t,r){if(null==r)return t.__?M(t.__,t.__i+1):null;for(var e;r<t.__k.length;r++)if(null!=(e=t.__k[r])&&null!=e.__e)return e.__e;return"function"==typeof t.type?M(t):null}function A(t){var r,e;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,r=0;r<t.__k.length;r++)if(null!=(e=t.__k[r])&&null!=e.__e){t.__e=t.__c.base=e.__e;break}return A(t)}}function L(t){(!t.__d&&(t.__d=!0)&&c.push(t)&&!$.__r++||h!=a.debounceRendering)&&((h=a.debounceRendering)||d)($)}function $(){for(var t,r,e,n,o,i,u,l=1;c.length;)c.length>l&&c.sort(f),t=c.shift(),l=c.length,t.__d&&(e=void 0,n=void 0,o=(n=(r=t).__v).__e,i=[],u=[],r.__P&&((e=k({},n)).__v=n.__v+1,a.vnode&&a.vnode(e),Z(r.__P,e,n,r.__n,r.__P.namespaceURI,32&n.__u?[o]:null,i,null==o?M(n):o,!!(32&n.__u),u),e.__v=n.__v,e.__.__k[e.__i]=e,P(i,e,u),n.__e=n.__=null,e.__e!=o&&A(e)));$.__r=0}function E(t,r,e,n,o,i,u,l,a,s,c){var h,d,f,p,v,m,g,b=n&&n.__k||_,w=r.length;for(a=function(t,r,e,n,o){var i,u,l,a,s,c=e.length,h=c,d=0;for(t.__k=new Array(o),i=0;i<o;i++)null!=(u=r[i])&&"boolean"!=typeof u&&"function"!=typeof u?("string"==typeof u||"number"==typeof u||"bigint"==typeof u||u.constructor==String?u=t.__k[i]=C(null,u,null,null,null):x(u)?u=t.__k[i]=C(S,{children:u},null,null,null):void 0===u.constructor&&u.__b>0?u=t.__k[i]=C(u.type,u.props,u.key,u.ref?u.ref:null,u.__v):t.__k[i]=u,a=i+d,u.__=t,u.__b=t.__b+1,l=null,-1!=(s=u.__i=j(u,e,a,h))&&(h--,(l=e[s])&&(l.__u|=2)),null==l||null==l.__v?(-1==s&&(o>c?d--:o<c&&d++),"function"!=typeof u.type&&(u.__u|=4)):s!=a&&(s==a-1?d--:s==a+1?d++:(s>a?d--:d++,u.__u|=4))):t.__k[i]=null;if(h)for(i=0;i<c;i++)null!=(l=e[i])&&0==(2&l.__u)&&(l.__e==n&&(n=M(l)),V(l,l));return n}(e,r,b,a,w),h=0;h<w;h++)null!=(f=e.__k[h])&&(d=-1==f.__i?y:b[f.__i]||y,f.__i=h,m=Z(t,f,d,o,i,u,l,a,s,c),p=f.__e,f.ref&&d.ref!=f.ref&&(d.ref&&H(d.ref,null,f),c.push(f.ref,f.__c||p,f)),null==v&&null!=p&&(v=p),(g=!!(4&f.__u))||d.__k===f.__k?a=I(f,a,t,g):"function"==typeof f.type&&void 0!==m?a=m:p&&(a=p.nextSibling),f.__u&=-7);return e.__e=v,a}function I(t,r,e,n){var o,i;if("function"==typeof t.type){for(o=t.__k,i=0;o&&i<o.length;i++)o[i]&&(o[i].__=t,r=I(o[i],r,e,n));return r}t.__e!=r&&(n&&(r&&t.type&&!r.parentNode&&(r=M(t)),e.insertBefore(t.__e,r||null)),r=t.__e);do{r=r&&r.nextSibling}while(null!=r&&8==r.nodeType);return r}function j(t,r,e,n){var o,i,u,l=t.key,a=t.type,s=r[e],c=null!=s&&0==(2&s.__u);if(null===s&&null==l||c&&l==s.key&&a==s.type)return e;if(n>(c?1:0))for(o=e-1,i=e+1;o>=0||i<r.length;)if(null!=(s=r[u=o>=0?o--:i++])&&0==(2&s.__u)&&l==s.key&&a==s.type)return u;return-1}function z(t,r,e){"-"==r[0]?t.setProperty(r,null==e?"":e):t[r]=null==e?"":"number"!=typeof e||w.test(r)?e:e+"px"}function R(t,r,e,n,o){var i,u;t:if("style"==r)if("string"==typeof e)t.style.cssText=e;else{if("string"==typeof n&&(t.style.cssText=n=""),n)for(r in n)e&&r in e||z(t.style,r,"");if(e)for(r in e)n&&e[r]==n[r]||z(t.style,r,e[r])}else if("o"==r[0]&&"n"==r[1])i=r!=(r=r.replace(p,"$1")),u=r.toLowerCase(),r=u in t||"onFocusOut"==r||"onFocusIn"==r?u.slice(2):r.slice(2),t.l||(t.l={}),t.l[r+i]=e,e?n?e.u=n.u:(e.u=v,t.addEventListener(r,i?g:m,i)):t.removeEventListener(r,i?g:m,i);else{if("http://www.w3.org/2000/svg"==o)r=r.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=r&&"height"!=r&&"href"!=r&&"list"!=r&&"form"!=r&&"tabIndex"!=r&&"download"!=r&&"rowSpan"!=r&&"colSpan"!=r&&"role"!=r&&"popover"!=r&&r in t)try{t[r]=null==e?"":e;break t}catch(t){}"function"==typeof e||(null==e||!1===e&&"-"!=r[4]?t.removeAttribute(r):t.setAttribute(r,"popover"==r&&1==e?"":e))}}function O(t){return function(r){if(this.l){var e=this.l[r.type+t];if(null==r.t)r.t=v++;else if(r.t<e.u)return;return e(a.event?a.event(r):r)}}}function Z(t,r,e,n,o,i,u,l,s,c){var h,d,f,p,v,m,g,b,y,_,w,$,C,M,A,L,I,j=r.type;if(void 0!==r.constructor)return null;128&e.__u&&(s=!!(32&e.__u),i=[l=r.__e=e.__e]),(h=a.__b)&&h(r);t:if("function"==typeof j)try{if(b=r.props,y="prototype"in j&&j.prototype.render,_=(h=j.contextType)&&n[h.__c],w=h?_?_.props.value:h.__:n,e.__c?g=(d=r.__c=e.__c).__=d.__E:(y?r.__c=d=new j(b,w):(r.__c=d=new q(b,w),d.constructor=j,d.render=B),_&&_.sub(d),d.state||(d.state={}),d.__n=n,f=d.__d=!0,d.__h=[],d._sb=[]),y&&null==d.__s&&(d.__s=d.state),y&&null!=j.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=k({},d.__s)),k(d.__s,j.getDerivedStateFromProps(b,d.__s))),p=d.props,v=d.state,d.__v=r,f)y&&null==j.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),y&&null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(y&&null==j.getDerivedStateFromProps&&b!==p&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(b,w),r.__v==e.__v||!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(b,d.__s,w)){for(r.__v!=e.__v&&(d.props=b,d.state=d.__s,d.__d=!1),r.__e=e.__e,r.__k=e.__k,r.__k.some((function(t){t&&(t.__=r)})),$=0;$<d._sb.length;$++)d.__h.push(d._sb[$]);d._sb=[],d.__h.length&&u.push(d);break t}null!=d.componentWillUpdate&&d.componentWillUpdate(b,d.__s,w),y&&null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(p,v,m)}))}if(d.context=w,d.props=b,d.__P=t,d.__e=!1,C=a.__r,M=0,y){for(d.state=d.__s,d.__d=!1,C&&C(r),h=d.render(d.props,d.state,d.context),A=0;A<d._sb.length;A++)d.__h.push(d._sb[A]);d._sb=[]}else do{d.__d=!1,C&&C(r),h=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++M<25);d.state=d.__s,null!=d.getChildContext&&(n=k(k({},n),d.getChildContext())),y&&!f&&null!=d.getSnapshotBeforeUpdate&&(m=d.getSnapshotBeforeUpdate(p,v)),L=h,null!=h&&h.type===S&&null==h.key&&(L=N(h.props.children)),l=E(t,x(L)?L:[L],r,e,n,o,i,u,l,s,c),d.base=r.__e,r.__u&=-161,d.__h.length&&u.push(d),g&&(d.__E=d.__=null)}catch(t){if(r.__v=null,s||null!=i)if(t.then){for(r.__u|=s?160:128;l&&8==l.nodeType&&l.nextSibling;)l=l.nextSibling;i[i.indexOf(l)]=null,r.__e=l}else{for(I=i.length;I--;)T(i[I]);D(r)}else r.__e=e.__e,r.__k=e.__k,t.then||D(r);a.__e(t,r,e)}else null==i&&r.__v==e.__v?(r.__k=e.__k,r.__e=e.__e):l=r.__e=F(e.__e,r,e,n,o,i,u,s,c);return(h=a.diffed)&&h(r),128&r.__u?void 0:l}function D(t){t&&t.__c&&(t.__c.__e=!0),t&&t.__k&&t.__k.forEach(D)}function P(t,r,e){for(var n=0;n<e.length;n++)H(e[n],e[++n],e[++n]);a.__c&&a.__c(r,t),t.some((function(r){try{t=r.__h,r.__h=[],t.some((function(t){t.call(r)}))}catch(t){a.__e(t,r.__v)}}))}function N(t){return"object"!=typeof t||null==t||t.__b&&t.__b>0?t:x(t)?t.map(N):k({},t)}function F(t,r,e,n,o,i,u,s,c){var h,d,f,p,v,m,g,b=e.props||y,_=r.props,w=r.type;if("svg"==w?o="http://www.w3.org/2000/svg":"math"==w?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),null!=i)for(h=0;h<i.length;h++)if((v=i[h])&&"setAttribute"in v==!!w&&(w?v.localName==w:3==v.nodeType)){t=v,i[h]=null;break}if(null==t){if(null==w)return document.createTextNode(_);t=document.createElementNS(o,w,_.is&&_),s&&(a.__m&&a.__m(r,i),s=!1),i=null}if(null==w)b===_||s&&t.data==_||(t.data=_);else{if(i=i&&l.call(t.childNodes),!s&&null!=i)for(b={},h=0;h<t.attributes.length;h++)b[(v=t.attributes[h]).name]=v.value;for(h in b)if(v=b[h],"children"==h);else if("dangerouslySetInnerHTML"==h)f=v;else if(!(h in _)){if("value"==h&&"defaultValue"in _||"checked"==h&&"defaultChecked"in _)continue;R(t,h,null,v,o)}for(h in _)v=_[h],"children"==h?p=v:"dangerouslySetInnerHTML"==h?d=v:"value"==h?m=v:"checked"==h?g=v:s&&"function"!=typeof v||b[h]===v||R(t,h,v,b[h],o);if(d)s||f&&(d.__html==f.__html||d.__html==t.innerHTML)||(t.innerHTML=d.__html),r.__k=[];else if(f&&(t.innerHTML=""),E("template"==r.type?t.content:t,x(p)?p:[p],r,e,n,"foreignObject"==w?"http://www.w3.org/1999/xhtml":o,i,u,i?i[0]:e.__k&&M(e,0),s,c),null!=i)for(h=i.length;h--;)T(i[h]);s||(h="value","progress"==w&&null==m?t.removeAttribute("value"):null!=m&&(m!==t[h]||"progress"==w&&!m||"option"==w&&m!=b[h])&&R(t,h,m,b[h],o),h="checked",null!=g&&g!=t[h]&&R(t,h,g,b[h],o))}return t}function H(t,r,e){try{if("function"==typeof t){var n="function"==typeof t.__u;n&&t.__u(),n&&null==r||(t.__u=t(r))}else t.current=r}catch(t){a.__e(t,e)}}function V(t,r,e){var n,o;if(a.unmount&&a.unmount(t),(n=t.ref)&&(n.current&&n.current!=t.__e||H(n,null,r)),null!=(n=t.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(t){a.__e(t,r)}n.base=n.__P=null}if(n=t.__k)for(o=0;o<n.length;o++)n[o]&&V(n[o],r,e||"function"!=typeof t.type);e||T(t.__e),t.__c=t.__=t.__e=void 0}function B(t,r,e){return this.constructor(t,e)}function U(t,r,e){var n,o,i;r==document&&(r=document.documentElement),a.__&&a.__(t,r),n=!1?null:r.__k,o=[],i=[],Z(r,t=r.__k=function(t,r,e){var n,o,i,u={};for(i in r)"key"==i?n=r[i]:"ref"==i?o=r[i]:u[i]=r[i];if(arguments.length>2&&(u.children=arguments.length>3?l.call(arguments,2):e),"function"==typeof t&&null!=t.defaultProps)for(i in t.defaultProps)void 0===u[i]&&(u[i]=t.defaultProps[i]);return C(t,u,n,o,null)}(S,null,[t]),n||y,y,r.namespaceURI,n?null:r.firstChild?l.call(r.childNodes):null,o,n?n.__e:r.firstChild,false,i),P(o,t,i)}l=_.slice,a={__e:function(t,r,e,n){for(var o,i,u;r=r.__;)if((o=r.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(t)),u=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(t,n||{}),u=o.__d),u)return o.__E=o}catch(r){t=r}throw t}},s=0,q.prototype.setState=function(t,r){var e;e=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=k({},this.state),"function"==typeof t&&(t=t(k({},e),this.props)),t&&k(e,t),null!=t&&this.__v&&(r&&this._sb.push(r),L(this))},q.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),L(this))},q.prototype.render=S,c=[],d="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,f=function(t,r){return t.__v.__b-r.__v.__b},$.__r=0,p=/(PointerCapture)$|Capture$/i,v=0,m=O(!1),g=O(!0),b=0;var Q=function(t){return t.Activation="events",t.Cancellation="cancelEvents",t}({}),W=function(t){return t.Button="button",t.Tab="tab",t.Selector="selector",t}({}),Y=function(t){return t.TopLeft="top_left",t.TopRight="top_right",t.TopCenter="top_center",t.MiddleLeft="middle_left",t.MiddleRight="middle_right",t.MiddleCenter="middle_center",t.Left="left",t.Center="center",t.Right="right",t.NextToTrigger="next_to_trigger",t}({}),X=function(t){return t.Popover="popover",t.API="api",t.Widget="widget",t.ExternalSurvey="external_survey",t}({}),G=function(t){return t.SHOWN="survey shown",t.DISMISSED="survey dismissed",t.SENT="survey sent",t.ABANDONED="survey abandoned",t}({}),K=function(t){return t.SURVEY_ID="$survey_id",t.SURVEY_NAME="$survey_name",t.SURVEY_RESPONSE="$survey_response",t.SURVEY_ITERATION="$survey_iteration",t.SURVEY_ITERATION_START_DATE="$survey_iteration_start_date",t.SURVEY_PARTIALLY_COMPLETED="$survey_partially_completed",t.SURVEY_SUBMISSION_ID="$survey_submission_id",t.SURVEY_QUESTIONS="$survey_questions",t.SURVEY_COMPLETED="$survey_completed",t.PRODUCT_TOUR_ID="$product_tour_id",t.SURVEY_LAST_SEEN_DATE="$survey_last_seen_date",t}({}),{entries:J,setPrototypeOf:tt,isFrozen:rt,getPrototypeOf:et,getOwnPropertyDescriptor:nt}=Object,{freeze:ot,seal:it,create:ut}=Object,{apply:lt,construct:at}="undefined"!=typeof Reflect&&Reflect;ot||(ot=function(t){return t}),it||(it=function(t){return t}),lt||(lt=function(t,r){for(var e=arguments.length,n=new Array(e>2?e-2:0),o=2;o<e;o++)n[o-2]=arguments[o];return t.apply(r,n)}),at||(at=function(t){for(var r=arguments.length,e=new Array(r>1?r-1:0),n=1;n<r;n++)e[n-1]=arguments[n];return new t(...e)});var st,ct=Tt(Array.prototype.forEach),ht=Tt(Array.prototype.lastIndexOf),dt=Tt(Array.prototype.pop),ft=Tt(Array.prototype.push),pt=Tt(Array.prototype.splice),vt=Tt(String.prototype.toLowerCase),mt=Tt(String.prototype.toString),gt=Tt(String.prototype.match),bt=Tt(String.prototype.replace),yt=Tt(String.prototype.indexOf),_t=Tt(String.prototype.trim),wt=Tt(Object.prototype.hasOwnProperty),xt=Tt(RegExp.prototype.test),kt=(st=TypeError,function(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];return at(st,r)});function Tt(t){return function(r){r instanceof RegExp&&(r.lastIndex=0);for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o<e;o++)n[o-1]=arguments[o];return lt(t,r,n)}}function Ct(t,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:vt;tt&&tt(t,null);for(var n=r.length;n--;){var o=r[n];if("string"==typeof o){var i=e(o);i!==o&&(rt(r)||(r[n]=i),o=i)}t[o]=!0}return t}function St(t){for(var r=0;r<t.length;r++){wt(t,r)||(t[r]=null)}return t}function qt(t){var r=ut(null);for(var[e,n]of J(t)){wt(t,e)&&(Array.isArray(n)?r[e]=St(n):n&&"object"==typeof n&&n.constructor===Object?r[e]=qt(n):r[e]=n)}return r}function Mt(t,r){for(;null!==t;){var e=nt(t,r);if(e){if(e.get)return Tt(e.get);if("function"==typeof e.value)return Tt(e.value)}t=et(t)}return function(){return null}}var $t=ot(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),At=ot(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Lt=ot(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Et=ot(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),It=ot(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),jt=ot(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),zt=ot(["#text"]),Rt=ot(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Ot=ot(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Zt=ot(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Dt=ot(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Pt=it(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Nt=it(/<%[\w\W]*|[\w\W]*%>/gm),Ft=it(/\$\{[\w\W]*/gm),Ht=it(/^data-[\-\w.\u00B7-\uFFFF]+$/),Vt=it(/^aria-[\-\w]+$/),Bt=it(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ut=it(/^(?:\w+script|data):/i),Qt=it(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Wt=it(/^html$/i),Yt=it(/^[a-z][.\w]*(-[.\w]+)+$/i),Xt=Object.freeze({__proto__:null,ARIA_ATTR:Vt,ATTR_WHITESPACE:Qt,CUSTOM_ELEMENT:Yt,DATA_ATTR:Ht,DOCTYPE_NAME:Wt,ERB_EXPR:Nt,IS_ALLOWED_URI:Bt,IS_SCRIPT_OR_DATA:Ut,MUSTACHE_EXPR:Pt,TMPLIT_EXPR:Ft}),Gt=1,Kt=3,Jt=7,tr=8,rr=9,er=function(){return"undefined"==typeof window?null:window};var nr=function t(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:er(),e=r=>t(r);if(e.version="3.3.1",e.removed=[],!r||!r.document||r.document.nodeType!==rr||!r.Element)return e.isSupported=!1,e;var n,{document:o}=r,i=o,u=i.currentScript,{DocumentFragment:l,HTMLTemplateElement:a,Node:s,Element:c,NodeFilter:h,NamedNodeMap:d=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:f,DOMParser:p,trustedTypes:v}=r,m=c.prototype,g=Mt(m,"cloneNode"),b=Mt(m,"remove"),y=Mt(m,"nextSibling"),_=Mt(m,"childNodes"),w=Mt(m,"parentNode");if("function"==typeof a){var x=o.createElement("template");x.content&&x.content.ownerDocument&&(o=x.content.ownerDocument)}var k="",{implementation:T,createNodeIterator:C,createDocumentFragment:S,getElementsByTagName:q}=o,{importNode:M}=i,A={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};e.isSupported="function"==typeof J&&"function"==typeof w&&T&&void 0!==T.createHTMLDocument;var{MUSTACHE_EXPR:L,ERB_EXPR:E,TMPLIT_EXPR:I,DATA_ATTR:j,ARIA_ATTR:z,IS_SCRIPT_OR_DATA:R,ATTR_WHITESPACE:O,CUSTOM_ELEMENT:Z}=Xt,{IS_ALLOWED_URI:D}=Xt,P=null,N=Ct({},[...$t,...At,...Lt,...It,...zt]),F=null,H=Ct({},[...Rt,...Ot,...Zt,...Dt]),V=Object.seal(ut(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),B=null,U=null,Q=Object.seal(ut(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),W=!0,Y=!0,X=!1,G=!0,K=!1,tt=!0,rt=!1,et=!1,nt=!1,it=!1,lt=!1,at=!1,st=!0,Tt=!1,St=!0,Pt=!1,Nt={},Ft=null,Ht=Ct({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Vt=null,Ut=Ct({},["audio","video","img","source","image","track"]),Qt=null,Yt=Ct({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),nr="http://www.w3.org/1998/Math/MathML",or="http://www.w3.org/2000/svg",ir="http://www.w3.org/1999/xhtml",ur=ir,lr=!1,ar=null,sr=Ct({},[nr,or,ir],mt),cr=Ct({},["mi","mo","mn","ms","mtext"]),hr=Ct({},["annotation-xml"]),dr=Ct({},["title","style","font","a","script"]),fr=null,pr=["application/xhtml+xml","text/html"],vr=null,mr=null,gr=o.createElement("form"),br=function(t){return t instanceof RegExp||t instanceof Function},yr=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!mr||mr!==t){if(t&&"object"==typeof t||(t={}),t=qt(t),fr=-1===pr.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,vr="application/xhtml+xml"===fr?mt:vt,P=wt(t,"ALLOWED_TAGS")?Ct({},t.ALLOWED_TAGS,vr):N,F=wt(t,"ALLOWED_ATTR")?Ct({},t.ALLOWED_ATTR,vr):H,ar=wt(t,"ALLOWED_NAMESPACES")?Ct({},t.ALLOWED_NAMESPACES,mt):sr,Qt=wt(t,"ADD_URI_SAFE_ATTR")?Ct(qt(Yt),t.ADD_URI_SAFE_ATTR,vr):Yt,Vt=wt(t,"ADD_DATA_URI_TAGS")?Ct(qt(Ut),t.ADD_DATA_URI_TAGS,vr):Ut,Ft=wt(t,"FORBID_CONTENTS")?Ct({},t.FORBID_CONTENTS,vr):Ht,B=wt(t,"FORBID_TAGS")?Ct({},t.FORBID_TAGS,vr):qt({}),U=wt(t,"FORBID_ATTR")?Ct({},t.FORBID_ATTR,vr):qt({}),Nt=!!wt(t,"USE_PROFILES")&&t.USE_PROFILES,W=!1!==t.ALLOW_ARIA_ATTR,Y=!1!==t.ALLOW_DATA_ATTR,X=t.ALLOW_UNKNOWN_PROTOCOLS||!1,G=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,K=t.SAFE_FOR_TEMPLATES||!1,tt=!1!==t.SAFE_FOR_XML,rt=t.WHOLE_DOCUMENT||!1,it=t.RETURN_DOM||!1,lt=t.RETURN_DOM_FRAGMENT||!1,at=t.RETURN_TRUSTED_TYPE||!1,nt=t.FORCE_BODY||!1,st=!1!==t.SANITIZE_DOM,Tt=t.SANITIZE_NAMED_PROPS||!1,St=!1!==t.KEEP_CONTENT,Pt=t.IN_PLACE||!1,D=t.ALLOWED_URI_REGEXP||Bt,ur=t.NAMESPACE||ir,cr=t.MATHML_TEXT_INTEGRATION_POINTS||cr,hr=t.HTML_INTEGRATION_POINTS||hr,V=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&br(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(V.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&br(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(V.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(V.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),K&&(Y=!1),lt&&(it=!0),Nt&&(P=Ct({},zt),F=[],!0===Nt.html&&(Ct(P,$t),Ct(F,Rt)),!0===Nt.svg&&(Ct(P,At),Ct(F,Ot),Ct(F,Dt)),!0===Nt.svgFilters&&(Ct(P,Lt),Ct(F,Ot),Ct(F,Dt)),!0===Nt.mathMl&&(Ct(P,It),Ct(F,Zt),Ct(F,Dt))),t.ADD_TAGS&&("function"==typeof t.ADD_TAGS?Q.tagCheck=t.ADD_TAGS:(P===N&&(P=qt(P)),Ct(P,t.ADD_TAGS,vr))),t.ADD_ATTR&&("function"==typeof t.ADD_ATTR?Q.attributeCheck=t.ADD_ATTR:(F===H&&(F=qt(F)),Ct(F,t.ADD_ATTR,vr))),t.ADD_URI_SAFE_ATTR&&Ct(Qt,t.ADD_URI_SAFE_ATTR,vr),t.FORBID_CONTENTS&&(Ft===Ht&&(Ft=qt(Ft)),Ct(Ft,t.FORBID_CONTENTS,vr)),t.ADD_FORBID_CONTENTS&&(Ft===Ht&&(Ft=qt(Ft)),Ct(Ft,t.ADD_FORBID_CONTENTS,vr)),St&&(P["#text"]=!0),rt&&Ct(P,["html","head","body"]),P.table&&(Ct(P,["tbody"]),delete B.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw kt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw kt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');n=t.TRUSTED_TYPES_POLICY,k=n.createHTML("")}else void 0===n&&(n=function(t,r){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;var e=null,n="data-tt-policy-suffix";r&&r.hasAttribute(n)&&(e=r.getAttribute(n));var o="dompurify"+(e?"#"+e:"");try{return t.createPolicy(o,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(v,u)),null!==n&&"string"==typeof k&&(k=n.createHTML(""));ot&&ot(t),mr=t}},_r=Ct({},[...At,...Lt,...Et]),wr=Ct({},[...It,...jt]),xr=function(t){ft(e.removed,{element:t});try{w(t).removeChild(t)}catch(r){b(t)}},kr=function(t,r){try{ft(e.removed,{attribute:r.getAttributeNode(t),from:r})}catch(t){ft(e.removed,{attribute:null,from:r})}if(r.removeAttribute(t),"is"===t)if(it||lt)try{xr(r)}catch(t){}else try{r.setAttribute(t,"")}catch(t){}},Tr=function(t){var r=null,e=null;if(nt)t="<remove></remove>"+t;else{var i=gt(t,/^[\r\n\t ]+/);e=i&&i[0]}"application/xhtml+xml"===fr&&ur===ir&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");var u=n?n.createHTML(t):t;if(ur===ir)try{r=(new p).parseFromString(u,fr)}catch(t){}if(!r||!r.documentElement){r=T.createDocument(ur,"template",null);try{r.documentElement.innerHTML=lr?k:u}catch(t){}}var l=r.body||r.documentElement;return t&&e&&l.insertBefore(o.createTextNode(e),l.childNodes[0]||null),ur===ir?q.call(r,rt?"html":"body")[0]:rt?r.documentElement:l},Cr=function(t){return C.call(t.ownerDocument||t,t,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},Sr=function(t){return t instanceof f&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof d)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)},qr=function(t){return"function"==typeof s&&t instanceof s};function Mr(t,r,n){ct(t,(t=>{t.call(e,r,n,mr)}))}var $r=function(t){var r=null;if(Mr(A.beforeSanitizeElements,t,null),Sr(t))return xr(t),!0;var n=vr(t.nodeName);if(Mr(A.uponSanitizeElement,t,{tagName:n,allowedTags:P}),tt&&t.hasChildNodes()&&!qr(t.firstElementChild)&&xt(/<[/\w!]/g,t.innerHTML)&&xt(/<[/\w!]/g,t.textContent))return xr(t),!0;if(t.nodeType===Jt)return xr(t),!0;if(tt&&t.nodeType===tr&&xt(/<[/\w]/g,t.data))return xr(t),!0;if(!(Q.tagCheck instanceof Function&&Q.tagCheck(n))&&(!P[n]||B[n])){if(!B[n]&&Lr(n)){if(V.tagNameCheck instanceof RegExp&&xt(V.tagNameCheck,n))return!1;if(V.tagNameCheck instanceof Function&&V.tagNameCheck(n))return!1}if(St&&!Ft[n]){var o=w(t)||t.parentNode,i=_(t)||t.childNodes;if(i&&o)for(var u=i.length-1;u>=0;--u){var l=g(i[u],!0);l.__removalCount=(t.__removalCount||0)+1,o.insertBefore(l,y(t))}}return xr(t),!0}return t instanceof c&&!function(t){var r=w(t);r&&r.tagName||(r={namespaceURI:ur,tagName:"template"});var e=vt(t.tagName),n=vt(r.tagName);return!!ar[t.namespaceURI]&&(t.namespaceURI===or?r.namespaceURI===ir?"svg"===e:r.namespaceURI===nr?"svg"===e&&("annotation-xml"===n||cr[n]):Boolean(_r[e]):t.namespaceURI===nr?r.namespaceURI===ir?"math"===e:r.namespaceURI===or?"math"===e&&hr[n]:Boolean(wr[e]):t.namespaceURI===ir?!(r.namespaceURI===or&&!hr[n])&&!(r.namespaceURI===nr&&!cr[n])&&!wr[e]&&(dr[e]||!_r[e]):!("application/xhtml+xml"!==fr||!ar[t.namespaceURI]))}(t)?(xr(t),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!xt(/<\/no(script|embed|frames)/i,t.innerHTML)?(K&&t.nodeType===Kt&&(r=t.textContent,ct([L,E,I],(t=>{r=bt(r,t," ")})),t.textContent!==r&&(ft(e.removed,{element:t.cloneNode()}),t.textContent=r)),Mr(A.afterSanitizeElements,t,null),!1):(xr(t),!0)},Ar=function(t,r,e){if(st&&("id"===r||"name"===r)&&(e in o||e in gr))return!1;if(Y&&!U[r]&&xt(j,r));else if(W&&xt(z,r));else if(Q.attributeCheck instanceof Function&&Q.attributeCheck(r,t));else if(!F[r]||U[r]){if(!(Lr(t)&&(V.tagNameCheck instanceof RegExp&&xt(V.tagNameCheck,t)||V.tagNameCheck instanceof Function&&V.tagNameCheck(t))&&(V.attributeNameCheck instanceof RegExp&&xt(V.attributeNameCheck,r)||V.attributeNameCheck instanceof Function&&V.attributeNameCheck(r,t))||"is"===r&&V.allowCustomizedBuiltInElements&&(V.tagNameCheck instanceof RegExp&&xt(V.tagNameCheck,e)||V.tagNameCheck instanceof Function&&V.tagNameCheck(e))))return!1}else if(Qt[r]);else if(xt(D,bt(e,O,"")));else if("src"!==r&&"xlink:href"!==r&&"href"!==r||"script"===t||0!==yt(e,"data:")||!Vt[t]){if(X&&!xt(R,bt(e,O,"")));else if(e)return!1}else;return!0},Lr=function(t){return"annotation-xml"!==t&>(t,Z)},Er=function(t){Mr(A.beforeSanitizeAttributes,t,null);var{attributes:r}=t;if(r&&!Sr(t)){for(var o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:F,forceKeepAttr:void 0},i=r.length,u=function(){var u=r[i],{name:l,namespaceURI:a,value:s}=u,c=vr(l),h=s,d="value"===l?h:_t(h);if(o.attrName=c,o.attrValue=d,o.keepAttr=!0,o.forceKeepAttr=void 0,Mr(A.uponSanitizeAttribute,t,o),d=o.attrValue,!Tt||"id"!==c&&"name"!==c||(kr(l,t),d="user-content-"+d),tt&&xt(/((--!?|])>)|<\/(style|title|textarea)/i,d))return kr(l,t),0;if("attributename"===c&>(d,"href"))return kr(l,t),0;if(o.forceKeepAttr)return 0;if(!o.keepAttr)return kr(l,t),0;if(!G&&xt(/\/>/i,d))return kr(l,t),0;K&&ct([L,E,I],(t=>{d=bt(d,t," ")}));var f=vr(t.nodeName);if(!Ar(f,c,d))return kr(l,t),0;if(n&&"object"==typeof v&&"function"==typeof v.getAttributeType)if(a);else switch(v.getAttributeType(f,c)){case"TrustedHTML":d=n.createHTML(d);break;case"TrustedScriptURL":d=n.createScriptURL(d)}if(d!==h)try{a?t.setAttributeNS(a,l,d):t.setAttribute(l,d),Sr(t)?xr(t):dt(e.removed)}catch(r){kr(l,t)}};i--;)u();Mr(A.afterSanitizeAttributes,t,null)}},Ir=function t(r){var e=null,n=Cr(r);for(Mr(A.beforeSanitizeShadowDOM,r,null);e=n.nextNode();)Mr(A.uponSanitizeShadowNode,e,null),$r(e),Er(e),e.content instanceof l&&t(e.content);Mr(A.afterSanitizeShadowDOM,r,null)};return e.sanitize=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=null,u=null,a=null,c=null;if((lr=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!qr(t)){if("function"!=typeof t.toString)throw kt("toString is not a function");if("string"!=typeof(t=t.toString()))throw kt("dirty is not a string, aborting")}if(!e.isSupported)return t;if(et||yr(r),e.removed=[],"string"==typeof t&&(Pt=!1),Pt){if(t.nodeName){var h=vr(t.nodeName);if(!P[h]||B[h])throw kt("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof s)(u=(o=Tr("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType===Gt&&"BODY"===u.nodeName||"HTML"===u.nodeName?o=u:o.appendChild(u);else{if(!it&&!K&&!rt&&-1===t.indexOf("<"))return n&&at?n.createHTML(t):t;if(!(o=Tr(t)))return it?null:at?k:""}o&&nt&&xr(o.firstChild);for(var d=Cr(Pt?t:o);a=d.nextNode();)$r(a),Er(a),a.content instanceof l&&Ir(a.content);if(Pt)return t;if(it){if(lt)for(c=S.call(o.ownerDocument);o.firstChild;)c.appendChild(o.firstChild);else c=o;return(F.shadowroot||F.shadowrootmode)&&(c=M.call(i,c,!0)),c}var f=rt?o.outerHTML:o.innerHTML;return rt&&P["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&xt(Wt,o.ownerDocument.doctype.name)&&(f="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+f),K&&ct([L,E,I],(t=>{f=bt(f,t," ")})),n&&at?n.createHTML(f):f},e.setConfig=function(){yr(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),et=!0},e.clearConfig=function(){mr=null,et=!1},e.isValidAttribute=function(t,r,e){mr||yr({});var n=vr(t),o=vr(r);return Ar(n,o,e)},e.addHook=function(t,r){"function"==typeof r&&ft(A[t],r)},e.removeHook=function(t,r){if(void 0!==r){var e=ht(A[t],r);return-1===e?void 0:pt(A[t],e,1)[0]}return dt(A[t])},e.removeHooks=function(t){A[t]=[]},e.removeAllHooks=function(){A={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},e}(),or={backgroundColor:"#ffffff",textColor:"#1d1f27",buttonColor:"#1d1f27",borderRadius:8,buttonBorderRadius:6,borderColor:"#e5e7eb",fontFamily:"system-ui",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.15)",showOverlay:!0,whiteLabel:!1,dismissOnClickOutside:!0,zIndex:2147483646};function ir(t,r,e){return void 0===r&&(r=document),void 0===e&&(e=null),function(t,r,e,n){void 0===n&&(n=null);return t=function(t){function r(){n&&(u.length>0&&/^[~+>]$/.test(u[u.length-1])&&u.push(" "),u.push(n))}var e,n,o,i,u=[],l=[0],a=0,s=/(?:[^\\]|(?:^|[^\\])(?:\\\\)+)$/,c=/^\s+$/,h=[/\s+|\/\*|["'>~+[(]/g,/\s+|\/\*|["'[\]()]/g,/\s+|\/\*|["'[\]()]/g,null,/\*\//g];for(t=t.trim();;){if(n="",(o=h[l[l.length-1]]).lastIndex=a,!(e=o.exec(t))){n=t.substr(a),r();break}if((i=a)<(a=o.lastIndex)-e[0].length&&(n=t.substring(i,a-e[0].length)),l[l.length-1]<3){if(r(),"["===e[0])l.push(1);else if("("===e[0])l.push(2);else if(/^["']$/.test(e[0]))l.push(3),h[3]=new RegExp(e[0],"g");else if("/*"===e[0])l.push(4);else if(/^[\])]$/.test(e[0])&&l.length>0)l.pop();else if(/^(?:\s+|[~+>])$/.test(e[0])&&(u.length>0&&!c.test(u[u.length-1])&&0===l[l.length-1]&&u.push(" "),1===l[l.length-1]&&5===u.length&&"="===u[2].charAt(u[2].length-1)&&(u[4]=" "+u[4]),c.test(e[0])))continue;u.push(e[0])}else u[u.length-1]+=n,s.test(u[u.length-1])&&(4===l[l.length-1]&&(u.length<2||c.test(u[u.length-2])?u.pop():u[u.length-1]=" ",e[0]=""),l.pop()),u[u.length-1]+=e[0]}return u.join("").trim()}(t),e.querySelector(t),document.head.createShadowRoot||document.head.attachShadow?ur(t,",").reduce(((t,r)=>{var o=ur(r.replace(/^\s+/g,"").replace(/\s*([>+~]+)\s*/g,"$1")," ").filter((t=>!!t)).map((t=>ur(t,">"))),i=o.length-1,u=function(t,r,e){void 0===t&&(t=null);void 0===e&&(e=null);var n=[];if(e)n=e;else{var o=function(t){for(var r=0;r<t.length;r++){var e=t[r];n.push(e),e.shadowRoot&&o(e.shadowRoot.querySelectorAll("*"))}};r.shadowRoot&&o(r.shadowRoot.querySelectorAll("*")),o(r.querySelectorAll("*"))}return t?n.filter((r=>r.matches(t))):n}(o[i][o[i].length-1],e,n),l=function(t,r,e){return n=>{for(var o=r,i=n,u=!1;i&&!lr(i);){var l=!0;if(1===t[o].length)l=i.matches(t[o]);else{var a=[].concat(t[o]).reverse(),s=i;for(var c of a){if(!s||!s.matches(c)){l=!1;break}s=ar(s,e)}}if(l&&0===o){u=!0;break}l&&o--,i=ar(i,e)}return u}}(o,i,e);return t=t.concat(u.filter(l))}),[]):e.querySelectorAll(t)}(t,0,r,e)}function ur(t,r){return t.match(/\\?.|^$/g).reduce(((t,e)=>('"'!==e||t.sQuote?"'"!==e||t.quote?t.quote||t.sQuote||e!==r?t.a[t.a.length-1]+=e:t.a.push(""):(t.sQuote^=1,t.a[t.a.length-1]+=e):(t.quote^=1,t.a[t.a.length-1]+=e),t)),{a:[""]}).a}function lr(t){return t.nodeType===Node.DOCUMENT_FRAGMENT_NODE||t.nodeType===Node.DOCUMENT_NODE}function ar(t,r){var e=t.parentNode;return e&&e.host&&11===e.nodeType?e.host:e===r?null:e}var sr=function(t){return t.TopLeft="top_left",t.TopCenter="top_center",t.TopRight="top_right",t.MiddleLeft="middle_left",t.MiddleCenter="middle_center",t.MiddleRight="middle_right",t.Left="left",t.Right="right",t.Center="center",t}({}),cr=function(t){return t.Regex="regex",t.NotRegex="not_regex",t.Exact="exact",t.IsNot="is_not",t.Icontains="icontains",t.NotIcontains="not_icontains",t}({}),hr=Array.isArray,dr=Object.prototype.toString,fr=hr||function(t){return"[object Array]"===dr.call(t)},pr=t=>void 0===t,vr=t=>null===t,mr=t=>pr(t)||vr(t);var gr=(t,r,e)=>{function n(n){for(var o=arguments.length,i=new Array(o>1?o-1:0),u=1;u<o;u++)i[u-1]=arguments[u];r((()=>{(0,e[n])(t,...i)}))}var o={info:function(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];n("log",...r)},warn:function(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];n("warn",...r)},error:function(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];n("error",...r)},critical:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];e.error(t,...n)},createLogger:n=>gr(t+" "+n,r,e)};return o};var br,yr,_r=r,wr=(void 0===br&&(br=t=>t()),gr("[Element Inference]",br,(void 0===yr&&(yr=console),{log:yr.log.bind(yr),warn:yr.warn.bind(yr),error:yr.error.bind(yr),debug:yr.debug.bind(yr)})));function xr(t,r){try{var e=r.get(t);if(!pr(e))return e;if(t.checkVisibility){var n=t.checkVisibility({checkOpacity:!0,checkVisibilityCSS:!0});return r.set(t,n),n}var o=_r.getComputedStyle(t);if("none"===o.display||"hidden"===o.visibility||0===parseFloat(o.opacity))return r.set(t,!1),!1;for(var i=t.parentElement;i;){var u=r.get(i);if(pr(u)){var l=_r.getComputedStyle(i),a="none"!==l.display&&"hidden"!==l.visibility;if(r.set(i,a),!a)return!1;i=i.parentElement}else{if(!u)return!1;i=i.parentElement}}var s=t.getBoundingClientRect(),c=s.width>0||s.height>0||t.getClientRects().length>0;return r.set(t,c),c}catch(t){return!0}}function kr(t,r){var e=function(t){var r,e=null==(r=t.innerText)?void 0:r.trim();return!e||e.length>250?null:e}(t);return(null==e?void 0:e.toLowerCase())===r.toLowerCase()}function*Tr(t,r,e){var n;try{n=ir(t)}catch(t){return}for(var o of n){var i=o;r&&!kr(i,r)||xr(i,e)&&(yield i)}}function Cr(t,r){var e=0;for(var n of t){if(e===r)return n;e++}return null}function Sr(t){try{var r=JSON.parse(t.autoData);if(!fr(null==r?void 0:r.textGroups)||!fr(null==r?void 0:r.notextGroups))return wr.error("Invalid autoData structure:",r),null;var{text:e,excludeText:n,precision:o=1}=t,i=null!=e&&!n,u=(i?r.textGroups:r.notextGroups).sort(((t,r)=>t.cardinality-r.cardinality));if(0===u.length)return null;for(var l=Math.max(1,Math.ceil((1-o)*u.length)),a=new WeakMap,s=0;s<l;s++){var c=u[s],h=new Map,d=null,f=0;for(var{css:p,offset:v}of c.cssSelectors){var m,g=Cr(Tr(p,i?e:null,a),v);if(g){var b=(null!==(m=h.get(g))&&void 0!==m?m:0)+1;if(h.set(g,b),b>f&&(f=b,d=g,b>=Math.ceil(c.cssSelectors.length/2)))return d}}if(d)return d}return null}catch(t){return wr.error("Error finding element:",t),null}}var qr=function(t,e){var{debugEnabled:n}=void 0===e?{}:e,o={o:function(e){if(r&&(i.POSTHOG_DEBUG||n)&&!pr(r.console)&&r.console){for(var o=("__rrweb_original__"in r.console[e]?r.console[e].__rrweb_original__:r.console[e]),u=arguments.length,l=new Array(u>1?u-1:0),a=1;a<u;a++)l[a-1]=arguments[a];o(t,...l)}},info:function(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];o.o("log",...r)},warn:function(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];o.o("warn",...r)},error:function(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];o.o("error",...r)},critical:function(){for(var r=arguments.length,e=new Array(r),n=0;n<r;n++)e[n]=arguments[n];console.error(t,...e)},uninitializedWarning:t=>{o.error("You must initialize PostHog before calling "+t)},createLogger:(r,e)=>qr(t+" "+r,e)};return o},Mr=qr("[PostHog.js]"),$r=Mr.createLogger,Ar=$r("[Stylesheet Loader]"),Lr=(t,r,e)=>{var n=t.createElement("style");return n.innerText=r,n||(Ar.error("prepare_external_dependency_stylesheet returned null"),null)};function Er(t,r,e,n){var{capture:o=!1,passive:i=!0}=null!=n?n:{};null==t||t.addEventListener(r,e,{capture:o,passive:i})}$r("[Surveys]"),null!=n&&n.sendBeacon;var Ir=function(t,r){if(!function(t){try{new RegExp(t)}catch(t){return!1}return!0}(r))return!1;try{return new RegExp(r).test(t)}catch(t){return!1}},jr={exact:(t,r)=>r.some((r=>t.some((t=>r===t)))),is_not:(t,r)=>r.every((r=>t.every((t=>r!==t)))),regex:(t,r)=>r.some((r=>t.some((t=>Ir(r,t))))),not_regex:(t,r)=>r.every((r=>t.every((t=>!Ir(r,t))))),icontains:(t,r)=>r.map(zr).some((r=>t.map(zr).some((t=>r.includes(t))))),not_icontains:(t,r)=>r.map(zr).every((r=>t.map(zr).every((t=>!r.includes(t))))),gt:(t,r)=>r.some((r=>{var e=parseFloat(r);return!isNaN(e)&&t.some((t=>e>parseFloat(t)))})),lt:(t,r)=>r.some((r=>{var e=parseFloat(r);return!isNaN(e)&&t.some((t=>e<parseFloat(t)))}))},zr=t=>t.toLowerCase();function Rr(t,r){return!t||Object.entries(t).every((t=>{var[e,n]=t,o=null==r?void 0:r[e];if(pr(o)||vr(o))return!1;var i=[String(o)],u=jr[n.operator];return!!u&&u(n.values,i)}))}var Or,Zr,Dr,Pr,Nr=0,Fr=[],Hr=a,Vr=Hr.__b,Br=Hr.__r,Ur=Hr.diffed,Qr=Hr.__c,Wr=Hr.unmount,Yr=Hr.__;function Xr(t,r){Hr.__h&&Hr.__h(Zr,t,Nr||r),Nr=0;var e=Zr.__H||(Zr.__H={__:[],__h:[]});return t>=e.__.length&&e.__.push({}),e.__[t]}function Gr(t){return Nr=1,function(t,r,e){var n=Xr(Or++,2);if(n.t=t,!n.__c&&(n.__=[ae(void 0,r),function(t){var r=n.__N?n.__N[0]:n.__[0],e=n.t(r,t);r!==e&&(n.__N=[e,n.__[1]],n.__c.setState({}))}],n.__c=Zr,!Zr.__f)){var o=function(t,r,e){if(!n.__c.__H)return!0;var o=n.__c.__H.__.filter((function(t){return!!t.__c}));if(o.every((function(t){return!t.__N})))return!i||i.call(this,t,r,e);var u=n.__c.props!==t;return o.forEach((function(t){if(t.__N){var r=t.__[0];t.__=t.__N,t.__N=void 0,r!==t.__[0]&&(u=!0)}})),i&&i.call(this,t,r,e)||u};Zr.__f=!0;var i=Zr.shouldComponentUpdate,u=Zr.componentWillUpdate;Zr.componentWillUpdate=function(t,r,e){if(this.__e){var n=i;i=void 0,o(t,r,e),i=n}u&&u.call(this,t,r,e)},Zr.shouldComponentUpdate=o}return n.__N||n.__}(ae,t)}function Kr(t,r){var e=Xr(Or++,3);!Hr.__s&&le(e.__H,r)&&(e.__=t,e.u=r,Zr.__H.__h.push(e))}function Jr(t,r){var e=Xr(Or++,4);!Hr.__s&&le(e.__H,r)&&(e.__=t,e.u=r,Zr.__h.push(e))}function te(t){return Nr=5,re((function(){return{current:t}}),[])}function re(t,r){var e=Xr(Or++,7);return le(e.__H,r)&&(e.__=t(),e.__H=r,e.__h=t),e.__}function ee(){for(var t;t=Fr.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(ie),t.__H.__h.forEach(ue),t.__H.__h=[]}catch(r){t.__H.__h=[],Hr.__e(r,t.__v)}}Hr.__b=function(t){Zr=null,Vr&&Vr(t)},Hr.__=function(t,r){t&&r.__k&&r.__k.__m&&(t.__m=r.__k.__m),Yr&&Yr(t,r)},Hr.__r=function(t){Br&&Br(t),Or=0;var r=(Zr=t.__c).__H;r&&(Dr===Zr?(r.__h=[],Zr.__h=[],r.__.forEach((function(t){t.__N&&(t.__=t.__N),t.u=t.__N=void 0}))):(r.__h.forEach(ie),r.__h.forEach(ue),r.__h=[],Or=0)),Dr=Zr},Hr.diffed=function(t){Ur&&Ur(t);var r=t.__c;r&&r.__H&&(r.__H.__h.length&&(1!==Fr.push(r)&&Pr===Hr.requestAnimationFrame||((Pr=Hr.requestAnimationFrame)||oe)(ee)),r.__H.__.forEach((function(t){t.u&&(t.__H=t.u),t.u=void 0}))),Dr=Zr=null},Hr.__c=function(t,r){r.some((function(t){try{t.__h.forEach(ie),t.__h=t.__h.filter((function(t){return!t.__||ue(t)}))}catch(e){r.some((function(t){t.__h&&(t.__h=[])})),r=[],Hr.__e(e,t.__v)}})),Qr&&Qr(t,r)},Hr.unmount=function(t){Wr&&Wr(t);var r,e=t.__c;e&&e.__H&&(e.__H.__.forEach((function(t){try{ie(t)}catch(t){r=t}})),e.__H=void 0,r&&Hr.__e(r,e.__v))};var ne="function"==typeof requestAnimationFrame;function oe(t){var r,e=function(){clearTimeout(n),ne&&cancelAnimationFrame(r),setTimeout(t)},n=setTimeout(e,35);ne&&(r=requestAnimationFrame(e))}function ie(t){var r=Zr,e=t.__c;"function"==typeof e&&(t.__c=void 0,e()),Zr=r}function ue(t){var r=Zr;t.__c=t.__(),Zr=r}function le(t,r){return!t||t.length!==r.length||r.some((function(r,e){return r!==t[e]}))}function ae(t,r){return"function"==typeof r?r(t):r}var se="#020617",ce={backgroundColor:"#eeeded",position:Y.Right};function he(t){if(t.startsWith("#")){var r=t.replace(/^#/,"");return/^[0-9A-Fa-f]{3}$/.test(r)&&(r=r[0]+r[0]+r[1]+r[1]+r[2]+r[2]),/^[0-9A-Fa-f]{6}$/.test(r)?"rgb("+parseInt(r.slice(0,2),16)+","+parseInt(r.slice(2,4),16)+","+parseInt(r.slice(4,6),16)+")":"rgb(255, 255, 255)"}return"rgb(255, 255, 255)"}function de(t){var r;void 0===t&&(t=ce.backgroundColor),"#"===t[0]&&(r=he(t)),t.startsWith("rgb")&&(r=t);var e={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4","indianred ":"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}[t.toLowerCase()];if(e&&(r=he(e)),!r)return se;var n=r.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/);if(n){var o=parseInt(n[1]),i=parseInt(n[2]),u=parseInt(n[3]);return Math.sqrt(o*o*.299+i*i*.587+u*u*.114)>127.5?se:"white"}return se}!function(t){function r(t){var e,n;return this.getChildContext||(e=new Set,(n={})[r.__c]=this,this.getChildContext=function(){return n},this.componentWillUnmount=function(){e=null},this.shouldComponentUpdate=function(t){this.props.value!=t.value&&e.forEach((function(t){t.__e=!0,L(t)}))},this.sub=function(t){e.add(t);var r=t.componentWillUnmount;t.componentWillUnmount=function(){e&&e.delete(t),r&&r.call(t)}}),t.children}r.__c="__cC"+b++,r.__=t,r.Provider=r.__l=(r.Consumer=function(t,r){return t.children(r)}).contextType=r}({isPreviewMode:!1,previewPageIndex:0,onPopupSurveyDismissed:()=>{},isPopup:!0,onPreviewSubmit:()=>{},surveySubmissionId:"",properties:void 0});var fe=':host{--ph-tour-font-family:-apple-system,BlinkMacSystemFont,"Inter","Segoe UI","Roboto",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--ph-tour-background-color:#fff;--ph-tour-text-color:#1d1f27;--ph-tour-text-secondary-color:#6b7280;--ph-tour-button-color:#1d1f27;--ph-tour-button-text-color:#fff;--ph-tour-button-secondary-color:transparent;--ph-tour-button-secondary-text-color:#1d1f27;--ph-tour-border-color:#e5e7eb;--ph-tour-border-radius:8px;--ph-tour-button-border-radius:6px;--ph-tour-box-shadow:0 4px 12px rgba(0,0,0,.15);--ph-tour-max-width:320px;--ph-tour-padding:16px;--ph-tour-z-index:2147483646;--ph-tour-overlay-color:rgba(0,0,0,.5);--ph-tour-spotlight-padding:8px;--ph-tour-spotlight-border-radius:4px;--ph-tour-arrow-size:8px}.ph-tour-container *{box-sizing:border-box;font-family:var(--ph-tour-font-family);margin:0;padding:0}.ph-tour-click-overlay{bottom:0;left:0;pointer-events:auto;position:fixed;right:0;top:0;z-index:var(--ph-tour-z-index)}.ph-tour-spotlight{border-radius:var(--ph-tour-spotlight-border-radius);box-shadow:0 0 0 9999px var(--ph-tour-overlay-color)}.ph-tour-modal-overlay,.ph-tour-spotlight{pointer-events:none;position:fixed;z-index:var(--ph-tour-z-index)}.ph-tour-modal-overlay{background:var(--ph-tour-overlay-color);bottom:0;left:0;right:0;top:0}.ph-tour-tooltip{background:var(--ph-tour-background-color);border:1px solid var(--ph-tour-border-color);border-radius:var(--ph-tour-border-radius);max-width:min(var(--ph-tour-max-width),calc(100vw - 16px));min-width:min(280px,calc(100vw - 16px));padding:var(--ph-tour-padding);padding-top:calc(var(--ph-tour-padding) + 8px);pointer-events:auto;position:fixed;z-index:calc(var(--ph-tour-z-index) + 1)}.ph-tour-tooltip,.ph-tour-tooltip--modal{box-shadow:var(--ph-tour-box-shadow)}.ph-tour-arrow{--ph-tour-arrow-offset:0px;border:var(--ph-tour-arrow-size) solid transparent;height:0;position:absolute;width:0}.ph-tour-arrow--top{border-bottom-color:var(--ph-tour-background-color);bottom:100%}.ph-tour-arrow--bottom,.ph-tour-arrow--top{left:calc(50% + var(--ph-tour-arrow-offset));transform:translateX(-50%)}.ph-tour-arrow--bottom{border-top-color:var(--ph-tour-background-color);top:100%}.ph-tour-arrow--left{border-right-color:var(--ph-tour-background-color);right:100%}.ph-tour-arrow--left,.ph-tour-arrow--right{top:calc(50% + var(--ph-tour-arrow-offset));transform:translateY(-50%)}.ph-tour-arrow--right{border-left-color:var(--ph-tour-background-color);left:100%}.ph-tour-content{color:var(--ph-tour-text-color);font-size:14px;line-height:1.5;margin-bottom:16px;padding-right:24px}.ph-tour-content h1,.ph-tour-content h2{font-weight:600;margin-bottom:8px}.ph-tour-content h1{font-size:18px}.ph-tour-content h2{font-size:16px}.ph-tour-content p{margin-bottom:8px}.ph-tour-content p:last-child{margin-bottom:0}.ph-tour-content strong{font-weight:600}.ph-tour-content em{font-style:italic}.ph-tour-content ol,.ph-tour-content ul{margin-bottom:8px;margin-left:20px}.ph-tour-content h3{font-size:14px;font-weight:600;margin-bottom:8px}.ph-tour-content .ph-tour-link,.ph-tour-content a{color:inherit;text-decoration:underline}.ph-tour-content a:hover{opacity:.8}.ph-tour-content code{background:rgba(0,0,0,.06);border-radius:4px;font-size:.875em;padding:2px 6px}.ph-tour-content code,.ph-tour-content pre{font-family:SF Mono,Monaco,Consolas,monospace}.ph-tour-content pre{background:rgba(0,0,0,.04);border-radius:6px;font-size:13px;line-height:1.5;margin-bottom:8px;overflow-x:auto;padding:12px}.ph-tour-content pre code{background:transparent;border-radius:0;font-size:inherit;padding:0}.ph-tour-content code *,.ph-tour-content pre *{font-family:inherit}.ph-tour-content .hljs-comment,.ph-tour-content .hljs-quote{color:#6a737d;font-style:italic}.ph-tour-content .hljs-keyword,.ph-tour-content .hljs-selector-tag{color:#d73a49}.ph-tour-content .hljs-doctag,.ph-tour-content .hljs-regexp,.ph-tour-content .hljs-string{color:#032f62}.ph-tour-content .hljs-literal,.ph-tour-content .hljs-number,.ph-tour-content .hljs-template-variable,.ph-tour-content .hljs-variable{color:#005cc5}.ph-tour-content .hljs-section,.ph-tour-content .hljs-selector-class,.ph-tour-content .hljs-selector-id,.ph-tour-content .hljs-title,.ph-tour-content .hljs-title.function_{color:#6f42c1}.ph-tour-content .hljs-addition,.ph-tour-content .hljs-attr,.ph-tour-content .hljs-attribute,.ph-tour-content .hljs-built_in,.ph-tour-content .hljs-bullet,.ph-tour-content .hljs-name,.ph-tour-content .hljs-symbol{color:#22863a}.ph-tour-content .hljs-deletion,.ph-tour-content .hljs-subst{color:#b31d28}.ph-tour-content .hljs-meta{color:#032f62}.ph-tour-content .hljs-emphasis{font-style:italic}.ph-tour-content .hljs-strong{font-weight:700}.ph-tour-content .ph-tour-image,.ph-tour-content img{border-radius:6px;display:block;height:auto;margin:8px 0;max-width:100%}.ph-tour-content .ph-tour-embed{margin:8px 0}.ph-tour-content .ph-tour-embed-container{background:#000;border-radius:6px;overflow:hidden;padding-bottom:56.25%;position:relative;width:100%}.ph-tour-content .ph-tour-embed-container iframe{border:none;height:100%;left:0;position:absolute;top:0;width:100%}.ph-tour-content blockquote{border-left:3px solid var(--ph-tour-border-color);color:var(--ph-tour-text-secondary-color);font-style:italic;margin:8px 0;padding-left:12px}.ph-tour-footer{align-items:center;display:flex;gap:12px;justify-content:space-between}.ph-tour-progress{color:var(--ph-tour-text-secondary-color);font-size:12px}.ph-tour-buttons{display:flex;gap:8px;margin-left:auto}.ph-tour-button{align-items:center;border:none;border-radius:var(--ph-tour-button-border-radius);cursor:pointer;display:inline-flex;font-size:14px;font-weight:500;justify-content:center;padding:8px 16px;transition:opacity .15s ease,transform .1s ease}.ph-tour-button:hover{opacity:.9}.ph-tour-button:active{transform:scale(.98)}.ph-tour-button--primary{background:var(--ph-tour-button-color);color:var(--ph-tour-button-text-color)}.ph-tour-button--secondary{background:var(--ph-tour-button-secondary-color);border:1px solid var(--ph-tour-border-color);color:var(--ph-tour-button-secondary-text-color)}.ph-tour-dismiss{align-items:center;background:transparent;border:none;border-radius:4px;color:var(--ph-tour-text-secondary-color);cursor:pointer;display:flex;font-size:18px;height:24px;justify-content:center;line-height:1;position:absolute;right:8px;top:8px;transition:background .15s ease,color .15s ease;width:24px}.ph-tour-dismiss:hover{background:rgba(0,0,0,.08);color:var(--ph-tour-text-color)}.ph-tour-branding{align-items:center;border-top:1px solid var(--ph-tour-border-color);color:var(--ph-tour-branding-text-color,var(--ph-tour-text-secondary-color));display:flex;font-size:11px;gap:6px;justify-content:center;margin-top:12px;padding-top:12px;text-decoration:none}.ph-tour-branding:hover{color:var(--ph-tour-branding-text-color,var(--ph-tour-text-color))}.ph-tour-branding svg{height:14px;width:auto}.ph-tour-hidden{display:none!important}.ph-tour-survey-step{min-width:min(300px,calc(100vw - 16px))}.ph-tour-survey-question{color:var(--ph-tour-text-color);font-size:15px;font-weight:500;line-height:1.4;margin-bottom:16px;padding-right:24px}.ph-tour-survey-input-container{display:flex;flex-direction:column;gap:12px}.ph-tour-survey-textarea{background:#fff;border:1px solid var(--ph-tour-border-color);border-radius:6px;box-sizing:border-box;color:var(--ph-tour-text-color);font-family:var(--ph-tour-font-family);font-size:14px;min-height:80px;padding:10px 12px;resize:vertical;width:100%}.ph-tour-survey-textarea:focus{border-color:var(--ph-tour-button-color);box-shadow:0 0 0 2px rgba(0,0,0,.05);outline:none}.ph-tour-survey-textarea::placeholder{color:var(--ph-tour-text-secondary-color)}.ph-tour-survey-submit{align-self:flex-end}.ph-tour-survey-rating-container{display:flex;flex-direction:column;gap:8px;margin-bottom:8px}.ph-tour-survey-rating-labels{color:var(--ph-tour-text-secondary-color);display:flex;font-size:11px;justify-content:space-between}.ph-tour-survey-rating-emoji{display:flex;gap:8px;justify-content:center}.ph-tour-survey-emoji-button{align-items:center;background:var(--ph-tour-background-color);border:2px solid var(--ph-tour-border-color);border-radius:8px;cursor:pointer;display:flex;height:44px;justify-content:center;padding:0;transition:all .15s ease;width:44px}.ph-tour-survey-emoji-button:hover{background:rgba(0,0,0,.02);border-color:var(--ph-tour-button-color)}.ph-tour-survey-emoji-button--active{background:var(--ph-tour-button-color);border-color:var(--ph-tour-button-color)}.ph-tour-survey-emoji-button--active svg{fill:var(--ph-tour-button-text-color)}.ph-tour-survey-emoji-button svg{fill:var(--ph-tour-text-color);height:28px;transition:fill .15s ease;width:28px}.ph-tour-survey-rating-numbers{display:grid;gap:6px}.ph-tour-survey-number-button{align-items:center;background:var(--ph-tour-background-color);border:1px solid var(--ph-tour-border-color);border-radius:4px;color:var(--ph-tour-text-color);cursor:pointer;display:flex;font-family:var(--ph-tour-font-family);font-size:13px;font-weight:500;justify-content:center;padding:8px 4px;transition:all .15s ease}.ph-tour-survey-number-button:hover{background:rgba(0,0,0,.02);border-color:var(--ph-tour-button-color)}.ph-tour-survey-number-button--active{background:var(--ph-tour-button-color);border-color:var(--ph-tour-button-color);color:var(--ph-tour-button-text-color)}.ph-tour-banner{align-items:center;background:var(--ph-tour-background-color);border-bottom:1px solid var(--ph-tour-border-color);box-shadow:var(--ph-tour-box-shadow);display:flex;font-family:var(--ph-tour-font-family);gap:16px;justify-content:center;padding:12px 16px}a.ph-tour-banner{color:inherit;text-decoration:none}:host:has(.ph-tour-banner--sticky){position:sticky;top:0;z-index:var(--ph-tour-z-index)}.ph-tour-banner-content{color:var(--ph-tour-text-color);flex:1;font-size:14px;line-height:1.5;min-width:0;text-align:center}.ph-tour-banner-content p{margin:0}.ph-tour-banner-content strong{font-weight:600}.ph-tour-banner-content em{font-style:italic}.ph-tour-banner-content a{color:inherit;text-decoration:underline}.ph-tour-banner-dismiss{align-items:center;background:transparent;border:none;border-radius:4px;color:var(--ph-tour-text-secondary-color);cursor:pointer;display:flex;flex-shrink:0;height:24px;justify-content:center;transition:background .15s ease,color .15s ease;width:24px}.ph-tour-banner-dismiss:hover{background:rgba(0,0,0,.08);color:var(--ph-tour-text-color)}',pe=o,ve=r;function me(){var t=Lr(pe,fe);return null==t||t.setAttribute("data-ph-product-tour-style","true"),t}function ge(t){return t.useManualSelector?!!t.selector:!!t.inferenceData}function be(t){try{var r=pe.querySelectorAll(t);if(0===r.length)return{element:null,error:"not_found",matchCount:0};var e=r[0];return function(t){var r=ve.getComputedStyle(t);if("none"===r.display||"hidden"===r.visibility||"0"===r.opacity)return!1;var e=t.getBoundingClientRect();if(0===e.width||0===e.height)return!1;return!0}(e)?r.length>1?{element:e,error:"multiple_matches",matchCount:r.length}:{element:e,error:null,matchCount:1}:{element:null,error:"not_visible",matchCount:r.length}}catch(t){return{element:null,error:"not_found",matchCount:0}}}function ye(t){var r;if(null!==(r=t.useManualSelector)&&void 0!==r&&r)return t.selector?be(t.selector):{element:null,error:"not_found",matchCount:0};if(!t.inferenceData)return{element:null,error:"not_found",matchCount:0};var e=Sr(t.inferenceData);return e?{element:e,error:null,matchCount:1}:{element:null,error:"not_found",matchCount:0}}var _e=12,we=8;function xe(t,r,e){var n=we+r/2,o=e-we-r/2,i=Math.max(n,Math.min(o,t));return{clamped:i,offset:t-i}}function ke(t,r){var e,n,o,i=u({},or,r),l=t.style;l.setProperty("--ph-tour-background-color",i.backgroundColor),l.setProperty("--ph-tour-text-color",i.textColor),l.setProperty("--ph-tour-button-color",i.buttonColor),l.setProperty("--ph-tour-border-radius",i.borderRadius+"px"),l.setProperty("--ph-tour-button-border-radius",i.buttonBorderRadius+"px"),l.setProperty("--ph-tour-border-color",i.borderColor),l.setProperty("--ph-tour-font-family",function(t){if("inherit"===t)return"inherit";var r='BlinkMacSystemFont, "Inter", "Segoe UI", "Roboto", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"';return t?t+", "+r:"-apple-system, "+r}(i.fontFamily)),l.setProperty("--ph-tour-text-secondary-color",(e=i.textColor,n=.6,(o=he(e).match(/^rgb\((\d+),(\d+),(\d+)\)$/))?"rgba("+o[1]+", "+o[2]+", "+o[3]+", "+n+")":e)),l.setProperty("--ph-tour-branding-text-color",de(i.backgroundColor)),l.setProperty("--ph-tour-button-text-color",de(i.buttonColor)),l.setProperty("--ph-tour-box-shadow",i.boxShadow),l.setProperty("--ph-tour-overlay-color",i.showOverlay?"rgba(0, 0, 0, 0.5)":"transparent"),l.setProperty("--ph-tour-z-index",String(i.zIndex)),l.setProperty("--ph-tour-button-secondary-color","transparent"),l.setProperty("--ph-tour-button-secondary-text-color",i.textColor),l.setProperty("--ph-tour-max-width","320px"),l.setProperty("--ph-tour-padding","16px")}function Te(t){var r;if(!t)return"";if("string"==typeof t)return Se(t);if("text"===t.type){var e=Se(t.text||"");if(t.marks)for(var n of t.marks)switch(n.type){case"bold":e="<strong>"+e+"</strong>";break;case"italic":e="<em>"+e+"</em>";break;case"underline":e="<u>"+e+"</u>";break;case"strike":e="<s>"+e+"</s>"}return e}var o=(null==(r=t.content)?void 0:r.map(Te).join(""))||"";switch(t.type){case"doc":default:return o;case"paragraph":return"<p>"+o+"</p>";case"heading":var i,u=(null==(i=t.attrs)?void 0:i.level)||1;return"<h"+u+">"+o+"</h"+u+">";case"bulletList":return"<ul>"+o+"</ul>";case"orderedList":return"<ol>"+o+"</ol>";case"listItem":return"<li>"+o+"</li>";case"hardBreak":return"<br>"}}function Ce(t){return t.endsWith("/")?t.slice(0,-1):t}function Se(t){var r=pe.createElement("div");return r.textContent=t,r.innerHTML}function qe(t){var r=[];return t.content&&function t(e){var n,o;"image"===e.type&&null!=(n=e.attrs)&&n.src&&r.push(e.attrs.src),null==(o=e.content)||o.forEach(t)}(t.content),r}function Me(t){return t.contentHtml?nr.sanitize(t.contentHtml,{ADD_TAGS:["iframe"],ADD_ATTR:["allowfullscreen","frameborder","referrerpolicy"]}):Te(t.content)}var $e=0;function Ae(t,r,e,n,o,i){r||(r={});var u,l,s=r;if("ref"in s)for(l in s={},r)"ref"==l?u=r[l]:s[l]=r[l];var c={type:t,props:s,key:e,ref:u,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--$e,__i:-1,__u:0,__source:o,__self:i};if("function"==typeof t&&(u=t.defaultProps))for(l in u)void 0===s[l]&&(s[l]=u[l]);return a.vnode&&a.vnode(c),c}var Le=Ae("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Ae("path",{d:"M626-533q22.5 0 38.25-15.75T680-587q0-22.5-15.75-38.25T626-641q-22.5 0-38.25 15.75T572-587q0 22.5 15.75 38.25T626-533Zm-292 0q22.5 0 38.25-15.75T388-587q0-22.5-15.75-38.25T334-641q-22.5 0-38.25 15.75T280-587q0 22.5 15.75 38.25T334-533Zm146 272q66 0 121.5-35.5T682-393h-52q-23 40-63 61.5T480.5-310q-46.5 0-87-21T331-393h-53q26 61 81 96.5T480-261Zm0 181q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-400Zm0 340q142.375 0 241.188-98.812Q820-337.625 820-480t-98.812-241.188Q622.375-820 480-820t-241.188 98.812Q140-622.375 140-480t98.812 241.188Q337.625-140 480-140Z"})}),Ee=Ae("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Ae("path",{d:"M626-533q22.5 0 38.25-15.75T680-587q0-22.5-15.75-38.25T626-641q-22.5 0-38.25 15.75T572-587q0 22.5 15.75 38.25T626-533Zm-292 0q22.5 0 38.25-15.75T388-587q0-22.5-15.75-38.25T334-641q-22.5 0-38.25 15.75T280-587q0 22.5 15.75 38.25T334-533Zm20 194h253v-49H354v49ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-400Zm0 340q142.375 0 241.188-98.812Q820-337.625 820-480t-98.812-241.188Q622.375-820 480-820t-241.188 98.812Q140-622.375 140-480t98.812 241.188Q337.625-140 480-140Z"})}),Ie=Ae("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Ae("path",{d:"M626-533q22.5 0 38.25-15.75T680-587q0-22.5-15.75-38.25T626-641q-22.5 0-38.25 15.75T572-587q0 22.5 15.75 38.25T626-533Zm-292 0q22.5 0 38.25-15.75T388-587q0-22.5-15.75-38.25T334-641q-22.5 0-38.25 15.75T280-587q0 22.5 15.75 38.25T334-533Zm146.174 116Q413-417 358.5-379.5T278-280h53q22-42 62.173-65t87.5-23Q528-368 567.5-344.5T630-280h52q-25-63-79.826-100-54.826-37-122-37ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-400Zm0 340q142.375 0 241.188-98.812Q820-337.625 820-480t-98.812-241.188Q622.375-820 480-820t-241.188 98.812Q140-622.375 140-480t98.812 241.188Q337.625-140 480-140Z"})}),je=Ae("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Ae("path",{d:"M480-417q-67 0-121.5 37.5T278-280h404q-25-63-80-100t-122-37Zm-183-72 50-45 45 45 31-36-45-45 45-45-31-36-45 45-50-45-31 36 45 45-45 45 31 36Zm272 0 44-45 51 45 31-36-45-45 45-45-31-36-51 45-44-45-31 36 44 45-44 45 31 36ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-400Zm0 340q142 0 241-99t99-241q0-142-99-241t-241-99q-142 0-241 99t-99 241q0 142 99 241t241 99Z"})}),ze=Ae("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Ae("path",{d:"M479.504-261Q537-261 585.5-287q48.5-26 78.5-72.4 6-11.6-.75-22.6-6.75-11-20.25-11H316.918Q303-393 296.5-382t-.5 22.6q30 46.4 78.5 72.4 48.5 26 105.004 26ZM347-578l27 27q7.636 8 17.818 8Q402-543 410-551q8-8 8-18t-8-18l-42-42q-8.8-9-20.9-9-12.1 0-21.1 9l-42 42q-8 7.636-8 17.818Q276-559 284-551q8 8 18 8t18-8l27-27Zm267 0 27 27q7.714 8 18 8t18-8q8-7.636 8-17.818Q685-579 677-587l-42-42q-8.8-9-20.9-9-12.1 0-21.1 9l-42 42q-8 7.714-8 18t8 18q7.636 8 17.818 8Q579-543 587-551l27-27ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-400Zm0 340q142.375 0 241.188-98.812Q820-337.625 820-480t-98.812-241.188Q622.375-820 480-820t-241.188 98.812Q140-622.375 140-480t98.812 241.188Q337.625-140 480-140Z"})});Ae("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 0 24 24",width:"48",children:Ae("path",{d:"M2 20h2c.55 0 1-.45 1-1v-9c0-.55-.45-1-1-1H2v11zm19.83-7.12c.11-.25.17-.52.17-.8V11c0-1.1-.9-2-2-2h-5.5l.92-4.65c.05-.22.02-.46-.08-.66-.23-.45-.52-.86-.88-1.22L14 2 7.59 8.41C7.21 8.79 7 9.3 7 9.83v7.84C7 18.95 8.05 20 9.34 20h8.11c.7 0 1.36-.37 1.72-.97l2.66-6.15z"})}),Ae("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 0 24 24",width:"48",children:Ae("path",{d:"M22 4h-2c-.55 0-1 .45-1 1v9c0 .55.45 1 1 1h2V4zM2.17 11.12c-.11.25-.17.52-.17.8V13c0 1.1.9 2 2 2h5.5l-.92 4.65c-.05.22-.02.46.08.66.23.45.52.86.88 1.22L10 22l6.41-6.41c.38-.38.59-.89.59-1.42V6.34C17 5.05 15.95 4 14.66 4H6.55c-.7 0-1.36.37-1.72.97l-2.66 6.15z"})});var Re=function(t){var{fill:r="currentColor"}={};return Ae("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:r,xmlns:"http://www.w3.org/2000/svg","aria-labelledby":"close-survey-title-adam",children:[Ae("title",{id:"close-survey-title",className:"adam-testing",children:"Close survey"}),Ae("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.164752 0.164752C0.384422 -0.0549175 0.740578 -0.0549175 0.960248 0.164752L6 5.20451L11.0398 0.164752C11.2594 -0.0549175 11.6156 -0.0549175 11.8352 0.164752C12.0549 0.384422 12.0549 0.740578 11.8352 0.960248L6.79549 6L11.8352 11.0398C12.0549 11.2594 12.0549 11.6156 11.8352 11.8352C11.6156 12.0549 11.2594 12.0549 11.0398 11.8352L6 6.79549L0.960248 11.8352C0.740578 12.0549 0.384422 12.0549 0.164752 11.8352C-0.0549175 11.6156 -0.0549175 11.2594 0.164752 11.0398L5.20451 6L0.164752 0.960248C-0.0549175 0.740578 -0.0549175 0.384422 0.164752 0.164752Z",fill:r})]})},Oe=Ae("svg",{width:"77",height:"14",viewBox:"0 0 77 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Ae("g",{"clip-path":"url(#clip0_2415_6911)",children:[Ae("mask",{id:"mask0_2415_6911",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"77",height:"14",children:Ae("path",{d:"M0.5 0H76.5V14H0.5V0Z",fill:"white"})}),Ae("g",{mask:"url(#mask0_2415_6911)",children:[Ae("path",{d:"M5.77226 8.02931C5.59388 8.37329 5.08474 8.37329 4.90634 8.02931L4.4797 7.20672C4.41155 7.07535 4.41155 6.9207 4.4797 6.78933L4.90634 5.96669C5.08474 5.62276 5.59388 5.62276 5.77226 5.96669L6.19893 6.78933C6.26709 6.9207 6.26709 7.07535 6.19893 7.20672L5.77226 8.02931ZM5.77226 12.6946C5.59388 13.0386 5.08474 13.0386 4.90634 12.6946L4.4797 11.872C4.41155 11.7406 4.41155 11.586 4.4797 11.4546L4.90634 10.632C5.08474 10.288 5.59388 10.288 5.77226 10.632L6.19893 11.4546C6.26709 11.586 6.26709 11.7406 6.19893 11.872L5.77226 12.6946Z",fill:"#1D4AFF"}),Ae("path",{d:"M0.5 10.9238C0.5 10.508 1.02142 10.2998 1.32637 10.5938L3.54508 12.7327C3.85003 13.0267 3.63405 13.5294 3.20279 13.5294H0.984076C0.716728 13.5294 0.5 13.3205 0.5 13.0627V10.9238ZM0.5 8.67083C0.5 8.79459 0.551001 8.91331 0.641783 9.00081L5.19753 13.3927C5.28831 13.4802 5.41144 13.5294 5.53982 13.5294H8.0421C8.47337 13.5294 8.68936 13.0267 8.3844 12.7327L1.32637 5.92856C1.02142 5.63456 0.5 5.84278 0.5 6.25854V8.67083ZM0.5 4.00556C0.5 4.12932 0.551001 4.24802 0.641783 4.33554L10.0368 13.3927C10.1276 13.4802 10.2508 13.5294 10.3791 13.5294H12.8814C13.3127 13.5294 13.5287 13.0267 13.2237 12.7327L1.32637 1.26329C1.02142 0.969312 0.5 1.17752 0.5 1.59327V4.00556ZM5.33931 4.00556C5.33931 4.12932 5.39033 4.24802 5.4811 4.33554L14.1916 12.7327C14.4965 13.0267 15.0179 12.8185 15.0179 12.4028V9.99047C15.0179 9.86671 14.9669 9.74799 14.8762 9.66049L6.16568 1.26329C5.86071 0.969307 5.33931 1.17752 5.33931 1.59327V4.00556ZM11.005 1.26329C10.7 0.969307 10.1786 1.17752 10.1786 1.59327V4.00556C10.1786 4.12932 10.2296 4.24802 10.3204 4.33554L14.1916 8.06748C14.4965 8.36148 15.0179 8.15325 15.0179 7.7375V5.3252C15.0179 5.20144 14.9669 5.08272 14.8762 4.99522L11.005 1.26329Z",fill:"#F9BD2B"}),Ae("path",{d:"M21.0852 10.981L16.5288 6.58843C16.2238 6.29443 15.7024 6.50266 15.7024 6.91841V13.0627C15.7024 13.3205 15.9191 13.5294 16.1865 13.5294H23.2446C23.5119 13.5294 23.7287 13.3205 23.7287 13.0627V12.5032C23.7287 12.2455 23.511 12.0396 23.2459 12.0063C22.4323 11.9042 21.6713 11.546 21.0852 10.981ZM18.0252 12.0365C17.5978 12.0365 17.251 11.7021 17.251 11.2901C17.251 10.878 17.5978 10.5436 18.0252 10.5436C18.4527 10.5436 18.7996 10.878 18.7996 11.2901C18.7996 11.7021 18.4527 12.0365 18.0252 12.0365Z",fill:"currentColor"}),Ae("path",{d:"M0.5 13.0627C0.5 13.3205 0.716728 13.5294 0.984076 13.5294H3.20279C3.63405 13.5294 3.85003 13.0267 3.54508 12.7327L1.32637 10.5938C1.02142 10.2998 0.5 10.508 0.5 10.9238V13.0627ZM5.33931 5.13191L1.32637 1.26329C1.02142 0.969306 0.5 1.17752 0.5 1.59327V4.00556C0.5 4.12932 0.551001 4.24802 0.641783 4.33554L5.33931 8.86412V5.13191ZM1.32637 5.92855C1.02142 5.63455 0.5 5.84278 0.5 6.25853V8.67083C0.5 8.79459 0.551001 8.91331 0.641783 9.00081L5.33931 13.5294V9.79717L1.32637 5.92855Z",fill:"#1D4AFF"}),Ae("path",{d:"M10.1787 5.3252C10.1787 5.20144 10.1277 5.08272 10.0369 4.99522L6.16572 1.26329C5.8608 0.969306 5.33936 1.17752 5.33936 1.59327V4.00556C5.33936 4.12932 5.39037 4.24802 5.48114 4.33554L10.1787 8.86412V5.3252ZM5.33936 13.5294H8.04214C8.47341 13.5294 8.6894 13.0267 8.38443 12.7327L5.33936 9.79717V13.5294ZM5.33936 5.13191V8.67083C5.33936 8.79459 5.39037 8.91331 5.48114 9.00081L10.1787 13.5294V9.99047C10.1787 9.86671 10.1277 9.74803 10.0369 9.66049L5.33936 5.13191Z",fill:"#F54E00"}),Ae("path",{d:"M29.375 11.6667H31.3636V8.48772H33.0249C34.8499 8.48772 36.0204 7.4443 36.0204 5.83052C36.0204 4.21681 34.8499 3.17334 33.0249 3.17334H29.375V11.6667ZM31.3636 6.84972V4.81136H32.8236C33.5787 4.81136 34.0318 5.19958 34.0318 5.83052C34.0318 6.4615 33.5787 6.84972 32.8236 6.84972H31.3636ZM39.618 11.7637C41.5563 11.7637 42.9659 10.429 42.9659 8.60905C42.9659 6.78905 41.5563 5.45438 39.618 5.45438C37.6546 5.45438 36.2701 6.78905 36.2701 8.60905C36.2701 10.429 37.6546 11.7637 39.618 11.7637ZM38.1077 8.60905C38.1077 7.63838 38.7118 6.97105 39.618 6.97105C40.5116 6.97105 41.1157 7.63838 41.1157 8.60905C41.1157 9.57972 40.5116 10.2471 39.618 10.2471C38.7118 10.2471 38.1077 9.57972 38.1077 8.60905ZM46.1482 11.7637C47.6333 11.7637 48.6402 10.8658 48.6402 9.81025C48.6402 7.33505 45.2294 8.13585 45.2294 7.16518C45.2294 6.8983 45.5189 6.72843 45.9342 6.72843C46.3622 6.72843 46.8782 6.98318 47.0418 7.54132L48.527 6.94678C48.2375 6.06105 47.1677 5.45438 45.8713 5.45438C44.4743 5.45438 43.6058 6.25518 43.6058 7.21372C43.6058 9.53118 46.9663 8.88812 46.9663 9.84665C46.9663 10.1864 46.6391 10.417 46.1482 10.417C45.4434 10.417 44.9525 9.94376 44.8015 9.3735L43.3164 9.93158C43.6436 10.8537 44.6001 11.7637 46.1482 11.7637ZM53.4241 11.606L53.2982 10.0651C53.0843 10.1743 52.8074 10.2106 52.5808 10.2106C52.1278 10.2106 51.8257 9.89523 51.8257 9.34918V7.03172H53.3612V5.55145H51.8257V3.78001H49.9755V5.55145H48.9687V7.03172H49.9755V9.57972C49.9755 11.06 51.0202 11.7637 52.3921 11.7637C52.7696 11.7637 53.122 11.7031 53.4241 11.606ZM59.8749 3.17334V6.47358H56.376V3.17334H54.3874V11.6667H56.376V8.11158H59.8749V11.6667H61.8761V3.17334H59.8749ZM66.2899 11.7637C68.2281 11.7637 69.6378 10.429 69.6378 8.60905C69.6378 6.78905 68.2281 5.45438 66.2899 5.45438C64.3265 5.45438 62.942 6.78905 62.942 8.60905C62.942 10.429 64.3265 11.7637 66.2899 11.7637ZM64.7796 8.60905C64.7796 7.63838 65.3837 6.97105 66.2899 6.97105C67.1835 6.97105 67.7876 7.63838 67.7876 8.60905C67.7876 9.57972 67.1835 10.2471 66.2899 10.2471C65.3837 10.2471 64.7796 9.57972 64.7796 8.60905ZM73.2088 11.4725C73.901 11.4725 74.5177 11.242 74.845 10.8416V11.424C74.845 12.1034 74.2786 12.5767 73.4102 12.5767C72.7935 12.5767 72.2523 12.2854 72.1642 11.788L70.4776 12.0428C70.7042 13.1955 71.925 13.972 73.4102 13.972C75.361 13.972 76.6574 12.8679 76.6574 11.2298V5.55145H74.8324V6.07318C74.4926 5.69705 73.9136 5.45438 73.171 5.45438C71.409 5.45438 70.3014 6.61918 70.3014 8.46345C70.3014 10.3077 71.409 11.4725 73.2088 11.4725ZM72.1012 8.46345C72.1012 7.55345 72.655 6.97105 73.5109 6.97105C74.3793 6.97105 74.9331 7.55345 74.9331 8.46345C74.9331 9.37345 74.3793 9.95585 73.5109 9.95585C72.655 9.95585 72.1012 9.37345 72.1012 8.46345Z",fill:"currentColor"})]})]}),Ae("defs",{children:Ae("clipPath",{id:"clip0_2415_6911",children:Ae("rect",{width:"76",height:"14",fill:"white",transform:"translate(0.5)"})})})]});function Ze(t){var{button:r,variant:e,onClick:n,cursorStyle:o}=t,i="ph-tour-button ph-tour-button--"+e;return"link"===r.action&&r.link?Ae("a",{href:r.link,target:"_blank",rel:"noopener noreferrer",class:i,onClick:()=>n(r),children:r.text}):Ae("button",{class:i,onClick:()=>n(r),style:o,children:r.text})}function De(t){var r,e,n,{step:o,appearance:i,stepIndex:u,totalSteps:l,onNext:a,onPrevious:s,onDismiss:c,onButtonClick:h}=t,d=null!==(r=null==i?void 0:i.whiteLabel)&&void 0!==r&&r,f=u>=l-1,p=0===u,v=!(o.buttons||"button"!==o.progressionTrigger&&ge(o)),m=!!o.buttons,g=!!(a||s||c||h),b=g?void 0:{cursor:"default"},y=!d&&p,_=t=>{h&&h(t)};return Ae(S,{children:[Ae("button",{class:"ph-tour-dismiss",onClick:c,"aria-label":"Close tour",style:b,children:Re()}),Ae("div",{class:"ph-tour-content",dangerouslySetInnerHTML:{__html:Me(o)}}),Ae("div",{class:"ph-tour-footer",children:[l>1&&Ae("span",{class:"ph-tour-progress",children:[u+1," of ",l]}),Ae("div",{class:"ph-tour-buttons",children:[v&&Ae(S,{children:[!p&&Ae("button",{class:"ph-tour-button ph-tour-button--secondary",onClick:s,style:b,children:"Back"}),Ae("button",{class:"ph-tour-button ph-tour-button--primary",onClick:a,style:b,children:f?"Done":"Next"})]}),m&&Ae(S,{children:[(null==(e=o.buttons)?void 0:e.secondary)&&Ae(Ze,{button:o.buttons.secondary,variant:"secondary",onClick:_,cursorStyle:b}),(null==(n=o.buttons)?void 0:n.primary)&&Ae(Ze,{button:o.buttons.primary,variant:"primary",onClick:_,cursorStyle:b})]})]})]}),y&&Ae("a",{href:g?"https://posthog.com/docs/product-tours":void 0,target:g?"_blank":void 0,rel:g?"noopener noreferrer":void 0,class:"ph-tour-branding",style:g?void 0:{cursor:"default",pointerEvents:"none"},children:["Tour by ",Oe]})]})}Ae("svg",{width:"16",height:"12",viewBox:"0 0 16 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Ae("path",{d:"M5.30769 10.6923L4.77736 11.2226C4.91801 11.3633 5.10878 11.4423 5.30769 11.4423C5.5066 11.4423 5.69737 11.3633 5.83802 11.2226L5.30769 10.6923ZM15.5303 1.53033C15.8232 1.23744 15.8232 0.762563 15.5303 0.46967C15.2374 0.176777 14.7626 0.176777 14.4697 0.46967L15.5303 1.53033ZM1.53033 5.85429C1.23744 5.56139 0.762563 5.56139 0.46967 5.85429C0.176777 6.14718 0.176777 6.62205 0.46967 6.91495L1.53033 5.85429ZM5.83802 11.2226L15.5303 1.53033L14.4697 0.46967L4.77736 10.162L5.83802 11.2226ZM0.46967 6.91495L4.77736 11.2226L5.83802 10.162L1.53033 5.85429L0.46967 6.91495Z",fill:"currentColor"})});var Pe=[Ie,Ee,Le],Ne=[je,Ie,Ee,Le,ze];function Fe(t){var{value:r,onChange:e,onSubmit:n,isInteractive:o}=t,i=te(null);Kr((()=>{o&&setTimeout((()=>{var t;return null==(t=i.current)?void 0:t.focus()}),100)}),[o]);return Ae("textarea",{ref:i,class:"ph-tour-survey-textarea",rows:3,placeholder:"Your feedback (optional)...",value:r,onInput:t=>e(t.target.value),onKeyDown:t=>{"Enter"===t.key&&t.metaKey&&o&&(t.preventDefault(),null==n||n())},disabled:!o,style:o?void 0:{cursor:"default"}})}function He(t){var{survey:r,onSubmit:e,isInteractive:n}=t,[o,i]=Gr(null),u=r.display||"emoji",l=r.scale||5,a=t=>{n&&(i(t),null==e||e(t))};if("emoji"===u)return Ae("div",{class:"ph-tour-survey-rating-container",children:[Ae("div",{class:"ph-tour-survey-rating-emoji",children:(3===l?Pe:Ne).map(((t,r)=>{var e=r+1;return Ae("button",{type:"button",class:"ph-tour-survey-emoji-button "+(o===e?"ph-tour-survey-emoji-button--active":""),onClick:()=>a(e),style:n?void 0:{cursor:"default"},"aria-label":"Rate "+e,children:t},r)}))}),(r.lowerBoundLabel||r.upperBoundLabel)&&Ae("div",{class:"ph-tour-survey-rating-labels",children:[Ae("span",{children:r.lowerBoundLabel}),Ae("span",{children:r.upperBoundLabel})]})]});var s=function(t){switch(t){case 5:default:return[1,2,3,4,5];case 10:return[0,1,2,3,4,5,6,7,8,9,10]}}(l);return Ae("div",{class:"ph-tour-survey-rating-container",children:[Ae("div",{class:"ph-tour-survey-rating-numbers",style:{gridTemplateColumns:"repeat("+s.length+", minmax(0, 1fr))"},children:s.map((t=>Ae("button",{type:"button",class:"ph-tour-survey-number-button "+(o===t?"ph-tour-survey-number-button--active":""),onClick:()=>a(t),style:n?void 0:{cursor:"default"},"aria-label":"Rate "+t,children:t},t)))}),(r.lowerBoundLabel||r.upperBoundLabel)&&Ae("div",{class:"ph-tour-survey-rating-labels",children:[Ae("span",{children:r.lowerBoundLabel}),Ae("span",{children:r.upperBoundLabel})]})]})}function Ve(t){var r,{step:e,appearance:n,stepIndex:o,totalSteps:i,onPrevious:u,onSubmit:l,onDismiss:a}=t,[s,c]=Gr(""),h=e.survey,d=null!==(r=null==n?void 0:n.whiteLabel)&&void 0!==r&&r,f=0===o,p="open"===(null==h?void 0:h.type),v=!!(u||l||a),m=v?void 0:{cursor:"default"},g=()=>{null==l||l(s.trim()||null)};return h?Ae(S,{children:[Ae("button",{class:"ph-tour-dismiss",onClick:a,"aria-label":"Close survey",style:m,children:Re()}),Ae("div",{class:"ph-tour-survey-question",children:h.questionText}),p?Ae(Fe,{value:s,onChange:c,onSubmit:g,isInteractive:v}):Ae(He,{survey:h,onSubmit:l,isInteractive:v}),Ae("div",{class:"ph-tour-footer",children:[Ae("span",{class:"ph-tour-progress",children:[o+1," of ",i]}),Ae("div",{class:"ph-tour-buttons",children:[!f&&Ae("button",{class:"ph-tour-button ph-tour-button--secondary",onClick:u,style:m,children:"Back"}),p&&Ae("button",{class:"ph-tour-button ph-tour-button--primary",onClick:g,style:m,children:"Submit"})]})]}),!d&&Ae("a",{href:v?"https://posthog.com/product-tours":void 0,target:v?"_blank":void 0,rel:v?"noopener noreferrer":void 0,class:"ph-tour-branding",style:v?void 0:{cursor:"default",pointerEvents:"none"},children:["Survey by ",Oe]})]}):Ae("div",{})}var Be=r;function Ue(t){return{top:"bottom",bottom:"top",left:"right",right:"left"}[t]}var Qe=150;function We(t){var r,{tour:e,step:n,stepIndex:o,totalSteps:i,targetElement:l,onNext:a,onPrevious:s,onDismiss:c,onSurveySubmit:h,onButtonClick:d}=t,[f,p]=Gr("entering"),[v,m]=Gr(null),[g,b]=Gr(null),[y,_]=Gr(!1),[w,x]=Gr(n),[k,T]=Gr(o),C=te(null),S=te(o),q=te(!1),M=te(l),A=!ge(w)||"survey"===w.type;Jr((()=>{M.current=l}),[l]);var L=function(t,r){return Nr=8,re((function(){return t}),r)}((()=>{var t=M.current;if(t&&C.current){var r=C.current.getBoundingClientRect(),e={width:r.width,height:r.height},n=t.getBoundingClientRect();m(function(t,r){var e=ve.innerWidth,n=ve.innerHeight,{width:o,height:i}=r,u=t.top,l=n-t.bottom,a=t.left,s=e-t.right,c=t.top+t.height/2,h=t.left+t.width/2;if(s>=o+_e){var d=t.right+_e,{clamped:f,offset:p}=xe(c,i,n);return{position:"right",top:f,left:d,arrowOffset:p}}if(a>=o+_e){var v=e-t.left+_e,{clamped:m,offset:g}=xe(c,i,n);return{position:"left",top:m,right:v,arrowOffset:g}}if(u>=i+_e&&l<i+_e){var b=n-t.top+_e,{clamped:y,offset:_}=xe(h,o,e);return{position:"top",bottom:b,left:y,arrowOffset:_}}var w=t.bottom+_e,{clamped:x,offset:k}=xe(h,o,e);return{position:"bottom",top:w,left:x,arrowOffset:k}}(n,e)),b(function(t,r){return void 0===r&&(r=8),{top:t.top-r+"px",left:t.left-r+"px",width:t.width+2*r+"px",height:t.height+2*r+"px"}}(n)),_(!0)}}),[]);Jr((()=>{!A&&!y&&C.current&&l&&L()}),[A,y,l,L]),Kr((()=>{var t=o,r=S.current!==o,e=()=>{S.current===t&&(p("visible"),q.current=!1)},i=()=>{M.current&&ge(n)&&(M.current.isConnected||(M.current=ye(n).element),M.current)?function(t,r){var e=t.getBoundingClientRect(),n=Be.innerHeight,o=Be.innerWidth,i=n/6,u=o/6;if(e.top>=i&&e.bottom<=n-i&&e.left>=u&&e.right<=o-u)r();else{t.scrollIntoView({behavior:"smooth",block:"center"});var l=e.top,a=0,s=!1,c=()=>{if(!s){var e=t.getBoundingClientRect();if(Math.abs(e.top-l)<1){if(++a>=3)return s=!0,void r()}else a=0;l=e.top,setTimeout(c,50)}};setTimeout(c,30),setTimeout((()=>{s||(s=!0,r())}),500)}}(M.current,(()=>{S.current===t&&(L(),setTimeout(e,50))})):setTimeout(e,50)};if(!r)return S.current=o,q.current=!0,void i();S.current=o,q.current=!0,p("exiting"),setTimeout((()=>{S.current===t&&(ge(n)&&(m(null),b(null),_(!1)),x(n),T(o),p("entering"),i())}),Qe)}),[l,o,n,L]),Kr((()=>{if("visible"===f&&!A){var t=()=>{q.current||L()};return Er(Be,"scroll",t,{capture:!0}),Er(Be,"resize",t),()=>{null==Be||Be.removeEventListener("scroll",t,!0),null==Be||Be.removeEventListener("resize",t)}}}),[L,f,A]),Kr((()=>{var t=t=>{"Escape"===t.key&&c("escape_key")};return Er(Be,"keydown",t),()=>{null==Be||Be.removeEventListener("keydown",t)}}),[c]);var E,I,j="visible"===f,z="survey"===w.type,R=A||y,O=u({},w.maxWidth&&{width:"min("+w.maxWidth+"px, calc(100vw - 16px))",maxWidth:"min("+w.maxWidth+"px, calc(100vw - 16px))"},A?u({},{top:"auto",right:"auto",bottom:"auto",left:"auto",transform:"none"},(I=function(t,r,e){if(void 0===r&&(r=Y.Right),t===X.ExternalSurvey)return{};switch(r){case Y.TopLeft:return{top:"0",left:"0",transform:"translate(30px, 30px)"};case Y.TopRight:return{top:"0",right:"0",transform:"translate(-30px, 30px)"};case Y.TopCenter:return{top:"0",left:"50%",transform:"translate(-50%, 30px)"};case Y.MiddleLeft:return{top:"50%",left:"0",transform:"translate(30px, -50%)"};case Y.MiddleRight:return{top:"50%",right:"0",transform:"translate(-30px, -50%)"};case Y.MiddleCenter:return{top:"50%",left:"50%",transform:"translate(-50%, -50%)"};case Y.Left:return{left:"30px"};case Y.Center:return{left:"50%",transform:"translateX(-50%)"};default:case Y.Right:return{right:t===X.Widget&&e===W.Tab?"60px":"30px"}}}(void 0,null!==(E=w.modalPosition)&&void 0!==E?E:sr.MiddleCenter),"top"in I||"bottom"in I?I:u({},I,{bottom:"30px"}))):(()=>{if(!v)return{};var t="left"===v.position||"right"===v.position;return{top:pr(v.top)?"auto":v.top+"px",bottom:pr(v.bottom)?"auto":v.bottom+"px",left:pr(v.left)?"auto":v.left+"px",right:pr(v.right)?"auto":v.right+"px",transform:t?"translateY(-50%)":"translateX(-50%)"}})());return Ae("div",{class:"ph-tour-container",children:[!1!==(null==(r=e.appearance)?void 0:r.dismissOnClickOutside)&&Ae("div",{class:"ph-tour-click-overlay",onClick:t=>{t.stopPropagation(),c("user_clicked_outside")}}),Ae("div",{class:"ph-tour-modal-overlay",style:{opacity:A&&j?1:0,transition:"opacity 150ms ease-out",pointerEvents:"none"}}),Ae("div",{class:"ph-tour-spotlight",style:u({},j&&R&&g?g:{top:"50%",left:"50%",width:"0px",height:"0px"},{opacity:!A&&j&&R?1:0,transition:"opacity 150ms ease-out"},"click"===w.progressionTrigger&&!A&&{pointerEvents:"auto",cursor:"pointer"}),onClick:"click"!==w.progressionTrigger||A?void 0:t=>{t.stopPropagation(),M.current&&M.current.click(),a()}}),Ae("div",{ref:C,class:"ph-tour-tooltip "+(A?"ph-tour-tooltip--modal":"")+" "+(z?"ph-tour-survey-step":""),style:u({},O,{opacity:j&&R?1:0,transition:"opacity 150ms ease-out"}),onClick:t=>{t.stopPropagation()},children:[!A&&v&&Ae("div",{class:"ph-tour-arrow ph-tour-arrow--"+Ue(v.position),style:0!==v.arrowOffset?{"--ph-tour-arrow-offset":v.arrowOffset+"px"}:void 0}),z?Ae(Ve,{step:w,appearance:e.appearance,stepIndex:k,totalSteps:i,onSubmit:h,onPrevious:s,onDismiss:()=>c("user_clicked_skip")}):Ae(De,{step:w,appearance:e.appearance,stepIndex:k,totalSteps:i,onNext:a,onPrevious:s,onDismiss:()=>c("user_clicked_skip"),onButtonClick:d})]})]})}function Ye(t){var{class:r,href:e,children:n}=t;return Ae("a",{class:r,href:e,target:"_blank",rel:"noopener noreferrer",children:n})}function Xe(t){var{class:r,onClick:e,children:n}=t;return Ae("div",{class:r,role:"button",tabIndex:0,onClick:e,onKeyDown:t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),e())},style:{cursor:"pointer"},children:n})}function Ge(t){var{class:r,children:e}=t;return Ae("div",{class:r,children:e})}function Ke(t){var r,{step:e,onDismiss:n,onTriggerTour:o,displayFrequency:i}=t,u=null!==(r=e.bannerConfig)&&void 0!==r?r:{behavior:"sticky"},l=u.action,a="always"!==i,s=["ph-tour-banner","sticky"===u.behavior&&"ph-tour-banner--sticky","custom"===u.behavior&&"ph-tour-banner--custom"].filter(Boolean).join(" "),c=Ae(S,{children:[Ae("div",{class:"ph-tour-banner-content",dangerouslySetInnerHTML:{__html:Me(e)}}),a&&Ae("button",{class:"ph-tour-banner-dismiss",onClick:t=>{t.stopPropagation(),t.preventDefault(),n()},"aria-label":"Close banner",children:Re()})]});return"link"===(null==l?void 0:l.type)&&l.link?Ae(Ye,{class:s,href:l.link,children:c}):"trigger_tour"===(null==l?void 0:l.type)&&o?Ae(Xe,{class:s,onClick:o,children:c}):Ae(Ge,{class:s,children:c})}Math.trunc||(Math.trunc=function(t){return t<0?Math.ceil(t):Math.floor(t)}),Number.isInteger||(Number.isInteger=function(t){return(t=>"[object Number]"==dr.call(t)&&t==t)(t)&&isFinite(t)&&Math.floor(t)===t}),r&&!pr(r.crypto)&&crypto.getRandomValues;var Je=null,tn={i:function(){if(!vr(Je))return Je;var t=!0;if(pr(r))t=!1;else try{var e="__mplssupport__";tn.h(e,"xyz"),'"xyz"'!==tn.p(e)&&(t=!1),tn.v(e)}catch(r){t=!1}return t||Mr.error("localStorage unsupported; falling back to cookie store"),Je=t,t},m:function(t){Mr.error("localStorage error: "+t)},p:function(t){try{return null==r?void 0:r.localStorage.getItem(t)}catch(t){tn.m(t)}return null},k:function(t){try{return JSON.parse(tn.p(t))||{}}catch(t){}return null},h:function(t,e){try{null==r||r.localStorage.setItem(t,JSON.stringify(e))}catch(t){tn.m(t)}},v:function(t){try{null==r||r.localStorage.removeItem(t)}catch(t){tn.m(t)}}},rn=null,en={i:function(){if(!vr(rn))return rn;if(rn=!0,pr(r))rn=!1;else try{var t="__support__";en.h(t,"xyz"),'"xyz"'!==en.p(t)&&(rn=!1),en.v(t)}catch(t){rn=!1}return rn},m:function(t){Mr.error("sessionStorage error: ",t)},p:function(t){try{return null==r?void 0:r.sessionStorage.getItem(t)}catch(t){en.m(t)}return null},k:function(t){try{return JSON.parse(en.p(t))||null}catch(t){}return null},h:function(t,e){try{null==r||r.sessionStorage.setItem(t,JSON.stringify(e))}catch(t){en.m(t)}},v:function(t){try{null==r||r.sessionStorage.removeItem(t)}catch(t){en.m(t)}}},nn="ph_product_tour_shown_",on="ph_product_tour_completed_",un="ph_product_tour_dismissed_",ln="ph_active_product_tour";function an(t){var r,e;return!!(null!=(r=t.conditions)&&r.events&&(null==(e=t.conditions.events.values)?void 0:e.length)>0)}function sn(t){var r,e;return!!(null!=(r=t.conditions)&&r.actions&&(null==(e=t.conditions.actions.values)?void 0:e.length)>0)}class cn{constructor(){this.T={},this.T={}}on(t,r){return this.T[t]||(this.T[t]=[]),this.T[t].push(r),()=>{this.T[t]=this.T[t].filter((t=>t!==r))}}emit(t,r){for(var e of this.T[t]||[])e(r);for(var n of this.T["*"]||[])n(t,r)}}function hn(t,r,e){if(mr(t))return!1;switch(e){case"exact":return t===r;case"contains":var n=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/_/g,".").replace(/%/g,".*");return new RegExp(n,"i").test(t);case"regex":try{return new RegExp(r).test(t)}catch(t){return!1}default:return!1}}class dn{constructor(t){this.C=new cn,this.S=(t,r)=>this.q(t,r)&&this.M(t,r)&&this.$(t,r)&&this.A(t,r),this.q=(t,r)=>null==r||!r.event||(null==t?void 0:t.event)===(null==r?void 0:r.event),this._instance=t,this.L=new Set,this.I=new Set}init(){var t;if(!pr(null==(t=this._instance)?void 0:t._addCaptureHook)){var r;null==(r=this._instance)||r._addCaptureHook(((t,r)=>{this.on(t,r)}))}}register(t){var r,e;if(!pr(null==(r=this._instance)?void 0:r._addCaptureHook)&&(t.forEach((t=>{var r,e;null==(r=this.I)||r.add(t),null==(e=t.steps)||e.forEach((t=>{var r;null==(r=this.L)||r.add((null==t?void 0:t.event)||"")}))})),null!=(e=this._instance)&&e.autocapture)){var n,o=new Set;t.forEach((t=>{var r;null==(r=t.steps)||r.forEach((t=>{null!=t&&t.selector&&o.add(null==t?void 0:t.selector)}))})),null==(n=this._instance)||n.autocapture.setElementSelectors(o)}}on(t,r){var e;null!=r&&0!=t.length&&(this.L.has(t)||this.L.has(null==r?void 0:r.event))&&this.I&&(null==(e=this.I)?void 0:e.size)>0&&this.I.forEach((t=>{this.j(r,t)&&this.C.emit("actionCaptured",t.name)}))}R(t){this.onAction("actionCaptured",(r=>t(r)))}j(t,r){if(null==(null==r?void 0:r.steps))return!1;for(var e of r.steps)if(this.S(t,e))return!0;return!1}onAction(t,r){return this.C.on(t,r)}M(t,r){if(null!=r&&r.url){var e,n=null==t||null==(e=t.properties)?void 0:e.$current_url;if(!n||"string"!=typeof n)return!1;if(!hn(n,r.url,r.url_matching||"contains"))return!1}return!0}$(t,r){return!!this.O(t,r)&&(!!this.Z(t,r)&&!!this.D(t,r))}O(t,r){var e;if(null==r||!r.href)return!0;var n=this.P(t);if(n.length>0)return n.some((t=>hn(t.href,r.href,r.href_matching||"exact")));var o,i=(null==t||null==(e=t.properties)?void 0:e.$elements_chain)||"";return!!i&&hn((o=i.match(/(?::|")href="(.*?)"/))?o[1]:"",r.href,r.href_matching||"exact")}Z(t,r){var e;if(null==r||!r.text)return!0;var n=this.P(t);if(n.length>0)return n.some((t=>hn(t.text,r.text,r.text_matching||"exact")||hn(t.$el_text,r.text,r.text_matching||"exact")));var o,i,u,l=(null==t||null==(e=t.properties)?void 0:e.$elements_chain)||"";return!!l&&(o=function(t){for(var r,e=[],n=/(?::|")text="(.*?)"/g;!mr(r=n.exec(t));)e.includes(r[1])||e.push(r[1]);return e}(l),i=r.text,u=r.text_matching||"exact",o.some((t=>hn(t,i,u))))}D(t,r){var e,n;if(null==r||!r.selector)return!0;var o=null==t||null==(e=t.properties)?void 0:e.$element_selectors;if(null!=o&&o.includes(r.selector))return!0;var i=(null==t||null==(n=t.properties)?void 0:n.$elements_chain)||"";if(r.selector_regex&&i)try{return new RegExp(r.selector_regex).test(i)}catch(t){return!1}return!1}P(t){var r;return null==(null==t||null==(r=t.properties)?void 0:r.$elements)?[]:null==t?void 0:t.properties.$elements}A(t,r){return null==r||!r.properties||0===r.properties.length||Rr(r.properties.reduce(((t,r)=>{var e=fr(r.value)?r.value.map(String):null!=r.value?[String(r.value)]:[];return t[r.key]={values:e,operator:r.operator||"exact"},t}),{}),null==t?void 0:t.properties)}}class fn{constructor(t){this._instance=t,this.N=new Map,this.F=new Map,this.H=new Map}V(t,r){return!!t&&Rr(t.propertyFilters,null==r?void 0:r.properties)}B(t,r){var e=new Map;return t.forEach((t=>{var n;null==(n=t.conditions)||null==(n=n[r])||null==(n=n.values)||n.forEach((r=>{if(null!=r&&r.name){var n=e.get(r.name)||[];n.push(t.id),e.set(r.name,n)}}))})),e}U(t,r,e){var n=(e===Q.Activation?this.N:this.F).get(t),o=[];return this.W((t=>{o=t.filter((t=>null==n?void 0:n.includes(t.id)))})),o.filter((n=>{var o,i=null==(o=n.conditions)||null==(o=o[e])||null==(o=o.values)?void 0:o.find((r=>r.name===t));return this.V(i,r)}))}register(t){var r;pr(null==(r=this._instance)?void 0:r._addCaptureHook)||(this.Y(t),this.X(t))}X(t){var r=t.filter((t=>{var r,e;return(null==(r=t.conditions)?void 0:r.actions)&&(null==(e=t.conditions)||null==(e=e.actions)||null==(e=e.values)?void 0:e.length)>0}));if(0!==r.length){if(null==this.G){this.G=new dn(this._instance),this.G.init();this.G.R((t=>{this.onAction(t)}))}r.forEach((t=>{var r,e,n,o,i;t.conditions&&null!=(r=t.conditions)&&r.actions&&null!=(e=t.conditions)&&null!=(e=e.actions)&&e.values&&(null==(n=t.conditions)||null==(n=n.actions)||null==(n=n.values)?void 0:n.length)>0&&(null==(o=this.G)||o.register(t.conditions.actions.values),null==(i=t.conditions)||null==(i=i.actions)||null==(i=i.values)||i.forEach((r=>{if(r&&r.name){var e=this.H.get(r.name);e&&e.push(t.id),this.H.set(r.name,e||[t.id])}})))}))}}Y(t){var r,e=t.filter((t=>{var r,e;return(null==(r=t.conditions)?void 0:r.events)&&(null==(e=t.conditions)||null==(e=e.events)||null==(e=e.values)?void 0:e.length)>0})),n=t.filter((t=>{var r,e;return(null==(r=t.conditions)?void 0:r.cancelEvents)&&(null==(e=t.conditions)||null==(e=e.cancelEvents)||null==(e=e.values)?void 0:e.length)>0}));if(0!==e.length||0!==n.length){null==(r=this._instance)||r._addCaptureHook(((t,r)=>{this.onEvent(t,r)})),this.N=this.B(t,Q.Activation),this.F=this.B(t,Q.Cancellation)}}onEvent(t,r){var e,n=this.K(),o=this.J(),i=this.tt(),u=(null==(e=this._instance)||null==(e=e.persistence)?void 0:e.props[o])||[];if(i===t&&r&&u.length>0){var l,a;n.info("event matched, removing item from activated items",{event:t,eventPayload:r,existingActivatedItems:u});var s=(null==r||null==(l=r.properties)?void 0:l.$survey_id)||(null==r||null==(a=r.properties)?void 0:a.$product_tour_id);if(s){var c=u.indexOf(s);c>=0&&(u.splice(c,1),this.rt(u))}}else{if(this.F.has(t)){var h=this.U(t,r,Q.Cancellation);h.length>0&&(n.info("cancel event matched, cancelling items",{event:t,itemsToCancel:h.map((t=>t.id))}),h.forEach((t=>{var r=u.indexOf(t.id);r>=0&&u.splice(r,1),this.et(t.id)})),this.rt(u))}if(this.N.has(t)){n.info("event name matched",{event:t,eventPayload:r,items:this.N.get(t)});var d=this.U(t,r,Q.Activation);this.rt(u.concat(d.map((t=>t.id))||[]))}}}onAction(t){var r,e=this.J(),n=(null==(r=this._instance)||null==(r=r.persistence)?void 0:r.props[e])||[];this.H.has(t)&&this.rt(n.concat(this.H.get(t)||[]))}rt(t){var r,e=this.K(),n=this.J(),o=[...new Set(t)].filter((t=>!this.nt(t)));e.info("updating activated items",{activatedItems:o}),null==(r=this._instance)||null==(r=r.persistence)||r.register({[n]:o})}getActivatedIds(){var t,r=this.J(),e=null==(t=this._instance)||null==(t=t.persistence)?void 0:t.props[r];return e||[]}getEventToItemsMap(){return this.N}ot(){return this.G}}var pn=$r("[Product Tour Event Receiver]");class vn extends fn{constructor(t){super(t)}J(){return"$product_tours_activated"}tt(){return"product tour shown"}W(t){var r;null==(r=this._instance)||null==(r=r.productTours)||r.getProductTours(t)}et(t){var r;null==(r=this._instance)||null==(r=r.productTours)||r.cancelPendingTour(t)}K(){return pn}nt(t){if(!t)return!0;var r=""+on+t,e=""+un+t;return!(!tn.p(r)&&!tn.p(e))}getTours(){return this.getActivatedIds()}}var mn=$r("[Product Tours]"),gn=o,bn=r;function yn(t){var r=new Date;if(t.start_date&&r<new Date(t.start_date))return!1;if(t.end_date&&r>new Date(t.end_date))return!1;return!0}function _n(t){return yn(t)&&function(t){var r,e=t.conditions;if(null==e||!e.url)return!0;var n=null==bn||null==(r=bn.location)?void 0:r.href;if(!n)return!1;var o=e.urlMatchType||cr.Icontains;if(o===cr.Exact)return Ce(n)===Ce(e.url);var i=[e.url];return jr[o](i,[n])}(t)}var wn="ph-product-tour-container",xn="data-ph-tour-trigger";class kn{constructor(t){var r=this;this.it=null,this.ut=0,this.st=!1,this.ct=!1,this.ht=null,this.dt=new Map,this.ft=new Map,this.vt=new Set,this.bt=new Set,this.yt=()=>{gn.hidden&&this.ht?(clearInterval(this.ht),this.ht=null):gn.hidden||this.ht||(this.ht=setInterval((()=>{this._t()}),1e3),this._t())},this.nextStep=()=>{if(this.it){var t=this.it.steps[this.ut];this.wt("product tour step completed",{$product_tour_id:this.it.id,$product_tour_step_id:t.id,$product_tour_step_order:this.ut}),this.ut<this.it.steps.length-1?(this.xt(this.ut+1),this.kt()):this.Tt()}},this.previousStep=()=>{this.it&&0!==this.ut&&(this.xt(this.ut-1),this.kt())},this.dismissTour=function(t){if(void 0===t&&(t="user_clicked_skip"),r.it){var e=r.it.steps[r.ut];r.wt("product tour dismissed",{$product_tour_id:r.it.id,$product_tour_step_id:e.id,$product_tour_step_order:r.ut,$product_tour_dismiss_reason:t}),r.st||(tn.h(""+un+r.it.id,!0),r._instance.capture("$set",{$set:{["$product_tour_dismissed/"+r.it.id]:!0}})),bn.dispatchEvent(new CustomEvent("PHProductTourDismissed",{detail:{tourId:r.it.id,reason:t}})),r.Ct()}},this.St=t=>{if(this.it){var r=this.it.steps[this.ut];r&&this.wt("product tour button clicked",u({$product_tour_id:this.it.id,$product_tour_name:this.it.name,$product_tour_iteration:this.it.current_iteration||1,$product_tour_step_id:r.id,$product_tour_step_order:this.ut,$product_tour_button_text:t.text,$product_tour_button_action:t.action},t.link&&{$product_tour_button_link:t.link},t.tourId&&{$product_tour_button_tour_id:t.tourId}))}switch(t.action){case"dismiss":this.dismissTour("user_clicked_skip");break;case"next_step":this.nextStep();break;case"previous_step":this.previousStep();break;case"link":this.Tt();break;case"trigger_tour":t.tourId&&(this.Tt(),this.showTourById(t.tourId))}},this._instance=t,this.qt=new vn(t)}Mt(t){var r=t.filter((t=>!t.disable_image_preload)).flatMap((t=>t.steps.flatMap(qe)));for(var e of r)this.bt.has(e)||(this.bt.add(e),(new Image).src=e)}xt(t){this.ut=t,this.$t()}$t(){this.it&&!this.st&&en.h(ln,{tourId:this.it.id,stepIndex:this.ut})}At(){en.v(ln)}Lt(){var t=en.p(ln);if(!t)return null;try{return JSON.parse(t)}catch(t){return null}}start(){if(!this.ht){var t=this.Lt();t?this.Et(t.tourId,t.stepIndex,(()=>{this.It()})):this.It()}}It(){this.ht=setInterval((()=>{this._t()}),1e3),this._t(!0),Er(gn,"visibilitychange",this.yt)}Et(t,r,e){var n;null==(n=this._instance.productTours)||n.getProductTours((n=>{var o=n.find((r=>r.id===t));o?(this.it=o,this.ut=r,this.ct=!0,this.kt()):n.length>0&&this.At(),e()}))}stop(){this.ht&&(clearInterval(this.ht),this.ht=null),gn.removeEventListener("visibilitychange",this.yt),this.jt(),this.zt(),this.Ct()}_t(t){var r;null!=gn&&gn.getElementById("__POSTHOG_TOOLBAR__")||null==(r=this._instance.productTours)||r.getProductTours((t=>{if(0!==t.length){this.Mt(t);var r=new Set,e=t.filter((t=>!this.vt.has(t.id)&&(an(t)||sn(t))));e.length>0&&(this.qt.register(e),e.forEach((t=>this.vt.add(t.id))));var n=this.it?[]:this.qt.getTours();for(var o of t){var i,u=null==(i=o.conditions)?void 0:i.selector;if(u&&(r.add(o.id),this.Rt(o,u)),!this.it){var l=sn(o)||an(o);if(o.auto_launch&&this.Ot(o)){if(!l){this.Zt(o,"auto");continue}n.includes(o.id)&&this.Zt(o,"event")}}}this.dt.forEach((t=>{var{tour:e}=t;r.has(e.id)||this.Dt(e.id)}))}else this.jt()}),t)}Zt(t,r){var e,n=(null==(e=t.conditions)?void 0:e.autoShowDelaySeconds)||0;n>0?this.isTourPending(t.id)||this.queueTourWithDelay(t.id,n,r):this.showTour(t,{reason:r})}Ot(t){var r,e;if(!_n(t))return mn.info("Tour "+t.id+" failed conditions check"),!1;var n=null!==(r=t.display_frequency)&&void 0!==r?r:"until_interacted",o=""+nn+t.id,i=""+on+t.id,u=""+un+t.id;switch(n){case"show_once":if(tn.p(o))return mn.info("Tour "+t.id+" already shown (show_once frequency)"),!1;break;case"until_interacted":if(tn.p(i)||tn.p(u))return mn.info("Tour "+t.id+" already completed or dismissed"),!1}if(!this.Pt({flagKey:t.internal_targeting_flag_key}))return mn.info("Tour "+t.id+" failed feature flag check: "+t.internal_targeting_flag_key),!1;var l=null==(e=t.conditions)?void 0:e.linkedFlagVariant;return!!this.Pt({flagKey:t.linked_flag_key,flagVariant:l})||(mn.info("Tour "+t.id+" failed feature flag check: "+t.linked_flag_key+", variant: "+l),!1)}showTour(t,r){var e,n=null!==(e=null==r?void 0:r.reason)&&void 0!==e?e:"auto";this.cancelPendingTour(t.id),this.it=t,this.xt(0);var o=this.kt();return o?(this.wt("product tour shown",{$product_tour_id:t.id,$product_tour_name:t.name,$product_tour_iteration:t.current_iteration||1,$product_tour_render_reason:n}),this.st||(tn.h(""+nn+t.id,!0),this._instance.capture("$set",{$set:{["$product_tour_shown/"+t.id]:!0}}))):this.Ct(),o}showTourById(t,r){var e;mn.info("showTourById("+t+")"),null==(e=this._instance.productTours)||e.getProductTours((e=>{var n=e.find((r=>r.id===t));n?this.showTour(n,{reason:null!=r?r:"api"}):mn.warn("could not find tour",t)}))}previewTour(t){mn.info("Previewing tour "+t.id),this.Ct(),this.st=!0,this.it=t,this.ut=0,this.kt()}Tt(){this.it&&(this.wt("product tour completed",{$product_tour_id:this.it.id,$product_tour_steps_count:this.it.steps.length}),this.st||(tn.h(""+on+this.it.id,!0),this._instance.capture("$set",{$set:{["$product_tour_completed/"+this.it.id]:!0}})),bn.dispatchEvent(new CustomEvent("PHProductTourCompleted",{detail:{tourId:this.it.id}})),this.Ct())}kt(t){var r;if(void 0===t&&(t=0),!this.it)return!1;var e=this.it.steps[this.ut];if(!e)return mn.warn("Step "+this.ut+" not found in tour "+this.it.id),this.Ct(),!1;if("banner"===e.type)return this.wt("product tour step shown",{$product_tour_id:this.it.id,$product_tour_step_id:e.id,$product_tour_step_order:this.ut,$product_tour_step_type:"banner"}),this.ct=!1,this.Nt(),!0;if("survey"===e.type)return e.survey?(this.Ft(),!0):(mn.warn("Unable to render survey step - survey data not found"),!1);if(!ge(e))return this.wt("product tour step shown",{$product_tour_id:this.it.id,$product_tour_step_id:e.id,$product_tour_step_order:this.ut,$product_tour_step_type:e.type}),this.ct=!1,this.Ht(null),!0;var n=ye(e),o={$use_manual_selector:null!==(r=e.useManualSelector)&&void 0!==r&&r,$inference_data_present:!!e.inferenceData},i=this.ut>0?this.it.steps[this.ut-1]:null,l="click"===(null==i?void 0:i.progressionTrigger)||this.ct;if("not_found"===n.error||"not_visible"===n.error){if(l&&t<20)return setTimeout((()=>{this.kt(t+1)}),100),!1;var a=100*t;return this.wt("product tour step selector failed",u({$product_tour_id:this.it.id,$product_tour_step_id:e.id,$product_tour_step_order:this.ut,$product_tour_step_selector:e.selector,$product_tour_error:n.error,$product_tour_matches_count:n.matchCount,$product_tour_failure_phase:"runtime",$product_tour_waited_for_element:l,$product_tour_wait_duration_ms:a},o)),0!==this.ut||this.ct?(mn.warn('Tour "'+this.it.name+'" dismissed: element for step '+this.ut+" became unavailable ("+n.error+")"+(l?" after waiting "+a+"ms":"")),this.dismissTour("element_unavailable"),!1):(mn.warn('Tour "'+this.it.name+'" failed to show: element for first step not found ('+n.error+")"),!1)}if("multiple_matches"===n.error&&this.wt("product tour step selector failed",u({$product_tour_id:this.it.id,$product_tour_step_id:e.id,$product_tour_step_order:this.ut,$product_tour_step_selector:e.selector,$product_tour_error:n.error,$product_tour_matches_count:n.matchCount,$product_tour_failure_phase:"runtime"},o)),!n.element)return!1;var s=n.element,c=function(t){var r;return{tag:t.tagName,id:t.id||void 0,classes:t.className||void 0,text:(null==(r=t.innerText)?void 0:r.slice(0,100))||void 0}}(s);return this.wt("product tour step shown",u({$product_tour_id:this.it.id,$product_tour_step_id:e.id,$product_tour_step_order:this.ut,$product_tour_step_selector:e.selector,$product_tour_step_selector_found:!0,$product_tour_step_element_tag:c.tag,$product_tour_step_element_id:c.id,$product_tour_step_element_classes:c.classes,$product_tour_step_element_text:c.text},o)),this.ct=!1,this.Ht(s),!0}Ht(t,r,e){if(this.it){var n=this.it.steps[this.ut],{shadow:o}=function(t){var r=wn+"-"+t.id,e=gn.querySelector("."+r);if(e&&e.shadowRoot)return{shadow:e.shadowRoot,isNewlyCreated:!1};var n=gn.createElement("div");n.className=r,ke(n,t.appearance);var o=n.attachShadow({mode:"open"}),i=me();return i&&o.appendChild(i),gn.body.appendChild(n),{shadow:o,isNewlyCreated:!0}}(this.it);U(Ae(We,{tour:this.it,step:n,stepIndex:this.ut,totalSteps:this.it.steps.length,targetElement:t,onNext:this.nextStep,onPrevious:this.previousStep,onDismiss:e||this.dismissTour,onSurveySubmit:r,onButtonClick:this.St}),o)}}Nt(){if(this.it){var t,r=this.it.steps[this.ut],e=function(t,r){var e=wn+"-"+t.id,n=gn.querySelector("."+e);if(n&&n.shadowRoot)return{shadow:n.shadowRoot,isNewlyCreated:!1};var o=gn.createElement("div");o.className=e,ke(o,t.appearance);var i=o.attachShadow({mode:"open"}),u=me();if(u&&i.appendChild(u),"custom"===(null==r?void 0:r.behavior)&&r.selector){var l=gn.querySelector(r.selector);if(!l)return mn.warn("Custom banner container not found: "+r.selector+". Banner will not be displayed."),null;l.appendChild(o)}else gn.body.insertBefore(o,gn.body.firstChild);return{shadow:i,isNewlyCreated:!0}}(this.it,r.bannerConfig);if(!e)return this.wt("product tour banner container selector failed",{$product_tour_id:this.it.id,$product_tour_banner_selector:null==r||null==(t=r.bannerConfig)?void 0:t.selector}),void this.dismissTour("container_unavailable");var{shadow:n}=e;U(Ae(Ke,{step:r,onDismiss:()=>this.dismissTour("user_clicked_skip"),onTriggerTour:()=>{var t,e=null==(t=r.bannerConfig)||null==(t=t.action)?void 0:t.tourId;e&&(this.Ct(),this.showTourById(e))},displayFrequency:this.it.display_frequency}),n)}}Ft(){var t,r,e;if(this.it){var n=this.it.id,o=this.it.steps[this.ut],i=o.linkedSurveyId,l=o.linkedSurveyQuestionId,a=(null==(t=o.survey)?void 0:t.questionText)||"";this.wt("product tour step shown",{$product_tour_id:this.it.id,$product_tour_step_id:o.id,$product_tour_step_order:this.ut,$product_tour_step_type:"survey",$product_tour_linked_survey_id:i}),this.wt(G.SHOWN,{[K.SURVEY_ID]:i,[K.PRODUCT_TOUR_ID]:n,sessionRecordingUrl:null==(r=(e=this._instance).get_session_replay_url)?void 0:r.call(e)});this.Ht(null,(t=>{var r,e,o=l?"$survey_response_"+l:"$survey_response";this.wt(G.SENT,u({[K.SURVEY_ID]:i,[K.PRODUCT_TOUR_ID]:n,[K.SURVEY_QUESTIONS]:[{id:l,question:a,response:t}],[K.SURVEY_COMPLETED]:!0,sessionRecordingUrl:null==(r=(e=this._instance).get_session_replay_url)?void 0:r.call(e)},!vr(t)&&{[o]:t})),mn.info("Survey "+i+" completed",vr(t)?"(skipped)":"with response: "+t),this.nextStep()}),(t=>{var r,e;this.wt(G.DISMISSED,{[K.SURVEY_ID]:i,[K.PRODUCT_TOUR_ID]:n,[K.SURVEY_QUESTIONS]:[{id:l,question:a,response:null}],[K.SURVEY_PARTIALLY_COMPLETED]:!1,sessionRecordingUrl:null==(r=(e=this._instance).get_session_replay_url)?void 0:r.call(e)}),mn.info("Survey "+i+" dismissed"),this.dismissTour(t)})),mn.info("Rendered survey step for tour step "+this.ut)}}Pt(t){var{flagKey:r,flagVariant:e}=t;if(!r)return!0;var n=!!this._instance.featureFlags.isFeatureEnabled(r,{send_event:!r.startsWith("product-tour-targeting-")}),o=!0;e&&(o=this._instance.featureFlags.getFeatureFlag(r,{send_event:!1})===e||"any"===e);return n&&o}Ct(){var t,r,e;this.it&&(t=this.it.id,r=wn+"-"+t,null!=(e=gn.querySelector("."+r))&&e.shadowRoot&&U(null,e.shadowRoot),null==e||e.remove()),this.it=null,this.ut=0,this.st=!1,this.ct=!1,this.At()}Rt(t,r){var e=gn.querySelector(r),n=this.dt.get(t.id);if(e){if(n){if(e===n.element)return;mn.info("Trigger element changed for tour "+t.id+". Re-attaching listener."),this.Dt(t.id)}if(!e.hasAttribute(xn)){var o=e=>{var n;if(this.it)mn.info("Tour "+t.id+" trigger clicked but another tour is active");else{var o;if(null==(n=this._instance.productTours)||n.getProductTours((r=>{o=r.find((r=>r.id===t.id))})),!o)return mn.warn("Tour "+t.id+" no longer exists. Removing stale listener."),void this.Dt(t.id);yn(o)?(mn.info("Tour "+t.id+" triggered by click on "+r),this.showTour(o,{reason:"trigger"})?e.preventDefault():mn.info("Tour "+t.id+" failed to show; not intercepting click.")):mn.warn("Tour "+t.id+" trigger clicked, but tour is not launched - not showing tour.")}};Er(e,"click",o),e.setAttribute(xn,t.id),this.dt.set(t.id,{element:e,listener:o,tour:t}),mn.info("Attached trigger listener for tour "+t.id+" on "+r)}}else n&&this.Dt(t.id)}Dt(t){var r=this.dt.get(t);r&&(r.element.removeEventListener("click",r.listener),r.element.removeAttribute(xn),this.dt.delete(t),mn.info("Removed trigger listener for tour "+t))}jt(){this.dt.forEach(((t,r)=>{this.Dt(r)}))}wt(t,r){this.st||this._instance.capture(t,r)}getActiveProductTours(t){var r;null==(r=this._instance.productTours)||r.getProductTours(((r,e)=>{if(null!=e&&e.isLoaded){var n=r.filter((t=>this.Ot(t)));t(n,e)}else t([],e)}))}resetTour(t){tn.v(""+nn+t),tn.v(""+on+t),tn.v(""+un+t)}resetAllTours(){var t=null==bn?void 0:bn.localStorage;if(t){for(var r=[],e=0;e<t.length;e++){var n=t.key(e);(null!=n&&n.startsWith(nn)||null!=n&&n.startsWith(on)||null!=n&&n.startsWith(un))&&r.push(n)}r.forEach((t=>tn.v(t)))}}cancelPendingTour(t){var r=this.ft.get(t);r&&(clearTimeout(r),this.ft.delete(t),mn.info("Cancelled pending tour: "+t))}zt(){this.ft.forEach((t=>clearTimeout(t))),this.ft.clear()}isTourPending(t){return this.ft.has(t)}queueTourWithDelay(t,r,e){mn.info("Queueing tour "+t+" with "+r+"s delay");var n=setTimeout((()=>{this.ft.delete(t),mn.info("Delay elapsed for tour "+t+", showing now"),this.showTourById(t,e)}),1e3*r);this.ft.set(t,n)}}function Tn(t,r){if(o){var e=new kn(t);return r&&e.start(),e}}i.__PosthogExtensions__=i.__PosthogExtensions__||{},i.__PosthogExtensions__.generateProductTours=Tn,t.default=Tn,t.elementIsVisible=xr,t.findElement=Sr,t.getElementPath=function(t,r){if(void 0===r&&(r=4),!t)return null;for(var e=[],n=t;n&&e.length<r&&"BODY"!==n.tagName;){var o=n.tagName.toLowerCase();n.id?o+="#"+n.id:n.classList.length&&(o+="."+n.classList[0]),e.unshift(o),n=n.parentElement}return e.join(" > ")},Object.defineProperty(t,"__esModule",{value:!0})}({});
|
|
1
|
+
!function(t){"use strict";var e="undefined"!=typeof window?window:void 0,r="undefined"!=typeof globalThis?globalThis:e;"undefined"==typeof self&&(r.self=r),"undefined"==typeof File&&(r.File=function(){});var n=null==r?void 0:r.navigator,o=null==r?void 0:r.document;null==r||r.location,null==r||r.fetch,null!=r&&r.XMLHttpRequest&&"withCredentials"in new r.XMLHttpRequest&&r.XMLHttpRequest,null==r||r.AbortController,null==n||n.userAgent;var i=null!=e?e:{};function l(){return l=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},l.apply(null,arguments)}var a,u,s,c,h,f,d,p,v,m,g,b,y={},x=[],w=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,_=Array.isArray;function k(t,e){for(var r in e)t[r]=e[r];return t}function T(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function C(t,e,r,n,o){var i={type:t,props:e,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==o?++s:o,__i:-1,__u:0};return null==o&&null!=u.vnode&&u.vnode(i),i}function S(t){return t.children}function q(t,e){this.props=t,this.context=e}function M(t,e){if(null==e)return t.__?M(t.__,t.__i+1):null;for(var r;e<t.__k.length;e++)if(null!=(r=t.__k[e])&&null!=r.__e)return r.__e;return"function"==typeof t.type?M(t):null}function A(t){var e,r;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(r=t.__k[e])&&null!=r.__e){t.__e=t.__c.base=r.__e;break}return A(t)}}function L(t){(!t.__d&&(t.__d=!0)&&c.push(t)&&!$.__r++||h!=u.debounceRendering)&&((h=u.debounceRendering)||f)($)}function $(){for(var t,e,r,n,o,i,l,a=1;c.length;)c.length>a&&c.sort(d),t=c.shift(),a=c.length,t.__d&&(r=void 0,n=void 0,o=(n=(e=t).__v).__e,i=[],l=[],e.__P&&((r=k({},n)).__v=n.__v+1,u.vnode&&u.vnode(r),Z(e.__P,r,n,e.__n,e.__P.namespaceURI,32&n.__u?[o]:null,i,null==o?M(n):o,!!(32&n.__u),l),r.__v=n.__v,r.__.__k[r.__i]=r,P(i,r,l),n.__e=n.__=null,r.__e!=o&&A(r)));$.__r=0}function E(t,e,r,n,o,i,l,a,u,s,c){var h,f,d,p,v,m,g,b=n&&n.__k||x,w=e.length;for(u=function(t,e,r,n,o){var i,l,a,u,s,c=r.length,h=c,f=0;for(t.__k=new Array(o),i=0;i<o;i++)null!=(l=e[i])&&"boolean"!=typeof l&&"function"!=typeof l?("string"==typeof l||"number"==typeof l||"bigint"==typeof l||l.constructor==String?l=t.__k[i]=C(null,l,null,null,null):_(l)?l=t.__k[i]=C(S,{children:l},null,null,null):void 0===l.constructor&&l.__b>0?l=t.__k[i]=C(l.type,l.props,l.key,l.ref?l.ref:null,l.__v):t.__k[i]=l,u=i+f,l.__=t,l.__b=t.__b+1,a=null,-1!=(s=l.__i=j(l,r,u,h))&&(h--,(a=r[s])&&(a.__u|=2)),null==a||null==a.__v?(-1==s&&(o>c?f--:o<c&&f++),"function"!=typeof l.type&&(l.__u|=4)):s!=u&&(s==u-1?f--:s==u+1?f++:(s>u?f--:f++,l.__u|=4))):t.__k[i]=null;if(h)for(i=0;i<c;i++)null!=(a=r[i])&&0==(2&a.__u)&&(a.__e==n&&(n=M(a)),V(a,a));return n}(r,e,b,u,w),h=0;h<w;h++)null!=(d=r.__k[h])&&(f=-1==d.__i?y:b[d.__i]||y,d.__i=h,m=Z(t,d,f,o,i,l,a,u,s,c),p=d.__e,d.ref&&f.ref!=d.ref&&(f.ref&&H(f.ref,null,d),c.push(d.ref,d.__c||p,d)),null==v&&null!=p&&(v=p),(g=!!(4&d.__u))||f.__k===d.__k?u=I(d,u,t,g):"function"==typeof d.type&&void 0!==m?u=m:p&&(u=p.nextSibling),d.__u&=-7);return r.__e=v,u}function I(t,e,r,n){var o,i;if("function"==typeof t.type){for(o=t.__k,i=0;o&&i<o.length;i++)o[i]&&(o[i].__=t,e=I(o[i],e,r,n));return e}t.__e!=e&&(n&&(e&&t.type&&!e.parentNode&&(e=M(t)),r.insertBefore(t.__e,e||null)),e=t.__e);do{e=e&&e.nextSibling}while(null!=e&&8==e.nodeType);return e}function j(t,e,r,n){var o,i,l,a=t.key,u=t.type,s=e[r],c=null!=s&&0==(2&s.__u);if(null===s&&null==a||c&&a==s.key&&u==s.type)return r;if(n>(c?1:0))for(o=r-1,i=r+1;o>=0||i<e.length;)if(null!=(s=e[l=o>=0?o--:i++])&&0==(2&s.__u)&&a==s.key&&u==s.type)return l;return-1}function z(t,e,r){"-"==e[0]?t.setProperty(e,null==r?"":r):t[e]=null==r?"":"number"!=typeof r||w.test(e)?r:r+"px"}function R(t,e,r,n,o){var i,l;t:if("style"==e)if("string"==typeof r)t.style.cssText=r;else{if("string"==typeof n&&(t.style.cssText=n=""),n)for(e in n)r&&e in r||z(t.style,e,"");if(r)for(e in r)n&&r[e]==n[e]||z(t.style,e,r[e])}else if("o"==e[0]&&"n"==e[1])i=e!=(e=e.replace(p,"$1")),l=e.toLowerCase(),e=l in t||"onFocusOut"==e||"onFocusIn"==e?l.slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=r,r?n?r.u=n.u:(r.u=v,t.addEventListener(e,i?g:m,i)):t.removeEventListener(e,i?g:m,i);else{if("http://www.w3.org/2000/svg"==o)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=e&&"height"!=e&&"href"!=e&&"list"!=e&&"form"!=e&&"tabIndex"!=e&&"download"!=e&&"rowSpan"!=e&&"colSpan"!=e&&"role"!=e&&"popover"!=e&&e in t)try{t[e]=null==r?"":r;break t}catch(t){}"function"==typeof r||(null==r||!1===r&&"-"!=e[4]?t.removeAttribute(e):t.setAttribute(e,"popover"==e&&1==r?"":r))}}function O(t){return function(e){if(this.l){var r=this.l[e.type+t];if(null==e.t)e.t=v++;else if(e.t<r.u)return;return r(u.event?u.event(e):e)}}}function Z(t,e,r,n,o,i,l,a,s,c){var h,f,d,p,v,m,g,b,y,x,w,$,C,M,A,L,I,j=e.type;if(void 0!==e.constructor)return null;128&r.__u&&(s=!!(32&r.__u),i=[a=e.__e=r.__e]),(h=u.__b)&&h(e);t:if("function"==typeof j)try{if(b=e.props,y="prototype"in j&&j.prototype.render,x=(h=j.contextType)&&n[h.__c],w=h?x?x.props.value:h.__:n,r.__c?g=(f=e.__c=r.__c).__=f.__E:(y?e.__c=f=new j(b,w):(e.__c=f=new q(b,w),f.constructor=j,f.render=B),x&&x.sub(f),f.state||(f.state={}),f.__n=n,d=f.__d=!0,f.__h=[],f._sb=[]),y&&null==f.__s&&(f.__s=f.state),y&&null!=j.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=k({},f.__s)),k(f.__s,j.getDerivedStateFromProps(b,f.__s))),p=f.props,v=f.state,f.__v=e,d)y&&null==j.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),y&&null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(y&&null==j.getDerivedStateFromProps&&b!==p&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(b,w),e.__v==r.__v||!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(b,f.__s,w)){for(e.__v!=r.__v&&(f.props=b,f.state=f.__s,f.__d=!1),e.__e=r.__e,e.__k=r.__k,e.__k.some((function(t){t&&(t.__=e)})),$=0;$<f._sb.length;$++)f.__h.push(f._sb[$]);f._sb=[],f.__h.length&&l.push(f);break t}null!=f.componentWillUpdate&&f.componentWillUpdate(b,f.__s,w),y&&null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(p,v,m)}))}if(f.context=w,f.props=b,f.__P=t,f.__e=!1,C=u.__r,M=0,y){for(f.state=f.__s,f.__d=!1,C&&C(e),h=f.render(f.props,f.state,f.context),A=0;A<f._sb.length;A++)f.__h.push(f._sb[A]);f._sb=[]}else do{f.__d=!1,C&&C(e),h=f.render(f.props,f.state,f.context),f.state=f.__s}while(f.__d&&++M<25);f.state=f.__s,null!=f.getChildContext&&(n=k(k({},n),f.getChildContext())),y&&!d&&null!=f.getSnapshotBeforeUpdate&&(m=f.getSnapshotBeforeUpdate(p,v)),L=h,null!=h&&h.type===S&&null==h.key&&(L=N(h.props.children)),a=E(t,_(L)?L:[L],e,r,n,o,i,l,a,s,c),f.base=e.__e,e.__u&=-161,f.__h.length&&l.push(f),g&&(f.__E=f.__=null)}catch(t){if(e.__v=null,s||null!=i)if(t.then){for(e.__u|=s?160:128;a&&8==a.nodeType&&a.nextSibling;)a=a.nextSibling;i[i.indexOf(a)]=null,e.__e=a}else{for(I=i.length;I--;)T(i[I]);D(e)}else e.__e=r.__e,e.__k=r.__k,t.then||D(e);u.__e(t,e,r)}else null==i&&e.__v==r.__v?(e.__k=r.__k,e.__e=r.__e):a=e.__e=F(r.__e,e,r,n,o,i,l,s,c);return(h=u.diffed)&&h(e),128&e.__u?void 0:a}function D(t){t&&t.__c&&(t.__c.__e=!0),t&&t.__k&&t.__k.forEach(D)}function P(t,e,r){for(var n=0;n<r.length;n++)H(r[n],r[++n],r[++n]);u.__c&&u.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){u.__e(t,e.__v)}}))}function N(t){return"object"!=typeof t||null==t||t.__b&&t.__b>0?t:_(t)?t.map(N):k({},t)}function F(t,e,r,n,o,i,l,s,c){var h,f,d,p,v,m,g,b=r.props||y,x=e.props,w=e.type;if("svg"==w?o="http://www.w3.org/2000/svg":"math"==w?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),null!=i)for(h=0;h<i.length;h++)if((v=i[h])&&"setAttribute"in v==!!w&&(w?v.localName==w:3==v.nodeType)){t=v,i[h]=null;break}if(null==t){if(null==w)return document.createTextNode(x);t=document.createElementNS(o,w,x.is&&x),s&&(u.__m&&u.__m(e,i),s=!1),i=null}if(null==w)b===x||s&&t.data==x||(t.data=x);else{if(i=i&&a.call(t.childNodes),!s&&null!=i)for(b={},h=0;h<t.attributes.length;h++)b[(v=t.attributes[h]).name]=v.value;for(h in b)if(v=b[h],"children"==h);else if("dangerouslySetInnerHTML"==h)d=v;else if(!(h in x)){if("value"==h&&"defaultValue"in x||"checked"==h&&"defaultChecked"in x)continue;R(t,h,null,v,o)}for(h in x)v=x[h],"children"==h?p=v:"dangerouslySetInnerHTML"==h?f=v:"value"==h?m=v:"checked"==h?g=v:s&&"function"!=typeof v||b[h]===v||R(t,h,v,b[h],o);if(f)s||d&&(f.__html==d.__html||f.__html==t.innerHTML)||(t.innerHTML=f.__html),e.__k=[];else if(d&&(t.innerHTML=""),E("template"==e.type?t.content:t,_(p)?p:[p],e,r,n,"foreignObject"==w?"http://www.w3.org/1999/xhtml":o,i,l,i?i[0]:r.__k&&M(r,0),s,c),null!=i)for(h=i.length;h--;)T(i[h]);s||(h="value","progress"==w&&null==m?t.removeAttribute("value"):null!=m&&(m!==t[h]||"progress"==w&&!m||"option"==w&&m!=b[h])&&R(t,h,m,b[h],o),h="checked",null!=g&&g!=t[h]&&R(t,h,g,b[h],o))}return t}function H(t,e,r){try{if("function"==typeof t){var n="function"==typeof t.__u;n&&t.__u(),n&&null==e||(t.__u=t(e))}else t.current=e}catch(t){u.__e(t,r)}}function V(t,e,r){var n,o;if(u.unmount&&u.unmount(t),(n=t.ref)&&(n.current&&n.current!=t.__e||H(n,null,e)),null!=(n=t.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(t){u.__e(t,e)}n.base=n.__P=null}if(n=t.__k)for(o=0;o<n.length;o++)n[o]&&V(n[o],e,r||"function"!=typeof t.type);r||T(t.__e),t.__c=t.__=t.__e=void 0}function B(t,e,r){return this.constructor(t,r)}function U(t,e,r){var n,o,i;e==document&&(e=document.documentElement),u.__&&u.__(t,e),n=!1?null:e.__k,o=[],i=[],Z(e,t=e.__k=function(t,e,r){var n,o,i,l={};for(i in e)"key"==i?n=e[i]:"ref"==i?o=e[i]:l[i]=e[i];if(arguments.length>2&&(l.children=arguments.length>3?a.call(arguments,2):r),"function"==typeof t&&null!=t.defaultProps)for(i in t.defaultProps)void 0===l[i]&&(l[i]=t.defaultProps[i]);return C(t,l,n,o,null)}(S,null,[t]),n||y,y,e.namespaceURI,n?null:e.firstChild?a.call(e.childNodes):null,o,n?n.__e:e.firstChild,false,i),P(o,t,i)}a=x.slice,u={__e:function(t,e,r,n){for(var o,i,l;e=e.__;)if((o=e.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(t)),l=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(t,n||{}),l=o.__d),l)return o.__E=o}catch(e){t=e}throw t}},s=0,q.prototype.setState=function(t,e){var r;r=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=k({},this.state),"function"==typeof t&&(t=t(k({},r),this.props)),t&&k(r,t),null!=t&&this.__v&&(e&&this._sb.push(e),L(this))},q.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),L(this))},q.prototype.render=S,c=[],f="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,d=function(t,e){return t.__v.__b-e.__v.__b},$.__r=0,p=/(PointerCapture)$|Capture$/i,v=0,m=O(!1),g=O(!0),b=0;var Q={backgroundColor:"#ffffff",textColor:"#1d1f27",buttonColor:"#1d1f27",borderRadius:8,buttonBorderRadius:6,borderColor:"#e5e7eb",fontFamily:"system-ui",boxShadow:"0 4px 12px rgba(0, 0, 0, 0.15)",showOverlay:!0,whiteLabel:!1,dismissOnClickOutside:!0,zIndex:2147483646},W=function(t){return t.SHOWN="product tour shown",t.DISMISSED="product tour dismissed",t.COMPLETED="product tour completed",t.STEP_SHOWN="product tour step shown",t.STEP_COMPLETED="product tour step completed",t.BUTTON_CLICKED="product tour button clicked",t.STEP_SELECTOR_FAILED="product tour step selector failed",t.BANNER_CONTAINER_SELECTOR_FAILED="product tour banner container selector failed",t}({}),Y=function(t){return t.TOUR_ID="$product_tour_id",t.TOUR_NAME="$product_tour_name",t.TOUR_ITERATION="$product_tour_iteration",t.TOUR_RENDER_REASON="$product_tour_render_reason",t.TOUR_STEP_ID="$product_tour_step_id",t.TOUR_STEP_ORDER="$product_tour_step_order",t.TOUR_STEP_TYPE="$product_tour_step_type",t.TOUR_DISMISS_REASON="$product_tour_dismiss_reason",t.TOUR_BUTTON_TEXT="$product_tour_button_text",t.TOUR_BUTTON_ACTION="$product_tour_button_action",t.TOUR_BUTTON_LINK="$product_tour_button_link",t.TOUR_BUTTON_TOUR_ID="$product_tour_button_tour_id",t.TOUR_STEPS_COUNT="$product_tour_steps_count",t.TOUR_STEP_SELECTOR="$product_tour_step_selector",t.TOUR_STEP_SELECTOR_FOUND="$product_tour_step_selector_found",t.TOUR_STEP_ELEMENT_TAG="$product_tour_step_element_tag",t.TOUR_STEP_ELEMENT_ID="$product_tour_step_element_id",t.TOUR_STEP_ELEMENT_CLASSES="$product_tour_step_element_classes",t.TOUR_STEP_ELEMENT_TEXT="$product_tour_step_element_text",t.TOUR_ERROR="$product_tour_error",t.TOUR_MATCHES_COUNT="$product_tour_matches_count",t.TOUR_FAILURE_PHASE="$product_tour_failure_phase",t.TOUR_WAITED_FOR_ELEMENT="$product_tour_waited_for_element",t.TOUR_WAIT_DURATION_MS="$product_tour_wait_duration_ms",t.TOUR_BANNER_SELECTOR="$product_tour_banner_selector",t.TOUR_LINKED_SURVEY_ID="$product_tour_linked_survey_id",t.USE_MANUAL_SELECTOR="$use_manual_selector",t.INFERENCE_DATA_PRESENT="$inference_data_present",t}({}),X=function(t){return t.Activation="events",t.Cancellation="cancelEvents",t}({}),G=function(t){return t.Button="button",t.Tab="tab",t.Selector="selector",t}({}),K=function(t){return t.TopLeft="top_left",t.TopRight="top_right",t.TopCenter="top_center",t.MiddleLeft="middle_left",t.MiddleRight="middle_right",t.MiddleCenter="middle_center",t.Left="left",t.Center="center",t.Right="right",t.NextToTrigger="next_to_trigger",t}({}),J=function(t){return t.Popover="popover",t.API="api",t.Widget="widget",t.ExternalSurvey="external_survey",t}({}),tt=function(t){return t.SHOWN="survey shown",t.DISMISSED="survey dismissed",t.SENT="survey sent",t.ABANDONED="survey abandoned",t}({}),et=function(t){return t.SURVEY_ID="$survey_id",t.SURVEY_NAME="$survey_name",t.SURVEY_RESPONSE="$survey_response",t.SURVEY_ITERATION="$survey_iteration",t.SURVEY_ITERATION_START_DATE="$survey_iteration_start_date",t.SURVEY_PARTIALLY_COMPLETED="$survey_partially_completed",t.SURVEY_SUBMISSION_ID="$survey_submission_id",t.SURVEY_QUESTIONS="$survey_questions",t.SURVEY_COMPLETED="$survey_completed",t.PRODUCT_TOUR_ID="$product_tour_id",t.SURVEY_LAST_SEEN_DATE="$survey_last_seen_date",t}({}),{entries:rt,setPrototypeOf:nt,isFrozen:ot,getPrototypeOf:it,getOwnPropertyDescriptor:lt}=Object,{freeze:at,seal:ut,create:st}=Object,{apply:ct,construct:ht}="undefined"!=typeof Reflect&&Reflect;at||(at=function(t){return t}),ut||(ut=function(t){return t}),ct||(ct=function(t,e){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];return t.apply(e,n)}),ht||(ht=function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return new t(...r)});var ft,dt=qt(Array.prototype.forEach),pt=qt(Array.prototype.lastIndexOf),vt=qt(Array.prototype.pop),mt=qt(Array.prototype.push),gt=qt(Array.prototype.splice),bt=qt(String.prototype.toLowerCase),yt=qt(String.prototype.toString),xt=qt(String.prototype.match),wt=qt(String.prototype.replace),_t=qt(String.prototype.indexOf),kt=qt(String.prototype.trim),Tt=qt(Object.prototype.hasOwnProperty),Ct=qt(RegExp.prototype.test),St=(ft=TypeError,function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return ht(ft,e)});function qt(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return ct(t,e,n)}}function Mt(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:bt;nt&&nt(t,null);for(var n=e.length;n--;){var o=e[n];if("string"==typeof o){var i=r(o);i!==o&&(ot(e)||(e[n]=i),o=i)}t[o]=!0}return t}function At(t){for(var e=0;e<t.length;e++){Tt(t,e)||(t[e]=null)}return t}function Lt(t){var e=st(null);for(var[r,n]of rt(t)){Tt(t,r)&&(Array.isArray(n)?e[r]=At(n):n&&"object"==typeof n&&n.constructor===Object?e[r]=Lt(n):e[r]=n)}return e}function Et(t,e){for(;null!==t;){var r=lt(t,e);if(r){if(r.get)return qt(r.get);if("function"==typeof r.value)return qt(r.value)}t=it(t)}return function(){return null}}var It=at(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),jt=at(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),zt=at(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),$t=at(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Rt=at(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Ot=at(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Zt=at(["#text"]),Dt=at(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Pt=at(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Nt=at(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Ft=at(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ht=ut(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Vt=ut(/<%[\w\W]*|[\w\W]*%>/gm),Bt=ut(/\$\{[\w\W]*/gm),Ut=ut(/^data-[\-\w.\u00B7-\uFFFF]+$/),Qt=ut(/^aria-[\-\w]+$/),Wt=ut(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Yt=ut(/^(?:\w+script|data):/i),Xt=ut(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Gt=ut(/^html$/i),Kt=ut(/^[a-z][.\w]*(-[.\w]+)+$/i),Jt=Object.freeze({__proto__:null,ARIA_ATTR:Qt,ATTR_WHITESPACE:Xt,CUSTOM_ELEMENT:Kt,DATA_ATTR:Ut,DOCTYPE_NAME:Gt,ERB_EXPR:Vt,IS_ALLOWED_URI:Wt,IS_SCRIPT_OR_DATA:Yt,MUSTACHE_EXPR:Ht,TMPLIT_EXPR:Bt}),te=1,ee=3,re=7,ne=8,oe=9,ie=function(){return"undefined"==typeof window?null:window};var le=function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ie(),r=e=>t(e);if(r.version="3.3.1",r.removed=[],!e||!e.document||e.document.nodeType!==oe||!e.Element)return r.isSupported=!1,r;var n,{document:o}=e,i=o,l=i.currentScript,{DocumentFragment:a,HTMLTemplateElement:u,Node:s,Element:c,NodeFilter:h,NamedNodeMap:f=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:p,trustedTypes:v}=e,m=c.prototype,g=Et(m,"cloneNode"),b=Et(m,"remove"),y=Et(m,"nextSibling"),x=Et(m,"childNodes"),w=Et(m,"parentNode");if("function"==typeof u){var _=o.createElement("template");_.content&&_.content.ownerDocument&&(o=_.content.ownerDocument)}var k="",{implementation:T,createNodeIterator:C,createDocumentFragment:S,getElementsByTagName:q}=o,{importNode:M}=i,A={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};r.isSupported="function"==typeof rt&&"function"==typeof w&&T&&void 0!==T.createHTMLDocument;var{MUSTACHE_EXPR:L,ERB_EXPR:E,TMPLIT_EXPR:I,DATA_ATTR:j,ARIA_ATTR:z,IS_SCRIPT_OR_DATA:R,ATTR_WHITESPACE:O,CUSTOM_ELEMENT:Z}=Jt,{IS_ALLOWED_URI:D}=Jt,P=null,N=Mt({},[...It,...jt,...zt,...Rt,...Zt]),F=null,H=Mt({},[...Dt,...Pt,...Nt,...Ft]),V=Object.seal(st(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),B=null,U=null,Q=Object.seal(st(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),W=!0,Y=!0,X=!1,G=!0,K=!1,J=!0,tt=!1,et=!1,nt=!1,ot=!1,it=!1,lt=!1,ut=!0,ct=!1,ht=!0,ft=!1,qt={},At=null,Ht=Mt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Vt=null,Bt=Mt({},["audio","video","img","source","image","track"]),Ut=null,Qt=Mt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Yt="http://www.w3.org/1998/Math/MathML",Xt="http://www.w3.org/2000/svg",Kt="http://www.w3.org/1999/xhtml",le=Kt,ae=!1,ue=null,se=Mt({},[Yt,Xt,Kt],yt),ce=Mt({},["mi","mo","mn","ms","mtext"]),he=Mt({},["annotation-xml"]),fe=Mt({},["title","style","font","a","script"]),de=null,pe=["application/xhtml+xml","text/html"],ve=null,me=null,ge=o.createElement("form"),be=function(t){return t instanceof RegExp||t instanceof Function},ye=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!me||me!==t){if(t&&"object"==typeof t||(t={}),t=Lt(t),de=-1===pe.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,ve="application/xhtml+xml"===de?yt:bt,P=Tt(t,"ALLOWED_TAGS")?Mt({},t.ALLOWED_TAGS,ve):N,F=Tt(t,"ALLOWED_ATTR")?Mt({},t.ALLOWED_ATTR,ve):H,ue=Tt(t,"ALLOWED_NAMESPACES")?Mt({},t.ALLOWED_NAMESPACES,yt):se,Ut=Tt(t,"ADD_URI_SAFE_ATTR")?Mt(Lt(Qt),t.ADD_URI_SAFE_ATTR,ve):Qt,Vt=Tt(t,"ADD_DATA_URI_TAGS")?Mt(Lt(Bt),t.ADD_DATA_URI_TAGS,ve):Bt,At=Tt(t,"FORBID_CONTENTS")?Mt({},t.FORBID_CONTENTS,ve):Ht,B=Tt(t,"FORBID_TAGS")?Mt({},t.FORBID_TAGS,ve):Lt({}),U=Tt(t,"FORBID_ATTR")?Mt({},t.FORBID_ATTR,ve):Lt({}),qt=!!Tt(t,"USE_PROFILES")&&t.USE_PROFILES,W=!1!==t.ALLOW_ARIA_ATTR,Y=!1!==t.ALLOW_DATA_ATTR,X=t.ALLOW_UNKNOWN_PROTOCOLS||!1,G=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,K=t.SAFE_FOR_TEMPLATES||!1,J=!1!==t.SAFE_FOR_XML,tt=t.WHOLE_DOCUMENT||!1,ot=t.RETURN_DOM||!1,it=t.RETURN_DOM_FRAGMENT||!1,lt=t.RETURN_TRUSTED_TYPE||!1,nt=t.FORCE_BODY||!1,ut=!1!==t.SANITIZE_DOM,ct=t.SANITIZE_NAMED_PROPS||!1,ht=!1!==t.KEEP_CONTENT,ft=t.IN_PLACE||!1,D=t.ALLOWED_URI_REGEXP||Wt,le=t.NAMESPACE||Kt,ce=t.MATHML_TEXT_INTEGRATION_POINTS||ce,he=t.HTML_INTEGRATION_POINTS||he,V=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&be(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(V.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&be(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(V.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(V.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),K&&(Y=!1),it&&(ot=!0),qt&&(P=Mt({},Zt),F=[],!0===qt.html&&(Mt(P,It),Mt(F,Dt)),!0===qt.svg&&(Mt(P,jt),Mt(F,Pt),Mt(F,Ft)),!0===qt.svgFilters&&(Mt(P,zt),Mt(F,Pt),Mt(F,Ft)),!0===qt.mathMl&&(Mt(P,Rt),Mt(F,Nt),Mt(F,Ft))),t.ADD_TAGS&&("function"==typeof t.ADD_TAGS?Q.tagCheck=t.ADD_TAGS:(P===N&&(P=Lt(P)),Mt(P,t.ADD_TAGS,ve))),t.ADD_ATTR&&("function"==typeof t.ADD_ATTR?Q.attributeCheck=t.ADD_ATTR:(F===H&&(F=Lt(F)),Mt(F,t.ADD_ATTR,ve))),t.ADD_URI_SAFE_ATTR&&Mt(Ut,t.ADD_URI_SAFE_ATTR,ve),t.FORBID_CONTENTS&&(At===Ht&&(At=Lt(At)),Mt(At,t.FORBID_CONTENTS,ve)),t.ADD_FORBID_CONTENTS&&(At===Ht&&(At=Lt(At)),Mt(At,t.ADD_FORBID_CONTENTS,ve)),ht&&(P["#text"]=!0),tt&&Mt(P,["html","head","body"]),P.table&&(Mt(P,["tbody"]),delete B.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw St('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw St('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');n=t.TRUSTED_TYPES_POLICY,k=n.createHTML("")}else void 0===n&&(n=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;var r=null,n="data-tt-policy-suffix";e&&e.hasAttribute(n)&&(r=e.getAttribute(n));var o="dompurify"+(r?"#"+r:"");try{return t.createPolicy(o,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(v,l)),null!==n&&"string"==typeof k&&(k=n.createHTML(""));at&&at(t),me=t}},xe=Mt({},[...jt,...zt,...$t]),we=Mt({},[...Rt,...Ot]),_e=function(t){mt(r.removed,{element:t});try{w(t).removeChild(t)}catch(e){b(t)}},ke=function(t,e){try{mt(r.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){mt(r.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t)if(ot||it)try{_e(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},Te=function(t){var e=null,r=null;if(nt)t="<remove></remove>"+t;else{var i=xt(t,/^[\r\n\t ]+/);r=i&&i[0]}"application/xhtml+xml"===de&&le===Kt&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");var l=n?n.createHTML(t):t;if(le===Kt)try{e=(new p).parseFromString(l,de)}catch(t){}if(!e||!e.documentElement){e=T.createDocument(le,"template",null);try{e.documentElement.innerHTML=ae?k:l}catch(t){}}var a=e.body||e.documentElement;return t&&r&&a.insertBefore(o.createTextNode(r),a.childNodes[0]||null),le===Kt?q.call(e,tt?"html":"body")[0]:tt?e.documentElement:a},Ce=function(t){return C.call(t.ownerDocument||t,t,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},Se=function(t){return t instanceof d&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof f)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)},qe=function(t){return"function"==typeof s&&t instanceof s};function Me(t,e,n){dt(t,(t=>{t.call(r,e,n,me)}))}var Ae=function(t){var e=null;if(Me(A.beforeSanitizeElements,t,null),Se(t))return _e(t),!0;var n=ve(t.nodeName);if(Me(A.uponSanitizeElement,t,{tagName:n,allowedTags:P}),J&&t.hasChildNodes()&&!qe(t.firstElementChild)&&Ct(/<[/\w!]/g,t.innerHTML)&&Ct(/<[/\w!]/g,t.textContent))return _e(t),!0;if(t.nodeType===re)return _e(t),!0;if(J&&t.nodeType===ne&&Ct(/<[/\w]/g,t.data))return _e(t),!0;if(!(Q.tagCheck instanceof Function&&Q.tagCheck(n))&&(!P[n]||B[n])){if(!B[n]&&Ee(n)){if(V.tagNameCheck instanceof RegExp&&Ct(V.tagNameCheck,n))return!1;if(V.tagNameCheck instanceof Function&&V.tagNameCheck(n))return!1}if(ht&&!At[n]){var o=w(t)||t.parentNode,i=x(t)||t.childNodes;if(i&&o)for(var l=i.length-1;l>=0;--l){var a=g(i[l],!0);a.__removalCount=(t.__removalCount||0)+1,o.insertBefore(a,y(t))}}return _e(t),!0}return t instanceof c&&!function(t){var e=w(t);e&&e.tagName||(e={namespaceURI:le,tagName:"template"});var r=bt(t.tagName),n=bt(e.tagName);return!!ue[t.namespaceURI]&&(t.namespaceURI===Xt?e.namespaceURI===Kt?"svg"===r:e.namespaceURI===Yt?"svg"===r&&("annotation-xml"===n||ce[n]):Boolean(xe[r]):t.namespaceURI===Yt?e.namespaceURI===Kt?"math"===r:e.namespaceURI===Xt?"math"===r&&he[n]:Boolean(we[r]):t.namespaceURI===Kt?!(e.namespaceURI===Xt&&!he[n])&&!(e.namespaceURI===Yt&&!ce[n])&&!we[r]&&(fe[r]||!xe[r]):!("application/xhtml+xml"!==de||!ue[t.namespaceURI]))}(t)?(_e(t),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!Ct(/<\/no(script|embed|frames)/i,t.innerHTML)?(K&&t.nodeType===ee&&(e=t.textContent,dt([L,E,I],(t=>{e=wt(e,t," ")})),t.textContent!==e&&(mt(r.removed,{element:t.cloneNode()}),t.textContent=e)),Me(A.afterSanitizeElements,t,null),!1):(_e(t),!0)},Le=function(t,e,r){if(ut&&("id"===e||"name"===e)&&(r in o||r in ge))return!1;if(Y&&!U[e]&&Ct(j,e));else if(W&&Ct(z,e));else if(Q.attributeCheck instanceof Function&&Q.attributeCheck(e,t));else if(!F[e]||U[e]){if(!(Ee(t)&&(V.tagNameCheck instanceof RegExp&&Ct(V.tagNameCheck,t)||V.tagNameCheck instanceof Function&&V.tagNameCheck(t))&&(V.attributeNameCheck instanceof RegExp&&Ct(V.attributeNameCheck,e)||V.attributeNameCheck instanceof Function&&V.attributeNameCheck(e,t))||"is"===e&&V.allowCustomizedBuiltInElements&&(V.tagNameCheck instanceof RegExp&&Ct(V.tagNameCheck,r)||V.tagNameCheck instanceof Function&&V.tagNameCheck(r))))return!1}else if(Ut[e]);else if(Ct(D,wt(r,O,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==_t(r,"data:")||!Vt[t]){if(X&&!Ct(R,wt(r,O,"")));else if(r)return!1}else;return!0},Ee=function(t){return"annotation-xml"!==t&&xt(t,Z)},Ie=function(t){Me(A.beforeSanitizeAttributes,t,null);var{attributes:e}=t;if(e&&!Se(t)){for(var o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:F,forceKeepAttr:void 0},i=e.length,l=function(){var l=e[i],{name:a,namespaceURI:u,value:s}=l,c=ve(a),h=s,f="value"===a?h:kt(h);if(o.attrName=c,o.attrValue=f,o.keepAttr=!0,o.forceKeepAttr=void 0,Me(A.uponSanitizeAttribute,t,o),f=o.attrValue,!ct||"id"!==c&&"name"!==c||(ke(a,t),f="user-content-"+f),J&&Ct(/((--!?|])>)|<\/(style|title|textarea)/i,f))return ke(a,t),0;if("attributename"===c&&xt(f,"href"))return ke(a,t),0;if(o.forceKeepAttr)return 0;if(!o.keepAttr)return ke(a,t),0;if(!G&&Ct(/\/>/i,f))return ke(a,t),0;K&&dt([L,E,I],(t=>{f=wt(f,t," ")}));var d=ve(t.nodeName);if(!Le(d,c,f))return ke(a,t),0;if(n&&"object"==typeof v&&"function"==typeof v.getAttributeType)if(u);else switch(v.getAttributeType(d,c)){case"TrustedHTML":f=n.createHTML(f);break;case"TrustedScriptURL":f=n.createScriptURL(f)}if(f!==h)try{u?t.setAttributeNS(u,a,f):t.setAttribute(a,f),Se(t)?_e(t):vt(r.removed)}catch(e){ke(a,t)}};i--;)l();Me(A.afterSanitizeAttributes,t,null)}},je=function t(e){var r=null,n=Ce(e);for(Me(A.beforeSanitizeShadowDOM,e,null);r=n.nextNode();)Me(A.uponSanitizeShadowNode,r,null),Ae(r),Ie(r),r.content instanceof a&&t(r.content);Me(A.afterSanitizeShadowDOM,e,null)};return r.sanitize=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=null,l=null,u=null,c=null;if((ae=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!qe(t)){if("function"!=typeof t.toString)throw St("toString is not a function");if("string"!=typeof(t=t.toString()))throw St("dirty is not a string, aborting")}if(!r.isSupported)return t;if(et||ye(e),r.removed=[],"string"==typeof t&&(ft=!1),ft){if(t.nodeName){var h=ve(t.nodeName);if(!P[h]||B[h])throw St("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof s)(l=(o=Te("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType===te&&"BODY"===l.nodeName||"HTML"===l.nodeName?o=l:o.appendChild(l);else{if(!ot&&!K&&!tt&&-1===t.indexOf("<"))return n&<?n.createHTML(t):t;if(!(o=Te(t)))return ot?null:lt?k:""}o&&nt&&_e(o.firstChild);for(var f=Ce(ft?t:o);u=f.nextNode();)Ae(u),Ie(u),u.content instanceof a&&je(u.content);if(ft)return t;if(ot){if(it)for(c=S.call(o.ownerDocument);o.firstChild;)c.appendChild(o.firstChild);else c=o;return(F.shadowroot||F.shadowrootmode)&&(c=M.call(i,c,!0)),c}var d=tt?o.outerHTML:o.innerHTML;return tt&&P["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&Ct(Gt,o.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+d),K&&dt([L,E,I],(t=>{d=wt(d,t," ")})),n&<?n.createHTML(d):d},r.setConfig=function(){ye(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),et=!0},r.clearConfig=function(){me=null,et=!1},r.isValidAttribute=function(t,e,r){me||ye({});var n=ve(t),o=ve(e);return Le(n,o,r)},r.addHook=function(t,e){"function"==typeof e&&mt(A[t],e)},r.removeHook=function(t,e){if(void 0!==e){var r=pt(A[t],e);return-1===r?void 0:gt(A[t],r,1)[0]}return vt(A[t])},r.removeHooks=function(t){A[t]=[]},r.removeAllHooks=function(){A={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},r}();function ae(t,e,r){return void 0===e&&(e=document),void 0===r&&(r=null),function(t,e,r,n){void 0===n&&(n=null);return t=function(t){function e(){n&&(l.length>0&&/^[~+>]$/.test(l[l.length-1])&&l.push(" "),l.push(n))}var r,n,o,i,l=[],a=[0],u=0,s=/(?:[^\\]|(?:^|[^\\])(?:\\\\)+)$/,c=/^\s+$/,h=[/\s+|\/\*|["'>~+[(]/g,/\s+|\/\*|["'[\]()]/g,/\s+|\/\*|["'[\]()]/g,null,/\*\//g];for(t=t.trim();;){if(n="",(o=h[a[a.length-1]]).lastIndex=u,!(r=o.exec(t))){n=t.substr(u),e();break}if((i=u)<(u=o.lastIndex)-r[0].length&&(n=t.substring(i,u-r[0].length)),a[a.length-1]<3){if(e(),"["===r[0])a.push(1);else if("("===r[0])a.push(2);else if(/^["']$/.test(r[0]))a.push(3),h[3]=new RegExp(r[0],"g");else if("/*"===r[0])a.push(4);else if(/^[\])]$/.test(r[0])&&a.length>0)a.pop();else if(/^(?:\s+|[~+>])$/.test(r[0])&&(l.length>0&&!c.test(l[l.length-1])&&0===a[a.length-1]&&l.push(" "),1===a[a.length-1]&&5===l.length&&"="===l[2].charAt(l[2].length-1)&&(l[4]=" "+l[4]),c.test(r[0])))continue;l.push(r[0])}else l[l.length-1]+=n,s.test(l[l.length-1])&&(4===a[a.length-1]&&(l.length<2||c.test(l[l.length-2])?l.pop():l[l.length-1]=" ",r[0]=""),a.pop()),l[l.length-1]+=r[0]}return l.join("").trim()}(t),r.querySelector(t),document.head.createShadowRoot||document.head.attachShadow?ue(t,",").reduce(((t,e)=>{var o=ue(e.replace(/^\s+/g,"").replace(/\s*([>+~]+)\s*/g,"$1")," ").filter((t=>!!t)).map((t=>ue(t,">"))),i=o.length-1,l=function(t,e,r){void 0===t&&(t=null);void 0===r&&(r=null);var n=[];if(r)n=r;else{var o=function(t){for(var e=0;e<t.length;e++){var r=t[e];n.push(r),r.shadowRoot&&o(r.shadowRoot.querySelectorAll("*"))}};e.shadowRoot&&o(e.shadowRoot.querySelectorAll("*")),o(e.querySelectorAll("*"))}return t?n.filter((e=>e.matches(t))):n}(o[i][o[i].length-1],r,n),a=function(t,e,r){return n=>{for(var o=e,i=n,l=!1;i&&!se(i);){var a=!0;if(1===t[o].length)a=i.matches(t[o]);else{var u=[].concat(t[o]).reverse(),s=i;for(var c of u){if(!s||!s.matches(c)){a=!1;break}s=ce(s,r)}}if(a&&0===o){l=!0;break}a&&o--,i=ce(i,r)}return l}}(o,i,r);return t=t.concat(l.filter(a))}),[]):r.querySelectorAll(t)}(t,0,e,r)}function ue(t,e){return t.match(/\\?.|^$/g).reduce(((t,r)=>('"'!==r||t.sQuote?"'"!==r||t.quote?t.quote||t.sQuote||r!==e?t.a[t.a.length-1]+=r:t.a.push(""):(t.sQuote^=1,t.a[t.a.length-1]+=r):(t.quote^=1,t.a[t.a.length-1]+=r),t)),{a:[""]}).a}function se(t){return t.nodeType===Node.DOCUMENT_FRAGMENT_NODE||t.nodeType===Node.DOCUMENT_NODE}function ce(t,e){var r=t.parentNode;return r&&r.host&&11===r.nodeType?r.host:r===e?null:r}var he=function(t){return t.TopLeft="top_left",t.TopCenter="top_center",t.TopRight="top_right",t.MiddleLeft="middle_left",t.MiddleCenter="middle_center",t.MiddleRight="middle_right",t.Left="left",t.Right="right",t.Center="center",t}({}),fe=function(t){return t.Regex="regex",t.NotRegex="not_regex",t.Exact="exact",t.IsNot="is_not",t.Icontains="icontains",t.NotIcontains="not_icontains",t}({}),de=Array.isArray,pe=Object.prototype.toString,ve=de||function(t){return"[object Array]"===pe.call(t)},me=t=>void 0===t,ge=t=>null===t,be=t=>me(t)||ge(t);var ye=(t,e,r)=>{function n(n){for(var o=arguments.length,i=new Array(o>1?o-1:0),l=1;l<o;l++)i[l-1]=arguments[l];e((()=>{(0,r[n])(t,...i)}))}var o={info:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];n("log",...e)},warn:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];n("warn",...e)},error:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];n("error",...e)},critical:function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];r.error(t,...n)},createLogger:n=>ye(t+" "+n,e,r)};return o};var xe,we,_e=e,ke=(void 0===xe&&(xe=t=>t()),ye("[Element Inference]",xe,(void 0===we&&(we=console),{log:we.log.bind(we),warn:we.warn.bind(we),error:we.error.bind(we),debug:we.debug.bind(we)})));function Te(t,e){try{var r=e.get(t);if(!me(r))return r;if(t.checkVisibility){var n=t.checkVisibility({checkOpacity:!0,checkVisibilityCSS:!0});return e.set(t,n),n}var o=_e.getComputedStyle(t);if("none"===o.display||"hidden"===o.visibility||0===parseFloat(o.opacity))return e.set(t,!1),!1;for(var i=t.parentElement;i;){var l=e.get(i);if(me(l)){var a=_e.getComputedStyle(i),u="none"!==a.display&&"hidden"!==a.visibility;if(e.set(i,u),!u)return!1;i=i.parentElement}else{if(!l)return!1;i=i.parentElement}}var s=t.getBoundingClientRect(),c=s.width>0||s.height>0||t.getClientRects().length>0;return e.set(t,c),c}catch(t){return!0}}function Ce(t,e){var r=function(t){var e,r=null==(e=t.innerText)?void 0:e.trim();return!r||r.length>250?null:r}(t);return(null==r?void 0:r.toLowerCase())===e.toLowerCase()}function*Se(t,e,r){var n;try{n=ae(t)}catch(t){return}for(var o of n){var i=o;e&&!Ce(i,e)||Te(i,r)&&(yield i)}}function qe(t,e){var r=0;for(var n of t){if(r===e)return n;r++}return null}function Me(t){try{var e=JSON.parse(t.autoData);if(!ve(null==e?void 0:e.textGroups)||!ve(null==e?void 0:e.notextGroups))return ke.error("Invalid autoData structure:",e),null;var{text:r,excludeText:n,precision:o=1}=t,i=null!=r&&!n,l=(i?e.textGroups:e.notextGroups).sort(((t,e)=>t.cardinality-e.cardinality));if(0===l.length)return null;for(var a=Math.max(1,Math.ceil((1-o)*l.length)),u=new WeakMap,s=0;s<a;s++){var c=l[s],h=new Map,f=null,d=0;for(var{css:p,offset:v}of c.cssSelectors){var m,g=qe(Se(p,i?r:null,u),v);if(g){var b=(null!==(m=h.get(g))&&void 0!==m?m:0)+1;if(h.set(g,b),b>d&&(d=b,f=g,b>=Math.ceil(c.cssSelectors.length/2)))return f}}if(f)return f}return null}catch(t){return ke.error("Error finding element:",t),null}}var Ae=function(t,r){var{debugEnabled:n}=void 0===r?{}:r,o={o:function(r){if(e&&(i.POSTHOG_DEBUG||n)&&!me(e.console)&&e.console){for(var o=("__rrweb_original__"in e.console[r]?e.console[r].__rrweb_original__:e.console[r]),l=arguments.length,a=new Array(l>1?l-1:0),u=1;u<l;u++)a[u-1]=arguments[u];o(t,...a)}},info:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];o.o("log",...e)},warn:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];o.o("warn",...e)},error:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];o.o("error",...e)},critical:function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];console.error(t,...r)},uninitializedWarning:t=>{o.error("You must initialize PostHog before calling "+t)},createLogger:(e,r)=>Ae(t+" "+e,r)};return o},Le=Ae("[PostHog.js]"),Ee=Le.createLogger,Ie=Ee("[Stylesheet Loader]"),je=(t,e,r)=>{var n=t.createElement("style");return n.innerText=e,n||(Ie.error("prepare_external_dependency_stylesheet returned null"),null)};function ze(t,e,r,n){var{capture:o=!1,passive:i=!0}=null!=n?n:{};null==t||t.addEventListener(e,r,{capture:o,passive:i})}Ee("[Surveys]"),null!=n&&n.sendBeacon;var $e=function(t,e){if(!function(t){try{new RegExp(t)}catch(t){return!1}return!0}(e))return!1;try{return new RegExp(e).test(t)}catch(t){return!1}},Re={exact:(t,e)=>e.some((e=>t.some((t=>e===t)))),is_not:(t,e)=>e.every((e=>t.every((t=>e!==t)))),regex:(t,e)=>e.some((e=>t.some((t=>$e(e,t))))),not_regex:(t,e)=>e.every((e=>t.every((t=>!$e(e,t))))),icontains:(t,e)=>e.map(Oe).some((e=>t.map(Oe).some((t=>e.includes(t))))),not_icontains:(t,e)=>e.map(Oe).every((e=>t.map(Oe).every((t=>!e.includes(t))))),gt:(t,e)=>e.some((e=>{var r=parseFloat(e);return!isNaN(r)&&t.some((t=>r>parseFloat(t)))})),lt:(t,e)=>e.some((e=>{var r=parseFloat(e);return!isNaN(r)&&t.some((t=>r<parseFloat(t)))}))},Oe=t=>t.toLowerCase();function Ze(t,e){return!t||Object.entries(t).every((t=>{var[r,n]=t,o=null==e?void 0:e[r];if(me(o)||ge(o))return!1;var i=[String(o)],l=Re[n.operator];return!!l&&l(n.values,i)}))}var De,Pe,Ne,Fe,He=0,Ve=[],Be=u,Ue=Be.__b,Qe=Be.__r,We=Be.diffed,Ye=Be.__c,Xe=Be.unmount,Ge=Be.__;function Ke(t,e){Be.__h&&Be.__h(Pe,t,He||e),He=0;var r=Pe.__H||(Pe.__H={__:[],__h:[]});return t>=r.__.length&&r.__.push({}),r.__[t]}function Je(t){return He=1,function(t,e,r){var n=Ke(De++,2);if(n.t=t,!n.__c&&(n.__=[cr(void 0,e),function(t){var e=n.__N?n.__N[0]:n.__[0],r=n.t(e,t);e!==r&&(n.__N=[r,n.__[1]],n.__c.setState({}))}],n.__c=Pe,!Pe.__f)){var o=function(t,e,r){if(!n.__c.__H)return!0;var o=n.__c.__H.__.filter((function(t){return!!t.__c}));if(o.every((function(t){return!t.__N})))return!i||i.call(this,t,e,r);var l=n.__c.props!==t;return o.forEach((function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(l=!0)}})),i&&i.call(this,t,e,r)||l};Pe.__f=!0;var i=Pe.shouldComponentUpdate,l=Pe.componentWillUpdate;Pe.componentWillUpdate=function(t,e,r){if(this.__e){var n=i;i=void 0,o(t,e,r),i=n}l&&l.call(this,t,e,r)},Pe.shouldComponentUpdate=o}return n.__N||n.__}(cr,t)}function tr(t,e){var r=Ke(De++,3);!Be.__s&&sr(r.__H,e)&&(r.__=t,r.u=e,Pe.__H.__h.push(r))}function er(t,e){var r=Ke(De++,4);!Be.__s&&sr(r.__H,e)&&(r.__=t,r.u=e,Pe.__h.push(r))}function rr(t){return He=5,nr((function(){return{current:t}}),[])}function nr(t,e){var r=Ke(De++,7);return sr(r.__H,e)&&(r.__=t(),r.__H=e,r.__h=t),r.__}function or(){for(var t;t=Ve.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(ar),t.__H.__h.forEach(ur),t.__H.__h=[]}catch(e){t.__H.__h=[],Be.__e(e,t.__v)}}Be.__b=function(t){Pe=null,Ue&&Ue(t)},Be.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),Ge&&Ge(t,e)},Be.__r=function(t){Qe&&Qe(t),De=0;var e=(Pe=t.__c).__H;e&&(Ne===Pe?(e.__h=[],Pe.__h=[],e.__.forEach((function(t){t.__N&&(t.__=t.__N),t.u=t.__N=void 0}))):(e.__h.forEach(ar),e.__h.forEach(ur),e.__h=[],De=0)),Ne=Pe},Be.diffed=function(t){We&&We(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==Ve.push(e)&&Fe===Be.requestAnimationFrame||((Fe=Be.requestAnimationFrame)||lr)(or)),e.__H.__.forEach((function(t){t.u&&(t.__H=t.u),t.u=void 0}))),Ne=Pe=null},Be.__c=function(t,e){e.some((function(t){try{t.__h.forEach(ar),t.__h=t.__h.filter((function(t){return!t.__||ur(t)}))}catch(r){e.some((function(t){t.__h&&(t.__h=[])})),e=[],Be.__e(r,t.__v)}})),Ye&&Ye(t,e)},Be.unmount=function(t){Xe&&Xe(t);var e,r=t.__c;r&&r.__H&&(r.__H.__.forEach((function(t){try{ar(t)}catch(t){e=t}})),r.__H=void 0,e&&Be.__e(e,r.__v))};var ir="function"==typeof requestAnimationFrame;function lr(t){var e,r=function(){clearTimeout(n),ir&&cancelAnimationFrame(e),setTimeout(t)},n=setTimeout(r,35);ir&&(e=requestAnimationFrame(r))}function ar(t){var e=Pe,r=t.__c;"function"==typeof r&&(t.__c=void 0,r()),Pe=e}function ur(t){var e=Pe;t.__c=t.__(),Pe=e}function sr(t,e){return!t||t.length!==e.length||e.some((function(e,r){return e!==t[r]}))}function cr(t,e){return"function"==typeof e?e(t):e}var hr="#020617",fr={backgroundColor:"#eeeded",position:K.Right};function dr(t){if(t.startsWith("#")){var e=t.replace(/^#/,"");return/^[0-9A-Fa-f]{3}$/.test(e)&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),/^[0-9A-Fa-f]{6}$/.test(e)?"rgb("+parseInt(e.slice(0,2),16)+","+parseInt(e.slice(2,4),16)+","+parseInt(e.slice(4,6),16)+")":"rgb(255, 255, 255)"}return"rgb(255, 255, 255)"}function pr(t){var e;void 0===t&&(t=fr.backgroundColor),"#"===t[0]&&(e=dr(t)),t.startsWith("rgb")&&(e=t);var r={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4","indianred ":"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}[t.toLowerCase()];if(r&&(e=dr(r)),!e)return hr;var n=e.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/);if(n){var o=parseInt(n[1]),i=parseInt(n[2]),l=parseInt(n[3]);return Math.sqrt(o*o*.299+i*i*.587+l*l*.114)>127.5?hr:"white"}return hr}!function(t){function e(t){var r,n;return this.getChildContext||(r=new Set,(n={})[e.__c]=this,this.getChildContext=function(){return n},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(t){this.props.value!=t.value&&r.forEach((function(t){t.__e=!0,L(t)}))},this.sub=function(t){r.add(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){r&&r.delete(t),e&&e.call(t)}}),t.children}e.__c="__cC"+b++,e.__=t,e.Provider=e.__l=(e.Consumer=function(t,e){return t.children(e)}).contextType=e}({isPreviewMode:!1,previewPageIndex:0,onPopupSurveyDismissed:()=>{},isPopup:!0,onPreviewSubmit:()=>{},surveySubmissionId:"",properties:void 0});var vr=':host{--ph-tour-font-family:-apple-system,BlinkMacSystemFont,"Inter","Segoe UI","Roboto",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";--ph-tour-background-color:#fff;--ph-tour-text-color:#1d1f27;--ph-tour-text-secondary-color:#6b7280;--ph-tour-button-color:#1d1f27;--ph-tour-button-text-color:#fff;--ph-tour-button-secondary-color:transparent;--ph-tour-button-secondary-text-color:#1d1f27;--ph-tour-border-color:#e5e7eb;--ph-tour-border-radius:8px;--ph-tour-button-border-radius:6px;--ph-tour-box-shadow:0 4px 12px rgba(0,0,0,.15);--ph-tour-max-width:320px;--ph-tour-padding:16px;--ph-tour-z-index:2147483646;--ph-tour-overlay-color:rgba(0,0,0,.5);--ph-tour-spotlight-padding:8px;--ph-tour-spotlight-border-radius:4px;--ph-tour-arrow-size:8px}.ph-tour-container *{box-sizing:border-box;font-family:var(--ph-tour-font-family);margin:0;padding:0}.ph-tour-click-overlay{bottom:0;left:0;pointer-events:auto;position:fixed;right:0;top:0;z-index:var(--ph-tour-z-index)}.ph-tour-spotlight{border-radius:var(--ph-tour-spotlight-border-radius);box-shadow:0 0 0 9999px var(--ph-tour-overlay-color)}.ph-tour-modal-overlay,.ph-tour-spotlight{pointer-events:none;position:fixed;z-index:var(--ph-tour-z-index)}.ph-tour-modal-overlay{background:var(--ph-tour-overlay-color);bottom:0;left:0;right:0;top:0}.ph-tour-tooltip{background:var(--ph-tour-background-color);border:1px solid var(--ph-tour-border-color);border-radius:var(--ph-tour-border-radius);max-width:min(var(--ph-tour-max-width),calc(100vw - 16px));min-width:min(280px,calc(100vw - 16px));padding:var(--ph-tour-padding);padding-top:calc(var(--ph-tour-padding) + 8px);pointer-events:auto;position:fixed;z-index:calc(var(--ph-tour-z-index) + 1)}.ph-tour-tooltip,.ph-tour-tooltip--modal{box-shadow:var(--ph-tour-box-shadow)}.ph-tour-arrow{--ph-tour-arrow-offset:0px;border:var(--ph-tour-arrow-size) solid transparent;height:0;position:absolute;width:0}.ph-tour-arrow--top{border-bottom-color:var(--ph-tour-background-color);bottom:100%}.ph-tour-arrow--bottom,.ph-tour-arrow--top{left:calc(50% + var(--ph-tour-arrow-offset));transform:translateX(-50%)}.ph-tour-arrow--bottom{border-top-color:var(--ph-tour-background-color);top:100%}.ph-tour-arrow--left{border-right-color:var(--ph-tour-background-color);right:100%}.ph-tour-arrow--left,.ph-tour-arrow--right{top:calc(50% + var(--ph-tour-arrow-offset));transform:translateY(-50%)}.ph-tour-arrow--right{border-left-color:var(--ph-tour-background-color);left:100%}.ph-tour-content{color:var(--ph-tour-text-color);font-size:14px;line-height:1.5;margin-bottom:16px;padding-right:24px}.ph-tour-content h1,.ph-tour-content h2{font-weight:600;margin-bottom:8px}.ph-tour-content h1{font-size:18px}.ph-tour-content h2{font-size:16px}.ph-tour-content p{margin-bottom:8px}.ph-tour-content p:last-child{margin-bottom:0}.ph-tour-content strong{font-weight:600}.ph-tour-content em{font-style:italic}.ph-tour-content ol,.ph-tour-content ul{margin-bottom:8px;margin-left:20px}.ph-tour-content h3{font-size:14px;font-weight:600;margin-bottom:8px}.ph-tour-content .ph-tour-link,.ph-tour-content a{color:inherit;text-decoration:underline}.ph-tour-content a:hover{opacity:.8}.ph-tour-content code{background:rgba(0,0,0,.06);border-radius:4px;font-size:.875em;padding:2px 6px}.ph-tour-content code,.ph-tour-content pre{font-family:SF Mono,Monaco,Consolas,monospace}.ph-tour-content pre{background:rgba(0,0,0,.04);border-radius:6px;font-size:13px;line-height:1.5;margin-bottom:8px;overflow-x:auto;padding:12px}.ph-tour-content pre code{background:transparent;border-radius:0;font-size:inherit;padding:0}.ph-tour-content code *,.ph-tour-content pre *{font-family:inherit}.ph-tour-content .hljs-comment,.ph-tour-content .hljs-quote{color:#6a737d;font-style:italic}.ph-tour-content .hljs-keyword,.ph-tour-content .hljs-selector-tag{color:#d73a49}.ph-tour-content .hljs-doctag,.ph-tour-content .hljs-regexp,.ph-tour-content .hljs-string{color:#032f62}.ph-tour-content .hljs-literal,.ph-tour-content .hljs-number,.ph-tour-content .hljs-template-variable,.ph-tour-content .hljs-variable{color:#005cc5}.ph-tour-content .hljs-section,.ph-tour-content .hljs-selector-class,.ph-tour-content .hljs-selector-id,.ph-tour-content .hljs-title,.ph-tour-content .hljs-title.function_{color:#6f42c1}.ph-tour-content .hljs-addition,.ph-tour-content .hljs-attr,.ph-tour-content .hljs-attribute,.ph-tour-content .hljs-built_in,.ph-tour-content .hljs-bullet,.ph-tour-content .hljs-name,.ph-tour-content .hljs-symbol{color:#22863a}.ph-tour-content .hljs-deletion,.ph-tour-content .hljs-subst{color:#b31d28}.ph-tour-content .hljs-meta{color:#032f62}.ph-tour-content .hljs-emphasis{font-style:italic}.ph-tour-content .hljs-strong{font-weight:700}.ph-tour-content .ph-tour-image,.ph-tour-content img{border-radius:6px;display:block;height:auto;margin:8px 0;max-width:100%}.ph-tour-content .ph-tour-embed{margin:8px 0}.ph-tour-content .ph-tour-embed-container{background:#000;border-radius:6px;overflow:hidden;padding-bottom:56.25%;position:relative;width:100%}.ph-tour-content .ph-tour-embed-container iframe{border:none;height:100%;left:0;position:absolute;top:0;width:100%}.ph-tour-content blockquote{border-left:3px solid var(--ph-tour-border-color);color:var(--ph-tour-text-secondary-color);font-style:italic;margin:8px 0;padding-left:12px}.ph-tour-footer{align-items:center;display:flex;gap:12px;justify-content:space-between}.ph-tour-progress{color:var(--ph-tour-text-secondary-color);font-size:12px}.ph-tour-buttons{display:flex;gap:8px;margin-left:auto}.ph-tour-button{align-items:center;border:none;border-radius:var(--ph-tour-button-border-radius);cursor:pointer;display:inline-flex;font-size:14px;font-weight:500;justify-content:center;padding:8px 16px;transition:opacity .15s ease,transform .1s ease}.ph-tour-button:hover{opacity:.9}.ph-tour-button:active{transform:scale(.98)}.ph-tour-button--primary{background:var(--ph-tour-button-color);color:var(--ph-tour-button-text-color)}.ph-tour-button--secondary{background:var(--ph-tour-button-secondary-color);border:1px solid var(--ph-tour-border-color);color:var(--ph-tour-button-secondary-text-color)}.ph-tour-dismiss{align-items:center;background:transparent;border:none;border-radius:4px;color:var(--ph-tour-text-secondary-color);cursor:pointer;display:flex;font-size:18px;height:24px;justify-content:center;line-height:1;position:absolute;right:8px;top:8px;transition:background .15s ease,color .15s ease;width:24px}.ph-tour-dismiss:hover{background:rgba(0,0,0,.08);color:var(--ph-tour-text-color)}.ph-tour-branding{align-items:center;border-top:1px solid var(--ph-tour-border-color);color:var(--ph-tour-branding-text-color,var(--ph-tour-text-secondary-color));display:flex;font-size:11px;gap:6px;justify-content:center;margin-top:12px;padding-top:12px;text-decoration:none}.ph-tour-branding:hover{color:var(--ph-tour-branding-text-color,var(--ph-tour-text-color))}.ph-tour-branding svg{height:14px;width:auto}.ph-tour-hidden{display:none!important}.ph-tour-survey-step{min-width:min(300px,calc(100vw - 16px))}.ph-tour-survey-question{color:var(--ph-tour-text-color);font-size:15px;font-weight:500;line-height:1.4;margin-bottom:16px;padding-right:24px}.ph-tour-survey-input-container{display:flex;flex-direction:column;gap:12px}.ph-tour-survey-textarea{background:#fff;border:1px solid var(--ph-tour-border-color);border-radius:6px;box-sizing:border-box;color:var(--ph-tour-text-color);font-family:var(--ph-tour-font-family);font-size:14px;min-height:80px;padding:10px 12px;resize:vertical;width:100%}.ph-tour-survey-textarea:focus{border-color:var(--ph-tour-button-color);box-shadow:0 0 0 2px rgba(0,0,0,.05);outline:none}.ph-tour-survey-textarea::placeholder{color:var(--ph-tour-text-secondary-color)}.ph-tour-survey-submit{align-self:flex-end}.ph-tour-survey-rating-container{display:flex;flex-direction:column;gap:8px;margin-bottom:8px}.ph-tour-survey-rating-labels{color:var(--ph-tour-text-secondary-color);display:flex;font-size:11px;justify-content:space-between}.ph-tour-survey-rating-emoji{display:flex;gap:8px;justify-content:center}.ph-tour-survey-emoji-button{align-items:center;background:var(--ph-tour-background-color);border:2px solid var(--ph-tour-border-color);border-radius:8px;cursor:pointer;display:flex;height:44px;justify-content:center;padding:0;transition:all .15s ease;width:44px}.ph-tour-survey-emoji-button:hover{background:rgba(0,0,0,.02);border-color:var(--ph-tour-button-color)}.ph-tour-survey-emoji-button--active{background:var(--ph-tour-button-color);border-color:var(--ph-tour-button-color)}.ph-tour-survey-emoji-button--active svg{fill:var(--ph-tour-button-text-color)}.ph-tour-survey-emoji-button svg{fill:var(--ph-tour-text-color);height:28px;transition:fill .15s ease;width:28px}.ph-tour-survey-rating-numbers{display:grid;gap:6px}.ph-tour-survey-number-button{align-items:center;background:var(--ph-tour-background-color);border:1px solid var(--ph-tour-border-color);border-radius:4px;color:var(--ph-tour-text-color);cursor:pointer;display:flex;font-family:var(--ph-tour-font-family);font-size:13px;font-weight:500;justify-content:center;padding:8px 4px;transition:all .15s ease}.ph-tour-survey-number-button:hover{background:rgba(0,0,0,.02);border-color:var(--ph-tour-button-color)}.ph-tour-survey-number-button--active{background:var(--ph-tour-button-color);border-color:var(--ph-tour-button-color);color:var(--ph-tour-button-text-color)}.ph-tour-banner{align-items:center;background:var(--ph-tour-background-color);border-bottom:1px solid var(--ph-tour-border-color);box-shadow:var(--ph-tour-box-shadow);display:flex;font-family:var(--ph-tour-font-family);gap:16px;justify-content:center;padding:12px 16px}a.ph-tour-banner{color:inherit;text-decoration:none}:host:has(.ph-tour-banner--sticky){position:sticky;top:0;z-index:var(--ph-tour-z-index)}.ph-tour-banner-content{color:var(--ph-tour-text-color);flex:1;font-size:14px;line-height:1.5;min-width:0;text-align:center}.ph-tour-banner-content p{margin:0}.ph-tour-banner-content strong{font-weight:600}.ph-tour-banner-content em{font-style:italic}.ph-tour-banner-content a{color:inherit;text-decoration:underline}.ph-tour-banner-dismiss{align-items:center;background:transparent;border:none;border-radius:4px;color:var(--ph-tour-text-secondary-color);cursor:pointer;display:flex;flex-shrink:0;height:24px;justify-content:center;transition:background .15s ease,color .15s ease;width:24px}.ph-tour-banner-dismiss:hover{background:rgba(0,0,0,.08);color:var(--ph-tour-text-color)}',mr=o,gr=e;function br(){var t=je(mr,vr);return null==t||t.setAttribute("data-ph-product-tour-style","true"),t}function yr(t){return t.useManualSelector?!!t.selector:!!t.inferenceData}function xr(t){try{var e=mr.querySelectorAll(t);if(0===e.length)return{element:null,error:"not_found",matchCount:0};var r=e[0];return function(t){var e=gr.getComputedStyle(t);if("none"===e.display||"hidden"===e.visibility||"0"===e.opacity)return!1;var r=t.getBoundingClientRect();if(0===r.width||0===r.height)return!1;return!0}(r)?e.length>1?{element:r,error:"multiple_matches",matchCount:e.length}:{element:r,error:null,matchCount:1}:{element:null,error:"not_visible",matchCount:e.length}}catch(t){return{element:null,error:"not_found",matchCount:0}}}function wr(t){var e;if(null!==(e=t.useManualSelector)&&void 0!==e&&e)return t.selector?xr(t.selector):{element:null,error:"not_found",matchCount:0};if(!t.inferenceData)return{element:null,error:"not_found",matchCount:0};var r=Me(t.inferenceData);return r?{element:r,error:null,matchCount:1}:{element:null,error:"not_found",matchCount:0}}var _r=12,kr=8;function Tr(t,e,r){var n=kr+e/2,o=r-kr-e/2,i=Math.max(n,Math.min(o,t));return{clamped:i,offset:t-i}}function Cr(t,e){var r,n,o,i=l({},Q,e),a=t.style;a.setProperty("--ph-tour-background-color",i.backgroundColor),a.setProperty("--ph-tour-text-color",i.textColor),a.setProperty("--ph-tour-button-color",i.buttonColor),a.setProperty("--ph-tour-border-radius",i.borderRadius+"px"),a.setProperty("--ph-tour-button-border-radius",i.buttonBorderRadius+"px"),a.setProperty("--ph-tour-border-color",i.borderColor),a.setProperty("--ph-tour-font-family",function(t){if("inherit"===t)return"inherit";var e='BlinkMacSystemFont, "Inter", "Segoe UI", "Roboto", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"';return t?t+", "+e:"-apple-system, "+e}(i.fontFamily)),a.setProperty("--ph-tour-text-secondary-color",(r=i.textColor,n=.6,(o=dr(r).match(/^rgb\((\d+),(\d+),(\d+)\)$/))?"rgba("+o[1]+", "+o[2]+", "+o[3]+", "+n+")":r)),a.setProperty("--ph-tour-branding-text-color",pr(i.backgroundColor)),a.setProperty("--ph-tour-button-text-color",pr(i.buttonColor)),a.setProperty("--ph-tour-box-shadow",i.boxShadow),a.setProperty("--ph-tour-overlay-color",i.showOverlay?"rgba(0, 0, 0, 0.5)":"transparent"),a.setProperty("--ph-tour-z-index",String(i.zIndex)),a.setProperty("--ph-tour-button-secondary-color","transparent"),a.setProperty("--ph-tour-button-secondary-text-color",i.textColor),a.setProperty("--ph-tour-max-width","320px"),a.setProperty("--ph-tour-padding","16px")}function Sr(t){var e;if(!t)return"";if("string"==typeof t)return Mr(t);if("text"===t.type){var r=Mr(t.text||"");if(t.marks)for(var n of t.marks)switch(n.type){case"bold":r="<strong>"+r+"</strong>";break;case"italic":r="<em>"+r+"</em>";break;case"underline":r="<u>"+r+"</u>";break;case"strike":r="<s>"+r+"</s>"}return r}var o=(null==(e=t.content)?void 0:e.map(Sr).join(""))||"";switch(t.type){case"doc":default:return o;case"paragraph":return"<p>"+o+"</p>";case"heading":var i,l=(null==(i=t.attrs)?void 0:i.level)||1;return"<h"+l+">"+o+"</h"+l+">";case"bulletList":return"<ul>"+o+"</ul>";case"orderedList":return"<ol>"+o+"</ol>";case"listItem":return"<li>"+o+"</li>";case"hardBreak":return"<br>"}}function qr(t){return t.endsWith("/")?t.slice(0,-1):t}function Mr(t){var e=mr.createElement("div");return e.textContent=t,e.innerHTML}function Ar(t){var e=[];return t.content&&function t(r){var n,o;"image"===r.type&&null!=(n=r.attrs)&&n.src&&e.push(r.attrs.src),null==(o=r.content)||o.forEach(t)}(t.content),e}function Lr(t){return t.contentHtml?le.sanitize(t.contentHtml,{ADD_TAGS:["iframe"],ADD_ATTR:["allowfullscreen","frameborder","referrerpolicy"]}):Sr(t.content)}var Er=0;function Ir(t,e,r,n,o,i){e||(e={});var l,a,s=e;if("ref"in s)for(a in s={},e)"ref"==a?l=e[a]:s[a]=e[a];var c={type:t,props:s,key:r,ref:l,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Er,__i:-1,__u:0,__source:o,__self:i};if("function"==typeof t&&(l=t.defaultProps))for(a in l)void 0===s[a]&&(s[a]=l[a]);return u.vnode&&u.vnode(c),c}var jr=Ir("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Ir("path",{d:"M626-533q22.5 0 38.25-15.75T680-587q0-22.5-15.75-38.25T626-641q-22.5 0-38.25 15.75T572-587q0 22.5 15.75 38.25T626-533Zm-292 0q22.5 0 38.25-15.75T388-587q0-22.5-15.75-38.25T334-641q-22.5 0-38.25 15.75T280-587q0 22.5 15.75 38.25T334-533Zm146 272q66 0 121.5-35.5T682-393h-52q-23 40-63 61.5T480.5-310q-46.5 0-87-21T331-393h-53q26 61 81 96.5T480-261Zm0 181q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-400Zm0 340q142.375 0 241.188-98.812Q820-337.625 820-480t-98.812-241.188Q622.375-820 480-820t-241.188 98.812Q140-622.375 140-480t98.812 241.188Q337.625-140 480-140Z"})}),zr=Ir("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Ir("path",{d:"M626-533q22.5 0 38.25-15.75T680-587q0-22.5-15.75-38.25T626-641q-22.5 0-38.25 15.75T572-587q0 22.5 15.75 38.25T626-533Zm-292 0q22.5 0 38.25-15.75T388-587q0-22.5-15.75-38.25T334-641q-22.5 0-38.25 15.75T280-587q0 22.5 15.75 38.25T334-533Zm20 194h253v-49H354v49ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-400Zm0 340q142.375 0 241.188-98.812Q820-337.625 820-480t-98.812-241.188Q622.375-820 480-820t-241.188 98.812Q140-622.375 140-480t98.812 241.188Q337.625-140 480-140Z"})}),$r=Ir("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Ir("path",{d:"M626-533q22.5 0 38.25-15.75T680-587q0-22.5-15.75-38.25T626-641q-22.5 0-38.25 15.75T572-587q0 22.5 15.75 38.25T626-533Zm-292 0q22.5 0 38.25-15.75T388-587q0-22.5-15.75-38.25T334-641q-22.5 0-38.25 15.75T280-587q0 22.5 15.75 38.25T334-533Zm146.174 116Q413-417 358.5-379.5T278-280h53q22-42 62.173-65t87.5-23Q528-368 567.5-344.5T630-280h52q-25-63-79.826-100-54.826-37-122-37ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-400Zm0 340q142.375 0 241.188-98.812Q820-337.625 820-480t-98.812-241.188Q622.375-820 480-820t-241.188 98.812Q140-622.375 140-480t98.812 241.188Q337.625-140 480-140Z"})}),Rr=Ir("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Ir("path",{d:"M480-417q-67 0-121.5 37.5T278-280h404q-25-63-80-100t-122-37Zm-183-72 50-45 45 45 31-36-45-45 45-45-31-36-45 45-50-45-31 36 45 45-45 45 31 36Zm272 0 44-45 51 45 31-36-45-45 45-45-31-36-51 45-44-45-31 36 44 45-44 45 31 36ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-400Zm0 340q142 0 241-99t99-241q0-142-99-241t-241-99q-142 0-241 99t-99 241q0 142 99 241t241 99Z"})}),Or=Ir("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Ir("path",{d:"M479.504-261Q537-261 585.5-287q48.5-26 78.5-72.4 6-11.6-.75-22.6-6.75-11-20.25-11H316.918Q303-393 296.5-382t-.5 22.6q30 46.4 78.5 72.4 48.5 26 105.004 26ZM347-578l27 27q7.636 8 17.818 8Q402-543 410-551q8-8 8-18t-8-18l-42-42q-8.8-9-20.9-9-12.1 0-21.1 9l-42 42q-8 7.636-8 17.818Q276-559 284-551q8 8 18 8t18-8l27-27Zm267 0 27 27q7.714 8 18 8t18-8q8-7.636 8-17.818Q685-579 677-587l-42-42q-8.8-9-20.9-9-12.1 0-21.1 9l-42 42q-8 7.714-8 18t8 18q7.636 8 17.818 8Q579-543 587-551l27-27ZM480-80q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-400Zm0 340q142.375 0 241.188-98.812Q820-337.625 820-480t-98.812-241.188Q622.375-820 480-820t-241.188 98.812Q140-622.375 140-480t98.812 241.188Q337.625-140 480-140Z"})});Ir("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 0 24 24",width:"48",children:Ir("path",{d:"M2 20h2c.55 0 1-.45 1-1v-9c0-.55-.45-1-1-1H2v11zm19.83-7.12c.11-.25.17-.52.17-.8V11c0-1.1-.9-2-2-2h-5.5l.92-4.65c.05-.22.02-.46-.08-.66-.23-.45-.52-.86-.88-1.22L14 2 7.59 8.41C7.21 8.79 7 9.3 7 9.83v7.84C7 18.95 8.05 20 9.34 20h8.11c.7 0 1.36-.37 1.72-.97l2.66-6.15z"})}),Ir("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 0 24 24",width:"48",children:Ir("path",{d:"M22 4h-2c-.55 0-1 .45-1 1v9c0 .55.45 1 1 1h2V4zM2.17 11.12c-.11.25-.17.52-.17.8V13c0 1.1.9 2 2 2h5.5l-.92 4.65c-.05.22-.02.46.08.66.23.45.52.86.88 1.22L10 22l6.41-6.41c.38-.38.59-.89.59-1.42V6.34C17 5.05 15.95 4 14.66 4H6.55c-.7 0-1.36.37-1.72.97l-2.66 6.15z"})});var Zr=function(t){var{fill:e="currentColor"}={};return Ir("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:e,xmlns:"http://www.w3.org/2000/svg","aria-labelledby":"close-survey-title-adam",children:[Ir("title",{id:"close-survey-title",className:"adam-testing",children:"Close survey"}),Ir("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.164752 0.164752C0.384422 -0.0549175 0.740578 -0.0549175 0.960248 0.164752L6 5.20451L11.0398 0.164752C11.2594 -0.0549175 11.6156 -0.0549175 11.8352 0.164752C12.0549 0.384422 12.0549 0.740578 11.8352 0.960248L6.79549 6L11.8352 11.0398C12.0549 11.2594 12.0549 11.6156 11.8352 11.8352C11.6156 12.0549 11.2594 12.0549 11.0398 11.8352L6 6.79549L0.960248 11.8352C0.740578 12.0549 0.384422 12.0549 0.164752 11.8352C-0.0549175 11.6156 -0.0549175 11.2594 0.164752 11.0398L5.20451 6L0.164752 0.960248C-0.0549175 0.740578 -0.0549175 0.384422 0.164752 0.164752Z",fill:e})]})},Dr=Ir("svg",{width:"77",height:"14",viewBox:"0 0 77 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Ir("g",{"clip-path":"url(#clip0_2415_6911)",children:[Ir("mask",{id:"mask0_2415_6911",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"77",height:"14",children:Ir("path",{d:"M0.5 0H76.5V14H0.5V0Z",fill:"white"})}),Ir("g",{mask:"url(#mask0_2415_6911)",children:[Ir("path",{d:"M5.77226 8.02931C5.59388 8.37329 5.08474 8.37329 4.90634 8.02931L4.4797 7.20672C4.41155 7.07535 4.41155 6.9207 4.4797 6.78933L4.90634 5.96669C5.08474 5.62276 5.59388 5.62276 5.77226 5.96669L6.19893 6.78933C6.26709 6.9207 6.26709 7.07535 6.19893 7.20672L5.77226 8.02931ZM5.77226 12.6946C5.59388 13.0386 5.08474 13.0386 4.90634 12.6946L4.4797 11.872C4.41155 11.7406 4.41155 11.586 4.4797 11.4546L4.90634 10.632C5.08474 10.288 5.59388 10.288 5.77226 10.632L6.19893 11.4546C6.26709 11.586 6.26709 11.7406 6.19893 11.872L5.77226 12.6946Z",fill:"#1D4AFF"}),Ir("path",{d:"M0.5 10.9238C0.5 10.508 1.02142 10.2998 1.32637 10.5938L3.54508 12.7327C3.85003 13.0267 3.63405 13.5294 3.20279 13.5294H0.984076C0.716728 13.5294 0.5 13.3205 0.5 13.0627V10.9238ZM0.5 8.67083C0.5 8.79459 0.551001 8.91331 0.641783 9.00081L5.19753 13.3927C5.28831 13.4802 5.41144 13.5294 5.53982 13.5294H8.0421C8.47337 13.5294 8.68936 13.0267 8.3844 12.7327L1.32637 5.92856C1.02142 5.63456 0.5 5.84278 0.5 6.25854V8.67083ZM0.5 4.00556C0.5 4.12932 0.551001 4.24802 0.641783 4.33554L10.0368 13.3927C10.1276 13.4802 10.2508 13.5294 10.3791 13.5294H12.8814C13.3127 13.5294 13.5287 13.0267 13.2237 12.7327L1.32637 1.26329C1.02142 0.969312 0.5 1.17752 0.5 1.59327V4.00556ZM5.33931 4.00556C5.33931 4.12932 5.39033 4.24802 5.4811 4.33554L14.1916 12.7327C14.4965 13.0267 15.0179 12.8185 15.0179 12.4028V9.99047C15.0179 9.86671 14.9669 9.74799 14.8762 9.66049L6.16568 1.26329C5.86071 0.969307 5.33931 1.17752 5.33931 1.59327V4.00556ZM11.005 1.26329C10.7 0.969307 10.1786 1.17752 10.1786 1.59327V4.00556C10.1786 4.12932 10.2296 4.24802 10.3204 4.33554L14.1916 8.06748C14.4965 8.36148 15.0179 8.15325 15.0179 7.7375V5.3252C15.0179 5.20144 14.9669 5.08272 14.8762 4.99522L11.005 1.26329Z",fill:"#F9BD2B"}),Ir("path",{d:"M21.0852 10.981L16.5288 6.58843C16.2238 6.29443 15.7024 6.50266 15.7024 6.91841V13.0627C15.7024 13.3205 15.9191 13.5294 16.1865 13.5294H23.2446C23.5119 13.5294 23.7287 13.3205 23.7287 13.0627V12.5032C23.7287 12.2455 23.511 12.0396 23.2459 12.0063C22.4323 11.9042 21.6713 11.546 21.0852 10.981ZM18.0252 12.0365C17.5978 12.0365 17.251 11.7021 17.251 11.2901C17.251 10.878 17.5978 10.5436 18.0252 10.5436C18.4527 10.5436 18.7996 10.878 18.7996 11.2901C18.7996 11.7021 18.4527 12.0365 18.0252 12.0365Z",fill:"currentColor"}),Ir("path",{d:"M0.5 13.0627C0.5 13.3205 0.716728 13.5294 0.984076 13.5294H3.20279C3.63405 13.5294 3.85003 13.0267 3.54508 12.7327L1.32637 10.5938C1.02142 10.2998 0.5 10.508 0.5 10.9238V13.0627ZM5.33931 5.13191L1.32637 1.26329C1.02142 0.969306 0.5 1.17752 0.5 1.59327V4.00556C0.5 4.12932 0.551001 4.24802 0.641783 4.33554L5.33931 8.86412V5.13191ZM1.32637 5.92855C1.02142 5.63455 0.5 5.84278 0.5 6.25853V8.67083C0.5 8.79459 0.551001 8.91331 0.641783 9.00081L5.33931 13.5294V9.79717L1.32637 5.92855Z",fill:"#1D4AFF"}),Ir("path",{d:"M10.1787 5.3252C10.1787 5.20144 10.1277 5.08272 10.0369 4.99522L6.16572 1.26329C5.8608 0.969306 5.33936 1.17752 5.33936 1.59327V4.00556C5.33936 4.12932 5.39037 4.24802 5.48114 4.33554L10.1787 8.86412V5.3252ZM5.33936 13.5294H8.04214C8.47341 13.5294 8.6894 13.0267 8.38443 12.7327L5.33936 9.79717V13.5294ZM5.33936 5.13191V8.67083C5.33936 8.79459 5.39037 8.91331 5.48114 9.00081L10.1787 13.5294V9.99047C10.1787 9.86671 10.1277 9.74803 10.0369 9.66049L5.33936 5.13191Z",fill:"#F54E00"}),Ir("path",{d:"M29.375 11.6667H31.3636V8.48772H33.0249C34.8499 8.48772 36.0204 7.4443 36.0204 5.83052C36.0204 4.21681 34.8499 3.17334 33.0249 3.17334H29.375V11.6667ZM31.3636 6.84972V4.81136H32.8236C33.5787 4.81136 34.0318 5.19958 34.0318 5.83052C34.0318 6.4615 33.5787 6.84972 32.8236 6.84972H31.3636ZM39.618 11.7637C41.5563 11.7637 42.9659 10.429 42.9659 8.60905C42.9659 6.78905 41.5563 5.45438 39.618 5.45438C37.6546 5.45438 36.2701 6.78905 36.2701 8.60905C36.2701 10.429 37.6546 11.7637 39.618 11.7637ZM38.1077 8.60905C38.1077 7.63838 38.7118 6.97105 39.618 6.97105C40.5116 6.97105 41.1157 7.63838 41.1157 8.60905C41.1157 9.57972 40.5116 10.2471 39.618 10.2471C38.7118 10.2471 38.1077 9.57972 38.1077 8.60905ZM46.1482 11.7637C47.6333 11.7637 48.6402 10.8658 48.6402 9.81025C48.6402 7.33505 45.2294 8.13585 45.2294 7.16518C45.2294 6.8983 45.5189 6.72843 45.9342 6.72843C46.3622 6.72843 46.8782 6.98318 47.0418 7.54132L48.527 6.94678C48.2375 6.06105 47.1677 5.45438 45.8713 5.45438C44.4743 5.45438 43.6058 6.25518 43.6058 7.21372C43.6058 9.53118 46.9663 8.88812 46.9663 9.84665C46.9663 10.1864 46.6391 10.417 46.1482 10.417C45.4434 10.417 44.9525 9.94376 44.8015 9.3735L43.3164 9.93158C43.6436 10.8537 44.6001 11.7637 46.1482 11.7637ZM53.4241 11.606L53.2982 10.0651C53.0843 10.1743 52.8074 10.2106 52.5808 10.2106C52.1278 10.2106 51.8257 9.89523 51.8257 9.34918V7.03172H53.3612V5.55145H51.8257V3.78001H49.9755V5.55145H48.9687V7.03172H49.9755V9.57972C49.9755 11.06 51.0202 11.7637 52.3921 11.7637C52.7696 11.7637 53.122 11.7031 53.4241 11.606ZM59.8749 3.17334V6.47358H56.376V3.17334H54.3874V11.6667H56.376V8.11158H59.8749V11.6667H61.8761V3.17334H59.8749ZM66.2899 11.7637C68.2281 11.7637 69.6378 10.429 69.6378 8.60905C69.6378 6.78905 68.2281 5.45438 66.2899 5.45438C64.3265 5.45438 62.942 6.78905 62.942 8.60905C62.942 10.429 64.3265 11.7637 66.2899 11.7637ZM64.7796 8.60905C64.7796 7.63838 65.3837 6.97105 66.2899 6.97105C67.1835 6.97105 67.7876 7.63838 67.7876 8.60905C67.7876 9.57972 67.1835 10.2471 66.2899 10.2471C65.3837 10.2471 64.7796 9.57972 64.7796 8.60905ZM73.2088 11.4725C73.901 11.4725 74.5177 11.242 74.845 10.8416V11.424C74.845 12.1034 74.2786 12.5767 73.4102 12.5767C72.7935 12.5767 72.2523 12.2854 72.1642 11.788L70.4776 12.0428C70.7042 13.1955 71.925 13.972 73.4102 13.972C75.361 13.972 76.6574 12.8679 76.6574 11.2298V5.55145H74.8324V6.07318C74.4926 5.69705 73.9136 5.45438 73.171 5.45438C71.409 5.45438 70.3014 6.61918 70.3014 8.46345C70.3014 10.3077 71.409 11.4725 73.2088 11.4725ZM72.1012 8.46345C72.1012 7.55345 72.655 6.97105 73.5109 6.97105C74.3793 6.97105 74.9331 7.55345 74.9331 8.46345C74.9331 9.37345 74.3793 9.95585 73.5109 9.95585C72.655 9.95585 72.1012 9.37345 72.1012 8.46345Z",fill:"currentColor"})]})]}),Ir("defs",{children:Ir("clipPath",{id:"clip0_2415_6911",children:Ir("rect",{width:"76",height:"14",fill:"white",transform:"translate(0.5)"})})})]});function Pr(t){var{button:e,variant:r,onClick:n,cursorStyle:o}=t,i="ph-tour-button ph-tour-button--"+r;return"link"===e.action&&e.link?Ir("a",{href:e.link,target:"_blank",rel:"noopener noreferrer",class:i,onClick:()=>n(e),children:e.text}):Ir("button",{class:i,onClick:()=>n(e),style:o,children:e.text})}function Nr(t){var e,r,n,{step:o,appearance:i,stepIndex:l,totalSteps:a,onNext:u,onPrevious:s,onDismiss:c,onButtonClick:h}=t,f=null!==(e=null==i?void 0:i.whiteLabel)&&void 0!==e&&e,d=l>=a-1,p=0===l,v=!(o.buttons||"button"!==o.progressionTrigger&&yr(o)),m=!!o.buttons,g=!!(u||s||c||h),b=g?void 0:{cursor:"default"},y=!f&&p,x=t=>{h&&h(t)};return Ir(S,{children:[Ir("button",{class:"ph-tour-dismiss",onClick:c,"aria-label":"Close tour",style:b,children:Zr()}),Ir("div",{class:"ph-tour-content",dangerouslySetInnerHTML:{__html:Lr(o)}}),Ir("div",{class:"ph-tour-footer",children:[a>1&&Ir("span",{class:"ph-tour-progress",children:[l+1," of ",a]}),Ir("div",{class:"ph-tour-buttons",children:[v&&Ir(S,{children:[!p&&Ir("button",{class:"ph-tour-button ph-tour-button--secondary",onClick:s,style:b,children:"Back"}),Ir("button",{class:"ph-tour-button ph-tour-button--primary",onClick:u,style:b,children:d?"Done":"Next"})]}),m&&Ir(S,{children:[(null==(r=o.buttons)?void 0:r.secondary)&&Ir(Pr,{button:o.buttons.secondary,variant:"secondary",onClick:x,cursorStyle:b}),(null==(n=o.buttons)?void 0:n.primary)&&Ir(Pr,{button:o.buttons.primary,variant:"primary",onClick:x,cursorStyle:b})]})]})]}),y&&Ir("a",{href:g?"https://posthog.com/docs/product-tours":void 0,target:g?"_blank":void 0,rel:g?"noopener noreferrer":void 0,class:"ph-tour-branding",style:g?void 0:{cursor:"default",pointerEvents:"none"},children:["Tour by ",Dr]})]})}Ir("svg",{width:"16",height:"12",viewBox:"0 0 16 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Ir("path",{d:"M5.30769 10.6923L4.77736 11.2226C4.91801 11.3633 5.10878 11.4423 5.30769 11.4423C5.5066 11.4423 5.69737 11.3633 5.83802 11.2226L5.30769 10.6923ZM15.5303 1.53033C15.8232 1.23744 15.8232 0.762563 15.5303 0.46967C15.2374 0.176777 14.7626 0.176777 14.4697 0.46967L15.5303 1.53033ZM1.53033 5.85429C1.23744 5.56139 0.762563 5.56139 0.46967 5.85429C0.176777 6.14718 0.176777 6.62205 0.46967 6.91495L1.53033 5.85429ZM5.83802 11.2226L15.5303 1.53033L14.4697 0.46967L4.77736 10.162L5.83802 11.2226ZM0.46967 6.91495L4.77736 11.2226L5.83802 10.162L1.53033 5.85429L0.46967 6.91495Z",fill:"currentColor"})});var Fr=[$r,zr,jr],Hr=[Rr,$r,zr,jr,Or];function Vr(t){var{value:e,onChange:r,onSubmit:n,isInteractive:o}=t,i=rr(null);tr((()=>{o&&setTimeout((()=>{var t;return null==(t=i.current)?void 0:t.focus()}),100)}),[o]);return Ir("textarea",{ref:i,class:"ph-tour-survey-textarea",rows:3,placeholder:"Your feedback (optional)...",value:e,onInput:t=>r(t.target.value),onKeyDown:t=>{"Enter"===t.key&&t.metaKey&&o&&(t.preventDefault(),null==n||n())},disabled:!o,style:o?void 0:{cursor:"default"}})}function Br(t){var{survey:e,onSubmit:r,isInteractive:n}=t,[o,i]=Je(null),l=e.display||"emoji",a=e.scale||5,u=t=>{n&&(i(t),null==r||r(t))};if("emoji"===l)return Ir("div",{class:"ph-tour-survey-rating-container",children:[Ir("div",{class:"ph-tour-survey-rating-emoji",children:(3===a?Fr:Hr).map(((t,e)=>{var r=e+1;return Ir("button",{type:"button",class:"ph-tour-survey-emoji-button "+(o===r?"ph-tour-survey-emoji-button--active":""),onClick:()=>u(r),style:n?void 0:{cursor:"default"},"aria-label":"Rate "+r,children:t},e)}))}),(e.lowerBoundLabel||e.upperBoundLabel)&&Ir("div",{class:"ph-tour-survey-rating-labels",children:[Ir("span",{children:e.lowerBoundLabel}),Ir("span",{children:e.upperBoundLabel})]})]});var s=function(t){switch(t){case 5:default:return[1,2,3,4,5];case 10:return[0,1,2,3,4,5,6,7,8,9,10]}}(a);return Ir("div",{class:"ph-tour-survey-rating-container",children:[Ir("div",{class:"ph-tour-survey-rating-numbers",style:{gridTemplateColumns:"repeat("+s.length+", minmax(0, 1fr))"},children:s.map((t=>Ir("button",{type:"button",class:"ph-tour-survey-number-button "+(o===t?"ph-tour-survey-number-button--active":""),onClick:()=>u(t),style:n?void 0:{cursor:"default"},"aria-label":"Rate "+t,children:t},t)))}),(e.lowerBoundLabel||e.upperBoundLabel)&&Ir("div",{class:"ph-tour-survey-rating-labels",children:[Ir("span",{children:e.lowerBoundLabel}),Ir("span",{children:e.upperBoundLabel})]})]})}function Ur(t){var e,{step:r,appearance:n,stepIndex:o,totalSteps:i,onPrevious:l,onSubmit:a,onDismiss:u}=t,[s,c]=Je(""),h=r.survey,f=null!==(e=null==n?void 0:n.whiteLabel)&&void 0!==e&&e,d=0===o,p="open"===(null==h?void 0:h.type),v=!!(l||a||u),m=v?void 0:{cursor:"default"},g=()=>{null==a||a(s.trim()||null)};return h?Ir(S,{children:[Ir("button",{class:"ph-tour-dismiss",onClick:u,"aria-label":"Close survey",style:m,children:Zr()}),Ir("div",{class:"ph-tour-survey-question",children:h.questionText}),p?Ir(Vr,{value:s,onChange:c,onSubmit:g,isInteractive:v}):Ir(Br,{survey:h,onSubmit:a,isInteractive:v}),Ir("div",{class:"ph-tour-footer",children:[Ir("span",{class:"ph-tour-progress",children:[o+1," of ",i]}),Ir("div",{class:"ph-tour-buttons",children:[!d&&Ir("button",{class:"ph-tour-button ph-tour-button--secondary",onClick:l,style:m,children:h.backButtonText||"Back"}),p&&Ir("button",{class:"ph-tour-button ph-tour-button--primary",onClick:g,style:m,children:h.submitButtonText||"Submit"})]})]}),!f&&Ir("a",{href:v?"https://posthog.com/product-tours":void 0,target:v?"_blank":void 0,rel:v?"noopener noreferrer":void 0,class:"ph-tour-branding",style:v?void 0:{cursor:"default",pointerEvents:"none"},children:["Survey by ",Dr]})]}):Ir("div",{})}var Qr=e;function Wr(t){return{top:"bottom",bottom:"top",left:"right",right:"left"}[t]}var Yr=150;function Xr(t){var e,{tour:r,step:n,stepIndex:o,totalSteps:i,targetElement:a,onNext:u,onPrevious:s,onDismiss:c,onSurveySubmit:h,onButtonClick:f}=t,[d,p]=Je("entering"),[v,m]=Je(null),[g,b]=Je(null),[y,x]=Je(!1),[w,_]=Je(n),[k,T]=Je(o),C=rr(null),S=rr(o),q=rr(!1),M=rr(a),A=!yr(w)||"survey"===w.type;er((()=>{M.current=a}),[a]);var L=function(t,e){return He=8,nr((function(){return t}),e)}((()=>{var t=M.current;if(t&&C.current){var e=C.current.getBoundingClientRect(),r={width:e.width,height:e.height},n=t.getBoundingClientRect();m(function(t,e){var r=gr.innerWidth,n=gr.innerHeight,{width:o,height:i}=e,l=t.top,a=n-t.bottom,u=t.left,s=r-t.right,c=t.top+t.height/2,h=t.left+t.width/2;if(s>=o+_r){var f=t.right+_r,{clamped:d,offset:p}=Tr(c,i,n);return{position:"right",top:d,left:f,arrowOffset:p}}if(u>=o+_r){var v=r-t.left+_r,{clamped:m,offset:g}=Tr(c,i,n);return{position:"left",top:m,right:v,arrowOffset:g}}if(l>=i+_r&&a<i+_r){var b=n-t.top+_r,{clamped:y,offset:x}=Tr(h,o,r);return{position:"top",bottom:b,left:y,arrowOffset:x}}var w=t.bottom+_r,{clamped:_,offset:k}=Tr(h,o,r);return{position:"bottom",top:w,left:_,arrowOffset:k}}(n,r)),b(function(t,e){return void 0===e&&(e=8),{top:t.top-e+"px",left:t.left-e+"px",width:t.width+2*e+"px",height:t.height+2*e+"px"}}(n)),x(!0)}}),[]);er((()=>{!A&&!y&&C.current&&a&&L()}),[A,y,a,L]),tr((()=>{var t=o,e=S.current!==o,r=()=>{S.current===t&&(p("visible"),q.current=!1)},i=()=>{M.current&&yr(n)&&(M.current.isConnected||(M.current=wr(n).element),M.current)?function(t,e){var r=t.getBoundingClientRect(),n=Qr.innerHeight,o=Qr.innerWidth,i=n/6,l=o/6;if(r.top>=i&&r.bottom<=n-i&&r.left>=l&&r.right<=o-l)e();else{t.scrollIntoView({behavior:"smooth",block:"center"});var a=r.top,u=0,s=!1,c=()=>{if(!s){var r=t.getBoundingClientRect();if(Math.abs(r.top-a)<1){if(++u>=3)return s=!0,void e()}else u=0;a=r.top,setTimeout(c,50)}};setTimeout(c,30),setTimeout((()=>{s||(s=!0,e())}),500)}}(M.current,(()=>{S.current===t&&(L(),setTimeout(r,50))})):setTimeout(r,50)};if(!e)return S.current=o,q.current=!0,void i();S.current=o,q.current=!0,p("exiting"),setTimeout((()=>{S.current===t&&(yr(n)&&(m(null),b(null),x(!1)),_(n),T(o),p("entering"),i())}),Yr)}),[a,o,n,L]),tr((()=>{if("visible"===d&&!A){var t=()=>{q.current||L()};return ze(Qr,"scroll",t,{capture:!0}),ze(Qr,"resize",t),()=>{null==Qr||Qr.removeEventListener("scroll",t,!0),null==Qr||Qr.removeEventListener("resize",t)}}}),[L,d,A]),tr((()=>{var t=t=>{"Escape"===t.key&&c("escape_key")};return ze(Qr,"keydown",t),()=>{null==Qr||Qr.removeEventListener("keydown",t)}}),[c]);var E,I,j="visible"===d,z="survey"===w.type,R=A||y,O=l({},w.maxWidth&&{width:"min("+w.maxWidth+"px, calc(100vw - 16px))",maxWidth:"min("+w.maxWidth+"px, calc(100vw - 16px))"},A?l({},{top:"auto",right:"auto",bottom:"auto",left:"auto",transform:"none"},(I=function(t,e,r){if(void 0===e&&(e=K.Right),t===J.ExternalSurvey)return{};switch(e){case K.TopLeft:return{top:"0",left:"0",transform:"translate(30px, 30px)"};case K.TopRight:return{top:"0",right:"0",transform:"translate(-30px, 30px)"};case K.TopCenter:return{top:"0",left:"50%",transform:"translate(-50%, 30px)"};case K.MiddleLeft:return{top:"50%",left:"0",transform:"translate(30px, -50%)"};case K.MiddleRight:return{top:"50%",right:"0",transform:"translate(-30px, -50%)"};case K.MiddleCenter:return{top:"50%",left:"50%",transform:"translate(-50%, -50%)"};case K.Left:return{left:"30px"};case K.Center:return{left:"50%",transform:"translateX(-50%)"};default:case K.Right:return{right:t===J.Widget&&r===G.Tab?"60px":"30px"}}}(void 0,null!==(E=w.modalPosition)&&void 0!==E?E:he.MiddleCenter),"top"in I||"bottom"in I?I:l({},I,{bottom:"30px"}))):(()=>{if(!v)return{};var t="left"===v.position||"right"===v.position;return{top:me(v.top)?"auto":v.top+"px",bottom:me(v.bottom)?"auto":v.bottom+"px",left:me(v.left)?"auto":v.left+"px",right:me(v.right)?"auto":v.right+"px",transform:t?"translateY(-50%)":"translateX(-50%)"}})());return Ir("div",{class:"ph-tour-container",children:[!1!==(null==(e=r.appearance)?void 0:e.dismissOnClickOutside)&&Ir("div",{class:"ph-tour-click-overlay",onClick:t=>{t.stopPropagation(),c("user_clicked_outside")}}),Ir("div",{class:"ph-tour-modal-overlay",style:{opacity:A&&j?1:0,transition:"opacity 150ms ease-out",pointerEvents:"none"}}),Ir("div",{class:"ph-tour-spotlight",style:l({},j&&R&&g?g:{top:"50%",left:"50%",width:"0px",height:"0px"},{opacity:!A&&j&&R?1:0,transition:"opacity 150ms ease-out"},"click"===w.progressionTrigger&&!A&&{pointerEvents:"auto",cursor:"pointer"}),onClick:"click"!==w.progressionTrigger||A?void 0:t=>{t.stopPropagation(),M.current&&M.current.click(),u()}}),Ir("div",{ref:C,class:"ph-tour-tooltip "+(A?"ph-tour-tooltip--modal":"")+" "+(z?"ph-tour-survey-step":""),style:l({},O,{opacity:j&&R?1:0,transition:"opacity 150ms ease-out"}),onClick:t=>{t.stopPropagation()},children:[!A&&v&&Ir("div",{class:"ph-tour-arrow ph-tour-arrow--"+Wr(v.position),style:0!==v.arrowOffset?{"--ph-tour-arrow-offset":v.arrowOffset+"px"}:void 0}),z?Ir(Ur,{step:w,appearance:r.appearance,stepIndex:k,totalSteps:i,onSubmit:h,onPrevious:s,onDismiss:()=>c("user_clicked_skip")}):Ir(Nr,{step:w,appearance:r.appearance,stepIndex:k,totalSteps:i,onNext:u,onPrevious:s,onDismiss:()=>c("user_clicked_skip"),onButtonClick:f})]})]})}function Gr(t){var{class:e,href:r,children:n}=t;return Ir("a",{class:e,href:r,target:"_blank",rel:"noopener noreferrer",children:n})}function Kr(t){var{class:e,onClick:r,children:n}=t;return Ir("div",{class:e,role:"button",tabIndex:0,onClick:r,onKeyDown:t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),r())},style:{cursor:"pointer"},children:n})}function Jr(t){var{class:e,children:r}=t;return Ir("div",{class:e,children:r})}function tn(t){var e,{step:r,onDismiss:n,onTriggerTour:o,displayFrequency:i}=t,l=null!==(e=r.bannerConfig)&&void 0!==e?e:{behavior:"sticky"},a=l.action,u="always"!==i,s=["ph-tour-banner","sticky"===l.behavior&&"ph-tour-banner--sticky","custom"===l.behavior&&"ph-tour-banner--custom"].filter(Boolean).join(" "),c=Ir(S,{children:[Ir("div",{class:"ph-tour-banner-content",dangerouslySetInnerHTML:{__html:Lr(r)}}),u&&Ir("button",{class:"ph-tour-banner-dismiss",onClick:t=>{t.stopPropagation(),t.preventDefault(),n()},"aria-label":"Close banner",children:Zr()})]});return"link"===(null==a?void 0:a.type)&&a.link?Ir(Gr,{class:s,href:a.link,children:c}):"trigger_tour"===(null==a?void 0:a.type)&&o?Ir(Kr,{class:s,onClick:o,children:c}):Ir(Jr,{class:s,children:c})}Math.trunc||(Math.trunc=function(t){return t<0?Math.ceil(t):Math.floor(t)}),Number.isInteger||(Number.isInteger=function(t){return(t=>"[object Number]"==pe.call(t)&&t==t)(t)&&isFinite(t)&&Math.floor(t)===t}),e&&!me(e.crypto)&&crypto.getRandomValues;var en=null,rn={i:function(){if(!ge(en))return en;var t=!0;if(me(e))t=!1;else try{var r="__mplssupport__";rn.h(r,"xyz"),'"xyz"'!==rn.p(r)&&(t=!1),rn.v(r)}catch(e){t=!1}return t||Le.error("localStorage unsupported; falling back to cookie store"),en=t,t},m:function(t){Le.error("localStorage error: "+t)},p:function(t){try{return null==e?void 0:e.localStorage.getItem(t)}catch(t){rn.m(t)}return null},k:function(t){try{return JSON.parse(rn.p(t))||{}}catch(t){}return null},h:function(t,r){try{null==e||e.localStorage.setItem(t,JSON.stringify(r))}catch(t){rn.m(t)}},v:function(t){try{null==e||e.localStorage.removeItem(t)}catch(t){rn.m(t)}}},nn=null,on={i:function(){if(!ge(nn))return nn;if(nn=!0,me(e))nn=!1;else try{var t="__support__";on.h(t,"xyz"),'"xyz"'!==on.p(t)&&(nn=!1),on.v(t)}catch(t){nn=!1}return nn},m:function(t){Le.error("sessionStorage error: ",t)},p:function(t){try{return null==e?void 0:e.sessionStorage.getItem(t)}catch(t){on.m(t)}return null},k:function(t){try{return JSON.parse(on.p(t))||null}catch(t){}return null},h:function(t,r){try{null==e||e.sessionStorage.setItem(t,JSON.stringify(r))}catch(t){on.m(t)}},v:function(t){try{null==e||e.sessionStorage.removeItem(t)}catch(t){on.m(t)}}},ln="ph_product_tour_shown_",an="ph_product_tour_completed_",un="ph_product_tour_dismissed_",sn="ph_active_product_tour";function cn(t){var e,r;return!!(null!=(e=t.conditions)&&e.events&&(null==(r=t.conditions.events.values)?void 0:r.length)>0)}function hn(t){var e,r;return!!(null!=(e=t.conditions)&&e.actions&&(null==(r=t.conditions.actions.values)?void 0:r.length)>0)}class fn{constructor(){this.T={},this.T={}}on(t,e){return this.T[t]||(this.T[t]=[]),this.T[t].push(e),()=>{this.T[t]=this.T[t].filter((t=>t!==e))}}emit(t,e){for(var r of this.T[t]||[])r(e);for(var n of this.T["*"]||[])n(t,e)}}function dn(t,e,r){if(be(t))return!1;switch(r){case"exact":return t===e;case"contains":var n=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/_/g,".").replace(/%/g,".*");return new RegExp(n,"i").test(t);case"regex":try{return new RegExp(e).test(t)}catch(t){return!1}default:return!1}}class pn{constructor(t){this.C=new fn,this.S=(t,e)=>this.q(t,e)&&this.M(t,e)&&this.A(t,e)&&this.L(t,e),this.q=(t,e)=>null==e||!e.event||(null==t?void 0:t.event)===(null==e?void 0:e.event),this._instance=t,this.I=new Set,this.j=new Set}init(){var t;if(!me(null==(t=this._instance)?void 0:t._addCaptureHook)){var e;null==(e=this._instance)||e._addCaptureHook(((t,e)=>{this.on(t,e)}))}}register(t){var e,r;if(!me(null==(e=this._instance)?void 0:e._addCaptureHook)&&(t.forEach((t=>{var e,r;null==(e=this.j)||e.add(t),null==(r=t.steps)||r.forEach((t=>{var e;null==(e=this.I)||e.add((null==t?void 0:t.event)||"")}))})),null!=(r=this._instance)&&r.autocapture)){var n,o=new Set;t.forEach((t=>{var e;null==(e=t.steps)||e.forEach((t=>{null!=t&&t.selector&&o.add(null==t?void 0:t.selector)}))})),null==(n=this._instance)||n.autocapture.setElementSelectors(o)}}on(t,e){var r;null!=e&&0!=t.length&&(this.I.has(t)||this.I.has(null==e?void 0:e.event))&&this.j&&(null==(r=this.j)?void 0:r.size)>0&&this.j.forEach((t=>{this.$(e,t)&&this.C.emit("actionCaptured",t.name)}))}R(t){this.onAction("actionCaptured",(e=>t(e)))}$(t,e){if(null==(null==e?void 0:e.steps))return!1;for(var r of e.steps)if(this.S(t,r))return!0;return!1}onAction(t,e){return this.C.on(t,e)}M(t,e){if(null!=e&&e.url){var r,n=null==t||null==(r=t.properties)?void 0:r.$current_url;if(!n||"string"!=typeof n)return!1;if(!dn(n,e.url,e.url_matching||"contains"))return!1}return!0}A(t,e){return!!this.O(t,e)&&(!!this.Z(t,e)&&!!this.D(t,e))}O(t,e){var r;if(null==e||!e.href)return!0;var n=this.P(t);if(n.length>0)return n.some((t=>dn(t.href,e.href,e.href_matching||"exact")));var o,i=(null==t||null==(r=t.properties)?void 0:r.$elements_chain)||"";return!!i&&dn((o=i.match(/(?::|")href="(.*?)"/))?o[1]:"",e.href,e.href_matching||"exact")}Z(t,e){var r;if(null==e||!e.text)return!0;var n=this.P(t);if(n.length>0)return n.some((t=>dn(t.text,e.text,e.text_matching||"exact")||dn(t.$el_text,e.text,e.text_matching||"exact")));var o,i,l,a=(null==t||null==(r=t.properties)?void 0:r.$elements_chain)||"";return!!a&&(o=function(t){for(var e,r=[],n=/(?::|")text="(.*?)"/g;!be(e=n.exec(t));)r.includes(e[1])||r.push(e[1]);return r}(a),i=e.text,l=e.text_matching||"exact",o.some((t=>dn(t,i,l))))}D(t,e){var r,n;if(null==e||!e.selector)return!0;var o=null==t||null==(r=t.properties)?void 0:r.$element_selectors;if(null!=o&&o.includes(e.selector))return!0;var i=(null==t||null==(n=t.properties)?void 0:n.$elements_chain)||"";if(e.selector_regex&&i)try{return new RegExp(e.selector_regex).test(i)}catch(t){return!1}return!1}P(t){var e;return null==(null==t||null==(e=t.properties)?void 0:e.$elements)?[]:null==t?void 0:t.properties.$elements}L(t,e){return null==e||!e.properties||0===e.properties.length||Ze(e.properties.reduce(((t,e)=>{var r=ve(e.value)?e.value.map(String):null!=e.value?[String(e.value)]:[];return t[e.key]={values:r,operator:e.operator||"exact"},t}),{}),null==t?void 0:t.properties)}}class vn{constructor(t){this._instance=t,this.N=new Map,this.F=new Map,this.H=new Map}V(t,e){return!!t&&Ze(t.propertyFilters,null==e?void 0:e.properties)}B(t,e){var r=new Map;return t.forEach((t=>{var n;null==(n=t.conditions)||null==(n=n[e])||null==(n=n.values)||n.forEach((e=>{if(null!=e&&e.name){var n=r.get(e.name)||[];n.push(t.id),r.set(e.name,n)}}))})),r}U(t,e,r){var n=(r===X.Activation?this.N:this.F).get(t),o=[];return this.W((t=>{o=t.filter((t=>null==n?void 0:n.includes(t.id)))})),o.filter((n=>{var o,i=null==(o=n.conditions)||null==(o=o[r])||null==(o=o.values)?void 0:o.find((e=>e.name===t));return this.V(i,e)}))}register(t){var e;me(null==(e=this._instance)?void 0:e._addCaptureHook)||(this.Y(t),this.X(t))}X(t){var e=t.filter((t=>{var e,r;return(null==(e=t.conditions)?void 0:e.actions)&&(null==(r=t.conditions)||null==(r=r.actions)||null==(r=r.values)?void 0:r.length)>0}));if(0!==e.length){if(null==this.G){this.G=new pn(this._instance),this.G.init();this.G.R((t=>{this.onAction(t)}))}e.forEach((t=>{var e,r,n,o,i;t.conditions&&null!=(e=t.conditions)&&e.actions&&null!=(r=t.conditions)&&null!=(r=r.actions)&&r.values&&(null==(n=t.conditions)||null==(n=n.actions)||null==(n=n.values)?void 0:n.length)>0&&(null==(o=this.G)||o.register(t.conditions.actions.values),null==(i=t.conditions)||null==(i=i.actions)||null==(i=i.values)||i.forEach((e=>{if(e&&e.name){var r=this.H.get(e.name);r&&r.push(t.id),this.H.set(e.name,r||[t.id])}})))}))}}Y(t){var e,r=t.filter((t=>{var e,r;return(null==(e=t.conditions)?void 0:e.events)&&(null==(r=t.conditions)||null==(r=r.events)||null==(r=r.values)?void 0:r.length)>0})),n=t.filter((t=>{var e,r;return(null==(e=t.conditions)?void 0:e.cancelEvents)&&(null==(r=t.conditions)||null==(r=r.cancelEvents)||null==(r=r.values)?void 0:r.length)>0}));if(0!==r.length||0!==n.length){null==(e=this._instance)||e._addCaptureHook(((t,e)=>{this.onEvent(t,e)})),this.N=this.B(t,X.Activation),this.F=this.B(t,X.Cancellation)}}onEvent(t,e){var r,n=this.K(),o=this.J(),i=this.tt(),l=(null==(r=this._instance)||null==(r=r.persistence)?void 0:r.props[o])||[];if(i===t&&e&&l.length>0){var a,u;n.info("event matched, removing item from activated items",{event:t,eventPayload:e,existingActivatedItems:l});var s=(null==e||null==(a=e.properties)?void 0:a.$survey_id)||(null==e||null==(u=e.properties)?void 0:u.$product_tour_id);if(s){var c=l.indexOf(s);c>=0&&(l.splice(c,1),this.et(l))}}else{if(this.F.has(t)){var h=this.U(t,e,X.Cancellation);h.length>0&&(n.info("cancel event matched, cancelling items",{event:t,itemsToCancel:h.map((t=>t.id))}),h.forEach((t=>{var e=l.indexOf(t.id);e>=0&&l.splice(e,1),this.rt(t.id)})),this.et(l))}if(this.N.has(t)){n.info("event name matched",{event:t,eventPayload:e,items:this.N.get(t)});var f=this.U(t,e,X.Activation);this.et(l.concat(f.map((t=>t.id))||[]))}}}onAction(t){var e,r=this.J(),n=(null==(e=this._instance)||null==(e=e.persistence)?void 0:e.props[r])||[];this.H.has(t)&&this.et(n.concat(this.H.get(t)||[]))}et(t){var e,r=this.K(),n=this.J(),o=[...new Set(t)].filter((t=>!this.nt(t)));r.info("updating activated items",{activatedItems:o}),null==(e=this._instance)||null==(e=e.persistence)||e.register({[n]:o})}getActivatedIds(){var t,e=this.J(),r=null==(t=this._instance)||null==(t=t.persistence)?void 0:t.props[e];return r||[]}getEventToItemsMap(){return this.N}ot(){return this.G}}var mn=Ee("[Product Tour Event Receiver]");class gn extends vn{constructor(t){super(t)}J(){return"$product_tours_activated"}tt(){return W.SHOWN}W(t){var e;null==(e=this._instance)||null==(e=e.productTours)||e.getProductTours(t)}rt(t){var e;null==(e=this._instance)||null==(e=e.productTours)||e.cancelPendingTour(t)}K(){return mn}nt(t){if(!t)return!0;var e=""+an+t,r=""+un+t;return!(!rn.p(e)&&!rn.p(r))}getTours(){return this.getActivatedIds()}}var bn=Ee("[Product Tours]"),yn=o,xn=e;function wn(t){var e=new Date;if(t.start_date&&e<new Date(t.start_date))return!1;if(t.end_date&&e>new Date(t.end_date))return!1;return!0}function _n(t){return wn(t)&&function(t){var e,r=t.conditions;if(null==r||!r.url)return!0;var n=null==xn||null==(e=xn.location)?void 0:e.href;if(!n)return!1;var o=r.urlMatchType||fe.Icontains;if(o===fe.Exact)return qr(n)===qr(r.url);var i=[r.url];return Re[o](i,[n])}(t)}var kn="ph-product-tour-container",Tn="data-ph-tour-trigger";class Cn{constructor(t){var e=this;this.it=null,this.ut=0,this.st=!1,this.ct=!1,this.ht=null,this.ft=new Map,this.dt=new Map,this.vt=new Set,this.bt=new Set,this.yt=()=>{yn.hidden&&this.ht?(clearInterval(this.ht),this.ht=null):yn.hidden||this.ht||(this.ht=setInterval((()=>{this.xt()}),1e3),this.xt())},this.nextStep=()=>{if(this.it){var t=this.it.steps[this.ut];this.wt(W.STEP_COMPLETED,{[Y.TOUR_ID]:this.it.id,[Y.TOUR_STEP_ID]:t.id,[Y.TOUR_STEP_ORDER]:this.ut}),this.ut<this.it.steps.length-1?(this._t(this.ut+1),this.kt()):this.Tt()}},this.previousStep=()=>{this.it&&0!==this.ut&&(this._t(this.ut-1),this.kt())},this.dismissTour=function(t){if(void 0===t&&(t="user_clicked_skip"),e.it){var r=e.it.steps[e.ut];e.wt(W.DISMISSED,{[Y.TOUR_ID]:e.it.id,[Y.TOUR_STEP_ID]:r.id,[Y.TOUR_STEP_ORDER]:e.ut,[Y.TOUR_DISMISS_REASON]:t}),e.st||(rn.h(""+un+e.it.id,!0),e._instance.capture("$set",{$set:{["$product_tour_dismissed/"+e.it.id]:!0}})),xn.dispatchEvent(new CustomEvent("PHProductTourDismissed",{detail:{tourId:e.it.id,reason:t}})),e.Ct()}},this.St=t=>{if(this.it){var e=this.it.steps[this.ut];e&&this.wt(W.BUTTON_CLICKED,l({[Y.TOUR_ID]:this.it.id,[Y.TOUR_NAME]:this.it.name,[Y.TOUR_ITERATION]:this.it.current_iteration||1,[Y.TOUR_STEP_ID]:e.id,[Y.TOUR_STEP_ORDER]:this.ut,[Y.TOUR_BUTTON_TEXT]:t.text,[Y.TOUR_BUTTON_ACTION]:t.action},t.link&&{[Y.TOUR_BUTTON_LINK]:t.link},t.tourId&&{[Y.TOUR_BUTTON_TOUR_ID]:t.tourId}))}switch(t.action){case"dismiss":this.dismissTour("user_clicked_skip");break;case"next_step":this.nextStep();break;case"previous_step":this.previousStep();break;case"link":this.Tt();break;case"trigger_tour":t.tourId&&(this.Tt(),this.showTourById(t.tourId))}},this._instance=t,this.qt=new gn(t)}Mt(t){var e=t.filter((t=>!t.disable_image_preload)).flatMap((t=>t.steps.flatMap(Ar)));for(var r of e)this.bt.has(r)||(this.bt.add(r),(new Image).src=r)}_t(t){this.ut=t,this.At()}At(){this.it&&!this.st&&on.h(sn,{tourId:this.it.id,stepIndex:this.ut})}Lt(){on.v(sn)}Et(){var t=on.p(sn);if(!t)return null;try{return JSON.parse(t)}catch(t){return null}}start(){if(!this.ht){var t=this.Et();t?this.It(t.tourId,t.stepIndex,(()=>{this.jt()})):this.jt()}}jt(){this.ht=setInterval((()=>{this.xt()}),1e3),this.xt(!0),ze(yn,"visibilitychange",this.yt)}It(t,e,r){var n;null==(n=this._instance.productTours)||n.getProductTours((n=>{var o=n.find((e=>e.id===t));o?(this.it=o,this.ut=e,this.ct=!0,this.kt()):n.length>0&&this.Lt(),r()}))}stop(){this.ht&&(clearInterval(this.ht),this.ht=null),yn.removeEventListener("visibilitychange",this.yt),this.zt(),this.$t(),this.Ct()}xt(t){var e;null!=yn&&yn.getElementById("__POSTHOG_TOOLBAR__")||null==(e=this._instance.productTours)||e.getProductTours((t=>{if(0!==t.length){this.Mt(t);var e=new Set,r=t.filter((t=>!this.vt.has(t.id)&&(cn(t)||hn(t))));r.length>0&&(this.qt.register(r),r.forEach((t=>this.vt.add(t.id))));var n=this.it?[]:this.qt.getTours();for(var o of t){var i,l=null==(i=o.conditions)?void 0:i.selector;if(l&&(e.add(o.id),this.Rt(o,l)),!this.it){var a=hn(o)||cn(o);if(o.auto_launch&&this.Ot(o)){if(!a){this.Zt(o,"auto");continue}n.includes(o.id)&&this.Zt(o,"event")}}}this.ft.forEach((t=>{var{tour:r}=t;e.has(r.id)||this.Dt(r.id)}))}else this.zt()}),t)}Zt(t,e){var r,n=(null==(r=t.conditions)?void 0:r.autoShowDelaySeconds)||0;n>0?this.isTourPending(t.id)||this.queueTourWithDelay(t.id,n,e):this.showTour(t,{reason:e})}Ot(t){var e,r;if(!_n(t))return bn.info("Tour "+t.id+" failed conditions check"),!1;var n=null!==(e=t.display_frequency)&&void 0!==e?e:"until_interacted",o=""+ln+t.id,i=""+an+t.id,l=""+un+t.id;switch(n){case"show_once":if(rn.p(o))return bn.info("Tour "+t.id+" already shown (show_once frequency)"),!1;break;case"until_interacted":if(rn.p(i)||rn.p(l))return bn.info("Tour "+t.id+" already completed or dismissed"),!1}if(!this.Pt({flagKey:t.internal_targeting_flag_key}))return bn.info("Tour "+t.id+" failed feature flag check: "+t.internal_targeting_flag_key),!1;var a=null==(r=t.conditions)?void 0:r.linkedFlagVariant;return!!this.Pt({flagKey:t.linked_flag_key,flagVariant:a})||(bn.info("Tour "+t.id+" failed feature flag check: "+t.linked_flag_key+", variant: "+a),!1)}showTour(t,e){var r,n=null!==(r=null==e?void 0:e.reason)&&void 0!==r?r:"auto";this.cancelPendingTour(t.id),this.it=t,this._t(0);var o=this.kt();return o?(this.wt(W.SHOWN,{[Y.TOUR_ID]:t.id,[Y.TOUR_NAME]:t.name,[Y.TOUR_ITERATION]:t.current_iteration||1,[Y.TOUR_RENDER_REASON]:n}),this.st||(rn.h(""+ln+t.id,!0),this._instance.capture("$set",{$set:{["$product_tour_shown/"+t.id]:!0}}))):this.Ct(),o}showTourById(t,e){var r;bn.info("showTourById("+t+")"),null==(r=this._instance.productTours)||r.getProductTours((r=>{var n=r.find((e=>e.id===t));n?this.showTour(n,{reason:null!=e?e:"api"}):bn.warn("could not find tour",t)}))}previewTour(t){bn.info("Previewing tour "+t.id),this.Ct(),this.st=!0,this.it=t,this.ut=0,this.kt()}Tt(){this.it&&(this.wt(W.COMPLETED,{[Y.TOUR_ID]:this.it.id,[Y.TOUR_STEPS_COUNT]:this.it.steps.length}),this.st||(rn.h(""+an+this.it.id,!0),this._instance.capture("$set",{$set:{["$product_tour_completed/"+this.it.id]:!0}})),xn.dispatchEvent(new CustomEvent("PHProductTourCompleted",{detail:{tourId:this.it.id}})),this.Ct())}kt(t){var e;if(void 0===t&&(t=0),!this.it)return!1;var r=this.it.steps[this.ut];if(!r)return bn.warn("Step "+this.ut+" not found in tour "+this.it.id),this.Ct(),!1;if("banner"===r.type)return this.Nt(),this.ct=!1,this.Ft(),!0;if("survey"===r.type)return r.survey?(this.Ht(),!0):(bn.warn("Unable to render survey step - survey data not found"),!1);if(!yr(r))return this.Nt(),this.ct=!1,this.Vt(null),!0;var n=wr(r),o={[Y.USE_MANUAL_SELECTOR]:null!==(e=r.useManualSelector)&&void 0!==e&&e,[Y.INFERENCE_DATA_PRESENT]:!!r.inferenceData},i=this.ut>0?this.it.steps[this.ut-1]:null,a="click"===(null==i?void 0:i.progressionTrigger)||this.ct;if("not_found"===n.error||"not_visible"===n.error){if(a&&t<20)return setTimeout((()=>{this.kt(t+1)}),100),!1;var u=100*t;return this.Bt(n,l({[Y.TOUR_WAITED_FOR_ELEMENT]:a,[Y.TOUR_WAIT_DURATION_MS]:u},o)),0!==this.ut||this.ct?(bn.warn('Tour "'+this.it.name+'" dismissed: element for step '+this.ut+" became unavailable ("+n.error+")"+(a?" after waiting "+u+"ms":"")),this.dismissTour("element_unavailable"),!1):(bn.warn('Tour "'+this.it.name+'" failed to show: element for first step not found ('+n.error+")"),!1)}if("multiple_matches"===n.error&&this.Bt(n,o),!n.element)return!1;var s=n.element,c=function(t){var e;return{tag:t.tagName,id:t.id||void 0,classes:t.className||void 0,text:(null==(e=t.innerText)?void 0:e.slice(0,100))||void 0}}(s);return this.Nt(l({[Y.TOUR_STEP_SELECTOR]:r.selector,[Y.TOUR_STEP_SELECTOR_FOUND]:!0,[Y.TOUR_STEP_ELEMENT_TAG]:c.tag,[Y.TOUR_STEP_ELEMENT_ID]:c.id,[Y.TOUR_STEP_ELEMENT_CLASSES]:c.classes,[Y.TOUR_STEP_ELEMENT_TEXT]:c.text},o)),this.ct=!1,this.Vt(s),!0}Vt(t,e,r){if(this.it){var n=this.it.steps[this.ut],{shadow:o}=function(t){var e=kn+"-"+t.id,r=yn.querySelector("."+e);if(r&&r.shadowRoot)return{shadow:r.shadowRoot,isNewlyCreated:!1};var n=yn.createElement("div");n.className=e,Cr(n,t.appearance);var o=n.attachShadow({mode:"open"}),i=br();return i&&o.appendChild(i),yn.body.appendChild(n),{shadow:o,isNewlyCreated:!0}}(this.it);U(Ir(Xr,{tour:this.it,step:n,stepIndex:this.ut,totalSteps:this.it.steps.length,targetElement:t,onNext:this.nextStep,onPrevious:this.previousStep,onDismiss:r||this.dismissTour,onSurveySubmit:e,onButtonClick:this.St}),o)}}Ft(){if(this.it){var t,e=this.it.steps[this.ut],r=function(t,e){var r=kn+"-"+t.id,n=yn.querySelector("."+r);if(n&&n.shadowRoot)return{shadow:n.shadowRoot,isNewlyCreated:!1};var o=yn.createElement("div");o.className=r,Cr(o,t.appearance);var i=o.attachShadow({mode:"open"}),l=br();if(l&&i.appendChild(l),"custom"===(null==e?void 0:e.behavior)&&e.selector){var a=yn.querySelector(e.selector);if(!a)return bn.warn("Custom banner container not found: "+e.selector+". Banner will not be displayed."),null;a.appendChild(o)}else yn.body.insertBefore(o,yn.body.firstChild);return{shadow:i,isNewlyCreated:!0}}(this.it,e.bannerConfig);if(!r)return this.wt(W.BANNER_CONTAINER_SELECTOR_FAILED,{[Y.TOUR_ID]:this.it.id,[Y.TOUR_BANNER_SELECTOR]:null==e||null==(t=e.bannerConfig)?void 0:t.selector}),void this.dismissTour("container_unavailable");var{shadow:n}=r;U(Ir(tn,{step:e,onDismiss:()=>this.dismissTour("user_clicked_skip"),onTriggerTour:()=>{var t,r=null==(t=e.bannerConfig)||null==(t=t.action)?void 0:t.tourId;r&&(this.Ct(),this.showTourById(r))},displayFrequency:this.it.display_frequency}),n)}}Ht(){var t,e,r;if(this.it){var n=this.it.id,o=this.it.steps[this.ut],i=o.linkedSurveyId,a=o.linkedSurveyQuestionId,u=(null==(t=o.survey)?void 0:t.questionText)||"";this.Nt({[Y.TOUR_LINKED_SURVEY_ID]:i}),this.wt(tt.SHOWN,{[et.SURVEY_ID]:i,[et.PRODUCT_TOUR_ID]:n,sessionRecordingUrl:null==(e=(r=this._instance).get_session_replay_url)?void 0:e.call(r)});this.Vt(null,(t=>{var e,r,o=a?"$survey_response_"+a:"$survey_response";this.wt(tt.SENT,l({[et.SURVEY_ID]:i,[et.PRODUCT_TOUR_ID]:n,[et.SURVEY_QUESTIONS]:[{id:a,question:u,response:t}],[et.SURVEY_COMPLETED]:!0,sessionRecordingUrl:null==(e=(r=this._instance).get_session_replay_url)?void 0:e.call(r)},!ge(t)&&{[o]:t})),bn.info("Survey "+i+" completed",ge(t)?"(skipped)":"with response: "+t),this.nextStep()}),(t=>{var e,r;this.wt(tt.DISMISSED,{[et.SURVEY_ID]:i,[et.PRODUCT_TOUR_ID]:n,[et.SURVEY_QUESTIONS]:[{id:a,question:u,response:null}],[et.SURVEY_PARTIALLY_COMPLETED]:!1,sessionRecordingUrl:null==(e=(r=this._instance).get_session_replay_url)?void 0:e.call(r)}),bn.info("Survey "+i+" dismissed"),this.dismissTour(t)})),bn.info("Rendered survey step for tour step "+this.ut)}}Pt(t){var{flagKey:e,flagVariant:r}=t;if(!e)return!0;var n=!!this._instance.featureFlags.isFeatureEnabled(e,{send_event:!e.startsWith("product-tour-targeting-")}),o=!0;r&&(o=this._instance.featureFlags.getFeatureFlag(e,{send_event:!1})===r||"any"===r);return n&&o}Ct(){var t,e,r;this.it&&(t=this.it.id,e=kn+"-"+t,null!=(r=yn.querySelector("."+e))&&r.shadowRoot&&U(null,r.shadowRoot),null==r||r.remove()),this.it=null,this.ut=0,this.st=!1,this.ct=!1,this.Lt()}Rt(t,e){var r=yn.querySelector(e),n=this.ft.get(t.id);if(r){if(n){if(r===n.element)return;bn.info("Trigger element changed for tour "+t.id+". Re-attaching listener."),this.Dt(t.id)}if(!r.hasAttribute(Tn)){var o=r=>{var n;if(this.it)bn.info("Tour "+t.id+" trigger clicked but another tour is active");else{var o;if(null==(n=this._instance.productTours)||n.getProductTours((e=>{o=e.find((e=>e.id===t.id))})),!o)return bn.warn("Tour "+t.id+" no longer exists. Removing stale listener."),void this.Dt(t.id);wn(o)?(bn.info("Tour "+t.id+" triggered by click on "+e),this.showTour(o,{reason:"trigger"})?r.preventDefault():bn.info("Tour "+t.id+" failed to show; not intercepting click.")):bn.warn("Tour "+t.id+" trigger clicked, but tour is not launched - not showing tour.")}};ze(r,"click",o),r.setAttribute(Tn,t.id),this.ft.set(t.id,{element:r,listener:o,tour:t}),bn.info("Attached trigger listener for tour "+t.id+" on "+e)}}else n&&this.Dt(t.id)}Dt(t){var e=this.ft.get(t);e&&(e.element.removeEventListener("click",e.listener),e.element.removeAttribute(Tn),this.ft.delete(t),bn.info("Removed trigger listener for tour "+t))}zt(){this.ft.forEach(((t,e)=>{this.Dt(e)}))}wt(t,e){this.st||this._instance.capture(t,e)}Nt(t){if(this.it){var e=this.it.steps[this.ut];this.wt(W.STEP_SHOWN,l({[Y.TOUR_ID]:this.it.id,[Y.TOUR_STEP_ID]:e.id,[Y.TOUR_STEP_ORDER]:this.ut,[Y.TOUR_STEP_TYPE]:e.type},t))}}Bt(t,e){if(this.it){var r=this.it.steps[this.ut];this.wt(W.STEP_SELECTOR_FAILED,l({[Y.TOUR_ID]:this.it.id,[Y.TOUR_STEP_ID]:r.id,[Y.TOUR_STEP_ORDER]:this.ut,[Y.TOUR_STEP_SELECTOR]:r.selector,[Y.TOUR_ERROR]:t.error,[Y.TOUR_MATCHES_COUNT]:t.matchCount,[Y.TOUR_FAILURE_PHASE]:"runtime"},e))}}getActiveProductTours(t){var e;null==(e=this._instance.productTours)||e.getProductTours(((e,r)=>{if(null!=r&&r.isLoaded){var n=e.filter((t=>this.Ot(t)));t(n,r)}else t([],r)}))}resetTour(t){rn.v(""+ln+t),rn.v(""+an+t),rn.v(""+un+t)}resetAllTours(){var t=null==xn?void 0:xn.localStorage;if(t){for(var e=[],r=0;r<t.length;r++){var n=t.key(r);(null!=n&&n.startsWith(ln)||null!=n&&n.startsWith(an)||null!=n&&n.startsWith(un))&&e.push(n)}e.forEach((t=>rn.v(t)))}}cancelPendingTour(t){var e=this.dt.get(t);e&&(clearTimeout(e),this.dt.delete(t),bn.info("Cancelled pending tour: "+t))}$t(){this.dt.forEach((t=>clearTimeout(t))),this.dt.clear()}isTourPending(t){return this.dt.has(t)}queueTourWithDelay(t,e,r){bn.info("Queueing tour "+t+" with "+e+"s delay");var n=setTimeout((()=>{this.dt.delete(t),bn.info("Delay elapsed for tour "+t+", showing now"),this.showTourById(t,r)}),1e3*e);this.dt.set(t,n)}}function Sn(t,e){if(o){var r=new Cn(t);return e&&r.start(),r}}i.__PosthogExtensions__=i.__PosthogExtensions__||{},i.__PosthogExtensions__.generateProductTours=Sn,t.default=Sn,t.elementIsVisible=Te,t.findElement=Me,t.getElementPath=function(t,e){if(void 0===e&&(e=4),!t)return null;for(var r=[],n=t;n&&r.length<e&&"BODY"!==n.tagName;){var o=n.tagName.toLowerCase();n.id?o+="#"+n.id:n.classList.length&&(o+="."+n.classList[0]),r.unshift(o),n=n.parentElement}return r.join(" > ")},Object.defineProperty(t,"__esModule",{value:!0})}({});
|
|
2
2
|
//# sourceMappingURL=product-tours.js.map
|