posthog-js 1.321.2 → 1.321.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/array.full.es5.js +1 -1
- package/dist/array.full.js +1 -1
- package/dist/array.full.no-external.js +1 -1
- package/dist/array.js +1 -1
- package/dist/array.no-external.js +1 -1
- package/dist/customizations.full.js +1 -1
- package/dist/lazy-recorder.js +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/module.d.ts +1 -0
- package/dist/module.full.d.ts +1 -0
- package/dist/module.full.js +1 -1
- package/dist/module.full.js.map +1 -1
- package/dist/module.full.no-external.d.ts +1 -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.js.map +1 -1
- package/dist/module.no-external.d.ts +1 -0
- package/dist/module.no-external.js +1 -1
- package/dist/module.no-external.js.map +1 -1
- package/dist/posthog-recorder.js +1 -1
- package/dist/product-tours-preview.d.ts +1 -0
- package/dist/product-tours-preview.js +1 -1
- package/dist/product-tours-preview.js.map +1 -1
- package/dist/product-tours.js +1 -1
- package/dist/product-tours.js.map +1 -1
- package/dist/src/extensions/product-tours/product-tours-utils.d.ts +9 -3
- package/dist/src/posthog-product-tours-types.d.ts +1 -0
- package/dist/surveys-preview.d.ts +1 -0
- package/lib/package.json +1 -1
- package/lib/src/extensions/product-tours/components/ProductTourTooltip.js +37 -14
- package/lib/src/extensions/product-tours/components/ProductTourTooltip.js.map +1 -1
- package/lib/src/extensions/product-tours/product-tours-utils.d.ts +9 -3
- package/lib/src/extensions/product-tours/product-tours-utils.js +13 -24
- package/lib/src/extensions/product-tours/product-tours-utils.js.map +1 -1
- package/lib/src/posthog-product-tours-types.d.ts +1 -0
- package/lib/src/posthog-product-tours-types.js +1 -0
- package/lib/src/posthog-product-tours-types.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
function t(){return t=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var o in r)({}).hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},t.apply(null,arguments)}var e,r,o,n,i,a,l,u,s,c,f,p,d={},h=[],m=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,b=Array.isArray;function g(t,e){for(var r in e)t[r]=e[r];return t}function v(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function y(t,e,n,i,a){var l={type:t,props:e,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==a?++o:a,__i:-1,__u:0};return null==a&&null!=r.vnode&&r.vnode(l),l}function x(t){return t.children}function w(t,e){this.props=t,this.context=e}function k(t,e){if(null==e)return t.__?k(t.__,t.__i+1):null;for(var r;e<t.__k.length;e++)if(null!=(r=t.__k[e])&&null!=r.__e)return r.__e;return"function"==typeof t.type?k(t):null}function C(t){var e,r;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(r=t.__k[e])&&null!=r.__e){t.__e=t.__c.base=r.__e;break}return C(t)}}function T(t){(!t.__d&&(t.__d=!0)&&n.push(t)&&!$.__r++||i!=r.debounceRendering)&&((i=r.debounceRendering)||a)($)}function $(){for(var t,e,o,i,a,u,s,c=1;n.length;)n.length>c&&n.sort(l),t=n.shift(),c=n.length,t.__d&&(o=void 0,i=void 0,a=(i=(e=t).__v).__e,u=[],s=[],e.__P&&((o=g({},i)).__v=i.__v+1,r.vnode&&r.vnode(o),j(e.__P,o,i,e.__n,e.__P.namespaceURI,32&i.__u?[a]:null,u,null==a?k(i):a,!!(32&i.__u),s),o.__v=i.__v,o.__.__k[o.__i]=o,E(u,o,s),i.__e=i.__=null,o.__e!=a&&C(o)));$.__r=0}function _(t,e,r,o,n,i,a,l,u,s,c){var f,p,m,g,v,w,C,T=o&&o.__k||h,_=e.length;for(u=function(t,e,r,o,n){var i,a,l,u,s,c=r.length,f=c,p=0;for(t.__k=new Array(n),i=0;i<n;i++)null!=(a=e[i])&&"boolean"!=typeof a&&"function"!=typeof a?("string"==typeof a||"number"==typeof a||"bigint"==typeof a||a.constructor==String?a=t.__k[i]=y(null,a,null,null,null):b(a)?a=t.__k[i]=y(x,{children:a},null,null,null):void 0===a.constructor&&a.__b>0?a=t.__k[i]=y(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):t.__k[i]=a,u=i+p,a.__=t,a.__b=t.__b+1,l=null,-1!=(s=a.__i=S(a,r,u,f))&&(f--,(l=r[s])&&(l.__u|=2)),null==l||null==l.__v?(-1==s&&(n>c?p--:n<c&&p++),"function"!=typeof a.type&&(a.__u|=4)):s!=u&&(s==u-1?p--:s==u+1?p++:(s>u?p--:p++,a.__u|=4))):t.__k[i]=null;if(f)for(i=0;i<c;i++)null!=(l=r[i])&&0==(2&l.__u)&&(l.__e==o&&(o=k(l)),D(l,l));return o}(r,e,T,u,_),f=0;f<_;f++)null!=(m=r.__k[f])&&(p=-1==m.__i?d:T[m.__i]||d,m.__i=f,w=j(t,m,p,n,i,a,l,u,s,c),g=m.__e,m.ref&&p.ref!=m.ref&&(p.ref&&R(p.ref,null,m),c.push(m.ref,m.__c||g,m)),null==v&&null!=g&&(v=g),(C=!!(4&m.__u))||p.__k===m.__k?u=q(m,u,t,C):"function"==typeof m.type&&void 0!==w?u=w:g&&(u=g.nextSibling),m.__u&=-7);return r.__e=v,u}function q(t,e,r,o){var n,i;if("function"==typeof t.type){for(n=t.__k,i=0;n&&i<n.length;i++)n[i]&&(n[i].__=t,e=q(n[i],e,r,o));return e}t.__e!=e&&(o&&(e&&t.type&&!e.parentNode&&(e=k(t)),r.insertBefore(t.__e,e||null)),e=t.__e);do{e=e&&e.nextSibling}while(null!=e&&8==e.nodeType);return e}function S(t,e,r,o){var n,i,a,l=t.key,u=t.type,s=e[r],c=null!=s&&0==(2&s.__u);if(null===s&&null==l||c&&l==s.key&&u==s.type)return r;if(o>(c?1:0))for(n=r-1,i=r+1;n>=0||i<e.length;)if(null!=(s=e[a=n>=0?n--:i++])&&0==(2&s.__u)&&l==s.key&&u==s.type)return a;return-1}function L(t,e,r){"-"==e[0]?t.setProperty(e,null==r?"":r):t[e]=null==r?"":"number"!=typeof r||m.test(e)?r:r+"px"}function M(t,e,r,o,n){var i,a;t:if("style"==e)if("string"==typeof r)t.style.cssText=r;else{if("string"==typeof o&&(t.style.cssText=o=""),o)for(e in o)r&&e in r||L(t.style,e,"");if(r)for(e in r)o&&r[e]==o[e]||L(t.style,e,r[e])}else if("o"==e[0]&&"n"==e[1])i=e!=(e=e.replace(u,"$1")),a=e.toLowerCase(),e=a in t||"onFocusOut"==e||"onFocusIn"==e?a.slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=r,r?o?r.u=o.u:(r.u=s,t.addEventListener(e,i?f:c,i)):t.removeEventListener(e,i?f:c,i);else{if("http://www.w3.org/2000/svg"==n)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=e&&"height"!=e&&"href"!=e&&"list"!=e&&"form"!=e&&"tabIndex"!=e&&"download"!=e&&"rowSpan"!=e&&"colSpan"!=e&&"role"!=e&&"popover"!=e&&e in t)try{t[e]=null==r?"":r;break t}catch(t){}"function"==typeof r||(null==r||!1===r&&"-"!=e[4]?t.removeAttribute(e):t.setAttribute(e,"popover"==e&&1==r?"":r))}}function A(t){return function(e){if(this.l){var o=this.l[e.type+t];if(null==e.t)e.t=s++;else if(e.t<o.u)return;return o(r.event?r.event(e):e)}}}function j(t,e,o,n,i,a,l,u,s,c){var f,p,d,h,m,y,k,C,T,q,S,$,L,M,A,j,E,R=e.type;if(void 0!==e.constructor)return null;128&o.__u&&(s=!!(32&o.__u),a=[u=e.__e=o.__e]),(f=r.__b)&&f(e);t:if("function"==typeof R)try{if(C=e.props,T="prototype"in R&&R.prototype.render,q=(f=R.contextType)&&n[f.__c],S=f?q?q.props.value:f.__:n,o.__c?k=(p=e.__c=o.__c).__=p.__E:(T?e.__c=p=new R(C,S):(e.__c=p=new w(C,S),p.constructor=R,p.render=H),q&&q.sub(p),p.state||(p.state={}),p.__n=n,d=p.__d=!0,p.__h=[],p._sb=[]),T&&null==p.__s&&(p.__s=p.state),T&&null!=R.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=g({},p.__s)),g(p.__s,R.getDerivedStateFromProps(C,p.__s))),h=p.props,m=p.state,p.__v=e,d)T&&null==R.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),T&&null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else{if(T&&null==R.getDerivedStateFromProps&&C!==h&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(C,S),e.__v==o.__v||!p.__e&&null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(C,p.__s,S)){for(e.__v!=o.__v&&(p.props=C,p.state=p.__s,p.__d=!1),e.__e=o.__e,e.__k=o.__k,e.__k.some((function(t){t&&(t.__=e)})),$=0;$<p._sb.length;$++)p.__h.push(p._sb[$]);p._sb=[],p.__h.length&&l.push(p);break t}null!=p.componentWillUpdate&&p.componentWillUpdate(C,p.__s,S),T&&null!=p.componentDidUpdate&&p.__h.push((function(){p.componentDidUpdate(h,m,y)}))}if(p.context=S,p.props=C,p.__P=t,p.__e=!1,L=r.__r,M=0,T){for(p.state=p.__s,p.__d=!1,L&&L(e),f=p.render(p.props,p.state,p.context),A=0;A<p._sb.length;A++)p.__h.push(p._sb[A]);p._sb=[]}else do{p.__d=!1,L&&L(e),f=p.render(p.props,p.state,p.context),p.state=p.__s}while(p.__d&&++M<25);p.state=p.__s,null!=p.getChildContext&&(n=g(g({},n),p.getChildContext())),T&&!d&&null!=p.getSnapshotBeforeUpdate&&(y=p.getSnapshotBeforeUpdate(h,m)),j=f,null!=f&&f.type===x&&null==f.key&&(j=Z(f.props.children)),u=_(t,b(j)?j:[j],e,o,n,i,a,l,u,s,c),p.base=e.__e,e.__u&=-161,p.__h.length&&l.push(p),k&&(p.__E=p.__=null)}catch(t){if(e.__v=null,s||null!=a)if(t.then){for(e.__u|=s?160:128;u&&8==u.nodeType&&u.nextSibling;)u=u.nextSibling;a[a.indexOf(u)]=null,e.__e=u}else{for(E=a.length;E--;)v(a[E]);z(e)}else e.__e=o.__e,e.__k=o.__k,t.then||z(e);r.__e(t,e,o)}else null==a&&e.__v==o.__v?(e.__k=o.__k,e.__e=o.__e):u=e.__e=I(o.__e,e,o,n,i,a,l,s,c);return(f=r.diffed)&&f(e),128&e.__u?void 0:u}function z(t){t&&t.__c&&(t.__c.__e=!0),t&&t.__k&&t.__k.forEach(z)}function E(t,e,o){for(var n=0;n<o.length;n++)R(o[n],o[++n],o[++n]);r.__c&&r.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){r.__e(t,e.__v)}}))}function Z(t){return"object"!=typeof t||null==t||t.__b&&t.__b>0?t:b(t)?t.map(Z):g({},t)}function I(t,o,n,i,a,l,u,s,c){var f,p,h,m,g,y,x,w=n.props||d,C=o.props,T=o.type;if("svg"==T?a="http://www.w3.org/2000/svg":"math"==T?a="http://www.w3.org/1998/Math/MathML":a||(a="http://www.w3.org/1999/xhtml"),null!=l)for(f=0;f<l.length;f++)if((g=l[f])&&"setAttribute"in g==!!T&&(T?g.localName==T:3==g.nodeType)){t=g,l[f]=null;break}if(null==t){if(null==T)return document.createTextNode(C);t=document.createElementNS(a,T,C.is&&C),s&&(r.__m&&r.__m(o,l),s=!1),l=null}if(null==T)w===C||s&&t.data==C||(t.data=C);else{if(l=l&&e.call(t.childNodes),!s&&null!=l)for(w={},f=0;f<t.attributes.length;f++)w[(g=t.attributes[f]).name]=g.value;for(f in w)if(g=w[f],"children"==f);else if("dangerouslySetInnerHTML"==f)h=g;else if(!(f in C)){if("value"==f&&"defaultValue"in C||"checked"==f&&"defaultChecked"in C)continue;M(t,f,null,g,a)}for(f in C)g=C[f],"children"==f?m=g:"dangerouslySetInnerHTML"==f?p=g:"value"==f?y=g:"checked"==f?x=g:s&&"function"!=typeof g||w[f]===g||M(t,f,g,w[f],a);if(p)s||h&&(p.__html==h.__html||p.__html==t.innerHTML)||(t.innerHTML=p.__html),o.__k=[];else if(h&&(t.innerHTML=""),_("template"==o.type?t.content:t,b(m)?m:[m],o,n,i,"foreignObject"==T?"http://www.w3.org/1999/xhtml":a,l,u,l?l[0]:n.__k&&k(n,0),s,c),null!=l)for(f=l.length;f--;)v(l[f]);s||(f="value","progress"==T&&null==y?t.removeAttribute("value"):null!=y&&(y!==t[f]||"progress"==T&&!y||"option"==T&&y!=w[f])&&M(t,f,y,w[f],a),f="checked",null!=x&&x!=t[f]&&M(t,f,x,w[f],a))}return t}function R(t,e,o){try{if("function"==typeof t){var n="function"==typeof t.__u;n&&t.__u(),n&&null==e||(t.__u=t(e))}else t.current=e}catch(t){r.__e(t,o)}}function D(t,e,o){var n,i;if(r.unmount&&r.unmount(t),(n=t.ref)&&(n.current&&n.current!=t.__e||R(n,null,e)),null!=(n=t.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(t){r.__e(t,e)}n.base=n.__P=null}if(n=t.__k)for(i=0;i<n.length;i++)n[i]&&D(n[i],e,o||"function"!=typeof t.type);o||v(t.__e),t.__c=t.__=t.__e=void 0}function H(t,e,r){return this.constructor(t,r)}function F(t,o,n){var i,a,l;o==document&&(o=document.documentElement),r.__&&r.__(t,o),i=!1?null:o.__k,a=[],l=[],j(o,t=o.__k=function(t,r,o){var n,i,a,l={};for(a in r)"key"==a?n=r[a]:"ref"==a?i=r[a]:l[a]=r[a];if(arguments.length>2&&(l.children=arguments.length>3?e.call(arguments,2):o),"function"==typeof t&&null!=t.defaultProps)for(a in t.defaultProps)void 0===l[a]&&(l[a]=t.defaultProps[a]);return y(t,l,n,i,null)}(x,null,[t]),i||d,d,o.namespaceURI,i?null:o.firstChild?e.call(o.childNodes):null,a,i?i.__e:o.firstChild,false,l),E(a,t,l)}e=h.slice,r={__e:function(t,e,r,o){for(var n,i,a;e=e.__;)if((n=e.__c)&&!n.__)try{if((i=n.constructor)&&null!=i.getDerivedStateFromError&&(n.setState(i.getDerivedStateFromError(t)),a=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(t,o||{}),a=n.__d),a)return n.__E=n}catch(e){t=e}throw t}},o=0,w.prototype.setState=function(t,e){var r;r=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=g({},this.state),"function"==typeof t&&(t=t(g({},r),this.props)),t&&g(r,t),null!=t&&this.__v&&(e&&this._sb.push(e),T(this))},w.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),T(this))},w.prototype.render=x,n=[],a="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,l=function(t,e){return t.__v.__b-e.__v.__b},$.__r=0,u=/(PointerCapture)$|Capture$/i,s=0,c=A(!1),f=A(!0),p=0;var O="undefined"!=typeof window?window:void 0,V="undefined"!=typeof globalThis?globalThis:O;"undefined"==typeof self&&(V.self=V),"undefined"==typeof File&&(V.File=function(){});var P=null==V?void 0:V.navigator,B=null==V?void 0:V.document;null==V||V.location,null==V||V.fetch,null!=V&&V.XMLHttpRequest&&"withCredentials"in new V.XMLHttpRequest&&V.XMLHttpRequest,null==V||V.AbortController,null==P||P.userAgent;var N=null!=O?O:{},{entries:Q,setPrototypeOf:U,isFrozen:W,getPrototypeOf:Y,getOwnPropertyDescriptor:X}=Object,{freeze:G,seal:K,create:J}=Object,{apply:tt,construct:et}="undefined"!=typeof Reflect&&Reflect;G||(G=function(t){return t}),K||(K=function(t){return t}),tt||(tt=function(t,e){for(var r=arguments.length,o=new Array(r>2?r-2:0),n=2;n<r;n++)o[n-2]=arguments[n];return t.apply(e,o)}),et||(et=function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];return new t(...r)});var rt,ot=gt(Array.prototype.forEach),nt=gt(Array.prototype.lastIndexOf),it=gt(Array.prototype.pop),at=gt(Array.prototype.push),lt=gt(Array.prototype.splice),ut=gt(String.prototype.toLowerCase),st=gt(String.prototype.toString),ct=gt(String.prototype.match),ft=gt(String.prototype.replace),pt=gt(String.prototype.indexOf),dt=gt(String.prototype.trim),ht=gt(Object.prototype.hasOwnProperty),mt=gt(RegExp.prototype.test),bt=(rt=TypeError,function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return et(rt,e)});function gt(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var r=arguments.length,o=new Array(r>1?r-1:0),n=1;n<r;n++)o[n-1]=arguments[n];return tt(t,e,o)}}function vt(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ut;U&&U(t,null);for(var o=e.length;o--;){var n=e[o];if("string"==typeof n){var i=r(n);i!==n&&(W(e)||(e[o]=i),n=i)}t[n]=!0}return t}function yt(t){for(var e=0;e<t.length;e++){ht(t,e)||(t[e]=null)}return t}function xt(t){var e=J(null);for(var[r,o]of Q(t)){ht(t,r)&&(Array.isArray(o)?e[r]=yt(o):o&&"object"==typeof o&&o.constructor===Object?e[r]=xt(o):e[r]=o)}return e}function wt(t,e){for(;null!==t;){var r=X(t,e);if(r){if(r.get)return gt(r.get);if("function"==typeof r.value)return gt(r.value)}t=Y(t)}return function(){return null}}var kt=G(["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"]),Ct=G(["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"]),Tt=G(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),_t=G(["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"]),qt=G(["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"]),St=G(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Lt=G(["#text"]),Mt=G(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),At=G(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),jt=G(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),zt=G(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Et=K(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Zt=K(/<%[\w\W]*|[\w\W]*%>/gm),It=K(/\$\{[\w\W]*/gm),Rt=K(/^data-[\-\w.\u00B7-\uFFFF]+$/),Dt=K(/^aria-[\-\w]+$/),Ht=K(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ft=K(/^(?:\w+script|data):/i),Ot=K(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Vt=K(/^html$/i),Pt=K(/^[a-z][.\w]*(-[.\w]+)+$/i),Bt=Object.freeze({__proto__:null,ARIA_ATTR:Dt,ATTR_WHITESPACE:Ot,CUSTOM_ELEMENT:Pt,DATA_ATTR:Rt,DOCTYPE_NAME:Vt,ERB_EXPR:Zt,IS_ALLOWED_URI:Ht,IS_SCRIPT_OR_DATA:Ft,MUSTACHE_EXPR:Et,TMPLIT_EXPR:It}),Nt=1,Qt=3,Ut=7,$t=8,Wt=9,Yt=function(){return"undefined"==typeof window?null:window};var Xt=function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Yt(),r=e=>t(e);if(r.version="3.3.1",r.removed=[],!e||!e.document||e.document.nodeType!==Wt||!e.Element)return r.isSupported=!1,r;var o,{document:n}=e,i=n,a=i.currentScript,{DocumentFragment:l,HTMLTemplateElement:u,Node:s,Element:c,NodeFilter:f,NamedNodeMap:p=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:h,trustedTypes:m}=e,b=c.prototype,g=wt(b,"cloneNode"),v=wt(b,"remove"),y=wt(b,"nextSibling"),x=wt(b,"childNodes"),w=wt(b,"parentNode");if("function"==typeof u){var k=n.createElement("template");k.content&&k.content.ownerDocument&&(n=k.content.ownerDocument)}var C="",{implementation:T,createNodeIterator:_,createDocumentFragment:q,getElementsByTagName:S}=n,{importNode:L}=i,M={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};r.isSupported="function"==typeof Q&&"function"==typeof w&&T&&void 0!==T.createHTMLDocument;var{MUSTACHE_EXPR:A,ERB_EXPR:j,TMPLIT_EXPR:z,DATA_ATTR:E,ARIA_ATTR:Z,IS_SCRIPT_OR_DATA:I,ATTR_WHITESPACE:R,CUSTOM_ELEMENT:D}=Bt,{IS_ALLOWED_URI:H}=Bt,F=null,O=vt({},[...kt,...Ct,...Tt,...qt,...Lt]),V=null,P=vt({},[...Mt,...At,...jt,...zt]),B=Object.seal(J(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}})),N=null,U=null,W=Object.seal(J(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Y=!0,X=!0,K=!1,tt=!0,et=!1,rt=!0,gt=!1,yt=!1,Et=!1,Zt=!1,It=!1,Rt=!1,Dt=!0,Ft=!1,Ot=!0,Pt=!1,Xt={},Gt=null,Kt=vt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Jt=null,te=vt({},["audio","video","img","source","image","track"]),ee=null,re=vt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),oe="http://www.w3.org/1998/Math/MathML",ne="http://www.w3.org/2000/svg",ie="http://www.w3.org/1999/xhtml",ae=ie,le=!1,ue=null,se=vt({},[oe,ne,ie],st),ce=vt({},["mi","mo","mn","ms","mtext"]),fe=vt({},["annotation-xml"]),pe=vt({},["title","style","font","a","script"]),de=null,he=["application/xhtml+xml","text/html"],me=null,be=null,ge=n.createElement("form"),ve=function(t){return t instanceof RegExp||t instanceof Function},ye=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!be||be!==t){if(t&&"object"==typeof t||(t={}),t=xt(t),de=-1===he.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,me="application/xhtml+xml"===de?st:ut,F=ht(t,"ALLOWED_TAGS")?vt({},t.ALLOWED_TAGS,me):O,V=ht(t,"ALLOWED_ATTR")?vt({},t.ALLOWED_ATTR,me):P,ue=ht(t,"ALLOWED_NAMESPACES")?vt({},t.ALLOWED_NAMESPACES,st):se,ee=ht(t,"ADD_URI_SAFE_ATTR")?vt(xt(re),t.ADD_URI_SAFE_ATTR,me):re,Jt=ht(t,"ADD_DATA_URI_TAGS")?vt(xt(te),t.ADD_DATA_URI_TAGS,me):te,Gt=ht(t,"FORBID_CONTENTS")?vt({},t.FORBID_CONTENTS,me):Kt,N=ht(t,"FORBID_TAGS")?vt({},t.FORBID_TAGS,me):xt({}),U=ht(t,"FORBID_ATTR")?vt({},t.FORBID_ATTR,me):xt({}),Xt=!!ht(t,"USE_PROFILES")&&t.USE_PROFILES,Y=!1!==t.ALLOW_ARIA_ATTR,X=!1!==t.ALLOW_DATA_ATTR,K=t.ALLOW_UNKNOWN_PROTOCOLS||!1,tt=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,et=t.SAFE_FOR_TEMPLATES||!1,rt=!1!==t.SAFE_FOR_XML,gt=t.WHOLE_DOCUMENT||!1,Zt=t.RETURN_DOM||!1,It=t.RETURN_DOM_FRAGMENT||!1,Rt=t.RETURN_TRUSTED_TYPE||!1,Et=t.FORCE_BODY||!1,Dt=!1!==t.SANITIZE_DOM,Ft=t.SANITIZE_NAMED_PROPS||!1,Ot=!1!==t.KEEP_CONTENT,Pt=t.IN_PLACE||!1,H=t.ALLOWED_URI_REGEXP||Ht,ae=t.NAMESPACE||ie,ce=t.MATHML_TEXT_INTEGRATION_POINTS||ce,fe=t.HTML_INTEGRATION_POINTS||fe,B=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&ve(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(B.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ve(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(B.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(B.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),et&&(X=!1),It&&(Zt=!0),Xt&&(F=vt({},Lt),V=[],!0===Xt.html&&(vt(F,kt),vt(V,Mt)),!0===Xt.svg&&(vt(F,Ct),vt(V,At),vt(V,zt)),!0===Xt.svgFilters&&(vt(F,Tt),vt(V,At),vt(V,zt)),!0===Xt.mathMl&&(vt(F,qt),vt(V,jt),vt(V,zt))),t.ADD_TAGS&&("function"==typeof t.ADD_TAGS?W.tagCheck=t.ADD_TAGS:(F===O&&(F=xt(F)),vt(F,t.ADD_TAGS,me))),t.ADD_ATTR&&("function"==typeof t.ADD_ATTR?W.attributeCheck=t.ADD_ATTR:(V===P&&(V=xt(V)),vt(V,t.ADD_ATTR,me))),t.ADD_URI_SAFE_ATTR&&vt(ee,t.ADD_URI_SAFE_ATTR,me),t.FORBID_CONTENTS&&(Gt===Kt&&(Gt=xt(Gt)),vt(Gt,t.FORBID_CONTENTS,me)),t.ADD_FORBID_CONTENTS&&(Gt===Kt&&(Gt=xt(Gt)),vt(Gt,t.ADD_FORBID_CONTENTS,me)),Ot&&(F["#text"]=!0),gt&&vt(F,["html","head","body"]),F.table&&(vt(F,["tbody"]),delete N.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw bt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw bt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');o=t.TRUSTED_TYPES_POLICY,C=o.createHTML("")}else void 0===o&&(o=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;var r=null,o="data-tt-policy-suffix";e&&e.hasAttribute(o)&&(r=e.getAttribute(o));var n="dompurify"+(r?"#"+r:"");try{return t.createPolicy(n,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+n+" could not be created."),null}}(m,a)),null!==o&&"string"==typeof C&&(C=o.createHTML(""));G&&G(t),be=t}},xe=vt({},[...Ct,...Tt,..._t]),we=vt({},[...qt,...St]),ke=function(t){at(r.removed,{element:t});try{w(t).removeChild(t)}catch(e){v(t)}},Ce=function(t,e){try{at(r.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){at(r.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t)if(Zt||It)try{ke(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},Te=function(t){var e=null,r=null;if(Et)t="<remove></remove>"+t;else{var i=ct(t,/^[\r\n\t ]+/);r=i&&i[0]}"application/xhtml+xml"===de&&ae===ie&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");var a=o?o.createHTML(t):t;if(ae===ie)try{e=(new h).parseFromString(a,de)}catch(t){}if(!e||!e.documentElement){e=T.createDocument(ae,"template",null);try{e.documentElement.innerHTML=le?C:a}catch(t){}}var l=e.body||e.documentElement;return t&&r&&l.insertBefore(n.createTextNode(r),l.childNodes[0]||null),ae===ie?S.call(e,gt?"html":"body")[0]:gt?e.documentElement:l},_e=function(t){return _.call(t.ownerDocument||t,t,f.SHOW_ELEMENT|f.SHOW_COMMENT|f.SHOW_TEXT|f.SHOW_PROCESSING_INSTRUCTION|f.SHOW_CDATA_SECTION,null)},qe=function(t){return t instanceof d&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof p)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)},Se=function(t){return"function"==typeof s&&t instanceof s};function Le(t,e,o){ot(t,(t=>{t.call(r,e,o,be)}))}var Me=function(t){var e=null;if(Le(M.beforeSanitizeElements,t,null),qe(t))return ke(t),!0;var o=me(t.nodeName);if(Le(M.uponSanitizeElement,t,{tagName:o,allowedTags:F}),rt&&t.hasChildNodes()&&!Se(t.firstElementChild)&&mt(/<[/\w!]/g,t.innerHTML)&&mt(/<[/\w!]/g,t.textContent))return ke(t),!0;if(t.nodeType===Ut)return ke(t),!0;if(rt&&t.nodeType===$t&&mt(/<[/\w]/g,t.data))return ke(t),!0;if(!(W.tagCheck instanceof Function&&W.tagCheck(o))&&(!F[o]||N[o])){if(!N[o]&&je(o)){if(B.tagNameCheck instanceof RegExp&&mt(B.tagNameCheck,o))return!1;if(B.tagNameCheck instanceof Function&&B.tagNameCheck(o))return!1}if(Ot&&!Gt[o]){var n=w(t)||t.parentNode,i=x(t)||t.childNodes;if(i&&n)for(var a=i.length-1;a>=0;--a){var l=g(i[a],!0);l.__removalCount=(t.__removalCount||0)+1,n.insertBefore(l,y(t))}}return ke(t),!0}return t instanceof c&&!function(t){var e=w(t);e&&e.tagName||(e={namespaceURI:ae,tagName:"template"});var r=ut(t.tagName),o=ut(e.tagName);return!!ue[t.namespaceURI]&&(t.namespaceURI===ne?e.namespaceURI===ie?"svg"===r:e.namespaceURI===oe?"svg"===r&&("annotation-xml"===o||ce[o]):Boolean(xe[r]):t.namespaceURI===oe?e.namespaceURI===ie?"math"===r:e.namespaceURI===ne?"math"===r&&fe[o]:Boolean(we[r]):t.namespaceURI===ie?!(e.namespaceURI===ne&&!fe[o])&&!(e.namespaceURI===oe&&!ce[o])&&!we[r]&&(pe[r]||!xe[r]):!("application/xhtml+xml"!==de||!ue[t.namespaceURI]))}(t)?(ke(t),!0):"noscript"!==o&&"noembed"!==o&&"noframes"!==o||!mt(/<\/no(script|embed|frames)/i,t.innerHTML)?(et&&t.nodeType===Qt&&(e=t.textContent,ot([A,j,z],(t=>{e=ft(e,t," ")})),t.textContent!==e&&(at(r.removed,{element:t.cloneNode()}),t.textContent=e)),Le(M.afterSanitizeElements,t,null),!1):(ke(t),!0)},Ae=function(t,e,r){if(Dt&&("id"===e||"name"===e)&&(r in n||r in ge))return!1;if(X&&!U[e]&&mt(E,e));else if(Y&&mt(Z,e));else if(W.attributeCheck instanceof Function&&W.attributeCheck(e,t));else if(!V[e]||U[e]){if(!(je(t)&&(B.tagNameCheck instanceof RegExp&&mt(B.tagNameCheck,t)||B.tagNameCheck instanceof Function&&B.tagNameCheck(t))&&(B.attributeNameCheck instanceof RegExp&&mt(B.attributeNameCheck,e)||B.attributeNameCheck instanceof Function&&B.attributeNameCheck(e,t))||"is"===e&&B.allowCustomizedBuiltInElements&&(B.tagNameCheck instanceof RegExp&&mt(B.tagNameCheck,r)||B.tagNameCheck instanceof Function&&B.tagNameCheck(r))))return!1}else if(ee[e]);else if(mt(H,ft(r,R,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==pt(r,"data:")||!Jt[t]){if(K&&!mt(I,ft(r,R,"")));else if(r)return!1}else;return!0},je=function(t){return"annotation-xml"!==t&&ct(t,D)},ze=function(t){Le(M.beforeSanitizeAttributes,t,null);var{attributes:e}=t;if(e&&!qe(t)){for(var n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:V,forceKeepAttr:void 0},i=e.length,a=function(){var a=e[i],{name:l,namespaceURI:u,value:s}=a,c=me(l),f=s,p="value"===l?f:dt(f);if(n.attrName=c,n.attrValue=p,n.keepAttr=!0,n.forceKeepAttr=void 0,Le(M.uponSanitizeAttribute,t,n),p=n.attrValue,!Ft||"id"!==c&&"name"!==c||(Ce(l,t),p="user-content-"+p),rt&&mt(/((--!?|])>)|<\/(style|title|textarea)/i,p))return Ce(l,t),0;if("attributename"===c&&ct(p,"href"))return Ce(l,t),0;if(n.forceKeepAttr)return 0;if(!n.keepAttr)return Ce(l,t),0;if(!tt&&mt(/\/>/i,p))return Ce(l,t),0;et&&ot([A,j,z],(t=>{p=ft(p,t," ")}));var d=me(t.nodeName);if(!Ae(d,c,p))return Ce(l,t),0;if(o&&"object"==typeof m&&"function"==typeof m.getAttributeType)if(u);else switch(m.getAttributeType(d,c)){case"TrustedHTML":p=o.createHTML(p);break;case"TrustedScriptURL":p=o.createScriptURL(p)}if(p!==f)try{u?t.setAttributeNS(u,l,p):t.setAttribute(l,p),qe(t)?ke(t):it(r.removed)}catch(e){Ce(l,t)}};i--;)a();Le(M.afterSanitizeAttributes,t,null)}},Ee=function t(e){var r=null,o=_e(e);for(Le(M.beforeSanitizeShadowDOM,e,null);r=o.nextNode();)Le(M.uponSanitizeShadowNode,r,null),Me(r),ze(r),r.content instanceof l&&t(r.content);Le(M.afterSanitizeShadowDOM,e,null)};return r.sanitize=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,a=null,u=null,c=null;if((le=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!Se(t)){if("function"!=typeof t.toString)throw bt("toString is not a function");if("string"!=typeof(t=t.toString()))throw bt("dirty is not a string, aborting")}if(!r.isSupported)return t;if(yt||ye(e),r.removed=[],"string"==typeof t&&(Pt=!1),Pt){if(t.nodeName){var f=me(t.nodeName);if(!F[f]||N[f])throw bt("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof s)(a=(n=Te("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType===Nt&&"BODY"===a.nodeName||"HTML"===a.nodeName?n=a:n.appendChild(a);else{if(!Zt&&!et&&!gt&&-1===t.indexOf("<"))return o&&Rt?o.createHTML(t):t;if(!(n=Te(t)))return Zt?null:Rt?C:""}n&&Et&&ke(n.firstChild);for(var p=_e(Pt?t:n);u=p.nextNode();)Me(u),ze(u),u.content instanceof l&&Ee(u.content);if(Pt)return t;if(Zt){if(It)for(c=q.call(n.ownerDocument);n.firstChild;)c.appendChild(n.firstChild);else c=n;return(V.shadowroot||V.shadowrootmode)&&(c=L.call(i,c,!0)),c}var d=gt?n.outerHTML:n.innerHTML;return gt&&F["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&mt(Vt,n.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+d),et&&ot([A,j,z],(t=>{d=ft(d,t," ")})),o&&Rt?o.createHTML(d):d},r.setConfig=function(){ye(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),yt=!0},r.clearConfig=function(){be=null,yt=!1},r.isValidAttribute=function(t,e,r){be||ye({});var o=me(t),n=me(e);return Ae(o,n,r)},r.addHook=function(t,e){"function"==typeof e&&at(M[t],e)},r.removeHook=function(t,e){if(void 0!==e){var r=nt(M[t],e);return-1===r?void 0:lt(M[t],r,1)[0]}return it(M[t])},r.removeHooks=function(t){M[t]=[]},r.removeAllHooks=function(){M={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},r}(),Gt={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},Kt=function(t,e){var{debugEnabled:r}=void 0===e?{}:e,o={o:function(e){if(O&&(N.POSTHOG_DEBUG||r)&&!(t=>void 0===t)(O.console)&&O.console){for(var o=("__rrweb_original__"in O.console[e]?O.console[e].__rrweb_original__:O.console[e]),n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];o(t,...i)}},info:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];o.o("log",...e)},warn:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];o.o("warn",...e)},error:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];o.o("error",...e)},critical:function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];console.error(t,...r)},uninitializedWarning:t=>{o.error("You must initialize PostHog before calling "+t)},createLogger:(e,r)=>Kt(t+" "+e,r)};return o},Jt=Kt("[PostHog.js]").createLogger,te=Jt("[Stylesheet Loader]"),ee=(t,e,r)=>{var o=t.createElement("style");return o.innerText=e,o||(te.error("prepare_external_dependency_stylesheet returned null"),null)};Jt("[Surveys]"),null!=P&&P.sendBeacon;var re,oe,ne,ie,ae=0,le=[],ue=r,se=ue.__b,ce=ue.__r,fe=ue.diffed,pe=ue.__c,de=ue.unmount,he=ue.__;function me(t,e){ue.__h&&ue.__h(oe,t,ae||e),ae=0;var r=oe.__H||(oe.__H={__:[],__h:[]});return t>=r.__.length&&r.__.push({}),r.__[t]}function be(t){return ae=1,function(t,e,r){var o=me(re++,2);if(o.t=t,!o.__c&&(o.__=[Te(void 0,e),function(t){var e=o.__N?o.__N[0]:o.__[0],r=o.t(e,t);e!==r&&(o.__N=[r,o.__[1]],o.__c.setState({}))}],o.__c=oe,!oe.__f)){var n=function(t,e,r){if(!o.__c.__H)return!0;var n=o.__c.__H.__.filter((function(t){return!!t.__c}));if(n.every((function(t){return!t.__N})))return!i||i.call(this,t,e,r);var a=o.__c.props!==t;return n.forEach((function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(a=!0)}})),i&&i.call(this,t,e,r)||a};oe.__f=!0;var i=oe.shouldComponentUpdate,a=oe.componentWillUpdate;oe.componentWillUpdate=function(t,e,r){if(this.__e){var o=i;i=void 0,n(t,e,r),i=o}a&&a.call(this,t,e,r)},oe.shouldComponentUpdate=n}return o.__N||o.__}(Te,t)}function ge(t){return ae=5,function(t,e){var r=me(re++,7);return Ce(r.__H,e)&&(r.__=t(),r.__H=e,r.__h=t),r.__}((function(){return{current:t}}),[])}function ve(){for(var t;t=le.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(we),t.__H.__h.forEach(ke),t.__H.__h=[]}catch(e){t.__H.__h=[],ue.__e(e,t.__v)}}ue.__b=function(t){oe=null,se&&se(t)},ue.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),he&&he(t,e)},ue.__r=function(t){ce&&ce(t),re=0;var e=(oe=t.__c).__H;e&&(ne===oe?(e.__h=[],oe.__h=[],e.__.forEach((function(t){t.__N&&(t.__=t.__N),t.u=t.__N=void 0}))):(e.__h.forEach(we),e.__h.forEach(ke),e.__h=[],re=0)),ne=oe},ue.diffed=function(t){fe&&fe(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==le.push(e)&&ie===ue.requestAnimationFrame||((ie=ue.requestAnimationFrame)||xe)(ve)),e.__H.__.forEach((function(t){t.u&&(t.__H=t.u),t.u=void 0}))),ne=oe=null},ue.__c=function(t,e){e.some((function(t){try{t.__h.forEach(we),t.__h=t.__h.filter((function(t){return!t.__||ke(t)}))}catch(r){e.some((function(t){t.__h&&(t.__h=[])})),e=[],ue.__e(r,t.__v)}})),pe&&pe(t,e)},ue.unmount=function(t){de&&de(t);var e,r=t.__c;r&&r.__H&&(r.__H.__.forEach((function(t){try{we(t)}catch(t){e=t}})),r.__H=void 0,e&&ue.__e(e,r.__v))};var ye="function"==typeof requestAnimationFrame;function xe(t){var e,r=function(){clearTimeout(o),ye&&cancelAnimationFrame(e),setTimeout(t)},o=setTimeout(r,35);ye&&(e=requestAnimationFrame(r))}function we(t){var e=oe,r=t.__c;"function"==typeof r&&(t.__c=void 0,r()),oe=e}function ke(t){var e=oe;t.__c=t.__(),oe=e}function Ce(t,e){return!t||t.length!==e.length||e.some((function(e,r){return e!==t[r]}))}function Te(t,e){return"function"==typeof e?e(t):e}var _e="#020617",qe={backgroundColor:"#eeeded"};function Se(t){if(t.startsWith("#")){var e=t.replace(/^#/,"");return/^[0-9A-Fa-f]{3}$/.test(e)&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),/^[0-9A-Fa-f]{6}$/.test(e)?"rgb("+parseInt(e.slice(0,2),16)+","+parseInt(e.slice(2,4),16)+","+parseInt(e.slice(4,6),16)+")":"rgb(255, 255, 255)"}return"rgb(255, 255, 255)"}function Le(t){var e;void 0===t&&(t=qe.backgroundColor),"#"===t[0]&&(e=Se(t)),t.startsWith("rgb")&&(e=t);var r={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4","indianred ":"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}[t.toLowerCase()];if(r&&(e=Se(r)),!e)return _e;var o=e.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/);if(o){var n=parseInt(o[1]),i=parseInt(o[2]),a=parseInt(o[3]);return Math.sqrt(n*n*.299+i*i*.587+a*a*.114)>127.5?_e:"white"}return _e}!function(t){function e(t){var r,o;return this.getChildContext||(r=new Set,(o={})[e.__c]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(t){this.props.value!=t.value&&r.forEach((function(t){t.__e=!0,T(t)}))},this.sub=function(t){r.add(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){r&&r.delete(t),e&&e.call(t)}}),t.children}e.__c="__cC"+p++,e.__=t,e.Provider=e.__l=(e.Consumer=function(t,e){return t.children(e)}).contextType=e}({isPreviewMode:!1,previewPageIndex:0,onPopupSurveyDismissed:()=>{},isPopup:!0,onPreviewSubmit:()=>{},surveySubmissionId:"",properties:void 0});var Me=':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);box-shadow:var(--ph-tour-box-shadow);max-width:var(--ph-tour-max-width);min-width:280px;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--modal{box-shadow:0 8px 32px rgba(0,0,0,.2),0 2px 8px rgba(0,0,0,.1)}.ph-tour-arrow{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%;left:50%;transform:translateX(-50%)}.ph-tour-arrow--bottom{border-top-color:var(--ph-tour-background-color);left:50%;top:100%;transform:translateX(-50%)}.ph-tour-arrow--left{border-right-color:var(--ph-tour-background-color);right:100%;top:50%;transform:translateY(-50%)}.ph-tour-arrow--right{border-left-color:var(--ph-tour-background-color);left:100%;top:50%;transform:translateY(-50%)}.ph-tour-content{color:var(--ph-tour-text-color);font-size:14px;line-height:1.5;margin-bottom:16px;padding-right:24px}.ph-tour-content h1,.ph-tour-content h2{font-weight:600;margin-bottom:8px}.ph-tour-content h1{font-size:18px}.ph-tour-content h2{font-size:16px}.ph-tour-content p{margin-bottom:8px}.ph-tour-content p:last-child{margin-bottom:0}.ph-tour-content strong{font-weight:600}.ph-tour-content em{font-style:italic}.ph-tour-content ol,.ph-tour-content ul{margin-bottom:8px;margin-left:20px}.ph-tour-content h3{font-size:14px;font-weight:600;margin-bottom:8px}.ph-tour-content .ph-tour-link,.ph-tour-content a{color:inherit;text-decoration:underline}.ph-tour-content a:hover{opacity:.8}.ph-tour-content code{background:rgba(0,0,0,.06);border-radius:4px;font-size:.875em;padding:2px 6px}.ph-tour-content code,.ph-tour-content pre{font-family:SF Mono,Monaco,Consolas,monospace}.ph-tour-content pre{background:rgba(0,0,0,.04);border-radius:6px;font-size:13px;line-height:1.5;margin-bottom:8px;overflow-x:auto;padding:12px}.ph-tour-content pre code{background:transparent;border-radius:0;font-size:inherit;padding:0}.ph-tour-content code *,.ph-tour-content pre *{font-family:inherit}.ph-tour-content .hljs-comment,.ph-tour-content .hljs-quote{color:#6a737d;font-style:italic}.ph-tour-content .hljs-keyword,.ph-tour-content .hljs-selector-tag{color:#d73a49}.ph-tour-content .hljs-doctag,.ph-tour-content .hljs-regexp,.ph-tour-content .hljs-string{color:#032f62}.ph-tour-content .hljs-literal,.ph-tour-content .hljs-number,.ph-tour-content .hljs-template-variable,.ph-tour-content .hljs-variable{color:#005cc5}.ph-tour-content .hljs-section,.ph-tour-content .hljs-selector-class,.ph-tour-content .hljs-selector-id,.ph-tour-content .hljs-title,.ph-tour-content .hljs-title.function_{color:#6f42c1}.ph-tour-content .hljs-addition,.ph-tour-content .hljs-attr,.ph-tour-content .hljs-attribute,.ph-tour-content .hljs-built_in,.ph-tour-content .hljs-bullet,.ph-tour-content .hljs-name,.ph-tour-content .hljs-symbol{color:#22863a}.ph-tour-content .hljs-deletion,.ph-tour-content .hljs-subst{color:#b31d28}.ph-tour-content .hljs-meta{color:#032f62}.ph-tour-content .hljs-emphasis{font-style:italic}.ph-tour-content .hljs-strong{font-weight:700}.ph-tour-content .ph-tour-image,.ph-tour-content img{border-radius:6px;display:block;height:auto;margin:8px 0;max-width:100%}.ph-tour-content .ph-tour-embed{margin:8px 0}.ph-tour-content .ph-tour-embed-container{background:#000;border-radius:6px;overflow:hidden;padding-bottom:56.25%;position:relative;width:100%}.ph-tour-content .ph-tour-embed-container iframe{border:none;height:100%;left:0;position:absolute;top:0;width:100%}.ph-tour-content blockquote{border-left:3px solid var(--ph-tour-border-color);color:var(--ph-tour-text-secondary-color);font-style:italic;margin:8px 0;padding-left:12px}.ph-tour-footer{align-items:center;display:flex;gap:12px;justify-content:space-between}.ph-tour-progress{color:var(--ph-tour-text-secondary-color);font-size:12px}.ph-tour-buttons{display:flex;gap:8px;margin-left:auto}.ph-tour-button{align-items:center;border:none;border-radius:var(--ph-tour-button-border-radius);cursor:pointer;display:inline-flex;font-size:14px;font-weight:500;justify-content:center;padding:8px 16px;transition:opacity .15s ease,transform .1s ease}.ph-tour-button:hover{opacity:.9}.ph-tour-button:active{transform:scale(.98)}.ph-tour-button--primary{background:var(--ph-tour-button-color);color:var(--ph-tour-button-text-color)}.ph-tour-button--secondary{background:var(--ph-tour-button-secondary-color);border:1px solid var(--ph-tour-border-color);color:var(--ph-tour-button-secondary-text-color)}.ph-tour-dismiss{align-items:center;background:transparent;border:none;border-radius:4px;color:var(--ph-tour-text-secondary-color);cursor:pointer;display:flex;font-size:18px;height:24px;justify-content:center;line-height:1;position:absolute;right:8px;top:8px;transition:background .15s ease,color .15s ease;width:24px}.ph-tour-dismiss:hover{background:rgba(0,0,0,.08);color:var(--ph-tour-text-color)}.ph-tour-branding{align-items:center;border-top:1px solid var(--ph-tour-border-color);color:var(--ph-tour-branding-text-color,var(--ph-tour-text-secondary-color));display:flex;font-size:11px;gap:6px;justify-content:center;margin-top:12px;padding-top:12px;text-decoration:none}.ph-tour-branding:hover{color:var(--ph-tour-branding-text-color,var(--ph-tour-text-color))}.ph-tour-branding svg{height:14px;width:auto}.ph-tour-hidden{display:none!important}.ph-tour-survey-step{min-width:300px}.ph-tour-survey-question{color:var(--ph-tour-text-color);font-size:15px;font-weight:500;line-height:1.4;margin-bottom:16px;padding-right:24px}.ph-tour-survey-input-container{display:flex;flex-direction:column;gap:12px}.ph-tour-survey-textarea{background:#fff;border:1px solid var(--ph-tour-border-color);border-radius:6px;box-sizing:border-box;color:var(--ph-tour-text-color);font-family:var(--ph-tour-font-family);font-size:14px;min-height:80px;padding:10px 12px;resize:vertical;width:100%}.ph-tour-survey-textarea:focus{border-color:var(--ph-tour-button-color);box-shadow:0 0 0 2px rgba(0,0,0,.05);outline:none}.ph-tour-survey-textarea::placeholder{color:var(--ph-tour-text-secondary-color)}.ph-tour-survey-submit{align-self:flex-end}.ph-tour-survey-rating-container{display:flex;flex-direction:column;gap:8px;margin-bottom:8px}.ph-tour-survey-rating-labels{color:var(--ph-tour-text-secondary-color);display:flex;font-size:11px;justify-content:space-between}.ph-tour-survey-rating-emoji{display:flex;gap:8px;justify-content:center}.ph-tour-survey-emoji-button{align-items:center;background:var(--ph-tour-background-color);border:2px solid var(--ph-tour-border-color);border-radius:8px;cursor:pointer;display:flex;height:44px;justify-content:center;padding:0;transition:all .15s ease;width:44px}.ph-tour-survey-emoji-button:hover{background:rgba(0,0,0,.02);border-color:var(--ph-tour-button-color)}.ph-tour-survey-emoji-button--active{background:var(--ph-tour-button-color);border-color:var(--ph-tour-button-color)}.ph-tour-survey-emoji-button--active svg{fill:var(--ph-tour-button-text-color)}.ph-tour-survey-emoji-button svg{fill:var(--ph-tour-text-color);height:28px;transition:fill .15s ease;width:28px}.ph-tour-survey-rating-numbers{display:grid;gap:6px}.ph-tour-survey-number-button{align-items:center;background:var(--ph-tour-background-color);border:1px solid var(--ph-tour-border-color);border-radius:4px;color:var(--ph-tour-text-color);cursor:pointer;display:flex;font-family:var(--ph-tour-font-family);font-size:13px;font-weight:500;justify-content:center;padding:8px 4px;transition:all .15s ease}.ph-tour-survey-number-button:hover{background:rgba(0,0,0,.02);border-color:var(--ph-tour-button-color)}.ph-tour-survey-number-button--active{background:var(--ph-tour-button-color);border-color:var(--ph-tour-button-color);color:var(--ph-tour-button-text-color)}.ph-tour-banner{align-items:center;background:var(--ph-tour-background-color);border-bottom:1px solid var(--ph-tour-border-color);box-shadow:var(--ph-tour-box-shadow);display:flex;font-family:var(--ph-tour-font-family);gap:16px;justify-content:center;padding:12px 16px}a.ph-tour-banner{color:inherit;text-decoration:none}:host:has(.ph-tour-banner--sticky){position:sticky;top:0;z-index:var(--ph-tour-z-index)}.ph-tour-banner-content{color:var(--ph-tour-text-color);flex:1;font-size:14px;line-height:1.5;min-width:0;text-align:center}.ph-tour-banner-content p{margin:0}.ph-tour-banner-content strong{font-weight:600}.ph-tour-banner-content em{font-style:italic}.ph-tour-banner-content a{color:inherit;text-decoration:underline}.ph-tour-banner-dismiss{align-items:center;background:transparent;border:none;border-radius:4px;color:var(--ph-tour-text-secondary-color);cursor:pointer;display:flex;flex-shrink:0;height:24px;justify-content:center;transition:background .15s ease,color .15s ease;width:24px}.ph-tour-banner-dismiss:hover{background:rgba(0,0,0,.08);color:var(--ph-tour-text-color)}',Ae=B;function je(e,r){var o,n,i,a=t({},Gt,r),l=e.style;l.setProperty("--ph-tour-background-color",a.backgroundColor),l.setProperty("--ph-tour-text-color",a.textColor),l.setProperty("--ph-tour-button-color",a.buttonColor),l.setProperty("--ph-tour-border-radius",a.borderRadius+"px"),l.setProperty("--ph-tour-button-border-radius",a.buttonBorderRadius+"px"),l.setProperty("--ph-tour-border-color",a.borderColor),l.setProperty("--ph-tour-font-family",function(t){if("inherit"===t)return"inherit";var e='BlinkMacSystemFont, "Inter", "Segoe UI", "Roboto", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"';return t?t+", "+e:"-apple-system, "+e}(a.fontFamily)),l.setProperty("--ph-tour-text-secondary-color",(o=a.textColor,n=.6,(i=Se(o).match(/^rgb\((\d+),(\d+),(\d+)\)$/))?"rgba("+i[1]+", "+i[2]+", "+i[3]+", "+n+")":o)),l.setProperty("--ph-tour-branding-text-color",Le(a.backgroundColor)),l.setProperty("--ph-tour-button-text-color",Le(a.buttonColor)),l.setProperty("--ph-tour-box-shadow",a.boxShadow),l.setProperty("--ph-tour-overlay-color",a.showOverlay?"rgba(0, 0, 0, 0.5)":"transparent"),l.setProperty("--ph-tour-button-secondary-color","transparent"),l.setProperty("--ph-tour-button-secondary-text-color",a.textColor),l.setProperty("--ph-tour-max-width","320px"),l.setProperty("--ph-tour-padding","16px")}function ze(t){var e;if(!t)return"";if("string"==typeof t)return Ee(t);if("text"===t.type){var r=Ee(t.text||"");if(t.marks)for(var o of t.marks)switch(o.type){case"bold":r="<strong>"+r+"</strong>";break;case"italic":r="<em>"+r+"</em>";break;case"underline":r="<u>"+r+"</u>";break;case"strike":r="<s>"+r+"</s>"}return r}var n=(null==(e=t.content)?void 0:e.map(ze).join(""))||"";switch(t.type){case"doc":default:return n;case"paragraph":return"<p>"+n+"</p>";case"heading":var i,a=(null==(i=t.attrs)?void 0:i.level)||1;return"<h"+a+">"+n+"</h"+a+">";case"bulletList":return"<ul>"+n+"</ul>";case"orderedList":return"<ol>"+n+"</ol>";case"listItem":return"<li>"+n+"</li>";case"hardBreak":return"<br>"}}function Ee(t){var e=Ae.createElement("div");return e.textContent=t,e.innerHTML}function Ze(t){return t.contentHtml?Xt.sanitize(t.contentHtml,{ADD_TAGS:["iframe"],ADD_ATTR:["allowfullscreen","frameborder","referrerpolicy"]}):ze(t.content)}var Ie=0;function Re(t,e,o,n,i,a){e||(e={});var l,u,s=e;if("ref"in s)for(u in s={},e)"ref"==u?l=e[u]:s[u]=e[u];var c={type:t,props:s,key:o,ref:l,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Ie,__i:-1,__u:0,__source:i,__self:a};if("function"==typeof t&&(l=t.defaultProps))for(u in l)void 0===s[u]&&(s[u]=l[u]);return r.vnode&&r.vnode(c),c}var De=Re("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Re("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"})}),He=Re("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Re("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"})}),Fe=Re("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Re("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"})}),Oe=Re("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Re("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"})}),Ve=Re("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Re("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"})}),Pe=Re("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":"close-survey-title",children:[Re("title",{id:"close-survey-title",children:"Close survey"}),Re("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:"black"})]}),Be=Re("svg",{width:"77",height:"14",viewBox:"0 0 77 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Re("g",{"clip-path":"url(#clip0_2415_6911)",children:[Re("mask",{id:"mask0_2415_6911",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"77",height:"14",children:Re("path",{d:"M0.5 0H76.5V14H0.5V0Z",fill:"white"})}),Re("g",{mask:"url(#mask0_2415_6911)",children:[Re("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"}),Re("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"}),Re("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"}),Re("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"}),Re("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"}),Re("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"})]})]}),Re("defs",{children:Re("clipPath",{id:"clip0_2415_6911",children:Re("rect",{width:"76",height:"14",fill:"white",transform:"translate(0.5)"})})})]});function Ne(t){var{class:e,href:r,children:o}=t;return Re("a",{class:e,href:r,target:"_blank",rel:"noopener noreferrer",children:o})}function Qe(t){var{class:e,onClick:r,children:o}=t;return Re("div",{class:e,role:"button",tabIndex:0,onClick:r,onKeyDown:t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),r())},style:{cursor:"pointer"},children:o})}function Ue(t){var{class:e,children:r}=t;return Re("div",{class:e,children:r})}function $e(t){var e,{step:r,onDismiss:o,onTriggerTour:n}=t,i=null!==(e=r.bannerConfig)&&void 0!==e?e:{behavior:"sticky"},a=i.action,l=["ph-tour-banner","sticky"===i.behavior&&"ph-tour-banner--sticky"].filter(Boolean).join(" "),u=Re(x,{children:[Re("div",{class:"ph-tour-banner-content",dangerouslySetInnerHTML:{__html:Ze(r)}}),Re("button",{class:"ph-tour-banner-dismiss",onClick:t=>{t.stopPropagation(),t.preventDefault(),o()},"aria-label":"Close banner",children:Pe})]});return"link"===(null==a?void 0:a.type)&&a.link?Re(Ne,{class:l,href:a.link,children:u}):"trigger_tour"===(null==a?void 0:a.type)&&n?Re(Qe,{class:l,onClick:n,children:u}):Re(Ue,{class:l,children:u})}Re("svg",{width:"16",height:"12",viewBox:"0 0 16 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Re("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 We=[Fe,He,De],Ye=[Oe,Fe,He,De,Ve];function Xe(t){var{value:e,onChange:r,onSubmit:o,isInteractive:n}=t,i=ge(null);!function(t,e){var r=me(re++,3);!ue.__s&&Ce(r.__H,e)&&(r.__=t,r.u=e,oe.__H.__h.push(r))}((()=>{n&&setTimeout((()=>{var t;return null==(t=i.current)?void 0:t.focus()}),100)}),[n]);return Re("textarea",{ref:i,class:"ph-tour-survey-textarea",rows:3,placeholder:"Your feedback (optional)...",value:e,onInput:t=>r(t.target.value),onKeyDown:t=>{"Enter"===t.key&&t.metaKey&&n&&(t.preventDefault(),null==o||o())},disabled:!n,style:n?void 0:{cursor:"default"}})}function Ge(t){var{survey:e,onSubmit:r,isInteractive:o}=t,[n,i]=be(null),a=e.display||"emoji",l=e.scale||5,u=t=>{o&&(i(t),null==r||r(t))};if("emoji"===a)return Re("div",{class:"ph-tour-survey-rating-container",children:[Re("div",{class:"ph-tour-survey-rating-emoji",children:(3===l?We:Ye).map(((t,e)=>{var r=e+1;return Re("button",{type:"button",class:"ph-tour-survey-emoji-button "+(n===r?"ph-tour-survey-emoji-button--active":""),onClick:()=>u(r),style:o?void 0:{cursor:"default"},"aria-label":"Rate "+r,children:t},e)}))}),(e.lowerBoundLabel||e.upperBoundLabel)&&Re("div",{class:"ph-tour-survey-rating-labels",children:[Re("span",{children:e.lowerBoundLabel}),Re("span",{children:e.upperBoundLabel})]})]});var s=function(t){switch(t){case 5:default:return[1,2,3,4,5];case 10:return[0,1,2,3,4,5,6,7,8,9,10]}}(l);return Re("div",{class:"ph-tour-survey-rating-container",children:[Re("div",{class:"ph-tour-survey-rating-numbers",style:{gridTemplateColumns:"repeat("+s.length+", minmax(0, 1fr))"},children:s.map((t=>Re("button",{type:"button",class:"ph-tour-survey-number-button "+(n===t?"ph-tour-survey-number-button--active":""),onClick:()=>u(t),style:o?void 0:{cursor:"default"},"aria-label":"Rate "+t,children:t},t)))}),(e.lowerBoundLabel||e.upperBoundLabel)&&Re("div",{class:"ph-tour-survey-rating-labels",children:[Re("span",{children:e.lowerBoundLabel}),Re("span",{children:e.upperBoundLabel})]})]})}function Ke(t){var e,{step:r,appearance:o,stepIndex:n,totalSteps:i,onPrevious:a,onSubmit:l,onDismiss:u}=t,[s,c]=be(""),f=r.survey,p=null!==(e=null==o?void 0:o.whiteLabel)&&void 0!==e&&e,d=0===n,h="open"===(null==f?void 0:f.type),m=!!(a||l||u),b=m?void 0:{cursor:"default"},g=()=>{null==l||l(s.trim()||null)};return f?Re(x,{children:[Re("button",{class:"ph-tour-dismiss",onClick:u,"aria-label":"Close survey",style:b,children:Pe}),Re("div",{class:"ph-tour-survey-question",children:f.questionText}),h?Re(Xe,{value:s,onChange:c,onSubmit:g,isInteractive:m}):Re(Ge,{survey:f,onSubmit:l,isInteractive:m}),Re("div",{class:"ph-tour-footer",children:[Re("span",{class:"ph-tour-progress",children:[n+1," of ",i]}),Re("div",{class:"ph-tour-buttons",children:[!d&&Re("button",{class:"ph-tour-button ph-tour-button--secondary",onClick:a,style:b,children:"Back"}),h&&Re("button",{class:"ph-tour-button ph-tour-button--primary",onClick:g,style:b,children:"Submit"})]})]}),!p&&Re("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 ",Be]})]}):Re("div",{})}function Je(t){var{button:e,variant:r,onClick:o,cursorStyle:n}=t,i="ph-tour-button ph-tour-button--"+r;return"link"===e.action&&e.link?Re("a",{href:e.link,target:"_blank",rel:"noopener noreferrer",class:i,children:e.text}):Re("button",{class:i,onClick:()=>o(e),style:n,children:e.text})}function tr(t){var e,r,o,{step:n,appearance:i,stepIndex:a,totalSteps:l,onNext:u,onPrevious:s,onDismiss:c,onButtonClick:f}=t,p=null!==(e=null==i?void 0:i.whiteLabel)&&void 0!==e&&e,d=a>=l-1,h=0===a,m=!n.buttons&&("button"===n.progressionTrigger||"modal"===n.type),b=!!n.buttons,g=!!(u||s||c||f),v=g?void 0:{cursor:"default"},y=t=>{f&&f(t)};return Re(x,{children:[Re("button",{class:"ph-tour-dismiss",onClick:c,"aria-label":"Close tour",style:v,children:Pe}),Re("div",{class:"ph-tour-content",dangerouslySetInnerHTML:{__html:Ze(n)}}),Re("div",{class:"ph-tour-footer",children:[l>1&&Re("span",{class:"ph-tour-progress",children:[a+1," of ",l]}),Re("div",{class:"ph-tour-buttons",children:[m&&Re(x,{children:[!h&&Re("button",{class:"ph-tour-button ph-tour-button--secondary",onClick:s,style:v,children:"Back"}),Re("button",{class:"ph-tour-button ph-tour-button--primary",onClick:u,style:v,children:d?"Done":"Next"})]}),b&&Re(x,{children:[(null==(r=n.buttons)?void 0:r.secondary)&&Re(Je,{button:n.buttons.secondary,variant:"secondary",onClick:y,cursorStyle:v}),(null==(o=n.buttons)?void 0:o.primary)&&Re(Je,{button:n.buttons.primary,variant:"primary",onClick:y,cursorStyle:v})]})]})]}),!p&&Re("a",{href:g?"https://posthog.com/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 ",Be]})]})}var er=B;function rr(e){var{step:r,appearance:o,parentElement:n,stepIndex:i=0,totalSteps:a=1,style:l}=e;n.innerHTML="";var u=er.createElement("div");je(u,o),n.appendChild(u);var s=u.attachShadow({mode:"open"}),c=function(){var t=ee(Ae,Me);return null==t||t.setAttribute("data-ph-product-tour-style","true"),t}();c&&s.appendChild(c);var f=er.createElement("div");s.appendChild(f);var p="survey"===r.type,d=p?"ph-tour-tooltip ph-tour-survey-step":"ph-tour-tooltip";"banner"===r.type?F(Re("div",{class:"ph-tour-container",children:Re($e,{step:r,onDismiss:()=>{}})}),f):F(Re("div",{class:"ph-tour-container",children:Re("div",{class:d,style:t({position:"relative",animation:"none"},r.maxWidth&&{width:r.maxWidth+"px",maxWidth:r.maxWidth+"px"},l),children:Re(p?Ke:tr,{step:r,appearance:o,stepIndex:i,totalSteps:a})})}),f)}export{rr as renderProductTourPreview};
|
|
1
|
+
function t(){return t=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var o in r)({}).hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},t.apply(null,arguments)}var e,r,o,n,i,a,l,u,s,c,f,p,d={},h=[],m=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,b=Array.isArray;function g(t,e){for(var r in e)t[r]=e[r];return t}function v(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function y(t,e,n,i,a){var l={type:t,props:e,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==a?++o:a,__i:-1,__u:0};return null==a&&null!=r.vnode&&r.vnode(l),l}function x(t){return t.children}function w(t,e){this.props=t,this.context=e}function k(t,e){if(null==e)return t.__?k(t.__,t.__i+1):null;for(var r;e<t.__k.length;e++)if(null!=(r=t.__k[e])&&null!=r.__e)return r.__e;return"function"==typeof t.type?k(t):null}function C(t){var e,r;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(r=t.__k[e])&&null!=r.__e){t.__e=t.__c.base=r.__e;break}return C(t)}}function T(t){(!t.__d&&(t.__d=!0)&&n.push(t)&&!$.__r++||i!=r.debounceRendering)&&((i=r.debounceRendering)||a)($)}function $(){for(var t,e,o,i,a,u,s,c=1;n.length;)n.length>c&&n.sort(l),t=n.shift(),c=n.length,t.__d&&(o=void 0,i=void 0,a=(i=(e=t).__v).__e,u=[],s=[],e.__P&&((o=g({},i)).__v=i.__v+1,r.vnode&&r.vnode(o),j(e.__P,o,i,e.__n,e.__P.namespaceURI,32&i.__u?[a]:null,u,null==a?k(i):a,!!(32&i.__u),s),o.__v=i.__v,o.__.__k[o.__i]=o,E(u,o,s),i.__e=i.__=null,o.__e!=a&&C(o)));$.__r=0}function _(t,e,r,o,n,i,a,l,u,s,c){var f,p,m,g,v,w,C,T=o&&o.__k||h,_=e.length;for(u=function(t,e,r,o,n){var i,a,l,u,s,c=r.length,f=c,p=0;for(t.__k=new Array(n),i=0;i<n;i++)null!=(a=e[i])&&"boolean"!=typeof a&&"function"!=typeof a?("string"==typeof a||"number"==typeof a||"bigint"==typeof a||a.constructor==String?a=t.__k[i]=y(null,a,null,null,null):b(a)?a=t.__k[i]=y(x,{children:a},null,null,null):void 0===a.constructor&&a.__b>0?a=t.__k[i]=y(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):t.__k[i]=a,u=i+p,a.__=t,a.__b=t.__b+1,l=null,-1!=(s=a.__i=S(a,r,u,f))&&(f--,(l=r[s])&&(l.__u|=2)),null==l||null==l.__v?(-1==s&&(n>c?p--:n<c&&p++),"function"!=typeof a.type&&(a.__u|=4)):s!=u&&(s==u-1?p--:s==u+1?p++:(s>u?p--:p++,a.__u|=4))):t.__k[i]=null;if(f)for(i=0;i<c;i++)null!=(l=r[i])&&0==(2&l.__u)&&(l.__e==o&&(o=k(l)),D(l,l));return o}(r,e,T,u,_),f=0;f<_;f++)null!=(m=r.__k[f])&&(p=-1==m.__i?d:T[m.__i]||d,m.__i=f,w=j(t,m,p,n,i,a,l,u,s,c),g=m.__e,m.ref&&p.ref!=m.ref&&(p.ref&&R(p.ref,null,m),c.push(m.ref,m.__c||g,m)),null==v&&null!=g&&(v=g),(C=!!(4&m.__u))||p.__k===m.__k?u=q(m,u,t,C):"function"==typeof m.type&&void 0!==w?u=w:g&&(u=g.nextSibling),m.__u&=-7);return r.__e=v,u}function q(t,e,r,o){var n,i;if("function"==typeof t.type){for(n=t.__k,i=0;n&&i<n.length;i++)n[i]&&(n[i].__=t,e=q(n[i],e,r,o));return e}t.__e!=e&&(o&&(e&&t.type&&!e.parentNode&&(e=k(t)),r.insertBefore(t.__e,e||null)),e=t.__e);do{e=e&&e.nextSibling}while(null!=e&&8==e.nodeType);return e}function S(t,e,r,o){var n,i,a,l=t.key,u=t.type,s=e[r],c=null!=s&&0==(2&s.__u);if(null===s&&null==l||c&&l==s.key&&u==s.type)return r;if(o>(c?1:0))for(n=r-1,i=r+1;n>=0||i<e.length;)if(null!=(s=e[a=n>=0?n--:i++])&&0==(2&s.__u)&&l==s.key&&u==s.type)return a;return-1}function L(t,e,r){"-"==e[0]?t.setProperty(e,null==r?"":r):t[e]=null==r?"":"number"!=typeof r||m.test(e)?r:r+"px"}function M(t,e,r,o,n){var i,a;t:if("style"==e)if("string"==typeof r)t.style.cssText=r;else{if("string"==typeof o&&(t.style.cssText=o=""),o)for(e in o)r&&e in r||L(t.style,e,"");if(r)for(e in r)o&&r[e]==o[e]||L(t.style,e,r[e])}else if("o"==e[0]&&"n"==e[1])i=e!=(e=e.replace(u,"$1")),a=e.toLowerCase(),e=a in t||"onFocusOut"==e||"onFocusIn"==e?a.slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=r,r?o?r.u=o.u:(r.u=s,t.addEventListener(e,i?f:c,i)):t.removeEventListener(e,i?f:c,i);else{if("http://www.w3.org/2000/svg"==n)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=e&&"height"!=e&&"href"!=e&&"list"!=e&&"form"!=e&&"tabIndex"!=e&&"download"!=e&&"rowSpan"!=e&&"colSpan"!=e&&"role"!=e&&"popover"!=e&&e in t)try{t[e]=null==r?"":r;break t}catch(t){}"function"==typeof r||(null==r||!1===r&&"-"!=e[4]?t.removeAttribute(e):t.setAttribute(e,"popover"==e&&1==r?"":r))}}function A(t){return function(e){if(this.l){var o=this.l[e.type+t];if(null==e.t)e.t=s++;else if(e.t<o.u)return;return o(r.event?r.event(e):e)}}}function j(t,e,o,n,i,a,l,u,s,c){var f,p,d,h,m,y,k,C,T,q,S,$,L,M,A,j,E,R=e.type;if(void 0!==e.constructor)return null;128&o.__u&&(s=!!(32&o.__u),a=[u=e.__e=o.__e]),(f=r.__b)&&f(e);t:if("function"==typeof R)try{if(C=e.props,T="prototype"in R&&R.prototype.render,q=(f=R.contextType)&&n[f.__c],S=f?q?q.props.value:f.__:n,o.__c?k=(p=e.__c=o.__c).__=p.__E:(T?e.__c=p=new R(C,S):(e.__c=p=new w(C,S),p.constructor=R,p.render=H),q&&q.sub(p),p.state||(p.state={}),p.__n=n,d=p.__d=!0,p.__h=[],p._sb=[]),T&&null==p.__s&&(p.__s=p.state),T&&null!=R.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=g({},p.__s)),g(p.__s,R.getDerivedStateFromProps(C,p.__s))),h=p.props,m=p.state,p.__v=e,d)T&&null==R.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),T&&null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else{if(T&&null==R.getDerivedStateFromProps&&C!==h&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(C,S),e.__v==o.__v||!p.__e&&null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(C,p.__s,S)){for(e.__v!=o.__v&&(p.props=C,p.state=p.__s,p.__d=!1),e.__e=o.__e,e.__k=o.__k,e.__k.some((function(t){t&&(t.__=e)})),$=0;$<p._sb.length;$++)p.__h.push(p._sb[$]);p._sb=[],p.__h.length&&l.push(p);break t}null!=p.componentWillUpdate&&p.componentWillUpdate(C,p.__s,S),T&&null!=p.componentDidUpdate&&p.__h.push((function(){p.componentDidUpdate(h,m,y)}))}if(p.context=S,p.props=C,p.__P=t,p.__e=!1,L=r.__r,M=0,T){for(p.state=p.__s,p.__d=!1,L&&L(e),f=p.render(p.props,p.state,p.context),A=0;A<p._sb.length;A++)p.__h.push(p._sb[A]);p._sb=[]}else do{p.__d=!1,L&&L(e),f=p.render(p.props,p.state,p.context),p.state=p.__s}while(p.__d&&++M<25);p.state=p.__s,null!=p.getChildContext&&(n=g(g({},n),p.getChildContext())),T&&!d&&null!=p.getSnapshotBeforeUpdate&&(y=p.getSnapshotBeforeUpdate(h,m)),j=f,null!=f&&f.type===x&&null==f.key&&(j=Z(f.props.children)),u=_(t,b(j)?j:[j],e,o,n,i,a,l,u,s,c),p.base=e.__e,e.__u&=-161,p.__h.length&&l.push(p),k&&(p.__E=p.__=null)}catch(t){if(e.__v=null,s||null!=a)if(t.then){for(e.__u|=s?160:128;u&&8==u.nodeType&&u.nextSibling;)u=u.nextSibling;a[a.indexOf(u)]=null,e.__e=u}else{for(E=a.length;E--;)v(a[E]);z(e)}else e.__e=o.__e,e.__k=o.__k,t.then||z(e);r.__e(t,e,o)}else null==a&&e.__v==o.__v?(e.__k=o.__k,e.__e=o.__e):u=e.__e=I(o.__e,e,o,n,i,a,l,s,c);return(f=r.diffed)&&f(e),128&e.__u?void 0:u}function z(t){t&&t.__c&&(t.__c.__e=!0),t&&t.__k&&t.__k.forEach(z)}function E(t,e,o){for(var n=0;n<o.length;n++)R(o[n],o[++n],o[++n]);r.__c&&r.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){r.__e(t,e.__v)}}))}function Z(t){return"object"!=typeof t||null==t||t.__b&&t.__b>0?t:b(t)?t.map(Z):g({},t)}function I(t,o,n,i,a,l,u,s,c){var f,p,h,m,g,y,x,w=n.props||d,C=o.props,T=o.type;if("svg"==T?a="http://www.w3.org/2000/svg":"math"==T?a="http://www.w3.org/1998/Math/MathML":a||(a="http://www.w3.org/1999/xhtml"),null!=l)for(f=0;f<l.length;f++)if((g=l[f])&&"setAttribute"in g==!!T&&(T?g.localName==T:3==g.nodeType)){t=g,l[f]=null;break}if(null==t){if(null==T)return document.createTextNode(C);t=document.createElementNS(a,T,C.is&&C),s&&(r.__m&&r.__m(o,l),s=!1),l=null}if(null==T)w===C||s&&t.data==C||(t.data=C);else{if(l=l&&e.call(t.childNodes),!s&&null!=l)for(w={},f=0;f<t.attributes.length;f++)w[(g=t.attributes[f]).name]=g.value;for(f in w)if(g=w[f],"children"==f);else if("dangerouslySetInnerHTML"==f)h=g;else if(!(f in C)){if("value"==f&&"defaultValue"in C||"checked"==f&&"defaultChecked"in C)continue;M(t,f,null,g,a)}for(f in C)g=C[f],"children"==f?m=g:"dangerouslySetInnerHTML"==f?p=g:"value"==f?y=g:"checked"==f?x=g:s&&"function"!=typeof g||w[f]===g||M(t,f,g,w[f],a);if(p)s||h&&(p.__html==h.__html||p.__html==t.innerHTML)||(t.innerHTML=p.__html),o.__k=[];else if(h&&(t.innerHTML=""),_("template"==o.type?t.content:t,b(m)?m:[m],o,n,i,"foreignObject"==T?"http://www.w3.org/1999/xhtml":a,l,u,l?l[0]:n.__k&&k(n,0),s,c),null!=l)for(f=l.length;f--;)v(l[f]);s||(f="value","progress"==T&&null==y?t.removeAttribute("value"):null!=y&&(y!==t[f]||"progress"==T&&!y||"option"==T&&y!=w[f])&&M(t,f,y,w[f],a),f="checked",null!=x&&x!=t[f]&&M(t,f,x,w[f],a))}return t}function R(t,e,o){try{if("function"==typeof t){var n="function"==typeof t.__u;n&&t.__u(),n&&null==e||(t.__u=t(e))}else t.current=e}catch(t){r.__e(t,o)}}function D(t,e,o){var n,i;if(r.unmount&&r.unmount(t),(n=t.ref)&&(n.current&&n.current!=t.__e||R(n,null,e)),null!=(n=t.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(t){r.__e(t,e)}n.base=n.__P=null}if(n=t.__k)for(i=0;i<n.length;i++)n[i]&&D(n[i],e,o||"function"!=typeof t.type);o||v(t.__e),t.__c=t.__=t.__e=void 0}function H(t,e,r){return this.constructor(t,r)}function F(t,o,n){var i,a,l;o==document&&(o=document.documentElement),r.__&&r.__(t,o),i=!1?null:o.__k,a=[],l=[],j(o,t=o.__k=function(t,r,o){var n,i,a,l={};for(a in r)"key"==a?n=r[a]:"ref"==a?i=r[a]:l[a]=r[a];if(arguments.length>2&&(l.children=arguments.length>3?e.call(arguments,2):o),"function"==typeof t&&null!=t.defaultProps)for(a in t.defaultProps)void 0===l[a]&&(l[a]=t.defaultProps[a]);return y(t,l,n,i,null)}(x,null,[t]),i||d,d,o.namespaceURI,i?null:o.firstChild?e.call(o.childNodes):null,a,i?i.__e:o.firstChild,false,l),E(a,t,l)}e=h.slice,r={__e:function(t,e,r,o){for(var n,i,a;e=e.__;)if((n=e.__c)&&!n.__)try{if((i=n.constructor)&&null!=i.getDerivedStateFromError&&(n.setState(i.getDerivedStateFromError(t)),a=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(t,o||{}),a=n.__d),a)return n.__E=n}catch(e){t=e}throw t}},o=0,w.prototype.setState=function(t,e){var r;r=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=g({},this.state),"function"==typeof t&&(t=t(g({},r),this.props)),t&&g(r,t),null!=t&&this.__v&&(e&&this._sb.push(e),T(this))},w.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),T(this))},w.prototype.render=x,n=[],a="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,l=function(t,e){return t.__v.__b-e.__v.__b},$.__r=0,u=/(PointerCapture)$|Capture$/i,s=0,c=A(!1),f=A(!0),p=0;var O="undefined"!=typeof window?window:void 0,V="undefined"!=typeof globalThis?globalThis:O;"undefined"==typeof self&&(V.self=V),"undefined"==typeof File&&(V.File=function(){});var P=null==V?void 0:V.navigator,B=null==V?void 0:V.document;null==V||V.location,null==V||V.fetch,null!=V&&V.XMLHttpRequest&&"withCredentials"in new V.XMLHttpRequest&&V.XMLHttpRequest,null==V||V.AbortController,null==P||P.userAgent;var N=null!=O?O:{},{entries:Q,setPrototypeOf:U,isFrozen:W,getPrototypeOf:Y,getOwnPropertyDescriptor:X}=Object,{freeze:G,seal:K,create:J}=Object,{apply:tt,construct:et}="undefined"!=typeof Reflect&&Reflect;G||(G=function(t){return t}),K||(K=function(t){return t}),tt||(tt=function(t,e){for(var r=arguments.length,o=new Array(r>2?r-2:0),n=2;n<r;n++)o[n-2]=arguments[n];return t.apply(e,o)}),et||(et=function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];return new t(...r)});var rt,ot=gt(Array.prototype.forEach),nt=gt(Array.prototype.lastIndexOf),it=gt(Array.prototype.pop),at=gt(Array.prototype.push),lt=gt(Array.prototype.splice),ut=gt(String.prototype.toLowerCase),st=gt(String.prototype.toString),ct=gt(String.prototype.match),ft=gt(String.prototype.replace),pt=gt(String.prototype.indexOf),dt=gt(String.prototype.trim),ht=gt(Object.prototype.hasOwnProperty),mt=gt(RegExp.prototype.test),bt=(rt=TypeError,function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return et(rt,e)});function gt(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var r=arguments.length,o=new Array(r>1?r-1:0),n=1;n<r;n++)o[n-1]=arguments[n];return tt(t,e,o)}}function vt(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ut;U&&U(t,null);for(var o=e.length;o--;){var n=e[o];if("string"==typeof n){var i=r(n);i!==n&&(W(e)||(e[o]=i),n=i)}t[n]=!0}return t}function yt(t){for(var e=0;e<t.length;e++){ht(t,e)||(t[e]=null)}return t}function xt(t){var e=J(null);for(var[r,o]of Q(t)){ht(t,r)&&(Array.isArray(o)?e[r]=yt(o):o&&"object"==typeof o&&o.constructor===Object?e[r]=xt(o):e[r]=o)}return e}function wt(t,e){for(;null!==t;){var r=X(t,e);if(r){if(r.get)return gt(r.get);if("function"==typeof r.value)return gt(r.value)}t=Y(t)}return function(){return null}}var kt=G(["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"]),Ct=G(["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"]),Tt=G(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),_t=G(["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"]),qt=G(["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"]),St=G(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Lt=G(["#text"]),Mt=G(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),At=G(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),jt=G(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),zt=G(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Et=K(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Zt=K(/<%[\w\W]*|[\w\W]*%>/gm),It=K(/\$\{[\w\W]*/gm),Rt=K(/^data-[\-\w.\u00B7-\uFFFF]+$/),Dt=K(/^aria-[\-\w]+$/),Ht=K(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ft=K(/^(?:\w+script|data):/i),Ot=K(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Vt=K(/^html$/i),Pt=K(/^[a-z][.\w]*(-[.\w]+)+$/i),Bt=Object.freeze({__proto__:null,ARIA_ATTR:Dt,ATTR_WHITESPACE:Ot,CUSTOM_ELEMENT:Pt,DATA_ATTR:Rt,DOCTYPE_NAME:Vt,ERB_EXPR:Zt,IS_ALLOWED_URI:Ht,IS_SCRIPT_OR_DATA:Ft,MUSTACHE_EXPR:Et,TMPLIT_EXPR:It}),Nt=1,Qt=3,Ut=7,$t=8,Wt=9,Yt=function(){return"undefined"==typeof window?null:window};var Xt=function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Yt(),r=e=>t(e);if(r.version="3.3.1",r.removed=[],!e||!e.document||e.document.nodeType!==Wt||!e.Element)return r.isSupported=!1,r;var o,{document:n}=e,i=n,a=i.currentScript,{DocumentFragment:l,HTMLTemplateElement:u,Node:s,Element:c,NodeFilter:f,NamedNodeMap:p=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:d,DOMParser:h,trustedTypes:m}=e,b=c.prototype,g=wt(b,"cloneNode"),v=wt(b,"remove"),y=wt(b,"nextSibling"),x=wt(b,"childNodes"),w=wt(b,"parentNode");if("function"==typeof u){var k=n.createElement("template");k.content&&k.content.ownerDocument&&(n=k.content.ownerDocument)}var C="",{implementation:T,createNodeIterator:_,createDocumentFragment:q,getElementsByTagName:S}=n,{importNode:L}=i,M={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};r.isSupported="function"==typeof Q&&"function"==typeof w&&T&&void 0!==T.createHTMLDocument;var{MUSTACHE_EXPR:A,ERB_EXPR:j,TMPLIT_EXPR:z,DATA_ATTR:E,ARIA_ATTR:Z,IS_SCRIPT_OR_DATA:I,ATTR_WHITESPACE:R,CUSTOM_ELEMENT:D}=Bt,{IS_ALLOWED_URI:H}=Bt,F=null,O=vt({},[...kt,...Ct,...Tt,...qt,...Lt]),V=null,P=vt({},[...Mt,...At,...jt,...zt]),B=Object.seal(J(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}})),N=null,U=null,W=Object.seal(J(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Y=!0,X=!0,K=!1,tt=!0,et=!1,rt=!0,gt=!1,yt=!1,Et=!1,Zt=!1,It=!1,Rt=!1,Dt=!0,Ft=!1,Ot=!0,Pt=!1,Xt={},Gt=null,Kt=vt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Jt=null,te=vt({},["audio","video","img","source","image","track"]),ee=null,re=vt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),oe="http://www.w3.org/1998/Math/MathML",ne="http://www.w3.org/2000/svg",ie="http://www.w3.org/1999/xhtml",ae=ie,le=!1,ue=null,se=vt({},[oe,ne,ie],st),ce=vt({},["mi","mo","mn","ms","mtext"]),fe=vt({},["annotation-xml"]),pe=vt({},["title","style","font","a","script"]),de=null,he=["application/xhtml+xml","text/html"],me=null,be=null,ge=n.createElement("form"),ve=function(t){return t instanceof RegExp||t instanceof Function},ye=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!be||be!==t){if(t&&"object"==typeof t||(t={}),t=xt(t),de=-1===he.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,me="application/xhtml+xml"===de?st:ut,F=ht(t,"ALLOWED_TAGS")?vt({},t.ALLOWED_TAGS,me):O,V=ht(t,"ALLOWED_ATTR")?vt({},t.ALLOWED_ATTR,me):P,ue=ht(t,"ALLOWED_NAMESPACES")?vt({},t.ALLOWED_NAMESPACES,st):se,ee=ht(t,"ADD_URI_SAFE_ATTR")?vt(xt(re),t.ADD_URI_SAFE_ATTR,me):re,Jt=ht(t,"ADD_DATA_URI_TAGS")?vt(xt(te),t.ADD_DATA_URI_TAGS,me):te,Gt=ht(t,"FORBID_CONTENTS")?vt({},t.FORBID_CONTENTS,me):Kt,N=ht(t,"FORBID_TAGS")?vt({},t.FORBID_TAGS,me):xt({}),U=ht(t,"FORBID_ATTR")?vt({},t.FORBID_ATTR,me):xt({}),Xt=!!ht(t,"USE_PROFILES")&&t.USE_PROFILES,Y=!1!==t.ALLOW_ARIA_ATTR,X=!1!==t.ALLOW_DATA_ATTR,K=t.ALLOW_UNKNOWN_PROTOCOLS||!1,tt=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,et=t.SAFE_FOR_TEMPLATES||!1,rt=!1!==t.SAFE_FOR_XML,gt=t.WHOLE_DOCUMENT||!1,Zt=t.RETURN_DOM||!1,It=t.RETURN_DOM_FRAGMENT||!1,Rt=t.RETURN_TRUSTED_TYPE||!1,Et=t.FORCE_BODY||!1,Dt=!1!==t.SANITIZE_DOM,Ft=t.SANITIZE_NAMED_PROPS||!1,Ot=!1!==t.KEEP_CONTENT,Pt=t.IN_PLACE||!1,H=t.ALLOWED_URI_REGEXP||Ht,ae=t.NAMESPACE||ie,ce=t.MATHML_TEXT_INTEGRATION_POINTS||ce,fe=t.HTML_INTEGRATION_POINTS||fe,B=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&ve(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(B.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ve(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(B.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(B.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),et&&(X=!1),It&&(Zt=!0),Xt&&(F=vt({},Lt),V=[],!0===Xt.html&&(vt(F,kt),vt(V,Mt)),!0===Xt.svg&&(vt(F,Ct),vt(V,At),vt(V,zt)),!0===Xt.svgFilters&&(vt(F,Tt),vt(V,At),vt(V,zt)),!0===Xt.mathMl&&(vt(F,qt),vt(V,jt),vt(V,zt))),t.ADD_TAGS&&("function"==typeof t.ADD_TAGS?W.tagCheck=t.ADD_TAGS:(F===O&&(F=xt(F)),vt(F,t.ADD_TAGS,me))),t.ADD_ATTR&&("function"==typeof t.ADD_ATTR?W.attributeCheck=t.ADD_ATTR:(V===P&&(V=xt(V)),vt(V,t.ADD_ATTR,me))),t.ADD_URI_SAFE_ATTR&&vt(ee,t.ADD_URI_SAFE_ATTR,me),t.FORBID_CONTENTS&&(Gt===Kt&&(Gt=xt(Gt)),vt(Gt,t.FORBID_CONTENTS,me)),t.ADD_FORBID_CONTENTS&&(Gt===Kt&&(Gt=xt(Gt)),vt(Gt,t.ADD_FORBID_CONTENTS,me)),Ot&&(F["#text"]=!0),gt&&vt(F,["html","head","body"]),F.table&&(vt(F,["tbody"]),delete N.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw bt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw bt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');o=t.TRUSTED_TYPES_POLICY,C=o.createHTML("")}else void 0===o&&(o=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;var r=null,o="data-tt-policy-suffix";e&&e.hasAttribute(o)&&(r=e.getAttribute(o));var n="dompurify"+(r?"#"+r:"");try{return t.createPolicy(n,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+n+" could not be created."),null}}(m,a)),null!==o&&"string"==typeof C&&(C=o.createHTML(""));G&&G(t),be=t}},xe=vt({},[...Ct,...Tt,..._t]),we=vt({},[...qt,...St]),ke=function(t){at(r.removed,{element:t});try{w(t).removeChild(t)}catch(e){v(t)}},Ce=function(t,e){try{at(r.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){at(r.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t)if(Zt||It)try{ke(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},Te=function(t){var e=null,r=null;if(Et)t="<remove></remove>"+t;else{var i=ct(t,/^[\r\n\t ]+/);r=i&&i[0]}"application/xhtml+xml"===de&&ae===ie&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");var a=o?o.createHTML(t):t;if(ae===ie)try{e=(new h).parseFromString(a,de)}catch(t){}if(!e||!e.documentElement){e=T.createDocument(ae,"template",null);try{e.documentElement.innerHTML=le?C:a}catch(t){}}var l=e.body||e.documentElement;return t&&r&&l.insertBefore(n.createTextNode(r),l.childNodes[0]||null),ae===ie?S.call(e,gt?"html":"body")[0]:gt?e.documentElement:l},_e=function(t){return _.call(t.ownerDocument||t,t,f.SHOW_ELEMENT|f.SHOW_COMMENT|f.SHOW_TEXT|f.SHOW_PROCESSING_INSTRUCTION|f.SHOW_CDATA_SECTION,null)},qe=function(t){return t instanceof d&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof p)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)},Se=function(t){return"function"==typeof s&&t instanceof s};function Le(t,e,o){ot(t,(t=>{t.call(r,e,o,be)}))}var Me=function(t){var e=null;if(Le(M.beforeSanitizeElements,t,null),qe(t))return ke(t),!0;var o=me(t.nodeName);if(Le(M.uponSanitizeElement,t,{tagName:o,allowedTags:F}),rt&&t.hasChildNodes()&&!Se(t.firstElementChild)&&mt(/<[/\w!]/g,t.innerHTML)&&mt(/<[/\w!]/g,t.textContent))return ke(t),!0;if(t.nodeType===Ut)return ke(t),!0;if(rt&&t.nodeType===$t&&mt(/<[/\w]/g,t.data))return ke(t),!0;if(!(W.tagCheck instanceof Function&&W.tagCheck(o))&&(!F[o]||N[o])){if(!N[o]&&je(o)){if(B.tagNameCheck instanceof RegExp&&mt(B.tagNameCheck,o))return!1;if(B.tagNameCheck instanceof Function&&B.tagNameCheck(o))return!1}if(Ot&&!Gt[o]){var n=w(t)||t.parentNode,i=x(t)||t.childNodes;if(i&&n)for(var a=i.length-1;a>=0;--a){var l=g(i[a],!0);l.__removalCount=(t.__removalCount||0)+1,n.insertBefore(l,y(t))}}return ke(t),!0}return t instanceof c&&!function(t){var e=w(t);e&&e.tagName||(e={namespaceURI:ae,tagName:"template"});var r=ut(t.tagName),o=ut(e.tagName);return!!ue[t.namespaceURI]&&(t.namespaceURI===ne?e.namespaceURI===ie?"svg"===r:e.namespaceURI===oe?"svg"===r&&("annotation-xml"===o||ce[o]):Boolean(xe[r]):t.namespaceURI===oe?e.namespaceURI===ie?"math"===r:e.namespaceURI===ne?"math"===r&&fe[o]:Boolean(we[r]):t.namespaceURI===ie?!(e.namespaceURI===ne&&!fe[o])&&!(e.namespaceURI===oe&&!ce[o])&&!we[r]&&(pe[r]||!xe[r]):!("application/xhtml+xml"!==de||!ue[t.namespaceURI]))}(t)?(ke(t),!0):"noscript"!==o&&"noembed"!==o&&"noframes"!==o||!mt(/<\/no(script|embed|frames)/i,t.innerHTML)?(et&&t.nodeType===Qt&&(e=t.textContent,ot([A,j,z],(t=>{e=ft(e,t," ")})),t.textContent!==e&&(at(r.removed,{element:t.cloneNode()}),t.textContent=e)),Le(M.afterSanitizeElements,t,null),!1):(ke(t),!0)},Ae=function(t,e,r){if(Dt&&("id"===e||"name"===e)&&(r in n||r in ge))return!1;if(X&&!U[e]&&mt(E,e));else if(Y&&mt(Z,e));else if(W.attributeCheck instanceof Function&&W.attributeCheck(e,t));else if(!V[e]||U[e]){if(!(je(t)&&(B.tagNameCheck instanceof RegExp&&mt(B.tagNameCheck,t)||B.tagNameCheck instanceof Function&&B.tagNameCheck(t))&&(B.attributeNameCheck instanceof RegExp&&mt(B.attributeNameCheck,e)||B.attributeNameCheck instanceof Function&&B.attributeNameCheck(e,t))||"is"===e&&B.allowCustomizedBuiltInElements&&(B.tagNameCheck instanceof RegExp&&mt(B.tagNameCheck,r)||B.tagNameCheck instanceof Function&&B.tagNameCheck(r))))return!1}else if(ee[e]);else if(mt(H,ft(r,R,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==pt(r,"data:")||!Jt[t]){if(K&&!mt(I,ft(r,R,"")));else if(r)return!1}else;return!0},je=function(t){return"annotation-xml"!==t&&ct(t,D)},ze=function(t){Le(M.beforeSanitizeAttributes,t,null);var{attributes:e}=t;if(e&&!qe(t)){for(var n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:V,forceKeepAttr:void 0},i=e.length,a=function(){var a=e[i],{name:l,namespaceURI:u,value:s}=a,c=me(l),f=s,p="value"===l?f:dt(f);if(n.attrName=c,n.attrValue=p,n.keepAttr=!0,n.forceKeepAttr=void 0,Le(M.uponSanitizeAttribute,t,n),p=n.attrValue,!Ft||"id"!==c&&"name"!==c||(Ce(l,t),p="user-content-"+p),rt&&mt(/((--!?|])>)|<\/(style|title|textarea)/i,p))return Ce(l,t),0;if("attributename"===c&&ct(p,"href"))return Ce(l,t),0;if(n.forceKeepAttr)return 0;if(!n.keepAttr)return Ce(l,t),0;if(!tt&&mt(/\/>/i,p))return Ce(l,t),0;et&&ot([A,j,z],(t=>{p=ft(p,t," ")}));var d=me(t.nodeName);if(!Ae(d,c,p))return Ce(l,t),0;if(o&&"object"==typeof m&&"function"==typeof m.getAttributeType)if(u);else switch(m.getAttributeType(d,c)){case"TrustedHTML":p=o.createHTML(p);break;case"TrustedScriptURL":p=o.createScriptURL(p)}if(p!==f)try{u?t.setAttributeNS(u,l,p):t.setAttribute(l,p),qe(t)?ke(t):it(r.removed)}catch(e){Ce(l,t)}};i--;)a();Le(M.afterSanitizeAttributes,t,null)}},Ee=function t(e){var r=null,o=_e(e);for(Le(M.beforeSanitizeShadowDOM,e,null);r=o.nextNode();)Le(M.uponSanitizeShadowNode,r,null),Me(r),ze(r),r.content instanceof l&&t(r.content);Le(M.afterSanitizeShadowDOM,e,null)};return r.sanitize=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,a=null,u=null,c=null;if((le=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!Se(t)){if("function"!=typeof t.toString)throw bt("toString is not a function");if("string"!=typeof(t=t.toString()))throw bt("dirty is not a string, aborting")}if(!r.isSupported)return t;if(yt||ye(e),r.removed=[],"string"==typeof t&&(Pt=!1),Pt){if(t.nodeName){var f=me(t.nodeName);if(!F[f]||N[f])throw bt("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof s)(a=(n=Te("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType===Nt&&"BODY"===a.nodeName||"HTML"===a.nodeName?n=a:n.appendChild(a);else{if(!Zt&&!et&&!gt&&-1===t.indexOf("<"))return o&&Rt?o.createHTML(t):t;if(!(n=Te(t)))return Zt?null:Rt?C:""}n&&Et&&ke(n.firstChild);for(var p=_e(Pt?t:n);u=p.nextNode();)Me(u),ze(u),u.content instanceof l&&Ee(u.content);if(Pt)return t;if(Zt){if(It)for(c=q.call(n.ownerDocument);n.firstChild;)c.appendChild(n.firstChild);else c=n;return(V.shadowroot||V.shadowrootmode)&&(c=L.call(i,c,!0)),c}var d=gt?n.outerHTML:n.innerHTML;return gt&&F["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&mt(Vt,n.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+d),et&&ot([A,j,z],(t=>{d=ft(d,t," ")})),o&&Rt?o.createHTML(d):d},r.setConfig=function(){ye(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),yt=!0},r.clearConfig=function(){be=null,yt=!1},r.isValidAttribute=function(t,e,r){be||ye({});var o=me(t),n=me(e);return Ae(o,n,r)},r.addHook=function(t,e){"function"==typeof e&&at(M[t],e)},r.removeHook=function(t,e){if(void 0!==e){var r=nt(M[t],e);return-1===r?void 0:lt(M[t],r,1)[0]}return it(M[t])},r.removeHooks=function(t){M[t]=[]},r.removeAllHooks=function(){M={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},r}(),Gt={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},Kt=function(t,e){var{debugEnabled:r}=void 0===e?{}:e,o={o:function(e){if(O&&(N.POSTHOG_DEBUG||r)&&!(t=>void 0===t)(O.console)&&O.console){for(var o=("__rrweb_original__"in O.console[e]?O.console[e].__rrweb_original__:O.console[e]),n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];o(t,...i)}},info:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];o.o("log",...e)},warn:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];o.o("warn",...e)},error:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];o.o("error",...e)},critical:function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];console.error(t,...r)},uninitializedWarning:t=>{o.error("You must initialize PostHog before calling "+t)},createLogger:(e,r)=>Kt(t+" "+e,r)};return o},Jt=Kt("[PostHog.js]").createLogger,te=Jt("[Stylesheet Loader]"),ee=(t,e,r)=>{var o=t.createElement("style");return o.innerText=e,o||(te.error("prepare_external_dependency_stylesheet returned null"),null)};Jt("[Surveys]"),null!=P&&P.sendBeacon;var re,oe,ne,ie,ae=0,le=[],ue=r,se=ue.__b,ce=ue.__r,fe=ue.diffed,pe=ue.__c,de=ue.unmount,he=ue.__;function me(t,e){ue.__h&&ue.__h(oe,t,ae||e),ae=0;var r=oe.__H||(oe.__H={__:[],__h:[]});return t>=r.__.length&&r.__.push({}),r.__[t]}function be(t){return ae=1,function(t,e,r){var o=me(re++,2);if(o.t=t,!o.__c&&(o.__=[Te(void 0,e),function(t){var e=o.__N?o.__N[0]:o.__[0],r=o.t(e,t);e!==r&&(o.__N=[r,o.__[1]],o.__c.setState({}))}],o.__c=oe,!oe.__f)){var n=function(t,e,r){if(!o.__c.__H)return!0;var n=o.__c.__H.__.filter((function(t){return!!t.__c}));if(n.every((function(t){return!t.__N})))return!i||i.call(this,t,e,r);var a=o.__c.props!==t;return n.forEach((function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(a=!0)}})),i&&i.call(this,t,e,r)||a};oe.__f=!0;var i=oe.shouldComponentUpdate,a=oe.componentWillUpdate;oe.componentWillUpdate=function(t,e,r){if(this.__e){var o=i;i=void 0,n(t,e,r),i=o}a&&a.call(this,t,e,r)},oe.shouldComponentUpdate=n}return o.__N||o.__}(Te,t)}function ge(t){return ae=5,function(t,e){var r=me(re++,7);return Ce(r.__H,e)&&(r.__=t(),r.__H=e,r.__h=t),r.__}((function(){return{current:t}}),[])}function ve(){for(var t;t=le.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(we),t.__H.__h.forEach(ke),t.__H.__h=[]}catch(e){t.__H.__h=[],ue.__e(e,t.__v)}}ue.__b=function(t){oe=null,se&&se(t)},ue.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),he&&he(t,e)},ue.__r=function(t){ce&&ce(t),re=0;var e=(oe=t.__c).__H;e&&(ne===oe?(e.__h=[],oe.__h=[],e.__.forEach((function(t){t.__N&&(t.__=t.__N),t.u=t.__N=void 0}))):(e.__h.forEach(we),e.__h.forEach(ke),e.__h=[],re=0)),ne=oe},ue.diffed=function(t){fe&&fe(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==le.push(e)&&ie===ue.requestAnimationFrame||((ie=ue.requestAnimationFrame)||xe)(ve)),e.__H.__.forEach((function(t){t.u&&(t.__H=t.u),t.u=void 0}))),ne=oe=null},ue.__c=function(t,e){e.some((function(t){try{t.__h.forEach(we),t.__h=t.__h.filter((function(t){return!t.__||ke(t)}))}catch(r){e.some((function(t){t.__h&&(t.__h=[])})),e=[],ue.__e(r,t.__v)}})),pe&&pe(t,e)},ue.unmount=function(t){de&&de(t);var e,r=t.__c;r&&r.__H&&(r.__H.__.forEach((function(t){try{we(t)}catch(t){e=t}})),r.__H=void 0,e&&ue.__e(e,r.__v))};var ye="function"==typeof requestAnimationFrame;function xe(t){var e,r=function(){clearTimeout(o),ye&&cancelAnimationFrame(e),setTimeout(t)},o=setTimeout(r,35);ye&&(e=requestAnimationFrame(r))}function we(t){var e=oe,r=t.__c;"function"==typeof r&&(t.__c=void 0,r()),oe=e}function ke(t){var e=oe;t.__c=t.__(),oe=e}function Ce(t,e){return!t||t.length!==e.length||e.some((function(e,r){return e!==t[r]}))}function Te(t,e){return"function"==typeof e?e(t):e}var _e="#020617",qe={backgroundColor:"#eeeded"};function Se(t){if(t.startsWith("#")){var e=t.replace(/^#/,"");return/^[0-9A-Fa-f]{3}$/.test(e)&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),/^[0-9A-Fa-f]{6}$/.test(e)?"rgb("+parseInt(e.slice(0,2),16)+","+parseInt(e.slice(2,4),16)+","+parseInt(e.slice(4,6),16)+")":"rgb(255, 255, 255)"}return"rgb(255, 255, 255)"}function Le(t){var e;void 0===t&&(t=qe.backgroundColor),"#"===t[0]&&(e=Se(t)),t.startsWith("rgb")&&(e=t);var r={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4","indianred ":"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}[t.toLowerCase()];if(r&&(e=Se(r)),!e)return _e;var o=e.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/);if(o){var n=parseInt(o[1]),i=parseInt(o[2]),a=parseInt(o[3]);return Math.sqrt(n*n*.299+i*i*.587+a*a*.114)>127.5?_e:"white"}return _e}!function(t){function e(t){var r,o;return this.getChildContext||(r=new Set,(o={})[e.__c]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(t){this.props.value!=t.value&&r.forEach((function(t){t.__e=!0,T(t)}))},this.sub=function(t){r.add(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){r&&r.delete(t),e&&e.call(t)}}),t.children}e.__c="__cC"+p++,e.__=t,e.Provider=e.__l=(e.Consumer=function(t,e){return t.children(e)}).contextType=e}({isPreviewMode:!1,previewPageIndex:0,onPopupSurveyDismissed:()=>{},isPopup:!0,onPreviewSubmit:()=>{},surveySubmissionId:"",properties:void 0});var Me=':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);box-shadow:var(--ph-tour-box-shadow);max-width:var(--ph-tour-max-width);min-width:280px;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--modal{box-shadow:0 8px 32px rgba(0,0,0,.2),0 2px 8px rgba(0,0,0,.1)}.ph-tour-arrow{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%;left:50%;transform:translateX(-50%)}.ph-tour-arrow--bottom{border-top-color:var(--ph-tour-background-color);left:50%;top:100%;transform:translateX(-50%)}.ph-tour-arrow--left{border-right-color:var(--ph-tour-background-color);right:100%;top:50%;transform:translateY(-50%)}.ph-tour-arrow--right{border-left-color:var(--ph-tour-background-color);left:100%;top:50%;transform:translateY(-50%)}.ph-tour-content{color:var(--ph-tour-text-color);font-size:14px;line-height:1.5;margin-bottom:16px;padding-right:24px}.ph-tour-content h1,.ph-tour-content h2{font-weight:600;margin-bottom:8px}.ph-tour-content h1{font-size:18px}.ph-tour-content h2{font-size:16px}.ph-tour-content p{margin-bottom:8px}.ph-tour-content p:last-child{margin-bottom:0}.ph-tour-content strong{font-weight:600}.ph-tour-content em{font-style:italic}.ph-tour-content ol,.ph-tour-content ul{margin-bottom:8px;margin-left:20px}.ph-tour-content h3{font-size:14px;font-weight:600;margin-bottom:8px}.ph-tour-content .ph-tour-link,.ph-tour-content a{color:inherit;text-decoration:underline}.ph-tour-content a:hover{opacity:.8}.ph-tour-content code{background:rgba(0,0,0,.06);border-radius:4px;font-size:.875em;padding:2px 6px}.ph-tour-content code,.ph-tour-content pre{font-family:SF Mono,Monaco,Consolas,monospace}.ph-tour-content pre{background:rgba(0,0,0,.04);border-radius:6px;font-size:13px;line-height:1.5;margin-bottom:8px;overflow-x:auto;padding:12px}.ph-tour-content pre code{background:transparent;border-radius:0;font-size:inherit;padding:0}.ph-tour-content code *,.ph-tour-content pre *{font-family:inherit}.ph-tour-content .hljs-comment,.ph-tour-content .hljs-quote{color:#6a737d;font-style:italic}.ph-tour-content .hljs-keyword,.ph-tour-content .hljs-selector-tag{color:#d73a49}.ph-tour-content .hljs-doctag,.ph-tour-content .hljs-regexp,.ph-tour-content .hljs-string{color:#032f62}.ph-tour-content .hljs-literal,.ph-tour-content .hljs-number,.ph-tour-content .hljs-template-variable,.ph-tour-content .hljs-variable{color:#005cc5}.ph-tour-content .hljs-section,.ph-tour-content .hljs-selector-class,.ph-tour-content .hljs-selector-id,.ph-tour-content .hljs-title,.ph-tour-content .hljs-title.function_{color:#6f42c1}.ph-tour-content .hljs-addition,.ph-tour-content .hljs-attr,.ph-tour-content .hljs-attribute,.ph-tour-content .hljs-built_in,.ph-tour-content .hljs-bullet,.ph-tour-content .hljs-name,.ph-tour-content .hljs-symbol{color:#22863a}.ph-tour-content .hljs-deletion,.ph-tour-content .hljs-subst{color:#b31d28}.ph-tour-content .hljs-meta{color:#032f62}.ph-tour-content .hljs-emphasis{font-style:italic}.ph-tour-content .hljs-strong{font-weight:700}.ph-tour-content .ph-tour-image,.ph-tour-content img{border-radius:6px;display:block;height:auto;margin:8px 0;max-width:100%}.ph-tour-content .ph-tour-embed{margin:8px 0}.ph-tour-content .ph-tour-embed-container{background:#000;border-radius:6px;overflow:hidden;padding-bottom:56.25%;position:relative;width:100%}.ph-tour-content .ph-tour-embed-container iframe{border:none;height:100%;left:0;position:absolute;top:0;width:100%}.ph-tour-content blockquote{border-left:3px solid var(--ph-tour-border-color);color:var(--ph-tour-text-secondary-color);font-style:italic;margin:8px 0;padding-left:12px}.ph-tour-footer{align-items:center;display:flex;gap:12px;justify-content:space-between}.ph-tour-progress{color:var(--ph-tour-text-secondary-color);font-size:12px}.ph-tour-buttons{display:flex;gap:8px;margin-left:auto}.ph-tour-button{align-items:center;border:none;border-radius:var(--ph-tour-button-border-radius);cursor:pointer;display:inline-flex;font-size:14px;font-weight:500;justify-content:center;padding:8px 16px;transition:opacity .15s ease,transform .1s ease}.ph-tour-button:hover{opacity:.9}.ph-tour-button:active{transform:scale(.98)}.ph-tour-button--primary{background:var(--ph-tour-button-color);color:var(--ph-tour-button-text-color)}.ph-tour-button--secondary{background:var(--ph-tour-button-secondary-color);border:1px solid var(--ph-tour-border-color);color:var(--ph-tour-button-secondary-text-color)}.ph-tour-dismiss{align-items:center;background:transparent;border:none;border-radius:4px;color:var(--ph-tour-text-secondary-color);cursor:pointer;display:flex;font-size:18px;height:24px;justify-content:center;line-height:1;position:absolute;right:8px;top:8px;transition:background .15s ease,color .15s ease;width:24px}.ph-tour-dismiss:hover{background:rgba(0,0,0,.08);color:var(--ph-tour-text-color)}.ph-tour-branding{align-items:center;border-top:1px solid var(--ph-tour-border-color);color:var(--ph-tour-branding-text-color,var(--ph-tour-text-secondary-color));display:flex;font-size:11px;gap:6px;justify-content:center;margin-top:12px;padding-top:12px;text-decoration:none}.ph-tour-branding:hover{color:var(--ph-tour-branding-text-color,var(--ph-tour-text-color))}.ph-tour-branding svg{height:14px;width:auto}.ph-tour-hidden{display:none!important}.ph-tour-survey-step{min-width:300px}.ph-tour-survey-question{color:var(--ph-tour-text-color);font-size:15px;font-weight:500;line-height:1.4;margin-bottom:16px;padding-right:24px}.ph-tour-survey-input-container{display:flex;flex-direction:column;gap:12px}.ph-tour-survey-textarea{background:#fff;border:1px solid var(--ph-tour-border-color);border-radius:6px;box-sizing:border-box;color:var(--ph-tour-text-color);font-family:var(--ph-tour-font-family);font-size:14px;min-height:80px;padding:10px 12px;resize:vertical;width:100%}.ph-tour-survey-textarea:focus{border-color:var(--ph-tour-button-color);box-shadow:0 0 0 2px rgba(0,0,0,.05);outline:none}.ph-tour-survey-textarea::placeholder{color:var(--ph-tour-text-secondary-color)}.ph-tour-survey-submit{align-self:flex-end}.ph-tour-survey-rating-container{display:flex;flex-direction:column;gap:8px;margin-bottom:8px}.ph-tour-survey-rating-labels{color:var(--ph-tour-text-secondary-color);display:flex;font-size:11px;justify-content:space-between}.ph-tour-survey-rating-emoji{display:flex;gap:8px;justify-content:center}.ph-tour-survey-emoji-button{align-items:center;background:var(--ph-tour-background-color);border:2px solid var(--ph-tour-border-color);border-radius:8px;cursor:pointer;display:flex;height:44px;justify-content:center;padding:0;transition:all .15s ease;width:44px}.ph-tour-survey-emoji-button:hover{background:rgba(0,0,0,.02);border-color:var(--ph-tour-button-color)}.ph-tour-survey-emoji-button--active{background:var(--ph-tour-button-color);border-color:var(--ph-tour-button-color)}.ph-tour-survey-emoji-button--active svg{fill:var(--ph-tour-button-text-color)}.ph-tour-survey-emoji-button svg{fill:var(--ph-tour-text-color);height:28px;transition:fill .15s ease;width:28px}.ph-tour-survey-rating-numbers{display:grid;gap:6px}.ph-tour-survey-number-button{align-items:center;background:var(--ph-tour-background-color);border:1px solid var(--ph-tour-border-color);border-radius:4px;color:var(--ph-tour-text-color);cursor:pointer;display:flex;font-family:var(--ph-tour-font-family);font-size:13px;font-weight:500;justify-content:center;padding:8px 4px;transition:all .15s ease}.ph-tour-survey-number-button:hover{background:rgba(0,0,0,.02);border-color:var(--ph-tour-button-color)}.ph-tour-survey-number-button--active{background:var(--ph-tour-button-color);border-color:var(--ph-tour-button-color);color:var(--ph-tour-button-text-color)}.ph-tour-banner{align-items:center;background:var(--ph-tour-background-color);border-bottom:1px solid var(--ph-tour-border-color);box-shadow:var(--ph-tour-box-shadow);display:flex;font-family:var(--ph-tour-font-family);gap:16px;justify-content:center;padding:12px 16px}a.ph-tour-banner{color:inherit;text-decoration:none}:host:has(.ph-tour-banner--sticky){position:sticky;top:0;z-index:var(--ph-tour-z-index)}.ph-tour-banner-content{color:var(--ph-tour-text-color);flex:1;font-size:14px;line-height:1.5;min-width:0;text-align:center}.ph-tour-banner-content p{margin:0}.ph-tour-banner-content strong{font-weight:600}.ph-tour-banner-content em{font-style:italic}.ph-tour-banner-content a{color:inherit;text-decoration:underline}.ph-tour-banner-dismiss{align-items:center;background:transparent;border:none;border-radius:4px;color:var(--ph-tour-text-secondary-color);cursor:pointer;display:flex;flex-shrink:0;height:24px;justify-content:center;transition:background .15s ease,color .15s ease;width:24px}.ph-tour-banner-dismiss:hover{background:rgba(0,0,0,.08);color:var(--ph-tour-text-color)}',Ae=B;function je(e,r){var o,n,i,a=t({},Gt,r),l=e.style;l.setProperty("--ph-tour-background-color",a.backgroundColor),l.setProperty("--ph-tour-text-color",a.textColor),l.setProperty("--ph-tour-button-color",a.buttonColor),l.setProperty("--ph-tour-border-radius",a.borderRadius+"px"),l.setProperty("--ph-tour-button-border-radius",a.buttonBorderRadius+"px"),l.setProperty("--ph-tour-border-color",a.borderColor),l.setProperty("--ph-tour-font-family",function(t){if("inherit"===t)return"inherit";var e='BlinkMacSystemFont, "Inter", "Segoe UI", "Roboto", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"';return t?t+", "+e:"-apple-system, "+e}(a.fontFamily)),l.setProperty("--ph-tour-text-secondary-color",(o=a.textColor,n=.6,(i=Se(o).match(/^rgb\((\d+),(\d+),(\d+)\)$/))?"rgba("+i[1]+", "+i[2]+", "+i[3]+", "+n+")":o)),l.setProperty("--ph-tour-branding-text-color",Le(a.backgroundColor)),l.setProperty("--ph-tour-button-text-color",Le(a.buttonColor)),l.setProperty("--ph-tour-box-shadow",a.boxShadow),l.setProperty("--ph-tour-overlay-color",a.showOverlay?"rgba(0, 0, 0, 0.5)":"transparent"),l.setProperty("--ph-tour-z-index",String(a.zIndex)),l.setProperty("--ph-tour-button-secondary-color","transparent"),l.setProperty("--ph-tour-button-secondary-text-color",a.textColor),l.setProperty("--ph-tour-max-width","320px"),l.setProperty("--ph-tour-padding","16px")}function ze(t){var e;if(!t)return"";if("string"==typeof t)return Ee(t);if("text"===t.type){var r=Ee(t.text||"");if(t.marks)for(var o of t.marks)switch(o.type){case"bold":r="<strong>"+r+"</strong>";break;case"italic":r="<em>"+r+"</em>";break;case"underline":r="<u>"+r+"</u>";break;case"strike":r="<s>"+r+"</s>"}return r}var n=(null==(e=t.content)?void 0:e.map(ze).join(""))||"";switch(t.type){case"doc":default:return n;case"paragraph":return"<p>"+n+"</p>";case"heading":var i,a=(null==(i=t.attrs)?void 0:i.level)||1;return"<h"+a+">"+n+"</h"+a+">";case"bulletList":return"<ul>"+n+"</ul>";case"orderedList":return"<ol>"+n+"</ol>";case"listItem":return"<li>"+n+"</li>";case"hardBreak":return"<br>"}}function Ee(t){var e=Ae.createElement("div");return e.textContent=t,e.innerHTML}function Ze(t){return t.contentHtml?Xt.sanitize(t.contentHtml,{ADD_TAGS:["iframe"],ADD_ATTR:["allowfullscreen","frameborder","referrerpolicy"]}):ze(t.content)}var Ie=0;function Re(t,e,o,n,i,a){e||(e={});var l,u,s=e;if("ref"in s)for(u in s={},e)"ref"==u?l=e[u]:s[u]=e[u];var c={type:t,props:s,key:o,ref:l,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Ie,__i:-1,__u:0,__source:i,__self:a};if("function"==typeof t&&(l=t.defaultProps))for(u in l)void 0===s[u]&&(s[u]=l[u]);return r.vnode&&r.vnode(c),c}var De=Re("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Re("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"})}),He=Re("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Re("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"})}),Fe=Re("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Re("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"})}),Oe=Re("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Re("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"})}),Ve=Re("svg",{className:"emoji-svg",xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",children:Re("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"})}),Pe=Re("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":"close-survey-title",children:[Re("title",{id:"close-survey-title",children:"Close survey"}),Re("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:"black"})]}),Be=Re("svg",{width:"77",height:"14",viewBox:"0 0 77 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Re("g",{"clip-path":"url(#clip0_2415_6911)",children:[Re("mask",{id:"mask0_2415_6911",style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"77",height:"14",children:Re("path",{d:"M0.5 0H76.5V14H0.5V0Z",fill:"white"})}),Re("g",{mask:"url(#mask0_2415_6911)",children:[Re("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"}),Re("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"}),Re("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"}),Re("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"}),Re("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"}),Re("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"})]})]}),Re("defs",{children:Re("clipPath",{id:"clip0_2415_6911",children:Re("rect",{width:"76",height:"14",fill:"white",transform:"translate(0.5)"})})})]});function Ne(t){var{class:e,href:r,children:o}=t;return Re("a",{class:e,href:r,target:"_blank",rel:"noopener noreferrer",children:o})}function Qe(t){var{class:e,onClick:r,children:o}=t;return Re("div",{class:e,role:"button",tabIndex:0,onClick:r,onKeyDown:t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),r())},style:{cursor:"pointer"},children:o})}function Ue(t){var{class:e,children:r}=t;return Re("div",{class:e,children:r})}function $e(t){var e,{step:r,onDismiss:o,onTriggerTour:n}=t,i=null!==(e=r.bannerConfig)&&void 0!==e?e:{behavior:"sticky"},a=i.action,l=["ph-tour-banner","sticky"===i.behavior&&"ph-tour-banner--sticky"].filter(Boolean).join(" "),u=Re(x,{children:[Re("div",{class:"ph-tour-banner-content",dangerouslySetInnerHTML:{__html:Ze(r)}}),Re("button",{class:"ph-tour-banner-dismiss",onClick:t=>{t.stopPropagation(),t.preventDefault(),o()},"aria-label":"Close banner",children:Pe})]});return"link"===(null==a?void 0:a.type)&&a.link?Re(Ne,{class:l,href:a.link,children:u}):"trigger_tour"===(null==a?void 0:a.type)&&n?Re(Qe,{class:l,onClick:n,children:u}):Re(Ue,{class:l,children:u})}Re("svg",{width:"16",height:"12",viewBox:"0 0 16 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Re("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 We=[Fe,He,De],Ye=[Oe,Fe,He,De,Ve];function Xe(t){var{value:e,onChange:r,onSubmit:o,isInteractive:n}=t,i=ge(null);!function(t,e){var r=me(re++,3);!ue.__s&&Ce(r.__H,e)&&(r.__=t,r.u=e,oe.__H.__h.push(r))}((()=>{n&&setTimeout((()=>{var t;return null==(t=i.current)?void 0:t.focus()}),100)}),[n]);return Re("textarea",{ref:i,class:"ph-tour-survey-textarea",rows:3,placeholder:"Your feedback (optional)...",value:e,onInput:t=>r(t.target.value),onKeyDown:t=>{"Enter"===t.key&&t.metaKey&&n&&(t.preventDefault(),null==o||o())},disabled:!n,style:n?void 0:{cursor:"default"}})}function Ge(t){var{survey:e,onSubmit:r,isInteractive:o}=t,[n,i]=be(null),a=e.display||"emoji",l=e.scale||5,u=t=>{o&&(i(t),null==r||r(t))};if("emoji"===a)return Re("div",{class:"ph-tour-survey-rating-container",children:[Re("div",{class:"ph-tour-survey-rating-emoji",children:(3===l?We:Ye).map(((t,e)=>{var r=e+1;return Re("button",{type:"button",class:"ph-tour-survey-emoji-button "+(n===r?"ph-tour-survey-emoji-button--active":""),onClick:()=>u(r),style:o?void 0:{cursor:"default"},"aria-label":"Rate "+r,children:t},e)}))}),(e.lowerBoundLabel||e.upperBoundLabel)&&Re("div",{class:"ph-tour-survey-rating-labels",children:[Re("span",{children:e.lowerBoundLabel}),Re("span",{children:e.upperBoundLabel})]})]});var s=function(t){switch(t){case 5:default:return[1,2,3,4,5];case 10:return[0,1,2,3,4,5,6,7,8,9,10]}}(l);return Re("div",{class:"ph-tour-survey-rating-container",children:[Re("div",{class:"ph-tour-survey-rating-numbers",style:{gridTemplateColumns:"repeat("+s.length+", minmax(0, 1fr))"},children:s.map((t=>Re("button",{type:"button",class:"ph-tour-survey-number-button "+(n===t?"ph-tour-survey-number-button--active":""),onClick:()=>u(t),style:o?void 0:{cursor:"default"},"aria-label":"Rate "+t,children:t},t)))}),(e.lowerBoundLabel||e.upperBoundLabel)&&Re("div",{class:"ph-tour-survey-rating-labels",children:[Re("span",{children:e.lowerBoundLabel}),Re("span",{children:e.upperBoundLabel})]})]})}function Ke(t){var e,{step:r,appearance:o,stepIndex:n,totalSteps:i,onPrevious:a,onSubmit:l,onDismiss:u}=t,[s,c]=be(""),f=r.survey,p=null!==(e=null==o?void 0:o.whiteLabel)&&void 0!==e&&e,d=0===n,h="open"===(null==f?void 0:f.type),m=!!(a||l||u),b=m?void 0:{cursor:"default"},g=()=>{null==l||l(s.trim()||null)};return f?Re(x,{children:[Re("button",{class:"ph-tour-dismiss",onClick:u,"aria-label":"Close survey",style:b,children:Pe}),Re("div",{class:"ph-tour-survey-question",children:f.questionText}),h?Re(Xe,{value:s,onChange:c,onSubmit:g,isInteractive:m}):Re(Ge,{survey:f,onSubmit:l,isInteractive:m}),Re("div",{class:"ph-tour-footer",children:[Re("span",{class:"ph-tour-progress",children:[n+1," of ",i]}),Re("div",{class:"ph-tour-buttons",children:[!d&&Re("button",{class:"ph-tour-button ph-tour-button--secondary",onClick:a,style:b,children:"Back"}),h&&Re("button",{class:"ph-tour-button ph-tour-button--primary",onClick:g,style:b,children:"Submit"})]})]}),!p&&Re("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 ",Be]})]}):Re("div",{})}function Je(t){var{button:e,variant:r,onClick:o,cursorStyle:n}=t,i="ph-tour-button ph-tour-button--"+r;return"link"===e.action&&e.link?Re("a",{href:e.link,target:"_blank",rel:"noopener noreferrer",class:i,children:e.text}):Re("button",{class:i,onClick:()=>o(e),style:n,children:e.text})}function tr(t){var e,r,o,{step:n,appearance:i,stepIndex:a,totalSteps:l,onNext:u,onPrevious:s,onDismiss:c,onButtonClick:f}=t,p=null!==(e=null==i?void 0:i.whiteLabel)&&void 0!==e&&e,d=a>=l-1,h=0===a,m=!n.buttons&&("button"===n.progressionTrigger||"modal"===n.type),b=!!n.buttons,g=!!(u||s||c||f),v=g?void 0:{cursor:"default"},y=t=>{f&&f(t)};return Re(x,{children:[Re("button",{class:"ph-tour-dismiss",onClick:c,"aria-label":"Close tour",style:v,children:Pe}),Re("div",{class:"ph-tour-content",dangerouslySetInnerHTML:{__html:Ze(n)}}),Re("div",{class:"ph-tour-footer",children:[l>1&&Re("span",{class:"ph-tour-progress",children:[a+1," of ",l]}),Re("div",{class:"ph-tour-buttons",children:[m&&Re(x,{children:[!h&&Re("button",{class:"ph-tour-button ph-tour-button--secondary",onClick:s,style:v,children:"Back"}),Re("button",{class:"ph-tour-button ph-tour-button--primary",onClick:u,style:v,children:d?"Done":"Next"})]}),b&&Re(x,{children:[(null==(r=n.buttons)?void 0:r.secondary)&&Re(Je,{button:n.buttons.secondary,variant:"secondary",onClick:y,cursorStyle:v}),(null==(o=n.buttons)?void 0:o.primary)&&Re(Je,{button:n.buttons.primary,variant:"primary",onClick:y,cursorStyle:v})]})]})]}),!p&&Re("a",{href:g?"https://posthog.com/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 ",Be]})]})}var er=B;function rr(e){var{step:r,appearance:o,parentElement:n,stepIndex:i=0,totalSteps:a=1,style:l}=e;n.innerHTML="";var u=er.createElement("div");je(u,o),n.appendChild(u);var s=u.attachShadow({mode:"open"}),c=function(){var t=ee(Ae,Me);return null==t||t.setAttribute("data-ph-product-tour-style","true"),t}();c&&s.appendChild(c);var f=er.createElement("div");s.appendChild(f);var p="survey"===r.type,d=p?"ph-tour-tooltip ph-tour-survey-step":"ph-tour-tooltip";"banner"===r.type?F(Re("div",{class:"ph-tour-container",children:Re($e,{step:r,onDismiss:()=>{}})}),f):F(Re("div",{class:"ph-tour-container",children:Re("div",{class:d,style:t({position:"relative",animation:"none"},r.maxWidth&&{width:r.maxWidth+"px",maxWidth:r.maxWidth+"px"},l),children:Re(p?Ke:tr,{step:r,appearance:o,stepIndex:i,totalSteps:a})})}),f)}export{rr as renderProductTourPreview};
|
|
2
2
|
//# sourceMappingURL=product-tours-preview.js.map
|