posthog-js 1.422.3 → 1.422.4
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/all-external-dependencies.js +1 -1
- package/dist/all-external-dependencies.js.map +1 -1
- package/dist/array.full.es5.js +1 -1
- package/dist/array.full.es5.js.map +1 -1
- package/dist/array.full.js +1 -1
- package/dist/array.full.js.map +1 -1
- package/dist/array.full.no-external.js +1 -1
- package/dist/array.full.no-external.js.map +1 -1
- package/dist/array.js +1 -1
- package/dist/array.no-external.js +1 -1
- package/dist/conversations.js +1 -1
- package/dist/customizations.d.ts +11 -0
- package/dist/customizations.full.js +1 -1
- package/dist/customizations.js +1 -1
- package/dist/dead-clicks-autocapture.js +1 -1
- package/dist/default-extensions.js +1 -1
- package/dist/exception-autocapture.js +1 -1
- package/dist/extension-bundles.js +1 -1
- package/dist/lazy-recorder.js +1 -1
- package/dist/main.d.ts +11 -0
- package/dist/main.js +1 -1
- package/dist/module.d.ts +11 -0
- package/dist/module.full.d.ts +11 -0
- package/dist/module.full.js +1 -1
- package/dist/module.full.js.map +1 -1
- package/dist/module.full.no-external.d.ts +11 -0
- 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.no-external.d.ts +11 -0
- package/dist/module.no-external.js +1 -1
- package/dist/module.slim.js +1 -1
- package/dist/module.slim.no-external.d.ts +11 -0
- package/dist/module.slim.no-external.js +1 -1
- package/dist/posthog-recorder.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/surveys/surveys-extension-utils.d.ts +4 -1
- package/dist/src/extensions/surveys.d.ts +11 -0
- package/dist/surveys-preview.js +1 -1
- package/dist/surveys-preview.js.map +1 -1
- package/dist/surveys.d.ts +11 -0
- package/dist/surveys.js +1 -1
- package/dist/surveys.js.map +1 -1
- package/lib/package.json +1 -1
- package/lib/src/extensions/surveys/surveys-extension-utils.d.ts +4 -1
- package/lib/src/extensions/surveys/surveys-extension-utils.js +10 -4
- package/lib/src/extensions/surveys/surveys-extension-utils.js.map +1 -1
- package/lib/src/extensions/surveys.d.ts +11 -0
- package/lib/src/extensions/surveys.js +120 -6
- package/lib/src/extensions/surveys.js.map +1 -1
- package/package.json +5 -5
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,n=null==e?void 0:e.navigator,o=null==e?void 0:e.document;null!=e&&e.XMLHttpRequest&&new e.XMLHttpRequest;var i=null==n?void 0:n.userAgent;function a(){return a=Object.assign?Object.assign.bind():function(t){for(var r=1;arguments.length>r;r++){var e=arguments[r];for(var n in e)({}).hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t},a.apply(null,arguments)}var l,u,s,c,h,f,d,p,v,m,g,b,y,w,x,_={},k=[],T=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,C=Array.isArray;function S(t,r){for(var e in r)t[e]=r[e];return t}function A(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function q(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!=u.vnode&&u.vnode(i),i}function M(t){return t.children}function j(t,r){this.props=t,this.context=r}function $(t,r){if(null==r)return t.__?$(t.__,t.__i+1):null;for(var e;t.__k.length>r;r++)if(null!=(e=t.__k[r])&&null!=e.__e)return e.__e;return"function"==typeof t.type?$(t):null}function L(t){if(t.__P&&t.__d){var r=t.__v,e=r.__e,n=[],o=[],i=S({},r);i.__v=r.__v+1,u.vnode&&u.vnode(i),F(t.__P,i,r,t.__n,t.__P.namespaceURI,32&r.__u?[e]:null,n,null==e?$(r):e,!!(32&r.__u),o),i.__v=r.__v,i.__.__k[i.__i]=i,V(n,i,o),r.__e=r.__=null,i.__e!=e&&E(i)}}function E(t){if(null!=(t=t.__)&&null!=t.__c)return t.__e=t.__c.base=null,t.__k.some((function(r){if(null!=r&&null!=r.__e)return t.__e=t.__c.base=r.__e})),E(t)}function I(t){(!t.__d&&(t.__d=!0)&&c.push(t)&&!z.__r++||h!=u.debounceRendering)&&((h=u.debounceRendering)||f)(z)}function z(){try{for(var t,r=1;c.length;)c.length>r&&c.sort(d),t=c.shift(),r=c.length,L(t)}finally{c.length=z.__r=0}}function O(t,r,e,n,o,i,a,l,u,s,c){var h,f,d,p,v,m,g,b=n&&n.__k||k,y=r.length;for(u=D(e,r,b,u,y),h=0;y>h;h++)null!=(d=e.__k[h])&&(f=-1!=d.__i&&b[d.__i]||_,d.__i=h,m=F(t,d,f,o,i,a,l,u,s,c),p=d.__e,d.ref&&f.ref!=d.ref&&(f.ref&&W(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=R(d,u,t,g),g&&f.__e&&(f.__e=null)):"function"==typeof d.type&&void 0!==m?u=m:p&&(u=p.nextSibling),d.__u&=-7);return e.__e=v,u}function D(t,r,e,n,o){var i,a,l,u,s,c=e.length,h=c,f=0;for(t.__k=new Array(o),i=0;o>i;i++)null!=(a=r[i])&&"boolean"!=typeof a&&"function"!=typeof a?("string"==typeof a||"number"==typeof a||"bigint"==typeof a||a.constructor==String?a=t.__k[i]=q(null,a,null,null,null):C(a)?a=t.__k[i]=q(M,{children:a},null,null,null):void 0===a.constructor&&a.__b>0?a=t.__k[i]=q(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):t.__k[i]=a,u=i+f,a.__=t,a.__b=t.__b+1,l=null,-1!=(s=a.__i=N(a,e,u,h))&&(h--,(l=e[s])&&(l.__u|=2)),null==l||null==l.__v?(-1==s&&(o>c?f--:c>o&&f++),"function"!=typeof a.type&&(a.__u|=4)):s!=u&&(s==u-1?f--:s==u+1?f++:(s>u?f--:f++,a.__u|=4))):t.__k[i]=null;if(h)for(i=0;c>i;i++)null!=(l=e[i])&&0==(2&l.__u)&&(l.__e==n&&(n=$(l)),Y(l,l));return n}function R(t,r,e,n){var o,i;if("function"==typeof t.type){for(o=t.__k,i=0;o&&o.length>i;i++)o[i]&&(o[i].__=t,r=R(o[i],r,e,n));return r}t.__e!=r&&(n&&(r&&t.type&&!r.parentNode&&(r=$(t)),e.insertBefore(t.__e,r||null)),r=t.__e);do{r=r&&r.nextSibling}while(null!=r&&8==r.nodeType);return r}function N(t,r,e,n){var o,i,a,l=t.key,u=t.type,s=r[e],c=null!=s&&0==(2&s.__u);if(null===s&&null==l||c&&l==s.key&&u==s.type)return e;if(n>(c?1:0))for(o=e-1,i=e+1;o>=0||r.length>i;)if(null!=(s=r[a=0>o?i++:o--])&&0==(2&s.__u)&&l==s.key&&u==s.type)return a;return-1}function P(t,r,e){"-"==r[0]?t.setProperty(r,null==e?"":e):t[r]=null==e?"":"number"!=typeof e||T.test(r)?e:e+"px"}function Z(t,r,e,n,o){var i,a;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||P(t.style,r,"");if(e)for(r in e)n&&e[r]==n[r]||P(t.style,r,e[r])}else if("o"==r[0]&&"n"==r[1])i=r!=(r=r.replace(g,"$1")),a=r.toLowerCase(),r=a in t||"onFocusOut"==r||"onFocusIn"==r?a.slice(2):r.slice(2),t.l||(t.l={}),t.l[r+i]=e,e?n?e[m]=n[m]:(e[m]=b,t.addEventListener(r,i?w:y,i)):t.removeEventListener(r,i?w:y,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 B(t){return function(r){if(this.l){var e=this.l[r.type+t];if(null==r[v])r[v]=b++;else if(e[m]>r[v])return;return e(u.event?u.event(r):r)}}}function F(t,r,e,n,o,i,a,l,s,c){var h,f,d,p,v,m,g,b,y,w,$,x,_,T,q,L,E=r.type;if(void 0!==r.constructor)return null;128&e.__u&&(s=!!(32&e.__u),i=[l=r.__e=e.__e]),(h=u.__b)&&h(r);t:if("function"==typeof E){f=a.length;try{if(y=r.props,w=E.prototype&&E.prototype.render,$=(h=E.contextType)&&n[h.__c],x=h?$?$.props.value:h.__:n,e.__c?b=(d=r.__c=e.__c).__=d.__E:(w?r.__c=d=new E(y,x):(r.__c=d=new j(y,x),d.constructor=E,d.render=G),$&&$.sub(d),d.state||(d.state={}),d.__n=n,p=d.__d=!0,d.__h=[],d._sb=[]),w&&null==d.__s&&(d.__s=d.state),w&&null!=E.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=S({},d.__s)),S(d.__s,E.getDerivedStateFromProps(y,d.__s))),v=d.props,m=d.state,d.__v=r,p)w&&null==E.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),w&&null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(w&&null==E.getDerivedStateFromProps&&y!==v&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(y,x),r.__v==e.__v||!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(y,d.__s,x)){r.__v!=e.__v&&(d.props=y,d.state=d.__s,d.__d=!1),r.__e=e.__e,r.__k=e.__k,r.__k.some((function(t){t&&(t.__=r)})),k.push.apply(d.__h,d._sb),d._sb=[],d.__h.length&&a.push(d);break t}null!=d.componentWillUpdate&&d.componentWillUpdate(y,d.__s,x),w&&null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(v,m,g)}))}if(d.context=x,d.props=y,d.__P=t,d.__e=!1,_=u.__r,T=0,w)d.state=d.__s,d.__d=!1,_&&_(r),h=d.render(d.props,d.state,d.context),k.push.apply(d.__h,d._sb),d._sb=[];else do{d.__d=!1,_&&_(r),h=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&25>++T);d.state=d.__s,null!=d.getChildContext&&(n=S(S({},n),d.getChildContext())),w&&!p&&null!=d.getSnapshotBeforeUpdate&&(g=d.getSnapshotBeforeUpdate(v,m)),q=null!=h&&h.type===M&&null==h.key?U(h.props.children):h,l=O(t,C(q)?q:[q],r,e,n,o,i,a,l,s,c),d.base=r.__e,r.__u&=-161,d.__h.length&&a.push(d),b&&(d.__E=d.__=null)}catch(t){if(a.length=f,r.__v=null,s||null!=i)if(t.then){for(r.__u|=s?160:128;l&&8==l.nodeType&&l.nextSibling;)l=l.nextSibling;null!=i&&(i[i.indexOf(l)]=null),r.__e=l}else{if(null!=i)for(L=i.length;L--;)A(i[L]);H(r)}else r.__e=e.__e,!r.__k&&e.__k&&(r.__k=e.__k),t.then||H(r);u.__e(t,r,e)}}else null==i&&r.__v==e.__v?(r.__k=e.__k,r.__e=e.__e):l=r.__e=Q(e.__e,r,e,n,o,i,a,s,c);return(h=u.diffed)&&h(r),128&r.__u?void 0:l}function H(t){t&&(t.__c&&(t.__c.__e=!0),t.__k&&t.__k.some(H))}function V(t,r,e){for(var n=0;e.length>n;n++)W(e[n],e[++n],e[++n]);u.__c&&u.__c(r,t),t.some((function(r){try{t=r.__h,r.__h=[],t.some((function(t){t.call(r)}))}catch(t){u.__e(t,r.__v)}}))}function U(t){return"object"!=typeof t||null==t||t.__b>0?t:C(t)?t.map(U):void 0!==t.constructor?null:S({},t)}function Q(t,r,e,n,o,i,a,s,c){var h,f,d,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;i.length>h;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(y);t=document.createElementNS(o,w,y.is&&y),s&&(u.__m&&u.__m(r,i),s=!1),i=null}if(null==w)b===y||s&&t.data==y||(t.data=y);else{if(i="textarea"==w&&null!=y.defaultValue?null:i&&l.call(t.childNodes),!s&&null!=i)for(b={},h=0;t.attributes.length>h;h++)b[(v=t.attributes[h]).name]=v.value;for(h in b)v=b[h],"dangerouslySetInnerHTML"==h?d=v:"children"==h||h in y||"value"==h&&"defaultValue"in y||"checked"==h&&"defaultChecked"in y||Z(t,h,null,v,o);for(h in y)v=y[h],"children"==h?p=v:"dangerouslySetInnerHTML"==h?f=v:"value"==h?m=v:"checked"==h?g=v:s&&"function"!=typeof v||b[h]===v||Z(t,h,v,b[h],o);if(f)s||d&&(f.__html==d.__html||f.__html==t.innerHTML)||(t.innerHTML=f.__html),r.__k=[];else if(d&&(t.innerHTML=""),O("template"==r.type?t.content:t,C(p)?p:[p],r,e,n,"foreignObject"==w?"http://www.w3.org/1999/xhtml":o,i,a,i?i[0]:e.__k&&$(e,0),s,c),null!=i)for(h=i.length;h--;)A(i[h]);s&&"textarea"!=w||(h="value","progress"==w&&null==m?t.removeAttribute("value"):null!=m&&(m!==t[h]||"progress"==w&&!m||"option"==w&&m!=b[h])&&Z(t,h,m,b[h],o),h="checked",null!=g&&g!=t[h]&&Z(t,h,g,b[h],o))}return t}function W(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){u.__e(t,e)}}function Y(t,r,e){var n,o;if(u.unmount&&u.unmount(t),(n=t.ref)&&(n.current&&n.current!=t.__e||W(n,null,r)),null!=(n=t.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(t){u.__e(t,r)}n.base=n.__P=n.__n=null}if(n=t.__k)for(o=0;n.length>o;o++)n[o]&&Y(n[o],r,e||"function"!=typeof t.type);e||A(t.__e),t.__c=t.__=t.__e=void 0}function G(t,r,e){return this.constructor(t,e)}function K(t,r,e){var n,o,i;r==document&&(r=document.documentElement),u.__&&u.__(t,r),n=r.__k,o=[],i=[],F(r,t=r.__k=function(t,r,e){var n,o,i,a={};for(i in r)"key"==i?n=r[i]:"ref"==i?o=r[i]:a[i]=r[i];if(arguments.length>2&&(a.children=arguments.length>3?l.call(arguments,2):e),"function"==typeof t&&null!=t.defaultProps)for(i in t.defaultProps)void 0===a[i]&&(a[i]=t.defaultProps[i]);return q(t,a,n,o,null)}(M,null,[t]),n||_,_,r.namespaceURI,n?null:r.firstChild?l.call(r.childNodes):null,o,n?n.__e:r.firstChild,!1,i),V(o,t,i),t.props.children=null}l=k.slice,u={__e(t,r,e,n){for(var o,i,a;r=r.__;)if((o=r.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(t)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(t,n||{}),a=o.__d),a)return o.__E=o}catch(r){t=r}throw t}},s=0,j.prototype.setState=function(t,r){var e;e=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=S({},this.state),"function"==typeof t&&(t=t(S({},e),this.props)),t&&S(e,t),null!=t&&this.__v&&(r&&this._sb.push(r),I(this))},j.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),I(this))},j.prototype.render=M,c=[],f="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,d=function(t,r){return t.__v.__b-r.__v.__b},z.__r=0,p=Math.random().toString(8),v="__d"+p,m="__a"+p,g=/(PointerCapture)$|Capture$/i,b=0,y=B(!1),w=B(!0),x=0;var J="$product_tours_activated",X="$product_tours_activated_session",tt={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},rt="product tour shown",et="$product_tour_id",nt="$product_tour_name",ot="$product_tour_iteration",it="$product_tour_step_id",at="$product_tour_step_order",lt="$product_tour_button_action",ut="$product_tour_button_link",st="$product_tour_button_tour_id",ct="$product_tour_step_selector",ht="exact",ft="icontains",dt=Object.prototype,pt=dt.hasOwnProperty,vt=dt.toString,mt=Array.isArray||function(t){return"[object Array]"===vt.call(t)},gt=t=>"function"==typeof t,bt=t=>void 0===t,yt=t=>"[object String]"==vt.call(t),wt=t=>null===t,xt=t=>bt(t)||wt(t),_t=t=>"[object Number]"==vt.call(t)&&t==t,kt=(t,r,e)=>{function n(n){for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;o>a;a++)i[a-1]=arguments[a];r((()=>{(0,e[n])(t,...i)}))}var o={debug(){for(var t=arguments.length,r=new Array(t),e=0;t>e;e++)r[e]=arguments[e];n("debug",...r)},info(){for(var t=arguments.length,r=new Array(t),e=0;t>e;e++)r[e]=arguments[e];n("log",...r)},warn(){for(var t=arguments.length,r=new Array(t),e=0;t>e;e++)r[e]=arguments[e];n("warn",...r)},error(){for(var t=arguments.length,r=new Array(t),e=0;t>e;e++)r[e]=arguments[e];n("error",...r)},critical(){for(var r=arguments.length,n=new Array(r),o=0;r>o;o++)n[o]=arguments[o];e.error(t,...n)},createLogger:n=>kt(t+" "+n,r,e)};return o},Tt="Mobile",Ct="Android",St="Tablet",At=Ct+" "+St,qt="iPad",Mt="Apple Watch",jt="BlackBerry",Lt="Nintendo",Et="PlayStation",It="Xbox",zt="Windows Phone",Ot="Nokia",Dt="Ouya",$t="Generic",Rt=$t+" "+Tt.toLowerCase(),Nt=$t+" "+St.toLowerCase(),Pt=new RegExp(It,"i"),Zt=new RegExp(Et+" \\w+","i"),Bt=new RegExp(Lt+" \\w+","i"),Ft=new RegExp(jt+"|PlayBook|BB10","i"),Ht="events",Vt="cancelEvents",Ut="tab",Qt="top_left",Wt="top_right",Yt="top_center",Gt="middle_left",Kt="middle_right",Jt="middle_center",Xt="left",tr="center",rr="right",er="widget",nr="$survey_id",or="$survey_questions",ir="$product_tour_id";function ar(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=Array(r);r>e;e++)n[e]=t[e];return n}function lr(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var n,o,i,a,l=[],u=!0,s=!1;try{if(i=(e=e.call(t)).next,0===r);else for(;!(u=(n=i.call(e)).done)&&(l.push(n.value),l.length!==r);u=!0);}catch(t){s=!0,o=t}finally{try{if(!u&&null!=e.return&&(a=e.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(t,r)||function(t,r){if(t){if("string"==typeof t)return ar(t,r);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?ar(t,r):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var ur=Object.entries,sr=Object.setPrototypeOf,cr=Object.isFrozen,hr=Object.getPrototypeOf,fr=Object.getOwnPropertyDescriptor,dr=Object.freeze,pr=Object.seal,vr=Object.create,mr="undefined"!=typeof Reflect&&Reflect,gr=mr.apply,br=mr.construct;dr||(dr=function(t){return t}),pr||(pr=function(t){return t}),gr||(gr=function(t,r){for(var e=arguments.length,n=new Array(e>2?e-2:0),o=2;e>o;o++)n[o-2]=arguments[o];return t.apply(r,n)}),br||(br=function(t){for(var r=arguments.length,e=new Array(r>1?r-1:0),n=1;r>n;n++)e[n-1]=arguments[n];return new t(...e)});var yr,wr=Pr([].forEach),xr=Pr([].lastIndexOf),_r=Pr([].pop),kr=Pr([].push),Tr=Pr([].splice),Cr=Array.isArray,Sr=Pr("".toLowerCase),Ar=Pr("".toString),qr=Pr("".match),Mr=Pr("".replace),jr=Pr("".indexOf),Lr=Pr("".trim),Er=Pr((0).toString),Ir=Pr(Boolean.prototype.toString),zr="undefined"==typeof BigInt?null:Pr(BigInt.prototype.toString),Or="undefined"==typeof Symbol?null:Pr(Symbol.prototype.toString),Dr=Pr({}.hasOwnProperty),$r=Pr({}.toString),Rr=Pr(/t/.test),Nr=(yr=TypeError,function(){for(var t=arguments.length,r=new Array(t),e=0;t>e;e++)r[e]=arguments[e];return br(yr,r)});function Pr(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;e>o;o++)n[o-1]=arguments[o];return gr(t,r,n)}}function Zr(t,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Sr;if(sr&&sr(t,null),!Cr(r))return t;for(var n=r.length;n--;){var o=r[n];if("string"==typeof o){var i=e(o);i!==o&&(cr(r)||(r[n]=i),o=i)}t[o]=!0}return t}function Br(t){for(var r=0;t.length>r;r++)Dr(t,r)||(t[r]=null);return t}function Fr(t){var r=vr(null);for(var e of ur(t)){var n=lr(e,2),o=n[0],i=n[1];Dr(t,o)&&(r[o]=Cr(i)?Br(i):i&&"object"==typeof i&&i.constructor===Object?Fr(i):i)}return r}function Hr(t,r){for(;null!==t;){var e=fr(t,r);if(e){if(e.get)return Pr(e.get);if("function"==typeof e.value)return Pr(e.value)}t=hr(t)}return function(){return null}}var Vr=dr(["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"]),Ur=dr(["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"]),Qr=dr(["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"]),Wr=dr(["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"]),Yr=dr(["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"]),Gr=dr(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Kr=dr(["#text"]),Jr=dr(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","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"]),Xr=dr(["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","dominant-baseline","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-orientation","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"]),te=dr(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","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"]),re=dr(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ee=pr(/{{[\w\W]*|^[\w\W]*}}/g),ne=pr(/<%[\w\W]*|^[\w\W]*%>/g),oe=pr(/\${[\w\W]*/g),ie=pr(/^data-[\-\w.\u00B7-\uFFFF]+$/),ae=pr(/^aria-[\-\w]+$/),le=pr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ue=pr(/^(?:\w+script|data):/i),se=pr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ce=pr(/^html$/i),he=pr(/^[a-z][.\w]*(-[.\w]+)+$/i),fe=pr(/<[/\w!]/g),de=pr(/<[/\w]/g),pe=pr(/<\/no(script|embed|frames)/i),ve=pr(/\/>/i),me=function(){return"undefined"==typeof window?null:window},ge=function(t,r,e,n){return Dr(t,r)&&Cr(t[r])?Zr(n.base?Fr(n.base):{},t[r],n.transform):e},be=function t(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:me(),e=r=>t(r);if(e.version="3.4.13",e.removed=[],!r||!r.document||9!==r.document.nodeType||!r.Element)return e.isSupported=!1,e;var n,o=r.document,i=o,a=i.currentScript,l=r.HTMLTemplateElement,u=r.Node,s=r.NodeFilter,c=r.DOMParser,h=r.trustedTypes,f=r.Element.prototype,d=Hr(f,"cloneNode"),p=Hr(f,"remove"),v=Hr(f,"nextSibling"),m=Hr(f,"childNodes"),g=Hr(f,"parentNode"),b=Hr(f,"shadowRoot"),y=Hr(f,"attributes"),w=u&&u.prototype?Hr(u.prototype,"nodeType"):null,x=u&&u.prototype?Hr(u.prototype,"nodeName"):null,_=u&&u.prototype?Hr(u.prototype,"ownerDocument"):null;if("function"==typeof l){var k=o.createElement("template");k.content&&k.content.ownerDocument&&(o=k.content.ownerDocument)}var T,C="",S=!1,A=0,q=function(){if(A>0)throw Nr('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},M=function(t){q(),A++;try{return n.createHTML(t)}finally{A--}},j=o.implementation,L=o.createNodeIterator,E=o.createDocumentFragment,I=o.getElementsByTagName,z=i.importNode,O={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};e.isSupported="function"==typeof ur&&"function"==typeof g&&j&&void 0!==j.createHTMLDocument;var D=ee,R=ne,N=oe,P=ie,Z=ae,B=ue,F=se,H=he,V=le,U=null,Q=Zr({},[...Vr,...Ur,...Qr,...Yr,...Kr]),W=null,Y=Zr({},[...Jr,...Xr,...te,...re]),G=Object.seal(vr(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}})),K=null,J=null,X=Object.seal(vr(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),tt=!0,rt=!0,et=!1,nt=!0,ot=!1,it=!0,at=!1,lt=!1,ut=null,st=null,ct=!1,ht=!1,ft=!1,dt=!1,pt=!0,vt=!1,mt="user-content-",gt=!0,bt=!1,yt={},wt=null,xt=Zr({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),_t=null,kt=Zr({},["audio","video","img","source","image","track"]),Tt=null,Ct=Zr({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),St="http://www.w3.org/1998/Math/MathML",At="http://www.w3.org/2000/svg",qt="http://www.w3.org/1999/xhtml",Mt=qt,jt=!1,Lt=null,Et=Zr({},[St,At,qt],Ar),It=dr(["mi","mo","mn","ms","mtext"]),zt=Zr({},It),Ot=dr(["annotation-xml"]),Dt=Zr({},Ot),$t=Zr({},["title","style","font","a","script"]),Rt=null,Nt=["application/xhtml+xml","text/html"],Pt=null,Zt=null,Bt=o.createElement("form"),Ft=function(t){return t instanceof RegExp||t instanceof Function},Ht=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Zt||Zt!==t){t&&"object"==typeof t||(t={}),t=Fr(t),Rt=-1===Nt.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,U=ge(t,"ALLOWED_TAGS",Q,{transform:Pt="application/xhtml+xml"===Rt?Ar:Sr}),W=ge(t,"ALLOWED_ATTR",Y,{transform:Pt}),Lt=ge(t,"ALLOWED_NAMESPACES",Et,{transform:Ar}),Tt=ge(t,"ADD_URI_SAFE_ATTR",Ct,{transform:Pt,base:Ct}),_t=ge(t,"ADD_DATA_URI_TAGS",kt,{transform:Pt,base:kt}),wt=ge(t,"FORBID_CONTENTS",xt,{transform:Pt}),K=ge(t,"FORBID_TAGS",Fr({}),{transform:Pt}),J=ge(t,"FORBID_ATTR",Fr({}),{transform:Pt}),yt=!!Dr(t,"USE_PROFILES")&&(t.USE_PROFILES&&"object"==typeof t.USE_PROFILES?Fr(t.USE_PROFILES):t.USE_PROFILES),tt=!1!==t.ALLOW_ARIA_ATTR,rt=!1!==t.ALLOW_DATA_ATTR,et=t.ALLOW_UNKNOWN_PROTOCOLS||!1,nt=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,ot=t.SAFE_FOR_TEMPLATES||!1,it=!1!==t.SAFE_FOR_XML,at=t.WHOLE_DOCUMENT||!1,ht=t.RETURN_DOM||!1,ft=t.RETURN_DOM_FRAGMENT||!1,dt=t.RETURN_TRUSTED_TYPE||!1,ct=t.FORCE_BODY||!1,pt=!1!==t.SANITIZE_DOM,vt=t.SANITIZE_NAMED_PROPS||!1,gt=!1!==t.KEEP_CONTENT,bt=t.IN_PLACE||!1,V=function(t){try{return Rr(t,""),!0}catch(t){return!1}}(t.ALLOWED_URI_REGEXP)?t.ALLOWED_URI_REGEXP:le,Mt="string"==typeof t.NAMESPACE?t.NAMESPACE:qt,zt=Dr(t,"MATHML_TEXT_INTEGRATION_POINTS")&&t.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof t.MATHML_TEXT_INTEGRATION_POINTS?Fr(t.MATHML_TEXT_INTEGRATION_POINTS):Zr({},It),Dt=Dr(t,"HTML_INTEGRATION_POINTS")&&t.HTML_INTEGRATION_POINTS&&"object"==typeof t.HTML_INTEGRATION_POINTS?Fr(t.HTML_INTEGRATION_POINTS):Zr({},Ot);var r=Dr(t,"CUSTOM_ELEMENT_HANDLING")&&t.CUSTOM_ELEMENT_HANDLING&&"object"==typeof t.CUSTOM_ELEMENT_HANDLING?Fr(t.CUSTOM_ELEMENT_HANDLING):vr(null);if(G=vr(null),Dr(r,"tagNameCheck")&&Ft(r.tagNameCheck)&&(G.tagNameCheck=r.tagNameCheck),Dr(r,"attributeNameCheck")&&Ft(r.attributeNameCheck)&&(G.attributeNameCheck=r.attributeNameCheck),Dr(r,"allowCustomizedBuiltInElements")&&"boolean"==typeof r.allowCustomizedBuiltInElements&&(G.allowCustomizedBuiltInElements=r.allowCustomizedBuiltInElements),pr(G),ot&&(rt=!1),ft&&(ht=!0),yt&&(U=Zr({},Kr),W=vr(null),!0===yt.html&&(Zr(U,Vr),Zr(W,Jr)),!0===yt.svg&&(Zr(U,Ur),Zr(W,Xr),Zr(W,re)),!0===yt.svgFilters&&(Zr(U,Qr),Zr(W,Xr),Zr(W,re)),!0===yt.mathMl&&(Zr(U,Yr),Zr(W,te),Zr(W,re))),X.tagCheck=null,X.attributeCheck=null,Dr(t,"ADD_TAGS")&&("function"==typeof t.ADD_TAGS?X.tagCheck=t.ADD_TAGS:Cr(t.ADD_TAGS)&&(U===Q&&(U=Fr(U)),Zr(U,t.ADD_TAGS,Pt))),Dr(t,"ADD_ATTR")&&("function"==typeof t.ADD_ATTR?X.attributeCheck=t.ADD_ATTR:Cr(t.ADD_ATTR)&&(W===Y&&(W=Fr(W)),Zr(W,t.ADD_ATTR,Pt))),Dr(t,"ADD_URI_SAFE_ATTR")&&Cr(t.ADD_URI_SAFE_ATTR)&&Zr(Tt,t.ADD_URI_SAFE_ATTR,Pt),Dr(t,"FORBID_CONTENTS")&&Cr(t.FORBID_CONTENTS)&&(wt===xt&&(wt=Fr(wt)),Zr(wt,t.FORBID_CONTENTS,Pt)),Dr(t,"ADD_FORBID_CONTENTS")&&Cr(t.ADD_FORBID_CONTENTS)&&(wt===xt&&(wt=Fr(wt)),Zr(wt,t.ADD_FORBID_CONTENTS,Pt)),gt&&(U["#text"]=!0),at&&Zr(U,["html","head","body"]),U.table&&(Zr(U,["tbody"]),delete K.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw Nr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw Nr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');var e=n;n=t.TRUSTED_TYPES_POLICY;try{C=M("")}catch(t){throw n=e,t}}else null===t.TRUSTED_TYPES_POLICY?(n=void 0,C=""):(void 0===n&&(S||(T=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}}(h,a),S=!0),n=T),n&&"string"==typeof C&&(C=M("")));dr&&dr(t),Zt=t}},Vt=Zr({},[...Ur,...Qr,...Wr]),Ut=Zr({},[...Yr,...Gr]),Qt=function(t){kr(e.removed,{element:t});try{g(t).removeChild(t)}catch(r){if(p(t),!g(t))throw Nr("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Wt=function(t){Kt(t);var r=m(t);if(r){var e=[];wr(r,(t=>{kr(e,t)})),wr(e,(t=>{try{p(t)}catch(t){}}))}var n=y(t);if(n)for(var o=n.length-1;o>=0;--o){var i=n[o],a=i&&i.name;if("string"==typeof a)try{t.removeAttribute(a)}catch(t){}}},Yt=function(t,r){try{kr(e.removed,{attribute:r.getAttributeNode(t),from:r})}catch(t){kr(e.removed,{attribute:null,from:r})}if(r.removeAttribute(t),"is"===t)if(ht||ft)try{Qt(r)}catch(t){}else try{r.setAttribute(t,"")}catch(t){}},Gt=function(t){var r=y(t);if(r)for(var e=r.length-1;e>=0;--e){var n=r[e],o=n&&n.name;if("string"==typeof o&&!W[Pt(o)])try{t.removeAttribute(o)}catch(t){}}},Kt=function(t){for(var r=[t];r.length>0;){var e=r.pop();1===(w?w(e):e.nodeType)&&Gt(e);var n=m(e);if(n)for(var o=n.length-1;o>=0;--o)r.push(n[o])}},Jt=function(t){var r=null,e=null;if(ct)t="<remove></remove>"+t;else{var i=qr(t,/^[\r\n\t ]+/);e=i&&i[0]}"application/xhtml+xml"===Rt&&Mt===qt&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");var a=n?M(t):t;if(Mt===qt)try{r=(new c).parseFromString(a,Rt)}catch(t){}if(!r||!r.documentElement){r=j.createDocument(Mt,"template",null);try{r.documentElement.innerHTML=jt?C:a}catch(t){}}var l=r.body||r.documentElement;return t&&e&&l.insertBefore(o.createTextNode(e),l.childNodes[0]||null),Mt===qt?I.call(r,at?"html":"body")[0]:at?r.documentElement:l},Xt=function(t){var r=_?_(t):t.ownerDocument;return L.call(r||t,t,s.SHOW_ELEMENT|s.SHOW_COMMENT|s.SHOW_TEXT|s.SHOW_PROCESSING_INSTRUCTION|s.SHOW_CDATA_SECTION,null)},tr=function(t){return t=Mr(t,D," "),t=Mr(t,R," "),Mr(t,N," ")},rr=function(t){var r;t.normalize();for(var e=_?_(t):t.ownerDocument,n=L.call(e||t,t,s.SHOW_TEXT|s.SHOW_COMMENT|s.SHOW_CDATA_SECTION|s.SHOW_PROCESSING_INSTRUCTION,null),o=n.nextNode();o;)o.data=tr(o.data),o=n.nextNode();var i=null===(r=t.querySelectorAll)||void 0===r?void 0:r.call(t,"template");i&&wr(i,(t=>{nr(t.content)&&rr(t.content)}))},er=function(t){var r=x?x(t):null;return"string"==typeof r&&"form"===Pt(r)&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||t.attributes!==y(t)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes||t.nodeType!==w(t)||t.childNodes!==m(t))},nr=function(t){if(!w||"object"!=typeof t||null===t)return!1;try{return 11===w(t)}catch(t){return!1}},or=function(t){if(!w||"object"!=typeof t||null===t)return!1;try{return"number"==typeof w(t)}catch(t){return!1}};function ir(t,r,n){0!==t.length&&wr(t,(t=>{t.call(e,r,n,Zt)}))}var ar=function(t,r,e,n){return 0===t.length?r:r===e||r===n?Fr(r):r},lr=function(t,r){if(ir(O.beforeSanitizeElements,t,null),t!==r&&null===g(t))return bt&&Kt(t),!0;if(er(t))return Qt(t),!0;var n=Pt(x?x(t):t.nodeName);if(U=ar(O.uponSanitizeElement,U,Q,ut),ir(O.uponSanitizeElement,t,{tagName:n,allowedTags:U}),t!==r&&null===g(t))return bt&&Kt(t),!0;if(function(t,r){return!!(it&&t.hasChildNodes()&&!or(t.firstElementChild)&&Rr(fe,t.textContent)&&Rr(fe,t.innerHTML))||!(!it||t.namespaceURI!==qt||"style"!==r||!or(t.firstElementChild))||7===t.nodeType||!(!it||8!==t.nodeType||!Rr(de,t.data))}(t,n))return Qt(t),!0;if(K[n]||!(X.tagCheck instanceof Function&&X.tagCheck(n))&&!U[n]){var o=function(t,r,e){if(!K[r]&&hr(r)){if(G.tagNameCheck instanceof RegExp&&Rr(G.tagNameCheck,r))return!1;if(G.tagNameCheck instanceof Function&&G.tagNameCheck(r))return!1}if(gt&&!wt[r]){var n=g(t),o=m(t);if(o&&n)for(var i=o.length-1;i>=0;--i){var a=t===e?d(o[i],!0):o[i];n.insertBefore(a,v(t))}}return Qt(t),!0}(t,n,r);return!1===o&&ir(O.afterSanitizeElements,t,null),o}if(1===(w?w(t):t.nodeType)&&!function(t){var r=g(t);r&&r.tagName||(r={namespaceURI:Mt,tagName:"template"});var e=Sr(t.tagName),n=Sr(r.tagName);return!!Lt[t.namespaceURI]&&(t.namespaceURI===At?function(t,r,e){return r.namespaceURI===qt?"svg"===t:r.namespaceURI===St?"svg"===t&&("annotation-xml"===e||zt[e]):Boolean(Vt[t])}(e,r,n):t.namespaceURI===St?function(t,r,e){return r.namespaceURI===qt?"math"===t:r.namespaceURI===At?"math"===t&&Dt[e]:Boolean(Ut[t])}(e,r,n):t.namespaceURI===qt?function(t,r,e){return!(r.namespaceURI===At&&!Dt[e])&&!(r.namespaceURI===St&&!zt[e])&&!Ut[t]&&($t[t]||!Vt[t])}(e,r,n):!("application/xhtml+xml"!==Rt||!Lt[t.namespaceURI]))}(t))return Qt(t),!0;if(("noscript"===n||"noembed"===n||"noframes"===n)&&Rr(pe,t.innerHTML))return Qt(t),!0;if(ot&&3===t.nodeType){var i=tr(t.textContent);t.textContent!==i&&(kr(e.removed,{element:t.cloneNode()}),t.textContent=i)}return ir(O.afterSanitizeElements,t,null),!1},sr=function(t,r,e){if(J[r])return!1;if(it&&"patchsrc"===r)return!1;if(it&&"for"===r&&"label"!==t&&"output"!==t)return!1;if(pt&&("id"===r||"name"===r)&&(e in o||e in Bt))return!1;var n=W[r]||X.attributeCheck instanceof Function&&X.attributeCheck(r,t);if(rt&&Rr(P,r));else if(tt&&Rr(Z,r));else if(n){if(Tt[r]);else if(Rr(V,Mr(e,F,"")));else if("src"!==r&&"xlink:href"!==r&&"href"!==r||"script"===t||0!==jr(e,"data:")||!_t[t])if(et&&!Rr(B,Mr(e,F,"")));else if(e)return!1}else if(!(hr(t)&&(G.tagNameCheck instanceof RegExp&&Rr(G.tagNameCheck,t)||G.tagNameCheck instanceof Function&&G.tagNameCheck(t))&&(G.attributeNameCheck instanceof RegExp&&Rr(G.attributeNameCheck,r)||G.attributeNameCheck instanceof Function&&G.attributeNameCheck(r,t))||"is"===r&&G.allowCustomizedBuiltInElements&&(G.tagNameCheck instanceof RegExp&&Rr(G.tagNameCheck,e)||G.tagNameCheck instanceof Function&&G.tagNameCheck(e))))return!1;return!0},cr=Zr({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),hr=function(t){return!cr[Sr(t)]&&Rr(H,t)},fr=function(t,r,e,o){if(n&&"object"==typeof h&&"function"==typeof h.getAttributeType&&!e)switch(h.getAttributeType(t,r)){case"TrustedHTML":return M(o);case"TrustedScriptURL":return function(t){q(),A++;try{return n.createScriptURL(t)}finally{A--}}(o)}return o},mr=function(t,r,n,o){try{n?t.setAttributeNS(n,r,o):t.setAttribute(r,o),er(t)?Qt(t):_r(e.removed)}catch(e){Yt(r,t)}},gr=function(t){ir(O.beforeSanitizeAttributes,t,null);var r=t.attributes;if(r&&!er(t)){for(var e={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:W=ar(O.uponSanitizeAttribute,W,Y,st),forceKeepAttr:void 0},n=r.length,o=Pt(t.nodeName);n--;){var i=r[n],a=i.name,l=i.namespaceURI,u=i.value,s=Pt(a),c=u,h="value"===a?c:Lr(c);e.attrName=s,e.attrValue=h,e.keepAttr=!0,e.forceKeepAttr=void 0,ir(O.uponSanitizeAttribute,t,e),h=e.attrValue,!vt||"id"!==s&&"name"!==s||0===jr(h,mt)||(Yt(a,t),h=mt+h),it&&Rr(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,h)||"attributename"===s&&qr(h,"href")?Yt(a,t):e.forceKeepAttr||(!e.keepAttr||!nt&&Rr(ve,h)?Yt(a,t):(ot&&(h=tr(h)),sr(o,s,h)?(h=fr(o,s,l,h))!==c&&mr(t,a,l,h):Yt(a,t)))}ir(O.afterSanitizeAttributes,t,null)}},br=function(t){var r=null,e=Xt(t);for(ir(O.beforeSanitizeShadowDOM,t,null);r=e.nextNode();)if(ir(O.uponSanitizeShadowNode,r,null),lr(r,t),gr(r),nr(r.content)&&br(r.content),1===(w?w(r):r.nodeType)){var n=b(r);nr(n)&&(yr(n),br(n))}ir(O.afterSanitizeShadowDOM,t,null)},yr=function(t){for(var r=[{node:t,shadow:null}];r.length>0;){var e=r.pop();if(e.shadow)br(e.shadow);else{var n=e.node,o=1===(w?w(n):n.nodeType),i=m(n);if(i)for(var a=i.length-1;a>=0;--a)r.push({node:i[a],shadow:null});if(o){var l=x?x(n):null;if("string"==typeof l&&"template"===Pt(l)){var u=n.content;nr(u)&&r.push({node:u,shadow:null})}}if(o){var s=b(n);nr(s)&&r.push({node:null,shadow:s},{node:s,shadow:null})}}}};return e.sanitize=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=null,a=null,l=null,u=null;if((jt=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!or(t)&&"string"!=typeof(t=function(t){switch(typeof t){case"string":return t;case"number":return Er(t);case"boolean":return Ir(t);case"bigint":return zr?zr(t):"0";case"symbol":return Or?Or(t):"Symbol()";case"undefined":default:return $r(t);case"function":case"object":if(null===t)return $r(t);var r=t,e=Hr(r,"toString");if("function"==typeof e){var n=e(r);return"string"==typeof n?n:$r(n)}return $r(t)}}(t)))throw Nr("dirty is not a string, aborting");if(!e.isSupported)return t;lt?(U=ut,W=st):Ht(r),(O.uponSanitizeElement.length>0||O.uponSanitizeAttribute.length>0)&&(U=Fr(U)),O.uponSanitizeAttribute.length>0&&(W=Fr(W)),e.removed=[];var s=bt&&"string"!=typeof t&&or(t);if(s){!function(t){if(it)for(var r=[t];r.length>0;){var e=r.pop(),n=w?w(e):e.nodeType;if(7===n||8===n&&Rr(de,e.data))try{p(e)}catch(t){}else{if(1===n){var o=e,i=Pt(x?x(e):e.nodeName);try{o.hasAttribute&&o.hasAttribute("patchsrc")&&o.removeAttribute("patchsrc"),o.hasAttribute&&o.hasAttribute("for")&&"label"!==i&&"output"!==i&&o.removeAttribute("for")}catch(t){}}var a=m(e);if(a)for(var l=a.length-1;l>=0;--l)r.push(a[l])}}}(t);var c=x?x(t):t.nodeName;if("string"==typeof c){var h=Pt(c);if(!U[h]||K[h])throw Wt(t),Nr("root node is forbidden and cannot be sanitized in-place")}if(er(t))throw Wt(t),Nr("root node is clobbered and cannot be sanitized in-place");try{yr(t)}catch(r){throw Wt(t),r}}else if(or(t))1===(a=(o=Jt("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?o=a:o.appendChild(a),yr(a);else{if(!ht&&!ot&&!at&&-1===t.indexOf("<"))return n&&dt?M(t):t;if(!(o=Jt(t)))return ht?null:dt?C:""}o&&ct&&Qt(o.firstChild);var f=s?t:o;try{for(var d=Xt(f);l=d.nextNode();)lr(l,f),gr(l),nr(l.content)&&br(l.content)}catch(r){throw s&&(Wt(t),wr(e.removed,(t=>{t.element&&Kt(t.element)}))),r}if(s)return wr(e.removed,(t=>{t.element&&Kt(t.element)})),ot&&rr(t),t;if(ht){if(ot&&rr(o),ft)for(u=E.call(o.ownerDocument);o.firstChild;)u.appendChild(o.firstChild);else u=o;return(W.shadowroot||W.shadowrootmode)&&(u=z.call(i,u,!0)),u}var v=at?o.outerHTML:o.innerHTML;return at&&U["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&Rr(ce,o.ownerDocument.doctype.name)&&(v="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+v),ot&&(v=tr(v)),n&&dt?M(v):v},e.setConfig=function(){Ht(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),lt=!0,ut=U,st=W},e.clearConfig=function(){Zt=null,lt=!1,ut=null,st=null,n=T,C=""},e.isValidAttribute=function(t,r,e){Zt||Ht({});var n=Pt(t),o=Pt(r);return sr(n,o,e)},e.addHook=function(t,r){"function"==typeof r&&Dr(O,t)&&kr(O[t],r)},e.removeHook=function(t,r){if(Dr(O,t)){if(void 0!==r){var e=xr(O[t],r);return-1===e?void 0:Tr(O[t],e,1)[0]}return _r(O[t])}},e.removeHooks=function(t){Dr(O,t)&&(O[t]=[])},e.removeAllHooks=function(){O={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},e}();function ye(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 we(t,r){var e=t.parentNode;return e&&e.host&&11===e.nodeType?e.host:e===r?null:e}var xe,_e,ke=r,Te=(void 0===xe&&(xe=t=>t()),kt("[Element Inference]",xe,(void 0===_e&&(_e=console),{log:_e.log.bind(_e),warn:_e.warn.bind(_e),error:_e.error.bind(_e),debug:_e.debug.bind(_e)})));function Ce(t,r){try{var e=r.get(t);if(!bt(e))return e;if(t.checkVisibility){var n=t.checkVisibility({checkOpacity:!0,checkVisibilityCSS:!0});return r.set(t,n),n}var o=ke.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 a=r.get(i);if(bt(a)){var l=ke.getComputedStyle(i),u="none"!==l.display&&"hidden"!==l.visibility;if(r.set(i,u),!u)return!1;i=i.parentElement}else{if(!a)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 Se(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*Ae(t,r,e){var n;try{n=function(t,r,e){return void 0===r&&(r=document),void 0===e&&(e=null),function(t,r,e,n){return void 0===n&&(n=null),t=function(t){function r(){n&&(a.length>0&&/^[~+>]$/.test(a[a.length-1])&&a.push(" "),a.push(n))}var e,n,o,i,a=[],l=[0],u=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=u,!(e=o.exec(t))){n=t.substr(u),r();break}if(i=u,(u=o.lastIndex)-e[0].length>i&&(n=t.substring(i,u-e[0].length)),3>l[l.length-1]){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])&&(a.length>0&&!c.test(a[a.length-1])&&0===l[l.length-1]&&a.push(" "),1===l[l.length-1]&&5===a.length&&"="===a[2].charAt(a[2].length-1)&&(a[4]=" "+a[4]),c.test(e[0])))continue;a.push(e[0])}else a[a.length-1]+=n,s.test(a[a.length-1])&&(4===l[l.length-1]&&(2>a.length||c.test(a[a.length-2])?a.pop():a[a.length-1]=" ",e[0]=""),l.pop()),a[a.length-1]+=e[0]}return a.join("").trim()}(t),e.querySelector(t),document.head.createShadowRoot||document.head.attachShadow?ye(t,",").reduce(((t,r)=>{var o=ye(r.replace(/^\s+/g,"").replace(/\s*([>+~]+)\s*/g,"$1")," ").filter((t=>!!t)).map((t=>ye(t,">"))),i=o.length-1,a=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;t.length>r;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,a=!1;i&&(h=i).nodeType!==Node.DOCUMENT_FRAGMENT_NODE&&h.nodeType!==Node.DOCUMENT_NODE;){var l=!0;if(1===t[o].length)l=i.matches(t[o]);else{var u=[].concat(t[o]).reverse(),s=i;for(var c of u){if(!s||!s.matches(c)){l=!1;break}s=we(s,e)}}if(l&&0===o){a=!0;break}l&&o--,i=we(i,e)}var h;return a}}(o,i,e);return t.concat(a.filter(l))}),[]):e.querySelectorAll(t)}(t,0,r,e)}(t)}catch(t){return}for(var o of n){var i=o;r&&!Se(i,r)||Ce(i,e)&&(yield i)}}function qe(t,r){var e=0;for(var n of t){if(e===r)return n;e++}return null}function Me(t){try{var r=JSON.parse(t.autoData);if(!mt(null==r?void 0:r.textGroups)||!mt(null==r?void 0:r.notextGroups))return Te.error("Invalid autoData structure:",r),null;var e=t.text,n=t.precision,o=void 0===n?1:n,i=null!=e&&!t.excludeText,a=(i?r.textGroups:r.notextGroups).sort(((t,r)=>t.cardinality-r.cardinality));if(0===a.length)return null;for(var l=Math.max(1,Math.ceil((1-o)*a.length)),u=new WeakMap,s=0;l>s;s++){var c=a[s],h=new Map,f=null,d=0;for(var p of c.cssSelectors){var v,m=p.offset,g=qe(Ae(p.css,i?e:null,u),m);if(g){var b=(null!==(v=h.get(g))&&void 0!==v?v: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 Te.error("Error finding element:",t),null}}var je=function(t,e){var n=(void 0===e?{}:e).debugEnabled,o={P(e){if(r&&(r.POSTHOG_DEBUG||n)&&!bt(r.console)&&r.console){for(var o=("__rrweb_original__"in r.console[e]?r.console[e].__rrweb_original__:r.console[e]),i=arguments.length,a=new Array(i>1?i-1:0),l=1;i>l;l++)a[l-1]=arguments[l];o(t,...a)}},debug(){for(var t=arguments.length,r=new Array(t),e=0;t>e;e++)r[e]=arguments[e];o.P("debug",...r)},info(){for(var t=arguments.length,r=new Array(t),e=0;t>e;e++)r[e]=arguments[e];o.P("log",...r)},warn(){for(var t=arguments.length,r=new Array(t),e=0;t>e;e++)r[e]=arguments[e];o.P("warn",...r)},error(){for(var t=arguments.length,r=new Array(t),e=0;t>e;e++)r[e]=arguments[e];o.P("error",...r)},critical(){for(var r=arguments.length,e=new Array(r),n=0;r>n;n++)e[n]=arguments[n];console.error(t,...e)},uninitializedWarning(t){o.error("You must initialize PostHog before calling "+t)},createLogger:(r,e)=>je(t+" "+r,e)};return o},Le=je("[PostHog.js]"),Ee=Le.createLogger,Ie=Ee("[Stylesheet Loader]"),ze=(t,r)=>{if(!(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}},Oe=t=>t.toLowerCase(),De={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=>ze(r,t))))),not_regex:(t,r)=>r.every((r=>t.every((t=>!ze(r,t))))),icontains:(t,r)=>r.map(Oe).some((r=>t.map(Oe).some((t=>r.includes(t))))),not_icontains:(t,r)=>r.map(Oe).every((r=>t.map(Oe).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)))}))};function $e(t,r){return!t||Object.entries(t).every((t=>{var e=t[1],n=null==r?void 0:r[t[0]];if(null==n)return!1;var o=De[e.operator];return!!o&&o(e.values,[String(n)])}))}function Re(t,r,e,n){var o=null!=n?n:{},i=o.capture,a=o.passive;null==t||t.addEventListener(r,e,{capture:void 0!==i&&i,passive:void 0===a||a})}Ee("[Surveys]"),Math.trunc||(Math.trunc=function(t){return 0>t?Math.ceil(t):Math.floor(t)}),Number.isInteger||(Number.isInteger=function(t){return _t(t)&&isFinite(t)&&Math.floor(t)===t}),r&&!bt(r.crypto)&&crypto;var Ne,Pe,Ze,Be,Fe=null,He={Xr(){if(!wt(Fe))return Fe;var t=!0;if(bt(r))t=!1;else try{var e="__mplssupport__";He.ei(e,"xyz"),'"xyz"'!==He.ti(e)&&(t=!1),He.ri(e)}catch(r){t=!1}return t||Le.error("localStorage unsupported; falling back to cookie store"),Fe=t,t},ii(t){Le.error("localStorage error: "+t)},ti(t){try{return null==r?void 0:r.localStorage.getItem(t)}catch(t){He.ii(t)}return null},ni(t){try{return JSON.parse(He.ti(t))||{}}catch(t){}return null},ei(t,e){try{return null==r||r.localStorage.setItem(t,JSON.stringify(e)),!0}catch(t){He.ii(t)}return!1},ri(t){try{null==r||r.localStorage.removeItem(t)}catch(t){He.ii(t)}}},Ve=null,Ue={Xr(){if(!wt(Ve))return Ve;if(Ve=!0,bt(r))Ve=!1;else try{var t="__support__";Ue.ei(t,"xyz"),'"xyz"'!==Ue.ti(t)&&(Ve=!1),Ue.ri(t)}catch(t){Ve=!1}return Ve},ii(t){Le.error("sessionStorage error: ",t)},ti(t){try{return null==r?void 0:r.sessionStorage.getItem(t)}catch(t){Ue.ii(t)}return null},ni(t){try{return JSON.parse(Ue.ti(t))||null}catch(t){}return null},ei(t,e){try{return null==r||r.sessionStorage.setItem(t,JSON.stringify(e)),!0}catch(t){Ue.ii(t)}return!1},ri(t){try{null==r||r.sessionStorage.removeItem(t)}catch(t){Ue.ii(t)}}},Qe=0,We=[],Ye=u,Ge=Ye.__b,Ke=Ye.__r,Je=Ye.diffed,Xe=Ye.__c,tn=Ye.unmount,rn=Ye.__;function en(t,r){Ye.__h&&Ye.__h(Pe,t,Qe||r),Qe=0;var e=Pe.__H||(Pe.__H={__:[],__h:[]});return t>=e.__.length&&e.__.push({}),e.__[t]}function nn(t){return Qe=1,function(t,r,e){var n=en(Ne++,2);if(n.t=t,!n.__c&&(n.__=[vn(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=Pe,!Pe.__f)){var o=function(t,r,e){if(!n.__c.__H)return!0;var o=!1,a=n.__c.props!==t;if(n.__c.__H.__.some((function(t){if(t.__N){o=!0;var r=t.__[0];t.__=t.__N,t.__N=void 0,r!==t.__[0]&&(a=!0)}})),i){var l=i.call(this,t,r,e);return o?l||a:l}return!o||a};Pe.__f=!0;var i=Pe.shouldComponentUpdate,a=Pe.componentWillUpdate;Pe.componentWillUpdate=function(t,r,e){if(this.__e){var n=i;i=void 0,o(t,r,e),i=n}a&&a.call(this,t,r,e)},Pe.shouldComponentUpdate=o}return n.__N||n.__}(vn,t)}function on(t,r){var e=en(Ne++,3);!Ye.__s&&pn(e.__H,r)&&(e.__=t,e.u=r,Pe.__H.__h.push(e))}function an(t,r){var e=en(Ne++,4);!Ye.__s&&pn(e.__H,r)&&(e.__=t,e.u=r,Pe.__h.push(e))}function ln(t){return Qe=5,un((function(){return{current:t}}),[])}function un(t,r){var e=en(Ne++,7);return pn(e.__H,r)&&(e.__=t(),e.__H=r,e.__h=t),e.__}function sn(){for(var t;t=We.shift();){var r=t.__H;if(t.__P&&r)try{r.__h.some(fn),r.__h.some(dn),r.__h=[]}catch(e){r.__h=[],Ye.__e(e,t.__v)}}}Ye.__b=function(t){Pe=null,Ge&&Ge(t)},Ye.__=function(t,r){t&&r.__k&&r.__k.__m&&(t.__m=r.__k.__m),rn&&rn(t,r)},Ye.__r=function(t){Ke&&Ke(t),Ne=0;var r=(Pe=t.__c).__H;r&&(Ze===Pe?(r.__h=[],Pe.__h=[],r.__.some((function(t){t.__N&&(t.__=t.__N),t.u=t.__N=void 0}))):(r.__h.length&&sn(),Ne=0)),Ze=Pe},Ye.diffed=function(t){Je&&Je(t);var r=t.__c;r&&r.__H&&(r.__H.__h.length&&(1!==We.push(r)&&Be===Ye.requestAnimationFrame||((Be=Ye.requestAnimationFrame)||hn)(sn)),r.__H.__.some((function(t){t.u&&(t.__H=t.u,t.u=void 0)}))),Ze=Pe=null},Ye.__c=function(t,r){r.some((function(t){try{t.__h.some(fn),t.__h=t.__h.filter((function(t){return!t.__||dn(t)}))}catch(e){r.some((function(t){t.__h&&(t.__h=[])})),r=[],Ye.__e(e,t.__v)}})),Xe&&Xe(t,r)},Ye.unmount=function(t){tn&&tn(t);var r,e=t.__c;e&&e.__H&&(e.__H.__.some((function(t){try{fn(t)}catch(t){r=t}})),e.__H=void 0,r&&Ye.__e(r,e.__v))};var cn="function"==typeof requestAnimationFrame;function hn(t){var r,e=function(){clearTimeout(n),cn&&cancelAnimationFrame(r),setTimeout(t)},n=setTimeout(e,35);cn&&(r=requestAnimationFrame(e))}function fn(t){var r=Pe,e=t.__c;"function"==typeof e&&(t.__c=void 0,e()),Pe=r}function dn(t){var r=Pe;t.__c=t.__(),Pe=r}function pn(t,r){return!t||t.length!==r.length||r.some((function(r,e){return r!==t[e]}))}function vn(t,r){return"function"==typeof r?r(t):r}var mn="#020617",gn={backgroundColor:"#eeeded"};function bn(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 yn(t){var r;void 0===t&&(t=gn.backgroundColor),"#"===t[0]&&(r=bn(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=bn(e)),!r)return mn;var n=r.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/);if(n){var o=parseInt(n[1]),i=parseInt(n[2]),a=parseInt(n[3]);return Math.sqrt(o*o*.299+i*i*.587+a*a*.114)>127.5?mn:"white"}return mn}!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,I(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"+x++,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(){},onPreviewBack(){},surveySubmissionId:"",properties:void 0,surveyLanguage:null});var wn="ph_product_tour_shown_",xn="ph_product_tour_completed_",_n="ph_product_tour_dismissed_",kn="ph_active_product_tour",Tn="ph_last_seen_tour_date_",Cn=Ee("[Product Tours]"),Sn=o,An=r;function qn(t){var r=((t,r,e)=>{var n=t.createElement("style");n.innerText=r;var o=(t=>{var r;return gt(t)?t:null==t||null==(r=t.config)?void 0:r.prepare_external_dependency_stylesheet})(e);return o&&(n=o(n)),n||(Ie.error("prepare_external_dependency_stylesheet returned null"),null)})(Sn,':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;text-decoration:none;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)}@keyframes ph-tour-banner-slide-in{0%{grid-template-rows:0fr}to{grid-template-rows:1fr}}.ph-tour-banner-wrapper{animation:ph-tour-banner-slide-in var(--ph-tour-banner-animation-duration,.3s) ease-out forwards;display:grid}.ph-tour-banner-slide{min-height:0;overflow:hidden}.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)}',t);return null==r||r.setAttribute("data-ph-product-tour-style","true"),r}function Mn(t){return t.useManualSelector?!!t.selector:!!t.inferenceData}function jn(t){var r;if(null!==(r=t.useManualSelector)&&void 0!==r&&r)return t.selector?function(t){try{var r=Sn.querySelectorAll(t);if(0===r.length)return{element:null,error:"not_found",matchCount:0};var e=r[0];return function(t){var r=An.getComputedStyle(t);if("none"===r.display||"hidden"===r.visibility||"0"===r.opacity)return!1;var e=t.getBoundingClientRect();return 0!==e.width&&0!==e.height}(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}}}(t.selector):{element:null,error:"not_found",matchCount:0};if(!t.inferenceData)return{element:null,error:"not_found",matchCount:0};var e=Me(t.inferenceData);return e?{element:e,error:null,matchCount:1}:{element:null,error:"not_found",matchCount:0}}var Ln=12,En=8;function In(t,r,e){var n=Math.max(En+r/2,Math.min(e-En-r/2,t));return{clamped:n,offset:t-n}}function zn(t,r){var e,n,o=a({},tt,r),i=t.style;i.setProperty("--ph-tour-background-color",o.backgroundColor),i.setProperty("--ph-tour-text-color",o.textColor),i.setProperty("--ph-tour-button-color",o.buttonColor),i.setProperty("--ph-tour-border-radius",o.borderRadius+"px"),i.setProperty("--ph-tour-button-border-radius",o.buttonBorderRadius+"px"),i.setProperty("--ph-tour-border-color",o.borderColor),i.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}(o.fontFamily)),i.setProperty("--ph-tour-text-secondary-color",(.6,(n=bn(e=o.textColor).match(/^rgb\((\d+),(\d+),(\d+)\)$/))?"rgba("+n[1]+", "+n[2]+", "+n[3]+", 0.6)":e)),i.setProperty("--ph-tour-branding-text-color",yn(o.backgroundColor)),i.setProperty("--ph-tour-button-text-color",yn(o.buttonColor)),i.setProperty("--ph-tour-box-shadow",o.boxShadow),i.setProperty("--ph-tour-overlay-color",o.showOverlay?"rgba(0, 0, 0, 0.5)":"transparent"),i.setProperty("--ph-tour-z-index",String(o.zIndex)),i.setProperty("--ph-tour-button-secondary-color","transparent"),i.setProperty("--ph-tour-button-secondary-text-color",o.textColor),i.setProperty("--ph-tour-max-width","320px"),i.setProperty("--ph-tour-padding","16px")}function On(t){var r;if(!t)return"";if("string"==typeof t)return $n(t);if("text"===t.type){var e=$n(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(On).join(""))||"";switch(t.type){case"doc":default:return o;case"paragraph":return"<p>"+o+"</p>";case"heading":var i,a=(null==(i=t.attrs)?void 0:i.level)||1;return"<h"+a+">"+o+"</h"+a+">";case"bulletList":return"<ul>"+o+"</ul>";case"orderedList":return"<ol>"+o+"</ol>";case"listItem":return"<li>"+o+"</li>";case"hardBreak":return"<br>"}}function Dn(t){return t.endsWith("/")?t.slice(0,-1):t}function $n(t){var r=Sn.createElement("div");return r.textContent=t,r.innerHTML}function Rn(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 Nn(t){return t.contentHtml?be.sanitize(t.contentHtml,{ADD_TAGS:["iframe"],ADD_ATTR:["allowfullscreen","frameborder","referrerpolicy"]}):On(t.content)}var Pn=0;function Zn(t,r,e,n,o,i){r||(r={});var a,l,s=r;if("ref"in s)for(l in s={},r)"ref"==l?a=r[l]:s[l]=r[l];var c={type:t,props:s,key:e,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Pn,__i:-1,__u:0,__source:o,__self:i};if("function"==typeof t&&(a=t.defaultProps))for(l in a)void 0===s[l]&&(s[l]=a[l]);return u.vnode&&u.vnode(c),c}var Bn=Zn("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Zn("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"})}),Fn=Zn("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Zn("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"})}),Hn=Zn("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Zn("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"})}),Vn=Zn("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Zn("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"})}),Un=Zn("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Zn("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"})});Zn("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 0 24 24",width:"48",children:Zn("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"})}),Zn("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 0 24 24",width:"48",children:Zn("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 Qn=function(t){var r={}.fill,e=void 0===r?"currentColor":r;return Zn("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:[Zn("title",{id:"close-survey-title",className:"adam-testing",children:"Close survey"}),Zn("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})]})},Wn=Zn("svg",{width:"77",height:"14",viewBox:"0 0 77 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Zn("g",{"clip-path":"url(#clip0_2415_6911)",children:[Zn("mask",{id:"mask0_2415_6911",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"77",height:"14",children:Zn("path",{d:"M0.5 0H76.5V14H0.5V0Z",fill:"white"})}),Zn("g",{mask:"url(#mask0_2415_6911)",children:[Zn("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"}),Zn("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"}),Zn("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"}),Zn("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"}),Zn("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"}),Zn("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"})]})]}),Zn("defs",{children:Zn("clipPath",{id:"clip0_2415_6911",children:Zn("rect",{width:"76",height:"14",fill:"white",transform:"translate(0.5)"})})})]});function Yn(t){var r=t.button,e=t.onClick,n=t.cursorStyle,o="ph-tour-button ph-tour-button--"+t.variant;return"link"===r.action&&r.link?Zn("a",{href:r.link,target:"_blank",rel:"noopener noreferrer",class:o,onClick:()=>e(r),children:r.text}):Zn("button",{class:o,onClick:()=>e(r),style:n,children:r.text})}function Gn(t){var r,e,n,o=t.step,i=t.appearance,a=t.stepIndex,l=t.totalSteps,u=t.onNext,s=t.onPrevious,c=t.onDismiss,h=t.onButtonClick,f=null!==(r=null==i?void 0:i.whiteLabel)&&void 0!==r&&r,d=a>=l-1,p=0===a,v=!(o.buttons||"button"!==o.progressionTrigger&&Mn(o)),m=!!o.buttons,g=!!(u||s||c||h),b=g?void 0:{cursor:"default"},y=!f&&p,w=t=>{h&&h(t)};return Zn(M,{children:[Zn("button",{class:"ph-tour-dismiss",onClick:c,"aria-label":"Close tour",style:b,children:Qn()}),Zn("div",{class:"ph-tour-content",dangerouslySetInnerHTML:{__html:Nn(o)}}),Zn("div",{class:"ph-tour-footer",children:[l>1&&Zn("span",{class:"ph-tour-progress",children:[a+1," of ",l]}),Zn("div",{class:"ph-tour-buttons",children:[v&&Zn(M,{children:[!p&&Zn("button",{class:"ph-tour-button ph-tour-button--secondary",onClick:s,style:b,children:"Back"}),Zn("button",{class:"ph-tour-button ph-tour-button--primary",onClick:u,style:b,children:d?"Done":"Next"})]}),m&&Zn(M,{children:[(null==(e=o.buttons)?void 0:e.secondary)&&Zn(Yn,{button:o.buttons.secondary,variant:"secondary",onClick:w,cursorStyle:b}),(null==(n=o.buttons)?void 0:n.primary)&&Zn(Yn,{button:o.buttons.primary,variant:"primary",onClick:w,cursorStyle:b})]})]})]}),y&&Zn("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 ",Wn]})]})}Zn("svg",{width:"16",height:"12",viewBox:"0 0 16 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Zn("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 Kn=[Hn,Fn,Bn],Jn=[Vn,Hn,Fn,Bn,Un];function Xn(t){var r=t.value,e=t.onChange,n=t.onSubmit,o=t.isInteractive,i=ln(null);return on((()=>{o&&setTimeout((()=>{var t;return null==(t=i.current)?void 0:t.focus()}),100)}),[o]),Zn("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 to(t){var r=t.survey,e=t.onSubmit,n=t.isInteractive,o=nn(null),i=o[0],a=o[1],l=r.scale||5,u=t=>{n&&(a(t),null==e||e(t))};if("emoji"===(r.display||"emoji"))return Zn("div",{class:"ph-tour-survey-rating-container",children:[Zn("div",{class:"ph-tour-survey-rating-emoji",children:(3===l?Kn:Jn).map(((t,r)=>{var e=r+1;return Zn("button",{type:"button",class:"ph-tour-survey-emoji-button "+(i===e?"ph-tour-survey-emoji-button--active":""),onClick:()=>u(e),style:n?void 0:{cursor:"default"},"aria-label":"Rate "+e,children:t},r)}))}),(r.lowerBoundLabel||r.upperBoundLabel)&&Zn("div",{class:"ph-tour-survey-rating-labels",children:[Zn("span",{children:r.lowerBoundLabel}),Zn("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 Zn("div",{class:"ph-tour-survey-rating-container",children:[Zn("div",{class:"ph-tour-survey-rating-numbers",style:{gridTemplateColumns:"repeat("+s.length+", minmax(0, 1fr))"},children:s.map((t=>Zn("button",{type:"button",class:"ph-tour-survey-number-button "+(i===t?"ph-tour-survey-number-button--active":""),onClick:()=>u(t),style:n?void 0:{cursor:"default"},"aria-label":"Rate "+t,children:t},t)))}),(r.lowerBoundLabel||r.upperBoundLabel)&&Zn("div",{class:"ph-tour-survey-rating-labels",children:[Zn("span",{children:r.lowerBoundLabel}),Zn("span",{children:r.upperBoundLabel})]})]})}function ro(t){var r,e=t.step,n=t.appearance,o=t.stepIndex,i=t.totalSteps,a=t.onPrevious,l=t.onSubmit,u=t.onDismiss,s=nn(""),c=s[0],h=s[1],f=e.survey,d=null!==(r=null==n?void 0:n.whiteLabel)&&void 0!==r&&r,p=0===o,v="open"===(null==f?void 0:f.type),m=!!(a||l||u),g=m?void 0:{cursor:"default"},b=()=>{null==l||l(c.trim()||null)};return f?Zn(M,{children:[Zn("button",{class:"ph-tour-dismiss",onClick:u,"aria-label":"Close survey",style:g,children:Qn()}),Zn("div",{class:"ph-tour-survey-question",children:f.questionText}),v?Zn(Xn,{value:c,onChange:h,onSubmit:b,isInteractive:m}):Zn(to,{survey:f,onSubmit:l,isInteractive:m}),Zn("div",{class:"ph-tour-footer",children:[Zn("span",{class:"ph-tour-progress",children:[o+1," of ",i]}),Zn("div",{class:"ph-tour-buttons",children:[!p&&Zn("button",{class:"ph-tour-button ph-tour-button--secondary",onClick:a,style:g,children:f.backButtonText||"Back"}),v&&Zn("button",{class:"ph-tour-button ph-tour-button--primary",onClick:b,style:g,children:f.submitButtonText||"Submit"})]})]}),!d&&Zn("a",{href:m?"https://posthog.com/product-tours":void 0,target:m?"_blank":void 0,rel:m?"noopener noreferrer":void 0,class:"ph-tour-branding",style:m?void 0:{cursor:"default",pointerEvents:"none"},children:["Survey by ",Wn]})]}):Zn("div",{})}var eo=r;function no(t){return{top:"bottom",bottom:"top",left:"right",right:"left"}[t]}function oo(t){var r,e=t.tour,n=t.step,o=t.stepIndex,i=t.totalSteps,l=t.targetElement,u=t.onNext,s=t.onPrevious,c=t.onDismiss,h=t.onSurveySubmit,f=t.onButtonClick,d=nn("entering"),p=d[0],v=d[1],m=nn(null),g=m[0],b=m[1],y=nn(null),w=y[0],x=y[1],_=nn(!1),k=_[0],T=_[1],C=nn(n),S=C[0],A=C[1],q=nn(o),M=q[0],j=q[1],L=ln(null),E=ln(o),I=ln(!1),z=ln(l),O=!Mn(S)||"survey"===S.type;an((()=>{z.current=l}),[l]);var D=function(t,r){return Qe=8,un((function(){return t}),[])}((()=>{var t=z.current;if(t&&L.current){var r=L.current.getBoundingClientRect(),e={width:r.width,height:r.height},n=t.getBoundingClientRect();b(function(t,r){var e=An.innerWidth,n=An.innerHeight,o=r.width,i=r.height,a=t.top,l=n-t.bottom,u=t.left,s=t.top+t.height/2,c=t.left+t.width/2;if(e-t.right>=o+Ln){var h=t.right+Ln,f=In(s,i,n);return{position:"right",top:f.clamped,left:h,arrowOffset:f.offset}}if(u>=o+Ln){var d=e-t.left+Ln,p=In(s,i,n);return{position:"left",top:p.clamped,right:d,arrowOffset:p.offset}}if(a>=i+Ln&&i+Ln>l){var v=n-t.top+Ln,m=In(c,o,e);return{position:"top",bottom:v,left:m.clamped,arrowOffset:m.offset}}var g=t.bottom+Ln,b=In(c,o,e);return{position:"bottom",top:g,left:b.clamped,arrowOffset:b.offset}}(n,e)),x(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)),T(!0)}}));an((()=>{!O&&!k&&L.current&&l&&D()}),[O,k,l,D]),on((()=>{var t=o,r=()=>{E.current===t&&(v("visible"),I.current=!1)},e=()=>{z.current&&Mn(n)&&(z.current.isConnected||(z.current=jn(n).element),z.current)?function(t,r){var e=t.getBoundingClientRect(),n=eo.innerHeight,o=eo.innerWidth,i=n/6,a=o/6;if(i>e.top||e.bottom>n-i||a>e.left||e.right>o-a){t.scrollIntoView({behavior:"smooth",block:"center"});var l=e.top,u=0,s=!1,c=()=>{if(!s){var e=t.getBoundingClientRect();if(1>Math.abs(e.top-l)){if(++u>=3)return s=!0,void r()}else u=0;l=e.top,setTimeout(c,50)}};setTimeout(c,30),setTimeout((()=>{s||(s=!0,r())}),500)}else r()}(z.current,(()=>{E.current===t&&(D(),setTimeout(r,50))})):setTimeout(r,50)};if(E.current===o)return E.current=o,I.current=!0,void e();E.current=o,I.current=!0,v("exiting"),setTimeout((()=>{E.current===t&&(Mn(n)&&(b(null),x(null),T(!1)),A(n),j(o),v("entering"),e())}),150)}),[l,o,n,D]),on((()=>{if("visible"===p&&!O){var t=()=>{I.current||D()};return Re(eo,"scroll",t,{capture:!0}),Re(eo,"resize",t),()=>{null==eo||eo.removeEventListener("scroll",t,!0),null==eo||eo.removeEventListener("resize",t)}}}),[D,p,O]),on((()=>{var t=t=>{"Escape"===t.key&&c("escape_key")};return Re(eo,"keydown",t),()=>{null==eo||eo.removeEventListener("keydown",t)}}),[c]);var R,N,P="visible"===p,Z="survey"===S.type,B=O||k,F=a({},S.maxWidth&&{width:"min("+S.maxWidth+"px, calc(100vw - 16px))",maxWidth:"min("+S.maxWidth+"px, calc(100vw - 16px))"},O?a({},{top:"auto",right:"auto",bottom:"auto",left:"auto",transform:"none"},(N=function(t,r,e){switch(void 0===r&&(r=rr),r){case Qt:return{top:"0",left:"0",transform:"translate(30px, 30px)"};case Wt:return{top:"0",right:"0",transform:"translate(-30px, 30px)"};case Yt:return{top:"0",left:"50%",transform:"translate(-50%, 30px)"};case Gt:return{top:"50%",left:"0",transform:"translate(30px, -50%)"};case Kt:return{top:"50%",right:"0",transform:"translate(-30px, -50%)"};case Jt:return{top:"50%",left:"50%",transform:"translate(-50%, -50%)"};case Xt:return{left:"30px"};case tr:return{left:"50%",transform:"translateX(-50%)"};default:return{right:void 0===er&&void 0===Ut?"60px":"30px"}}}(0,null!==(R=S.modalPosition)&&void 0!==R?R:"middle_center"),"top"in N||"bottom"in N?N:a({},N,{bottom:"30px"}))):(()=>{if(!g)return{};var t="left"===g.position||"right"===g.position;return{top:bt(g.top)?"auto":g.top+"px",bottom:bt(g.bottom)?"auto":g.bottom+"px",left:bt(g.left)?"auto":g.left+"px",right:bt(g.right)?"auto":g.right+"px",transform:t?"translateY(-50%)":"translateX(-50%)"}})());return Zn("div",{class:"ph-tour-container",children:[!1!==(null==(r=e.appearance)?void 0:r.dismissOnClickOutside)&&Zn("div",{class:"ph-tour-click-overlay",onClick(t){t.stopPropagation(),c("user_clicked_outside")}}),Zn("div",{class:"ph-tour-modal-overlay",style:{opacity:O&&P?1:0,transition:"opacity 150ms ease-out",pointerEvents:"none"}}),Zn("div",{class:"ph-tour-spotlight",style:a({},P&&B&&w?w:{top:"50%",left:"50%",width:"0px",height:"0px"},{opacity:!O&&P&&B?1:0,transition:"opacity 150ms ease-out"},"click"===S.progressionTrigger&&!O&&{pointerEvents:"auto",cursor:"pointer"}),onClick:"click"!==S.progressionTrigger||O?void 0:t=>{t.stopPropagation(),z.current&&z.current.click(),u()}}),Zn("div",{ref:L,class:"ph-tour-tooltip "+(O?"ph-tour-tooltip--modal":"")+" "+(Z?"ph-tour-survey-step":""),style:a({},F,{opacity:P&&B?1:0,transition:"opacity 150ms ease-out"}),onClick(t){t.stopPropagation()},children:[!O&&g&&Zn("div",{class:"ph-tour-arrow ph-tour-arrow--"+no(g.position),style:0!==g.arrowOffset?{"--ph-tour-arrow-offset":g.arrowOffset+"px"}:void 0}),Z?Zn(ro,{step:S,appearance:e.appearance,stepIndex:M,totalSteps:i,onSubmit:h,onPrevious:s,onDismiss:()=>c("user_clicked_skip")}):Zn(Gn,{step:S,appearance:e.appearance,stepIndex:M,totalSteps:i,onNext:u,onPrevious:s,onDismiss:()=>c("user_clicked_skip"),onButtonClick:f})]})]})}function io(t){return Zn("a",{class:t.class,href:t.href,target:"_blank",rel:"noopener noreferrer",onClick:t.onClick,children:t.children})}function ao(t){var r=t.onClick;return Zn("div",{class:t.class,role:"button",tabIndex:0,onClick:r,onKeyDown(t){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),r())},style:{cursor:"pointer"},children:t.children})}function lo(t){return Zn("div",{class:t.class,children:t.children})}function uo(t){return Zn("div",{class:"ph-tour-banner-wrapper",children:Zn("div",{class:"ph-tour-banner-slide",children:Zn(so,a({},t))})})}function so(t){var r,e=t.step,n=t.onDismiss,o=t.onActionClick,i=null!==(r=e.bannerConfig)&&void 0!==r?r:{behavior:"sticky"},a=i.action,l="always"!==t.displayFrequency,u=["ph-tour-banner","sticky"===i.behavior&&"ph-tour-banner--sticky","custom"===i.behavior&&"ph-tour-banner--custom"].filter(Boolean).join(" "),s=Zn(M,{children:[Zn("div",{class:"ph-tour-banner-content",dangerouslySetInnerHTML:{__html:Nn(e)}}),l&&Zn("button",{class:"ph-tour-banner-dismiss",onClick(t){t.stopPropagation(),t.preventDefault(),n()},"aria-label":"Close banner",children:Qn()})]});return"link"===(null==a?void 0:a.type)&&a.link?Zn(io,{class:u,href:a.link,onClick:o,children:s}):"trigger_tour"===(null==a?void 0:a.type)&&o?Zn(ao,{class:u,onClick:o,children:s}):Zn(lo,{class:u,children:s})}function co(t){var r,e;return!(null==(r=t.conditions)||!r.events||0>=(null==(e=t.conditions.events.values)?void 0:e.length))}function ho(t){var r,e;return!(null==(r=t.conditions)||!r.actions||0>=(null==(e=t.conditions.actions.values)?void 0:e.length))}class fo{on(t,r){return this.do[t]||(this.do[t]=[]),this.do[t].push(r),()=>{this.do[t]=this.do[t].filter((t=>t!==r))}}emit(t,r){for(var e of this.do[t]||[])e(r);for(var n of this.do["*"]||[])n(t,r)}constructor(){this.do={}}}function po(t,r,e){if(xt(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 vo{constructor(t){this.hu=new Set,this.du=new Set,this.vu=new fo,this.cu=(t,r)=>this.fu(t,r)&&this.pu(t,r)&&this.gu(t,r)&&this.mu(t,r),this.fu=(t,r)=>null==r||!r.event||(null==t?void 0:t.event)===(null==r?void 0:r.event),this._instance=t}init(){var t,r;bt(null==(t=this._instance)?void 0:t._addCaptureHook)||(this.yu=null==(r=this._instance)?void 0:r._addCaptureHook(((t,r)=>{this.on(t,r)})))}dispose(){var t;null==(t=this.yu)||t.call(this),this.yu=void 0,this.vu=new fo}register(t){var r,e;if(!bt(null==(r=this._instance)?void 0:r._addCaptureHook)&&(t.forEach((t=>{var r;this.hu.add(t),null==(r=t.steps)||r.forEach((t=>{this.du.add((null==t?void 0:t.event)||"")}))})),null!=(e=this._instance)&&e.autocapture)){var n=new Set;this.hu.forEach((t=>{var r;null==(r=t.steps)||r.forEach((t=>{null!=t&&t.selector&&n.add(t.selector)}))})),this._instance.autocapture.setElementSelectors(n)}}replace(t){this.hu.clear(),this.du.clear(),this.register(t)}on(t,r){null!=r&&0!=t.length&&(this.du.has(t)||this.du.has(r.event))&&this.hu.forEach((t=>{this.bu(r,t)&&this.vu.emit("actionCaptured",t.name)}))}_u(t){this.onAction("actionCaptured",(r=>t(r)))}bu(t,r){if(null==(null==r?void 0:r.steps))return!1;for(var e of r.steps)if(this.cu(t,e))return!0;return!1}onAction(t,r){return this.vu.on(t,r)}pu(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(!po(n,r.url,r.url_matching||"contains"))return!1}return!0}gu(t,r){return!!this.wu(t,r)&&!!this.ku(t,r)&&!!this.Su(t,r)}wu(t,r){var e;if(null==r||!r.href)return!0;var n=this.xu(t);if(n.length>0)return n.some((t=>po(t.href,r.href,r.href_matching||"exact")));var o,i=(null==t||null==(e=t.properties)?void 0:e.$elements_chain)||"";return!!i&&po((o=i.match(/(?::|")href="(.*?)"/))?o[1]:"",r.href,r.href_matching||"exact")}ku(t,r){var e;if(null==r||!r.text)return!0;var n=this.xu(t);if(n.length>0)return n.some((t=>po(t.text,r.text,r.text_matching||"exact")||po(t.$el_text,r.text,r.text_matching||"exact")));var o,i,a,l=(null==t||null==(e=t.properties)?void 0:e.$elements_chain)||"";return!!l&&(o=function(t){for(var r,e=[],n=/(?::|")text="(.*?)"/g;!xt(r=n.exec(t));)e.includes(r[1])||e.push(r[1]);return e}(l),i=r.text,a=r.text_matching||"exact",o.some((t=>po(t,i,a))))}Su(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}xu(t){var r;return null==(null==t||null==(r=t.properties)?void 0:r.$elements)?[]:null==t?void 0:t.properties.$elements}mu(t,r){return null==r||!r.properties||0===r.properties.length||$e(r.properties.reduce(((t,r)=>{var e=mt(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 mo{constructor(t){var r;this.Cu=[],this._instance=t,this.Tu=new Map,this.Mu=new Map,this.Eu=new Map,this.Iu=null==(r=this._instance)||null==r.onSessionId?void 0:r.onSessionId((t=>this.Ru(t)))}Pu(t){return!1}Au(){return null}Fu(t){}Ou(){}Lu(t,r){return!!t&&$e(t.propertyFilters,null==r?void 0:r.properties)}Du(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===Ht?this.Tu:this.Mu).get(t),o=[];return this.Nu((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.Lu(i,r)}))}register(t){this.qu(t,!1)}replace(t){this.qu(t,!0)}qu(t,r){var e;bt(null==(e=this._instance)?void 0:e._addCaptureHook)||(this.ju(t,r),this.Bu(t,r))}Bu(t,r){var e=t.filter((t=>{var r;return null==(r=t.conditions)||null==(r=r.actions)||null==(r=r.values)?void 0:r.length}));if(r&&this.Eu.clear(),0!==e.length){this.Hu||(this.Hu=new vo(this._instance),this.Hu.init(),this.Hu._u((t=>this.onAction(t))));var n=[];e.forEach((t=>{var r;null==(r=t.conditions)||null==(r=r.actions)||r.values.forEach((r=>{if(n.push(r),r.name){var e,o=null!==(e=this.Eu.get(r.name))&&void 0!==e?e:[];o.includes(t.id)||o.push(t.id),this.Eu.set(r.name,o)}}))})),r?this.Hu.replace(n):this.Hu.register(n)}else{var o;r&&(null==(o=this.Hu)||o.replace([]))}}zu(t,r){r.forEach(((r,e)=>{var n,o=null!==(n=t.get(e))&&void 0!==n?n:[];r.forEach((t=>{o.includes(t)||o.push(t)})),t.set(e,o)}))}ju(t,r){var e,n,o=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})),i=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})),a=this.Du(t,Ht),l=this.Du(t,Vt);r?(this.Tu=a,this.Mu=l):(this.zu(this.Tu,a),this.zu(this.Mu,l)),(0!==o.length||0!==i.length)&&(null!==(e=this.yu)&&void 0!==e||(this.yu=null==(n=this._instance)?void 0:n._addCaptureHook(((t,r)=>{this.onEvent(t,r)}))))}onEvent(t,r){var e,n,o=this.Uu(),i=(null==r||null==(e=r.properties)?void 0:e.$survey_id)||(null==r||null==(n=r.properties)?void 0:n.$product_tour_id);if(i&&this.getActivatedIds().includes(i)){var a=this.Wu(t,i);if("consume"===a)return o.info("event consumed activated item, removing it",{event:t,itemId:i}),void this.Vu([i]);if("persist"===a)return o.info("shown item promoted to persisted activation",{event:t,itemId:i}),this.Gu(i),void this.Zu([i])}if(this.Mu.has(t)){var l=this.$u(t,r,Vt);l.length>0&&(o.info("cancel event matched, cancelling items",{event:t,itemsToCancel:l.map((t=>t.id))}),this.Vu(l.map((t=>t.id))),l.forEach((t=>this.Qu(t.id))))}if(this.Tu.has(t)){o.info("event name matched",{event:t,eventPayload:r,items:this.Tu.get(t)});var u=this.$u(t,r,Ht);this.Ju(u.map((t=>t.id)))}}onAction(t){this.Eu.has(t)&&this.Ju(this.Eu.get(t)||[])}Ju(t){var r;if(0!==t.length){var e=!(null==(r=this._instance)||null==r.get_session_id||!r.get_session_id()),n=[];for(var o of t)e&&this.Pu(o)?this.Gu(o)&&this.Ku(o):n.push(o);n.length>0&&(this.Cu=[...new Set([...this.Cu,...n])]),this.Uu().info("updating activated items",{activatedItems:this.getActivatedIds()})}}Gu(t){this.Cu=this.Cu.filter((r=>r!==t));var r=this.Yu();return!r.includes(t)&&(this.Xu([...r,t]),this.th(),!0)}Vu(t){var r=new Set(t);this.Cu=this.Cu.filter((t=>!r.has(t)));var e=this.eh(),n=e.filter((t=>!r.has(t)));n.length!==e.length&&(this.Xu(n),0===n.length&&this.ih()),this.Zu(t)}rh(){var t,r=this.Au();if(!r)return{};var e=null==(t=this._instance)||null==(t=t.persistence)?void 0:t.props[r];return e&&"object"==typeof e?e:{}}Ku(t){if(this.Au()){var r=this.rh();this.Fu(a({},r,{[t]:Date.now()}))}}Zu(t){if(this.Au()){var r=this.rh(),e={},n=!1;for(var o of Object.entries(r)){var i=o[0],a=o[1];t.includes(i)?n=!0:e[i]=a}n&&((t=>{if((t=>t===Object(t)&&!mt(t))(t)){for(var r in t)if(pt.call(t,r))return!1;return!0}return!1})(e)?this.Ou():this.Fu(e))}}nh(){this.Au()&&this.Ou()}getActivationTimestamp(t){if(this.Yu().includes(t)){var r=this.rh()[t];return _t(r)?r:void 0}}eh(){var t,r=this.sh();return(null==(t=this._instance)||null==(t=t.persistence)?void 0:t.props[r])||[]}Yu(){var t,r,e=this.eh();if(0===e.length)return[];var n=null==(t=this._instance)||null==(t=t.persistence)?void 0:t.props[this.ah()],o=null==(r=this._instance)||null==r.get_session_id?void 0:r.get_session_id();return o&&n===o?e:[]}th(){var t,r=null==(t=this._instance)||null==t.get_session_id?void 0:t.get_session_id();r&&this.oh(r)}ih(){this.lh()}Ru(t){var r,e=null==(r=this._instance)||null==(r=r.persistence)?void 0:r.props[this.ah()];if(e&&e!==t){var n=this.eh(),o=this.rh();n.length>0&&(this.Xu([]),n.filter((t=>_t(o[t]))).forEach((t=>this.Qu(t)))),this.ih(),this.nh()}}getActivatedIds(){return[...new Set([...this.Yu(),...this.Cu])].filter((t=>!this.uh(t)))}dispose(){var t,r,e;null==(t=this.Iu)||t.call(this),this.Iu=void 0,null==(r=this.yu)||r.call(this),this.yu=void 0,null==(e=this.Hu)||e.dispose(),this.Hu=void 0}reset(){this.Cu=[],this.eh().length>0&&this.Xu([]),this.ih(),this.nh()}getEventToItemsMap(){return this.Tu}hh(){return this.Hu}}var go=Ee("[Product Tour Event Receiver]");class bo extends mo{constructor(t){super(t)}sh(){return J}ah(){return X}dh(){return rt}Nu(t){var r;null==(r=this._instance)||null==(r=r.productTours)||r.getProductTours(t)}Qu(t){var r;null==(r=this._instance)||null==(r=r.productTours)||r.cancelPendingTour(t)}Uu(){return go}Xu(t){var r;null==(r=this._instance)||null==(r=r.persistence)||r.register({[J]:t})}oh(t){var r;null==(r=this._instance)||null==(r=r.persistence)||r.register({[X]:t})}lh(){var t;null==(t=this._instance)||null==(t=t.persistence)||t.unregister(X)}uh(t){if(!t)return!0;var r=""+_n+t;return!(!He.ti(""+xn+t)&&!He.ti(r))}Wu(t){return t===this.dh()?"consume":"ignore"}getTours(){return this.getActivatedIds()}}var yo,wo=Ee("[Product Tours]"),xo=o,_o=r,ko=new Map;function To(t){var r=new Date;return(!t.start_date||new Date(t.start_date)<=r)&&(!t.end_date||r<=new Date(t.end_date))}function Co(t,e){var o;return To(t)&&function(t,e){var n=t.conditions;if(null==n||!n.url)return!0;var o=function(t){var e,n=null==r||null==(e=r.location)?void 0:e.href;return bt(n)?void 0:function(t,r){var e,n=null==t||null==(e=t.config)?void 0:e.get_current_url;if(!gt(n))return r;try{var o=n(r);return yt(o)&&o?o:r}catch(t){return Le.error("Error in get_current_url, falling back to window.location.href",t),r}}(t,n)}(e);if(!o)return!1;o!==yo&&(ko.clear(),yo=o);var i=ko.get(t.id);if(!bt(i))return i;var a,l=n.urlMatchType||ft;return a=l===ht?Dn(o)===Dn(n.url):De[l]([n.url],[o]),ko.set(t.id,a),a}(t,e)&&function(t,e){var o,a,l;if(!t||0===t.length)return!0;if(!i)return!1;var u,s,c,h,f,d,p=(u={userAgentDataPlatform:null==n||null==(o=n.userAgentData)?void 0:o.platform,maxTouchPoints:null==n?void 0:n.maxTouchPoints,screenWidth:null==r||null==(a=r.screen)?void 0:a.width,screenHeight:null==r||null==(l=r.screen)?void 0:l.height,devicePixelRatio:null==r?void 0:r.devicePixelRatio},(d=function(t){return Bt.test(t)?Lt:Zt.test(t)?Et:Pt.test(t)?It:new RegExp(Dt,"i").test(t)?Dt:new RegExp("("+zt+"|WPDesktop)","i").test(t)?zt:/iPad/.test(t)?qt:/iPod/.test(t)?"iPod Touch":/iPhone/.test(t)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(t)?Mt:Ft.test(t)?jt:/(kobo)\s(ereader|touch)/i.test(t)?"Kobo":new RegExp(Ot,"i").test(t)?Ot:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(t)||/(kf[a-z]+)( bui|\)).+silk\//i.test(t)?"Kindle Fire":/(Android|ZTE)/i.test(t)?new RegExp(Tt).test(t)&&!/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(t)||/pixel[\daxl ]{1,6}/i.test(t)&&!/pixel c/i.test(t)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(t)||/lmy47v/i.test(t)&&!/QTAQZ3/i.test(t)?Ct:At:new RegExp("(pda|"+Tt+")","i").test(t)?Rt:new RegExp(St,"i").test(t)&&!new RegExp(St+" pc","i").test(t)?Nt:""}(i))===qt||d===At||"Kobo"===d||"Kindle Fire"===d||d===Nt?St:d===Lt||d===It||d===Et||d===Dt?"Console":d===Mt?"Wearable":d?Tt:"Android"===(null==u?void 0:u.userAgentDataPlatform)&&(null!==(s=null==u?void 0:u.maxTouchPoints)&&void 0!==s?s:0)>0?600>Math.min(null!==(c=null==u?void 0:u.screenWidth)&&void 0!==c?c:0,null!==(h=null==u?void 0:u.screenHeight)&&void 0!==h?h:0)/(null!==(f=null==u?void 0:u.devicePixelRatio)&&void 0!==f?f:1)?Tt:St:"Desktop");return De.icontains(t,[p])}(null==(o=t.conditions)?void 0:o.deviceTypes)}var So="ph-product-tour-container",Ao="data-ph-tour-trigger";class qo{constructor(t){var r=this;this.ap=null,this.up=0,this.cp=!1,this.hp=!1,this.fp=null,this.dp=new Map,this.pp=new Map,this.vp=new Set,this.mp=new Set,this.gp=()=>{xo.hidden&&this.fp?(clearInterval(this.fp),this.fp=null):xo.hidden||this.fp||(this.fp=setInterval((()=>{this.bp()}),1e3),this.bp())},this.nextStep=()=>{this.ap&&(this.As("product tour step completed",{[et]:this.ap.id,[it]:this.ap.steps[this.up].id,[at]:this.up}),this.ap.steps.length-1>this.up?(this.yp(this.up+1),this.wp()):this.xp())},this.previousStep=()=>{this.ap&&0!==this.up&&(this.yp(this.up-1),this.wp())},this.dismissTour=function(t){void 0===t&&(t="user_clicked_skip"),r.ap&&(r.As("product tour dismissed",{[et]:r.ap.id,[it]:r.ap.steps[r.up].id,[at]:r.up,$product_tour_dismiss_reason:t}),r.cp||(He.ei(""+_n+r.ap.id,!0),r._instance.capture("$set",{$set:{["$product_tour_dismissed/"+r.ap.id]:!0}})),_o.dispatchEvent(new CustomEvent("PHProductTourDismissed",{detail:{tourId:r.ap.id,reason:t}})),r._p())},this.kp=()=>{var t;if(this.ap){var r=this.Tp();if(r){var e=null==(t=r.bannerConfig)?void 0:t.action;this.As("product tour banner action clicked",{[et]:this.ap.id,[nt]:this.ap.name,[ot]:this.ap.current_iteration||1,[it]:r.id,[at]:this.up,[lt]:null==e?void 0:e.type,[ut]:null==e?void 0:e.link,[st]:null==e?void 0:e.tourId}),"trigger_tour"===(null==e?void 0:e.type)&&e.tourId&&(this._p(),this.showTourById(e.tourId))}}},this.Cp=t=>{if(this.ap){var r=this.ap.steps[this.up];r&&this.As("product tour button clicked",a({[et]:this.ap.id,[nt]:this.ap.name,[ot]:this.ap.current_iteration||1,[it]:r.id,[at]:this.up,$product_tour_button_text:t.text,[lt]:t.action},t.link&&{[ut]:t.link},t.tourId&&{[st]: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.xp();break;case"trigger_tour":t.tourId&&(this.xp(),this.showTourById(t.tourId))}},this._instance=t,this.Sp=new bo(t)}Ap(t){var r=t.filter((t=>!t.disable_image_preload)).flatMap((t=>t.steps.flatMap(Rn)));for(var e of r)this.mp.has(e)||(this.mp.add(e),(new Image).src=e)}Tp(){var t;if(!this.ap)return null;var r=this.ap.steps[this.up];if(!r)return null;var e=null!==(t=this._instance.config.override_display_language)&&void 0!==t?t:navigator.language||navigator.userLanguage;return function(t,r){var e;if(!r||!t.translations)return t;var n=t.translations,o=null!==(e=n[r])&&void 0!==e?e:n[r.split("-")[0]];if(!o)return Cn.info('No matching translation for "'+r+'" in step '+t.id+", using default"),t;var i=a({},t);return bt(o.content)||(i.content=o.content),bt(o.contentHtml)||(i.contentHtml=o.contentHtml),o.buttons&&i.buttons&&(i.buttons={primary:i.buttons.primary&&a({},i.buttons.primary,o.buttons.primary),secondary:i.buttons.secondary&&a({},i.buttons.secondary,o.buttons.secondary)}),o.survey&&i.survey&&(i.survey=a({},i.survey,o.survey)),i}(r,null!=e?e:null)}yp(t){this.up=t,this.qp()}qp(){this.ap&&!this.cp&&Ue.ei(kn,{tourId:this.ap.id,stepIndex:this.up})}Mp(){Ue.ri(kn)}jp(){var t=Ue.ti(kn);if(!t)return null;try{return JSON.parse(t)}catch(t){return null}}start(){if(!this.fp){var t=this.jp();t?this.Lp(t.tourId,t.stepIndex,(()=>{this.Ep()})):this.Ep()}}Ep(){this.fp=setInterval((()=>{this.bp()}),1e3),this.bp(!0),Re(xo,"visibilitychange",this.gp)}Lp(t,r,e){var n;null==(n=this._instance.productTours)||n.getProductTours((n=>{var o=n.find((r=>r.id===t));o?(this.ap=o,this.up=r,this.hp=!0,this.wp()):n.length>0&&this.Mp(),e()}))}stop(){this.fp&&(clearInterval(this.fp),this.fp=null),xo.removeEventListener("visibilitychange",this.gp),this.Ip(),this.zp(),this._p()}bp(t){var r;null!=xo&&xo.getElementById("__POSTHOG_TOOLBAR__")||null==(r=this._instance.productTours)||r.getProductTours((t=>{if(0!==t.length){this.Ap(t);var r=new Set,e=t.filter((t=>!this.vp.has(t.id)&&(co(t)||ho(t))));e.length>0&&(this.Sp.register(e),e.forEach((t=>this.vp.add(t.id))));var n=this.ap?[]:this.Sp.getTours();for(var o of t){var i,a=null==(i=o.conditions)?void 0:i.selector;if(a&&(r.add(o.id),this.Op(o,a)),!this.ap){var l=ho(o)||co(o);if(o.auto_launch&&this.Dp(o)){if(!l){this.$p(o,"auto");continue}n.includes(o.id)&&this.$p(o,"event")}}}this.dp.forEach((t=>{var e=t.tour;r.has(e.id)||this.Rp(e.id)}))}else this.Ip()}),t)}$p(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})}Dp(t){var r,e,n;if(!Co(t,this._instance))return wo.info("Tour "+t.id+" failed conditions check"),!1;var o,i,a=null!==(r=t.display_frequency)&&void 0!==r?r:"until_interacted",l=""+wn+t.id,u=""+xn+t.id,s=""+_n+t.id;switch(a){case"show_once":if(He.ti(l))return wo.info("Tour "+t.id+" already shown (show_once frequency)"),!1;break;case"until_interacted":if(He.ti(u)||He.ti(s))return wo.info("Tour "+t.id+" already completed or dismissed"),!1}if(!function(t){if(!t)return!0;var r=t.days,e=t.types;if(!r||!e||0===e.length)return!0;var n=null;for(var o of e){var i=He.ti(""+Tn+o);if(i)try{var a=JSON.parse(i),l=new Date(a);isNaN(l.getTime())||n&&n>=l||(n=l)}catch(t){}}return!n||function(t,r){if(!t||!r)return!0;var e="string"==typeof r?new Date(r):r,n=new Date,o=Math.abs(n.getTime()-e.getTime());return Math.ceil(o/864e5)>t}(r,n)}(null==(e=t.conditions)?void 0:e.seenTourWaitPeriod))return wo.info("Cannot show tour "+t.id+": user has seen a "+(null==(o=t.conditions)||null==(o=o.seenTourWaitPeriod)?void 0:o.types)+" tour within the last "+(null==(i=t.conditions)||null==(i=i.seenTourWaitPeriod)?void 0:i.days)+" days."),!1;if(!this.Np({flagKey:t.internal_targeting_flag_key}))return wo.info("Tour "+t.id+" failed feature flag check: "+t.internal_targeting_flag_key),!1;var c=null==(n=t.conditions)?void 0:n.linkedFlagVariant;return!!this.Np({flagKey:t.linked_flag_key,flagVariant:c})||(wo.info("Tour "+t.id+" failed feature flag check: "+t.linked_flag_key+", variant: "+c),!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.ap=t,this.yp(0);var o=this.wp();return o?(this.As(rt,{[et]:t.id,[nt]:t.name,[ot]:t.current_iteration||1,$product_tour_render_reason:n,$product_tour_type:t.tour_type}),this.cp||(He.ei(""+wn+t.id,!0),He.ei(""+Tn+t.tour_type,(new Date).toISOString()),this._instance.capture("$set",{$set:{["$product_tour_shown/"+t.id]:!0}}))):this._p(),o}showTourById(t,r){var e;wo.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"}):wo.warn("could not find tour",t)}))}previewTour(t){wo.info("Previewing tour "+t.id),this._p(),this.cp=!0,this.ap=t,this.up=0,this.wp()}xp(){this.ap&&(this.As("product tour completed",{[et]:this.ap.id,$product_tour_steps_count:this.ap.steps.length}),this.cp||(He.ei(""+xn+this.ap.id,!0),this._instance.capture("$set",{$set:{["$product_tour_completed/"+this.ap.id]:!0}})),_o.dispatchEvent(new CustomEvent("PHProductTourCompleted",{detail:{tourId:this.ap.id}})),this._p())}wp(t){var r;if(void 0===t&&(t=0),!this.ap)return!1;var e=this.Tp();if(!e)return wo.warn("Step "+this.up+" not found in tour "+this.ap.id),this._p(),!1;if("banner"===e.type)return this.Pp(),this.hp=!1,this.Zp(),!0;if("survey"===e.type)return e.survey?(this.Bp(),!0):(wo.warn("Unable to render survey step - survey data not found"),!1);if(!Mn(e))return this.Pp(),this.hp=!1,this.Fp(null),!0;var n=jn(e),o={$use_manual_selector:null!==(r=e.useManualSelector)&&void 0!==r&&r,$inference_data_present:!!e.inferenceData},i=this.up>0?this.ap.steps[this.up-1]:null,l="click"===(null==i?void 0:i.progressionTrigger)||this.hp;if("not_found"===n.error||"not_visible"===n.error){if(l&&20>t)return setTimeout((()=>{this.wp(t+1)}),100),!1;var u=100*t;return this.Hp(n,a({$product_tour_waited_for_element:l,$product_tour_wait_duration_ms:u},o)),0!==this.up||this.hp?(wo.warn('Tour "'+this.ap.name+'" dismissed: element for step '+this.up+" became unavailable ("+n.error+")"+(l?" after waiting "+u+"ms":"")),this.dismissTour("element_unavailable"),!1):(wo.warn('Tour "'+this.ap.name+'" failed to show: element for first step not found ('+n.error+")"),!1)}if("multiple_matches"===n.error&&this.Hp(n,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.Pp(a({[ct]: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.hp=!1,this.Fp(s),!0}Fp(t,r,e){if(this.ap){var n=this.Tp();if(n){var o=function(t,r){var e=So+"-"+t.id,n=xo.querySelector("."+e);if(n&&n.shadowRoot)return{shadow:n.shadowRoot,isNewlyCreated:!1};var o=xo.createElement("div");o.className=e,zn(o,t.appearance);var i=o.attachShadow({mode:"open"}),a=qn(r);return a&&i.appendChild(a),xo.body.appendChild(o),{shadow:i,isNewlyCreated:!0}}(this.ap,this._instance),i=o.shadow;K(Zn(oo,{tour:this.ap,step:n,stepIndex:this.up,totalSteps:this.ap.steps.length,targetElement:t,onNext:this.nextStep,onPrevious:this.previousStep,onDismiss:e||this.dismissTour,onSurveySubmit:r,onButtonClick:this.Cp}),i)}}}Zp(){if(this.ap){var t=this.Tp();if(t){var r,e=function(t,r,e){var n,o=So+"-"+t.id,i=xo.querySelector("."+o);if(i&&i.shadowRoot)return{shadow:i.shadowRoot,isNewlyCreated:!1};var a=xo.createElement("div");a.className=o,zn(a,t.appearance),bt(null==e||null==(n=e.animation)?void 0:n.duration)||a.style.setProperty("--ph-tour-banner-animation-duration",e.animation.duration+"ms");var l=a.attachShadow({mode:"open"}),u=qn(r);if(u&&l.appendChild(u),"custom"===(null==e?void 0:e.behavior)&&e.selector){var s=xo.querySelector(e.selector);if(!s)return wo.warn("Custom banner container not found: "+e.selector+". Banner will not be displayed."),null;s.appendChild(a)}else xo.body.insertBefore(a,xo.body.firstChild);return{shadow:l,isNewlyCreated:!0}}(this.ap,this._instance,t.bannerConfig);if(!e)return this.As("product tour banner container selector failed",{[et]:this.ap.id,$product_tour_banner_selector:null==t||null==(r=t.bannerConfig)?void 0:r.selector}),void this.dismissTour("container_unavailable");var n=e.shadow;K(Zn(uo,{step:t,onDismiss:()=>this.dismissTour("user_clicked_skip"),onActionClick:this.kp,displayFrequency:this.ap.display_frequency}),n)}}}Bp(){var t,r,e;if(this.ap){var n=this.ap.id,o=this.Tp();if(o){var i=o.linkedSurveyId,l=o.linkedSurveyQuestionId,u=(null==(t=o.survey)?void 0:t.questionText)||"";this.Pp({$product_tour_linked_survey_id:i}),this.As("survey shown",{[nr]:i,[ir]:n,sessionRecordingUrl:null==(r=(e=this._instance).get_session_replay_url)?void 0:r.call(e)}),this.Fp(null,(t=>{var r,e,o=l?"$survey_response_"+l:"$survey_response";this.As("survey sent",a({[nr]:i,[ir]:n,[or]:[{id:l,question:u,response:t}],$survey_completed:!0,sessionRecordingUrl:null==(r=(e=this._instance).get_session_replay_url)?void 0:r.call(e)},!wt(t)&&{[o]:t})),wo.info("Survey "+i+" completed",wt(t)?"(skipped)":"with response: "+t),this.nextStep()}),(t=>{var r,e;this.As("survey dismissed",{[nr]:i,[ir]:n,[or]:[{id:l,question:u,response:null}],$survey_partially_completed:!1,sessionRecordingUrl:null==(r=(e=this._instance).get_session_replay_url)?void 0:r.call(e)}),wo.info("Survey "+i+" dismissed"),this.dismissTour(t)})),wo.info("Rendered survey step for tour step "+this.up)}}}Np(t){var r,e=t.flagKey,n=t.flagVariant;if(!e)return!0;var o,i=!(null==(r=this._instance.featureFlags)||!r.isFeatureEnabled(e,{send_event:!e.startsWith("product-tour-targeting-")})),a=!0;return n&&(a=(null==(o=this._instance.featureFlags)?void 0:o.getFeatureFlag(e,{send_event:!1}))===n||"any"===n),i&&a}_p(){var t;this.ap&&(null!=(t=xo.querySelector("."+So+"-"+this.ap.id))&&t.shadowRoot&&K(null,t.shadowRoot),null==t||t.remove()),this.ap=null,this.up=0,this.cp=!1,this.hp=!1,this.Mp()}Op(t,r){var e=xo.querySelector(r),n=this.dp.get(t.id);if(e){if(n){if(e===n.element)return;wo.info("Trigger element changed for tour "+t.id+". Re-attaching listener."),this.Rp(t.id)}if(!e.hasAttribute(Ao)){var o=e=>{var n;if(this.ap)wo.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 wo.warn("Tour "+t.id+" no longer exists. Removing stale listener."),void this.Rp(t.id);To(o)?(wo.info("Tour "+t.id+" triggered by click on "+r),this.showTour(o,{reason:"trigger"})?e.preventDefault():wo.info("Tour "+t.id+" failed to show; not intercepting click.")):wo.warn("Tour "+t.id+" trigger clicked, but tour is not launched - not showing tour.")}};Re(e,"click",o),e.setAttribute(Ao,t.id),this.dp.set(t.id,{element:e,listener:o,tour:t}),wo.info("Attached trigger listener for tour "+t.id+" on "+r)}}else n&&this.Rp(t.id)}Rp(t){var r=this.dp.get(t);r&&(r.element.removeEventListener("click",r.listener),r.element.removeAttribute(Ao),this.dp.delete(t),wo.info("Removed trigger listener for tour "+t))}Ip(){this.dp.forEach(((t,r)=>{this.Rp(r)}))}As(t,r){this.cp||this._instance.capture(t,r)}Pp(t){if(this.ap){var r=this.ap.steps[this.up];this.As("product tour step shown",a({[et]:this.ap.id,[it]:r.id,[at]:this.up,$product_tour_step_type:r.type},t))}}Hp(t,r){if(this.ap){var e=this.ap.steps[this.up];this.As("product tour step selector failed",a({[et]:this.ap.id,[it]:e.id,[at]:this.up,[ct]:e.selector,$product_tour_error:t.error,$product_tour_matches_count:t.matchCount,$product_tour_failure_phase:"runtime"},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.Dp(t)));t(n,e)}else t([],e)}))}resetTour(t){He.ri(""+wn+t),He.ri(""+xn+t),He.ri(""+_n+t)}resetAllTours(){var t=null==_o?void 0:_o.localStorage;if(t){for(var r=[],e=0;t.length>e;e++){var n=t.key(e);(null!=n&&n.startsWith(wn)||null!=n&&n.startsWith(xn)||null!=n&&n.startsWith(_n)||null!=n&&n.startsWith(Tn))&&r.push(n)}r.forEach((t=>He.ri(t)))}}cancelPendingTour(t){var r=this.pp.get(t);r&&(clearTimeout(r),this.pp.delete(t),wo.info("Cancelled pending tour: "+t))}zp(){this.pp.forEach((t=>clearTimeout(t))),this.pp.clear()}isTourPending(t){return this.pp.has(t)}queueTourWithDelay(t,r,e){wo.info("Queueing tour "+t+" with "+r+"s delay");var n=setTimeout((()=>{this.pp.delete(t),wo.info("Delay elapsed for tour "+t+", showing now"),this.showTourById(t,e)}),1e3*r);this.pp.set(t,n)}}function Mo(t,r){if(o){var e=new qo(t);return r&&e.start(),e}}var jo="undefined"!=typeof globalThis?globalThis:r;jo&&"undefined"==typeof self&&(jo.self=jo),jo&&"undefined"==typeof File&&(jo.File=function(){});var Lo=null!=r?r:{};Lo.__PosthogExtensions__=Lo.__PosthogExtensions__||{},Lo.__PosthogExtensions__.generateProductTours=Mo,t.default=Mo,t.elementIsVisible=Ce,t.findElement=Me,t.getElementPath=function(t,r){if(void 0===r&&(r=4),!t)return null;for(var e=[],n=t;n&&r>e.length&&"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 r="undefined"!=typeof window?window:void 0,e="undefined"!=typeof globalThis?globalThis:r,n=null==e?void 0:e.navigator,o=null==e?void 0:e.document;null!=e&&e.XMLHttpRequest&&new e.XMLHttpRequest;var i=null==n?void 0:n.userAgent;function a(){return a=Object.assign?Object.assign.bind():function(t){for(var r=1;arguments.length>r;r++){var e=arguments[r];for(var n in e)({}).hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t},a.apply(null,arguments)}var l,u,s,c,h,f,d,p,v,m,g,b,y,w,x,_={},k=[],T=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,C=Array.isArray;function S(t,r){for(var e in r)t[e]=r[e];return t}function A(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function q(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!=u.vnode&&u.vnode(i),i}function M(t){return t.children}function j(t,r){this.props=t,this.context=r}function $(t,r){if(null==r)return t.__?$(t.__,t.__i+1):null;for(var e;t.__k.length>r;r++)if(null!=(e=t.__k[r])&&null!=e.__e)return e.__e;return"function"==typeof t.type?$(t):null}function L(t){if(t.__P&&t.__d){var r=t.__v,e=r.__e,n=[],o=[],i=S({},r);i.__v=r.__v+1,u.vnode&&u.vnode(i),F(t.__P,i,r,t.__n,t.__P.namespaceURI,32&r.__u?[e]:null,n,null==e?$(r):e,!!(32&r.__u),o),i.__v=r.__v,i.__.__k[i.__i]=i,V(n,i,o),r.__e=r.__=null,i.__e!=e&&E(i)}}function E(t){if(null!=(t=t.__)&&null!=t.__c)return t.__e=t.__c.base=null,t.__k.some((function(r){if(null!=r&&null!=r.__e)return t.__e=t.__c.base=r.__e})),E(t)}function I(t){(!t.__d&&(t.__d=!0)&&c.push(t)&&!z.__r++||h!=u.debounceRendering)&&((h=u.debounceRendering)||f)(z)}function z(){try{for(var t,r=1;c.length;)c.length>r&&c.sort(d),t=c.shift(),r=c.length,L(t)}finally{c.length=z.__r=0}}function O(t,r,e,n,o,i,a,l,u,s,c){var h,f,d,p,v,m,g,b=n&&n.__k||k,y=r.length;for(u=D(e,r,b,u,y),h=0;y>h;h++)null!=(d=e.__k[h])&&(f=-1!=d.__i&&b[d.__i]||_,d.__i=h,m=F(t,d,f,o,i,a,l,u,s,c),p=d.__e,d.ref&&f.ref!=d.ref&&(f.ref&&W(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=R(d,u,t,g),g&&f.__e&&(f.__e=null)):"function"==typeof d.type&&void 0!==m?u=m:p&&(u=p.nextSibling),d.__u&=-7);return e.__e=v,u}function D(t,r,e,n,o){var i,a,l,u,s,c=e.length,h=c,f=0;for(t.__k=new Array(o),i=0;o>i;i++)null!=(a=r[i])&&"boolean"!=typeof a&&"function"!=typeof a?("string"==typeof a||"number"==typeof a||"bigint"==typeof a||a.constructor==String?a=t.__k[i]=q(null,a,null,null,null):C(a)?a=t.__k[i]=q(M,{children:a},null,null,null):void 0===a.constructor&&a.__b>0?a=t.__k[i]=q(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):t.__k[i]=a,u=i+f,a.__=t,a.__b=t.__b+1,l=null,-1!=(s=a.__i=N(a,e,u,h))&&(h--,(l=e[s])&&(l.__u|=2)),null==l||null==l.__v?(-1==s&&(o>c?f--:c>o&&f++),"function"!=typeof a.type&&(a.__u|=4)):s!=u&&(s==u-1?f--:s==u+1?f++:(s>u?f--:f++,a.__u|=4))):t.__k[i]=null;if(h)for(i=0;c>i;i++)null!=(l=e[i])&&0==(2&l.__u)&&(l.__e==n&&(n=$(l)),Y(l,l));return n}function R(t,r,e,n){var o,i;if("function"==typeof t.type){for(o=t.__k,i=0;o&&o.length>i;i++)o[i]&&(o[i].__=t,r=R(o[i],r,e,n));return r}t.__e!=r&&(n&&(r&&t.type&&!r.parentNode&&(r=$(t)),e.insertBefore(t.__e,r||null)),r=t.__e);do{r=r&&r.nextSibling}while(null!=r&&8==r.nodeType);return r}function N(t,r,e,n){var o,i,a,l=t.key,u=t.type,s=r[e],c=null!=s&&0==(2&s.__u);if(null===s&&null==l||c&&l==s.key&&u==s.type)return e;if(n>(c?1:0))for(o=e-1,i=e+1;o>=0||r.length>i;)if(null!=(s=r[a=0>o?i++:o--])&&0==(2&s.__u)&&l==s.key&&u==s.type)return a;return-1}function P(t,r,e){"-"==r[0]?t.setProperty(r,null==e?"":e):t[r]=null==e?"":"number"!=typeof e||T.test(r)?e:e+"px"}function Z(t,r,e,n,o){var i,a;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||P(t.style,r,"");if(e)for(r in e)n&&e[r]==n[r]||P(t.style,r,e[r])}else if("o"==r[0]&&"n"==r[1])i=r!=(r=r.replace(g,"$1")),a=r.toLowerCase(),r=a in t||"onFocusOut"==r||"onFocusIn"==r?a.slice(2):r.slice(2),t.l||(t.l={}),t.l[r+i]=e,e?n?e[m]=n[m]:(e[m]=b,t.addEventListener(r,i?w:y,i)):t.removeEventListener(r,i?w:y,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 B(t){return function(r){if(this.l){var e=this.l[r.type+t];if(null==r[v])r[v]=b++;else if(e[m]>r[v])return;return e(u.event?u.event(r):r)}}}function F(t,r,e,n,o,i,a,l,s,c){var h,f,d,p,v,m,g,b,y,w,$,x,_,T,q,L,E=r.type;if(void 0!==r.constructor)return null;128&e.__u&&(s=!!(32&e.__u),i=[l=r.__e=e.__e]),(h=u.__b)&&h(r);t:if("function"==typeof E){f=a.length;try{if(y=r.props,w=E.prototype&&E.prototype.render,$=(h=E.contextType)&&n[h.__c],x=h?$?$.props.value:h.__:n,e.__c?b=(d=r.__c=e.__c).__=d.__E:(w?r.__c=d=new E(y,x):(r.__c=d=new j(y,x),d.constructor=E,d.render=G),$&&$.sub(d),d.state||(d.state={}),d.__n=n,p=d.__d=!0,d.__h=[],d._sb=[]),w&&null==d.__s&&(d.__s=d.state),w&&null!=E.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=S({},d.__s)),S(d.__s,E.getDerivedStateFromProps(y,d.__s))),v=d.props,m=d.state,d.__v=r,p)w&&null==E.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),w&&null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(w&&null==E.getDerivedStateFromProps&&y!==v&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(y,x),r.__v==e.__v||!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(y,d.__s,x)){r.__v!=e.__v&&(d.props=y,d.state=d.__s,d.__d=!1),r.__e=e.__e,r.__k=e.__k,r.__k.some((function(t){t&&(t.__=r)})),k.push.apply(d.__h,d._sb),d._sb=[],d.__h.length&&a.push(d);break t}null!=d.componentWillUpdate&&d.componentWillUpdate(y,d.__s,x),w&&null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(v,m,g)}))}if(d.context=x,d.props=y,d.__P=t,d.__e=!1,_=u.__r,T=0,w)d.state=d.__s,d.__d=!1,_&&_(r),h=d.render(d.props,d.state,d.context),k.push.apply(d.__h,d._sb),d._sb=[];else do{d.__d=!1,_&&_(r),h=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&25>++T);d.state=d.__s,null!=d.getChildContext&&(n=S(S({},n),d.getChildContext())),w&&!p&&null!=d.getSnapshotBeforeUpdate&&(g=d.getSnapshotBeforeUpdate(v,m)),q=null!=h&&h.type===M&&null==h.key?U(h.props.children):h,l=O(t,C(q)?q:[q],r,e,n,o,i,a,l,s,c),d.base=r.__e,r.__u&=-161,d.__h.length&&a.push(d),b&&(d.__E=d.__=null)}catch(t){if(a.length=f,r.__v=null,s||null!=i)if(t.then){for(r.__u|=s?160:128;l&&8==l.nodeType&&l.nextSibling;)l=l.nextSibling;null!=i&&(i[i.indexOf(l)]=null),r.__e=l}else{if(null!=i)for(L=i.length;L--;)A(i[L]);H(r)}else r.__e=e.__e,!r.__k&&e.__k&&(r.__k=e.__k),t.then||H(r);u.__e(t,r,e)}}else null==i&&r.__v==e.__v?(r.__k=e.__k,r.__e=e.__e):l=r.__e=Q(e.__e,r,e,n,o,i,a,s,c);return(h=u.diffed)&&h(r),128&r.__u?void 0:l}function H(t){t&&(t.__c&&(t.__c.__e=!0),t.__k&&t.__k.some(H))}function V(t,r,e){for(var n=0;e.length>n;n++)W(e[n],e[++n],e[++n]);u.__c&&u.__c(r,t),t.some((function(r){try{t=r.__h,r.__h=[],t.some((function(t){t.call(r)}))}catch(t){u.__e(t,r.__v)}}))}function U(t){return"object"!=typeof t||null==t||t.__b>0?t:C(t)?t.map(U):void 0!==t.constructor?null:S({},t)}function Q(t,r,e,n,o,i,a,s,c){var h,f,d,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;i.length>h;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(y);t=document.createElementNS(o,w,y.is&&y),s&&(u.__m&&u.__m(r,i),s=!1),i=null}if(null==w)b===y||s&&t.data==y||(t.data=y);else{if(i="textarea"==w&&null!=y.defaultValue?null:i&&l.call(t.childNodes),!s&&null!=i)for(b={},h=0;t.attributes.length>h;h++)b[(v=t.attributes[h]).name]=v.value;for(h in b)v=b[h],"dangerouslySetInnerHTML"==h?d=v:"children"==h||h in y||"value"==h&&"defaultValue"in y||"checked"==h&&"defaultChecked"in y||Z(t,h,null,v,o);for(h in y)v=y[h],"children"==h?p=v:"dangerouslySetInnerHTML"==h?f=v:"value"==h?m=v:"checked"==h?g=v:s&&"function"!=typeof v||b[h]===v||Z(t,h,v,b[h],o);if(f)s||d&&(f.__html==d.__html||f.__html==t.innerHTML)||(t.innerHTML=f.__html),r.__k=[];else if(d&&(t.innerHTML=""),O("template"==r.type?t.content:t,C(p)?p:[p],r,e,n,"foreignObject"==w?"http://www.w3.org/1999/xhtml":o,i,a,i?i[0]:e.__k&&$(e,0),s,c),null!=i)for(h=i.length;h--;)A(i[h]);s&&"textarea"!=w||(h="value","progress"==w&&null==m?t.removeAttribute("value"):null!=m&&(m!==t[h]||"progress"==w&&!m||"option"==w&&m!=b[h])&&Z(t,h,m,b[h],o),h="checked",null!=g&&g!=t[h]&&Z(t,h,g,b[h],o))}return t}function W(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){u.__e(t,e)}}function Y(t,r,e){var n,o;if(u.unmount&&u.unmount(t),(n=t.ref)&&(n.current&&n.current!=t.__e||W(n,null,r)),null!=(n=t.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(t){u.__e(t,r)}n.base=n.__P=n.__n=null}if(n=t.__k)for(o=0;n.length>o;o++)n[o]&&Y(n[o],r,e||"function"!=typeof t.type);e||A(t.__e),t.__c=t.__=t.__e=void 0}function G(t,r,e){return this.constructor(t,e)}function K(t,r,e){var n,o,i;r==document&&(r=document.documentElement),u.__&&u.__(t,r),n=r.__k,o=[],i=[],F(r,t=r.__k=function(t,r,e){var n,o,i,a={};for(i in r)"key"==i?n=r[i]:"ref"==i?o=r[i]:a[i]=r[i];if(arguments.length>2&&(a.children=arguments.length>3?l.call(arguments,2):e),"function"==typeof t&&null!=t.defaultProps)for(i in t.defaultProps)void 0===a[i]&&(a[i]=t.defaultProps[i]);return q(t,a,n,o,null)}(M,null,[t]),n||_,_,r.namespaceURI,n?null:r.firstChild?l.call(r.childNodes):null,o,n?n.__e:r.firstChild,!1,i),V(o,t,i),t.props.children=null}l=k.slice,u={__e(t,r,e,n){for(var o,i,a;r=r.__;)if((o=r.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(t)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(t,n||{}),a=o.__d),a)return o.__E=o}catch(r){t=r}throw t}},s=0,j.prototype.setState=function(t,r){var e;e=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=S({},this.state),"function"==typeof t&&(t=t(S({},e),this.props)),t&&S(e,t),null!=t&&this.__v&&(r&&this._sb.push(r),I(this))},j.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),I(this))},j.prototype.render=M,c=[],f="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,d=function(t,r){return t.__v.__b-r.__v.__b},z.__r=0,p=Math.random().toString(8),v="__d"+p,m="__a"+p,g=/(PointerCapture)$|Capture$/i,b=0,y=B(!1),w=B(!0),x=0;var J="$product_tours_activated",X="$product_tours_activated_session",tt={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},rt="product tour shown",et="$product_tour_id",nt="$product_tour_name",ot="$product_tour_iteration",it="$product_tour_step_id",at="$product_tour_step_order",lt="$product_tour_button_action",ut="$product_tour_button_link",st="$product_tour_button_tour_id",ct="$product_tour_step_selector",ht="exact",ft="icontains",dt=Object.prototype,pt=dt.hasOwnProperty,vt=dt.toString,mt=Array.isArray||function(t){return"[object Array]"===vt.call(t)},gt=t=>"function"==typeof t,bt=t=>void 0===t,yt=t=>"[object String]"==vt.call(t),wt=t=>null===t,xt=t=>bt(t)||wt(t),_t=t=>"[object Number]"==vt.call(t)&&t==t,kt=(t,r,e)=>{function n(n){for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;o>a;a++)i[a-1]=arguments[a];r((()=>{(0,e[n])(t,...i)}))}var o={debug(){for(var t=arguments.length,r=new Array(t),e=0;t>e;e++)r[e]=arguments[e];n("debug",...r)},info(){for(var t=arguments.length,r=new Array(t),e=0;t>e;e++)r[e]=arguments[e];n("log",...r)},warn(){for(var t=arguments.length,r=new Array(t),e=0;t>e;e++)r[e]=arguments[e];n("warn",...r)},error(){for(var t=arguments.length,r=new Array(t),e=0;t>e;e++)r[e]=arguments[e];n("error",...r)},critical(){for(var r=arguments.length,n=new Array(r),o=0;r>o;o++)n[o]=arguments[o];e.error(t,...n)},createLogger:n=>kt(t+" "+n,r,e)};return o},Tt="Mobile",Ct="Android",St="Tablet",At=Ct+" "+St,qt="iPad",Mt="Apple Watch",jt="BlackBerry",Lt="Nintendo",Et="PlayStation",It="Xbox",zt="Windows Phone",Ot="Nokia",Dt="Ouya",$t="Generic",Rt=$t+" "+Tt.toLowerCase(),Nt=$t+" "+St.toLowerCase(),Pt=new RegExp(It,"i"),Zt=new RegExp(Et+" \\w+","i"),Bt=new RegExp(Lt+" \\w+","i"),Ft=new RegExp(jt+"|PlayBook|BB10","i"),Ht="events",Vt="cancelEvents",Ut="tab",Qt="top_left",Wt="top_right",Yt="top_center",Gt="middle_left",Kt="middle_right",Jt="middle_center",Xt="left",tr="center",rr="right",er="widget",nr="$survey_id",or="$survey_questions",ir="$product_tour_id";function ar(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=Array(r);r>e;e++)n[e]=t[e];return n}function lr(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var n,o,i,a,l=[],u=!0,s=!1;try{if(i=(e=e.call(t)).next,0===r);else for(;!(u=(n=i.call(e)).done)&&(l.push(n.value),l.length!==r);u=!0);}catch(t){s=!0,o=t}finally{try{if(!u&&null!=e.return&&(a=e.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(t,r)||function(t,r){if(t){if("string"==typeof t)return ar(t,r);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?ar(t,r):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var ur=Object.entries,sr=Object.setPrototypeOf,cr=Object.isFrozen,hr=Object.getPrototypeOf,fr=Object.getOwnPropertyDescriptor,dr=Object.freeze,pr=Object.seal,vr=Object.create,mr="undefined"!=typeof Reflect&&Reflect,gr=mr.apply,br=mr.construct;dr||(dr=function(t){return t}),pr||(pr=function(t){return t}),gr||(gr=function(t,r){for(var e=arguments.length,n=new Array(e>2?e-2:0),o=2;e>o;o++)n[o-2]=arguments[o];return t.apply(r,n)}),br||(br=function(t){for(var r=arguments.length,e=new Array(r>1?r-1:0),n=1;r>n;n++)e[n-1]=arguments[n];return new t(...e)});var yr,wr=Pr([].forEach),xr=Pr([].lastIndexOf),_r=Pr([].pop),kr=Pr([].push),Tr=Pr([].splice),Cr=Array.isArray,Sr=Pr("".toLowerCase),Ar=Pr("".toString),qr=Pr("".match),Mr=Pr("".replace),jr=Pr("".indexOf),Lr=Pr("".trim),Er=Pr((0).toString),Ir=Pr(Boolean.prototype.toString),zr="undefined"==typeof BigInt?null:Pr(BigInt.prototype.toString),Or="undefined"==typeof Symbol?null:Pr(Symbol.prototype.toString),Dr=Pr({}.hasOwnProperty),$r=Pr({}.toString),Rr=Pr(/t/.test),Nr=(yr=TypeError,function(){for(var t=arguments.length,r=new Array(t),e=0;t>e;e++)r[e]=arguments[e];return br(yr,r)});function Pr(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;e>o;o++)n[o-1]=arguments[o];return gr(t,r,n)}}function Zr(t,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Sr;if(sr&&sr(t,null),!Cr(r))return t;for(var n=r.length;n--;){var o=r[n];if("string"==typeof o){var i=e(o);i!==o&&(cr(r)||(r[n]=i),o=i)}t[o]=!0}return t}function Br(t){for(var r=0;t.length>r;r++)Dr(t,r)||(t[r]=null);return t}function Fr(t){var r=vr(null);for(var e of ur(t)){var n=lr(e,2),o=n[0],i=n[1];Dr(t,o)&&(r[o]=Cr(i)?Br(i):i&&"object"==typeof i&&i.constructor===Object?Fr(i):i)}return r}function Hr(t,r){for(;null!==t;){var e=fr(t,r);if(e){if(e.get)return Pr(e.get);if("function"==typeof e.value)return Pr(e.value)}t=hr(t)}return function(){return null}}var Vr=dr(["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"]),Ur=dr(["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"]),Qr=dr(["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"]),Wr=dr(["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"]),Yr=dr(["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"]),Gr=dr(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Kr=dr(["#text"]),Jr=dr(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","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"]),Xr=dr(["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","dominant-baseline","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-orientation","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"]),te=dr(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","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"]),re=dr(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ee=pr(/{{[\w\W]*|^[\w\W]*}}/g),ne=pr(/<%[\w\W]*|^[\w\W]*%>/g),oe=pr(/\${[\w\W]*/g),ie=pr(/^data-[\-\w.\u00B7-\uFFFF]+$/),ae=pr(/^aria-[\-\w]+$/),le=pr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ue=pr(/^(?:\w+script|data):/i),se=pr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ce=pr(/^html$/i),he=pr(/^[a-z][.\w]*(-[.\w]+)+$/i),fe=pr(/<[/\w!]/g),de=pr(/<[/\w]/g),pe=pr(/<\/no(script|embed|frames)/i),ve=pr(/\/>/i),me=function(){return"undefined"==typeof window?null:window},ge=function(t,r,e,n){return Dr(t,r)&&Cr(t[r])?Zr(n.base?Fr(n.base):{},t[r],n.transform):e},be=function t(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:me(),e=r=>t(r);if(e.version="3.4.13",e.removed=[],!r||!r.document||9!==r.document.nodeType||!r.Element)return e.isSupported=!1,e;var n,o=r.document,i=o,a=i.currentScript,l=r.HTMLTemplateElement,u=r.Node,s=r.NodeFilter,c=r.DOMParser,h=r.trustedTypes,f=r.Element.prototype,d=Hr(f,"cloneNode"),p=Hr(f,"remove"),v=Hr(f,"nextSibling"),m=Hr(f,"childNodes"),g=Hr(f,"parentNode"),b=Hr(f,"shadowRoot"),y=Hr(f,"attributes"),w=u&&u.prototype?Hr(u.prototype,"nodeType"):null,x=u&&u.prototype?Hr(u.prototype,"nodeName"):null,_=u&&u.prototype?Hr(u.prototype,"ownerDocument"):null;if("function"==typeof l){var k=o.createElement("template");k.content&&k.content.ownerDocument&&(o=k.content.ownerDocument)}var T,C="",S=!1,A=0,q=function(){if(A>0)throw Nr('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},M=function(t){q(),A++;try{return n.createHTML(t)}finally{A--}},j=o.implementation,L=o.createNodeIterator,E=o.createDocumentFragment,I=o.getElementsByTagName,z=i.importNode,O={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};e.isSupported="function"==typeof ur&&"function"==typeof g&&j&&void 0!==j.createHTMLDocument;var D=ee,R=ne,N=oe,P=ie,Z=ae,B=ue,F=se,H=he,V=le,U=null,Q=Zr({},[...Vr,...Ur,...Qr,...Yr,...Kr]),W=null,Y=Zr({},[...Jr,...Xr,...te,...re]),G=Object.seal(vr(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}})),K=null,J=null,X=Object.seal(vr(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),tt=!0,rt=!0,et=!1,nt=!0,ot=!1,it=!0,at=!1,lt=!1,ut=null,st=null,ct=!1,ht=!1,ft=!1,dt=!1,pt=!0,vt=!1,mt="user-content-",gt=!0,bt=!1,yt={},wt=null,xt=Zr({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),_t=null,kt=Zr({},["audio","video","img","source","image","track"]),Tt=null,Ct=Zr({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),St="http://www.w3.org/1998/Math/MathML",At="http://www.w3.org/2000/svg",qt="http://www.w3.org/1999/xhtml",Mt=qt,jt=!1,Lt=null,Et=Zr({},[St,At,qt],Ar),It=dr(["mi","mo","mn","ms","mtext"]),zt=Zr({},It),Ot=dr(["annotation-xml"]),Dt=Zr({},Ot),$t=Zr({},["title","style","font","a","script"]),Rt=null,Nt=["application/xhtml+xml","text/html"],Pt=null,Zt=null,Bt=o.createElement("form"),Ft=function(t){return t instanceof RegExp||t instanceof Function},Ht=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Zt||Zt!==t){t&&"object"==typeof t||(t={}),t=Fr(t),Rt=-1===Nt.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,U=ge(t,"ALLOWED_TAGS",Q,{transform:Pt="application/xhtml+xml"===Rt?Ar:Sr}),W=ge(t,"ALLOWED_ATTR",Y,{transform:Pt}),Lt=ge(t,"ALLOWED_NAMESPACES",Et,{transform:Ar}),Tt=ge(t,"ADD_URI_SAFE_ATTR",Ct,{transform:Pt,base:Ct}),_t=ge(t,"ADD_DATA_URI_TAGS",kt,{transform:Pt,base:kt}),wt=ge(t,"FORBID_CONTENTS",xt,{transform:Pt}),K=ge(t,"FORBID_TAGS",Fr({}),{transform:Pt}),J=ge(t,"FORBID_ATTR",Fr({}),{transform:Pt}),yt=!!Dr(t,"USE_PROFILES")&&(t.USE_PROFILES&&"object"==typeof t.USE_PROFILES?Fr(t.USE_PROFILES):t.USE_PROFILES),tt=!1!==t.ALLOW_ARIA_ATTR,rt=!1!==t.ALLOW_DATA_ATTR,et=t.ALLOW_UNKNOWN_PROTOCOLS||!1,nt=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,ot=t.SAFE_FOR_TEMPLATES||!1,it=!1!==t.SAFE_FOR_XML,at=t.WHOLE_DOCUMENT||!1,ht=t.RETURN_DOM||!1,ft=t.RETURN_DOM_FRAGMENT||!1,dt=t.RETURN_TRUSTED_TYPE||!1,ct=t.FORCE_BODY||!1,pt=!1!==t.SANITIZE_DOM,vt=t.SANITIZE_NAMED_PROPS||!1,gt=!1!==t.KEEP_CONTENT,bt=t.IN_PLACE||!1,V=function(t){try{return Rr(t,""),!0}catch(t){return!1}}(t.ALLOWED_URI_REGEXP)?t.ALLOWED_URI_REGEXP:le,Mt="string"==typeof t.NAMESPACE?t.NAMESPACE:qt,zt=Dr(t,"MATHML_TEXT_INTEGRATION_POINTS")&&t.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof t.MATHML_TEXT_INTEGRATION_POINTS?Fr(t.MATHML_TEXT_INTEGRATION_POINTS):Zr({},It),Dt=Dr(t,"HTML_INTEGRATION_POINTS")&&t.HTML_INTEGRATION_POINTS&&"object"==typeof t.HTML_INTEGRATION_POINTS?Fr(t.HTML_INTEGRATION_POINTS):Zr({},Ot);var r=Dr(t,"CUSTOM_ELEMENT_HANDLING")&&t.CUSTOM_ELEMENT_HANDLING&&"object"==typeof t.CUSTOM_ELEMENT_HANDLING?Fr(t.CUSTOM_ELEMENT_HANDLING):vr(null);if(G=vr(null),Dr(r,"tagNameCheck")&&Ft(r.tagNameCheck)&&(G.tagNameCheck=r.tagNameCheck),Dr(r,"attributeNameCheck")&&Ft(r.attributeNameCheck)&&(G.attributeNameCheck=r.attributeNameCheck),Dr(r,"allowCustomizedBuiltInElements")&&"boolean"==typeof r.allowCustomizedBuiltInElements&&(G.allowCustomizedBuiltInElements=r.allowCustomizedBuiltInElements),pr(G),ot&&(rt=!1),ft&&(ht=!0),yt&&(U=Zr({},Kr),W=vr(null),!0===yt.html&&(Zr(U,Vr),Zr(W,Jr)),!0===yt.svg&&(Zr(U,Ur),Zr(W,Xr),Zr(W,re)),!0===yt.svgFilters&&(Zr(U,Qr),Zr(W,Xr),Zr(W,re)),!0===yt.mathMl&&(Zr(U,Yr),Zr(W,te),Zr(W,re))),X.tagCheck=null,X.attributeCheck=null,Dr(t,"ADD_TAGS")&&("function"==typeof t.ADD_TAGS?X.tagCheck=t.ADD_TAGS:Cr(t.ADD_TAGS)&&(U===Q&&(U=Fr(U)),Zr(U,t.ADD_TAGS,Pt))),Dr(t,"ADD_ATTR")&&("function"==typeof t.ADD_ATTR?X.attributeCheck=t.ADD_ATTR:Cr(t.ADD_ATTR)&&(W===Y&&(W=Fr(W)),Zr(W,t.ADD_ATTR,Pt))),Dr(t,"ADD_URI_SAFE_ATTR")&&Cr(t.ADD_URI_SAFE_ATTR)&&Zr(Tt,t.ADD_URI_SAFE_ATTR,Pt),Dr(t,"FORBID_CONTENTS")&&Cr(t.FORBID_CONTENTS)&&(wt===xt&&(wt=Fr(wt)),Zr(wt,t.FORBID_CONTENTS,Pt)),Dr(t,"ADD_FORBID_CONTENTS")&&Cr(t.ADD_FORBID_CONTENTS)&&(wt===xt&&(wt=Fr(wt)),Zr(wt,t.ADD_FORBID_CONTENTS,Pt)),gt&&(U["#text"]=!0),at&&Zr(U,["html","head","body"]),U.table&&(Zr(U,["tbody"]),delete K.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw Nr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw Nr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');var e=n;n=t.TRUSTED_TYPES_POLICY;try{C=M("")}catch(t){throw n=e,t}}else null===t.TRUSTED_TYPES_POLICY?(n=void 0,C=""):(void 0===n&&(S||(T=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}}(h,a),S=!0),n=T),n&&"string"==typeof C&&(C=M("")));dr&&dr(t),Zt=t}},Vt=Zr({},[...Ur,...Qr,...Wr]),Ut=Zr({},[...Yr,...Gr]),Qt=function(t){kr(e.removed,{element:t});try{g(t).removeChild(t)}catch(r){if(p(t),!g(t))throw Nr("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Wt=function(t){Kt(t);var r=m(t);if(r){var e=[];wr(r,(t=>{kr(e,t)})),wr(e,(t=>{try{p(t)}catch(t){}}))}var n=y(t);if(n)for(var o=n.length-1;o>=0;--o){var i=n[o],a=i&&i.name;if("string"==typeof a)try{t.removeAttribute(a)}catch(t){}}},Yt=function(t,r){try{kr(e.removed,{attribute:r.getAttributeNode(t),from:r})}catch(t){kr(e.removed,{attribute:null,from:r})}if(r.removeAttribute(t),"is"===t)if(ht||ft)try{Qt(r)}catch(t){}else try{r.setAttribute(t,"")}catch(t){}},Gt=function(t){var r=y(t);if(r)for(var e=r.length-1;e>=0;--e){var n=r[e],o=n&&n.name;if("string"==typeof o&&!W[Pt(o)])try{t.removeAttribute(o)}catch(t){}}},Kt=function(t){for(var r=[t];r.length>0;){var e=r.pop();1===(w?w(e):e.nodeType)&&Gt(e);var n=m(e);if(n)for(var o=n.length-1;o>=0;--o)r.push(n[o])}},Jt=function(t){var r=null,e=null;if(ct)t="<remove></remove>"+t;else{var i=qr(t,/^[\r\n\t ]+/);e=i&&i[0]}"application/xhtml+xml"===Rt&&Mt===qt&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");var a=n?M(t):t;if(Mt===qt)try{r=(new c).parseFromString(a,Rt)}catch(t){}if(!r||!r.documentElement){r=j.createDocument(Mt,"template",null);try{r.documentElement.innerHTML=jt?C:a}catch(t){}}var l=r.body||r.documentElement;return t&&e&&l.insertBefore(o.createTextNode(e),l.childNodes[0]||null),Mt===qt?I.call(r,at?"html":"body")[0]:at?r.documentElement:l},Xt=function(t){var r=_?_(t):t.ownerDocument;return L.call(r||t,t,s.SHOW_ELEMENT|s.SHOW_COMMENT|s.SHOW_TEXT|s.SHOW_PROCESSING_INSTRUCTION|s.SHOW_CDATA_SECTION,null)},tr=function(t){return t=Mr(t,D," "),t=Mr(t,R," "),Mr(t,N," ")},rr=function(t){var r;t.normalize();for(var e=_?_(t):t.ownerDocument,n=L.call(e||t,t,s.SHOW_TEXT|s.SHOW_COMMENT|s.SHOW_CDATA_SECTION|s.SHOW_PROCESSING_INSTRUCTION,null),o=n.nextNode();o;)o.data=tr(o.data),o=n.nextNode();var i=null===(r=t.querySelectorAll)||void 0===r?void 0:r.call(t,"template");i&&wr(i,(t=>{nr(t.content)&&rr(t.content)}))},er=function(t){var r=x?x(t):null;return"string"==typeof r&&"form"===Pt(r)&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||t.attributes!==y(t)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes||t.nodeType!==w(t)||t.childNodes!==m(t))},nr=function(t){if(!w||"object"!=typeof t||null===t)return!1;try{return 11===w(t)}catch(t){return!1}},or=function(t){if(!w||"object"!=typeof t||null===t)return!1;try{return"number"==typeof w(t)}catch(t){return!1}};function ir(t,r,n){0!==t.length&&wr(t,(t=>{t.call(e,r,n,Zt)}))}var ar=function(t,r,e,n){return 0===t.length?r:r===e||r===n?Fr(r):r},lr=function(t,r){if(ir(O.beforeSanitizeElements,t,null),t!==r&&null===g(t))return bt&&Kt(t),!0;if(er(t))return Qt(t),!0;var n=Pt(x?x(t):t.nodeName);if(U=ar(O.uponSanitizeElement,U,Q,ut),ir(O.uponSanitizeElement,t,{tagName:n,allowedTags:U}),t!==r&&null===g(t))return bt&&Kt(t),!0;if(function(t,r){return!!(it&&t.hasChildNodes()&&!or(t.firstElementChild)&&Rr(fe,t.textContent)&&Rr(fe,t.innerHTML))||!(!it||t.namespaceURI!==qt||"style"!==r||!or(t.firstElementChild))||7===t.nodeType||!(!it||8!==t.nodeType||!Rr(de,t.data))}(t,n))return Qt(t),!0;if(K[n]||!(X.tagCheck instanceof Function&&X.tagCheck(n))&&!U[n]){var o=function(t,r,e){if(!K[r]&&hr(r)){if(G.tagNameCheck instanceof RegExp&&Rr(G.tagNameCheck,r))return!1;if(G.tagNameCheck instanceof Function&&G.tagNameCheck(r))return!1}if(gt&&!wt[r]){var n=g(t),o=m(t);if(o&&n)for(var i=o.length-1;i>=0;--i){var a=t===e?d(o[i],!0):o[i];n.insertBefore(a,v(t))}}return Qt(t),!0}(t,n,r);return!1===o&&ir(O.afterSanitizeElements,t,null),o}if(1===(w?w(t):t.nodeType)&&!function(t){var r=g(t);r&&r.tagName||(r={namespaceURI:Mt,tagName:"template"});var e=Sr(t.tagName),n=Sr(r.tagName);return!!Lt[t.namespaceURI]&&(t.namespaceURI===At?function(t,r,e){return r.namespaceURI===qt?"svg"===t:r.namespaceURI===St?"svg"===t&&("annotation-xml"===e||zt[e]):Boolean(Vt[t])}(e,r,n):t.namespaceURI===St?function(t,r,e){return r.namespaceURI===qt?"math"===t:r.namespaceURI===At?"math"===t&&Dt[e]:Boolean(Ut[t])}(e,r,n):t.namespaceURI===qt?function(t,r,e){return!(r.namespaceURI===At&&!Dt[e])&&!(r.namespaceURI===St&&!zt[e])&&!Ut[t]&&($t[t]||!Vt[t])}(e,r,n):!("application/xhtml+xml"!==Rt||!Lt[t.namespaceURI]))}(t))return Qt(t),!0;if(("noscript"===n||"noembed"===n||"noframes"===n)&&Rr(pe,t.innerHTML))return Qt(t),!0;if(ot&&3===t.nodeType){var i=tr(t.textContent);t.textContent!==i&&(kr(e.removed,{element:t.cloneNode()}),t.textContent=i)}return ir(O.afterSanitizeElements,t,null),!1},sr=function(t,r,e){if(J[r])return!1;if(it&&"patchsrc"===r)return!1;if(it&&"for"===r&&"label"!==t&&"output"!==t)return!1;if(pt&&("id"===r||"name"===r)&&(e in o||e in Bt))return!1;var n=W[r]||X.attributeCheck instanceof Function&&X.attributeCheck(r,t);if(rt&&Rr(P,r));else if(tt&&Rr(Z,r));else if(n){if(Tt[r]);else if(Rr(V,Mr(e,F,"")));else if("src"!==r&&"xlink:href"!==r&&"href"!==r||"script"===t||0!==jr(e,"data:")||!_t[t])if(et&&!Rr(B,Mr(e,F,"")));else if(e)return!1}else if(!(hr(t)&&(G.tagNameCheck instanceof RegExp&&Rr(G.tagNameCheck,t)||G.tagNameCheck instanceof Function&&G.tagNameCheck(t))&&(G.attributeNameCheck instanceof RegExp&&Rr(G.attributeNameCheck,r)||G.attributeNameCheck instanceof Function&&G.attributeNameCheck(r,t))||"is"===r&&G.allowCustomizedBuiltInElements&&(G.tagNameCheck instanceof RegExp&&Rr(G.tagNameCheck,e)||G.tagNameCheck instanceof Function&&G.tagNameCheck(e))))return!1;return!0},cr=Zr({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),hr=function(t){return!cr[Sr(t)]&&Rr(H,t)},fr=function(t,r,e,o){if(n&&"object"==typeof h&&"function"==typeof h.getAttributeType&&!e)switch(h.getAttributeType(t,r)){case"TrustedHTML":return M(o);case"TrustedScriptURL":return function(t){q(),A++;try{return n.createScriptURL(t)}finally{A--}}(o)}return o},mr=function(t,r,n,o){try{n?t.setAttributeNS(n,r,o):t.setAttribute(r,o),er(t)?Qt(t):_r(e.removed)}catch(e){Yt(r,t)}},gr=function(t){ir(O.beforeSanitizeAttributes,t,null);var r=t.attributes;if(r&&!er(t)){for(var e={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:W=ar(O.uponSanitizeAttribute,W,Y,st),forceKeepAttr:void 0},n=r.length,o=Pt(t.nodeName);n--;){var i=r[n],a=i.name,l=i.namespaceURI,u=i.value,s=Pt(a),c=u,h="value"===a?c:Lr(c);e.attrName=s,e.attrValue=h,e.keepAttr=!0,e.forceKeepAttr=void 0,ir(O.uponSanitizeAttribute,t,e),h=e.attrValue,!vt||"id"!==s&&"name"!==s||0===jr(h,mt)||(Yt(a,t),h=mt+h),it&&Rr(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,h)||"attributename"===s&&qr(h,"href")?Yt(a,t):e.forceKeepAttr||(!e.keepAttr||!nt&&Rr(ve,h)?Yt(a,t):(ot&&(h=tr(h)),sr(o,s,h)?(h=fr(o,s,l,h))!==c&&mr(t,a,l,h):Yt(a,t)))}ir(O.afterSanitizeAttributes,t,null)}},br=function(t){var r=null,e=Xt(t);for(ir(O.beforeSanitizeShadowDOM,t,null);r=e.nextNode();)if(ir(O.uponSanitizeShadowNode,r,null),lr(r,t),gr(r),nr(r.content)&&br(r.content),1===(w?w(r):r.nodeType)){var n=b(r);nr(n)&&(yr(n),br(n))}ir(O.afterSanitizeShadowDOM,t,null)},yr=function(t){for(var r=[{node:t,shadow:null}];r.length>0;){var e=r.pop();if(e.shadow)br(e.shadow);else{var n=e.node,o=1===(w?w(n):n.nodeType),i=m(n);if(i)for(var a=i.length-1;a>=0;--a)r.push({node:i[a],shadow:null});if(o){var l=x?x(n):null;if("string"==typeof l&&"template"===Pt(l)){var u=n.content;nr(u)&&r.push({node:u,shadow:null})}}if(o){var s=b(n);nr(s)&&r.push({node:null,shadow:s},{node:s,shadow:null})}}}};return e.sanitize=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=null,a=null,l=null,u=null;if((jt=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!or(t)&&"string"!=typeof(t=function(t){switch(typeof t){case"string":return t;case"number":return Er(t);case"boolean":return Ir(t);case"bigint":return zr?zr(t):"0";case"symbol":return Or?Or(t):"Symbol()";case"undefined":default:return $r(t);case"function":case"object":if(null===t)return $r(t);var r=t,e=Hr(r,"toString");if("function"==typeof e){var n=e(r);return"string"==typeof n?n:$r(n)}return $r(t)}}(t)))throw Nr("dirty is not a string, aborting");if(!e.isSupported)return t;lt?(U=ut,W=st):Ht(r),(O.uponSanitizeElement.length>0||O.uponSanitizeAttribute.length>0)&&(U=Fr(U)),O.uponSanitizeAttribute.length>0&&(W=Fr(W)),e.removed=[];var s=bt&&"string"!=typeof t&&or(t);if(s){!function(t){if(it)for(var r=[t];r.length>0;){var e=r.pop(),n=w?w(e):e.nodeType;if(7===n||8===n&&Rr(de,e.data))try{p(e)}catch(t){}else{if(1===n){var o=e,i=Pt(x?x(e):e.nodeName);try{o.hasAttribute&&o.hasAttribute("patchsrc")&&o.removeAttribute("patchsrc"),o.hasAttribute&&o.hasAttribute("for")&&"label"!==i&&"output"!==i&&o.removeAttribute("for")}catch(t){}}var a=m(e);if(a)for(var l=a.length-1;l>=0;--l)r.push(a[l])}}}(t);var c=x?x(t):t.nodeName;if("string"==typeof c){var h=Pt(c);if(!U[h]||K[h])throw Wt(t),Nr("root node is forbidden and cannot be sanitized in-place")}if(er(t))throw Wt(t),Nr("root node is clobbered and cannot be sanitized in-place");try{yr(t)}catch(r){throw Wt(t),r}}else if(or(t))1===(a=(o=Jt("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?o=a:o.appendChild(a),yr(a);else{if(!ht&&!ot&&!at&&-1===t.indexOf("<"))return n&&dt?M(t):t;if(!(o=Jt(t)))return ht?null:dt?C:""}o&&ct&&Qt(o.firstChild);var f=s?t:o;try{for(var d=Xt(f);l=d.nextNode();)lr(l,f),gr(l),nr(l.content)&&br(l.content)}catch(r){throw s&&(Wt(t),wr(e.removed,(t=>{t.element&&Kt(t.element)}))),r}if(s)return wr(e.removed,(t=>{t.element&&Kt(t.element)})),ot&&rr(t),t;if(ht){if(ot&&rr(o),ft)for(u=E.call(o.ownerDocument);o.firstChild;)u.appendChild(o.firstChild);else u=o;return(W.shadowroot||W.shadowrootmode)&&(u=z.call(i,u,!0)),u}var v=at?o.outerHTML:o.innerHTML;return at&&U["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&Rr(ce,o.ownerDocument.doctype.name)&&(v="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+v),ot&&(v=tr(v)),n&&dt?M(v):v},e.setConfig=function(){Ht(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),lt=!0,ut=U,st=W},e.clearConfig=function(){Zt=null,lt=!1,ut=null,st=null,n=T,C=""},e.isValidAttribute=function(t,r,e){Zt||Ht({});var n=Pt(t),o=Pt(r);return sr(n,o,e)},e.addHook=function(t,r){"function"==typeof r&&Dr(O,t)&&kr(O[t],r)},e.removeHook=function(t,r){if(Dr(O,t)){if(void 0!==r){var e=xr(O[t],r);return-1===e?void 0:Tr(O[t],e,1)[0]}return _r(O[t])}},e.removeHooks=function(t){Dr(O,t)&&(O[t]=[])},e.removeAllHooks=function(){O={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},e}();function ye(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 we(t,r){var e=t.parentNode;return e&&e.host&&11===e.nodeType?e.host:e===r?null:e}var xe,_e,ke=r,Te=(void 0===xe&&(xe=t=>t()),kt("[Element Inference]",xe,(void 0===_e&&(_e=console),{log:_e.log.bind(_e),warn:_e.warn.bind(_e),error:_e.error.bind(_e),debug:_e.debug.bind(_e)})));function Ce(t,r){try{var e=r.get(t);if(!bt(e))return e;if(t.checkVisibility){var n=t.checkVisibility({checkOpacity:!0,checkVisibilityCSS:!0});return r.set(t,n),n}var o=ke.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 a=r.get(i);if(bt(a)){var l=ke.getComputedStyle(i),u="none"!==l.display&&"hidden"!==l.visibility;if(r.set(i,u),!u)return!1;i=i.parentElement}else{if(!a)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 Se(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*Ae(t,r,e){var n;try{n=function(t,r,e){return void 0===r&&(r=document),void 0===e&&(e=null),function(t,r,e,n){return void 0===n&&(n=null),t=function(t){function r(){n&&(a.length>0&&/^[~+>]$/.test(a[a.length-1])&&a.push(" "),a.push(n))}var e,n,o,i,a=[],l=[0],u=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=u,!(e=o.exec(t))){n=t.substr(u),r();break}if(i=u,(u=o.lastIndex)-e[0].length>i&&(n=t.substring(i,u-e[0].length)),3>l[l.length-1]){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])&&(a.length>0&&!c.test(a[a.length-1])&&0===l[l.length-1]&&a.push(" "),1===l[l.length-1]&&5===a.length&&"="===a[2].charAt(a[2].length-1)&&(a[4]=" "+a[4]),c.test(e[0])))continue;a.push(e[0])}else a[a.length-1]+=n,s.test(a[a.length-1])&&(4===l[l.length-1]&&(2>a.length||c.test(a[a.length-2])?a.pop():a[a.length-1]=" ",e[0]=""),l.pop()),a[a.length-1]+=e[0]}return a.join("").trim()}(t),e.querySelector(t),document.head.createShadowRoot||document.head.attachShadow?ye(t,",").reduce(((t,r)=>{var o=ye(r.replace(/^\s+/g,"").replace(/\s*([>+~]+)\s*/g,"$1")," ").filter((t=>!!t)).map((t=>ye(t,">"))),i=o.length-1,a=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;t.length>r;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,a=!1;i&&(h=i).nodeType!==Node.DOCUMENT_FRAGMENT_NODE&&h.nodeType!==Node.DOCUMENT_NODE;){var l=!0;if(1===t[o].length)l=i.matches(t[o]);else{var u=[].concat(t[o]).reverse(),s=i;for(var c of u){if(!s||!s.matches(c)){l=!1;break}s=we(s,e)}}if(l&&0===o){a=!0;break}l&&o--,i=we(i,e)}var h;return a}}(o,i,e);return t.concat(a.filter(l))}),[]):e.querySelectorAll(t)}(t,0,r,e)}(t)}catch(t){return}for(var o of n){var i=o;r&&!Se(i,r)||Ce(i,e)&&(yield i)}}function qe(t,r){var e=0;for(var n of t){if(e===r)return n;e++}return null}function Me(t){try{var r=JSON.parse(t.autoData);if(!mt(null==r?void 0:r.textGroups)||!mt(null==r?void 0:r.notextGroups))return Te.error("Invalid autoData structure:",r),null;var e=t.text,n=t.precision,o=void 0===n?1:n,i=null!=e&&!t.excludeText,a=(i?r.textGroups:r.notextGroups).sort(((t,r)=>t.cardinality-r.cardinality));if(0===a.length)return null;for(var l=Math.max(1,Math.ceil((1-o)*a.length)),u=new WeakMap,s=0;l>s;s++){var c=a[s],h=new Map,f=null,d=0;for(var p of c.cssSelectors){var v,m=p.offset,g=qe(Ae(p.css,i?e:null,u),m);if(g){var b=(null!==(v=h.get(g))&&void 0!==v?v: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 Te.error("Error finding element:",t),null}}var je=function(t,e){var n=(void 0===e?{}:e).debugEnabled,o={P(e){if(r&&(r.POSTHOG_DEBUG||n)&&!bt(r.console)&&r.console){for(var o=("__rrweb_original__"in r.console[e]?r.console[e].__rrweb_original__:r.console[e]),i=arguments.length,a=new Array(i>1?i-1:0),l=1;i>l;l++)a[l-1]=arguments[l];o(t,...a)}},debug(){for(var t=arguments.length,r=new Array(t),e=0;t>e;e++)r[e]=arguments[e];o.P("debug",...r)},info(){for(var t=arguments.length,r=new Array(t),e=0;t>e;e++)r[e]=arguments[e];o.P("log",...r)},warn(){for(var t=arguments.length,r=new Array(t),e=0;t>e;e++)r[e]=arguments[e];o.P("warn",...r)},error(){for(var t=arguments.length,r=new Array(t),e=0;t>e;e++)r[e]=arguments[e];o.P("error",...r)},critical(){for(var r=arguments.length,e=new Array(r),n=0;r>n;n++)e[n]=arguments[n];console.error(t,...e)},uninitializedWarning(t){o.error("You must initialize PostHog before calling "+t)},createLogger:(r,e)=>je(t+" "+r,e)};return o},Le=je("[PostHog.js]"),Ee=Le.createLogger,Ie=Ee("[Stylesheet Loader]"),ze=(t,r)=>{if(!(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}},Oe=t=>t.toLowerCase(),De={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=>ze(r,t))))),not_regex:(t,r)=>r.every((r=>t.every((t=>!ze(r,t))))),icontains:(t,r)=>r.map(Oe).some((r=>t.map(Oe).some((t=>r.includes(t))))),not_icontains:(t,r)=>r.map(Oe).every((r=>t.map(Oe).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)))}))};function $e(t,r){return!t||Object.entries(t).every((t=>{var e=t[1],n=null==r?void 0:r[t[0]];if(null==n)return!1;var o=De[e.operator];return!!o&&o(e.values,[String(n)])}))}function Re(t,r,e,n){var o=null!=n?n:{},i=o.capture,a=o.passive;null==t||t.addEventListener(r,e,{capture:void 0!==i&&i,passive:void 0===a||a})}Ee("[Surveys]"),Math.trunc||(Math.trunc=function(t){return 0>t?Math.ceil(t):Math.floor(t)}),Number.isInteger||(Number.isInteger=function(t){return _t(t)&&isFinite(t)&&Math.floor(t)===t}),r&&!bt(r.crypto)&&crypto;var Ne,Pe,Ze,Be,Fe=null,He={Xr(){if(!wt(Fe))return Fe;var t=!0;if(bt(r))t=!1;else try{var e="__mplssupport__";He.ei(e,"xyz"),'"xyz"'!==He.ti(e)&&(t=!1),He.ri(e)}catch(r){t=!1}return t||Le.error("localStorage unsupported; falling back to cookie store"),Fe=t,t},ii(t){Le.error("localStorage error: "+t)},ti(t){try{return null==r?void 0:r.localStorage.getItem(t)}catch(t){He.ii(t)}return null},ni(t){try{return JSON.parse(He.ti(t))||{}}catch(t){}return null},ei(t,e){try{return null==r||r.localStorage.setItem(t,JSON.stringify(e)),!0}catch(t){He.ii(t)}return!1},ri(t){try{null==r||r.localStorage.removeItem(t)}catch(t){He.ii(t)}}},Ve=null,Ue={Xr(){if(!wt(Ve))return Ve;if(Ve=!0,bt(r))Ve=!1;else try{var t="__support__";Ue.ei(t,"xyz"),'"xyz"'!==Ue.ti(t)&&(Ve=!1),Ue.ri(t)}catch(t){Ve=!1}return Ve},ii(t){Le.error("sessionStorage error: ",t)},ti(t){try{return null==r?void 0:r.sessionStorage.getItem(t)}catch(t){Ue.ii(t)}return null},ni(t){try{return JSON.parse(Ue.ti(t))||null}catch(t){}return null},ei(t,e){try{return null==r||r.sessionStorage.setItem(t,JSON.stringify(e)),!0}catch(t){Ue.ii(t)}return!1},ri(t){try{null==r||r.sessionStorage.removeItem(t)}catch(t){Ue.ii(t)}}},Qe=0,We=[],Ye=u,Ge=Ye.__b,Ke=Ye.__r,Je=Ye.diffed,Xe=Ye.__c,tn=Ye.unmount,rn=Ye.__;function en(t,r){Ye.__h&&Ye.__h(Pe,t,Qe||r),Qe=0;var e=Pe.__H||(Pe.__H={__:[],__h:[]});return t>=e.__.length&&e.__.push({}),e.__[t]}function nn(t){return Qe=1,function(t,r,e){var n=en(Ne++,2);if(n.t=t,!n.__c&&(n.__=[vn(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=Pe,!Pe.__f)){var o=function(t,r,e){if(!n.__c.__H)return!0;var o=!1,a=n.__c.props!==t;if(n.__c.__H.__.some((function(t){if(t.__N){o=!0;var r=t.__[0];t.__=t.__N,t.__N=void 0,r!==t.__[0]&&(a=!0)}})),i){var l=i.call(this,t,r,e);return o?l||a:l}return!o||a};Pe.__f=!0;var i=Pe.shouldComponentUpdate,a=Pe.componentWillUpdate;Pe.componentWillUpdate=function(t,r,e){if(this.__e){var n=i;i=void 0,o(t,r,e),i=n}a&&a.call(this,t,r,e)},Pe.shouldComponentUpdate=o}return n.__N||n.__}(vn,t)}function on(t,r){var e=en(Ne++,3);!Ye.__s&&pn(e.__H,r)&&(e.__=t,e.u=r,Pe.__H.__h.push(e))}function an(t,r){var e=en(Ne++,4);!Ye.__s&&pn(e.__H,r)&&(e.__=t,e.u=r,Pe.__h.push(e))}function ln(t){return Qe=5,un((function(){return{current:t}}),[])}function un(t,r){var e=en(Ne++,7);return pn(e.__H,r)&&(e.__=t(),e.__H=r,e.__h=t),e.__}function sn(){for(var t;t=We.shift();){var r=t.__H;if(t.__P&&r)try{r.__h.some(fn),r.__h.some(dn),r.__h=[]}catch(e){r.__h=[],Ye.__e(e,t.__v)}}}Ye.__b=function(t){Pe=null,Ge&&Ge(t)},Ye.__=function(t,r){t&&r.__k&&r.__k.__m&&(t.__m=r.__k.__m),rn&&rn(t,r)},Ye.__r=function(t){Ke&&Ke(t),Ne=0;var r=(Pe=t.__c).__H;r&&(Ze===Pe?(r.__h=[],Pe.__h=[],r.__.some((function(t){t.__N&&(t.__=t.__N),t.u=t.__N=void 0}))):(r.__h.length&&sn(),Ne=0)),Ze=Pe},Ye.diffed=function(t){Je&&Je(t);var r=t.__c;r&&r.__H&&(r.__H.__h.length&&(1!==We.push(r)&&Be===Ye.requestAnimationFrame||((Be=Ye.requestAnimationFrame)||hn)(sn)),r.__H.__.some((function(t){t.u&&(t.__H=t.u,t.u=void 0)}))),Ze=Pe=null},Ye.__c=function(t,r){r.some((function(t){try{t.__h.some(fn),t.__h=t.__h.filter((function(t){return!t.__||dn(t)}))}catch(e){r.some((function(t){t.__h&&(t.__h=[])})),r=[],Ye.__e(e,t.__v)}})),Xe&&Xe(t,r)},Ye.unmount=function(t){tn&&tn(t);var r,e=t.__c;e&&e.__H&&(e.__H.__.some((function(t){try{fn(t)}catch(t){r=t}})),e.__H=void 0,r&&Ye.__e(r,e.__v))};var cn="function"==typeof requestAnimationFrame;function hn(t){var r,e=function(){clearTimeout(n),cn&&cancelAnimationFrame(r),setTimeout(t)},n=setTimeout(e,35);cn&&(r=requestAnimationFrame(e))}function fn(t){var r=Pe,e=t.__c;"function"==typeof e&&(t.__c=void 0,e()),Pe=r}function dn(t){var r=Pe;t.__c=t.__(),Pe=r}function pn(t,r){return!t||t.length!==r.length||r.some((function(r,e){return r!==t[e]}))}function vn(t,r){return"function"==typeof r?r(t):r}var mn="#020617",gn={backgroundColor:"#eeeded"};function bn(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 yn(t){var r;void 0===t&&(t=gn.backgroundColor),"#"===t[0]&&(r=bn(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=bn(e)),!r)return mn;var n=r.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/);if(n){var o=parseInt(n[1]),i=parseInt(n[2]),a=parseInt(n[3]);return Math.sqrt(o*o*.299+i*i*.587+a*a*.114)>127.5?mn:"white"}return mn}!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,I(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"+x++,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(){},onPreviewBack(){},surveySubmissionId:"",properties:void 0,surveyLanguage:null});var wn="ph_product_tour_shown_",xn="ph_product_tour_completed_",_n="ph_product_tour_dismissed_",kn="ph_active_product_tour",Tn="ph_last_seen_tour_date_",Cn=Ee("[Product Tours]"),Sn=o,An=r;function qn(t){var r=((t,r,e)=>{var n=t.createElement("style");n.innerText=r;var o=(t=>{var r;return gt(t)?t:null==t||null==(r=t.config)?void 0:r.prepare_external_dependency_stylesheet})(e);return o&&(n=o(n)),n||(Ie.error("prepare_external_dependency_stylesheet returned null"),null)})(Sn,':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;text-decoration:none;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)}@keyframes ph-tour-banner-slide-in{0%{grid-template-rows:0fr}to{grid-template-rows:1fr}}.ph-tour-banner-wrapper{animation:ph-tour-banner-slide-in var(--ph-tour-banner-animation-duration,.3s) ease-out forwards;display:grid}.ph-tour-banner-slide{min-height:0;overflow:hidden}.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)}',t);return null==r||r.setAttribute("data-ph-product-tour-style","true"),r}function Mn(t){return t.useManualSelector?!!t.selector:!!t.inferenceData}function jn(t){var r;if(null!==(r=t.useManualSelector)&&void 0!==r&&r)return t.selector?function(t){try{var r=Sn.querySelectorAll(t);if(0===r.length)return{element:null,error:"not_found",matchCount:0};var e=r[0];return function(t){var r=An.getComputedStyle(t);if("none"===r.display||"hidden"===r.visibility||"0"===r.opacity)return!1;var e=t.getBoundingClientRect();return 0!==e.width&&0!==e.height}(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}}}(t.selector):{element:null,error:"not_found",matchCount:0};if(!t.inferenceData)return{element:null,error:"not_found",matchCount:0};var e=Me(t.inferenceData);return e?{element:e,error:null,matchCount:1}:{element:null,error:"not_found",matchCount:0}}var Ln=12,En=8;function In(t,r,e){var n=Math.max(En+r/2,Math.min(e-En-r/2,t));return{clamped:n,offset:t-n}}function zn(t,r){var e,n,o=a({},tt,r),i=t.style;i.setProperty("--ph-tour-background-color",o.backgroundColor),i.setProperty("--ph-tour-text-color",o.textColor),i.setProperty("--ph-tour-button-color",o.buttonColor),i.setProperty("--ph-tour-border-radius",o.borderRadius+"px"),i.setProperty("--ph-tour-button-border-radius",o.buttonBorderRadius+"px"),i.setProperty("--ph-tour-border-color",o.borderColor),i.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}(o.fontFamily)),i.setProperty("--ph-tour-text-secondary-color",(.6,(n=bn(e=o.textColor).match(/^rgb\((\d+),(\d+),(\d+)\)$/))?"rgba("+n[1]+", "+n[2]+", "+n[3]+", 0.6)":e)),i.setProperty("--ph-tour-branding-text-color",yn(o.backgroundColor)),i.setProperty("--ph-tour-button-text-color",yn(o.buttonColor)),i.setProperty("--ph-tour-box-shadow",o.boxShadow),i.setProperty("--ph-tour-overlay-color",o.showOverlay?"rgba(0, 0, 0, 0.5)":"transparent"),i.setProperty("--ph-tour-z-index",String(o.zIndex)),i.setProperty("--ph-tour-button-secondary-color","transparent"),i.setProperty("--ph-tour-button-secondary-text-color",o.textColor),i.setProperty("--ph-tour-max-width","320px"),i.setProperty("--ph-tour-padding","16px")}function On(t){var r;if(!t)return"";if("string"==typeof t)return $n(t);if("text"===t.type){var e=$n(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(On).join(""))||"";switch(t.type){case"doc":default:return o;case"paragraph":return"<p>"+o+"</p>";case"heading":var i,a=(null==(i=t.attrs)?void 0:i.level)||1;return"<h"+a+">"+o+"</h"+a+">";case"bulletList":return"<ul>"+o+"</ul>";case"orderedList":return"<ol>"+o+"</ol>";case"listItem":return"<li>"+o+"</li>";case"hardBreak":return"<br>"}}function Dn(t){return t.endsWith("/")?t.slice(0,-1):t}function $n(t){var r=Sn.createElement("div");return r.textContent=t,r.innerHTML}function Rn(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 Nn(t){return t.contentHtml?be.sanitize(t.contentHtml,{ADD_TAGS:["iframe"],ADD_ATTR:["allowfullscreen","frameborder","referrerpolicy"]}):On(t.content)}var Pn=0;function Zn(t,r,e,n,o,i){r||(r={});var a,l,s=r;if("ref"in s)for(l in s={},r)"ref"==l?a=r[l]:s[l]=r[l];var c={type:t,props:s,key:e,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Pn,__i:-1,__u:0,__source:o,__self:i};if("function"==typeof t&&(a=t.defaultProps))for(l in a)void 0===s[l]&&(s[l]=a[l]);return u.vnode&&u.vnode(c),c}var Bn=Zn("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Zn("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"})}),Fn=Zn("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Zn("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"})}),Hn=Zn("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Zn("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"})}),Vn=Zn("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Zn("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"})}),Un=Zn("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Zn("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"})});Zn("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 0 24 24",width:"48",children:Zn("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"})}),Zn("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 0 24 24",width:"48",children:Zn("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 Qn=function(t){var r={}.fill,e=void 0===r?"currentColor":r;return Zn("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:[Zn("title",{id:"close-survey-title",className:"adam-testing",children:"Close survey"}),Zn("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})]})},Wn=Zn("svg",{width:"77",height:"14",viewBox:"0 0 77 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Zn("g",{"clip-path":"url(#clip0_2415_6911)",children:[Zn("mask",{id:"mask0_2415_6911",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"77",height:"14",children:Zn("path",{d:"M0.5 0H76.5V14H0.5V0Z",fill:"white"})}),Zn("g",{mask:"url(#mask0_2415_6911)",children:[Zn("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"}),Zn("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"}),Zn("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"}),Zn("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"}),Zn("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"}),Zn("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"})]})]}),Zn("defs",{children:Zn("clipPath",{id:"clip0_2415_6911",children:Zn("rect",{width:"76",height:"14",fill:"white",transform:"translate(0.5)"})})})]});function Yn(t){var r=t.button,e=t.onClick,n=t.cursorStyle,o="ph-tour-button ph-tour-button--"+t.variant;return"link"===r.action&&r.link?Zn("a",{href:r.link,target:"_blank",rel:"noopener noreferrer",class:o,onClick:()=>e(r),children:r.text}):Zn("button",{class:o,onClick:()=>e(r),style:n,children:r.text})}function Gn(t){var r,e,n,o=t.step,i=t.appearance,a=t.stepIndex,l=t.totalSteps,u=t.onNext,s=t.onPrevious,c=t.onDismiss,h=t.onButtonClick,f=null!==(r=null==i?void 0:i.whiteLabel)&&void 0!==r&&r,d=a>=l-1,p=0===a,v=!(o.buttons||"button"!==o.progressionTrigger&&Mn(o)),m=!!o.buttons,g=!!(u||s||c||h),b=g?void 0:{cursor:"default"},y=!f&&p,w=t=>{h&&h(t)};return Zn(M,{children:[Zn("button",{class:"ph-tour-dismiss",onClick:c,"aria-label":"Close tour",style:b,children:Qn()}),Zn("div",{class:"ph-tour-content",dangerouslySetInnerHTML:{__html:Nn(o)}}),Zn("div",{class:"ph-tour-footer",children:[l>1&&Zn("span",{class:"ph-tour-progress",children:[a+1," of ",l]}),Zn("div",{class:"ph-tour-buttons",children:[v&&Zn(M,{children:[!p&&Zn("button",{class:"ph-tour-button ph-tour-button--secondary",onClick:s,style:b,children:"Back"}),Zn("button",{class:"ph-tour-button ph-tour-button--primary",onClick:u,style:b,children:d?"Done":"Next"})]}),m&&Zn(M,{children:[(null==(e=o.buttons)?void 0:e.secondary)&&Zn(Yn,{button:o.buttons.secondary,variant:"secondary",onClick:w,cursorStyle:b}),(null==(n=o.buttons)?void 0:n.primary)&&Zn(Yn,{button:o.buttons.primary,variant:"primary",onClick:w,cursorStyle:b})]})]})]}),y&&Zn("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 ",Wn]})]})}Zn("svg",{width:"16",height:"12",viewBox:"0 0 16 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Zn("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 Kn=[Hn,Fn,Bn],Jn=[Vn,Hn,Fn,Bn,Un];function Xn(t){var r=t.value,e=t.onChange,n=t.onSubmit,o=t.isInteractive,i=ln(null);return on((()=>{o&&setTimeout((()=>{var t;return null==(t=i.current)?void 0:t.focus()}),100)}),[o]),Zn("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 to(t){var r=t.survey,e=t.onSubmit,n=t.isInteractive,o=nn(null),i=o[0],a=o[1],l=r.scale||5,u=t=>{n&&(a(t),null==e||e(t))};if("emoji"===(r.display||"emoji"))return Zn("div",{class:"ph-tour-survey-rating-container",children:[Zn("div",{class:"ph-tour-survey-rating-emoji",children:(3===l?Kn:Jn).map(((t,r)=>{var e=r+1;return Zn("button",{type:"button",class:"ph-tour-survey-emoji-button "+(i===e?"ph-tour-survey-emoji-button--active":""),onClick:()=>u(e),style:n?void 0:{cursor:"default"},"aria-label":"Rate "+e,children:t},r)}))}),(r.lowerBoundLabel||r.upperBoundLabel)&&Zn("div",{class:"ph-tour-survey-rating-labels",children:[Zn("span",{children:r.lowerBoundLabel}),Zn("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 Zn("div",{class:"ph-tour-survey-rating-container",children:[Zn("div",{class:"ph-tour-survey-rating-numbers",style:{gridTemplateColumns:"repeat("+s.length+", minmax(0, 1fr))"},children:s.map((t=>Zn("button",{type:"button",class:"ph-tour-survey-number-button "+(i===t?"ph-tour-survey-number-button--active":""),onClick:()=>u(t),style:n?void 0:{cursor:"default"},"aria-label":"Rate "+t,children:t},t)))}),(r.lowerBoundLabel||r.upperBoundLabel)&&Zn("div",{class:"ph-tour-survey-rating-labels",children:[Zn("span",{children:r.lowerBoundLabel}),Zn("span",{children:r.upperBoundLabel})]})]})}function ro(t){var r,e=t.step,n=t.appearance,o=t.stepIndex,i=t.totalSteps,a=t.onPrevious,l=t.onSubmit,u=t.onDismiss,s=nn(""),c=s[0],h=s[1],f=e.survey,d=null!==(r=null==n?void 0:n.whiteLabel)&&void 0!==r&&r,p=0===o,v="open"===(null==f?void 0:f.type),m=!!(a||l||u),g=m?void 0:{cursor:"default"},b=()=>{null==l||l(c.trim()||null)};return f?Zn(M,{children:[Zn("button",{class:"ph-tour-dismiss",onClick:u,"aria-label":"Close survey",style:g,children:Qn()}),Zn("div",{class:"ph-tour-survey-question",children:f.questionText}),v?Zn(Xn,{value:c,onChange:h,onSubmit:b,isInteractive:m}):Zn(to,{survey:f,onSubmit:l,isInteractive:m}),Zn("div",{class:"ph-tour-footer",children:[Zn("span",{class:"ph-tour-progress",children:[o+1," of ",i]}),Zn("div",{class:"ph-tour-buttons",children:[!p&&Zn("button",{class:"ph-tour-button ph-tour-button--secondary",onClick:a,style:g,children:f.backButtonText||"Back"}),v&&Zn("button",{class:"ph-tour-button ph-tour-button--primary",onClick:b,style:g,children:f.submitButtonText||"Submit"})]})]}),!d&&Zn("a",{href:m?"https://posthog.com/product-tours":void 0,target:m?"_blank":void 0,rel:m?"noopener noreferrer":void 0,class:"ph-tour-branding",style:m?void 0:{cursor:"default",pointerEvents:"none"},children:["Survey by ",Wn]})]}):Zn("div",{})}var eo=r;function no(t){return{top:"bottom",bottom:"top",left:"right",right:"left"}[t]}function oo(t){var r,e=t.tour,n=t.step,o=t.stepIndex,i=t.totalSteps,l=t.targetElement,u=t.onNext,s=t.onPrevious,c=t.onDismiss,h=t.onSurveySubmit,f=t.onButtonClick,d=nn("entering"),p=d[0],v=d[1],m=nn(null),g=m[0],b=m[1],y=nn(null),w=y[0],x=y[1],_=nn(!1),k=_[0],T=_[1],C=nn(n),S=C[0],A=C[1],q=nn(o),M=q[0],j=q[1],L=ln(null),E=ln(o),I=ln(!1),z=ln(l),O=!Mn(S)||"survey"===S.type;an((()=>{z.current=l}),[l]);var D=function(t,r){return Qe=8,un((function(){return t}),[])}((()=>{var t=z.current;if(t&&L.current){var r=L.current.getBoundingClientRect(),e={width:r.width,height:r.height},n=t.getBoundingClientRect();b(function(t,r){var e=An.innerWidth,n=An.innerHeight,o=r.width,i=r.height,a=t.top,l=n-t.bottom,u=t.left,s=t.top+t.height/2,c=t.left+t.width/2;if(e-t.right>=o+Ln){var h=t.right+Ln,f=In(s,i,n);return{position:"right",top:f.clamped,left:h,arrowOffset:f.offset}}if(u>=o+Ln){var d=e-t.left+Ln,p=In(s,i,n);return{position:"left",top:p.clamped,right:d,arrowOffset:p.offset}}if(a>=i+Ln&&i+Ln>l){var v=n-t.top+Ln,m=In(c,o,e);return{position:"top",bottom:v,left:m.clamped,arrowOffset:m.offset}}var g=t.bottom+Ln,b=In(c,o,e);return{position:"bottom",top:g,left:b.clamped,arrowOffset:b.offset}}(n,e)),x(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)),T(!0)}}));an((()=>{!O&&!k&&L.current&&l&&D()}),[O,k,l,D]),on((()=>{var t=o,r=()=>{E.current===t&&(v("visible"),I.current=!1)},e=()=>{z.current&&Mn(n)&&(z.current.isConnected||(z.current=jn(n).element),z.current)?function(t,r){var e=t.getBoundingClientRect(),n=eo.innerHeight,o=eo.innerWidth,i=n/6,a=o/6;if(i>e.top||e.bottom>n-i||a>e.left||e.right>o-a){t.scrollIntoView({behavior:"smooth",block:"center"});var l=e.top,u=0,s=!1,c=()=>{if(!s){var e=t.getBoundingClientRect();if(1>Math.abs(e.top-l)){if(++u>=3)return s=!0,void r()}else u=0;l=e.top,setTimeout(c,50)}};setTimeout(c,30),setTimeout((()=>{s||(s=!0,r())}),500)}else r()}(z.current,(()=>{E.current===t&&(D(),setTimeout(r,50))})):setTimeout(r,50)};if(E.current===o)return E.current=o,I.current=!0,void e();E.current=o,I.current=!0,v("exiting"),setTimeout((()=>{E.current===t&&(Mn(n)&&(b(null),x(null),T(!1)),A(n),j(o),v("entering"),e())}),150)}),[l,o,n,D]),on((()=>{if("visible"===p&&!O){var t=()=>{I.current||D()};return Re(eo,"scroll",t,{capture:!0}),Re(eo,"resize",t),()=>{null==eo||eo.removeEventListener("scroll",t,!0),null==eo||eo.removeEventListener("resize",t)}}}),[D,p,O]),on((()=>{var t=t=>{"Escape"===t.key&&c("escape_key")};return Re(eo,"keydown",t),()=>{null==eo||eo.removeEventListener("keydown",t)}}),[c]);var R,N,P="visible"===p,Z="survey"===S.type,B=O||k,F=a({},S.maxWidth&&{width:"min("+S.maxWidth+"px, calc(100vw - 16px))",maxWidth:"min("+S.maxWidth+"px, calc(100vw - 16px))"},O?a({},{top:"auto",right:"auto",bottom:"auto",left:"auto",transform:"none"},(N=function(t,r,e){switch(void 0===r&&(r=rr),r){case Qt:return{top:"0",left:"0",transform:"translate(30px, 30px)"};case Wt:return{top:"0",right:"0",transform:"translate(-30px, 30px)"};case Yt:return{top:"0",left:"50%",transform:"translate(-50%, 30px)"};case Gt:return{top:"50%",left:"0",transform:"translate(30px, -50%)"};case Kt:return{top:"50%",right:"0",transform:"translate(-30px, -50%)"};case Jt:return{top:"50%",left:"50%",transform:"translate(-50%, -50%)"};case Xt:return{left:"30px"};case tr:return{left:"50%",transform:"translateX(-50%)"};default:return{right:void 0===er&&void 0===Ut?"60px":"30px"}}}(0,null!==(R=S.modalPosition)&&void 0!==R?R:"middle_center"),"top"in N||"bottom"in N?N:a({},N,{bottom:"30px"}))):(()=>{if(!g)return{};var t="left"===g.position||"right"===g.position;return{top:bt(g.top)?"auto":g.top+"px",bottom:bt(g.bottom)?"auto":g.bottom+"px",left:bt(g.left)?"auto":g.left+"px",right:bt(g.right)?"auto":g.right+"px",transform:t?"translateY(-50%)":"translateX(-50%)"}})());return Zn("div",{class:"ph-tour-container",children:[!1!==(null==(r=e.appearance)?void 0:r.dismissOnClickOutside)&&Zn("div",{class:"ph-tour-click-overlay",onClick(t){t.stopPropagation(),c("user_clicked_outside")}}),Zn("div",{class:"ph-tour-modal-overlay",style:{opacity:O&&P?1:0,transition:"opacity 150ms ease-out",pointerEvents:"none"}}),Zn("div",{class:"ph-tour-spotlight",style:a({},P&&B&&w?w:{top:"50%",left:"50%",width:"0px",height:"0px"},{opacity:!O&&P&&B?1:0,transition:"opacity 150ms ease-out"},"click"===S.progressionTrigger&&!O&&{pointerEvents:"auto",cursor:"pointer"}),onClick:"click"!==S.progressionTrigger||O?void 0:t=>{t.stopPropagation(),z.current&&z.current.click(),u()}}),Zn("div",{ref:L,class:"ph-tour-tooltip "+(O?"ph-tour-tooltip--modal":"")+" "+(Z?"ph-tour-survey-step":""),style:a({},F,{opacity:P&&B?1:0,transition:"opacity 150ms ease-out"}),onClick(t){t.stopPropagation()},children:[!O&&g&&Zn("div",{class:"ph-tour-arrow ph-tour-arrow--"+no(g.position),style:0!==g.arrowOffset?{"--ph-tour-arrow-offset":g.arrowOffset+"px"}:void 0}),Z?Zn(ro,{step:S,appearance:e.appearance,stepIndex:M,totalSteps:i,onSubmit:h,onPrevious:s,onDismiss:()=>c("user_clicked_skip")}):Zn(Gn,{step:S,appearance:e.appearance,stepIndex:M,totalSteps:i,onNext:u,onPrevious:s,onDismiss:()=>c("user_clicked_skip"),onButtonClick:f})]})]})}function io(t){return Zn("a",{class:t.class,href:t.href,target:"_blank",rel:"noopener noreferrer",onClick:t.onClick,children:t.children})}function ao(t){var r=t.onClick;return Zn("div",{class:t.class,role:"button",tabIndex:0,onClick:r,onKeyDown(t){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),r())},style:{cursor:"pointer"},children:t.children})}function lo(t){return Zn("div",{class:t.class,children:t.children})}function uo(t){return Zn("div",{class:"ph-tour-banner-wrapper",children:Zn("div",{class:"ph-tour-banner-slide",children:Zn(so,a({},t))})})}function so(t){var r,e=t.step,n=t.onDismiss,o=t.onActionClick,i=null!==(r=e.bannerConfig)&&void 0!==r?r:{behavior:"sticky"},a=i.action,l="always"!==t.displayFrequency,u=["ph-tour-banner","sticky"===i.behavior&&"ph-tour-banner--sticky","custom"===i.behavior&&"ph-tour-banner--custom"].filter(Boolean).join(" "),s=Zn(M,{children:[Zn("div",{class:"ph-tour-banner-content",dangerouslySetInnerHTML:{__html:Nn(e)}}),l&&Zn("button",{class:"ph-tour-banner-dismiss",onClick(t){t.stopPropagation(),t.preventDefault(),n()},"aria-label":"Close banner",children:Qn()})]});return"link"===(null==a?void 0:a.type)&&a.link?Zn(io,{class:u,href:a.link,onClick:o,children:s}):"trigger_tour"===(null==a?void 0:a.type)&&o?Zn(ao,{class:u,onClick:o,children:s}):Zn(lo,{class:u,children:s})}function co(t){var r,e;return!(null==(r=t.conditions)||!r.events||0>=(null==(e=t.conditions.events.values)?void 0:e.length))}function ho(t){var r,e;return!(null==(r=t.conditions)||!r.actions||0>=(null==(e=t.conditions.actions.values)?void 0:e.length))}class fo{on(t,r){return this._o[t]||(this._o[t]=[]),this._o[t].push(r),()=>{this._o[t]=this._o[t].filter((t=>t!==r))}}emit(t,r){for(var e of this._o[t]||[])e(r);for(var n of this._o["*"]||[])n(t,r)}constructor(){this._o={}}}function po(t,r,e){if(xt(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 vo{constructor(t){this.yu=new Set,this.bu=new Set,this._u=new fo,this.wu=(t,r)=>this.ku(t,r)&&this.Su(t,r)&&this.xu(t,r)&&this.Cu(t,r),this.ku=(t,r)=>null==r||!r.event||(null==t?void 0:t.event)===(null==r?void 0:r.event),this._instance=t}init(){var t,r;bt(null==(t=this._instance)?void 0:t._addCaptureHook)||(this.Tu=null==(r=this._instance)?void 0:r._addCaptureHook(((t,r)=>{this.on(t,r)})))}dispose(){var t;null==(t=this.Tu)||t.call(this),this.Tu=void 0,this._u=new fo}register(t){var r,e;if(!bt(null==(r=this._instance)?void 0:r._addCaptureHook)&&(t.forEach((t=>{var r;this.yu.add(t),null==(r=t.steps)||r.forEach((t=>{this.bu.add((null==t?void 0:t.event)||"")}))})),null!=(e=this._instance)&&e.autocapture)){var n=new Set;this.yu.forEach((t=>{var r;null==(r=t.steps)||r.forEach((t=>{null!=t&&t.selector&&n.add(t.selector)}))})),this._instance.autocapture.setElementSelectors(n)}}replace(t){this.yu.clear(),this.bu.clear(),this.register(t)}on(t,r){null!=r&&0!=t.length&&(this.bu.has(t)||this.bu.has(r.event))&&this.yu.forEach((t=>{this.Mu(r,t)&&this._u.emit("actionCaptured",t.name)}))}Eu(t){this.onAction("actionCaptured",(r=>t(r)))}Mu(t,r){if(null==(null==r?void 0:r.steps))return!1;for(var e of r.steps)if(this.wu(t,e))return!0;return!1}onAction(t,r){return this._u.on(t,r)}Su(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(!po(n,r.url,r.url_matching||"contains"))return!1}return!0}xu(t,r){return!!this.Iu(t,r)&&!!this.Ru(t,r)&&!!this.Pu(t,r)}Iu(t,r){var e;if(null==r||!r.href)return!0;var n=this.Au(t);if(n.length>0)return n.some((t=>po(t.href,r.href,r.href_matching||"exact")));var o,i=(null==t||null==(e=t.properties)?void 0:e.$elements_chain)||"";return!!i&&po((o=i.match(/(?::|")href="(.*?)"/))?o[1]:"",r.href,r.href_matching||"exact")}Ru(t,r){var e;if(null==r||!r.text)return!0;var n=this.Au(t);if(n.length>0)return n.some((t=>po(t.text,r.text,r.text_matching||"exact")||po(t.$el_text,r.text,r.text_matching||"exact")));var o,i,a,l=(null==t||null==(e=t.properties)?void 0:e.$elements_chain)||"";return!!l&&(o=function(t){for(var r,e=[],n=/(?::|")text="(.*?)"/g;!xt(r=n.exec(t));)e.includes(r[1])||e.push(r[1]);return e}(l),i=r.text,a=r.text_matching||"exact",o.some((t=>po(t,i,a))))}Pu(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}Au(t){var r;return null==(null==t||null==(r=t.properties)?void 0:r.$elements)?[]:null==t?void 0:t.properties.$elements}Cu(t,r){return null==r||!r.properties||0===r.properties.length||$e(r.properties.reduce(((t,r)=>{var e=mt(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 mo{constructor(t){var r;this.Fu=[],this._instance=t,this.Ou=new Map,this.Lu=new Map,this.Du=new Map,this.$u=null==(r=this._instance)||null==r.onSessionId?void 0:r.onSessionId((t=>this.Nu(t)))}qu(t){return!1}ju(){return null}Bu(t){}Hu(){}zu(t,r){return!!t&&$e(t.propertyFilters,null==r?void 0:r.properties)}Uu(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}Wu(t,r,e){var n=(e===Ht?this.Ou:this.Lu).get(t),o=[];return this.Vu((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.zu(i,r)}))}register(t){this.Gu(t,!1)}replace(t){this.Gu(t,!0)}Gu(t,r){var e;bt(null==(e=this._instance)?void 0:e._addCaptureHook)||(this.Zu(t,r),this.Qu(t,r))}Qu(t,r){var e=t.filter((t=>{var r;return null==(r=t.conditions)||null==(r=r.actions)||null==(r=r.values)?void 0:r.length}));if(r&&this.Du.clear(),0!==e.length){this.Ju||(this.Ju=new vo(this._instance),this.Ju.init(),this.Ju.Eu((t=>this.onAction(t))));var n=[];e.forEach((t=>{var r;null==(r=t.conditions)||null==(r=r.actions)||r.values.forEach((r=>{if(n.push(r),r.name){var e,o=null!==(e=this.Du.get(r.name))&&void 0!==e?e:[];o.includes(t.id)||o.push(t.id),this.Du.set(r.name,o)}}))})),r?this.Ju.replace(n):this.Ju.register(n)}else{var o;r&&(null==(o=this.Ju)||o.replace([]))}}Ku(t,r){r.forEach(((r,e)=>{var n,o=null!==(n=t.get(e))&&void 0!==n?n:[];r.forEach((t=>{o.includes(t)||o.push(t)})),t.set(e,o)}))}Zu(t,r){var e,n,o=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})),i=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})),a=this.Uu(t,Ht),l=this.Uu(t,Vt);r?(this.Ou=a,this.Lu=l):(this.Ku(this.Ou,a),this.Ku(this.Lu,l)),(0!==o.length||0!==i.length)&&(null!==(e=this.Tu)&&void 0!==e||(this.Tu=null==(n=this._instance)?void 0:n._addCaptureHook(((t,r)=>{this.onEvent(t,r)}))))}onEvent(t,r){var e,n,o=this.Yu(),i=(null==r||null==(e=r.properties)?void 0:e.$survey_id)||(null==r||null==(n=r.properties)?void 0:n.$product_tour_id);if(i&&this.getActivatedIds().includes(i)){var a=this.Xu(t,i);if("consume"===a)return o.info("event consumed activated item, removing it",{event:t,itemId:i}),void this.th([i]);if("persist"===a)return o.info("shown item promoted to persisted activation",{event:t,itemId:i}),this.eh(i),void this.ih([i])}if(this.Lu.has(t)){var l=this.Wu(t,r,Vt);l.length>0&&(o.info("cancel event matched, cancelling items",{event:t,itemsToCancel:l.map((t=>t.id))}),this.th(l.map((t=>t.id))),l.forEach((t=>this.rh(t.id))))}if(this.Ou.has(t)){o.info("event name matched",{event:t,eventPayload:r,items:this.Ou.get(t)});var u=this.Wu(t,r,Ht);this.nh(u.map((t=>t.id)))}}onAction(t){this.Du.has(t)&&this.nh(this.Du.get(t)||[])}nh(t){var r;if(0!==t.length){var e=!(null==(r=this._instance)||null==r.get_session_id||!r.get_session_id()),n=[];for(var o of t)e&&this.qu(o)?this.eh(o)&&this.sh(o):n.push(o);n.length>0&&(this.Fu=[...new Set([...this.Fu,...n])]),this.Yu().info("updating activated items",{activatedItems:this.getActivatedIds()})}}eh(t){this.Fu=this.Fu.filter((r=>r!==t));var r=this.ah();return!r.includes(t)&&(this.oh([...r,t]),this.lh(),!0)}th(t){var r=new Set(t);this.Fu=this.Fu.filter((t=>!r.has(t)));var e=this.uh(),n=e.filter((t=>!r.has(t)));n.length!==e.length&&(this.oh(n),0===n.length&&this.hh()),this.ih(t)}dh(){var t,r=this.ju();if(!r)return{};var e=null==(t=this._instance)||null==(t=t.persistence)?void 0:t.props[r];return e&&"object"==typeof e?e:{}}sh(t){if(this.ju()){var r=this.dh();this.Bu(a({},r,{[t]:Date.now()}))}}ih(t){if(this.ju()){var r=this.dh(),e={},n=!1;for(var o of Object.entries(r)){var i=o[0],a=o[1];t.includes(i)?n=!0:e[i]=a}n&&((t=>{if((t=>t===Object(t)&&!mt(t))(t)){for(var r in t)if(pt.call(t,r))return!1;return!0}return!1})(e)?this.Hu():this.Bu(e))}}fh(){this.ju()&&this.Hu()}getActivationTimestamp(t){if(this.ah().includes(t)){var r=this.dh()[t];return _t(r)?r:void 0}}uh(){var t,r=this.ph();return(null==(t=this._instance)||null==(t=t.persistence)?void 0:t.props[r])||[]}ah(){var t,r,e=this.uh();if(0===e.length)return[];var n=null==(t=this._instance)||null==(t=t.persistence)?void 0:t.props[this.gh()],o=null==(r=this._instance)||null==r.get_session_id?void 0:r.get_session_id();return o&&n===o?e:[]}lh(){var t,r=null==(t=this._instance)||null==t.get_session_id?void 0:t.get_session_id();r&&this.mh(r)}hh(){this.yh()}Nu(t){var r,e=null==(r=this._instance)||null==(r=r.persistence)?void 0:r.props[this.gh()];if(e&&e!==t){var n=this.uh(),o=this.dh();n.length>0&&(this.oh([]),n.filter((t=>_t(o[t]))).forEach((t=>this.rh(t)))),this.hh(),this.fh()}}getActivatedIds(){return[...new Set([...this.ah(),...this.Fu])].filter((t=>!this.bh(t)))}dispose(){var t,r,e;null==(t=this.$u)||t.call(this),this.$u=void 0,null==(r=this.Tu)||r.call(this),this.Tu=void 0,null==(e=this.Ju)||e.dispose(),this.Ju=void 0}reset(){this.Fu=[],this.uh().length>0&&this.oh([]),this.hh(),this.fh()}getEventToItemsMap(){return this.Ou}_h(){return this.Ju}}var go=Ee("[Product Tour Event Receiver]");class bo extends mo{constructor(t){super(t)}ph(){return J}gh(){return X}wh(){return rt}Vu(t){var r;null==(r=this._instance)||null==(r=r.productTours)||r.getProductTours(t)}rh(t){var r;null==(r=this._instance)||null==(r=r.productTours)||r.cancelPendingTour(t)}Yu(){return go}oh(t){var r;null==(r=this._instance)||null==(r=r.persistence)||r.register({[J]:t})}mh(t){var r;null==(r=this._instance)||null==(r=r.persistence)||r.register({[X]:t})}yh(){var t;null==(t=this._instance)||null==(t=t.persistence)||t.unregister(X)}bh(t){if(!t)return!0;var r=""+_n+t;return!(!He.ti(""+xn+t)&&!He.ti(r))}Xu(t){return t===this.wh()?"consume":"ignore"}getTours(){return this.getActivatedIds()}}var yo,wo=Ee("[Product Tours]"),xo=o,_o=r,ko=new Map;function To(t){var r=new Date;return(!t.start_date||new Date(t.start_date)<=r)&&(!t.end_date||r<=new Date(t.end_date))}function Co(t,e){var o;return To(t)&&function(t,e){var n=t.conditions;if(null==n||!n.url)return!0;var o=function(t){var e,n=null==r||null==(e=r.location)?void 0:e.href;return bt(n)?void 0:function(t,r){var e,n=null==t||null==(e=t.config)?void 0:e.get_current_url;if(!gt(n))return r;try{var o=n(r);return yt(o)&&o?o:r}catch(t){return Le.error("Error in get_current_url, falling back to window.location.href",t),r}}(t,n)}(e);if(!o)return!1;o!==yo&&(ko.clear(),yo=o);var i=ko.get(t.id);if(!bt(i))return i;var a,l=n.urlMatchType||ft;return a=l===ht?Dn(o)===Dn(n.url):De[l]([n.url],[o]),ko.set(t.id,a),a}(t,e)&&function(t,e){var o,a,l;if(!t||0===t.length)return!0;if(!i)return!1;var u,s,c,h,f,d,p=(u={userAgentDataPlatform:null==n||null==(o=n.userAgentData)?void 0:o.platform,maxTouchPoints:null==n?void 0:n.maxTouchPoints,screenWidth:null==r||null==(a=r.screen)?void 0:a.width,screenHeight:null==r||null==(l=r.screen)?void 0:l.height,devicePixelRatio:null==r?void 0:r.devicePixelRatio},(d=function(t){return Bt.test(t)?Lt:Zt.test(t)?Et:Pt.test(t)?It:new RegExp(Dt,"i").test(t)?Dt:new RegExp("("+zt+"|WPDesktop)","i").test(t)?zt:/iPad/.test(t)?qt:/iPod/.test(t)?"iPod Touch":/iPhone/.test(t)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(t)?Mt:Ft.test(t)?jt:/(kobo)\s(ereader|touch)/i.test(t)?"Kobo":new RegExp(Ot,"i").test(t)?Ot:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(t)||/(kf[a-z]+)( bui|\)).+silk\//i.test(t)?"Kindle Fire":/(Android|ZTE)/i.test(t)?new RegExp(Tt).test(t)&&!/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(t)||/pixel[\daxl ]{1,6}/i.test(t)&&!/pixel c/i.test(t)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(t)||/lmy47v/i.test(t)&&!/QTAQZ3/i.test(t)?Ct:At:new RegExp("(pda|"+Tt+")","i").test(t)?Rt:new RegExp(St,"i").test(t)&&!new RegExp(St+" pc","i").test(t)?Nt:""}(i))===qt||d===At||"Kobo"===d||"Kindle Fire"===d||d===Nt?St:d===Lt||d===It||d===Et||d===Dt?"Console":d===Mt?"Wearable":d?Tt:"Android"===(null==u?void 0:u.userAgentDataPlatform)&&(null!==(s=null==u?void 0:u.maxTouchPoints)&&void 0!==s?s:0)>0?600>Math.min(null!==(c=null==u?void 0:u.screenWidth)&&void 0!==c?c:0,null!==(h=null==u?void 0:u.screenHeight)&&void 0!==h?h:0)/(null!==(f=null==u?void 0:u.devicePixelRatio)&&void 0!==f?f:1)?Tt:St:"Desktop");return De.icontains(t,[p])}(null==(o=t.conditions)?void 0:o.deviceTypes)}var So="ph-product-tour-container",Ao="data-ph-tour-trigger";class qo{constructor(t){var r=this;this.mp=null,this.gp=0,this.bp=!1,this.yp=!1,this.wp=null,this.xp=new Map,this._p=new Map,this.kp=new Set,this.Tp=new Set,this.Cp=()=>{xo.hidden&&this.wp?(clearInterval(this.wp),this.wp=null):xo.hidden||this.wp||(this.wp=setInterval((()=>{this.Sp()}),1e3),this.Sp())},this.nextStep=()=>{this.mp&&(this.js("product tour step completed",{[et]:this.mp.id,[it]:this.mp.steps[this.gp].id,[at]:this.gp}),this.mp.steps.length-1>this.gp?(this.Ap(this.gp+1),this.qp()):this.Mp())},this.previousStep=()=>{this.mp&&0!==this.gp&&(this.Ap(this.gp-1),this.qp())},this.dismissTour=function(t){void 0===t&&(t="user_clicked_skip"),r.mp&&(r.js("product tour dismissed",{[et]:r.mp.id,[it]:r.mp.steps[r.gp].id,[at]:r.gp,$product_tour_dismiss_reason:t}),r.bp||(He.ei(""+_n+r.mp.id,!0),r._instance.capture("$set",{$set:{["$product_tour_dismissed/"+r.mp.id]:!0}})),_o.dispatchEvent(new CustomEvent("PHProductTourDismissed",{detail:{tourId:r.mp.id,reason:t}})),r.jp())},this.Lp=()=>{var t;if(this.mp){var r=this.Ep();if(r){var e=null==(t=r.bannerConfig)?void 0:t.action;this.js("product tour banner action clicked",{[et]:this.mp.id,[nt]:this.mp.name,[ot]:this.mp.current_iteration||1,[it]:r.id,[at]:this.gp,[lt]:null==e?void 0:e.type,[ut]:null==e?void 0:e.link,[st]:null==e?void 0:e.tourId}),"trigger_tour"===(null==e?void 0:e.type)&&e.tourId&&(this.jp(),this.showTourById(e.tourId))}}},this.Ip=t=>{if(this.mp){var r=this.mp.steps[this.gp];r&&this.js("product tour button clicked",a({[et]:this.mp.id,[nt]:this.mp.name,[ot]:this.mp.current_iteration||1,[it]:r.id,[at]:this.gp,$product_tour_button_text:t.text,[lt]:t.action},t.link&&{[ut]:t.link},t.tourId&&{[st]: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.Mp();break;case"trigger_tour":t.tourId&&(this.Mp(),this.showTourById(t.tourId))}},this._instance=t,this.zp=new bo(t)}Op(t){var r=t.filter((t=>!t.disable_image_preload)).flatMap((t=>t.steps.flatMap(Rn)));for(var e of r)this.Tp.has(e)||(this.Tp.add(e),(new Image).src=e)}Ep(){var t;if(!this.mp)return null;var r=this.mp.steps[this.gp];if(!r)return null;var e=null!==(t=this._instance.config.override_display_language)&&void 0!==t?t:navigator.language||navigator.userLanguage;return function(t,r){var e;if(!r||!t.translations)return t;var n=t.translations,o=null!==(e=n[r])&&void 0!==e?e:n[r.split("-")[0]];if(!o)return Cn.info('No matching translation for "'+r+'" in step '+t.id+", using default"),t;var i=a({},t);return bt(o.content)||(i.content=o.content),bt(o.contentHtml)||(i.contentHtml=o.contentHtml),o.buttons&&i.buttons&&(i.buttons={primary:i.buttons.primary&&a({},i.buttons.primary,o.buttons.primary),secondary:i.buttons.secondary&&a({},i.buttons.secondary,o.buttons.secondary)}),o.survey&&i.survey&&(i.survey=a({},i.survey,o.survey)),i}(r,null!=e?e:null)}Ap(t){this.gp=t,this.Dp()}Dp(){this.mp&&!this.bp&&Ue.ei(kn,{tourId:this.mp.id,stepIndex:this.gp})}$p(){Ue.ri(kn)}Rp(){var t=Ue.ti(kn);if(!t)return null;try{return JSON.parse(t)}catch(t){return null}}start(){if(!this.wp){var t=this.Rp();t?this.Np(t.tourId,t.stepIndex,(()=>{this.Pp()})):this.Pp()}}Pp(){this.wp=setInterval((()=>{this.Sp()}),1e3),this.Sp(!0),Re(xo,"visibilitychange",this.Cp)}Np(t,r,e){var n;null==(n=this._instance.productTours)||n.getProductTours((n=>{var o=n.find((r=>r.id===t));o?(this.mp=o,this.gp=r,this.yp=!0,this.qp()):n.length>0&&this.$p(),e()}))}stop(){this.wp&&(clearInterval(this.wp),this.wp=null),xo.removeEventListener("visibilitychange",this.Cp),this.Zp(),this.Bp(),this.jp()}Sp(t){var r;null!=xo&&xo.getElementById("__POSTHOG_TOOLBAR__")||null==(r=this._instance.productTours)||r.getProductTours((t=>{if(0!==t.length){this.Op(t);var r=new Set,e=t.filter((t=>!this.kp.has(t.id)&&(co(t)||ho(t))));e.length>0&&(this.zp.register(e),e.forEach((t=>this.kp.add(t.id))));var n=this.mp?[]:this.zp.getTours();for(var o of t){var i,a=null==(i=o.conditions)?void 0:i.selector;if(a&&(r.add(o.id),this.Fp(o,a)),!this.mp){var l=ho(o)||co(o);if(o.auto_launch&&this.Hp(o)){if(!l){this.Vp(o,"auto");continue}n.includes(o.id)&&this.Vp(o,"event")}}}this.xp.forEach((t=>{var e=t.tour;r.has(e.id)||this.Up(e.id)}))}else this.Zp()}),t)}Vp(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})}Hp(t){var r,e,n;if(!Co(t,this._instance))return wo.info("Tour "+t.id+" failed conditions check"),!1;var o,i,a=null!==(r=t.display_frequency)&&void 0!==r?r:"until_interacted",l=""+wn+t.id,u=""+xn+t.id,s=""+_n+t.id;switch(a){case"show_once":if(He.ti(l))return wo.info("Tour "+t.id+" already shown (show_once frequency)"),!1;break;case"until_interacted":if(He.ti(u)||He.ti(s))return wo.info("Tour "+t.id+" already completed or dismissed"),!1}if(!function(t){if(!t)return!0;var r=t.days,e=t.types;if(!r||!e||0===e.length)return!0;var n=null;for(var o of e){var i=He.ti(""+Tn+o);if(i)try{var a=JSON.parse(i),l=new Date(a);isNaN(l.getTime())||n&&n>=l||(n=l)}catch(t){}}return!n||function(t,r){if(!t||!r)return!0;var e="string"==typeof r?new Date(r):r,n=new Date,o=Math.abs(n.getTime()-e.getTime());return Math.ceil(o/864e5)>t}(r,n)}(null==(e=t.conditions)?void 0:e.seenTourWaitPeriod))return wo.info("Cannot show tour "+t.id+": user has seen a "+(null==(o=t.conditions)||null==(o=o.seenTourWaitPeriod)?void 0:o.types)+" tour within the last "+(null==(i=t.conditions)||null==(i=i.seenTourWaitPeriod)?void 0:i.days)+" days."),!1;if(!this.Qp({flagKey:t.internal_targeting_flag_key}))return wo.info("Tour "+t.id+" failed feature flag check: "+t.internal_targeting_flag_key),!1;var c=null==(n=t.conditions)?void 0:n.linkedFlagVariant;return!!this.Qp({flagKey:t.linked_flag_key,flagVariant:c})||(wo.info("Tour "+t.id+" failed feature flag check: "+t.linked_flag_key+", variant: "+c),!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.mp=t,this.Ap(0);var o=this.qp();return o?(this.js(rt,{[et]:t.id,[nt]:t.name,[ot]:t.current_iteration||1,$product_tour_render_reason:n,$product_tour_type:t.tour_type}),this.bp||(He.ei(""+wn+t.id,!0),He.ei(""+Tn+t.tour_type,(new Date).toISOString()),this._instance.capture("$set",{$set:{["$product_tour_shown/"+t.id]:!0}}))):this.jp(),o}showTourById(t,r){var e;wo.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"}):wo.warn("could not find tour",t)}))}previewTour(t){wo.info("Previewing tour "+t.id),this.jp(),this.bp=!0,this.mp=t,this.gp=0,this.qp()}Mp(){this.mp&&(this.js("product tour completed",{[et]:this.mp.id,$product_tour_steps_count:this.mp.steps.length}),this.bp||(He.ei(""+xn+this.mp.id,!0),this._instance.capture("$set",{$set:{["$product_tour_completed/"+this.mp.id]:!0}})),_o.dispatchEvent(new CustomEvent("PHProductTourCompleted",{detail:{tourId:this.mp.id}})),this.jp())}qp(t){var r;if(void 0===t&&(t=0),!this.mp)return!1;var e=this.Ep();if(!e)return wo.warn("Step "+this.gp+" not found in tour "+this.mp.id),this.jp(),!1;if("banner"===e.type)return this.Wp(),this.yp=!1,this.Yp(),!0;if("survey"===e.type)return e.survey?(this.Gp(),!0):(wo.warn("Unable to render survey step - survey data not found"),!1);if(!Mn(e))return this.Wp(),this.yp=!1,this.Kp(null),!0;var n=jn(e),o={$use_manual_selector:null!==(r=e.useManualSelector)&&void 0!==r&&r,$inference_data_present:!!e.inferenceData},i=this.gp>0?this.mp.steps[this.gp-1]:null,l="click"===(null==i?void 0:i.progressionTrigger)||this.yp;if("not_found"===n.error||"not_visible"===n.error){if(l&&20>t)return setTimeout((()=>{this.qp(t+1)}),100),!1;var u=100*t;return this.Jp(n,a({$product_tour_waited_for_element:l,$product_tour_wait_duration_ms:u},o)),0!==this.gp||this.yp?(wo.warn('Tour "'+this.mp.name+'" dismissed: element for step '+this.gp+" became unavailable ("+n.error+")"+(l?" after waiting "+u+"ms":"")),this.dismissTour("element_unavailable"),!1):(wo.warn('Tour "'+this.mp.name+'" failed to show: element for first step not found ('+n.error+")"),!1)}if("multiple_matches"===n.error&&this.Jp(n,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.Wp(a({[ct]: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.yp=!1,this.Kp(s),!0}Kp(t,r,e){if(this.mp){var n=this.Ep();if(n){var o=function(t,r){var e=So+"-"+t.id,n=xo.querySelector("."+e);if(n&&n.shadowRoot)return{shadow:n.shadowRoot,isNewlyCreated:!1};var o=xo.createElement("div");o.className=e,zn(o,t.appearance);var i=o.attachShadow({mode:"open"}),a=qn(r);return a&&i.appendChild(a),xo.body.appendChild(o),{shadow:i,isNewlyCreated:!0}}(this.mp,this._instance),i=o.shadow;K(Zn(oo,{tour:this.mp,step:n,stepIndex:this.gp,totalSteps:this.mp.steps.length,targetElement:t,onNext:this.nextStep,onPrevious:this.previousStep,onDismiss:e||this.dismissTour,onSurveySubmit:r,onButtonClick:this.Ip}),i)}}}Yp(){if(this.mp){var t=this.Ep();if(t){var r,e=function(t,r,e){var n,o=So+"-"+t.id,i=xo.querySelector("."+o);if(i&&i.shadowRoot)return{shadow:i.shadowRoot,isNewlyCreated:!1};var a=xo.createElement("div");a.className=o,zn(a,t.appearance),bt(null==e||null==(n=e.animation)?void 0:n.duration)||a.style.setProperty("--ph-tour-banner-animation-duration",e.animation.duration+"ms");var l=a.attachShadow({mode:"open"}),u=qn(r);if(u&&l.appendChild(u),"custom"===(null==e?void 0:e.behavior)&&e.selector){var s=xo.querySelector(e.selector);if(!s)return wo.warn("Custom banner container not found: "+e.selector+". Banner will not be displayed."),null;s.appendChild(a)}else xo.body.insertBefore(a,xo.body.firstChild);return{shadow:l,isNewlyCreated:!0}}(this.mp,this._instance,t.bannerConfig);if(!e)return this.js("product tour banner container selector failed",{[et]:this.mp.id,$product_tour_banner_selector:null==t||null==(r=t.bannerConfig)?void 0:r.selector}),void this.dismissTour("container_unavailable");var n=e.shadow;K(Zn(uo,{step:t,onDismiss:()=>this.dismissTour("user_clicked_skip"),onActionClick:this.Lp,displayFrequency:this.mp.display_frequency}),n)}}}Gp(){var t,r,e;if(this.mp){var n=this.mp.id,o=this.Ep();if(o){var i=o.linkedSurveyId,l=o.linkedSurveyQuestionId,u=(null==(t=o.survey)?void 0:t.questionText)||"";this.Wp({$product_tour_linked_survey_id:i}),this.js("survey shown",{[nr]:i,[ir]:n,sessionRecordingUrl:null==(r=(e=this._instance).get_session_replay_url)?void 0:r.call(e)}),this.Kp(null,(t=>{var r,e,o=l?"$survey_response_"+l:"$survey_response";this.js("survey sent",a({[nr]:i,[ir]:n,[or]:[{id:l,question:u,response:t}],$survey_completed:!0,sessionRecordingUrl:null==(r=(e=this._instance).get_session_replay_url)?void 0:r.call(e)},!wt(t)&&{[o]:t})),wo.info("Survey "+i+" completed",wt(t)?"(skipped)":"with response: "+t),this.nextStep()}),(t=>{var r,e;this.js("survey dismissed",{[nr]:i,[ir]:n,[or]:[{id:l,question:u,response:null}],$survey_partially_completed:!1,sessionRecordingUrl:null==(r=(e=this._instance).get_session_replay_url)?void 0:r.call(e)}),wo.info("Survey "+i+" dismissed"),this.dismissTour(t)})),wo.info("Rendered survey step for tour step "+this.gp)}}}Qp(t){var r,e=t.flagKey,n=t.flagVariant;if(!e)return!0;var o,i=!(null==(r=this._instance.featureFlags)||!r.isFeatureEnabled(e,{send_event:!e.startsWith("product-tour-targeting-")})),a=!0;return n&&(a=(null==(o=this._instance.featureFlags)?void 0:o.getFeatureFlag(e,{send_event:!1}))===n||"any"===n),i&&a}jp(){var t;this.mp&&(null!=(t=xo.querySelector("."+So+"-"+this.mp.id))&&t.shadowRoot&&K(null,t.shadowRoot),null==t||t.remove()),this.mp=null,this.gp=0,this.bp=!1,this.yp=!1,this.$p()}Fp(t,r){var e=xo.querySelector(r),n=this.xp.get(t.id);if(e){if(n){if(e===n.element)return;wo.info("Trigger element changed for tour "+t.id+". Re-attaching listener."),this.Up(t.id)}if(!e.hasAttribute(Ao)){var o=e=>{var n;if(this.mp)wo.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 wo.warn("Tour "+t.id+" no longer exists. Removing stale listener."),void this.Up(t.id);To(o)?(wo.info("Tour "+t.id+" triggered by click on "+r),this.showTour(o,{reason:"trigger"})?e.preventDefault():wo.info("Tour "+t.id+" failed to show; not intercepting click.")):wo.warn("Tour "+t.id+" trigger clicked, but tour is not launched - not showing tour.")}};Re(e,"click",o),e.setAttribute(Ao,t.id),this.xp.set(t.id,{element:e,listener:o,tour:t}),wo.info("Attached trigger listener for tour "+t.id+" on "+r)}}else n&&this.Up(t.id)}Up(t){var r=this.xp.get(t);r&&(r.element.removeEventListener("click",r.listener),r.element.removeAttribute(Ao),this.xp.delete(t),wo.info("Removed trigger listener for tour "+t))}Zp(){this.xp.forEach(((t,r)=>{this.Up(r)}))}js(t,r){this.bp||this._instance.capture(t,r)}Wp(t){if(this.mp){var r=this.mp.steps[this.gp];this.js("product tour step shown",a({[et]:this.mp.id,[it]:r.id,[at]:this.gp,$product_tour_step_type:r.type},t))}}Jp(t,r){if(this.mp){var e=this.mp.steps[this.gp];this.js("product tour step selector failed",a({[et]:this.mp.id,[it]:e.id,[at]:this.gp,[ct]:e.selector,$product_tour_error:t.error,$product_tour_matches_count:t.matchCount,$product_tour_failure_phase:"runtime"},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.Hp(t)));t(n,e)}else t([],e)}))}resetTour(t){He.ri(""+wn+t),He.ri(""+xn+t),He.ri(""+_n+t)}resetAllTours(){var t=null==_o?void 0:_o.localStorage;if(t){for(var r=[],e=0;t.length>e;e++){var n=t.key(e);(null!=n&&n.startsWith(wn)||null!=n&&n.startsWith(xn)||null!=n&&n.startsWith(_n)||null!=n&&n.startsWith(Tn))&&r.push(n)}r.forEach((t=>He.ri(t)))}}cancelPendingTour(t){var r=this._p.get(t);r&&(clearTimeout(r),this._p.delete(t),wo.info("Cancelled pending tour: "+t))}Bp(){this._p.forEach((t=>clearTimeout(t))),this._p.clear()}isTourPending(t){return this._p.has(t)}queueTourWithDelay(t,r,e){wo.info("Queueing tour "+t+" with "+r+"s delay");var n=setTimeout((()=>{this._p.delete(t),wo.info("Delay elapsed for tour "+t+", showing now"),this.showTourById(t,e)}),1e3*r);this._p.set(t,n)}}function Mo(t,r){if(o){var e=new qo(t);return r&&e.start(),e}}var jo="undefined"!=typeof globalThis?globalThis:r;jo&&"undefined"==typeof self&&(jo.self=jo),jo&&"undefined"==typeof File&&(jo.File=function(){});var Lo=null!=r?r:{};Lo.__PosthogExtensions__=Lo.__PosthogExtensions__||{},Lo.__PosthogExtensions__.generateProductTours=Mo,t.default=Mo,t.elementIsVisible=Ce,t.findElement=Me,t.getElementPath=function(t,r){if(void 0===r&&(r=4),!t)return null;for(var e=[],n=t;n&&r>e.length&&"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})}({});
|
|
2
2
|
//# sourceMappingURL=product-tours.js.map
|