vendor: 23,836 bytes, lines 1-2
1!function(){const t="u">typeof window?window:void 0,e="u">typeof globalThis?globalThis:t,i=null==e?void 0:e.document;null!=e&&e.XMLHttpRequest&&new e.XMLHttpRequest;const n="undefined"!=typeof globalThis?globalThis:t;n&&"undefined"==typeof self&&(n.self=n),n&&"undefined"==typeof File&&(n.File=function(){});const s=null!=t?t:{};function o(t,e){return-1!==t.indexOf(e)}const r=function(t){return t.trim()},u=Object.prototype,l=u.hasOwnProperty,c=u.toString,a=Array.isArray||function(t){return"[object Array]"===c.call(t)},h=t=>"function"==typeof t,d=t=>void 0===t,f=t=>"[object String]"==c.call(t),v=t=>null===t,_=t=>d(t)||v(t),p=t=>"[object Number]"==c.call(t)&&t==t;function b(t){return t?t.split("#")[0]:t}function m(t){try{return t()}catch(t){return}}function g(t){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},g(t)}function y(t,e,i){return(e=function(t){var e=function(t){if("object"!=g(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,"string");if("object"!=g(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==g(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function w(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,n)}return i}function k(t){for(var e=1;arguments.length>e;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?w(Object(i),!0).forEach(function(e){y(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):w(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}const C=(e,{debugEnabled:i}={})=>{const n={N(n,...s){t&&(t.POSTHOG_DEBUG||i)&&!d(t.console)&&t.console&&("__rrweb_original__"in t.console[n]?t.console[n].__rrweb_original__:t.console[n])(e,...s)},debug(...t){n.N("debug",...t)},info(...t){n.N("log",...t)},warn(...t){n.N("warn",...t)},error(...t){n.N("error",...t)},critical(...t){console.error(e,...t)},uninitializedWarning(t){n.error(`You must initialize PostHog before calling ${t}`)},createLogger:(t,i)=>C(`${e} ${t}`,i)};return n},O=C("[PostHog.js]"),x=O.createLogger;function j(t,e){if(!_(t))if(a(t))t.forEach(e);else if(t instanceof FormData)t.forEach((t,i)=>e(t,i));else for(const i in t)l.call(t,i)&&e(t[i],i)}const S=function(t,...e){for(const i of e)for(const e in i)void 0!==i[e]&&(t[e]=i[e]);return t};function A(t){const e=Object.keys(t);let i=e.length;const n=new Array(i);for(;i--;)n[i]=[e[i],t[e[i]]];return n}function D(t,e,i,n){const{capture:s=!1,passive:o=!0}=null!=n?n:{};null==t||t.addEventListener(e,i,{capture:s,passive:o})}function E(t){return!!t&&1===t.nodeType}function T(t,e){return!!t&&!!t.tagName&&t.tagName.toLowerCase()===e.toLowerCase()}function M(t){return!!t&&11===t.nodeType&&E(t.host)}function R(t){return t?r(t).split(/\s+/):[]}function L(t){let e="";switch(typeof t.className){case"string":e=t.className;break;case"object":e=(t.className&&"baseVal"in t.className?t.className.baseVal:null)||t.getAttribute("class")||"";break;default:e=""}return R(e)}function I(t){let e="";return B(t)&&!N(t)&&t.childNodes&&t.childNodes.length&&j(t.childNodes,function(t){var i,n;(function(t){return!!t&&3===t.nodeType})(t)&&t.textContent&&(e+=null!==(i=_(n=t.textContent)?null:r(n).split(/(\s+)/).filter(t=>et(t)).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))&&void 0!==i?i:"")}),r(e)}function z(t){var e;return d(t.target)?t.srcElement||null:(null===(e=t.target)||void 0===e?void 0:e.shadowRoot)?t.composedPath()[0]||null:t.target||null}const H=["a","button","form","input","select","textarea","label"];function P(t,e){const i=t.matches||t.matchesSelector||t.msMatchesSelector||t.mozMatchesSelector||t.webkitMatchesSelector||t.oMatchesSelector;try{return!!i&&i.call(t,e)}catch(t){return!1}}function U(t){const e=t.parentNode;return!(!e||!E(e))&&e}const W=[".ph-no-deadclick",".ph-no-capture"];const G=["","text","search","email","password","url","tel","number"];function Z(t){return!(!t||!E(t))&&(!!T(t,"textarea")||(T(t,"input")?o(G,(t.getAttribute("type")||"").toLowerCase()):function(t){var e;if(t.isContentEditable)return!0;const i=null===(e=t.getAttribute)||void 0===e?void 0:e.call(t,"contenteditable");return"true"===i||""===i}(t)))}const F=t=>!t||T(t,"html")||!E(t),q=(e,i)=>{if(!t||F(e))return{parentIsUsefulElement:!1,targetElementList:[]};let n=!1;const s=[e];let o=e;for(;o.parentNode&&!T(o,"body");){if(M(o.parentNode)){s.push(o.parentNode.host),o=o.parentNode.host;continue}const e=U(o);if(!e)break;if(i||H.indexOf(e.tagName.toLowerCase())>-1)n=!0;else try{const i=t.getComputedStyle(e);i&&"pointer"===i.getPropertyValue("cursor")&&(n=!0)}catch(t){}s.push(e),o=e}return{parentIsUsefulElement:n,targetElementList:s}};function B(t){const e=new Set;let i=0;for(let n=t;n.parentNode&&!T(n,"body");n=n.parentNode){if(i++>=1e3||e.has(n))return!1;e.add(n);const t=L(n);if(o(t,"ph-sensitive")||o(t,"ph-no-capture"))return!1}if(o(L(t),"ph-include"))return!0;const n=t.type||"";if(f(n))switch(n.toLowerCase()){case"hidden":case"password":return!1}const s=t.name||t.id||"";return!f(s)||!/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(s.replace(/[^a-zA-Z0-9]/g,""))}function N(t){return!!(T(t,"input")&&!["button","checkbox","submit","reset"].includes(t.type)||T(t,"select")||T(t,"textarea")||"true"===t.getAttribute("contenteditable"))}const V=new RegExp("^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$"),K=/(^|[^0-9A-Za-z_])([0-9][0-9 -]*[0-9])(?=$|[^0-9A-Za-z_])/g,Y=[16,15,14,13],J=new RegExp("^(\\d{3}-?\\d{2}-?\\d{4})$"),Q=new RegExp("(^|[^0-9])((?!000|666)[0-9]{3}-?(?!00)[0-9]{2}-?(?!0000)[0-9]{4})(?=$|([^0-9]))","g"),X=/[0-9A-Za-z_]/;function tt(t){let e=0,i=!1;for(let n=t.length-1;n>=0;n--){let s=t.charCodeAt(n)-48;i&&(s*=2,s>9&&(s-=9)),e+=s,i=!i}return e%10==0}function et(t,e=!0){if(_(t))return!1;if(f(t)){if(t=r(t),e?V.test((t||"").replace(/[- ]/g,"")):function(t){let e;for(K.lastIndex=0;e=K.exec(t);){const t=e[2];if(!t)continue;const i=t.replace(/[- ]/g,"");for(let t=0;i.length>t;t++)for(const e of Y){const n=t+e;if(i.length>=n){const e=i.slice(t,n);if(V.test(e)&&tt(e))return!0}}}return!1}(t))return!1;if(e?J.test(t):function(t){let e;for(Q.lastIndex=0;e=Q.exec(t);){const t=e[1],i=e[3];if(!(t&&i&&X.test(t)&&X.test(i)))return!0}return!1}(t))return!1}return!0}function it(t){let e=I(t);return e=`${e} ${nt(t)}`.trim(),et(e)?e:""}function nt(t){let e="";return t&&t.childNodes&&t.childNodes.length&&j(t.childNodes,function(t){var i;if(t&&"span"===(null===(i=t.tagName)||void 0===i?void 0:i.toLowerCase()))try{const i=I(t);e=`${e} ${i}`.trim(),t.childNodes&&t.childNodes.length&&(e=`${e} ${nt(t)}`.trim())}catch(t){O.error("[AutoCapture]",t)}}),e}function st(t){return t.replace(/"|\\"/g,'\\"')}function ot(t){const e=t.attr__class;if(e)return a(e)?e:R(e)}function rt(t,e){return e.length>t?e.slice(0,t)+"...":e}function ut(t){if(t.previousElementSibling)return t.previousElementSibling;let e=t;do{e=e.previousSibling}while(e&&!E(e));return e}function lt(e,{e:n,maskAllElementAttributes:s,maskAllText:r,elementAttributeIgnoreList:u,elementsChainAsString:l,disableCaptureUrlHashes:c}){var h,v;if(!E(e))return{props:{}};const _=[e],p=new Set([e]);let m=e;for(;m.parentNode&&!T(m,"body")&&1e3>_.length;){if(M(m.parentNode)){const t=m.parentNode.host;if(p.has(t))break;p.add(t),_.push(t),m=t;continue}if(!E(m.parentNode))break;if(p.has(m.parentNode))break;p.add(m.parentNode),_.push(m.parentNode),m=m.parentNode}const g="click"===n.type&&"http://www.w3.org/2000/svg"===e.namespaceURI?_.findIndex(t=>T(t,"button")||T(t,"a")):-1;g>0&&(r=r||_.slice(0,g+1).some(t=>!B(t)||N(t)));const y=[],w={};let C,O=!1,x=!1;if(j(_,t=>{const e=B(t);if(T(t,"a")&&!s&&!(null==u?void 0:u.includes("href"))){const i=t.getAttribute("href");O=!!(e&&i&&et(i))&&(c?b(i):i)}o(L(t),"ph-no-capture")&&(x=!0),y.push(function(t,e,i,n,s=!1){const o=t.tagName.toLowerCase(),r={tag_name:o};H.indexOf(o)>-1&&!i&&(r.$el_text="a"===o.toLowerCase()||"button"===o.toLowerCase()?rt(1024,it(t)):rt(1024,I(t)));const u=L(t);e||(null==n?void 0:n.includes("class"))||0>=u.length||(r.classes=u.filter(function(t){return""!==t})),j(t.attributes,function(i){var o;if((!N(t)||-1!==["name","id","class","aria-label"].indexOf(i.name))&&!(null==n?void 0:n.includes(i.name))&&!e&&et(i.value)&&(!f(o=i.name)||"_ngcontent"!==o.substring(0,10)&&"_nghost"!==o.substring(0,7))){let t=i.value;"class"===i.name&&(t=R(t).join(" ")),r["attr__"+i.name]=rt(1024,"href"===i.name&&s?b(t):t)}});let l=1,c=1,a=t;for(;a=ut(a);)l++,a.tagName===t.tagName&&c++;return r.nth_child=l,r.nth_of_type=c,r}(t,s,r,u,c)),j(function(t){if(!B(t))return{};const e={};return j(t.attributes,function(t){if(t.name&&0===t.name.indexOf("data-ph-capture-attribute")){const i=t.name.replace("data-ph-capture-attribute-",""),n=t.value;i&&n&&et(n)&&(e[i]=n)}}),e}(t),(t,e)=>{({}).hasOwnProperty.call(w,e)||(w[e]=t)})}),x)return{props:{},explicitNoCapture:x};if(g>0&&(e=_[g],y.splice(0,g)),r||(y[0].$el_text=T(e,"a")||T(e,"button")?it(e):I(e)),O){var D,z;y[0].attr__href=O;const e=null===(D=(t=>{const e=null==i?void 0:i.createElement("a");return d(e)?null:(e.href=t,e)})(O))||void 0===D?void 0:D.host,n=null==t||null===(z=t.location)||void 0===z?void 0:z.host;e&&n&&e!==n&&(C=O)}return{props:S((U=n.type,{$event_type:U,$ce_version:1}),l?{}:{$elements:y},{$elements_chain:(P=y,a(P)?function(t){return t.map(t=>{var e,i;let n="";if(t.tag_name&&(n+=t.tag_name),t.attr_class){t.attr_class.sort();for(const e of t.attr_class)n+=`.${e.replace(/"/g,"")}`}const s=k(k(k(k({},t.text?{text:t.text}:{}),{},{"nth-child":null!==(e=t.nth_child)&&void 0!==e?e:0,"nth-of-type":null!==(i=t.nth_of_type)&&void 0!==i?i:0},t.href?{href:t.href}:{}),t.attr_id?{attr_id:t.attr_id}:{}),t.attributes),o={};return A(s).sort(([t],[e])=>function(t,e){return e>t?-1:t>e?1:0}(t,e)).forEach(([t,e])=>o[st(t.toString())]=st(e.toString())),n+=":",n+=A(o).map(([t,e])=>`${t}="${e}"`).join(""),n}).join(";")}(function(t){return t.map(t=>{var e,i;const n={text:null===(e=t.$el_text)||void 0===e?void 0:e.slice(0,400),tag_name:t.tag_name,href:null===(i=t.attr__href)||void 0===i?void 0:i.slice(0,2048),attr_class:ot(t),attr_id:t.attr__id,nth_child:t.nth_child,nth_of_type:t.nth_of_type,attributes:{}};return A(t).filter(([t])=>0===t.indexOf("attr__")).forEach(([t,e])=>n.attributes[t]=e),n})}(P)):"")},(null===(h=y[0])||void 0===h?void 0:h.$el_text)?{$el_text:null===(v=y[0])||void 0===v?void 0:v.$el_text}:{},C&&"click"===n.type?{$external_click_url:C}:{},w),target:e};var P,U}x("[AutoCapture]");const ct={};function at(t,e){const i=z(t);return i?k({node:i,originalEvent:t,timestamp:Date.now()},e):null}function ht(t){return!!m(()=>E(t))}function dt(t,e){return Math.abs(t)<Math.abs(e)?0>e?"up":"down":0>t?"left":"right"}function ft(t){return"swipe"===t.type?"$dead_swipe":"$dead_click"}const vt="canvas,video,audio,embed,object";function _t(t,e){return p(t)&&t>=e}function pt(t,e=1e3){return t>=0&&e>t?t:void 0}function bt(t,e,i=1e3){return p(e)?pt(t-e,i):void 0}var mt=class{dr(t){var e,i,n,s,o,r,u,l;const c=this.hr((null==t?void 0:t.__onCapture)||this.vr.bind(this));return{element_attribute_ignorelist:null!==(e=null==t?void 0:t.element_attribute_ignorelist)&&void 0!==e?e:c.element_attribute_ignorelist,scroll_threshold_ms:null!==(i=null==t?void 0:t.scroll_threshold_ms)&&void 0!==i?i:c.scroll_threshold_ms,selection_change_threshold_ms:null!==(n=null==t?void 0:t.selection_change_threshold_ms)&&void 0!==n?n:c.selection_change_threshold_ms,mutation_threshold_ms:null!==(s=null==t?void 0:t.mutation_threshold_ms)&&void 0!==s?s:c.mutation_threshold_ms,capture_clicks_with_modifier_keys:null!==(o=null==t?void 0:t.capture_clicks_with_modifier_keys)&&void 0!==o?o:c.capture_clicks_with_modifier_keys,capture_dead_swipes:null!==(r=null==t?void 0:t.capture_dead_swipes)&&void 0!==r?r:c.capture_dead_swipes,swipe_threshold_px:null!==(u=null==t?void 0:t.swipe_threshold_px)&&void 0!==u?u:c.swipe_threshold_px,max_dead_swipes_per_page_load:null!==(l=null==t?void 0:t.max_dead_swipes_per_page_load)&&void 0!==l?l:c.max_dead_swipes_per_page_load,css_selector_ignorelist:null==t?void 0:t.css_selector_ignorelist,__onCapture:c.__onCapture}}constructor(t,e){this.instance=t,this.pr=new WeakSet,this.mr=!1,this.gr=[],this.yr=0,this.hr=t=>({element_attribute_ignorelist:[],scroll_threshold_ms:100,selection_change_threshold_ms:100,mutation_threshold_ms:2500,capture_clicks_with_modifier_keys:!1,capture_dead_swipes:!0,swipe_threshold_px:30,max_dead_swipes_per_page_load:10,__onCapture:t}),this.br=()=>{clearTimeout(this.wr),this.wr=void 0,this.kr=void 0},this._r=t=>{if(this.Sr(t),this.br(),0===t.button){const e={path:t.composedPath(),trusted:t.isTrusted,selectionChanged:!1,selectionInitiallyRelated:!1},n=null==i?void 0:i.getSelection();e.selectionInitiallyRelated="Range"===(null==n?void 0:n.type)&&this.Cr(n,e),this.kr=e}},this.Mr=t=>{v(t.relatedTarget)&&this.br()},this.Ir=t=>{const e=this.kr,i=t;if(!e||0!==i.button||t.isTrusted!==e.trusted)return;const n=t.composedPath();for(const t of e.path)if(ht(t)&&-1!==n.indexOf(t)){e.clickTarget=t;break}e.clickDetail=i.detail,this.wr=s.setTimeout(this.br,0)},this.Tr=t=>{this.Sr(t);const e=t,i=at(e,{type:"click"}),n=this.kr;i&&n&&0===e.button&&e.detail>0&&e.detail===n.clickDetail&&t.isTrusted===n.trusted&&i.node===n.clickTarget&&(i.selectionChangedDuringGesture=n.selectionChanged&&this.Rr.selection_change_threshold_ms>0,this.br()),v(i)||this.$r(i)||this.Er(i),this.Ar()},this.Or=()=>{const t=Date.now();this.Lr=t,t%50==0&&this.gr.forEach(e=>{d(e.scrollDelayMs)&&(e.scrollDelayMs=t-e.timestamp)})},this.Pr=t=>{var e,n;const s=null==i?void 0:i.getSelection(),o=this.mr;this.mr="Range"===(null==s?void 0:s.type);const r=null==s?void 0:s.focusNode,u=r&&(E(r)?r:r.parentElement),l=null==i?void 0:i.activeElement;let c=l;for(;null==c||null===(e=c.shadowRoot)||void 0===e?void 0:e.activeElement;)c=c.shadowRoot.activeElement;const a=Z(z(t))||Z(null!=u?u:null)||Z(null!==(n=c)&&void 0!==n?n:null),h="Caret"===(null==s?void 0:s.type)&&c&&!c.shadowRoot&&r&&r!==l&&r.contains(null!=l?l:null);if(!(o||this.mr||a||h))return;const f=Date.now();this.Dr=f;const v=this.kr;if(v&&(o||this.mr||a)){const e=z(t);let i;if(Z(e))i=e;else if("Caret"===(null==s?void 0:s.type)){var _;Z(null!==(_=c)&&void 0!==_?_:null)||h?i=c:a&&(i=u)}const n=i?this.Fr(i,v):s&&(r||s.anchorNode)?this.Cr(s,v):o&&!this.mr&&v.selectionInitiallyRelated;v.selectionChanged=v.selectionChanged||n}this.gr.forEach(t=>{const e=f-t.timestamp;0>e||!d(t.selectionChangedDelayMs)&&e>=t.selectionChangedDelayMs||(t.selectionChangedDelayMs=e)})},this.ln=()=>{"hidden"===(null==i?void 0:i.visibilityState)&&this.br();const t=Date.now();this.Nr=t,this.qr("visibilityChangedDelayMs",t)},this.jr=()=>{const t=Date.now();this.Br=t,this.qr("focusChangedDelayMs",t)},this.Hr=t=>{this.Sr(t);const e=t.touches,i=1===(null==e?void 0:e.length)?e[0]:void 0;this.zr=i?{x:i.clientX,y:i.clientY,timestamp:Date.now()}:void 0},this.Ur=()=>{this.zr=void 0},this.Wr=t=>{var e;const n=this.zr;if(this.zr=void 0,d(n)||this.yr>=this.Rr.max_dead_swipes_per_page_load)return;const s=t,o=null===(e=s.changedTouches)||void 0===e?void 0:e[0];if(!o)return;const r=o.clientX-n.x,u=o.clientY-n.y,l=r*r+u*u,c=this.Rr.swipe_threshold_px;if(c*c>l)return;if([this.Lr,this.Vr,this.Dr].some(t=>p(t)&&t>=n.timestamp))return;var a,h;if(this.Zr()&&(null!==(a=null==i||null===(h=i.elementsFromPoint)||void 0===h?void 0:h.call(i,n.x,n.y))&&void 0!==a?a:[]).some(t=>{var e;return null===(e=t.matches)||void 0===e?void 0:e.call(t,vt)}))return;const f=at(s,{type:"swipe",swipeDirection:dt(r,u),swipeDistancePx:Math.round(Math.sqrt(l))});v(f)||this.$r(f)||this.Er(f),this.Ar()},this.Rr=this.dr(e),this._onCapture=this.Rr.__onCapture}start(t){this.Gr(),this.Qr(),this.Jr(),this.Kr(),this.Xr(),this.Yr(t),this.Rr.capture_dead_swipes&&this.eo()}Yr(e){if(!this.no){const i=function(e){return function(e,i){const n=ct[e];if(n)return n;let s=i[e];if(h(r=s)&&-1!==r.toString().indexOf("[native code]")&&!(null==t?void 0:t.Zone))return ct[e]=s.bind(i);var r;const u=i.document;if(u&&h(u.createElement)){let t,n=!1;try{t=u.createElement("iframe"),t.hidden=!0,u.head.appendChild(t);const r=t.contentWindow;var l,c;r&&r[e]&&(s=r[e],"MutationObserver"===e&&o(a=null!==(l=null===(c=i.navigator)||void 0===c?void 0:c.userAgent)&&void 0!==l?l:"","AppleWebKit")&&!o(a,"Chrome")&&(t.classList.add("rr-block","ph-no-capture"),n=!0))}catch(t){O.warn(`Could not create sandbox iframe for ${e} check, bailing to assignableWindow.${e}: `,t)}finally{!n&&(null==t?void 0:t.parentNode)&&t.parentNode.removeChild(t)}}var a;return s&&h(s)?ct[e]=s.bind(i):s}("MutationObserver",e)}(s);this.no=new i(t=>{this.io(t)}),this.ro(e)}}ro(t){t&&this.no&&(this.pr.has(t)||(this.no.observe(t,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),this.pr.add(t),this.oo(t)))}oo(t,e){var i,n;E(t)&&t.shadowRoot&&this.ro(t.shadowRoot);const s=null!==(i=null===(n=t.querySelectorAll)||void 0===n?void 0:n.call(t,"*"))&&void 0!==i?i:[];for(let t=0;s.length>t;t++)null==e||e.add(s[t]),this.ro(s[t].shadowRoot)}Sr(t){var e,i;const n=null!==(e=null===(i=t.composedPath)||void 0===i?void 0:i.call(t))&&void 0!==e?e:[];for(let t=0;n.length>t;t++){const e=n[t];ht(e)&&this.ro(e.shadowRoot)}}stop(){var t;null===(t=this.no)||void 0===t||t.disconnect(),this.no=void 0,this.pr=new WeakSet,s.removeEventListener("click",this.Tr,{capture:!0}),s.removeEventListener("mousedown",this._r,{capture:!0}),s.removeEventListener("mouseup",this.Ir,{capture:!0}),s.removeEventListener("mouseout",this.Mr,{capture:!0}),s.removeEventListener("dragstart",this.br,{capture:!0}),s.removeEventListener("pointercancel",this.br,{capture:!0}),s.removeEventListener("blur",this.br),this.br(),s.removeEventListener("scroll",this.Or,{capture:!0}),null==i||i.removeEventListener("selectionchange",this.Pr),s.removeEventListener("touchstart",this.Hr,{capture:!0}),s.removeEventListener("touchend",this.Wr,{capture:!0}),s.removeEventListener("touchcancel",this.Ur,{capture:!0}),null==i||i.removeEventListener("visibilitychange",this.ln),s.removeEventListener("blur",this.jr),s.removeEventListener("focus",this.jr),this.zr=void 0}io(t){const e=new Set;for(const n of t)try{var i;if(!1===(null===(i=n.target)||void 0===i?void 0:i.isConnected))continue;this.Vr=Date.now();const t=n.addedNodes;for(let i=0;t.length>i;i++){const n=t[i];ht(n)&&!e.has(n)&&this.oo(n,e)}}catch(t){}}Gr(){D(s,"click",this.Tr,{capture:!0}),D(s,"mousedown",this._r,{capture:!0}),D(s,"mouseup",this.Ir,{capture:!0}),D(s,"mouseout",this.Mr,{capture:!0}),D(s,"dragstart",this.br,{capture:!0}),D(s,"pointercancel",this.br,{capture:!0}),D(s,"blur",this.br)}Er(t){t.selectionChangedDelayMs=bt(t.timestamp,this.Dr,this.Rr.selection_change_threshold_ms),t.visibilityChangedDelayMs=bt(t.timestamp,this.Nr),t.focusChangedDelayMs=bt(t.timestamp,this.Br),this.gr.push(t)}Ar(){this.gr.length&&d(this.so)&&(this.so=s.setTimeout(()=>{this.ao()},1e3))}Qr(){D(s,"scroll",this.Or,{capture:!0})}Jr(){var t;this.mr="Range"===(null==i||null===(t=i.getSelection())||void 0===t?void 0:t.type),D(i,"selectionchange",this.Pr)}Fr(t,e){const i=e.path[0];try{for(;t;){if(-1!==e.path.indexOf(t)||E(i)&&i.contains(t))return!0;t=t.getRootNode().host}}catch(t){}return!1}Cr(t,e){const i=e.path[0],n=t.rangeCount>0?t.getRangeAt(0):void 0,s=!!n&&m(()=>n.startContainer.getRootNode()===i.getRootNode());if(n&&s&&E(i)){var o;if(!n.collapsed)return n.intersectsNode(i);const t=E(n.startContainer)&&null!==(o=n.startContainer.childNodes[n.startOffset])&&void 0!==o?o:n.startContainer;return this.Fr(t,e)}return this.Fr(t.focusNode,e)||this.Fr(t.anchorNode,e)}Kr(){D(i,"visibilitychange",this.ln)}Xr(){D(s,"blur",this.jr),D(s,"focus",this.jr)}qr(t,e){this.gr.forEach(i=>{const n=pt(e-i.timestamp);p(n)&&(d(i[t])||i[t]>n)&&(i[t]=n)})}eo(){D(s,"touchstart",this.Hr,{capture:!0,passive:!0}),D(s,"touchend",this.Wr,{capture:!0,passive:!0}),D(s,"touchcancel",this.Ur,{capture:!0,passive:!0})}Zr(){const t=d(this.lo)||p(this.Vr)&&this.Vr>this.lo;return(d(this.uo)||t)&&(this.lo=Date.now(),this.uo=!!(null==i?void 0:i.querySelector(vt))),!!this.uo}$r(t){return!t||("swipe"===t.type?this.co(t):this.do(t))}co(e){return!((!((i=e.node)instanceof Element)||"__POSTHOG_TOOLBAR__"!==i.id&&!(null===(n=i.closest)||void 0===n?void 0:n.call(i,".toolbar-global-fade-container")))&&!this.gr.some(t=>t.type===e.type&&t.node===e.node&&1e3>Math.abs(t.timestamp-e.timestamp))&&!T(e.node,"html")&&E(e.node)&&function(e,i){var n;if(!t||F(e))return!1;const s="[object Boolean]"===c.call(i)?W:null!==(n=null==i?void 0:i.css_selector_ignorelist)&&void 0!==n?n:W,{targetElementList:o}=q(e,!1);return!function(t,e){if(d(e))return!0;for(const i of t)if(e.some(t=>P(i,t)))return!0;return!1}(o,s)}(e.node,{css_selector_ignorelist:this.Rr.css_selector_ignorelist}));var i,n}do(e){return!(this.Rr.capture_clicks_with_modifier_keys||(i=e.originalEvent,!(i.ctrlKey||i.metaKey||i.altKey||i.shiftKey)))||!!this.co(e)||function(e){if(!t||F(e))return!1;const{targetElementList:i}=q(e,!1);return i.some(t=>T(t,"a"))}(e.node);var i}ao(){if(!this.gr.length)return;clearTimeout(this.so),this.so=void 0;const t=this.gr;this.gr=[];for(const i of t){var e;i.mutationDelayMs=null!==(e=i.mutationDelayMs)&&void 0!==e?e:this.Vr&&this.Vr>=i.timestamp?this.Vr-i.timestamp:void 0,i.absoluteDelayMs=Date.now()-i.timestamp;const t=_t(i.scrollDelayMs,this.Rr.scroll_threshold_ms),n=_t(i.selectionChangedDelayMs,this.Rr.selection_change_threshold_ms),s=_t(i.mutationDelayMs,this.Rr.mutation_threshold_ms),o=_t(i.absoluteDelayMs,1.1*this.Rr.mutation_threshold_ms),r=p(i.scrollDelayMs)&&this.Rr.scroll_threshold_ms>i.scrollDelayMs,u=p(i.mutationDelayMs)&&this.Rr.mutation_threshold_ms>i.mutationDelayMs,l=i.selectionChangedDuringGesture||p(i.selectionChangedDelayMs)&&this.Rr.selection_change_threshold_ms>i.selectionChangedDelayMs,c=p(i.visibilityChangedDelayMs),a=p(i.focusChangedDelayMs);if(!(r||u||l||c||a))if(t||s||o||n){const e=ft(i);if("$dead_swipe"===e){if(this.yr>=this.Rr.max_dead_swipes_per_page_load)continue;this.yr++}this._onCapture(i,{[`${e}_last_mutation_timestamp`]:this.Vr,[`${e}_event_timestamp`]:i.timestamp,[`${e}_scroll_timeout`]:t,[`${e}_mutation_timeout`]:s,[`${e}_absolute_timeout`]:o,[`${e}_selection_changed_timeout`]:n,[`${e}_visibility_changed_timeout`]:!1})}else this.Rr.mutation_threshold_ms>i.absoluteDelayMs&&this.gr.push(i)}this.Ar()}vr(t,e){const i=ft(t);this.instance.capture(i,k(k(k({},e),lt(t.node,{e:t.originalEvent,maskAllElementAttributes:this.instance.config.mask_all_element_attributes,maskAllText:this.instance.config.mask_all_text,elementAttributeIgnoreList:this.Rr.element_attribute_ignorelist,elementsChainAsString:!1,disableCaptureUrlHashes:this.instance.config.disable_capture_url_hashes}).props),{},{[`${i}_scroll_delay_ms`]:t.scrollDelayMs,[`${i}_mutation_delay_ms`]:t.mutationDelayMs,[`${i}_absolute_delay_ms`]:t.absoluteDelayMs,[`${i}_selection_changed_delay_ms`]:t.selectionChangedDelayMs,[`${i}_visibility_changed_delay_ms`]:t.visibilityChangedDelayMs,[`${i}_focus_changed_delay_ms`]:t.focusChangedDelayMs,$dead_swipe_direction:t.swipeDirection,$dead_swipe_distance_px:t.swipeDistancePx}),{timestamp:new Date(t.timestamp)})}};s.__PosthogExtensions__=s.__PosthogExtensions__||{},s.__PosthogExtensions__.initDeadClicksAutocapture=(t,e)=>new mt(t,e)}(); 2//# sourceMappingURL=dead-clicks-autocapture.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.