(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[525],{2654:function(e){var t;t=function(){"use strict";let{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:i,getOwnPropertyDescriptor:r}=Object,{freeze:o,seal:s,create:a}=Object,{apply:l,construct:u}="undefined"!=typeof Reflect&&Reflect;o||(o=function(e){return e}),s||(s=function(e){return e}),l||(l=function(e,t,n){return e.apply(t,n)}),u||(u=function(e,t){return new e(...t)});let c=x(Array.prototype.forEach),d=x(Array.prototype.pop),h=x(Array.prototype.push),p=x(String.prototype.toLowerCase),f=x(String.prototype.toString),m=x(String.prototype.match),g=x(String.prototype.replace),v=x(String.prototype.indexOf),y=x(String.prototype.trim),_=x(Object.prototype.hasOwnProperty),b=x(RegExp.prototype.test),w=(q=TypeError,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return u(q,t)});function x(e){return function(t){for(var n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return l(e,t,i)}}function k(e,i){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p;t&&t(e,null);let o=i.length;for(;o--;){let t=i[o];if("string"==typeof t){let e=r(t);e!==t&&(n(i)||(i[o]=e),t=e)}e[t]=!0}return e}function S(t){let n=a(null);for(let[i,r]of e(t))_(t,i)&&(Array.isArray(r)?n[i]=function(e){for(let t=0;t<e.length;t++)_(e,t)||(e[t]=null);return e}(r):r&&"object"==typeof r&&r.constructor===Object?n[i]=S(r):n[i]=r);return n}function E(e,t){for(;null!==e;){let n=r(e,t);if(n){if(n.get)return x(n.get);if("function"==typeof n.value)return x(n.value)}e=i(e)}return function(){return null}}let T=o(["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","section","select","shadow","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"]),P=o(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),R=o(["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"]),A=o(["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"]),C=o(["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"]),F=o(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),O=o(["#text"]),L=o(["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","face","for","headers","height","hidden","high","href","hreflang","id","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","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),I=o(["accent-height","accumulate","additive","alignment-baseline","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","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","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","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","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","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"]),M=o(["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"]),D=o(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),N=s(/\{\{[\w\W]*|[\w\W]*\}\}/gm),$=s(/<%[\w\W]*|[\w\W]*%>/gm),j=s(/\${[\w\W]*}/gm),z=s(/^data-[\-\w.\u00B7-\uFFFF]/),V=s(/^aria-[\-\w]+$/),B=s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),W=s(/^(?:\w+script|data):/i),H=s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),U=s(/^html$/i);var q,G=Object.freeze({__proto__:null,MUSTACHE_EXPR:N,ERB_EXPR:$,TMPLIT_EXPR:j,DATA_ATTR:z,ARIA_ATTR:V,IS_ALLOWED_URI:B,IS_SCRIPT_OR_DATA:W,ATTR_WHITESPACE:H,DOCTYPE_NAME:U,CUSTOM_ELEMENT:s(/^[a-z][.\w]*(-[.\w]+)+$/i)});let Y={element:1,text:3,progressingInstruction:7,comment:8,document:9},K=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null,i="data-tt-policy-suffix";t&&t.hasAttribute(i)&&(n=t.getAttribute(i));let r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}};return function t(){let n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window,r=e=>t(e);if(r.version="3.1.5",r.removed=[],!i||!i.document||i.document.nodeType!==Y.document)return r.isSupported=!1,r;let{document:s}=i,l=s,u=l.currentScript,{DocumentFragment:x,HTMLTemplateElement:N,Node:$,Element:j,NodeFilter:z,NamedNodeMap:V=i.NamedNodeMap||i.MozNamedAttrMap,HTMLFormElement:W,DOMParser:H,trustedTypes:q}=i,X=j.prototype,Z=E(X,"cloneNode"),Q=E(X,"nextSibling"),J=E(X,"childNodes"),ee=E(X,"parentNode");if("function"==typeof N){let e=s.createElement("template");e.content&&e.content.ownerDocument&&(s=e.content.ownerDocument)}let et="",{implementation:en,createNodeIterator:ei,createDocumentFragment:er,getElementsByTagName:eo}=s,{importNode:es}=l,ea={};r.isSupported="function"==typeof e&&"function"==typeof ee&&en&&void 0!==en.createHTMLDocument;let{MUSTACHE_EXPR:el,ERB_EXPR:eu,TMPLIT_EXPR:ec,DATA_ATTR:ed,ARIA_ATTR:eh,IS_SCRIPT_OR_DATA:ep,ATTR_WHITESPACE:ef,CUSTOM_ELEMENT:em}=G,{IS_ALLOWED_URI:eg}=G,ev=null,ey=k({},[...T,...P,...R,...C,...O]),e_=null,eb=k({},[...L,...I,...M,...D]),ew=Object.seal(a(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}})),ex=null,ek=null,eS=!0,eE=!0,eT=!1,eP=!0,eR=!1,eA=!0,eC=!1,eF=!1,eO=!1,eL=!1,eI=!1,eM=!1,eD=!0,eN=!1,e$=!0,ej=!1,ez={},eV=null,eB=k({},["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"]),eW=null,eH=k({},["audio","video","img","source","image","track"]),eU=null,eq=k({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),eG="http://www.w3.org/1998/Math/MathML",eY="http://www.w3.org/2000/svg",eK="http://www.w3.org/1999/xhtml",eX=eK,eZ=!1,eQ=null,eJ=k({},[eG,eY,eK],f),e0=null,e1=["application/xhtml+xml","text/html"],e2=null,e3=null,e5=s.createElement("form"),e6=function(e){return e instanceof RegExp||e instanceof Function},e8=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!e3||e3!==e){if(e&&"object"==typeof e||(e={}),e=S(e),e2="application/xhtml+xml"===(e0=-1===e1.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE)?f:p,ev=_(e,"ALLOWED_TAGS")?k({},e.ALLOWED_TAGS,e2):ey,e_=_(e,"ALLOWED_ATTR")?k({},e.ALLOWED_ATTR,e2):eb,eQ=_(e,"ALLOWED_NAMESPACES")?k({},e.ALLOWED_NAMESPACES,f):eJ,eU=_(e,"ADD_URI_SAFE_ATTR")?k(S(eq),e.ADD_URI_SAFE_ATTR,e2):eq,eW=_(e,"ADD_DATA_URI_TAGS")?k(S(eH),e.ADD_DATA_URI_TAGS,e2):eH,eV=_(e,"FORBID_CONTENTS")?k({},e.FORBID_CONTENTS,e2):eB,ex=_(e,"FORBID_TAGS")?k({},e.FORBID_TAGS,e2):{},ek=_(e,"FORBID_ATTR")?k({},e.FORBID_ATTR,e2):{},ez=!!_(e,"USE_PROFILES")&&e.USE_PROFILES,eS=!1!==e.ALLOW_ARIA_ATTR,eE=!1!==e.ALLOW_DATA_ATTR,eT=e.ALLOW_UNKNOWN_PROTOCOLS||!1,eP=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,eR=e.SAFE_FOR_TEMPLATES||!1,eA=!1!==e.SAFE_FOR_XML,eC=e.WHOLE_DOCUMENT||!1,eL=e.RETURN_DOM||!1,eI=e.RETURN_DOM_FRAGMENT||!1,eM=e.RETURN_TRUSTED_TYPE||!1,eO=e.FORCE_BODY||!1,eD=!1!==e.SANITIZE_DOM,eN=e.SANITIZE_NAMED_PROPS||!1,e$=!1!==e.KEEP_CONTENT,ej=e.IN_PLACE||!1,eg=e.ALLOWED_URI_REGEXP||B,eX=e.NAMESPACE||eK,ew=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&e6(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ew.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&e6(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ew.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(ew.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),eR&&(eE=!1),eI&&(eL=!0),ez&&(ev=k({},O),e_=[],!0===ez.html&&(k(ev,T),k(e_,L)),!0===ez.svg&&(k(ev,P),k(e_,I),k(e_,D)),!0===ez.svgFilters&&(k(ev,R),k(e_,I),k(e_,D)),!0===ez.mathMl&&(k(ev,C),k(e_,M),k(e_,D))),e.ADD_TAGS&&(ev===ey&&(ev=S(ev)),k(ev,e.ADD_TAGS,e2)),e.ADD_ATTR&&(e_===eb&&(e_=S(e_)),k(e_,e.ADD_ATTR,e2)),e.ADD_URI_SAFE_ATTR&&k(eU,e.ADD_URI_SAFE_ATTR,e2),e.FORBID_CONTENTS&&(eV===eB&&(eV=S(eV)),k(eV,e.FORBID_CONTENTS,e2)),e$&&(ev["#text"]=!0),eC&&k(ev,["html","head","body"]),ev.table&&(k(ev,["tbody"]),delete ex.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw w('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw w('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');et=(n=e.TRUSTED_TYPES_POLICY).createHTML("")}else void 0===n&&(n=K(q,u)),null!==n&&"string"==typeof et&&(et=n.createHTML(""));o&&o(e),e3=e}},e4=k({},["mi","mo","mn","ms","mtext"]),e9=k({},["foreignobject","annotation-xml"]),e7=k({},["title","style","font","a","script"]),te=k({},[...P,...R,...A]),tt=k({},[...C,...F]),tn=function(e){let t=ee(e);t&&t.tagName||(t={namespaceURI:eX,tagName:"template"});let n=p(e.tagName),i=p(t.tagName);return!!eQ[e.namespaceURI]&&(e.namespaceURI===eY?t.namespaceURI===eK?"svg"===n:t.namespaceURI===eG?"svg"===n&&("annotation-xml"===i||e4[i]):!!te[n]:e.namespaceURI===eG?t.namespaceURI===eK?"math"===n:t.namespaceURI===eY?"math"===n&&e9[i]:!!tt[n]:e.namespaceURI===eK?(t.namespaceURI!==eY||!!e9[i])&&(t.namespaceURI!==eG||!!e4[i])&&!tt[n]&&(e7[n]||!te[n]):"application/xhtml+xml"===e0&&!!eQ[e.namespaceURI])},ti=function(e){h(r.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){e.remove()}},tr=function(e,t){try{h(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){h(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!e_[e]){if(eL||eI)try{ti(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}}},to=function(e){let t=null,i=null;if(eO)e="<remove></remove>"+e;else{let t=m(e,/^[\r\n\t ]+/);i=t&&t[0]}"application/xhtml+xml"===e0&&eX===eK&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");let r=n?n.createHTML(e):e;if(eX===eK)try{t=new H().parseFromString(r,e0)}catch(e){}if(!t||!t.documentElement){t=en.createDocument(eX,"template",null);try{t.documentElement.innerHTML=eZ?et:r}catch(e){}}let o=t.body||t.documentElement;return(e&&i&&o.insertBefore(s.createTextNode(i),o.childNodes[0]||null),eX===eK)?eo.call(t,eC?"html":"body")[0]:eC?t.documentElement:o},ts=function(e){return ei.call(e.ownerDocument||e,e,z.SHOW_ELEMENT|z.SHOW_COMMENT|z.SHOW_TEXT|z.SHOW_PROCESSING_INSTRUCTION|z.SHOW_CDATA_SECTION,null)},ta=function(e){return e instanceof W&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof V)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},tl=function(e){return"function"==typeof $&&e instanceof $},tu=function(e,t,n){ea[e]&&c(ea[e],e=>{e.call(r,t,n,e3)})},tc=function(e){let t=null;if(tu("beforeSanitizeElements",e,null),ta(e))return ti(e),!0;let n=e2(e.nodeName);if(tu("uponSanitizeElement",e,{tagName:n,allowedTags:ev}),e.hasChildNodes()&&!tl(e.firstElementChild)&&b(/<[/\w]/g,e.innerHTML)&&b(/<[/\w]/g,e.textContent)||e.nodeType===Y.progressingInstruction||eA&&e.nodeType===Y.comment&&b(/<[/\w]/g,e.data))return ti(e),!0;if(!ev[n]||ex[n]){if(!ex[n]&&th(n)&&(ew.tagNameCheck instanceof RegExp&&b(ew.tagNameCheck,n)||ew.tagNameCheck instanceof Function&&ew.tagNameCheck(n)))return!1;if(e$&&!eV[n]){let t=ee(e)||e.parentNode,n=J(e)||e.childNodes;if(n&&t){let i=n.length;for(let r=i-1;r>=0;--r){let i=Z(n[r],!0);i.__removalCount=(e.__removalCount||0)+1,t.insertBefore(i,Q(e))}}}return ti(e),!0}return e instanceof j&&!tn(e)||("noscript"===n||"noembed"===n||"noframes"===n)&&b(/<\/no(script|embed|frames)/i,e.innerHTML)?(ti(e),!0):(eR&&e.nodeType===Y.text&&(t=e.textContent,c([el,eu,ec],e=>{t=g(t,e," ")}),e.textContent!==t&&(h(r.removed,{element:e.cloneNode()}),e.textContent=t)),tu("afterSanitizeElements",e,null),!1)},td=function(e,t,n){if(eD&&("id"===t||"name"===t)&&(n in s||n in e5))return!1;if(eE&&!ek[t]&&b(ed,t));else if(eS&&b(eh,t));else if(!e_[t]||ek[t]){if(!(th(e)&&(ew.tagNameCheck instanceof RegExp&&b(ew.tagNameCheck,e)||ew.tagNameCheck instanceof Function&&ew.tagNameCheck(e))&&(ew.attributeNameCheck instanceof RegExp&&b(ew.attributeNameCheck,t)||ew.attributeNameCheck instanceof Function&&ew.attributeNameCheck(t))||"is"===t&&ew.allowCustomizedBuiltInElements&&(ew.tagNameCheck instanceof RegExp&&b(ew.tagNameCheck,n)||ew.tagNameCheck instanceof Function&&ew.tagNameCheck(n))))return!1}else if(eU[t]);else if(b(eg,g(n,ef,"")));else if(("src"===t||"xlink:href"===t||"href"===t)&&"script"!==e&&0===v(n,"data:")&&eW[e]);else if(eT&&!b(ep,g(n,ef,"")));else if(n)return!1;return!0},th=function(e){return"annotation-xml"!==e&&m(e,em)},tp=function(e){tu("beforeSanitizeAttributes",e,null);let{attributes:t}=e;if(!t)return;let i={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:e_},o=t.length;for(;o--;){let{name:s,namespaceURI:a,value:l}=t[o],u=e2(s),h="value"===s?l:y(l);if(i.attrName=u,i.attrValue=h,i.keepAttr=!0,i.forceKeepAttr=void 0,tu("uponSanitizeAttribute",e,i),h=i.attrValue,i.forceKeepAttr||(tr(s,e),!i.keepAttr))continue;if(!eP&&b(/\/>/i,h)||eA&&b(/((--!?|])>)|<\/(style|title)/i,h)){tr(s,e);continue}eR&&c([el,eu,ec],e=>{h=g(h,e," ")});let p=e2(e.nodeName);if(td(p,u,h)){if(eN&&("id"===u||"name"===u)&&(tr(s,e),h="user-content-"+h),n&&"object"==typeof q&&"function"==typeof q.getAttributeType){if(a);else switch(q.getAttributeType(p,u)){case"TrustedHTML":h=n.createHTML(h);break;case"TrustedScriptURL":h=n.createScriptURL(h)}}try{a?e.setAttributeNS(a,s,h):e.setAttribute(s,h),ta(e)?ti(e):d(r.removed)}catch(e){}}}tu("afterSanitizeAttributes",e,null)},tf=function e(t){let n=null,i=ts(t);for(tu("beforeSanitizeShadowDOM",t,null);n=i.nextNode();)tu("uponSanitizeShadowNode",n,null),tc(n)||(n.content instanceof x&&e(n.content),tp(n));tu("afterSanitizeShadowDOM",t,null)};return r.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null,o=null,s=null,a=null;if((eZ=!e)&&(e="<!-->"),"string"!=typeof e&&!tl(e)){if("function"==typeof e.toString){if("string"!=typeof(e=e.toString()))throw w("dirty is not a string, aborting")}else throw w("toString is not a function")}if(!r.isSupported)return e;if(eF||e8(t),r.removed=[],"string"==typeof e&&(ej=!1),ej){if(e.nodeName){let t=e2(e.nodeName);if(!ev[t]||ex[t])throw w("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof $)(o=(i=to("<!---->")).ownerDocument.importNode(e,!0)).nodeType===Y.element&&"BODY"===o.nodeName?i=o:"HTML"===o.nodeName?i=o:i.appendChild(o);else{if(!eL&&!eR&&!eC&&-1===e.indexOf("<"))return n&&eM?n.createHTML(e):e;if(!(i=to(e)))return eL?null:eM?et:""}i&&eO&&ti(i.firstChild);let u=ts(ej?e:i);for(;s=u.nextNode();)tc(s)||(s.content instanceof x&&tf(s.content),tp(s));if(ej)return e;if(eL){if(eI)for(a=er.call(i.ownerDocument);i.firstChild;)a.appendChild(i.firstChild);else a=i;return(e_.shadowroot||e_.shadowrootmode)&&(a=es.call(l,a,!0)),a}let d=eC?i.outerHTML:i.innerHTML;return eC&&ev["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&b(U,i.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+d),eR&&c([el,eu,ec],e=>{d=g(d,e," ")}),n&&eM?n.createHTML(d):d},r.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e8(e),eF=!0},r.clearConfig=function(){e3=null,eF=!1},r.isValidAttribute=function(e,t,n){return e3||e8({}),td(e2(e),e2(t),n)},r.addHook=function(e,t){"function"==typeof t&&(ea[e]=ea[e]||[],h(ea[e],t))},r.removeHook=function(e){if(ea[e])return d(ea[e])},r.removeHooks=function(e){ea[e]&&(ea[e]=[])},r.removeAllHooks=function(){ea={}},r}()},e.exports=t()},63:function(e,t,n){"use strict";var i=n(9415),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function l(e){return i.isMemo(e)?s:a[e.$$typeof]||r}a[i.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[i.Memo]=s;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,n,i){if("string"!=typeof n){if(f){var r=p(n);r&&r!==f&&e(t,r,i)}var s=c(n);d&&(s=s.concat(d(n)));for(var a=l(t),m=l(n),g=0;g<s.length;++g){var v=s[g];if(!o[v]&&!(i&&i[v])&&!(m&&m[v])&&!(a&&a[v])){var y=h(n,v);try{u(t,v,y)}catch(e){}}}}return t}},7383:function(e,t,n){e.exports=window.DOMPurify||(window.DOMPurify=n(2654).default||n(2654))},3440:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return a},noSSR:function(){return s}});let i=n(7940);n(7458),n(2983);let r=i._(n(4816));function o(e){return{default:(null==e?void 0:e.default)||e}}function s(e,t){return delete t.webpack,delete t.modules,e(t)}function a(e,t){let n=r.default,i={loading:e=>{let{error:t,isLoading:n,pastDelay:i}=e;return null}};e instanceof Promise?i.loader=()=>e:"function"==typeof e?i.loader=e:"object"==typeof e&&(i={...i,...e});let a=(i={...i,...t}).loader;return(i.loadableGenerated&&(i={...i,...i.loadableGenerated},delete i.loadableGenerated),"boolean"!=typeof i.ssr||i.ssr)?n({...i,loader:()=>null!=a?a().then(o):Promise.resolve(o(()=>null))}):(delete i.webpack,delete i.modules,s(n,i))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6021:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return i}});let i=n(7940)._(n(2983)).default.createContext(null)},4816:function(e,t,n){"use strict";/**
@copyright (c) 2017-present James Kyle <me@thejameskyle.com>
 MIT License
 Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
 The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
*/Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return h}});let i=n(7940)._(n(2983)),r=n(6021),o=[],s=[],a=!1;function l(e){let t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then(e=>(n.loading=!1,n.loaded=e,e)).catch(e=>{throw n.loading=!1,n.error=e,e}),n}class u{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function c(e){return function(e,t){let n=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),o=null;function l(){if(!o){let t=new u(e,n);o={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return o.promise()}if(!a){let e=n.webpack?n.webpack():n.modules;e&&s.push(t=>{for(let n of e)if(t.includes(n))return l()})}function c(e,t){!function(){l();let e=i.default.useContext(r.LoadableContext);e&&Array.isArray(n.modules)&&n.modules.forEach(t=>{e(t)})}();let s=i.default.useSyncExternalStore(o.subscribe,o.getCurrentValue,o.getCurrentValue);return i.default.useImperativeHandle(t,()=>({retry:o.retry}),[]),i.default.useMemo(()=>{var t;return s.loading||s.error?i.default.createElement(n.loading,{isLoading:s.loading,pastDelay:s.pastDelay,timedOut:s.timedOut,error:s.error,retry:o.retry}):s.loaded?i.default.createElement((t=s.loaded)&&t.default?t.default:t,e):null},[e,s])}return c.preload=()=>l(),c.displayName="LoadableComponent",i.default.forwardRef(c)}(l,e)}function d(e,t){let n=[];for(;e.length;){let i=e.pop();n.push(i(t))}return Promise.all(n).then(()=>{if(e.length)return d(e,t)})}c.preloadAll=()=>new Promise((e,t)=>{d(o).then(e,t)}),c.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let n=()=>(a=!0,t());d(s,e).then(n,n)})),window.__NEXT_PRELOADREADY=c.preloadReady;let h=c},6347:function(e,t,n){e.exports=n(3440)},710:function(e,t,n){"use strict";function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){u(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function l(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);s=!0);}catch(e){a=!0,r=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw r}}return o}}(e,t)||h(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||h(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){if(e){if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function f(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=h(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}n.d(t,{U0:function(){return i7}});var m={DEBUG:!1,LIB_VERSION:"1.139.0"},g=Array.isArray,v=Object.prototype,y=v.hasOwnProperty,_=v.toString,b=g||function(e){return"[object Array]"===_.call(e)},w=function(e){return"function"==typeof e},x=function(e){return e===Object(e)&&!b(e)},k=function(e){if(x(e)){for(var t in e)if(y.call(e,t))return!1;return!0}return!1},S=function(e){return void 0===e},E=function(e){return"[object String]"==_.call(e)},T=function(e){return null===e},P=function(e){return S(e)||T(e)},R=function(e){return"[object Number]"==_.call(e)},A=function(e){return"[object Boolean]"===_.call(e)},C="undefined"!=typeof window?window:void 0,F="undefined"!=typeof globalThis?globalThis:C,O=Array.prototype,L=O.forEach,I=O.indexOf,M=null==F?void 0:F.navigator,D=null==F?void 0:F.document,N=null==F?void 0:F.location,$=null==F?void 0:F.fetch,j=null!=F&&F.XMLHttpRequest&&"withCredentials"in new F.XMLHttpRequest?F.XMLHttpRequest:void 0,z=null==F?void 0:F.AbortController,V=null==M?void 0:M.userAgent,B=null!=C?C:{},W="[PostHog.js]",H={_log:function(e){if(C&&(m.DEBUG||B.POSTHOG_DEBUG)&&!S(C.console)&&C.console){for(var t=("__rrweb_original__"in C.console[e])?C.console[e].__rrweb_original__:C.console[e],n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];t.apply(void 0,[W].concat(i))}},info:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];H._log.apply(H,["log"].concat(t))},warn:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];H._log.apply(H,["warn"].concat(t))},error:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];H._log.apply(H,["error"].concat(t))},critical:function(){for(var e,t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];(e=console).error.apply(e,[W].concat(n))},uninitializedWarning:function(e){H.error("You must initialize PostHog before calling ".concat(e))}},U={},q=function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")};function G(e,t,n){if(b(e)){if(L&&e.forEach===L)e.forEach(t,n);else if("length"in e&&e.length===+e.length){for(var i=0,r=e.length;i<r;i++)if(i in e&&t.call(n,e[i],i)===U)return}}}function Y(e,t,n){if(!P(e)){if(b(e))return G(e,t,n);if(e instanceof FormData){var i,r=f(e.entries());try{for(r.s();!(i=r.n()).done;){var o=i.value;if(t.call(n,o[1],o[0])===U)return}}catch(e){r.e(e)}finally{r.f()}}else for(var s in e)if(y.call(e,s)&&t.call(n,e[s],s)===U)return}}var K=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return G(n,function(t){for(var n in t)void 0!==t[n]&&(e[n]=t[n])}),e};function X(e,t){return -1!==e.indexOf(t)}function Z(e){for(var t=Object.keys(e),n=t.length,i=Array(n);n--;)i[n]=[t[n],e[t[n]]];return i}var Q,J=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},ee=function(e){try{return e()}catch(e){return}},et=function(e){return function(){try{for(var t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];return e.apply(this,n)}catch(e){H.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),H.critical(e)}}},en=function(e){var t={};return Y(e,function(e,n){E(e)&&e.length>0&&(t[n]=e)}),t},ei=function(e){return e.replace(/^\$/,"")},er=function(e){var t,n,i,r,o="";for(t=n=0,i=(e=(e+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n")).length,r=0;r<i;r++){var s=e.charCodeAt(r),a=null;s<128?n++:a=s>127&&s<2048?String.fromCharCode(s>>6|192,63&s|128):String.fromCharCode(s>>12|224,s>>6&63|128,63&s|128),T(a)||(n>t&&(o+=e.substring(t,n)),o+=a,t=n=r+1)}return n>t&&(o+=e.substring(t,e.length)),o},eo=function(){function e(t){return t&&(t.preventDefault=e.preventDefault,t.stopPropagation=e.stopPropagation),t}return e.preventDefault=function(){this.returnValue=!1},e.stopPropagation=function(){this.cancelBubble=!0},function(t,n,i,r,o){if(t){if(t.addEventListener&&!r)t.addEventListener(n,i,!!o);else{var s="on"+n,a=t[s];t[s]=function(n){if(n=n||e(null==C?void 0:C.event)){var r,o=!0;w(a)&&(r=a(n));var s=i.call(t,n);return!1!==r&&!1!==s||(o=!1),o}}}}else H.error("No valid element provided to register_event")}}();function es(e,t){var n=function(){if(!D)return t("document not found");var n=D.createElement("script");n.type="text/javascript",n.src=e,n.onload=function(e){return t(void 0,e)},n.onerror=function(e){return t(e)};var i,r=D.querySelectorAll("body > script");r.length>0?null===(i=r[0].parentNode)||void 0===i||i.insertBefore(n,r[0]):D.body.appendChild(n)};null!=D&&D.body?n():null==D||D.addEventListener("DOMContentLoaded",n)}function ea(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return e[n]}(eq=Q||(Q={})).GZipJS="gzip-js",eq.Base64="base64";var el="$people_distinct_id",eu="__alias",ec="__timers",ed="$autocapture_disabled_server_side",eh="$heatmaps_enabled_server_side",ep="$session_recording_enabled_server_side",ef="$console_log_recording_enabled_server_side",em="$session_recording_network_payload_capture",eg="$session_recording_canvas_recording",ev="$replay_sample_rate",ey="$replay_minimum_duration",e_="$sesid",eb="$session_is_sampled",ew="$enabled_feature_flags",ex="$early_access_features",ek="$stored_person_properties",eS="$stored_group_properties",eE="$surveys",eT="$surveys_activated",eP="$flag_call_reported",eR="$user_state",eA="$client_session_props",eC="$capture_rate_limit",eF="$initial_campaign_params",eO="$initial_referrer_info",eL="$initial_person_info",eI="$epp",eM="__POSTHOG_TOOLBAR__",eD=[el,eu,"__cmpns",ec,ep,eh,e_,ew,eR,ex,eS,ek,eE,eP,eA,eC,eF,eO,eI],eN="$active_feature_flags",e$="$override_feature_flags",ej="$feature_flag_payloads",ez=function(e){var t,n={},i=f(Z(e||{}));try{for(i.s();!(t=i.n()).done;){var r=c(t.value,2),o=r[0],s=r[1];s&&(n[o]=s)}}catch(e){i.e(e)}finally{i.f()}return n},eV=function(){function e(t){s(this,e),this.instance=t,this._override_warning=!1,this.featureFlagEventHandlers=[],this.reloadFeatureFlagsQueued=!1,this.reloadFeatureFlagsInAction=!1}return l(e,[{key:"getFlags",value:function(){return Object.keys(this.getFlagVariants())}},{key:"getFlagVariants",value:function(){var e=this.instance.get_property(ew),t=this.instance.get_property(e$);if(!t)return e||{};for(var n=K({},e),i=Object.keys(t),r=0;r<i.length;r++)n[i[r]]=t[i[r]];return this._override_warning||(H.warn(" Overriding feature flags!",{enabledFlags:e,overriddenFlags:t,finalFlags:n}),this._override_warning=!0),n}},{key:"getFlagPayloads",value:function(){return this.instance.get_property(ej)||{}}},{key:"reloadFeatureFlags",value:function(){this.reloadFeatureFlagsQueued||(this.reloadFeatureFlagsQueued=!0,this._startReloadTimer())}},{key:"setAnonymousDistinctId",value:function(e){this.$anon_distinct_id=e}},{key:"setReloadingPaused",value:function(e){this.reloadFeatureFlagsInAction=e}},{key:"resetRequestQueue",value:function(){this.reloadFeatureFlagsQueued=!1}},{key:"_startReloadTimer",value:function(){var e=this;this.reloadFeatureFlagsQueued&&!this.reloadFeatureFlagsInAction&&setTimeout(function(){!e.reloadFeatureFlagsInAction&&e.reloadFeatureFlagsQueued&&(e.reloadFeatureFlagsQueued=!1,e._reloadFeatureFlagsRequest())},5)}},{key:"_reloadFeatureFlagsRequest",value:function(){var e=this;if(!this.instance.config.advanced_disable_feature_flags){this.setReloadingPaused(!0);var t=this.instance.config.token,n=this.instance.get_property(ek),i=this.instance.get_property(eS),r={token:t,distinct_id:this.instance.get_distinct_id(),groups:this.instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:n,group_properties:i,disable_flags:this.instance.config.advanced_disable_feature_flags||void 0};this.instance._send_request({method:"POST",url:this.instance.requestRouter.endpointFor("api","/decide/?v=3"),data:r,compression:this.instance.config.disable_compression?void 0:Q.Base64,timeout:this.instance.config.feature_flag_request_timeout_ms,callback:function(t){e.setReloadingPaused(!1);var n,i=!0;200===t.statusCode&&(e.$anon_distinct_id=void 0,i=!1),e.receivedFeatureFlags(null!==(n=t.json)&&void 0!==n?n:{},i),e._startReloadTimer()}})}}},{key:"getFeatureFlag",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.instance.decideEndpointWasHit||this.getFlags()&&this.getFlags().length>0){var n,i=this.getFlagVariants()[e],r="".concat(i),o=this.instance.get_property(eP)||{};return!t.send_event&&"send_event"in t||e in o&&o[e].includes(r)||(b(o[e])?o[e].push(r):o[e]=[r],null===(n=this.instance.persistence)||void 0===n||n.register(u({},eP,o)),this.instance.capture("$feature_flag_called",{$feature_flag:e,$feature_flag_response:i})),i}H.warn('getFeatureFlag for key "'+e+"\" failed. Feature flags didn't load in time.")}},{key:"getFeatureFlagPayload",value:function(e){return this.getFlagPayloads()[e]}},{key:"isFeatureEnabled",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.instance.decideEndpointWasHit||this.getFlags()&&this.getFlags().length>0)return!!this.getFeatureFlag(e,t);H.warn('isFeatureEnabled for key "'+e+"\" failed. Feature flags didn't load in time.")}},{key:"addFeatureFlagsHandler",value:function(e){this.featureFlagEventHandlers.push(e)}},{key:"removeFeatureFlagsHandler",value:function(e){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter(function(t){return t!==e})}},{key:"receivedFeatureFlags",value:function(e,t){if(this.instance.persistence){this.instance.decideEndpointWasHit=!0;var n=this.getFlagVariants(),i=this.getFlagPayloads();(function(e,t){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},s=e.featureFlags,a=e.featureFlagPayloads;if(s){if(b(s)){var l,c={};if(s)for(var d=0;d<s.length;d++)c[s[d]]=!0;t&&t.register((u(l={},eN,s),u(l,ew,c),l))}else{var h=s,p=a;e.errorsWhileComputingFlags&&(h=r(r({},i),h),p=r(r({},o),p)),t&&t.register((u(n={},eN,Object.keys(ez(h))),u(n,ew,h||{}),u(n,ej,p||{}),n))}}})(e,this.instance.persistence,n,i),this._fireFeatureFlagsCallbacks(t)}}},{key:"override",value:function(e){if(!this.instance.__loaded||!this.instance.persistence)return H.uninitializedWarning("posthog.feature_flags.override");if(this._override_warning=!1,!1===e)this.instance.persistence.unregister(e$);else if(b(e)){for(var t={},n=0;n<e.length;n++)t[e[n]]=!0;this.instance.persistence.register(u({},e$,t))}else this.instance.persistence.register(u({},e$,e))}},{key:"onFeatureFlags",value:function(e){var t=this;if(this.addFeatureFlagsHandler(e),this.instance.decideEndpointWasHit){var n=this._prepareFeatureFlagsForCallbacks();e(n.flags,n.flagVariants)}return function(){return t.removeFeatureFlagsHandler(e)}}},{key:"updateEarlyAccessFeatureEnrollment",value:function(e,t){var n,i,o=u({},"$feature_enrollment/".concat(e),t);this.instance.capture("$feature_enrollment_update",{$feature_flag:e,$feature_enrollment:t,$set:o}),this.setPersonPropertiesForFlags(o,!1);var s=r(r({},this.getFlagVariants()),{},u({},e,t));null===(n=this.instance.persistence)||void 0===n||n.register((u(i={},eN,Object.keys(ez(s))),u(i,ew,s),i)),this._fireFeatureFlagsCallbacks()}},{key:"getEarlyAccessFeatures",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.instance.get_property(ex);if(i&&!n)return e(i);this.instance._send_request({transport:"XHR",url:this.instance.requestRouter.endpointFor("api","/api/early_access_features/?token=".concat(this.instance.config.token)),method:"GET",callback:function(n){var i;if(n.json){var r=n.json.earlyAccessFeatures;return null===(i=t.instance.persistence)||void 0===i||i.register(u({},ex,r)),e(r)}}})}},{key:"_prepareFeatureFlagsForCallbacks",value:function(){var e=this.getFlags(),t=this.getFlagVariants();return{flags:e.filter(function(e){return t[e]}),flagVariants:Object.keys(t).filter(function(e){return t[e]}).reduce(function(e,n){return e[n]=t[n],e},{})}}},{key:"_fireFeatureFlagsCallbacks",value:function(e){var t=this._prepareFeatureFlagsForCallbacks(),n=t.flags,i=t.flagVariants;this.featureFlagEventHandlers.forEach(function(t){return t(n,i,{errorsLoading:e})})}},{key:"setPersonPropertiesForFlags",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.instance.get_property(ek)||{};this.instance.register(u({},ek,r(r({},n),e))),t&&this.instance.reloadFeatureFlags()}},{key:"resetPersonPropertiesForFlags",value:function(){this.instance.unregister(ek)}},{key:"setGroupPropertiesForFlags",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.instance.get_property(eS)||{};0!==Object.keys(n).length&&Object.keys(n).forEach(function(t){n[t]=r(r({},n[t]),e[t]),delete e[t]}),this.instance.register(u({},eS,r(r({},n),e))),t&&this.instance.reloadFeatureFlags()}},{key:"resetGroupPropertiesForFlags",value:function(e){if(e){var t=this.instance.get_property(eS)||{};this.instance.register(u({},eS,r(r({},t),{},u({},e,{}))))}else this.instance.unregister(eS)}}]),e}();Math.trunc||(Math.trunc=function(e){return e<0?Math.ceil(e):Math.floor(e)}),Number.isInteger||(Number.isInteger=function(e){return R(e)&&isFinite(e)&&Math.floor(e)===e});var eB="0123456789abcdef",eW=function(){function e(t){if(s(this,e),this.bytes=t,16!==t.length)throw TypeError("not 128-bit length")}return l(e,[{key:"toString",value:function(){for(var e="",t=0;t<this.bytes.length;t++)e=e+eB.charAt(this.bytes[t]>>>4)+eB.charAt(15&this.bytes[t]),3!==t&&5!==t&&7!==t&&9!==t||(e+="-");if(36!==e.length)throw Error("Invalid UUIDv7 was generated");return e}},{key:"clone",value:function(){return new e(this.bytes.slice(0))}},{key:"equals",value:function(e){return 0===this.compareTo(e)}},{key:"compareTo",value:function(e){for(var t=0;t<16;t++){var n=this.bytes[t]-e.bytes[t];if(0!==n)return Math.sign(n)}return 0}}],[{key:"fromFieldsV7",value:function(t,n,i,r){if(!Number.isInteger(t)||!Number.isInteger(n)||!Number.isInteger(i)||!Number.isInteger(r)||t<0||n<0||i<0||r<0||t>0xffffffffffff||n>4095||i>1073741823||r>4294967295)throw RangeError("invalid field value");var o=new Uint8Array(16);return o[0]=t/1099511627776,o[1]=t/4294967296,o[2]=t/16777216,o[3]=t/65536,o[4]=t/256,o[5]=t,o[6]=112|n>>>8,o[7]=n,o[8]=128|i>>>24,o[9]=i>>>16,o[10]=i>>>8,o[11]=i,o[12]=r>>>24,o[13]=r>>>16,o[14]=r>>>8,o[15]=r,new e(o)}}]),e}(),eH=function(){function e(){s(this,e),u(this,"timestamp",0),u(this,"counter",0),u(this,"random",new eK)}return l(e,[{key:"generate",value:function(){var e=this.generateOrAbort();if(S(e)){this.timestamp=0;var t=this.generateOrAbort();if(S(t))throw Error("Could not generate UUID after timestamp reset");return t}return e}},{key:"generateOrAbort",value:function(){var e=Date.now();if(e>this.timestamp)this.timestamp=e,this.resetCounter();else{if(!(e+1e4>this.timestamp))return;this.counter++,this.counter>4398046511103&&(this.timestamp++,this.resetCounter())}return eW.fromFieldsV7(this.timestamp,Math.trunc(this.counter/1073741824),1073741823&this.counter,this.random.nextUint32())}},{key:"resetCounter",value:function(){this.counter=1024*this.random.nextUint32()+(1023&this.random.nextUint32())}}]),e}(),eU=function(e){if("undefined"!=typeof UUIDV7_DENY_WEAK_RNG&&UUIDV7_DENY_WEAK_RNG)throw Error("no cryptographically strong RNG available");for(var t=0;t<e.length;t++)e[t]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return e};C&&!S(C.crypto)&&crypto.getRandomValues&&(eU=function(e){return crypto.getRandomValues(e)});var eq,eG,eY,eK=function(){function e(){s(this,e),u(this,"buffer",new Uint32Array(8)),u(this,"cursor",1/0)}return l(e,[{key:"nextUint32",value:function(){return this.cursor>=this.buffer.length&&(eU(this.buffer),this.cursor=0),this.buffer[this.cursor++]}}]),e}(),eX=function(){return eZ().toString()},eZ=function(){return(eG||(eG=new eH)).generate()},eQ="",eJ=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i,e0={is_supported:function(){return!!D},error:function(e){H.error("cookieStore error: "+e)},get:function(e){if(D){try{for(var t=e+"=",n=D.cookie.split(";").filter(function(e){return e.length}),i=0;i<n.length;i++){for(var r=n[i];" "==r.charAt(0);)r=r.substring(1,r.length);if(0===r.indexOf(t))return decodeURIComponent(r.substring(t.length,r.length))}}catch(e){}return null}},parse:function(e){var t;try{t=JSON.parse(e0.get(e))||{}}catch(e){}return t},set:function(e,t,n,i,r){if(D)try{var o="",s="",a=function(e,t){if(t){var n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:D;if(eQ)return eQ;if(!t||["localhost","127.0.0.1"].includes(e))return"";for(var n=e.split("."),i=Math.min(n.length,8),r="dmn_chk_"+eX(),o=RegExp("(^|;)\\s*"+r+"=1");!eQ&&i--;){var s=n.slice(i).join("."),a=r+"=1;domain=."+s;t.cookie=a,o.test(t.cookie)&&(t.cookie=a+";expires=Thu, 01 Jan 1970 00:00:00 GMT",eQ=s)}return eQ}(e);if(!n){var i,r=(i=e.match(eJ))?i[0]:"";r!==n&&H.info("Warning: cookie subdomain discovery mismatch",r,n),n=r}return n?"; domain=."+n:""}return""}(D.location.hostname,i);if(n){var l=new Date;l.setTime(l.getTime()+24*n*36e5),o="; expires="+l.toUTCString()}r&&(s="; secure");var u=e+"="+encodeURIComponent(JSON.stringify(t))+o+"; SameSite=Lax; path=/"+a+s;return u.length>3686.4&&H.warn("cookieStore warning: large cookie, len="+u.length),D.cookie=u,u}catch(e){return}},remove:function(e,t){try{e0.set(e,"",-1,t)}catch(e){return}}},e1=null,e2={is_supported:function(){if(!T(e1))return e1;var e=!0;if(S(C))e=!1;else try{var t="__mplssupport__";e2.set(t,"xyz"),'"xyz"'!==e2.get(t)&&(e=!1),e2.remove(t)}catch(t){e=!1}return e||H.error("localStorage unsupported; falling back to cookie store"),e1=e,e},error:function(e){H.error("localStorage error: "+e)},get:function(e){try{return null==C?void 0:C.localStorage.getItem(e)}catch(e){e2.error(e)}return null},parse:function(e){try{return JSON.parse(e2.get(e))||{}}catch(e){}return null},set:function(e,t){try{null==C||C.localStorage.setItem(e,JSON.stringify(t))}catch(e){e2.error(e)}},remove:function(e){try{null==C||C.localStorage.removeItem(e)}catch(e){e2.error(e)}}},e3=["distinct_id",e_,eb,eI],e5=r(r({},e2),{},{parse:function(e){try{var t={};try{t=e0.parse(e)||{}}catch(e){}var n=K(t,JSON.parse(e2.get(e)||"{}"));return e2.set(e,n),n}catch(e){}return null},set:function(e,t,n,i,r){try{e2.set(e,t);var o={};e3.forEach(function(e){t[e]&&(o[e]=t[e])}),Object.keys(o).length&&e0.set(e,o,n,i,r)}catch(e){e2.error(e)}},remove:function(e,t){try{null==C||C.localStorage.removeItem(e),e0.remove(e,t)}catch(e){e2.error(e)}}}),e6={},e8={is_supported:function(){return!0},error:function(e){H.error("memoryStorage error: "+e)},get:function(e){return e6[e]||null},parse:function(e){return e6[e]||null},set:function(e,t){e6[e]=t},remove:function(e){delete e6[e]}},e4=null,e9={is_supported:function(){if(!T(e4))return e4;if(e4=!0,S(C))e4=!1;else try{var e="__support__";e9.set(e,"xyz"),'"xyz"'!==e9.get(e)&&(e4=!1),e9.remove(e)}catch(e){e4=!1}return e4},error:function(e){H.error("sessionStorage error: ",e)},get:function(e){try{return null==C?void 0:C.sessionStorage.getItem(e)}catch(e){e9.error(e)}return null},parse:function(e){try{return JSON.parse(e9.get(e))||null}catch(e){}return null},set:function(e,t){try{null==C||C.sessionStorage.setItem(e,JSON.stringify(t))}catch(e){e9.error(e)}},remove:function(e){try{null==C||C.sessionStorage.removeItem(e)}catch(e){e9.error(e)}}},e7=["localhost","127.0.0.1"],te=function(e){var t=null==D?void 0:D.createElement("a");return S(t)?null:(t.href=e,t)},tt=function(e){var t,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"&",r=[];return Y(e,function(e,i){S(e)||S(i)||"undefined"===i||(t=encodeURIComponent(e instanceof File?e.name:e.toString()),n=encodeURIComponent(i),r[r.length]=n+"="+t)}),r.join(i)},tn=function(e,t){for(var n,i=((e.split("#")[0]||"").split("?")[1]||"").split("&"),r=0;r<i.length;r++){var o=i[r].split("=");if(o[0]===t){n=o;break}}if(!b(n)||n.length<2)return"";var s=n[1];try{s=decodeURIComponent(s)}catch(e){H.error("Skipping decoding for malformed query param: "+s)}return s.replace(/\+/g," ")},ti=function(e,t){var n=e.match(RegExp(t+"=([^&]*)"));return n?n[1]:null},tr="Mobile",to="Android",ts="Tablet",ta=to+" "+ts,tl="iPad",tu="Apple",tc=tu+" Watch",td="Safari",th="BlackBerry",tp="Samsung",tf=tp+"Browser",tm=tp+" Internet",tg="Chrome",tv=tg+" OS",ty=tg+" iOS",t_="Internet Explorer",tb=t_+" "+tr,tw="Opera",tx=tw+" Mini",tk="Edge",tS="Microsoft "+tk,tE="Firefox",tT=tE+" iOS",tP="Nintendo",tR="PlayStation",tA="Xbox",tC=to+" "+tr,tF=tr+" "+td,tO="Windows",tL=tO+" Phone",tI="Nokia",tM="Ouya",tD="Generic",tN=tD+" "+tr.toLowerCase(),t$=tD+" "+ts.toLowerCase(),tj="Konqueror",tz="(\\d+(\\.\\d+)?)",tV=RegExp("Version/"+tz),tB=RegExp(tA,"i"),tW=RegExp(tR+" \\w+","i"),tH=RegExp(tP+" \\w+","i"),tU=RegExp(th+"|PlayBook|BB10","i"),tq={"NT3.51":"NT 3.11","NT4.0":"NT 4.0","5.0":"2000",5.1:"XP",5.2:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1",6.4:"10","10.0":"10"},tG=function(e,t){var n,i;return t=t||"",X(e," OPR/")&&X(e,"Mini")?tx:X(e," OPR/")?tw:tU.test(e)?th:X(e,"IE"+tr)||X(e,"WPDesktop")?tb:X(e,tf)?tm:X(e,tk)||X(e,"Edg/")?tS:X(e,"FBIOS")?"Facebook "+tr:X(e,"UCWEB")||X(e,"UCBrowser")?"UC Browser":X(e,"CriOS")?ty:X(e,"CrMo")?tg:X(e,to)&&X(e,td)?tC:X(e,tg)?tg:X(e,"FxiOS")?tT:X(e.toLowerCase(),tj.toLowerCase())?tj:(n=e,(i=t)&&X(i,tu)||X(n,td)&&!X(n,tg)&&!X(n,to))?X(e,tr)?tF:td:X(e,tE)?tE:X(e,"MSIE")||X(e,"Trident/")?t_:X(e,"Gecko")?tE:""},tY=(u(eY={},tb,[RegExp("rv:"+tz)]),u(eY,tS,[RegExp(tk+"?\\/"+tz)]),u(eY,tg,[RegExp("("+tg+"|CrMo)\\/"+tz)]),u(eY,ty,[RegExp("CriOS\\/"+tz)]),u(eY,"UC Browser",[RegExp("(UCBrowser|UCWEB)\\/"+tz)]),u(eY,td,[tV]),u(eY,tF,[tV]),u(eY,tw,[RegExp("(Opera|OPR)\\/"+tz)]),u(eY,tE,[RegExp(tE+"\\/"+tz)]),u(eY,tT,[RegExp("FxiOS\\/"+tz)]),u(eY,tj,[RegExp("Konqueror[:/]?"+tz,"i")]),u(eY,th,[RegExp(th+" "+tz),tV]),u(eY,tC,[RegExp("android\\s"+tz,"i")]),u(eY,tm,[RegExp(tf+"\\/"+tz)]),u(eY,t_,[RegExp("(rv:|MSIE )"+tz)]),u(eY,"Mozilla",[RegExp("rv:"+tz)]),eY),tK=[[RegExp(tA+"; "+tA+" (.*?)[);]","i"),function(e){return[tA,e&&e[1]||""]}],[RegExp(tP,"i"),[tP,""]],[RegExp(tR,"i"),[tR,""]],[tU,[th,""]],[RegExp(tO,"i"),function(e,t){if(/Phone/.test(t)||/WPDesktop/.test(t))return[tL,""];if(new RegExp(tr).test(t)&&!/IEMobile\b/.test(t))return[tO+" "+tr,""];var n=/Windows NT ([0-9.]+)/i.exec(t);if(n&&n[1]){var i=tq[n[1]]||"";return/arm/i.test(t)&&(i="RT"),[tO,i]}return[tO,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,function(e){return e&&e[3]?["iOS",[e[3],e[4],e[5]||"0"].join(".")]:["iOS",""]}],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,function(e){var t="";return e&&e.length>=3&&(t=S(e[2])?e[3]:e[2]),["watchOS",t]}],[RegExp("("+to+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+to+")","i"),function(e){return e&&e[2]?[to,[e[2],e[3],e[4]||"0"].join(".")]:[to,""]}],[/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i,function(e){var t=["Mac OS X",""];if(e&&e[1]){var n=[e[1],e[2],e[3]||"0"];t[1]=n.join(".")}return t}],[/Mac/i,["Mac OS X",""]],[/CrOS/,[tv,""]],[/Linux|debian/i,["Linux",""]]],tX=function(e){return tH.test(e)?tP:tW.test(e)?tR:tB.test(e)?tA:RegExp(tM,"i").test(e)?tM:RegExp("("+tL+"|WPDesktop)","i").test(e)?tL:/iPad/.test(e)?tl:/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(e)?tc:tU.test(e)?th:/(kobo)\s(ereader|touch)/i.test(e)?"Kobo":RegExp(tI,"i").test(e)?tI:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(e)||/(kf[a-z]+)( bui|\)).+silk\//i.test(e)?"Kindle Fire":/(Android|ZTE)/i.test(e)?!new RegExp(tr).test(e)||/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(e)?/pixel[\daxl ]{1,6}/i.test(e)&&!/pixel c/i.test(e)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(e)||/lmy47v/i.test(e)&&!/QTAQZ3/i.test(e)?to:ta:to:RegExp("(pda|"+tr+")","i").test(e)?tN:RegExp(ts,"i").test(e)&&!RegExp(ts+" pc","i").test(e)?t$:""},tZ="https?://(.*)",tQ=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gclid","gad_source","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","mc_cid","igshid","ttclid"],tJ={campaignParams:function(e){return D?this._campaignParamsFromUrl(D.URL,e):{}},_campaignParamsFromUrl:function(e,t){var n=tQ.concat(t||[]),i={};return Y(n,function(t){var n=tn(e,t);n&&(i[t]=n)}),i},_searchEngine:function(e){return e?0===e.search(tZ+"google.([^/?]*)")?"google":0===e.search(tZ+"bing.com")?"bing":0===e.search(tZ+"yahoo.com")?"yahoo":0===e.search(tZ+"duckduckgo.com")?"duckduckgo":null:null},_searchInfoFromReferrer:function(e){var t=tJ._searchEngine(e),n={};if(!T(t)){n.$search_engine=t;var i=D?tn(D.referrer,"yahoo"!=t?"q":"p"):"";i.length&&(n.ph_keyword=i)}return n},searchInfo:function(){var e=null==D?void 0:D.referrer;return e?this._searchInfoFromReferrer(e):{}},browser:tG,browserVersion:function(e,t){var n=tY[tG(e,t)];if(S(n))return null;for(var i=0;i<n.length;i++){var r=n[i],o=e.match(r);if(o)return parseFloat(o[o.length-2])}return null},browserLanguage:function(){return navigator.language||navigator.userLanguage},os:function(e){for(var t=0;t<tK.length;t++){var n=c(tK[t],2),i=n[0],r=n[1],o=i.exec(e),s=o&&(w(r)?r(o,e):r);if(s)return s}return["",""]},device:tX,deviceType:function(e){var t=tX(e);return t===tl||t===ta||"Kobo"===t||"Kindle Fire"===t||t===t$?ts:t===tP||t===tA||t===tR||t===tM?"Console":t===tc?"Wearable":t?tr:"Desktop"},referrer:function(){return(null==D?void 0:D.referrer)||"$direct"},referringDomain:function(){var e;return null!=D&&D.referrer&&(null===(e=te(D.referrer))||void 0===e?void 0:e.host)||"$direct"},referrerInfo:function(){return{$referrer:this.referrer(),$referring_domain:this.referringDomain()}},initialPersonInfo:function(){return{r:this.referrer(),u:null==N?void 0:N.href}},initialPersonPropsFromInfo:function(e){var t,n=e.r,i=e.u,r={$initial_referrer:n,$initial_referring_domain:null==n?void 0:"$direct"==n?"$direct":null===(t=te(n))||void 0===t?void 0:t.host};if(i){r.$initial_current_url=i;var o=te(i);r.$initial_host=null==o?void 0:o.host,r.$initial_pathname=null==o?void 0:o.pathname,Y(this._campaignParamsFromUrl(i),function(e,t){r["$initial_"+ei(t)]=e})}return n&&Y(this._searchInfoFromReferrer(n),function(e,t){r["$initial_"+ei(t)]=e}),r},properties:function(){if(!V)return{};var e=c(tJ.os(V),2);return K(en({$os:e[0],$os_version:e[1],$browser:tJ.browser(V,navigator.vendor),$device:tJ.device(V),$device_type:tJ.deviceType(V)}),{$current_url:null==N?void 0:N.href,$host:null==N?void 0:N.host,$pathname:null==N?void 0:N.pathname,$raw_user_agent:V.length>1e3?V.substring(0,997)+"...":V,$browser_version:tJ.browserVersion(V,navigator.vendor),$browser_language:tJ.browserLanguage(),$screen_height:null==C?void 0:C.screen.height,$screen_width:null==C?void 0:C.screen.width,$viewport_height:null==C?void 0:C.innerHeight,$viewport_width:null==C?void 0:C.innerWidth,$lib:"web",$lib_version:m.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:J()/1e3})},people_properties:function(){if(!V)return{};var e=c(tJ.os(V),2);return K(en({$os:e[0],$os_version:e[1],$browser:tJ.browser(V,navigator.vendor)}),{$browser_version:tJ.browserVersion(V,navigator.vendor)})}},t0=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"],t1=function(){function e(t){var n;s(this,e),this.config=t,this.props={},this.campaign_params_saved=!1,this.name=(n="",t.token&&(n=t.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),t.persistence_name?"ph_"+t.persistence_name:"ph_"+n+"_posthog"),this.storage=this.buildStorage(t),this.load(),this.update_config(t,t),this.save()}return l(e,[{key:"buildStorage",value:function(e){-1===t0.indexOf(e.persistence.toLowerCase())&&(H.critical("Unknown persistence type "+e.persistence+"; falling back to localStorage+cookie"),e.persistence="localStorage+cookie");var t=e.persistence.toLowerCase();return"localstorage"===t&&e2.is_supported()?e2:"localstorage+cookie"===t&&e5.is_supported()?e5:"sessionstorage"===t&&e9.is_supported()?e9:"memory"===t?e8:"cookie"===t?e0:e5.is_supported()?e5:e0}},{key:"properties",value:function(){var e={};return Y(this.props,function(t,n){if(n===ew&&x(t))for(var i,r=Object.keys(t),o=0;o<r.length;o++)e["$feature/".concat(r[o])]=t[r[o]];else i=!1,(T(eD)?i:I&&eD.indexOf===I?-1!=eD.indexOf(n):(Y(eD,function(e){if(i||(i=e===n))return U}),i))||(e[n]=t)}),e}},{key:"load",value:function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=K({},e))}}},{key:"save",value:function(){this.disabled||this.storage.set(this.name,this.props,this.expire_days,this.cross_subdomain,this.secure)}},{key:"remove",value:function(){this.storage.remove(this.name,!1),this.storage.remove(this.name,!0)}},{key:"clear",value:function(){this.remove(),this.props={}}},{key:"register_once",value:function(e,t,n){var i=this;if(x(e)){S(t)&&(t="None"),this.expire_days=S(n)?this.default_expiry:n;var r=!1;if(Y(e,function(e,n){i.props.hasOwnProperty(n)&&i.props[n]!==t||(i.props[n]=e,r=!0)}),r)return this.save(),!0}return!1}},{key:"register",value:function(e,t){var n=this;if(x(e)){this.expire_days=S(t)?this.default_expiry:t;var i=!1;if(Y(e,function(t,r){e.hasOwnProperty(r)&&n.props[r]!==t&&(n.props[r]=t,i=!0)}),i)return this.save(),!0}return!1}},{key:"unregister",value:function(e){e in this.props&&(delete this.props[e],this.save())}},{key:"update_campaign_params",value:function(){this.campaign_params_saved||(this.register(tJ.campaignParams(this.config.custom_campaign_params)),this.campaign_params_saved=!0)}},{key:"update_search_keyword",value:function(){this.register(tJ.searchInfo())}},{key:"update_referrer_info",value:function(){this.register(tJ.referrerInfo())}},{key:"set_initial_person_info",value:function(){this.props[eF]||this.props[eO]||this.register_once(u({},eL,tJ.initialPersonInfo()),void 0)}},{key:"get_referrer_info",value:function(){return en({$referrer:this.props.$referrer,$referring_domain:this.props.$referring_domain})}},{key:"get_initial_props",value:function(){var e=this,t={};Y([eO,eF],function(n){var i=e.props[n];i&&Y(i,function(e,n){t["$initial_"+ei(n)]=e})});var n=this.props[eL];return n&&K(t,tJ.initialPersonPropsFromInfo(n)),t}},{key:"safe_merge",value:function(e){return Y(this.props,function(t,n){n in e||(e[n]=t)}),e}},{key:"update_config",value:function(e,t){if(this.default_expiry=this.expire_days=e.cookie_expiration,this.set_disabled(e.disable_persistence),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie),e.persistence!==t.persistence){var n=this.buildStorage(e),i=this.props;this.clear(),this.storage=n,this.props=i,this.save()}}},{key:"set_disabled",value:function(e){this.disabled=e,this.disabled?this.remove():this.save()}},{key:"set_cross_subdomain",value:function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())}},{key:"get_cross_subdomain",value:function(){return!!this.cross_subdomain}},{key:"set_secure",value:function(e){e!==this.secure&&(this.secure=e,this.remove(),this.save())}},{key:"set_event_timer",value:function(e,t){var n=this.props[ec]||{};n[e]=t,this.props[ec]=n,this.save()}},{key:"remove_event_timer",value:function(e){var t=(this.props[ec]||{})[e];return S(t)||(delete this.props[ec][e],this.save()),t}},{key:"get_property",value:function(e){return this.props[e]}},{key:"set_property",value:function(e,t){this.props[e]=t,this.save()}}]),e}(),t2=((nx=t2||{})[nx.DomContentLoaded=0]="DomContentLoaded",nx[nx.Load=1]="Load",nx[nx.FullSnapshot=2]="FullSnapshot",nx[nx.IncrementalSnapshot=3]="IncrementalSnapshot",nx[nx.Meta=4]="Meta",nx[nx.Custom=5]="Custom",nx[nx.Plugin=6]="Plugin",nx);function t3(e){return e?q(e).split(/\s+/):[]}function t5(e){var t="";switch(o(e.className)){case"string":t=e.className;break;case"object":t=("baseVal"in e.className?e.className.baseVal:null)||e.getAttribute("class")||"";break;default:t=""}return t3(t)}function t6(e){return P(e)?null:q(e).split(/(\s+)/).filter(function(e){return nd(e)}).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}function t8(e){var t="";return ni(e)&&!nr(e)&&e.childNodes&&e.childNodes.length&&Y(e.childNodes,function(e){var n;t7(e)&&e.textContent&&(t+=null!==(n=t6(e.textContent))&&void 0!==n?n:"")}),q(t)}function t4(e){return!!e&&1===e.nodeType}function t9(e,t){return!!e&&!!e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function t7(e){return!!e&&3===e.nodeType}function ne(e){return!!e&&11===e.nodeType}var nt=["a","button","form","input","select","textarea","label"];function nn(e){var t=e.parentNode;return!(!t||!t4(t))&&t}function ni(e){for(var t=e;t.parentNode&&!t9(t,"body");t=t.parentNode){var n=t5(t);if(X(n,"ph-sensitive")||X(n,"ph-no-capture"))return!1}if(X(t5(e),"ph-include"))return!0;var i=e.type||"";if(E(i))switch(i.toLowerCase()){case"hidden":case"password":return!1}var r=e.name||e.id||"";return!(E(r)&&/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(r.replace(/[^a-zA-Z0-9]/g,"")))}function nr(e){return!!(t9(e,"input")&&!["button","checkbox","submit","reset"].includes(e.type)||t9(e,"select")||t9(e,"textarea")||"true"===e.getAttribute("contenteditable"))}var no="(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})",ns=new RegExp("^(?:".concat(no,")$")),na=new RegExp(no),nl="\\d{3}-?\\d{2}-?\\d{4}",nu=new RegExp("^(".concat(nl,")$")),nc=new RegExp("(".concat(nl,")"));function nd(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return!(P(e)||E(e)&&(e=q(e),(t?ns:na).test((e||"").replace(/[- ]/g,""))||(t?nu:nc).test(e)))}function nh(e){var t=t8(e);return nd(t="".concat(t," ").concat(function e(t){var n="";return t&&t.childNodes&&t.childNodes.length&&Y(t.childNodes,function(t){var i;if(t&&"span"===(null===(i=t.tagName)||void 0===i?void 0:i.toLowerCase()))try{var r=t8(t);n="".concat(n," ").concat(r).trim(),t.childNodes&&t.childNodes.length&&(n="".concat(n," ").concat(e(t)).trim())}catch(e){H.error(e)}}),n}(e)).trim())?t:""}function np(e){return e.replace(/"|\\"/g,'\\"')}var nf="[SessionRecording]",nm="redacted",ng={initiatorTypes:["audio","beacon","body","css","early-hint","embed","fetch","frame","iframe","icon","image","img","input","link","navigation","object","ping","script","track","video","xmlhttprequest"],maskRequestFn:function(e){return e},recordHeaders:!1,recordBody:!1,recordInitialRequests:!1,recordPerformance:!1,performanceEntryTypeToObserve:["first-input","navigation","paint","resource"],payloadSizeLimitBytes:1e6},nv=["authorization","x-forwarded-for","authorization","cookie","set-cookie","x-api-key","x-real-ip","remote-addr","forwarded","proxy-authorization","x-csrf-token","x-csrftoken","x-xsrf-token"],ny=["password","secret","passwd","api_key","apikey","auth","credentials","mysql_pwd","privatekey","private_key","token"],n_=["/s/","/e/","/i/"];function nb(e,t,n,i){if(P(e))return e;var r=(null==t?void 0:t["content-length"])||new Blob([e]).size;return E(r)&&(r=parseInt(r)),r>n?nf+" ".concat(i," body too large to record (").concat(r," bytes)"):e}function nw(e,t){if(P(e))return e;var n=e;return nd(n,!1)||(n=nf+" "+t+" body "+nm),Y(ny,function(e){var i,r;null!==(i=n)&&void 0!==i&&i.length&&-1!==(null===(r=n)||void 0===r?void 0:r.indexOf(e))&&(n=nf+" "+t+" body "+nm+" as might contain: "+e)}),n}var nx,nk,nS=function(e,t){var n,i,o={payloadSizeLimitBytes:ng.payloadSizeLimitBytes,performanceEntryTypeToObserve:d(ng.performanceEntryTypeToObserve)},s=!1!==e.session_recording.recordHeaders&&t.recordHeaders,a=!1!==e.session_recording.recordBody&&t.recordBody,l=!1!==e.capture_performance&&t.recordPerformance,u=(i=Math.min(1e6,null!==(n=o.payloadSizeLimitBytes)&&void 0!==n?n:1e6),function(e){return null!=e&&e.requestBody&&(e.requestBody=nb(e.requestBody,e.requestHeaders,i,"Request")),null!=e&&e.responseBody&&(e.responseBody=nb(e.responseBody,e.responseHeaders,i,"Response")),e}),c=function(e){var t;return u(function(e){var t=te(e.name);if(!(t&&t.pathname&&n_.some(function(e){return 0===t.pathname.indexOf(e)})))return e}((P(t=e.requestHeaders)||Y(Object.keys(null!=t?t:{}),function(e){nv.includes(e.toLowerCase())&&(t[e]=nm)}),e)))},h=w(e.session_recording.maskNetworkRequestFn);return h&&w(e.session_recording.maskCapturedNetworkRequestFn)&&H.warn("Both `maskNetworkRequestFn` and `maskCapturedNetworkRequestFn` are defined. `maskNetworkRequestFn` will be ignored."),h&&(e.session_recording.maskCapturedNetworkRequestFn=function(t){var n=e.session_recording.maskNetworkRequestFn({url:t.name});return r(r({},t),{},{name:null==n?void 0:n.url})}),o.maskRequestFn=w(e.session_recording.maskCapturedNetworkRequestFn)?function(t){var n,i,r,o=c(t);return o&&null!==(n=null===(i=(r=e.session_recording).maskCapturedNetworkRequestFn)||void 0===i?void 0:i.call(r,o))&&void 0!==n?n:void 0}:function(e){return function(e){if(!S(e))return e.requestBody=nw(e.requestBody,"Request"),e.responseBody=nw(e.responseBody,"Response"),e}(c(e))},r(r(r({},ng),o),{},{recordHeaders:s,recordBody:a,recordPerformance:l,recordInitialRequests:l})},nE=l(function e(t){var n,i,r=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(this,e),u(this,"bucketSize",100),u(this,"refillRate",10),u(this,"mutationBuckets",{}),u(this,"loggedTracker",{}),u(this,"refillBuckets",function(){Object.keys(r.mutationBuckets).forEach(function(e){r.mutationBuckets[e]=r.mutationBuckets[e]+r.refillRate,r.mutationBuckets[e]>=r.bucketSize&&delete r.mutationBuckets[e]})}),u(this,"getNodeOrRelevantParent",function(e){var t=r.rrweb.mirror.getNode(e);if("svg"!==(null==t?void 0:t.nodeName)&&t instanceof Element){var n=t.closest("svg");if(n)return[r.rrweb.mirror.getId(n),n]}return[e,t]}),u(this,"numberOfChanges",function(e){var t,n,i,r,o,s,a,l;return(null!==(t=null===(n=e.removes)||void 0===n?void 0:n.length)&&void 0!==t?t:0)+(null!==(i=null===(r=e.attributes)||void 0===r?void 0:r.length)&&void 0!==i?i:0)+(null!==(o=null===(s=e.texts)||void 0===s?void 0:s.length)&&void 0!==o?o:0)+(null!==(a=null===(l=e.adds)||void 0===l?void 0:l.length)&&void 0!==a?a:0)}),u(this,"throttleMutations",function(e){if(3!==e.type||0!==e.data.source)return e;var t=e.data,n=r.numberOfChanges(t);t.attributes&&(t.attributes=t.attributes.filter(function(e){var t,n,i,o=c(r.getNodeOrRelevantParent(e.id),2),s=o[0],a=o[1];return 0!==r.mutationBuckets[s]&&(r.mutationBuckets[s]=null!==(t=r.mutationBuckets[s])&&void 0!==t?t:r.bucketSize,r.mutationBuckets[s]=Math.max(r.mutationBuckets[s]-1,0),0===r.mutationBuckets[s]&&(r.loggedTracker[s]||(r.loggedTracker[s]=!0,null===(n=(i=r.options).onBlockedNode)||void 0===n||n.call(i,s,a))),e)}));var i=r.numberOfChanges(t);return 0!==i||n===i?e:void 0}),this.rrweb=t,this.options=o,this.refillRate=null!==(n=this.options.refillRate)&&void 0!==n?n:this.refillRate,this.bucketSize=null!==(i=this.options.bucketSize)&&void 0!==i?i:this.bucketSize,setInterval(function(){r.refillBuckets()},1e3)});(nT=nk||(nk={}))[nT.Mutation=0]="Mutation",nT[nT.MouseMove=1]="MouseMove",nT[nT.MouseInteraction=2]="MouseInteraction",nT[nT.Scroll=3]="Scroll",nT[nT.ViewportResize=4]="ViewportResize",nT[nT.Input=5]="Input",nT[nT.TouchMove=6]="TouchMove",nT[nT.MediaInteraction=7]="MediaInteraction",nT[nT.StyleSheetRule=8]="StyleSheetRule",nT[nT.CanvasMutation=9]="CanvasMutation",nT[nT.Font=10]="Font",nT[nT.Log=11]="Log",nT[nT.Drag=12]="Drag",nT[nT.StyleDeclaration=13]="StyleDeclaration",nT[nT.Selection=14]="Selection",nT[nT.AdoptedStyleSheet=15]="AdoptedStyleSheet";var nT,nP,nR=[nk.MouseMove,nk.MouseInteraction,nk.Scroll,nk.ViewportResize,nk.Input,nk.TouchMove,nk.MediaInteraction,nk.Drag],nA=function(){function e(t,n){s(this,e),this.size=0,this.data=[],this.sessionId=t,this.windowId=n}return l(e,[{key:"mostRecentSnapshotTimestamp",get:function(){return this.data.length?this.data[this.data.length-1].timestamp:null}},{key:"add",value:function(e){this.size+=e.$snapshot_bytes,this.data.push(e.$snapshot_data)}}]),e}(),nC=function(e){return{rrwebMethod:e,enqueuedAt:Date.now(),attempt:1}},nF="[SessionRecording]",nO=function(){function e(t){var n=this;if(s(this,e),u(this,"queuedRRWebEvents",[]),u(this,"isIdle",!1),u(this,"_linkedFlagSeen",!1),u(this,"_lastActivityTimestamp",Date.now()),u(this,"_linkedFlag",null),u(this,"_forceAllowLocalhostNetworkCapture",!1),u(this,"_samplingSessionListener",null),this.instance=t,this._captureStarted=!1,this._endpoint="/s/",this.stopRrweb=void 0,this.receivedDecide=!1,null==C||C.addEventListener("beforeunload",function(){n._flushBuffer()}),null==C||C.addEventListener("offline",function(){n._tryAddCustomEvent("browser offline",{})}),null==C||C.addEventListener("online",function(){n._tryAddCustomEvent("browser online",{})}),null==C||C.addEventListener("visibilitychange",function(){if(null!=D&&D.visibilityState){var e="window "+D.visibilityState;n._tryAddCustomEvent(e,{})}}),!this.instance.sessionManager)throw H.error(nF+" started without valid sessionManager"),Error(nF+" started without valid sessionManager. This is a bug.");var i=this.sessionManager.checkAndGetSessionAndWindowId(),r=i.sessionId,o=i.windowId;this.sessionId=r,this.windowId=o,this.buffer=new nA(this.sessionId,this.windowId),this._setupSampling()}return l(e,[{key:"rrwebRecord",get:function(){var e;return null==B||null===(e=B.rrweb)||void 0===e?void 0:e.record}},{key:"started",get:function(){return this._captureStarted}},{key:"sessionManager",get:function(){if(!this.instance.sessionManager)throw Error(nF+" started without valid sessionManager. This is a bug.");return this.instance.sessionManager}},{key:"isSampled",get:function(){var e=this.instance.get_property(eb);return A(e)?e:null}},{key:"sessionDuration",get:function(){var e=this.buffer.mostRecentSnapshotTimestamp,t=this.sessionManager.checkAndGetSessionAndWindowId(!0).sessionStartTimestamp;return e?e-t:null}},{key:"isRecordingEnabled",get:function(){var e=!!this.instance.get_property(ep),t=!this.instance.config.disable_session_recording;return C&&e&&t}},{key:"isConsoleLogCaptureEnabled",get:function(){var e=!!this.instance.get_property(ef),t=this.instance.config.enable_recording_console_log;return null!=t?t:e}},{key:"canvasRecording",get:function(){var e=this.instance.get_property(eg);return e&&e.fps&&e.quality?{enabled:e.enabled,fps:e.fps,quality:e.quality}:void 0}},{key:"networkPayloadCapture",get:function(){var e,t,n=this.instance.get_property(em),i={recordHeaders:null===(e=this.instance.config.session_recording)||void 0===e?void 0:e.recordHeaders,recordBody:null===(t=this.instance.config.session_recording)||void 0===t?void 0:t.recordBody},r=(null==i?void 0:i.recordHeaders)||(null==n?void 0:n.recordHeaders),o=(null==i?void 0:i.recordBody)||(null==n?void 0:n.recordBody),s=this.instance.config.capture_performance||(null==n?void 0:n.capturePerformance);return r||o||s?{recordHeaders:r,recordBody:o,recordPerformance:s}:void 0}},{key:"sampleRate",get:function(){var e=this.instance.get_property(ev);return R(e)?e:null}},{key:"minimumDuration",get:function(){var e=this.instance.get_property(ey);return R(e)?e:null}},{key:"status",get:function(){return this.receivedDecide?this.isRecordingEnabled?P(this._linkedFlag)||this._linkedFlagSeen?A(this.isSampled)?this.isSampled?"sampled":"disabled":"active":"buffering":"disabled":"buffering"}},{key:"startIfEnabledOrStop",value:function(){this.isRecordingEnabled?(this._startCapture(),H.info(nF+" started")):(this.stopRecording(),this.clearBuffer())}},{key:"stopRecording",value:function(){this._captureStarted&&this.stopRrweb&&(this.stopRrweb(),this.stopRrweb=void 0,this._captureStarted=!1,H.info(nF+" stopped"))}},{key:"makeSamplingDecision",value:function(e){var t,n,i=this.sessionId!==e,r=this.sampleRate;if(R(r)){var o,s=this.isSampled,a=i||!A(s);(o=a?Math.random()<r:s)||!a||H.warn(nF+" Sample rate (".concat(r,") has determined that this sessionId (").concat(e,") will not be sent to the server.")),this._tryAddCustomEvent("samplingDecisionMade",{sampleRate:r}),null===(n=this.instance.persistence)||void 0===n||n.register(u({},eb,o))}else null===(t=this.instance.persistence)||void 0===t||t.register(u({},eb,null))}},{key:"afterDecideResponse",value:function(e){var t,n,i,r=this;if(this._persistDecideResponse(e),this._linkedFlag=(null===(t=e.sessionRecording)||void 0===t?void 0:t.linkedFlag)||null,null!==(n=e.sessionRecording)&&void 0!==n&&n.endpoint&&(this._endpoint=null===(i=e.sessionRecording)||void 0===i?void 0:i.endpoint),this._setupSampling(),!P(this._linkedFlag)){var o=E(this._linkedFlag)?this._linkedFlag:this._linkedFlag.flag,s=E(this._linkedFlag)?null:this._linkedFlag.variant;this.instance.onFeatureFlags(function(e,t){var n=x(t)&&o in t,i=s?t[o]===s:n;if(i){var a={linkedFlag:o,linkedVariant:s},l="linked flag matched";H.info(nF+" "+l,a),r._tryAddCustomEvent(l,a)}r._linkedFlagSeen=i})}this.receivedDecide=!0,this.startIfEnabledOrStop()}},{key:"_setupSampling",value:function(){var e=this;R(this.sampleRate)&&T(this._samplingSessionListener)&&(this._samplingSessionListener=this.sessionManager.onSessionId(function(t){e.makeSamplingDecision(t)}))}},{key:"_persistDecideResponse",value:function(e){if(this.instance.persistence){var t=this.instance.persistence,n=function(){var n,i,o,s,a,l,c,d,h=null===(n=e.sessionRecording)||void 0===n?void 0:n.sampleRate,p=P(h)?null:parseFloat(h),f=null===(i=e.sessionRecording)||void 0===i?void 0:i.minimumDurationMilliseconds;t.register((u(d={},ep,!!e.sessionRecording),u(d,ef,null===(o=e.sessionRecording)||void 0===o?void 0:o.consoleLogRecordingEnabled),u(d,em,r({capturePerformance:e.capturePerformance},null===(s=e.sessionRecording)||void 0===s?void 0:s.networkPayloadCapture)),u(d,eg,{enabled:null===(a=e.sessionRecording)||void 0===a?void 0:a.recordCanvas,fps:null===(l=e.sessionRecording)||void 0===l?void 0:l.canvasFps,quality:null===(c=e.sessionRecording)||void 0===c?void 0:c.canvasQuality}),u(d,ev,p),u(d,ey,S(f)?null:f),d))};n(),this.sessionManager.onSessionId(n)}}},{key:"log",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"log";null===(t=this.instance.sessionRecording)||void 0===t||t.onRRwebEmit({type:6,data:{plugin:"rrweb/console@1",payload:{level:n,trace:[],payload:[JSON.stringify(e)]}},timestamp:J()})}},{key:"_startCapture",value:function(){var e=this;S(Object.assign)||this._captureStarted||this.instance.config.disable_session_recording||this.instance.consent.isOptedOut()||(this._captureStarted=!0,this.sessionManager.checkAndGetSessionAndWindowId(),this.rrwebRecord?this._onScriptLoaded():es(this.instance.requestRouter.endpointFor("assets","/static/recorder.js?v=".concat(m.LIB_VERSION)),function(t){if(t)return H.error(nF+" could not load recorder.js",t);e._onScriptLoaded()}))}},{key:"isInteractiveEvent",value:function(e){var t;return 3===e.type&&-1!==nR.indexOf(null===(t=e.data)||void 0===t?void 0:t.source)}},{key:"_updateWindowAndSessionIds",value:function(e){var t=this.isInteractiveEvent(e);t||this.isIdle||e.timestamp-this._lastActivityTimestamp>3e5&&(this.isIdle=!0,this._tryAddCustomEvent("sessionIdle",{reason:"user inactivity",timeSinceLastActive:e.timestamp-this._lastActivityTimestamp,threshold:3e5}),clearTimeout(this._fullSnapshotTimer),this._flushBuffer());var n=!1;if(t&&(this._lastActivityTimestamp=e.timestamp,this.isIdle&&(this.isIdle=!1,this._tryAddCustomEvent("sessionNoLongerIdle",{reason:"user activity",type:e.type}),n=!0)),!this.isIdle){var i=this.sessionManager.checkAndGetSessionAndWindowId(!t,e.timestamp),r=i.windowId,o=i.sessionId,s=this.sessionId!==o,a=this.windowId!==r;this.windowId=r,this.sessionId=o,(n||-1===[2,4].indexOf(e.type)&&(a||s||S(this._fullSnapshotTimer)))&&this._tryTakeFullSnapshot()}}},{key:"_tryRRWebMethod",value:function(e){try{return e.rrwebMethod(),!0}catch(t){return this.queuedRRWebEvents.length<10?this.queuedRRWebEvents.push({enqueuedAt:e.enqueuedAt||Date.now(),attempt:e.attempt++,rrwebMethod:e.rrwebMethod}):H.warn(nF+" could not emit queued rrweb event.",t,e),!1}}},{key:"_tryAddCustomEvent",value:function(e,t){var n=this;return this._tryRRWebMethod(nC(function(){return n.rrwebRecord.addCustomEvent(e,t)}))}},{key:"_tryTakeFullSnapshot",value:function(){var e=this;return this._tryRRWebMethod(nC(function(){return e.rrwebRecord.takeFullSnapshot()}))}},{key:"_onScriptLoaded",value:function(){for(var e,t=this,n={blockClass:"ph-no-capture",blockSelector:void 0,ignoreClass:"ph-ignore-input",maskTextClass:"ph-mask",maskTextSelector:void 0,maskTextFn:void 0,maskAllInputs:!0,maskInputOptions:{},maskInputFn:void 0,slimDOMOptions:{},collectFonts:!1,inlineStylesheet:!0,recordCrossOriginIframes:!1},i=this.instance.config.session_recording,o=0,s=Object.entries(i||{});o<s.length;o++){var a=c(s[o],2),l=a[0],u=a[1];l in n&&(n[l]=u)}if(this.canvasRecording&&this.canvasRecording.enabled&&(n.recordCanvas=!0,n.sampling={canvas:this.canvasRecording.fps},n.dataURLOptions={type:"image/webp",quality:this.canvasRecording.quality}),this.rrwebRecord){this.mutationRateLimiter=null!==(e=this.mutationRateLimiter)&&void 0!==e?e:new nE(this.rrwebRecord,{onBlockedNode:function(e,n){var i="Too many mutations on node '".concat(e,"'. Rate limiting. This could be due to SVG animations or something similar");H.info(i,{node:n}),t.log(nF+" "+i,"warn")}});var d=this._gatherRRWebPlugins();this.stopRrweb=this.rrwebRecord(r({emit:function(e){t.onRRwebEmit(e)},plugins:d},n)),this.instance._addCaptureHook(function(e){try{if("$pageview"===e){var n=C?t._maskUrl(C.location.href):"";if(!n)return;t._tryAddCustomEvent("$pageview",{href:n}),t._tryTakeFullSnapshot()}}catch(e){H.error("Could not add $pageview to rrweb session",e)}}),this._lastActivityTimestamp=Date.now(),this.isIdle=!1,this._tryAddCustomEvent("$session_options",{sessionRecordingOptions:n,activePlugins:d.map(function(e){return null==e?void 0:e.name})}),this._tryAddCustomEvent("$posthog_config",{config:this.instance.config})}else H.error(nF+"onScriptLoaded was called but rrwebRecord is not available. This indicates something has gone wrong.")}},{key:"_scheduleFullSnapshot",value:function(){var e=this;this._fullSnapshotTimer&&clearInterval(this._fullSnapshotTimer),this._fullSnapshotTimer=setInterval(function(){e._tryTakeFullSnapshot()},3e5)}},{key:"_gatherRRWebPlugins",value:function(){var e=[];return B.rrwebConsoleRecord&&this.isConsoleLogCaptureEnabled&&e.push(B.rrwebConsoleRecord.getRecordConsolePlugin()),this.networkPayloadCapture&&w(B.getRecordNetworkPlugin)&&(!e7.includes(location.hostname)||this._forceAllowLocalhostNetworkCapture?e.push(B.getRecordNetworkPlugin(nS(this.instance.config,this.networkPayloadCapture))):H.info(nF+" NetworkCapture not started because we are on localhost.")),e}},{key:"onRRwebEmit",value:function(e){if(this._processQueuedEvents(),e&&x(e)){if(e.type===t2.Meta){var t=this._maskUrl(e.data.href);if(this._lastHref=t,!t)return;e.data.href=t}else this._pageViewFallBack();e.type===t2.FullSnapshot&&this._scheduleFullSnapshot();var n=this.mutationRateLimiter?this.mutationRateLimiter.throttleMutations(e):e;if(n){var i,r=function(e){if(e&&x(e)&&6===e.type&&x(e.data)&&"rrweb/console@1"===e.data.plugin){e.data.payload.payload.length>10&&(e.data.payload.payload=e.data.payload.payload.slice(0,10),e.data.payload.payload.push("...[truncated]"));for(var t=[],n=0;n<e.data.payload.payload.length;n++)e.data.payload.payload[n]&&e.data.payload.payload[n].length>2e3?t.push(e.data.payload.payload[n].slice(0,2e3)+"...[truncated]"):t.push(e.data.payload.payload[n]);return e.data.payload.payload=t,e}return e}(n),o=JSON.stringify(r,(i=[],function(e,t){if(x(t)){for(;i.length>0&&i.at(-1)!==this;)i.pop();return i.includes(t)?"[Circular]":(i.push(t),t)}return t})).length;if(this._updateWindowAndSessionIds(r),!this.isIdle||r.type===t2.Custom){var s={$snapshot_bytes:o,$snapshot_data:r,$session_id:this.sessionId,$window_id:this.windowId};"disabled"!==this.status?this._captureSnapshotBuffered(s):this.clearBuffer()}}}}},{key:"_pageViewFallBack",value:function(){if(!this.instance.config.capture_pageview&&C){var e=this._maskUrl(C.location.href);this._lastHref!==e&&(this._tryAddCustomEvent("$url_changed",{href:e}),this._lastHref=e)}}},{key:"_processQueuedEvents",value:function(){var e=this;if(this.queuedRRWebEvents.length){var t=d(this.queuedRRWebEvents);this.queuedRRWebEvents=[],t.forEach(function(n){Date.now()-n.enqueuedAt>2e3?e._tryAddCustomEvent("rrwebQueueTimeout",{enqueuedAt:n.enqueuedAt,attempt:n.attempt,queueLength:t.length}):e._tryRRWebMethod(n)&&e._tryAddCustomEvent("rrwebQueueSuccess",{enqueuedAt:n.enqueuedAt,attempt:n.attempt,queueLength:t.length})})}}},{key:"_maskUrl",value:function(e){var t=this.instance.config.session_recording;if(t.maskNetworkRequestFn){var n,i={url:e};return null===(n=i=t.maskNetworkRequestFn(i))||void 0===n?void 0:n.url}return e}},{key:"clearBuffer",value:function(){this.buffer=new nA(this.sessionId,this.windowId)}},{key:"_flushBuffer",value:function(){var e=this;this.flushBufferTimer&&(clearTimeout(this.flushBufferTimer),this.flushBufferTimer=void 0);var t=this.minimumDuration,n=this.sessionDuration,i=R(n)&&n>=0,r=R(t)&&i&&n<t;"buffering"===this.status||r?this.flushBufferTimer=setTimeout(function(){e._flushBuffer()},2e3):(this.buffer.data.length>0&&this._captureSnapshot({$snapshot_bytes:this.buffer.size,$snapshot_data:this.buffer.data,$session_id:this.buffer.sessionId,$window_id:this.buffer.windowId}),this.clearBuffer())}},{key:"_captureSnapshotBuffered",value:function(e){var t,n=this,i=2+((null===(t=this.buffer)||void 0===t?void 0:t.data.length)||0);(this.buffer.size+e.$snapshot_bytes+i>943718.4||this.buffer.sessionId!==this.sessionId)&&this._flushBuffer(),this.buffer.add(e),this.flushBufferTimer||(this.flushBufferTimer=setTimeout(function(){n._flushBuffer()},2e3))}},{key:"_captureSnapshot",value:function(e){this.instance.capture("$snapshot",e,{_url:this.instance.requestRouter.endpointFor("api",this._endpoint),_noTruncate:!0,_batchKey:"recordings",_noHeatmaps:!0})}}]),e}(),nL=function(){function e(t){s(this,e),this.instance=t,this.instance.decideEndpointWasHit=this.instance._hasBootstrappedFeatureFlags()}return l(e,[{key:"call",value:function(){var e=this,t={token:this.instance.config.token,distinct_id:this.instance.get_distinct_id(),groups:this.instance.getGroups(),person_properties:this.instance.get_property(ek),group_properties:this.instance.get_property(eS),disable_flags:this.instance.config.advanced_disable_feature_flags||this.instance.config.advanced_disable_feature_flags_on_first_load||void 0};this.instance._send_request({method:"POST",url:this.instance.requestRouter.endpointFor("api","/decide/?v=3"),data:t,compression:this.instance.config.disable_compression?void 0:Q.Base64,timeout:this.instance.config.feature_flag_request_timeout_ms,callback:function(t){return e.parseDecideResponse(t.json)}})}},{key:"parseDecideResponse",value:function(e){var t=this;this.instance.featureFlags.setReloadingPaused(!1),this.instance.featureFlags._startReloadTimer();var n=!e;if(this.instance.config.advanced_disable_feature_flags_on_first_load||this.instance.config.advanced_disable_feature_flags||this.instance.featureFlags.receivedFeatureFlags(null!=e?e:{},n),n)H.error("Failed to fetch feature flags from PostHog.");else{if(!D||!D.body)return H.info("document not ready yet, trying again in 500 milliseconds..."),void setTimeout(function(){t.parseDecideResponse(e)},500);this.instance._afterDecideResponse(e);var i=null==C?void 0:C.extendPostHogWithExceptionAutoCapture;if(e.autocaptureExceptions&&e.autocaptureExceptions&&S(i)&&es(this.instance.requestRouter.endpointFor("assets","/static/exception-autocapture.js"),function(n){if(n)return H.error("Could not load exception autocapture script",n);C.extendPostHogWithExceptionAutocapture(t.instance,e)}),e.siteApps){if(this.instance.config.opt_in_site_apps){var r,o=f(e.siteApps);try{for(o.s();!(r=o.n()).done;)(function(){var e=r.value,n=e.id,i=e.url,o=t.instance.requestRouter.endpointFor("api",i);B["__$$ph_site_app_".concat(n)]=t.instance,es(o,function(e){e&&H.error("Error while initializing PostHog app with config id ".concat(n),e)})})()}catch(e){o.e(e)}finally{o.f()}}else e.siteApps.length>0&&H.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}}}]),e}(),nI=null!=C&&C.location?ti(C.location.hash,"__posthog")||ti(location.hash,"state"):null,nM="_postHogToolbarParams";(ip=nP||(nP={}))[ip.UNINITIALIZED=0]="UNINITIALIZED",ip[ip.LOADING=1]="LOADING",ip[ip.LOADED=2]="LOADED";var nD=function(){function e(t){s(this,e),this.instance=t}return l(e,[{key:"setToolbarState",value:function(e){B.ph_toolbar_state=e}},{key:"getToolbarState",value:function(){var e;return null!==(e=B.ph_toolbar_state)&&void 0!==e?e:nP.UNINITIALIZED}},{key:"maybeLoadToolbar",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if(!C||!D)return!1;n=null!==(e=n)&&void 0!==e?e:C.location,r=null!==(t=r)&&void 0!==t?t:C.history;try{if(!i){try{C.localStorage.setItem("test","test"),C.localStorage.removeItem("test")}catch(e){return!1}i=null==C?void 0:C.localStorage}var o,s=nI||ti(n.hash,"__posthog")||ti(n.hash,"state"),a=s?ee(function(){return JSON.parse(atob(decodeURIComponent(s)))})||ee(function(){return JSON.parse(decodeURIComponent(s))}):null;return a&&"ph_authorize"===a.action?((o=a).source="url",o&&Object.keys(o).length>0&&(a.desiredHash?n.hash=a.desiredHash:r?r.replaceState(r.state,"",n.pathname+n.search):n.hash="")):((o=JSON.parse(i.getItem(nM)||"{}")).source="localstorage",delete o.userIntent),!(!o.token||this.instance.config.token!==o.token)&&(this.loadToolbar(o),!0)}catch(e){return!1}}},{key:"_callLoadToolbar",value:function(e){(B.ph_load_toolbar||B.ph_load_editor)(e,this.instance)}},{key:"loadToolbar",value:function(e){var t=this,n=!(null==D||!D.getElementById(eM));if(!C||n)return!1;var i="custom"===this.instance.requestRouter.region&&this.instance.config.advanced_disable_toolbar_metrics,o=r(r({token:this.instance.config.token},e),{},{apiURL:this.instance.requestRouter.endpointFor("ui")},i?{instrument:!1}:{});if(C.localStorage.setItem(nM,JSON.stringify(r(r({},o),{},{source:void 0}))),this.getToolbarState()===nP.LOADED)this._callLoadToolbar(o);else if(this.getToolbarState()===nP.UNINITIALIZED){this.setToolbarState(nP.LOADING);var s=3e5*Math.floor(Date.now()/3e5);es(this.instance.requestRouter.endpointFor("assets","/static/toolbar.js?t=".concat(s)),function(e){if(e)return H.error("Failed to load toolbar",e),void t.setToolbarState(nP.UNINITIALIZED);t.setToolbarState(nP.LOADED),t._callLoadToolbar(o)}),eo(C,"turbolinks:load",function(){t.setToolbarState(nP.UNINITIALIZED),t.loadToolbar(o)})}return!0}},{key:"_loadEditor",value:function(e){return this.loadToolbar(e)}},{key:"maybeLoadEditor",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return this.maybeLoadToolbar(e,t,n)}}]),e}(),nN=function(){function e(t){s(this,e),u(this,"isPaused",!0),u(this,"queue",[]),u(this,"flushTimeoutMs",3e3),this.sendRequest=t}return l(e,[{key:"enqueue",value:function(e){this.queue.push(e),this.flushTimeout||this.setFlushTimeout()}},{key:"unload",value:function(){var e=this;this.clearFlushTimeout();var t=Object.values(this.queue.length>0?this.formatQueue():{});[].concat(d(t.filter(function(e){return 0===e.url.indexOf("/e")})),d(t.filter(function(e){return 0!==e.url.indexOf("/e")}))).map(function(t){e.sendRequest(r(r({},t),{},{transport:"sendBeacon"}))})}},{key:"enable",value:function(){this.isPaused=!1,this.setFlushTimeout()}},{key:"setFlushTimeout",value:function(){var e=this;this.isPaused||(this.flushTimeout=setTimeout(function(){if(e.clearFlushTimeout(),e.queue.length>0){var t=e.formatQueue();for(var n in t)(function(n){var i=t[n],r=(new Date).getTime();i.data&&b(i.data)&&Y(i.data,function(e){e.offset=Math.abs(e.timestamp-r),delete e.timestamp}),e.sendRequest(i)})(n)}},this.flushTimeoutMs))}},{key:"clearFlushTimeout",value:function(){clearTimeout(this.flushTimeout),this.flushTimeout=void 0}},{key:"formatQueue",value:function(){var e={};return Y(this.queue,function(t){var n,i=(t?t.batchKey:null)||t.url;S(e[i])&&(e[i]=r(r({},t),{},{data:[]})),null===(n=e[i].data)||void 0===n||n.push(t.data)}),this.queue=[],e}}]),e}(),n$=Uint8Array,nj=Uint16Array,nz=Uint32Array,nV=new n$([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),nB=new n$([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),nW=new n$([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),nH=function(e,t){for(var n=new nj(31),i=0;i<31;++i)n[i]=t+=1<<e[i-1];var r=new nz(n[30]);for(i=1;i<30;++i)for(var o=n[i];o<n[i+1];++o)r[o]=o-n[i]<<5|i;return[n,r]},nU=nH(nV,2),nq=nU[0],nG=nU[1];nq[28]=258,nG[258]=28;for(var nY=nH(nB,0)[1],nK=new nj(32768),nX=0;nX<32768;++nX){var nZ=(43690&nX)>>>1|(21845&nX)<<1;nZ=(61680&(nZ=(52428&nZ)>>>2|(13107&nZ)<<2))>>>4|(3855&nZ)<<4,nK[nX]=((65280&nZ)>>>8|(255&nZ)<<8)>>>1}var nQ=function(e,t,n){for(var i=e.length,r=0,o=new nj(t);r<i;++r)++o[e[r]-1];var s,a=new nj(t);for(r=0;r<t;++r)a[r]=a[r-1]+o[r-1]<<1;if(n){s=new nj(1<<t);var l=15-t;for(r=0;r<i;++r)if(e[r])for(var u=r<<4|e[r],c=t-e[r],d=a[e[r]-1]++<<c,h=d|(1<<c)-1;d<=h;++d)s[nK[d]>>>l]=u}else for(s=new nj(i),r=0;r<i;++r)s[r]=nK[a[e[r]-1]++]>>>15-e[r];return s},nJ=new n$(288);for(nX=0;nX<144;++nX)nJ[nX]=8;for(nX=144;nX<256;++nX)nJ[nX]=9;for(nX=256;nX<280;++nX)nJ[nX]=7;for(nX=280;nX<288;++nX)nJ[nX]=8;var n0=new n$(32);for(nX=0;nX<32;++nX)n0[nX]=5;var n1=nQ(nJ,9,0),n2=nQ(n0,5,0),n3=function(e){return(e/8>>0)+(7&e&&1)},n5=function(e,t,n){(null==t||t<0)&&(t=0),(null==n||n>e.length)&&(n=e.length);var i=new(e instanceof nj?nj:e instanceof nz?nz:n$)(n-t);return i.set(e.subarray(t,n)),i},n6=function(e,t,n){n<<=7&t;var i=t/8>>0;e[i]|=n,e[i+1]|=n>>>8},n8=function(e,t,n){n<<=7&t;var i=t/8>>0;e[i]|=n,e[i+1]|=n>>>8,e[i+2]|=n>>>16},n4=function(e,t){for(var n=[],i=0;i<e.length;++i)e[i]&&n.push({s:i,f:e[i]});var r=n.length,o=n.slice();if(!r)return[new n$(0),0];if(1==r){var s=new n$(n[0].s+1);return s[n[0].s]=1,[s,1]}n.sort(function(e,t){return e.f-t.f}),n.push({s:-1,f:25001});var a=n[0],l=n[1],u=0,c=1,d=2;for(n[0]={s:-1,f:a.f+l.f,l:a,r:l};c!=r-1;)a=n[n[u].f<n[d].f?u++:d++],l=n[u!=c&&n[u].f<n[d].f?u++:d++],n[c++]={s:-1,f:a.f+l.f,l:a,r:l};var h=o[0].s;for(i=1;i<r;++i)o[i].s>h&&(h=o[i].s);var p=new nj(h+1),f=n9(n[c-1],p,0);if(f>t){i=0;var m=0,g=f-t,v=1<<g;for(o.sort(function(e,t){return p[t.s]-p[e.s]||e.f-t.f});i<r;++i){var y=o[i].s;if(!(p[y]>t))break;m+=v-(1<<f-p[y]),p[y]=t}for(m>>>=g;m>0;){var _=o[i].s;p[_]<t?m-=1<<t-p[_]++-1:++i}for(;i>=0&&m;--i){var b=o[i].s;p[b]==t&&(--p[b],++m)}f=t}return[new n$(p),f]},n9=function e(t,n,i){return -1==t.s?Math.max(e(t.l,n,i+1),e(t.r,n,i+1)):n[t.s]=i},n7=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new nj(++t),i=0,r=e[0],o=1,s=function(e){n[i++]=e},a=1;a<=t;++a)if(e[a]==r&&a!=t)++o;else{if(!r&&o>2){for(;o>138;o-=138)s(32754);o>2&&(s(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(s(r),--o;o>6;o-=6)s(8304);o>2&&(s(o-3<<5|8208),o=0)}for(;o--;)s(r);o=1,r=e[a]}return[n.subarray(0,i),t]},ie=function(e,t){for(var n=0,i=0;i<t.length;++i)n+=e[i]*t[i];return n},it=function(e,t,n){var i=n.length,r=n3(t+2);e[r]=255&i,e[r+1]=i>>>8,e[r+2]=255^e[r],e[r+3]=255^e[r+1];for(var o=0;o<i;++o)e[r+o+4]=n[o];return 8*(r+4+i)},ii=function(e,t,n,i,r,o,s,a,l,u,c){n6(t,c++,n),++r[256];for(var d=n4(r,15),h=d[0],p=d[1],f=n4(o,15),m=f[0],g=f[1],v=n7(h),y=v[0],_=v[1],b=n7(m),w=b[0],x=b[1],k=new nj(19),S=0;S<y.length;++S)k[31&y[S]]++;for(S=0;S<w.length;++S)k[31&w[S]]++;for(var E=n4(k,7),T=E[0],P=E[1],R=19;R>4&&!T[nW[R-1]];--R);var A,C,F,O,L=u+5<<3,I=ie(r,nJ)+ie(o,n0)+s,M=ie(r,h)+ie(o,m)+s+14+3*R+ie(k,T)+(2*k[16]+3*k[17]+7*k[18]);if(L<=I&&L<=M)return it(t,c,e.subarray(l,l+u));if(n6(t,c,1+(M<I)),c+=2,M<I){A=nQ(h,p,0),C=h,F=nQ(m,g,0),O=m;var D=nQ(T,P,0);for(n6(t,c,_-257),n6(t,c+5,x-1),n6(t,c+10,R-4),c+=14,S=0;S<R;++S)n6(t,c+3*S,T[nW[S]]);c+=3*R;for(var N=[y,w],$=0;$<2;++$){var j=N[$];for(S=0;S<j.length;++S){var z=31&j[S];n6(t,c,D[z]),c+=T[z],z>15&&(n6(t,c,j[S]>>>5&127),c+=j[S]>>>12)}}}else A=n1,C=nJ,F=n2,O=n0;for(S=0;S<a;++S)if(i[S]>255){n8(t,c,A[(z=i[S]>>>18&31)+257]),c+=C[z+257],z>7&&(n6(t,c,i[S]>>>23&31),c+=nV[z]);var V=31&i[S];n8(t,c,F[V]),c+=O[V],V>3&&(n8(t,c,i[S]>>>5&8191),c+=nB[V])}else n8(t,c,A[i[S]]),c+=C[i[S]];return n8(t,c,A[256]),c+C[256]},ir=new nz([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),io=new n$(0),is=function(){for(var e=new nz(256),t=0;t<256;++t){for(var n=t,i=9;--i;)n=(1&n&&3988292384)^n>>>1;e[t]=n}return e}(),ia=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},il=!!j||!!$,iu="text/plain",ic=function(e,t){var n=c(e.split("?"),2),i=n[0],o=n[1],s=r({},t);null==o||o.split("&").forEach(function(e){var t=c(e.split("="),1)[0];delete s[t]});var a=tt(s);return a=a?(o?o+"&":"")+a:o,"".concat(i,"?").concat(a)},id=function(e){var t,n,i,r,o,s,a,l,u,c=e.data,d=e.compression;if(c)return d===Q.GZipJS?{contentType:iu,body:new Blob([(t=function(e,t){var n=e.length;if("undefined"!=typeof TextEncoder)return(new TextEncoder).encode(e);for(var i=new n$(e.length+(e.length>>>1)),r=0,o=function(e){i[r++]=e},s=0;s<n;++s){if(r+5>i.length){var a=new n$(r+8+(n-s<<1));a.set(i),i=a}var l=e.charCodeAt(s);l<128?o(l):(l<2048?o(192|l>>>6):(l>55295&&l<57344?(o(240|(l=65536+(1047552&l)|1023&e.charCodeAt(++s))>>>18),o(128|l>>>12&63)):o(224|l>>>12),o(128|l>>>6&63)),o(128|63&l))}return n5(i,0,r)}(JSON.stringify(c)),n={mtime:0},i=4294967295,r={p:function(e){for(var t=i,n=0;n<e.length;++n)t=is[255&t^e[n]]^t>>>8;i=t},d:function(){return 4294967295^i}},o=t.length,r.p(t),l=(s=10+(n.filename&&n.filename.length+1||0),a=function(e,t,n,i,r,o){var s=e.length,a=new n$(i+s+5*(1+Math.floor(s/7e3))+8),l=a.subarray(i,a.length-8),u=0;if(!t||s<8)for(var c=0;c<=s;c+=65535){var d=c+65535;d<s?u=it(l,u,e.subarray(c,d)):(l[c]=o,u=it(l,u,e.subarray(c,s)))}else{for(var h=ir[t-1],p=h>>>13,f=8191&h,m=(1<<n)-1,g=new nj(32768),v=new nj(m+1),y=Math.ceil(n/3),_=2*y,b=function(t){return(e[t]^e[t+1]<<y^e[t+2]<<_)&m},w=new nz(25e3),x=new nj(288),k=new nj(32),S=0,E=0,T=(c=0,0),P=0,R=0;c<s;++c){var A=b(c),C=32767&c,F=v[A];if(g[C]=F,v[A]=C,P<=c){var O=s-c;if((S>7e3||T>24576)&&O>423){u=ii(e,l,0,w,x,k,E,T,R,c-R,u),T=S=E=0,R=c;for(var L=0;L<286;++L)x[L]=0;for(L=0;L<30;++L)k[L]=0}var I=2,M=0,D=f,N=C-F&32767;if(O>2&&A==b(c-N))for(var $=Math.min(p,O)-1,j=Math.min(32767,c),z=Math.min(258,O);N<=j&&--D&&C!=F;){if(e[c+I]==e[c+I-N]){for(var V=0;V<z&&e[c+V]==e[c+V-N];++V);if(V>I){if(I=V,M=N,V>$)break;var B=Math.min(N,V-2),W=0;for(L=0;L<B;++L){var H=c-N+L+32768&32767,U=H-g[H]+32768&32767;U>W&&(W=U,F=H)}}}N+=(C=F)-(F=g[C])+32768&32767}if(M){w[T++]=268435456|nG[I]<<18|nY[M];var q=31&nG[I],G=31&nY[M];E+=nV[q]+nB[G],++x[257+q],++k[G],P=c+I,++S}else w[T++]=e[c],++x[e[c]]}}u=ii(e,l,o,w,x,k,E,T,R,c-R,u),o||(u=it(l,u,io))}return n5(a,0,i+n3(u)+r)}(t,null==n.level?6:n.level,null==n.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):12+n.mem,s,8,!0)).length,function(e,t){var n=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:9==t.level?2:0,e[9]=3,0!=t.mtime&&ia(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),n){e[3]=8;for(var i=0;i<=n.length;++i)e[i+10]=n.charCodeAt(i)}}(a,n),ia(a,l-8,r.d()),ia(a,l-4,o),a)],{type:iu})}:d===Q.Base64?{contentType:"application/x-www-form-urlencoded",body:"data="+encodeURIComponent("string"==typeof(u=function(e){var t,n,i,r,o,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a=0,l=0,u="",c=[];if(!e)return e;e=er(e);do t=(o=e.charCodeAt(a++)<<16|e.charCodeAt(a++)<<8|e.charCodeAt(a++))>>18&63,n=o>>12&63,i=o>>6&63,r=63&o,c[l++]=s.charAt(t)+s.charAt(n)+s.charAt(i)+s.charAt(r);while(a<e.length);switch(u=c.join(""),e.length%3){case 1:u=u.slice(0,-2)+"==";break;case 2:u=u.slice(0,-1)+"="}return u}(JSON.stringify(c)))?u:JSON.stringify(u))}:{contentType:"application/json",body:JSON.stringify(c)}},ih=[];j&&ih.push({transport:"XHR",method:function(e){var t,n=new j;n.open(e.method||"GET",e.url,!0);var i=null!==(t=id(e))&&void 0!==t?t:{},r=i.contentType,o=i.body;Y(e.headers,function(e,t){n.setRequestHeader(t,e)}),r&&n.setRequestHeader("Content-Type",r),e.timeout&&(n.timeout=e.timeout),n.withCredentials=!0,n.onreadystatechange=function(){if(4===n.readyState){var t,i={statusCode:n.status,text:n.responseText};if(200===n.status)try{i.json=JSON.parse(n.responseText)}catch(e){}null===(t=e.callback)||void 0===t||t.call(e,i)}},n.send(o)}}),$&&ih.push({transport:"fetch",method:function(e){var t,n,i=null!==(t=id(e))&&void 0!==t?t:{},r=i.contentType,o=i.body,s=new Headers;Y(s,function(e,t){s.append(t,e)}),r&&s.append("Content-Type",r);var a=e.url,l=null;if(z){var u=new z;l={signal:u.signal,timeout:setTimeout(function(){return u.abort()},e.timeout)}}$(a,{method:(null==e?void 0:e.method)||"GET",headers:s,keepalive:"POST"===e.method,body:o,signal:null===(n=l)||void 0===n?void 0:n.signal}).then(function(t){return t.text().then(function(n){var i,r={statusCode:t.status,text:n};if(200===t.status)try{r.json=JSON.parse(n)}catch(e){H.error(e)}null===(i=e.callback)||void 0===i||i.call(e,r)})}).catch(function(t){var n;H.error(t),null===(n=e.callback)||void 0===n||n.call(e,{statusCode:0,text:t})}).finally(function(){return l?clearTimeout(l.timeout):null})}}),null!=M&&M.sendBeacon&&ih.push({transport:"sendBeacon",method:function(e){var t=ic(e.url,{beacon:"1"});try{var n,i=null!==(n=id(e))&&void 0!==n?n:{},r=i.contentType,o=i.body,s="string"==typeof o?new Blob([o],{type:r}):o;M.sendBeacon(t,s)}catch(e){}}});var ip,im,ig=["retriesPerformedSoFar"],iv=function(){function e(t){var n=this;s(this,e),u(this,"isPolling",!1),u(this,"pollIntervalMs",3e3),u(this,"queue",[]),this.instance=t,this.queue=[],this.areWeOnline=!0,!S(C)&&"onLine"in C.navigator&&(this.areWeOnline=C.navigator.onLine,C.addEventListener("online",function(){n.areWeOnline=!0,n.flush()}),C.addEventListener("offline",function(){n.areWeOnline=!1}))}return l(e,[{key:"retriableRequest",value:function(e){var t=this,n=e.retriesPerformedSoFar,i=function(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,ig);R(n)&&n>0&&(i.url=ic(i.url,{retry_count:n})),this.instance._send_request(r(r({},i),{},{callback:function(e){var o;200!==e.statusCode&&(e.statusCode<400||e.statusCode>=500)&&(null!=n?n:0)<10?t.enqueue(r({retriesPerformedSoFar:n},i)):null===(o=i.callback)||void 0===o||o.call(i,e)}}))}},{key:"enqueue",value:function(e){var t,n,i,r=e.retriesPerformedSoFar||0;e.retriesPerformedSoFar=r+1;var o=(i=(Math.random()-.5)*((n=Math.min(18e5,t=3e3*Math.pow(2,r)))-t/2),Math.ceil(n+i)),s=Date.now()+o;this.queue.push({retryAt:s,requestOptions:e});var a="Enqueued failed request for retry in ".concat(o);navigator.onLine||(a+=" (Browser is offline)"),H.warn(a),this.isPolling||(this.isPolling=!0,this.poll())}},{key:"poll",value:function(){var e=this;this.poller&&clearTimeout(this.poller),this.poller=setTimeout(function(){e.areWeOnline&&e.queue.length>0&&e.flush(),e.poll()},this.pollIntervalMs)}},{key:"flush",value:function(){var e=Date.now(),t=[],n=this.queue.filter(function(n){return n.retryAt<e||(t.push(n),!1)});if(this.queue=t,n.length>0){var i,r=f(n);try{for(r.s();!(i=r.n()).done;){var o=i.value.requestOptions;this.retriableRequest(o)}}catch(e){r.e(e)}finally{r.f()}}}},{key:"unload",value:function(){this.poller&&(clearTimeout(this.poller),this.poller=void 0);var e,t=f(this.queue);try{for(t.s();!(e=t.n()).done;){var n=e.value.requestOptions;try{this.instance._send_request(r(r({},n),{},{transport:"sendBeacon"}))}catch(e){H.error(e)}}}catch(e){t.e(e)}finally{t.f()}this.queue=[]}}]),e}(),iy=function(){function e(t,n,i,r){s(this,e),u(this,"_sessionIdChangedHandlers",[]),this.config=t,this.persistence=n,this._windowId=void 0,this._sessionId=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this._sessionIdGenerator=i||eX,this._windowIdGenerator=r||eX;var o=t.persistence_name||t.token,a=t.session_idle_timeout_seconds||1800;if(R(a)?a>1800?H.warn("session_idle_timeout_seconds cannot be  greater than 30 minutes. Using 30 minutes instead."):a<60&&H.warn("session_idle_timeout_seconds cannot be less than 60 seconds. Using 60 seconds instead."):(H.warn("session_idle_timeout_seconds must be a number. Defaulting to 30 minutes."),a=1800),this._sessionTimeoutMs=1e3*Math.min(Math.max(a,60),1800),this._window_id_storage_key="ph_"+o+"_window_id",this._primary_window_exists_storage_key="ph_"+o+"_primary_window_exists",this._canUseSessionStorage()){var l=e9.parse(this._window_id_storage_key),c=e9.parse(this._primary_window_exists_storage_key);l&&!c?this._windowId=l:e9.remove(this._window_id_storage_key),e9.set(this._primary_window_exists_storage_key,!0)}this._listenToReloadWindow()}return l(e,[{key:"onSessionId",value:function(e){var t=this;return S(this._sessionIdChangedHandlers)&&(this._sessionIdChangedHandlers=[]),this._sessionIdChangedHandlers.push(e),this._sessionId&&e(this._sessionId,this._windowId),function(){t._sessionIdChangedHandlers=t._sessionIdChangedHandlers.filter(function(t){return t!==e})}}},{key:"_canUseSessionStorage",value:function(){return"memory"!==this.config.persistence&&!this.persistence.disabled&&e9.is_supported()}},{key:"_setWindowId",value:function(e){e!==this._windowId&&(this._windowId=e,this._canUseSessionStorage()&&e9.set(this._window_id_storage_key,e))}},{key:"_getWindowId",value:function(){return this._windowId?this._windowId:this._canUseSessionStorage()?e9.parse(this._window_id_storage_key):null}},{key:"_setSessionId",value:function(e,t,n){e===this._sessionId&&t===this._sessionActivityTimestamp&&n===this._sessionStartTimestamp||(this._sessionStartTimestamp=n,this._sessionActivityTimestamp=t,this._sessionId=e,this.persistence.register(u({},e_,[t,e,n])))}},{key:"_getSessionId",value:function(){if(this._sessionId&&this._sessionActivityTimestamp&&this._sessionStartTimestamp)return[this._sessionActivityTimestamp,this._sessionId,this._sessionStartTimestamp];var e=this.persistence.props[e_];return b(e)&&2===e.length&&e.push(e[0]),e||[0,null,0]}},{key:"resetSessionId",value:function(){this._setSessionId(null,null,null)}},{key:"_listenToReloadWindow",value:function(){var e=this;null==C||C.addEventListener("beforeunload",function(){e._canUseSessionStorage()&&e9.remove(e._primary_window_exists_storage_key)})}},{key:"checkAndGetSessionAndWindowId",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:null)||(new Date).getTime(),n=c(this._getSessionId(),3),i=n[0],r=n[1],o=n[2],s=this._getWindowId(),a=o&&o>0&&Math.abs(t-o)>864e5,l=!1,u=!r,d=!e&&Math.abs(t-i)>this._sessionTimeoutMs;u||d||a?(r=this._sessionIdGenerator(),s=this._windowIdGenerator(),H.info("[SessionId] new session ID generated",{sessionId:r,windowId:s,changeReason:{noSessionId:u,activityTimeout:d,sessionPastMaximumLength:a}}),o=t,l=!0):s||(s=this._windowIdGenerator(),l=!0);var h=0===i||!e||a?t:i,p=0===o?(new Date).getTime():o;return this._setWindowId(s),this._setSessionId(r,h,p),l&&this._sessionIdChangedHandlers.forEach(function(e){return e(r,s)}),{sessionId:r,windowId:s,sessionStartTimestamp:p}}}]),e}();(iV=im||(im={})).US="us",iV.EU="eu",iV.CUSTOM="custom";var i_="i.posthog.com",ib=function(){function e(t){s(this,e),u(this,"_regionCache",{}),this.instance=t}return l(e,[{key:"apiHost",get:function(){return this.instance.config.api_host.trim().replace(/\/$/,"")}},{key:"uiHost",get:function(){var e,t=null===(e=this.instance.config.ui_host)||void 0===e?void 0:e.replace(/\/$/,"");return"https://app.posthog.com"===t?"https://us.posthog.com":t}},{key:"region",get:function(){return this._regionCache[this.apiHost]||(/https:\/\/(app|us|us-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?this._regionCache[this.apiHost]=im.US:/https:\/\/(eu|eu-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?this._regionCache[this.apiHost]=im.EU:this._regionCache[this.apiHost]=im.CUSTOM),this._regionCache[this.apiHost]}},{key:"endpointFor",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(t&&(t="/"===t[0]?t:"/".concat(t)),"ui"===e)return(this.uiHost||this.apiHost.replace(".".concat(i_),".posthog.com"))+t;if(this.region===im.CUSTOM)return this.apiHost+t;var n=i_+t;switch(e){case"assets":return"https://".concat(this.region,"-assets.").concat(n);case"api":return"https://".concat(this.region,".").concat(n)}}}]),e}(),iw="posthog-js";function ix(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.organization,i=t.projectId,r=t.prefix,o=t.severityAllowList,s=void 0===o?["error"]:o;return function(t){if(!("*"===s||s.includes(t.level))||!e.__loaded)return t;t.tags||(t.tags={});var o,a,l,u,c,d=e.requestRouter.endpointFor("ui","/project/".concat(e.config.token,"/person/").concat(e.get_distinct_id()));t.tags["PostHog Person URL"]=d,e.sessionRecordingStarted()&&(t.tags["PostHog Recording URL"]=e.get_session_replay_url({withTimestamp:!0}));var h=(null===(o=t.exception)||void 0===o?void 0:o.values)||[],p={$exception_message:(null===(a=h[0])||void 0===a?void 0:a.value)||t.message,$exception_type:null===(l=h[0])||void 0===l?void 0:l.type,$exception_personURL:d,$sentry_event_id:t.event_id,$sentry_exception:t.exception,$sentry_exception_message:(null===(u=h[0])||void 0===u?void 0:u.value)||t.message,$sentry_exception_type:null===(c=h[0])||void 0===c?void 0:c.type,$sentry_tags:t.tags,$level:t.level};return n&&i&&(p.$sentry_url=(r||"https://sentry.io/organizations/")+n+"/issues/?project="+i+"&query="+t.event_id),e.capture("$exception",p),t}}var ik=l(function e(t,n,i,r,o){s(this,e),this.name=iw,this.setupOnce=function(e){e(ix(t,{organization:n,projectId:i,prefix:r,severityAllowList:o}))}}),iS=function(){function e(t){s(this,e),this._instance=t}return l(e,[{key:"doPageView",value:function(){var e,t=this._previousScrollProperties();return this._currentPath=null!==(e=null==C?void 0:C.location.pathname)&&void 0!==e?e:"",this._instance.scrollManager.resetContext(),t}},{key:"doPageLeave",value:function(){return this._previousScrollProperties()}},{key:"_previousScrollProperties",value:function(){var e=this._currentPath,t=this._instance.scrollManager.getContext();if(!e||!t)return{};var n=t.maxScrollHeight,i=t.lastScrollY,r=t.maxScrollY,o=t.maxContentHeight,s=t.lastContentY,a=t.maxContentY;return S(n)||S(i)||S(r)||S(o)||S(s)||S(a)?{}:(n=Math.ceil(n),i=Math.ceil(i),r=Math.ceil(r),o=Math.ceil(o),s=Math.ceil(s),a=Math.ceil(a),{$prev_pageview_pathname:e,$prev_pageview_last_scroll:i,$prev_pageview_last_scroll_percentage:n<=1?1:iE(i/n,0,1),$prev_pageview_max_scroll:r,$prev_pageview_max_scroll_percentage:n<=1?1:iE(r/n,0,1),$prev_pageview_last_content:s,$prev_pageview_last_content_percentage:o<=1?1:iE(s/o,0,1),$prev_pageview_max_content:a,$prev_pageview_max_content_percentage:o<=1?1:iE(a/o,0,1)})}}]),e}();function iE(e,t,n){return Math.max(t,Math.min(e,n))}var iT=function(){function e(t){s(this,e),this.persistence=t,this.eventRegistry=new Map}return l(e,[{key:"register",value:function(e){var t=this;e.forEach(function(e){var n,i,r,o,s;null!==(n=e.conditions)&&void 0!==n&&n.events&&null!==(i=e.conditions)&&void 0!==i&&null!==(r=i.events)&&void 0!==r&&r.values&&(null===(o=e.conditions)||void 0===o?void 0:o.events.values.length)>0&&t.eventRegistry.set(e.id,null===(s=e.conditions)||void 0===s?void 0:s.events.values.map(function(e){return e.name}))})}},{key:"on",value:function(e){var t,n=[];this.eventRegistry.forEach(function(t,i){t.includes(e)&&n.push(i)});var i=((null===(t=this.persistence)||void 0===t?void 0:t.props[eT])||[]).concat(n);this._saveSurveysToStorage(i)}},{key:"getSurveys",value:function(){var e;return(null===(e=this.persistence)||void 0===e?void 0:e.props[eT])||[]}},{key:"getEventRegistry",value:function(){return this.eventRegistry}},{key:"_saveSurveysToStorage",value:function(e){var t;null===(t=this.persistence)||void 0===t||t.register(u({},eT,d(new Set(e))))}}]),e}(),iP={icontains:function(e){return!!C&&C.location.href.toLowerCase().indexOf(e.toLowerCase())>-1},regex:function(e){var t;return!!C&&(t=C.location.href,!!function(e){try{new RegExp(e)}catch(e){return!1}return!0}(e)&&new RegExp(e).test(t))},exact:function(e){return(null==C?void 0:C.location.href)===e}},iR=function(){function e(t){s(this,e),this.instance=t,this._surveyEventReceiver=null}return l(e,[{key:"afterDecideResponse",value:function(e){this._decideServerResponse=!!e.surveys,this.loadIfEnabled()}},{key:"loadIfEnabled",value:function(){var e=this,t=null==B?void 0:B.extendPostHogWithSurveys;this.instance.config.disable_surveys||!this._decideServerResponse||t||(null==this._surveyEventReceiver&&(this._surveyEventReceiver=new iT(this.instance.persistence)),es(this.instance.requestRouter.endpointFor("assets","/static/surveys.js"),function(t){if(t)return H.error("Could not load surveys script",t);B.extendPostHogWithSurveys(e.instance)}))}},{key:"getSurveys",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.instance.config.disable_surveys)return e([]);null==this._surveyEventReceiver&&(this._surveyEventReceiver=new iT(this.instance.persistence));var i=this.instance.get_property(eE);if(i&&!n)return e(i);this.instance._send_request({url:this.instance.requestRouter.endpointFor("api","/api/surveys/?token=".concat(this.instance.config.token)),method:"GET",transport:"XHR",callback:function(n){if(200!==n.statusCode||!n.json)return e([]);var i,r,o=n.json.surveys||[],s=o.filter(function(e){var t,n,i,r,o,s;return(null===(t=e.conditions)||void 0===t?void 0:t.events)&&(null===(n=e.conditions)||void 0===n||null===(i=n.events)||void 0===i?void 0:i.values)&&(null===(r=e.conditions)||void 0===r||null===(o=r.events)||void 0===o||null===(s=o.values)||void 0===s?void 0:s.length)>0});return s.length>0&&!S(t.instance._addCaptureHook)&&(null===(r=t._surveyEventReceiver)||void 0===r||r.register(s),t.instance._addCaptureHook(function(e){var n;null===(n=t._surveyEventReceiver)||void 0===n||n.on(e)})),null===(i=t.instance.persistence)||void 0===i||i.register(u({},eE,o)),e(o)}})}},{key:"getActiveMatchingSurveys",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.getSurveys(function(n){var i,r=n.filter(function(e){return!(!e.start_date||e.end_date)}).filter(function(e){if(!e.conditions)return!0;var t,n,i,r,o=null===(t=e.conditions)||void 0===t||!t.url||iP[null!==(n=null===(i=e.conditions)||void 0===i?void 0:i.urlMatchType)&&void 0!==n?n:"icontains"](e.conditions.url),s=null===(r=e.conditions)||void 0===r||!r.selector||(null==D?void 0:D.querySelector(e.conditions.selector));return o&&s}),o=null===(i=t._surveyEventReceiver)||void 0===i?void 0:i.getSurveys();return e(r.filter(function(e){if(!e.linked_flag_key&&!e.targeting_flag_key&&!e.internal_targeting_flag_key)return!0;var n,i,r,s,a,l=!e.linked_flag_key||t.instance.featureFlags.isFeatureEnabled(e.linked_flag_key),u=!e.targeting_flag_key||t.instance.featureFlags.isFeatureEnabled(e.targeting_flag_key),c=!e.internal_targeting_flag_key||t.instance.featureFlags.isFeatureEnabled(e.internal_targeting_flag_key),d=!((null===(n=e.conditions)||void 0===n?void 0:n.events)&&(null===(i=e.conditions)||void 0===i||null===(r=i.events)||void 0===r?void 0:r.values)&&(null===(s=e.conditions)||void 0===s||null===(a=s.events)||void 0===a?void 0:a.values.length)>0)||(null==o?void 0:o.includes(e.id));return l&&u&&c&&d}))},n)}}]),e}(),iA=function(){function e(t){var n,i,r=this;s(this,e),u(this,"serverLimits",{}),u(this,"lastEventRateLimited",!1),u(this,"checkForLimiting",function(e){var t=e.text;if(t&&t.length)try{(JSON.parse(t).quota_limited||[]).forEach(function(e){H.info("[RateLimiter] ".concat(e||"events"," is quota limited.")),r.serverLimits[e]=(new Date).getTime()+6e4})}catch(e){return void H.warn('[RateLimiter] could not rate limit - continuing. Error: "'.concat(null==e?void 0:e.message,'"'),{text:t})}}),this.instance=t,this.captureEventsPerSecond=(null===(n=t.config.rate_limiting)||void 0===n?void 0:n.events_per_second)||10,this.captureEventsBurstLimit=Math.max((null===(i=t.config.rate_limiting)||void 0===i?void 0:i.events_burst_limit)||10*this.captureEventsPerSecond,this.captureEventsPerSecond),this.lastEventRateLimited=this.clientRateLimitContext(!0).isRateLimited}return l(e,[{key:"clientRateLimitContext",value:function(){var e,t,n,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=(new Date).getTime(),o=null!==(e=null===(t=this.instance.persistence)||void 0===t?void 0:t.get_property(eC))&&void 0!==e?e:{tokens:this.captureEventsBurstLimit,last:r};o.tokens+=(r-o.last)/1e3*this.captureEventsPerSecond,o.last=r,o.tokens>this.captureEventsBurstLimit&&(o.tokens=this.captureEventsBurstLimit);var s=o.tokens<1;return s||i||(o.tokens=Math.max(0,o.tokens-1)),!s||this.lastEventRateLimited||i||this.instance.capture("$$client_ingestion_warning",{$$client_ingestion_warning_message:"posthog-js client rate limited. Config is set to ".concat(this.captureEventsPerSecond," events per second and ").concat(this.captureEventsBurstLimit," events burst limit.")},{skip_client_rate_limiting:!0}),this.lastEventRateLimited=s,null===(n=this.instance.persistence)||void 0===n||n.set_property(eC,o),{isRateLimited:s,remainingTokens:o.tokens}}},{key:"isServerRateLimited",value:function(e){var t=this.serverLimits[e||"events"]||!1;return!1!==t&&(new Date).getTime()<t}}]),e}(),iC=function(){return r({initialPathName:(null==N?void 0:N.pathname)||"",referringDomain:tJ.referringDomain()},tJ.campaignParams())},iF=function(){function e(t,n,i){var r=this;s(this,e),u(this,"_onSessionIdCallback",function(e){var t=r._getStoredProps();if(!t||t.sessionId!==e){var n={sessionId:e,props:r._sessionSourceParamGenerator()};r._persistence.register(u({},eA,n))}}),this._sessionIdManager=t,this._persistence=n,this._sessionSourceParamGenerator=i||iC,this._sessionIdManager.onSessionId(this._onSessionIdCallback)}return l(e,[{key:"_getStoredProps",value:function(){return this._persistence.props[eA]}},{key:"getSessionProps",value:function(){var e,t=null===(e=this._getStoredProps())||void 0===e?void 0:e.props;return t?{$client_session_initial_referring_host:t.referringDomain,$client_session_initial_pathname:t.initialPathName,$client_session_initial_utm_source:t.utm_source,$client_session_initial_utm_campaign:t.utm_campaign,$client_session_initial_utm_medium:t.utm_medium,$client_session_initial_utm_content:t.utm_content,$client_session_initial_utm_term:t.utm_term}:{}}}]),e}(),iO=["ahrefsbot","ahrefssiteaudit","applebot","baiduspider","bingbot","bingpreview","bot.htm","bot.php","crawler","deepscan","duckduckbot","facebookexternal","facebookcatalog","gptbot","http://yandex.com/bots","hubspot","ia_archiver","linkedinbot","mj12bot","msnbot","nessus","petalbot","pinterest","prerender","rogerbot","screaming frog","semrushbot","sitebulb","slurp","turnitin","twitterbot","vercelbot","yahoo! slurp","yandexbot","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google","Bytespider;"],iL=function(e,t){if(!e)return!1;var n=e.toLowerCase();return iO.concat(t||[]).some(function(e){var t=e.toLowerCase();return -1!==n.indexOf(t)})},iI=function(){function e(){s(this,e),this.clicks=[]}return l(e,[{key:"isRageClick",value:function(e,t,n){var i=this.clicks[this.clicks.length-1];if(i&&Math.abs(e-i.x)+Math.abs(t-i.y)<30&&n-i.timestamp<1e3){if(this.clicks.push({x:e,y:t,timestamp:n}),3===this.clicks.length)return!0}else this.clicks=[{x:e,y:t,timestamp:n}];return!1}}]),e}();function iM(e){var t;return e.id===eM||!(null===(t=e.closest)||void 0===t||!t.call(e,"#"+eM))}var iD=function(){function e(t){var n;s(this,e),u(this,"rageclicks",new iI),u(this,"_enabledServerSide",!1),u(this,"_initialized",!1),this.instance=t,this._enabledServerSide=!(null===(n=this.instance.persistence)||void 0===n||!n.props[eh])}return l(e,[{key:"startIfEnabled",value:function(){this.isEnabled&&!this._initialized&&(H.info("[heatmaps] Heatmaps enabled, starting..."),this._setupListeners())}},{key:"isEnabled",get:function(){return S(this.instance.config.enable_heatmaps)?this._enabledServerSide:this.instance.config.enable_heatmaps}},{key:"afterDecideResponse",value:function(e){var t=!!e.heatmaps;this.instance.persistence&&this.instance.persistence.register(u({},eh,t)),this._enabledServerSide=t,this.startIfEnabled()}},{key:"getAndClearBuffer",value:function(){var e=this.buffer;return this.buffer=void 0,e}},{key:"_setupListeners",value:function(){var e=this;C&&D&&(eo(D,"click",function(t){return e._onClick(t||(null==C?void 0:C.event))},!1,!0),eo(D,"mousemove",function(t){return e._onMouseMove(t||(null==C?void 0:C.event))},!1,!0),this._initialized=!0)}},{key:"_getProperties",value:function(e,t){var n=this.instance.scrollManager.scrollY(),i=this.instance.scrollManager.scrollX(),r=this.instance.scrollManager.scrollElement(),o=function(e,t,n){for(var i=e;i&&!t9(i,"body")&&i!==n;){if(X(t,null==C?void 0:C.getComputedStyle(i).position))return!0;i=nn(i)}return!1}(e.target,["fixed","sticky"],r);return{x:e.clientX+(o?0:i),y:e.clientY+(o?0:n),target_fixed:o,type:t}}},{key:"_onClick",value:function(e){var t;if(!iM(e.target)){var n=this._getProperties(e,"click");null!==(t=this.rageclicks)&&void 0!==t&&t.isRageClick(e.clientX,e.clientY,(new Date).getTime())&&this._capture(r(r({},n),{},{type:"rageclick"})),this._capture(n)}}},{key:"_onMouseMove",value:function(e){var t=this;iM(e.target)||(clearTimeout(this._mouseMoveTimeout),this._mouseMoveTimeout=setTimeout(function(){t._capture(t._getProperties(e,"mousemove"))},500))}},{key:"_capture",value:function(e){if(C){var t=C.location.href;this.buffer=this.buffer||{},this.buffer[t]||(this.buffer[t]=[]),this.buffer[t].push(e)}}}]),e}(),iN=function(){function e(t){var n=this;s(this,e),u(this,"_updateScrollData",function(){n.context||(n.context={});var e,t,i,r,o=n.scrollElement(),s=n.scrollY(),a=o?Math.max(0,o.scrollHeight-o.clientHeight):0,l=s+((null==o?void 0:o.clientHeight)||0),u=(null==o?void 0:o.scrollHeight)||0;n.context.lastScrollY=Math.ceil(s),n.context.maxScrollY=Math.max(s,null!==(e=n.context.maxScrollY)&&void 0!==e?e:0),n.context.maxScrollHeight=Math.max(a,null!==(t=n.context.maxScrollHeight)&&void 0!==t?t:0),n.context.lastContentY=l,n.context.maxContentY=Math.max(l,null!==(i=n.context.maxContentY)&&void 0!==i?i:0),n.context.maxContentHeight=Math.max(u,null!==(r=n.context.maxContentHeight)&&void 0!==r?r:0)}),this.instance=t}return l(e,[{key:"getContext",value:function(){return this.context}},{key:"resetContext",value:function(){var e=this.context;return setTimeout(this._updateScrollData,0),e}},{key:"startMeasuringScrollPosition",value:function(){null==C||C.addEventListener("scroll",this._updateScrollData,!0),null==C||C.addEventListener("scrollend",this._updateScrollData,!0),null==C||C.addEventListener("resize",this._updateScrollData)}},{key:"scrollElement",value:function(){if(!this.instance.config.scroll_root_selector)return null==C?void 0:C.document.documentElement;var e,t=f(b(this.instance.config.scroll_root_selector)?this.instance.config.scroll_root_selector:[this.instance.config.scroll_root_selector]);try{for(t.s();!(e=t.n()).done;){var n=e.value,i=null==C?void 0:C.document.querySelector(n);if(i)return i}}catch(e){t.e(e)}finally{t.f()}}},{key:"scrollY",value:function(){if(this.instance.config.scroll_root_selector){var e=this.scrollElement();return e&&e.scrollTop||0}return C&&(C.scrollY||C.pageYOffset||C.document.documentElement.scrollTop)||0}},{key:"scrollX",value:function(){if(this.instance.config.scroll_root_selector){var e=this.scrollElement();return e&&e.scrollLeft||0}return C&&(C.scrollX||C.pageXOffset||C.document.documentElement.scrollLeft)||0}}]),e}(),i$=function(){function e(){s(this,e),u(this,"events",{}),this.events={}}return l(e,[{key:"on",value:function(e,t){var n=this;return this.events[e]||(this.events[e]=[]),this.events[e].push(t),function(){n.events[e]=n.events[e].filter(function(e){return e!==t})}}},{key:"emit",value:function(e,t){var n,i=f(this.events[e]||[]);try{for(i.s();!(n=i.n()).done;)(0,n.value)(t)}catch(e){i.e(e)}finally{i.f()}var r,o=f(this.events["*"]||[]);try{for(o.s();!(r=o.n()).done;)(0,r.value)(e,t)}catch(e){o.e(e)}finally{o.f()}}}]),e}(),ij="$copy_autocapture";function iz(e,t){return t.length>e?t.slice(0,e)+"...":t}var iV,iB,iW=function(){function e(t){s(this,e),u(this,"_initialized",!1),u(this,"_isDisabledServerSide",null),u(this,"rageclicks",new iI),u(this,"_elementsChainAsString",!1),this.instance=t}return l(e,[{key:"config",get:function(){var e,t=x(this.instance.config.autocapture)?this.instance.config.autocapture:{};return t.url_allowlist=null===(e=t.url_allowlist)||void 0===e?void 0:e.map(function(e){return new RegExp(e)}),t}},{key:"_addDomEventHandlers",value:function(){var e=this;if(this.isBrowserSupported()){if(C&&D){var t=function(t){t=t||(null==C?void 0:C.event);try{e._captureEvent(t)}catch(e){H.error("Failed to capture event",e)}},n=function(t){t=t||(null==C?void 0:C.event),e._captureEvent(t,ij)};eo(D,"submit",t,!1,!0),eo(D,"change",t,!1,!0),eo(D,"click",t,!1,!0),this.config.capture_copied_text&&(eo(D,"copy",n,!1,!0),eo(D,"cut",n,!1,!0))}}else H.info("Disabling Automatic Event Collection because this browser is not supported")}},{key:"startIfEnabled",value:function(){this.isEnabled&&!this._initialized&&(this._addDomEventHandlers(),this._initialized=!0)}},{key:"afterDecideResponse",value:function(e){e.elementsChainAsString&&(this._elementsChainAsString=e.elementsChainAsString),this.instance.persistence&&this.instance.persistence.register(u({},ed,!!e.autocapture_opt_out)),this._isDisabledServerSide=!!e.autocapture_opt_out,this.startIfEnabled()}},{key:"isEnabled",get:function(){var e,t,n=null===(e=this.instance.persistence)||void 0===e?void 0:e.props[ed];if(T(this._isDisabledServerSide)&&!A(n)&&!this.instance.config.advanced_disable_decide)return!1;var i=null!==(t=this._isDisabledServerSide)&&void 0!==t?t:!!n;return!!this.instance.config.autocapture&&!i}},{key:"_previousElementSibling",value:function(e){if(e.previousElementSibling)return e.previousElementSibling;var t=e;do t=t.previousSibling;while(t&&!t4(t));return t}},{key:"_getAugmentPropertiesFromElement",value:function(e){if(!ni(e))return{};var t={};return Y(e.attributes,function(e){if(e.name&&0===e.name.indexOf("data-ph-capture-attribute")){var n=e.name.replace("data-ph-capture-attribute-",""),i=e.value;n&&i&&nd(i)&&(t[n]=i)}}),t}},{key:"_getPropertiesFromElement",value:function(e,t,n){var i,r=e.tagName.toLowerCase(),o={tag_name:r};nt.indexOf(r)>-1&&!n&&("a"===r.toLowerCase()||"button"===r.toLowerCase()?o.$el_text=iz(1024,nh(e)):o.$el_text=iz(1024,t8(e)));var s=t5(e);s.length>0&&(o.classes=s.filter(function(e){return""!==e}));var a=null===(i=this.config)||void 0===i?void 0:i.element_attribute_ignorelist;Y(e.attributes,function(n){var i;if((!nr(e)||-1!==["name","id","class","aria-label"].indexOf(n.name))&&(null==a||!a.includes(n.name))&&!t&&nd(n.value)&&(!E(i=n.name)||"_ngcontent"!==i.substring(0,10)&&"_nghost"!==i.substring(0,7))){var r=n.value;"class"===n.name&&(r=t3(r).join(" ")),o["attr__"+n.name]=iz(1024,r)}});for(var l=1,u=1,c=e;c=this._previousElementSibling(c);)l++,c.tagName===e.tagName&&u++;return o.nth_child=l,o.nth_of_type=u,o}},{key:"_getDefaultProperties",value:function(e){return{$event_type:e,$ce_version:1}}},{key:"_getEventTarget",value:function(e){var t;return S(e.target)?e.srcElement||null:null!==(t=e.target)&&void 0!==t&&t.shadowRoot?e.composedPath()[0]||null:e.target||null}},{key:"_captureEvent",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$autocapture";if(this.isEnabled){var i,s=this._getEventTarget(e);t7(s)&&(s=s.parentNode||null),"$autocapture"===n&&"click"===e.type&&e instanceof MouseEvent&&this.instance.config.rageclick&&null!==(i=this.rageclicks)&&void 0!==i&&i.isRageClick(e.clientX,e.clientY,(new Date).getTime())&&this._captureEvent(e,"$rageclick");var a=n===ij;if(s&&function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0;if(!C||!e||t9(e,"html")||!t4(e))return!1;if(null!=n&&n.url_allowlist){var s=C.location.href,a=n.url_allowlist;if(a&&!a.some(function(e){return s.match(e)}))return!1}if(null!=n&&n.dom_event_allowlist){var l=n.dom_event_allowlist;if(l&&!l.some(function(e){return t.type===e}))return!1}for(var u=!1,c=[e],d=!0,h=e;h.parentNode&&!t9(h,"body");)if(ne(h.parentNode))c.push(h.parentNode.host),h=h.parentNode.host;else{if(!(d=nn(h)))break;if(i||nt.indexOf(d.tagName.toLowerCase())>-1)u=!0;else{var p=C.getComputedStyle(d);p&&"pointer"===p.getPropertyValue("cursor")&&(u=!0)}c.push(d),h=d}if(!function(e,t){var n=null==t?void 0:t.element_allowlist;if(S(n))return!0;var i,r=f(e);try{for(r.s();!(i=r.n()).done;){var s=function(){var e=i.value;if(n.some(function(t){return e.tagName.toLowerCase()===t}))return{v:!0}}();if("object"===o(s))return s.v}}catch(e){r.e(e)}finally{r.f()}return!1}(c,n)||!function(e,t){var n=null==t?void 0:t.css_selector_allowlist;if(S(n))return!0;var i,r=f(e);try{for(r.s();!(i=r.n()).done;){var s=function(){var e=i.value;if(n.some(function(t){return e.matches(t)}))return{v:!0}}();if("object"===o(s))return s.v}}catch(e){r.e(e)}finally{r.f()}return!1}(c,n))return!1;var m=C.getComputedStyle(e);if(m&&"pointer"===m.getPropertyValue("cursor")&&"click"===t.type)return!0;var g=e.tagName.toLowerCase();switch(g){case"html":return!1;case"form":return(r||["submit"]).indexOf(t.type)>=0;case"input":case"select":case"textarea":return(r||["change","click"]).indexOf(t.type)>=0;default:return u?(r||["click"]).indexOf(t.type)>=0:(r||["click"]).indexOf(t.type)>=0&&(nt.indexOf(g)>-1||"true"===e.getAttribute("contenteditable"))}}(s,e,this.config,a,a?["copy","cut"]:void 0)){for(var l,u,d=[s],h=s;h.parentNode&&!t9(h,"body");)ne(h.parentNode)?(d.push(h.parentNode.host),h=h.parentNode.host):(d.push(h.parentNode),h=h.parentNode);var p,m=[],g={},v=!1;if(Y(d,function(e){var n=ni(e);"a"===e.tagName.toLowerCase()&&(p=e.getAttribute("href"),p=n&&nd(p)&&p),X(t5(e),"ph-no-capture")&&(v=!0),m.push(t._getPropertiesFromElement(e,t.instance.config.mask_all_element_attributes,t.instance.config.mask_all_text)),K(g,t._getAugmentPropertiesFromElement(e))}),this.instance.config.mask_all_text||("a"===s.tagName.toLowerCase()||"button"===s.tagName.toLowerCase()?m[0].$el_text=nh(s):m[0].$el_text=t8(s)),p&&(m[0].attr__href=p),v)return!1;var y=K(this._getDefaultProperties(e.type),this._elementsChainAsString?{$elements_chain:m.map(function(e){var t,n,i,r={text:null===(n=e.$el_text)||void 0===n?void 0:n.slice(0,400),tag_name:e.tag_name,href:null===(i=e.attr__href)||void 0===i?void 0:i.slice(0,2048),attr_class:(t=e.attr__class)?b(t)?t:t3(t):void 0,attr_id:e.attr__id,nth_child:e.nth_child,nth_of_type:e.nth_of_type,attributes:{}};return Z(e).filter(function(e){return 0===c(e,1)[0].indexOf("attr__")}).forEach(function(e){var t=c(e,2),n=t[0],i=t[1];return r.attributes[n]=i}),r}).map(function(e){var t,n,i="";if(e.tag_name&&(i+=e.tag_name),e.attr_class){e.attr_class.sort();var o,s=f(e.attr_class);try{for(s.s();!(o=s.n()).done;){var a=o.value;i+=".".concat(a.replace(/"/g,""))}}catch(e){s.e(e)}finally{s.f()}}var l=r(r(r(r({},e.text?{text:e.text}:{}),{},{"nth-child":null!==(t=e.nth_child)&&void 0!==t?t:0,"nth-of-type":null!==(n=e.nth_of_type)&&void 0!==n?n:0},e.href?{href:e.href}:{}),e.attr_id?{attr_id:e.attr_id}:{}),e.attributes),u={};return Z(l).sort(function(e,t){var n=c(e,1)[0],i=c(t,1)[0];return n.localeCompare(i)}).forEach(function(e){var t=c(e,2),n=t[0],i=t[1];return u[np(n.toString())]=np(i.toString())}),i+=":"+Z(l).map(function(e){var t=c(e,2),n=t[0],i=t[1];return"".concat(n,'="').concat(i,'"')}).join("")}).join(";")}:{$elements:m},null!==(l=m[0])&&void 0!==l&&l.$el_text?{$el_text:null===(u=m[0])||void 0===u?void 0:u.$el_text}:{},g);if(n===ij){var _,w=t6(null==C||null===(_=C.getSelection())||void 0===_?void 0:_.toString()),x=e.type||"clipboard";if(!w)return!1;y.$selected_content=w,y.$copy_type=x}return this.instance.capture(n,y),!0}}}},{key:"isBrowserSupported",value:function(){return w(null==D?void 0:D.querySelectorAll)}}]),e}(),iH=function(){function e(t){var n=this;s(this,e),u(this,"_restoreXHRPatch",void 0),u(this,"_restoreFetchPatch",void 0),u(this,"_startCapturing",function(){S(n._restoreXHRPatch)&&B.postHogTracingHeadersPatchFns._patchXHR(n.instance.sessionManager),S(n._restoreFetchPatch)&&B.postHogTracingHeadersPatchFns._patchFetch(n.instance.sessionManager)}),this.instance=t}return l(e,[{key:"_loadScript",value:function(e){B.postHogTracingHeadersPatchFns&&e(),es(this.instance.requestRouter.endpointFor("assets","/static/tracing-headers.js?v=".concat(m.LIB_VERSION)),function(t){t&&H.error("[TRACING-HEADERS] failed to load script",t),e()})}},{key:"startIfEnabledOrStop",value:function(){var e,t;this.instance.config.__add_tracing_headers?this._loadScript(this._startCapturing):(null===(e=this._restoreXHRPatch)||void 0===e||e.call(this),null===(t=this._restoreFetchPatch)||void 0===t||t.call(this),this._restoreXHRPatch=void 0,this._restoreFetchPatch=void 0)}}]),e}();(i0=iB||(iB={}))[i0.PENDING=-1]="PENDING",i0[i0.DENIED=0]="DENIED",i0[i0.GRANTED=1]="GRANTED";var iU=function(){function e(t){s(this,e),this.instance=t}return l(e,[{key:"config",get:function(){return this.instance.config}},{key:"consent",get:function(){return this.getDnt()?iB.DENIED:this.storedConsent}},{key:"isOptedOut",value:function(){return this.consent===iB.DENIED||this.consent===iB.PENDING&&this.config.opt_out_capturing_by_default}},{key:"isOptedIn",value:function(){return!this.isOptedOut()}},{key:"optInOut",value:function(e){this.storage.set(this.storageKey,e?1:0,this.config.cookie_expiration,this.config.cross_subdomain_cookie,this.config.secure_cookie)}},{key:"reset",value:function(){this.storage.remove(this.storageKey,this.config.cross_subdomain_cookie)}},{key:"storageKey",get:function(){var e=this.instance.config,t=e.token;return(e.opt_out_capturing_cookie_prefix||"__ph_opt_in_out_")+t}},{key:"storedConsent",get:function(){var e=this.storage.get(this.storageKey);return"1"===e?iB.GRANTED:"0"===e?iB.DENIED:iB.PENDING}},{key:"storage",get:function(){if(!this._storage){var e=this.config.opt_out_capturing_persistence_type;this._storage="localStorage"===e?e2:e0;var t="localStorage"===e?e0:e2;t.get(this.storageKey)&&(this._storage.get(this.storageKey)||this.optInOut("1"===t.get(this.storageKey)),t.remove(this.storageKey,this.config.cross_subdomain_cookie))}return this._storage}},{key:"getDnt",value:function(){return!!this.config.respect_dnt&&!!ea([null==M?void 0:M.doNotTrack,null==M?void 0:M.msDoNotTrack,B.doNotTrack],function(e){return X([!0,1,"1","yes"],e)})}}]),e}(),iq={},iG=function(){},iY="posthog",iK=!il&&-1===(null==V?void 0:V.indexOf("MSIE"))&&-1===(null==V?void 0:V.indexOf("Mozilla")),iX=function(){var e,t,n;return{api_host:"https://us.i.posthog.com",ui_host:null,token:"",autocapture:!0,rageclick:!0,cross_subdomain_cookie:!!E(n=null==(t=null==D?void 0:D.location)?void 0:t.hostname)&&"herokuapp.com"!==n.split(".").slice(-2).join("."),persistence:"localStorage+cookie",persistence_name:"",loaded:iG,store_google:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageview:!0,capture_pageleave:"if_capture_pageview",debug:N&&E(null==N?void 0:N.search)&&-1!==N.search.indexOf("__posthog_debug=true")||!1,verbose:!1,cookie_expiration:365,upgrade:!1,disable_session_recording:!1,disable_persistence:!1,disable_surveys:!1,enable_recording_console_log:void 0,secure_cookie:"https:"===(null==C||null===(e=C.location)||void 0===e?void 0:e.protocol),ip:!0,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_useragent_filter:!1,opt_out_capturing_persistence_type:"localStorage",opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_denylist:[],respect_dnt:!1,sanitize_properties:null,request_headers:{},inapp_protocol:"//",inapp_link_new_window:!1,request_batching:!0,properties_string_max_length:65535,session_recording:{},mask_all_element_attributes:!1,mask_all_text:!1,advanced_disable_decide:!1,advanced_disable_feature_flags:!1,advanced_disable_feature_flags_on_first_load:!1,advanced_disable_toolbar_metrics:!1,feature_flag_request_timeout_ms:3e3,on_request_error:function(e){var t="Bad HTTP status: "+e.statusCode+" "+e.text;H.error(t)},get_device_id:function(e){return e},_onCapture:iG,capture_performance:void 0,name:"posthog",bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800,person_profiles:"always",__add_tracing_headers:!1}},iZ=function(e){var t={};S(e.process_person)||(t.person_profiles=e.process_person),S(e.xhr_headers)||(t.request_headers=e.xhr_headers),S(e.cookie_name)||(t.persistence_name=e.cookie_name),S(e.disable_cookie)||(t.disable_persistence=e.disable_cookie);var n=K({},t,e);return b(e.property_blacklist)&&(S(e.property_denylist)?n.property_denylist=e.property_blacklist:b(e.property_denylist)?n.property_denylist=[].concat(d(e.property_blacklist),d(e.property_denylist)):H.error("Invalid value for property_denylist config: "+e.property_denylist)),n},iQ=function(){function e(){s(this,e),u(this,"__forceAllowLocalhost",!1)}return l(e,[{key:"_forceAllowLocalhost",get:function(){return this.__forceAllowLocalhost},set:function(e){H.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=e}}]),e}(),iJ=function(){function e(){var t=this;s(this,e),u(this,"webPerformance",new iQ),u(this,"_debugEventEmitter",new i$),this.config=iX(),this.decideEndpointWasHit=!1,this.SentryIntegration=ik,this.sentryIntegration=function(e){var n;return n=ix(t,e),{name:iw,processEvent:function(e){return n(e)}}},this.__request_queue=[],this.__loaded=!1,this.analyticsDefaultEndpoint="/e/",this.featureFlags=new eV(this),this.toolbar=new nD(this),this.scrollManager=new iN(this),this.pageViewManager=new iS(this),this.surveys=new iR(this),this.rateLimiter=new iA(this),this.requestRouter=new ib(this),this.consent=new iU(this),this.people={set:function(e,n,i){var r=E(e)?u({},e,n):e;t.setPersonProperties(r),null==i||i({})},set_once:function(e,n,i){var r=E(e)?u({},e,n):e;t.setPersonProperties(void 0,r),null==i||i({})}},this.on("eventCaptured",function(e){return H.info("send",e)})}return l(e,[{key:"init",value:function(t,n,i){if(i&&i!==iY){var r,o=null!==(r=iq[i])&&void 0!==r?r:new e;return o._init(t,n,i),iq[i]=o,iq[iY][i]=o,o}return this._init(t,n,i)}},{key:"_init",value:function(e){var t,n,i=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=arguments.length>2?arguments[2]:void 0;if(S(e)||E(e)&&0===e.trim().length)return H.critical("PostHog was initialized without a token. This likely indicates a misconfiguration. Please check the first argument passed to posthog.init()"),this;if(this.__loaded)return H.warn("You have already initialized PostHog! Re-initializing is a no-op"),this;if(this.__loaded=!0,this.config={},this._triggered_notifs=[],this.set_config(K({},iX(),iZ(o),{name:s,token:e})),this.compression=o.disable_compression?void 0:Q.Base64,this.persistence=new t1(this.config),this.sessionPersistence="sessionStorage"===this.config.persistence?this.persistence:new t1(r(r({},this.config),{},{persistence:"sessionStorage"})),this._requestQueue=new nN(function(e){return i._send_retriable_request(e)}),this._retryQueue=new iv(this),this.__request_queue=[],this.sessionManager=new iy(this.config,this.persistence),this.sessionPropsManager=new iF(this.sessionManager,this.persistence),new iH(this).startIfEnabledOrStop(),this.sessionRecording=new nO(this),this.sessionRecording.startIfEnabledOrStop(),this.config.disable_scroll_properties||this.scrollManager.startMeasuringScrollPosition(),this.autocapture=new iW(this),this.autocapture.startIfEnabled(),this.surveys.loadIfEnabled(),this.heatmaps=new iD(this),this.heatmaps.startIfEnabled(),m.DEBUG=m.DEBUG||this.config.debug,this._sync_opt_out_with_persistence(),void 0!==(null===(t=o.bootstrap)||void 0===t?void 0:t.distinctID)){var a,l,u=this.config.get_device_id(eX()),c=null!==(a=o.bootstrap)&&void 0!==a&&a.isIdentifiedID?u:o.bootstrap.distinctID;this.persistence.set_property(eR,null!==(l=o.bootstrap)&&void 0!==l&&l.isIdentifiedID?"identified":"anonymous"),this.register({distinct_id:o.bootstrap.distinctID,$device_id:c})}if(this._hasBootstrappedFeatureFlags()){var d,h,p=Object.keys((null===(d=o.bootstrap)||void 0===d?void 0:d.featureFlags)||{}).filter(function(e){var t,n;return!(null===(t=o.bootstrap)||void 0===t||null===(n=t.featureFlags)||void 0===n||!n[e])}).reduce(function(e,t){var n,i;return e[t]=(null===(n=o.bootstrap)||void 0===n||null===(i=n.featureFlags)||void 0===i?void 0:i[t])||!1,e},{}),f=Object.keys((null===(h=o.bootstrap)||void 0===h?void 0:h.featureFlagPayloads)||{}).filter(function(e){return p[e]}).reduce(function(e,t){var n,i,r,s;return null!==(n=o.bootstrap)&&void 0!==n&&null!==(i=n.featureFlagPayloads)&&void 0!==i&&i[t]&&(e[t]=null===(r=o.bootstrap)||void 0===r||null===(s=r.featureFlagPayloads)||void 0===s?void 0:s[t]),e},{});this.featureFlags.receivedFeatureFlags({featureFlags:p,featureFlagPayloads:f})}if(!this.get_distinct_id()){var g=this.config.get_device_id(eX());this.register_once({distinct_id:g,$device_id:g},""),this.persistence.set_property(eR,"anonymous")}return null==C||null===(n=C.addEventListener)||void 0===n||n.call(C,"onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this)),this.toolbar.maybeLoadToolbar(),o.segment?function(e,t){var n=e.config.segment;if(!n)return t();!function(e,t){var n=e.config.segment;if(!n)return t();var i=function(n){var i=function(){return n.anonymousId()||eX()};e.config.get_device_id=i,n.id()&&(e.register({distinct_id:n.id(),$device_id:i()}),e.persistence.set_property(eR,"identified")),t()},r=n.user();"then"in r&&w(r.then)?r.then(function(e){return i(e)}):i(r)}(e,function(){var i;n.register((Promise&&Promise.resolve||H.warn("This browser does not have Promise support, and can not use the segment integration"),i=function(t,n){if(!n)return t;t.event.userId||t.event.anonymousId===e.get_distinct_id()||e.reset(),t.event.userId&&t.event.userId!==e.get_distinct_id()&&(e.register({distinct_id:t.event.userId}),e.reloadFeatureFlags());var i,r=e._calculate_event_properties(n,null!==(i=t.event.properties)&&void 0!==i?i:{});return t.event.properties=Object.assign({},r,t.event.properties),t},{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:function(e){return i(e,e.event.event)},page:function(e){return i(e,"$pageview")},identify:function(e){return i(e,"$identify")},screen:function(e){return i(e,"$screen")}})).then(function(){t()})})}(this,function(){return i._loaded()}):this._loaded(),w(this.config._onCapture)&&this.on("eventCaptured",function(e){return i.config._onCapture(e.event,e)}),this}},{key:"_afterDecideResponse",value:function(e){var t,n,i,r,o;this.compression=void 0,e.supportedCompression&&!this.config.disable_compression&&(this.compression=X(e.supportedCompression,Q.GZipJS)?Q.GZipJS:X(e.supportedCompression,Q.Base64)?Q.Base64:void 0),null!==(t=e.analytics)&&void 0!==t&&t.endpoint&&(this.analyticsDefaultEndpoint=e.analytics.endpoint),null===(n=this.sessionRecording)||void 0===n||n.afterDecideResponse(e),null===(i=this.autocapture)||void 0===i||i.afterDecideResponse(e),null===(r=this.heatmaps)||void 0===r||r.afterDecideResponse(e),null===(o=this.surveys)||void 0===o||o.afterDecideResponse(e)}},{key:"_loaded",value:function(){var e=this,t=this.config.advanced_disable_decide;t||this.featureFlags.setReloadingPaused(!0);try{this.config.loaded(this)}catch(e){H.critical("`loaded` function failed",e)}this._start_queue_if_opted_in(),this.config.capture_pageview&&setTimeout(function(){D&&e.capture("$pageview",{title:D.title},{send_instantly:!0})},1),t||(new nL(this).call(),this.featureFlags.resetRequestQueue())}},{key:"_start_queue_if_opted_in",value:function(){var e;this.has_opted_out_capturing()||this.config.request_batching&&(null===(e=this._requestQueue)||void 0===e||e.enable())}},{key:"_dom_loaded",value:function(){var e=this;this.has_opted_out_capturing()||G(this.__request_queue,function(t){return e._send_retriable_request(t)}),this.__request_queue=[],this._start_queue_if_opted_in()}},{key:"_handle_unload",value:function(){var e,t;this.config.request_batching?(this._shouldCapturePageleave()&&this.capture("$pageleave"),null===(e=this._requestQueue)||void 0===e||e.unload(),null===(t=this._retryQueue)||void 0===t||t.unload()):this._shouldCapturePageleave()&&this.capture("$pageleave",null,{transport:"sendBeacon"})}},{key:"_send_request",value:function(e){var t=this;this.__loaded&&(iK?this.__request_queue.push(e):this.rateLimiter.isServerRateLimited(e.batchKey)||(e.transport=e.transport||this.config.api_transport,e.url=ic(e.url,{ip:this.config.ip?1:0}),e.headers=this.config.request_headers,e.compression="best-available"===e.compression?this.compression:e.compression,function(e){var t,n,i,o=r({},e);o.timeout=o.timeout||6e4,o.url=ic(o.url,{_:(new Date).getTime().toString(),ver:m.LIB_VERSION,compression:o.compression});var s=null!==(t=o.transport)&&void 0!==t?t:"XHR",a=null!==(n=null===(i=ea(ih,function(e){return e.transport===s}))||void 0===i?void 0:i.method)&&void 0!==n?n:ih[0].method;if(!a)throw Error("No available transport method");a(o)}(r(r({},e),{},{callback:function(n){var i,r,o;t.rateLimiter.checkForLimiting(n),n.statusCode>=400&&(null===(r=(o=t.config).on_request_error)||void 0===r||r.call(o,n)),null===(i=e.callback)||void 0===i||i.call(e,n)}}))))}},{key:"_send_retriable_request",value:function(e){this._retryQueue?this._retryQueue.retriableRequest(e):this._send_request(e)}},{key:"_execute_array",value:function(e){var t,n=this,i=[],r=[],o=[];G(e,function(e){e&&(b(t=e[0])?o.push(e):w(e)?e.call(n):b(e)&&"alias"===t?i.push(e):b(e)&&-1!==t.indexOf("capture")&&w(n[t])?o.push(e):r.push(e))});var s=function(e,t){G(e,function(e){if(b(e[0])){var n=t;Y(e,function(e){n=n[e[0]].apply(n,e.slice(1))})}else this[e[0]].apply(this,e.slice(1))},t)};s(i,this),s(r,this),s(o,this)}},{key:"_hasBootstrappedFeatureFlags",value:function(){var e,t;return(null===(e=this.config.bootstrap)||void 0===e?void 0:e.featureFlags)&&Object.keys(null===(t=this.config.bootstrap)||void 0===t?void 0:t.featureFlags).length>0||!1}},{key:"push",value:function(e){this._execute_array([e])}},{key:"capture",value:function(e,t,n){var i;if(!(this.__loaded&&this.persistence&&this.sessionPersistence&&this._requestQueue))return H.uninitializedWarning("posthog.capture");if(!this.consent.isOptedOut()){if(!S(e)&&E(e)){if(!V||this.config.opt_out_useragent_filter||!iL(V,this.config.custom_blocked_useragents)){var o=null!=n&&n.skip_client_rate_limiting?void 0:this.rateLimiter.clientRateLimitContext();if(null==o||!o.isRateLimited){this.sessionPersistence.update_search_keyword(),this.config.store_google&&this.sessionPersistence.update_campaign_params(),this.config.save_referrer&&this.sessionPersistence.update_referrer_info(),(this.config.store_google||this.config.save_referrer)&&this.persistence.set_initial_person_info();var s,a,l,u,c={uuid:eX(),event:e,properties:this._calculate_event_properties(e,t||{},n)};o&&(c.properties.$lib_rate_limit_remaining_tokens=o.remainingTokens),(null==n?void 0:n.$set)&&(c.$set=null==n?void 0:n.$set);var d=this._calculate_set_once_properties(null==n?void 0:n.$set_once);d&&(c.$set_once=d),(s=c,a=null!=n&&n._noTruncate?null:this.config.properties_string_max_length,l=function(e){return E(e)&&!T(a)?e.slice(0,a):e},u=new Set,c=function e(t,n){var i;return t!==Object(t)?l?l(t,n):t:u.has(t)?void 0:(u.add(t),b(t)?(i=[],G(t,function(t){i.push(e(t))})):(i={},Y(t,function(t,n){u.has(t)||(i[n]=e(t,n))})),i)}(s)).timestamp=(null==n?void 0:n.timestamp)||new Date,S(null==n?void 0:n.timestamp)||(c.properties.$event_time_override_provided=!0,c.properties.$event_time_override_system_time=new Date);var h=r(r({},c.properties.$set),c.$set);k(h)||this.setPersonPropertiesForFlags(h),this._debugEventEmitter.emit("eventCaptured",c);var p={method:"POST",url:null!==(i=null==n?void 0:n._url)&&void 0!==i?i:this.requestRouter.endpointFor("api",this.analyticsDefaultEndpoint),data:c,compression:"best-available",batchKey:null==n?void 0:n._batchKey};return!this.config.request_batching||n&&(null==n||!n._batchKey)||null!=n&&n.send_instantly?this._send_retriable_request(p):this._requestQueue.enqueue(p),c}H.critical("This capture call is ignored due to client rate limiting.")}}else H.error("No event name provided to posthog.capture")}}},{key:"_addCaptureHook",value:function(e){this.on("eventCaptured",function(t){return e(t.event)})}},{key:"_calculate_event_properties",value:function(e,t,n){if(!this.persistence||!this.sessionPersistence)return t;var i=this.persistence.remove_event_timer(e),o=r({},t);if(o.token=this.config.token,"$snapshot"===e){var s=r(r({},this.persistence.properties()),this.sessionPersistence.properties());return o.distinct_id=s.distinct_id,o}var a=tJ.properties();if(this.sessionManager){var l=this.sessionManager.checkAndGetSessionAndWindowId(),u=l.sessionId,c=l.windowId;o.$session_id=u,o.$window_id=c}if(this.requestRouter.region===im.CUSTOM&&(o.$lib_custom_api_host=this.config.api_host),this.sessionPropsManager&&this.config.__preview_send_client_session_params&&("$pageview"===e||"$pageleave"===e||"$autocapture"===e)){var d=this.sessionPropsManager.getSessionProps();o=K(o,d)}if(!this.config.disable_scroll_properties){var h={};"$pageview"===e?h=this.pageViewManager.doPageView():"$pageleave"===e&&(h=this.pageViewManager.doPageLeave()),o=K(o,h)}if("$pageview"===e&&D&&(o.title=D.title),!S(i)){var p=(new Date).getTime()-i;o.$duration=parseFloat((p/1e3).toFixed(3))}if(V&&this.config.opt_out_useragent_filter&&(o.$browser_type=iL(V,this.config.custom_blocked_useragents)?"bot":"browser"),(o=K({},a,this.persistence.properties(),this.sessionPersistence.properties(),o)).$is_identified=this._isIdentified(),null==n||!n._noHeatmaps){var f,m=null===(f=this.heatmaps)||void 0===f?void 0:f.getAndClearBuffer();m&&(o.$heatmap_data=m)}b(this.config.property_denylist)?Y(this.config.property_denylist,function(e){delete o[e]}):H.error("Invalid value for property_denylist config: "+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);var g=this.config.sanitize_properties;return g&&(o=g(o,e)),o.$process_person_profile=this._hasPersonProcessing(),o}},{key:"_calculate_set_once_properties",value:function(e){if(!this.persistence||!this._hasPersonProcessing())return e;var t=K({},this.persistence.get_initial_props(),e||{});return k(t)?void 0:t}},{key:"register",value:function(e,t){var n;null===(n=this.persistence)||void 0===n||n.register(e,t)}},{key:"register_once",value:function(e,t,n){var i;null===(i=this.persistence)||void 0===i||i.register_once(e,t,n)}},{key:"register_for_session",value:function(e){var t;null===(t=this.sessionPersistence)||void 0===t||t.register(e)}},{key:"unregister",value:function(e){var t;null===(t=this.persistence)||void 0===t||t.unregister(e)}},{key:"unregister_for_session",value:function(e){var t;null===(t=this.sessionPersistence)||void 0===t||t.unregister(e)}},{key:"_register_single",value:function(e,t){this.register(u({},e,t))}},{key:"getFeatureFlag",value:function(e,t){return this.featureFlags.getFeatureFlag(e,t)}},{key:"getFeatureFlagPayload",value:function(e){var t=this.featureFlags.getFeatureFlagPayload(e);try{return JSON.parse(t)}catch(e){return t}}},{key:"isFeatureEnabled",value:function(e,t){return this.featureFlags.isFeatureEnabled(e,t)}},{key:"reloadFeatureFlags",value:function(){this.featureFlags.reloadFeatureFlags()}},{key:"updateEarlyAccessFeatureEnrollment",value:function(e,t){this.featureFlags.updateEarlyAccessFeatureEnrollment(e,t)}},{key:"getEarlyAccessFeatures",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.featureFlags.getEarlyAccessFeatures(e,t)}},{key:"on",value:function(e,t){return this._debugEventEmitter.on(e,t)}},{key:"onFeatureFlags",value:function(e){return this.featureFlags.onFeatureFlags(e)}},{key:"onSessionId",value:function(e){var t,n;return null!==(t=null===(n=this.sessionManager)||void 0===n?void 0:n.onSessionId(e))&&void 0!==t?t:function(){}}},{key:"getSurveys",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.surveys.getSurveys(e,t)}},{key:"getActiveMatchingSurveys",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.surveys.getActiveMatchingSurveys(e,t)}},{key:"identify",value:function(e,t,n){if(!this.__loaded||!this.persistence)return H.uninitializedWarning("posthog.identify");if(R(e)&&(e=e.toString(),H.warn("The first argument to posthog.identify was a number, but it should be a string. It has been converted to a string.")),e){if(["distinct_id","distinctid"].includes(e.toLowerCase()))H.critical('The string "'.concat(e,'" was set in posthog.identify which indicates an error. This ID should be unique to the user and not a hardcoded string.'));else if(this._requirePersonProcessing("posthog.identify")){var i=this.get_distinct_id();this.register({$user_id:e}),this.get_property("$device_id")||this.register_once({$had_persisted_distinct_id:!0,$device_id:i},""),e!==i&&e!==this.get_property(eu)&&(this.unregister(eu),this.register({distinct_id:e}));var r="anonymous"===(this.persistence.get_property(eR)||"anonymous");e!==i&&r?(this.persistence.set_property(eR,"identified"),this.setPersonPropertiesForFlags(t||{},!1),this.capture("$identify",{distinct_id:e,$anon_distinct_id:i},{$set:t||{},$set_once:n||{}}),this.featureFlags.setAnonymousDistinctId(i)):(t||n)&&this.setPersonProperties(t,n),e!==i&&(this.reloadFeatureFlags(),this.unregister(eP))}}else H.error("Unique user id has not been set in posthog.identify")}},{key:"setPersonProperties",value:function(e,t){(e||t)&&this._requirePersonProcessing("posthog.setPersonProperties")&&(this.setPersonPropertiesForFlags(e||{}),this.capture("$set",{$set:e||{},$set_once:t||{}}))}},{key:"group",value:function(e,t,n){if(e&&t){if(this._requirePersonProcessing("posthog.group")){var i=this.getGroups();i[e]!==t&&this.resetGroupPropertiesForFlags(e),this.register({$groups:r(r({},i),{},u({},e,t))}),n&&(this.capture("$groupidentify",{$group_type:e,$group_key:t,$group_set:n}),this.setGroupPropertiesForFlags(u({},e,n))),i[e]===t||n||this.reloadFeatureFlags()}}else H.error("posthog.group requires a group type and group key")}},{key:"resetGroups",value:function(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}},{key:"setPersonPropertiesForFlags",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this._requirePersonProcessing("posthog.setPersonPropertiesForFlags")&&this.featureFlags.setPersonPropertiesForFlags(e,t)}},{key:"resetPersonPropertiesForFlags",value:function(){this.featureFlags.resetPersonPropertiesForFlags()}},{key:"setGroupPropertiesForFlags",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this._requirePersonProcessing("posthog.setGroupPropertiesForFlags")&&this.featureFlags.setGroupPropertiesForFlags(e,t)}},{key:"resetGroupPropertiesForFlags",value:function(e){this.featureFlags.resetGroupPropertiesForFlags(e)}},{key:"reset",value:function(e){if(!this.__loaded)return H.uninitializedWarning("posthog.reset");var t,n,i,r,o=this.get_property("$device_id");this.consent.reset(),null===(t=this.persistence)||void 0===t||t.clear(),null===(n=this.sessionPersistence)||void 0===n||n.clear(),null===(i=this.persistence)||void 0===i||i.set_property(eR,"anonymous"),null===(r=this.sessionManager)||void 0===r||r.resetSessionId();var s=this.config.get_device_id(eX());this.register_once({distinct_id:s,$device_id:e?s:o},"")}},{key:"get_distinct_id",value:function(){return this.get_property("distinct_id")}},{key:"getGroups",value:function(){return this.get_property("$groups")||{}}},{key:"get_session_id",value:function(){var e,t;return null!==(e=null===(t=this.sessionManager)||void 0===t?void 0:t.checkAndGetSessionAndWindowId(!0).sessionId)&&void 0!==e?e:""}},{key:"get_session_replay_url",value:function(e){if(!this.sessionManager)return"";var t=this.sessionManager.checkAndGetSessionAndWindowId(!0),n=t.sessionId,i=t.sessionStartTimestamp,r=this.requestRouter.endpointFor("ui","/project/".concat(this.config.token,"/replay/").concat(n));if(null!=e&&e.withTimestamp&&i){var o,s=null!==(o=e.timestampLookBack)&&void 0!==o?o:10;if(!i)return r;var a=Math.max(Math.floor(((new Date).getTime()-i)/1e3)-s,0);r+="?t=".concat(a)}return r}},{key:"alias",value:function(e,t){return e===this.get_property(el)?(H.critical("Attempting to create alias for existing People user - aborting."),-2):this._requirePersonProcessing("posthog.alias")?(S(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single(eu,e),this.capture("$create_alias",{alias:e,distinct_id:t})):(H.warn("alias matches current distinct_id - skipping api call."),this.identify(e),-1)):void 0}},{key:"set_config",value:function(e){var t,n,i,o,s=r({},this.config);x(e)&&(K(this.config,iZ(e)),null===(t=this.persistence)||void 0===t||t.update_config(this.config,s),this.sessionPersistence="sessionStorage"===this.config.persistence?this.persistence:new t1(r(r({},this.config),{},{persistence:"sessionStorage"})),e2.is_supported()&&"true"===e2.get("ph_debug")&&(this.config.debug=!0),this.config.debug&&(m.DEBUG=!0),null===(n=this.sessionRecording)||void 0===n||n.startIfEnabledOrStop(),null===(i=this.autocapture)||void 0===i||i.startIfEnabled(),null===(o=this.heatmaps)||void 0===o||o.startIfEnabled(),this.surveys.loadIfEnabled(),this._sync_opt_out_with_persistence())}},{key:"startSessionRecording",value:function(e){if(null!=e&&e.sampling){var t,n,i=null===(t=this.sessionManager)||void 0===t?void 0:t.checkAndGetSessionAndWindowId();null===(n=this.persistence)||void 0===n||n.register(u({},eb,!0)),H.info("Session recording started with sampling override for session: ",null==i?void 0:i.sessionId)}this.set_config({disable_session_recording:!1})}},{key:"stopSessionRecording",value:function(){this.set_config({disable_session_recording:!0})}},{key:"sessionRecordingStarted",value:function(){var e;return!(null===(e=this.sessionRecording)||void 0===e||!e.started)}},{key:"loadToolbar",value:function(e){return this.toolbar.loadToolbar(e)}},{key:"get_property",value:function(e){var t;return null===(t=this.persistence)||void 0===t?void 0:t.props[e]}},{key:"getSessionProperty",value:function(e){var t;return null===(t=this.sessionPersistence)||void 0===t?void 0:t.props[e]}},{key:"toString",value:function(){var e,t=null!==(e=this.config.name)&&void 0!==e?e:iY;return t!==iY&&(t=iY+"."+t),t}},{key:"_isIdentified",value:function(){var e,t;return"identified"===(null===(e=this.persistence)||void 0===e?void 0:e.get_property(eR))||"identified"===(null===(t=this.sessionPersistence)||void 0===t?void 0:t.get_property(eR))}},{key:"_hasPersonProcessing",value:function(){var e,t,n,i;return!("never"===this.config.person_profiles||"identified_only"===this.config.person_profiles&&!this._isIdentified()&&k(this.getGroups())&&(null===(e=this.persistence)||void 0===e||null===(t=e.props)||void 0===t||!t[eu])&&(null===(n=this.persistence)||void 0===n||null===(i=n.props)||void 0===i||!i[eI]))}},{key:"_shouldCapturePageleave",value:function(){return!0===this.config.capture_pageleave||"if_capture_pageview"===this.config.capture_pageleave&&this.config.capture_pageview}},{key:"createPersonProfile",value:function(){this._hasPersonProcessing()||this._requirePersonProcessing("posthog.createPersonProfile")&&this.setPersonProperties({},{})}},{key:"_requirePersonProcessing",value:function(e){return"never"===this.config.person_profiles?(H.error(e+' was called, but process_person is set to "never". This call will be ignored.'),!1):(this._register_single(eI,!0),!0)}},{key:"_sync_opt_out_with_persistence",value:function(){var e,t,n,i,r=this.consent.isOptedOut(),o=this.config.opt_out_persistence_by_default,s=this.config.disable_persistence||r&&!!o;(null===(e=this.persistence)||void 0===e?void 0:e.disabled)!==s&&(null===(n=this.persistence)||void 0===n||n.set_disabled(s)),(null===(t=this.sessionPersistence)||void 0===t?void 0:t.disabled)!==s&&(null===(i=this.sessionPersistence)||void 0===i||i.set_disabled(s))}},{key:"opt_in_capturing",value:function(e){var t;this.consent.optInOut(!0),this._sync_opt_out_with_persistence(),this.capture(null!==(t=null==e?void 0:e.captureEventName)&&void 0!==t?t:"$opt_in",null==e?void 0:e.captureProperties,{send_instantly:!0})}},{key:"opt_out_capturing",value:function(){this.consent.optInOut(!1),this._sync_opt_out_with_persistence()}},{key:"has_opted_in_capturing",value:function(){return this.consent.isOptedIn()}},{key:"has_opted_out_capturing",value:function(){return this.consent.isOptedOut()}},{key:"clear_opt_in_out_capturing",value:function(){this.consent.reset(),this._sync_opt_out_with_persistence()}},{key:"debug",value:function(e){!1===e?(null==C||C.console.log("You've disabled debug mode."),localStorage&&localStorage.removeItem("ph_debug"),this.set_config({debug:!1})):(null==C||C.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),localStorage&&localStorage.setItem("ph_debug","true"),this.set_config({debug:!0}))}}]),e}();!function(e,t){for(var n=0;n<t.length;n++)e.prototype[t[n]]=et(e.prototype[t[n]])}(iJ,["identify"]),(i1=i3||(i3={})).Popover="popover",i1.API="api",i1.Widget="widget",(i2=i5||(i5={})).Open="open",i2.MultipleChoice="multiple_choice",i2.SingleChoice="single_choice",i2.Rating="rating",i2.Link="link";var i0,i1,i2,i3,i5,i6,i8=(i6=iq[iY]=new iJ,function(){function e(){e.done||(e.done=!0,iK=!1,Y(iq,function(e){e._dom_loaded()}))}null!=D&&D.addEventListener&&("complete"===D.readyState?e():D.addEventListener("DOMContentLoaded",e,!1)),C&&eo(C,"load",e,!0)}(),i6),i4=n(2983),i9=(0,i4.createContext)({client:i8}),i7=function(){return(0,i4.useContext)(i9).client}},1772:function(e,t,n){"use strict";var i=n(5148);function r(){}function o(){}o.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,o,s){if(s!==i){var a=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:r};return n.PropTypes=n,n}},7862:function(e,t,n){e.exports=n(1772)()},5148:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},6841:function(e,t,n){"use strict";var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=n(2983),s=l(o),a=l(n(7862));function l(e){return e&&e.__esModule?e:{default:e}}var u={position:"absolute",top:0,left:0,visibility:"hidden",height:0,overflow:"scroll",whiteSpace:"pre"},c=["extraWidth","injectStyles","inputClassName","inputRef","inputStyle","minWidth","onAutosize","placeholderIsMinWidth"],d=function(e,t){t.style.fontSize=e.fontSize,t.style.fontFamily=e.fontFamily,t.style.fontWeight=e.fontWeight,t.style.fontStyle=e.fontStyle,t.style.letterSpacing=e.letterSpacing,t.style.textTransform=e.textTransform},h="undefined"!=typeof window&&!!window.navigator&&/MSIE |Trident\/|Edge\//.test(window.navigator.userAgent),p=function(){return h?"_"+Math.random().toString(36).substr(2,12):void 0},f=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.inputRef=function(e){n.input=e,"function"==typeof n.props.inputRef&&n.props.inputRef(e)},n.placeHolderSizerRef=function(e){n.placeHolderSizer=e},n.sizerRef=function(e){n.sizer=e},n.state={inputWidth:e.minWidth,inputId:e.id||p(),prevId:e.id},n}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,null,[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.id;return n!==t.prevId?{inputId:n||p(),prevId:n}:null}}]),r(t,[{key:"componentDidMount",value:function(){this.mounted=!0,this.copyInputStyles(),this.updateInputWidth()}},{key:"componentDidUpdate",value:function(e,t){t.inputWidth!==this.state.inputWidth&&"function"==typeof this.props.onAutosize&&this.props.onAutosize(this.state.inputWidth),this.updateInputWidth()}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"copyInputStyles",value:function(){if(this.mounted&&window.getComputedStyle){var e=this.input&&window.getComputedStyle(this.input);e&&(d(e,this.sizer),this.placeHolderSizer&&d(e,this.placeHolderSizer))}}},{key:"updateInputWidth",value:function(){if(this.mounted&&this.sizer&&void 0!==this.sizer.scrollWidth){var e=void 0;(e=(this.props.placeholder&&(!this.props.value||this.props.value&&this.props.placeholderIsMinWidth)?Math.max(this.sizer.scrollWidth,this.placeHolderSizer.scrollWidth)+2:this.sizer.scrollWidth+2)+("number"===this.props.type&&void 0===this.props.extraWidth?16:parseInt(this.props.extraWidth)||0))<this.props.minWidth&&(e=this.props.minWidth),e!==this.state.inputWidth&&this.setState({inputWidth:e})}}},{key:"getInput",value:function(){return this.input}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"renderStyles",value:function(){var e=this.props.injectStyles;return h&&e?s.default.createElement("style",{dangerouslySetInnerHTML:{__html:"input#"+this.state.inputId+"::-ms-clear {display: none;}"}}):null}},{key:"render",value:function(){var e=[this.props.defaultValue,this.props.value,""].reduce(function(e,t){return null!=e?e:t}),t=i({},this.props.style);t.display||(t.display="inline-block");var n=i({boxSizing:"content-box",width:this.state.inputWidth+"px"},this.props.inputStyle),r=function(e,t){var n={};for(var i in e)!(t.indexOf(i)>=0)&&Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}(this.props,[]);return c.forEach(function(e){return delete r[e]}),r.className=this.props.inputClassName,r.id=this.state.inputId,r.style=n,s.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),s.default.createElement("input",i({},r,{ref:this.inputRef})),s.default.createElement("div",{ref:this.sizerRef,style:u},e),this.props.placeholder?s.default.createElement("div",{ref:this.placeHolderSizerRef,style:u},this.props.placeholder):null)}}]),t}(o.Component);f.propTypes={className:a.default.string,defaultValue:a.default.any,extraWidth:a.default.oneOfType([a.default.number,a.default.string]),id:a.default.string,injectStyles:a.default.bool,inputClassName:a.default.string,inputRef:a.default.func,inputStyle:a.default.object,minWidth:a.default.oneOfType([a.default.number,a.default.string]),onAutosize:a.default.func,onChange:a.default.func,placeholder:a.default.string,placeholderIsMinWidth:a.default.bool,style:a.default.object,value:a.default.any},f.defaultProps={minWidth:1,injectStyles:!0},t.Z=f},4507:function(e,t){"use strict";/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var n="function"==typeof Symbol&&Symbol.for,i=n?Symbol.for("react.element"):60103,r=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,a=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,h=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,f=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,_=n?Symbol.for("react.responder"):60118,b=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case c:case d:case o:case a:case s:case p:return e;default:switch(e=e&&e.$$typeof){case u:case h:case g:case m:case l:return e;default:return t}}case r:return t}}}function x(e){return w(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=i,t.ForwardRef=h,t.Fragment=o,t.Lazy=g,t.Memo=m,t.Portal=r,t.Profiler=a,t.StrictMode=s,t.Suspense=p,t.isAsyncMode=function(e){return x(e)||w(e)===c},t.isConcurrentMode=x,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return w(e)===h},t.isFragment=function(e){return w(e)===o},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===r},t.isProfiler=function(e){return w(e)===a},t.isStrictMode=function(e){return w(e)===s},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===a||e===s||e===p||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===h||e.$$typeof===y||e.$$typeof===_||e.$$typeof===b||e.$$typeof===v)},t.typeOf=w},9415:function(e,t,n){"use strict";e.exports=n(4507)},5985:function(e,t,n){"use strict";function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}).apply(null,arguments)}n.d(t,{Z:function(){return w}});var r=n(2983),o=r.useLayoutEffect,s=function(e){var t=r.useRef(e);return o(function(){t.current=e}),t},a=function(e,t){if("function"==typeof e){e(t);return}e.current=t},l=function(e,t){var n=(0,r.useRef)();return(0,r.useCallback)(function(i){e.current=i,n.current&&a(n.current,null),n.current=t,t&&a(t,i)},[t])},u={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},c=function(e){Object.keys(u).forEach(function(t){e.style.setProperty(t,u[t],"important")})},d=null,h=function(e,t){var n=e.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?n+t.borderSize:n-t.paddingSize},p=function(){},f=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],m=!!document.documentElement.currentStyle,g=function(e){var t=window.getComputedStyle(e);if(null===t)return null;var n=f.reduce(function(e,n){return e[n]=t[n],e},{}),i=n.boxSizing;if(""===i)return null;m&&"border-box"===i&&(n.width=parseFloat(n.width)+parseFloat(n.borderRightWidth)+parseFloat(n.borderLeftWidth)+parseFloat(n.paddingRight)+parseFloat(n.paddingLeft)+"px");var r=parseFloat(n.paddingBottom)+parseFloat(n.paddingTop),o=parseFloat(n.borderBottomWidth)+parseFloat(n.borderTopWidth);return{sizingStyle:n,paddingSize:r,borderSize:o}};function v(e,t,n){var i=s(n);r.useLayoutEffect(function(){var n=function(e){return i.current(e)};if(e)return e.addEventListener(t,n),function(){return e.removeEventListener(t,n)}},[])}var y=function(e){v(window,"resize",e)},_=function(e){v(document.fonts,"loadingdone",e)},b=["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"],w=r.forwardRef(function(e,t){var n=e.cacheMeasurements,o=e.maxRows,s=e.minRows,a=e.onChange,u=void 0===a?p:a,f=e.onHeightChange,m=void 0===f?p:f,v=function(e,t){if(null==e)return{};var n={};for(var i in e)if(({}).hasOwnProperty.call(e,i)){if(t.indexOf(i)>=0)continue;n[i]=e[i]}return n}(e,b),w=void 0!==v.value,x=r.useRef(null),k=l(x,t),S=r.useRef(0),E=r.useRef(),T=function(){var e,t,i,r,a,l,u,p,f,v,y,_=x.current,b=n&&E.current?E.current:g(_);if(b){E.current=b;var w=(e=_.value||_.placeholder||"x",void 0===(t=s)&&(t=1),void 0===(i=o)&&(i=1/0),d||((d=document.createElement("textarea")).setAttribute("tabindex","-1"),d.setAttribute("aria-hidden","true"),c(d)),null===d.parentNode&&document.body.appendChild(d),r=b.paddingSize,a=b.borderSize,u=(l=b.sizingStyle).boxSizing,Object.keys(l).forEach(function(e){d.style[e]=l[e]}),c(d),d.value=e,p=h(d,b),d.value=e,p=h(d,b),d.value="x",v=(f=d.scrollHeight-r)*t,"border-box"===u&&(v=v+r+a),p=Math.max(v,p),y=f*i,"border-box"===u&&(y=y+r+a),[p=Math.min(y,p),f]),k=w[0],T=w[1];S.current!==k&&(S.current=k,_.style.setProperty("height",k+"px","important"),m(k,{rowHeight:T}))}};return r.useLayoutEffect(T),y(T),_(T),r.createElement("textarea",i({},v,{onChange:function(e){w||T(),u(e)},ref:k}))})},6736:function(e,t,n){"use strict";let i;n.d(t,{ZP:function(){return d}});var r=n(2983);"undefined"!=typeof window?i=window:"undefined"!=typeof self?i=self:i=n.g;let o=null,s=null,a=i.clearTimeout,l=i.setTimeout,u=i.cancelAnimationFrame||i.mozCancelAnimationFrame||i.webkitCancelAnimationFrame,c=i.requestAnimationFrame||i.mozRequestAnimationFrame||i.webkitRequestAnimationFrame;null==u||null==c?(o=a,s=function(e){return l(e,20)}):(o=function([e,t]){u(e),a(t)},s=function(e){let t=c(function(){a(n),e()}),n=l(function(){u(t),e()},20);return[t,n]});class d extends r.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;let{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){let i=window.getComputedStyle(this._parentNode)||{},r=parseFloat(i.paddingLeft||"0"),o=parseFloat(i.paddingRight||"0"),s=parseFloat(i.paddingTop||"0"),a=parseFloat(i.paddingBottom||"0"),l=this._parentNode.getBoundingClientRect(),u=l.height-s-a,c=l.width-r-o,d=this._parentNode.offsetHeight-s-a,h=this._parentNode.offsetWidth-r-o;(e||this.state.height===d&&this.state.scaledHeight===u)&&(t||this.state.width===h&&this.state.scaledWidth===c)||(this.setState({height:d,width:h,scaledHeight:u,scaledWidth:c}),"function"==typeof n&&n({height:d,scaledHeight:u,scaledWidth:c,width:h}))}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){let{nonce:e}=this.props,t=this._autoSizer?this._autoSizer.parentNode:null;if(null!=t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){this._parentNode=t;let n=t.ownerDocument.defaultView.ResizeObserver;null!=n?(this._resizeObserver=new n(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(t)):(this._detectElementResize=function(e){let t,n,r,a,l,u,c;let d="undefined"!=typeof document&&document.attachEvent;if(!d){u=function(e){let t=e.__resizeTriggers__,n=t.firstElementChild,i=t.lastElementChild,r=n.firstElementChild;i.scrollLeft=i.scrollWidth,i.scrollTop=i.scrollHeight,r.style.width=n.offsetWidth+1+"px",r.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},l=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},c=function(e){if(e.target.className&&"function"==typeof e.target.className.indexOf&&0>e.target.className.indexOf("contract-trigger")&&0>e.target.className.indexOf("expand-trigger"))return;let t=this;u(this),this.__resizeRAF__&&o(this.__resizeRAF__),this.__resizeRAF__=s(function(){l(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach(function(n){n.call(t,e)}))})};let e=!1,i="";r="animationstart";let d="Webkit Moz O ms".split(" "),h="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" ");{let t=document.createElement("fakeelement");if(void 0!==t.style.animationName&&(e=!0),!1===e){for(let n=0;n<d.length;n++)if(void 0!==t.style[d[n]+"AnimationName"]){i="-"+(0,d[n]).toLowerCase()+"-",r=h[n],e=!0;break}}}t="@"+i+"keyframes "+(n="resizeanim")+" { from { opacity: 0; } to { opacity: 0; } } ",a=i+"animation: 1ms "+n+"; "}let h=function(n){if(!n.getElementById("detectElementResize")){let i=(t||"")+".resize-triggers { "+(a||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',r=n.head||n.getElementsByTagName("head")[0],o=n.createElement("style");o.id="detectElementResize",o.type="text/css",null!=e&&o.setAttribute("nonce",e),o.styleSheet?o.styleSheet.cssText=i:o.appendChild(n.createTextNode(i)),r.appendChild(o)}};return{addResizeListener:function(e,t){if(d)e.attachEvent("onresize",t);else{if(!e.__resizeTriggers__){let t=e.ownerDocument,o=i.getComputedStyle(e);o&&"static"===o.position&&(e.style.position="relative"),h(t),e.__resizeLast__={},e.__resizeListeners__=[],(e.__resizeTriggers__=t.createElement("div")).className="resize-triggers";let s=t.createElement("div");s.className="expand-trigger",s.appendChild(t.createElement("div"));let a=t.createElement("div");a.className="contract-trigger",e.__resizeTriggers__.appendChild(s),e.__resizeTriggers__.appendChild(a),e.appendChild(e.__resizeTriggers__),u(e),e.addEventListener("scroll",c,!0),r&&(e.__resizeTriggers__.__animationListener__=function(t){t.animationName===n&&u(e)},e.__resizeTriggers__.addEventListener(r,e.__resizeTriggers__.__animationListener__))}e.__resizeListeners__.push(t)}},removeResizeListener:function(e,t){if(d)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",c,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(r,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}(e),this._detectElementResize.addResizeListener(t,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){let{children:e,defaultHeight:t,defaultWidth:n,disableHeight:i=!1,disableWidth:o=!1,doNotBailOutOnEmptyChildren:s=!1,nonce:a,onResize:l,style:u={},tagName:c="div",...d}=this.props,{height:h,scaledHeight:p,scaledWidth:f,width:m}=this.state,g={overflow:"visible"},v={},y=!1;return i||(0===h&&(y=!0),g.height=0,v.height=h,v.scaledHeight=p),o||(0===m&&(y=!0),g.width=0,v.width=m,v.scaledWidth=f),s&&(y=!1),(0,r.createElement)(c,{ref:this._setRef,style:{...g,...u},...d},!y&&e(v))}}},1865:function(e,t){var n;/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/!function(){"use strict";var i={}.hasOwnProperty;function r(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=o(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return r.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)i.call(e,n)&&e[n]&&(t=o(t,n));return t}(n)))}return e}function o(e,t){return t?e?e+" "+t:e+t:e}e.exports?(r.default=r,e.exports=r):void 0!==(n=(function(){return r}).apply(t,[]))&&(e.exports=n)}()},7829:function(e,t,n){"use strict";function i(){for(var e,t,n=0,i="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=function e(t){var n,i,r="";if("string"==typeof t||"number"==typeof t)r+=t;else if("object"==typeof t){if(Array.isArray(t)){var o=t.length;for(n=0;n<o;n++)t[n]&&(i=e(t[n]))&&(r&&(r+=" "),r+=i)}else for(i in t)t[i]&&(r&&(r+=" "),r+=i)}return r}(e))&&(i&&(i+=" "),i+=t);return i}n.d(t,{W:function(){return i}})},3515:function(e,t,n){"use strict";n.d(t,{M:function(){return y}});var i=n(7458),r=n(2983),o=n(7974);function s(){let e=(0,r.useRef)(!1);return(0,o.L)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var a=n(5009),l=n(5873),u=n(6730),c=n(4600);class d extends r.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function h({children:e,isPresent:t}){let n=(0,r.useId)(),o=(0,r.useRef)(null),s=(0,r.useRef)({width:0,height:0,top:0,left:0}),{nonce:a}=(0,r.useContext)(c._);return(0,r.useInsertionEffect)(()=>{let{width:e,height:i,top:r,left:l}=s.current;if(t||!o.current||!e||!i)return;o.current.dataset.motionPopId=n;let u=document.createElement("style");return a&&(u.nonce=a),document.head.appendChild(u),u.sheet&&u.sheet.insertRule(`
          [data-motion-pop-id="${n}"] {
            position: absolute !important;
            width: ${e}px !important;
            height: ${i}px !important;
            top: ${r}px !important;
            left: ${l}px !important;
          }
        `),()=>{document.head.removeChild(u)}},[t]),(0,i.jsx)(d,{isPresent:t,childRef:o,sizeRef:s,children:r.cloneElement(e,{ref:o})})}let p=({children:e,initial:t,isPresent:n,onExitComplete:o,custom:s,presenceAffectsLayout:a,mode:c})=>{let d=(0,u.h)(f),p=(0,r.useId)(),m=(0,r.useMemo)(()=>({id:p,initial:t,isPresent:n,custom:s,onExitComplete:e=>{for(let t of(d.set(e,!0),d.values()))if(!t)return;o&&o()},register:e=>(d.set(e,!1),()=>d.delete(e))}),a?[Math.random()]:[n]);return(0,r.useMemo)(()=>{d.forEach((e,t)=>d.set(t,!1))},[n]),r.useEffect(()=>{n||d.size||!o||o()},[n]),"popLayout"===c&&(e=(0,i.jsx)(h,{isPresent:n,children:e})),(0,i.jsx)(l.O.Provider,{value:m,children:e})};function f(){return new Map}var m=n(8513),g=n(120);let v=e=>e.key||"",y=({children:e,custom:t,initial:n=!0,onExitComplete:l,exitBeforeEnter:u,presenceAffectsLayout:c=!0,mode:d="sync"})=>{var h;(0,g.k)(!u,"Replace exitBeforeEnter with mode='wait'");let f=(0,r.useContext)(m.p).forceRender||function(){let e=s(),[t,n]=(0,r.useState)(0),i=(0,r.useCallback)(()=>{e.current&&n(t+1)},[t]);return[(0,r.useCallback)(()=>a.Wi.postRender(i),[i]),t]}()[0],y=s(),_=function(e){let t=[];return r.Children.forEach(e,e=>{(0,r.isValidElement)(e)&&t.push(e)}),t}(e),b=_,w=(0,r.useRef)(new Map).current,x=(0,r.useRef)(b),k=(0,r.useRef)(new Map).current,S=(0,r.useRef)(!0);if((0,o.L)(()=>{S.current=!1,function(e,t){e.forEach(e=>{let n=v(e);t.set(n,e)})}(_,k),x.current=b}),h=()=>{S.current=!0,k.clear(),w.clear()},(0,r.useEffect)(()=>()=>h(),[]),S.current)return(0,i.jsx)(i.Fragment,{children:b.map(e=>(0,i.jsx)(p,{isPresent:!0,initial:!!n&&void 0,presenceAffectsLayout:c,mode:d,children:e},v(e)))});b=[...b];let E=x.current.map(v),T=_.map(v),P=E.length;for(let e=0;e<P;e++){let t=E[e];-1!==T.indexOf(t)||w.has(t)||w.set(t,void 0)}return"wait"===d&&w.size&&(b=[]),w.forEach((e,n)=>{if(-1!==T.indexOf(n))return;let r=k.get(n);if(!r)return;let o=E.indexOf(n),s=e;s||(s=(0,i.jsx)(p,{isPresent:!1,onExitComplete:()=>{w.delete(n);let e=Array.from(k.keys()).filter(e=>!T.includes(e));if(e.forEach(e=>k.delete(e)),x.current=_.filter(t=>{let i=v(t);return i===n||e.includes(i)}),!w.size){if(!1===y.current)return;f(),l&&l()}},custom:t,presenceAffectsLayout:c,mode:d,children:r},v(r)),w.set(n,s)),b.splice(o,0,s)}),b=b.map(e=>{let t=e.key;return w.has(t)?e:(0,i.jsx)(p,{isPresent:!0,presenceAffectsLayout:c,mode:d,children:e},v(e))}),(0,i.jsx)(i.Fragment,{children:w.size?b:b.map(e=>(0,r.cloneElement)(e))})}},8513:function(e,t,n){"use strict";n.d(t,{p:function(){return i}});let i=(0,n(2983).createContext)({})},4600:function(e,t,n){"use strict";n.d(t,{_:function(){return i}});let i=(0,n(2983).createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"})},5873:function(e,t,n){"use strict";n.d(t,{O:function(){return i}});let i=(0,n(2983).createContext)(null)},7168:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var i=n(9106);class r{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){let t=this.order.indexOf(e);-1!==t&&(this.order.splice(t,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}let o=["read","resolveKeyframes","update","preRender","render","postRender"];function s(e,t){let n=!1,s=!0,a={delta:0,timestamp:0,isProcessing:!1},l=o.reduce((e,t)=>(e[t]=function(e){let t=new r,n=new r,i=0,o=!1,s=!1,a=new WeakSet,l={schedule:(e,r=!1,s=!1)=>{let l=s&&o,u=l?t:n;return r&&a.add(e),u.add(e)&&l&&o&&(i=t.order.length),e},cancel:e=>{n.remove(e),a.delete(e)},process:r=>{if(o){s=!0;return}if(o=!0,[t,n]=[n,t],n.clear(),i=t.order.length)for(let n=0;n<i;n++){let i=t.order[n];a.has(i)&&(l.schedule(i),e()),i(r)}o=!1,s&&(s=!1,l.process(r))}};return l}(()=>n=!0),e),{}),u=e=>{l[e].process(a)},c=()=>{let r=i.c.useManualTiming?a.timestamp:performance.now();n=!1,a.delta=s?1e3/60:Math.max(Math.min(r-a.timestamp,40),1),a.timestamp=r,a.isProcessing=!0,o.forEach(u),a.isProcessing=!1,n&&t&&(s=!1,e(c))},d=()=>{n=!0,s=!0,a.isProcessing||e(c)};return{schedule:o.reduce((e,t)=>{let i=l[t];return e[t]=(e,t=!1,r=!1)=>(n||d(),i.schedule(e,t,r)),e},{}),cancel:e=>o.forEach(t=>l[t].cancel(e)),state:a,steps:l}}},5009:function(e,t,n){"use strict";n.d(t,{Pn:function(){return o},S6:function(){return a},Wi:function(){return r},frameData:function(){return s}});var i=n(8921);let{schedule:r,cancel:o,state:s,steps:a}=(0,n(7168).Z)("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:i.Z,!0)},1745:function(e,t,n){"use strict";let i;n.d(t,{E:function(){return oe}});var r,o=n(7458),s=n(2983),a=n(4600);let l=(0,s.createContext)({});var u=n(5873),c=n(7974);let d=(0,s.createContext)({strict:!1}),h=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),p="data-"+h("framerAppearId"),{schedule:f,cancel:m}=(0,n(7168).Z)(queueMicrotask,!1);function g(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function v(e){return"string"==typeof e||Array.isArray(e)}function y(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}let _=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],b=["initial",..._];function w(e){return y(e.animate)||b.some(t=>v(e[t]))}function x(e){return!!(w(e)||e.variants)}function k(e){return Array.isArray(e)?e.join(" "):e}let S={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},E={};for(let e in S)E[e]={isEnabled:t=>S[e].some(e=>!!t[e])};var T=n(8280),P=n(8513);let R=(0,s.createContext)({}),A=Symbol.for("motionComponentSymbol"),C=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function F(e){if("string"!=typeof e||e.includes("-"));else if(C.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}let O={},L=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],I=new Set(L);function M(e,{layout:t,layoutId:n}){return I.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!O[e]||"opacity"===e)}let D=e=>!!(e&&e.getVelocity),N={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},$=L.length,j=e=>t=>"string"==typeof t&&t.startsWith(e),z=j("--"),V=j("var(--"),B=e=>!!V(e)&&W.test(e.split("/*")[0].trim()),W=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,H=(e,t)=>t&&"number"==typeof e?t.transform(e):e,U=(e,t,n)=>n>t?t:n<e?e:n,q={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},G={...q,transform:e=>U(0,1,e)},Y={...q,default:1},K=e=>Math.round(1e5*e)/1e5,X=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,Z=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,Q=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function J(e){return"string"==typeof e}let ee=e=>({test:t=>J(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),et=ee("deg"),en=ee("%"),ei=ee("px"),er=ee("vh"),eo=ee("vw"),es={...en,parse:e=>en.parse(e)/100,transform:e=>en.transform(100*e)},ea={...q,transform:Math.round},el={borderWidth:ei,borderTopWidth:ei,borderRightWidth:ei,borderBottomWidth:ei,borderLeftWidth:ei,borderRadius:ei,radius:ei,borderTopLeftRadius:ei,borderTopRightRadius:ei,borderBottomRightRadius:ei,borderBottomLeftRadius:ei,width:ei,maxWidth:ei,height:ei,maxHeight:ei,size:ei,top:ei,right:ei,bottom:ei,left:ei,padding:ei,paddingTop:ei,paddingRight:ei,paddingBottom:ei,paddingLeft:ei,margin:ei,marginTop:ei,marginRight:ei,marginBottom:ei,marginLeft:ei,rotate:et,rotateX:et,rotateY:et,rotateZ:et,scale:Y,scaleX:Y,scaleY:Y,scaleZ:Y,skew:et,skewX:et,skewY:et,distance:ei,translateX:ei,translateY:ei,translateZ:ei,x:ei,y:ei,z:ei,perspective:ei,transformPerspective:ei,opacity:G,originX:es,originY:es,originZ:ei,zIndex:ea,backgroundPositionX:ei,backgroundPositionY:ei,fillOpacity:G,strokeOpacity:G,numOctaves:ea};function eu(e,t,n,i){let{style:r,vars:o,transform:s,transformOrigin:a}=e,l=!1,u=!1,c=!0;for(let e in t){let n=t[e];if(z(e)){o[e]=n;continue}let i=el[e],d=H(n,i);if(I.has(e)){if(l=!0,s[e]=d,!c)continue;n!==(i.default||0)&&(c=!1)}else e.startsWith("origin")?(u=!0,a[e]=d):r[e]=d}if(!t.transform&&(l||i?r.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},i,r){let o="";for(let t=0;t<$;t++){let n=L[t];if(void 0!==e[n]){let t=N[n]||n;o+=`${t}(${e[n]}) `}}return t&&!e.z&&(o+="translateZ(0)"),o=o.trim(),r?o=r(e,i?"":o):n&&i&&(o="none"),o}(e.transform,n,c,i):r.transform&&(r.transform="none")),u){let{originX:e="50%",originY:t="50%",originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}let ec=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ed(e,t,n){for(let i in t)D(t[i])||M(i,n)||(e[i]=t[i])}let eh=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function ep(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||eh.has(e)}let ef=e=>!ep(e);try{(r=require("@emotion/is-prop-valid").default)&&(ef=e=>e.startsWith("on")?!ep(e):r(e))}catch(e){}function em(e,t,n){return"string"==typeof e?e:ei.transform(t+n*e)}let eg={offset:"stroke-dashoffset",array:"stroke-dasharray"},ev={offset:"strokeDashoffset",array:"strokeDasharray"};function ey(e,{attrX:t,attrY:n,attrScale:i,originX:r,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},c,d,h){if(eu(e,u,c,h),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:p,style:f,dimensions:m}=e;p.transform&&(m&&(f.transform=p.transform),delete p.transform),m&&(void 0!==r||void 0!==o||f.transform)&&(f.transformOrigin=function(e,t,n){let i=em(t,e.x,e.width),r=em(n,e.y,e.height);return`${i} ${r}`}(m,void 0!==r?r:.5,void 0!==o?o:.5)),void 0!==t&&(p.x=t),void 0!==n&&(p.y=n),void 0!==i&&(p.scale=i),void 0!==s&&function(e,t,n=1,i=0,r=!0){e.pathLength=1;let o=r?eg:ev;e[o.offset]=ei.transform(-i);let s=ei.transform(t),a=ei.transform(n);e[o.array]=`${s} ${a}`}(p,s,a,l,!1)}let e_=()=>({...ec(),attrs:{}}),eb=e=>"string"==typeof e&&"svg"===e.toLowerCase();function ew(e,{style:t,vars:n},i,r){for(let o in Object.assign(e.style,t,r&&r.getProjectionStyles(i)),n)e.style.setProperty(o,n[o])}let ex=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function ek(e,t,n,i){for(let n in ew(e,t,void 0,i),t.attrs)e.setAttribute(ex.has(n)?n:h(n),t.attrs[n])}function eS(e,t,n){var i;let{style:r}=e,o={};for(let s in r)(D(r[s])||t.style&&D(t.style[s])||M(s,e)||(null===(i=null==n?void 0:n.getValue(s))||void 0===i?void 0:i.liveStyle)!==void 0)&&(o[s]=r[s]);return o}function eE(e,t,n){let i=eS(e,t,n);for(let n in e)(D(e[n])||D(t[n]))&&(i[-1!==L.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return i}function eT(e){let t=[{},{}];return null==e||e.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function eP(e,t,n,i){if("function"==typeof t){let[r,o]=eT(i);t=t(void 0!==n?n:e.custom,r,o)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[r,o]=eT(i);t=t(void 0!==n?n:e.custom,r,o)}return t}var eR=n(6730);let eA=e=>Array.isArray(e),eC=e=>!!(e&&"object"==typeof e&&e.mix&&e.toValue),eF=e=>eA(e)?e[e.length-1]||0:e;function eO(e){let t=D(e)?e.get():e;return eC(t)?t.toValue():t}let eL=e=>(t,n)=>{let i=(0,s.useContext)(l),r=(0,s.useContext)(u.O),o=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},i,r,o){let s={latestValues:function(e,t,n,i){let r={},o=i(e,{});for(let e in o)r[e]=eO(o[e]);let{initial:s,animate:a}=e,l=w(e),u=x(e);t&&u&&!l&&!1!==e.inherit&&(void 0===s&&(s=t.initial),void 0===a&&(a=t.animate));let c=!!n&&!1===n.initial,d=(c=c||!1===s)?a:s;return d&&"boolean"!=typeof d&&!y(d)&&(Array.isArray(d)?d:[d]).forEach(t=>{let n=eP(e,t);if(!n)return;let{transitionEnd:i,transition:o,...s}=n;for(let e in s){let t=s[e];if(Array.isArray(t)){let e=c?t.length-1:0;t=t[e]}null!==t&&(r[e]=t)}for(let e in i)r[e]=i[e]}),r}(i,r,o,e),renderState:t()};return n&&(s.mount=e=>n(i,e,s)),s})(e,t,i,r);return n?o():(0,eR.h)(o)};var eI=n(5009);let eM={useVisualState:eL({scrapeMotionValuesFromProps:eE,createRenderState:e_,onMount:(e,t,{renderState:n,latestValues:i})=>{eI.Wi.read(()=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}}),eI.Wi.render(()=>{ey(n,i,{enableHardwareAcceleration:!1},eb(t.tagName),e.transformTemplate),ek(t,n)})}})},eD={useVisualState:eL({scrapeMotionValuesFromProps:eS,createRenderState:ec})};function eN(e,t,n,i={passive:!0}){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n)}let e$=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function ej(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}let ez=e=>t=>e$(t)&&e(t,ej(t));function eV(e,t,n,i){return eN(e,t,ez(n),i)}let eB=(e,t)=>n=>t(e(n)),eW=(...e)=>e.reduce(eB);function eH(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}let eU=eH("dragHorizontal"),eq=eH("dragVertical");function eG(e){let t=!1;if("y"===e)t=eq();else if("x"===e)t=eU();else{let e=eU(),n=eq();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function eY(){let e=eG(!0);return!e||(e(),!1)}class eK{constructor(e){this.isMounted=!1,this.node=e}update(){}}function eX(e,t){let n=t?"onHoverStart":"onHoverEnd";return eV(e.current,t?"pointerenter":"pointerleave",(i,r)=>{if("touch"===i.pointerType||eY())return;let o=e.getProps();e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",t);let s=o[n];s&&eI.Wi.postRender(()=>s(i,r))},{passive:!e.getProps()[n]})}class eZ extends eK{mount(){this.unmount=eW(eX(this.node,!0),eX(this.node,!1))}unmount(){}}class eQ extends eK{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=eW(eN(this.node.current,"focus",()=>this.onFocus()),eN(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let eJ=(e,t)=>!!t&&(e===t||eJ(e,t.parentElement));var e0=n(8921);function e1(e,t){if(!t)return;let n=new PointerEvent("pointer"+e);t(n,ej(n))}class e2 extends eK{constructor(){super(...arguments),this.removeStartListeners=e0.Z,this.removeEndListeners=e0.Z,this.removeAccessibleListeners=e0.Z,this.startPointerPress=(e,t)=>{if(this.isPressing)return;this.removeEndListeners();let n=this.node.getProps(),i=eV(window,"pointerup",(e,t)=>{if(!this.checkPressEnd())return;let{onTap:n,onTapCancel:i,globalTapTarget:r}=this.node.getProps(),o=r||eJ(this.node.current,e.target)?n:i;o&&eI.Wi.update(()=>o(e,t))},{passive:!(n.onTap||n.onPointerUp)}),r=eV(window,"pointercancel",(e,t)=>this.cancelPress(e,t),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=eW(i,r),this.startPress(e,t)},this.startAccessiblePress=()=>{let e=eN(this.node.current,"keydown",e=>{"Enter"!==e.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=eN(this.node.current,"keyup",e=>{"Enter"===e.key&&this.checkPressEnd()&&e1("up",(e,t)=>{let{onTap:n}=this.node.getProps();n&&eI.Wi.postRender(()=>n(e,t))})}),e1("down",(e,t)=>{this.startPress(e,t)}))}),t=eN(this.node.current,"blur",()=>{this.isPressing&&e1("cancel",(e,t)=>this.cancelPress(e,t))});this.removeAccessibleListeners=eW(e,t)}}startPress(e,t){this.isPressing=!0;let{onTapStart:n,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&eI.Wi.postRender(()=>n(e,t))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!eY()}cancelPress(e,t){if(!this.checkPressEnd())return;let{onTapCancel:n}=this.node.getProps();n&&eI.Wi.postRender(()=>n(e,t))}mount(){let e=this.node.getProps(),t=eV(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=eN(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=eW(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}let e3=new WeakMap,e5=new WeakMap,e6=e=>{let t=e3.get(e.target);t&&t(e)},e8=e=>{e.forEach(e6)},e4={some:0,all:1};class e9 extends eK{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:i="some",once:r}=e,o={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof i?i:e4[i]};return function(e,t,n){let i=function({root:e,...t}){let n=e||document;e5.has(n)||e5.set(n,{});let i=e5.get(n),r=JSON.stringify(t);return i[r]||(i[r]=new IntersectionObserver(e8,{root:e,...t})),i[r]}(t);return e3.set(e,n),i.observe(e),()=>{e3.delete(e),i.unobserve(e)}}(this.node.current,o,e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,r&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:n,onViewportLeave:i}=this.node.getProps(),o=t?n:i;o&&o(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}function e7(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}function te(e,t,n){let i=e.getProps();return eP(i,t,void 0!==n?n:i.custom,e)}let tt=e=>1e3*e,tn=e=>e/1e3,ti={type:"spring",stiffness:500,damping:25,restSpeed:10},tr=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),to={type:"keyframes",duration:.8},ts={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ta=(e,{keyframes:t})=>t.length>2?to:I.has(e)?e.startsWith("scale")?tr(t[1]):ti:ts;function tl(e,t){return e[t]||e.default||e}var tu=n(9106);let tc={current:!1},td=e=>null!==e;function th(e,{repeat:t,repeatType:n="loop"},i){let r=e.filter(td),o=t&&"loop"!==n&&t%2==1?0:r.length-1;return o&&void 0!==i?i:r[o]}function tp(){i=void 0}let tf={now:()=>(void 0===i&&tf.set(eI.frameData.isProcessing||tu.c.useManualTiming?eI.frameData.timestamp:performance.now()),i),set:e=>{i=e,queueMicrotask(tp)}},tm=e=>/^0[^.\s]+$/u.test(e);var tg=n(120);let tv=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),ty=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,t_=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),tb=e=>e===q||e===ei,tw=(e,t)=>parseFloat(e.split(", ")[t]),tx=(e,t)=>(n,{transform:i})=>{if("none"===i||!i)return 0;let r=i.match(/^matrix3d\((.+)\)$/u);if(r)return tw(r[1],t);{let t=i.match(/^matrix\((.+)\)$/u);return t?tw(t[1],e):0}},tk=new Set(["x","y","z"]),tS=L.filter(e=>!tk.has(e)),tE={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:tx(4,13),y:tx(5,14)};tE.translateX=tE.x,tE.translateY=tE.y;let tT=e=>t=>t.test(e),tP=[q,ei,en,et,eo,er,{test:e=>"auto"===e,parse:e=>e}],tR=e=>tP.find(tT(e)),tA=new Set,tC=!1,tF=!1;function tO(){if(tF){let e=Array.from(tA).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=function(e){let t=[];return tS.forEach(n=>{let i=e.getValue(n);void 0!==i&&(t.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),t}(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{var i;null===(i=e.getValue(t))||void 0===i||i.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}tF=!1,tC=!1,tA.forEach(e=>e.complete()),tA.clear()}function tL(){tA.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(tF=!0)})}class tI{constructor(e,t,n,i,r,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=i,this.element=r,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(tA.add(this),tC||(tC=!0,eI.Wi.read(tL),eI.Wi.resolveKeyframes(tO))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:i}=this;for(let r=0;r<e.length;r++)if(null===e[r]){if(0===r){let r=null==i?void 0:i.get(),o=e[e.length-1];if(void 0!==r)e[0]=r;else if(n&&t){let i=n.readValue(t,o);null!=i&&(e[0]=i)}void 0===e[0]&&(e[0]=o),i&&void 0===r&&i.set(e[0])}else e[r]=e[r-1]}}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),tA.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,tA.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}let tM=(e,t)=>n=>!!(J(n)&&Q.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),tD=(e,t,n)=>i=>{if(!J(i))return i;let[r,o,s,a]=i.match(X);return{[e]:parseFloat(r),[t]:parseFloat(o),[n]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},tN=e=>U(0,255,e),t$={...q,transform:e=>Math.round(tN(e))},tj={test:tM("rgb","red"),parse:tD("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:i=1})=>"rgba("+t$.transform(e)+", "+t$.transform(t)+", "+t$.transform(n)+", "+K(G.transform(i))+")"},tz={test:tM("#"),parse:function(e){let t="",n="",i="",r="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),i=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),i=e.substring(3,4),r=e.substring(4,5),t+=t,n+=n,i+=i,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:r?parseInt(r,16)/255:1}},transform:tj.transform},tV={test:tM("hsl","hue"),parse:tD("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:i=1})=>"hsla("+Math.round(e)+", "+en.transform(K(t))+", "+en.transform(K(n))+", "+K(G.transform(i))+")"},tB={test:e=>tj.test(e)||tz.test(e)||tV.test(e),parse:e=>tj.test(e)?tj.parse(e):tV.test(e)?tV.parse(e):tz.parse(e),transform:e=>J(e)?e:e.hasOwnProperty("red")?tj.transform(e):tV.transform(e)},tW="number",tH="color",tU=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function tq(e){let t=e.toString(),n=[],i={color:[],number:[],var:[]},r=[],o=0,s=t.replace(tU,e=>(tB.test(e)?(i.color.push(o),r.push(tH),n.push(tB.parse(e))):e.startsWith("var(")?(i.var.push(o),r.push("var"),n.push(e)):(i.number.push(o),r.push(tW),n.push(parseFloat(e))),++o,"${}")).split("${}");return{values:n,split:s,indexes:i,types:r}}function tG(e){return tq(e).values}function tY(e){let{split:t,types:n}=tq(e),i=t.length;return e=>{let r="";for(let o=0;o<i;o++)if(r+=t[o],void 0!==e[o]){let t=n[o];t===tW?r+=K(e[o]):t===tH?r+=tB.transform(e[o]):r+=e[o]}return r}}let tK=e=>"number"==typeof e?0:e,tX={test:function(e){var t,n;return isNaN(e)&&J(e)&&((null===(t=e.match(X))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(Z))||void 0===n?void 0:n.length)||0)>0},parse:tG,createTransformer:tY,getAnimatableNone:function(e){let t=tG(e);return tY(e)(t.map(tK))}},tZ=new Set(["brightness","contrast","saturate","opacity"]);function tQ(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[i]=n.match(X)||[];if(!i)return e;let r=n.replace(i,""),o=tZ.has(t)?1:0;return i!==n&&(o*=100),t+"("+o+r+")"}let tJ=/\b([a-z-]*)\(.*?\)/gu,t0={...tX,getAnimatableNone:e=>{let t=e.match(tJ);return t?t.map(tQ).join(" "):e}},t1={...el,color:tB,backgroundColor:tB,outlineColor:tB,fill:tB,stroke:tB,borderColor:tB,borderTopColor:tB,borderRightColor:tB,borderBottomColor:tB,borderLeftColor:tB,filter:t0,WebkitFilter:t0},t2=e=>t1[e];function t3(e,t){let n=t2(e);return n!==t0&&(n=tX),n.getAnimatableNone?n.getAnimatableNone(t):void 0}let t5=new Set(["auto","none","0"]);class t6 extends tI{constructor(e,t,n,i){super(e,t,n,i,null==i?void 0:i.owner,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let i=e[n];if("string"==typeof i&&B(i=i.trim())){let r=function e(t,n,i=1){(0,tg.k)(i<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[r,o]=function(e){let t=ty.exec(e);if(!t)return[,];let[,n,i,r]=t;return[`--${null!=n?n:i}`,r]}(t);if(!r)return;let s=window.getComputedStyle(n).getPropertyValue(r);if(s){let e=s.trim();return tv(e)?parseFloat(e):e}return B(o)?e(o,n,i+1):o}(i,t.current);void 0!==r&&(e[n]=r),n===e.length-1&&(this.finalKeyframe=i)}}if(this.resolveNoneKeyframes(),!t_.has(n)||2!==e.length)return;let[i,r]=e,o=tR(i),s=tR(r);if(o!==s){if(tb(o)&&tb(s))for(let t=0;t<e.length;t++){let n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else this.needsMeasurement=!0}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++){var i;("number"==typeof(i=e[t])?0===i:null===i||"none"===i||"0"===i||tm(i))&&n.push(t)}n.length&&function(e,t,n){let i,r=0;for(;r<e.length&&!i;){let t=e[r];"string"==typeof t&&!t5.has(t)&&tq(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=t3(n,i)}(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=tE[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let i=t[t.length-1];void 0!==i&&e.getValue(n,i).jump(i,!1)}measureEndState(){var e;let{element:t,name:n,unresolvedKeyframes:i}=this;if(!t.current)return;let r=t.getValue(n);r&&r.jump(this.measuredOrigin,!1);let o=i.length-1,s=i[o];i[o]=tE[n](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),(null===(e=this.removedTransforms)||void 0===e?void 0:e.length)&&this.removedTransforms.forEach(([e,n])=>{t.getValue(e).set(n)}),this.resolveNoneKeyframes()}}function t8(e){let t;return()=>(void 0===t&&(t=e()),t)}let t4=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(tX.test(e)||"0"===e)&&!e.startsWith("url("));class t9{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o="loop",...s}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.options={autoplay:e,delay:t,type:n,repeat:i,repeatDelay:r,repeatType:o,...s},this.updateFinishedPromise()}get resolved(){return this._resolved||this.hasAttemptedResolve||(tL(),tO()),this._resolved}onKeyframesResolved(e,t){this.hasAttemptedResolve=!0;let{name:n,type:i,velocity:r,delay:o,onComplete:s,onUpdate:a,isGenerator:l}=this.options;if(!l&&!function(e,t,n,i){let r=e[0];if(null===r)return!1;if("display"===t||"visibility"===t)return!0;let o=e[e.length-1],s=t4(r,t),a=t4(o,t);return(0,tg.K)(s===a,`You are trying to animate ${t} from "${r}" to "${o}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${o} via the \`style\` property.`),!!s&&!!a&&(function(e){let t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||"spring"===n&&i)}(e,n,i,r)){if(tc.current||!o){null==a||a(th(e,this.options,t)),null==s||s(),this.resolveFinishedPromise();return}this.options.duration=0}let u=this.initPlayback(e,t);!1!==u&&(this._resolved={keyframes:e,finalKeyframe:t,...u},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}function t7(e,t,n){var i,r;let o=Math.max(t-5,0);return i=n-e(o),(r=t-o)?1e3/r*i:0}function ne(e,t){return e*Math.sqrt(1-t*t)}let nt=["duration","bounce"],nn=["stiffness","damping","mass"];function ni(e,t){return t.some(t=>void 0!==e[t])}function nr({keyframes:e,restDelta:t,restSpeed:n,...i}){let r;let o=e[0],s=e[e.length-1],a={done:!1,value:o},{stiffness:l,damping:u,mass:c,duration:d,velocity:h,isResolvedFromDuration:p}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!ni(e,nn)&&ni(e,nt)){let n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:i=1}){let r,o;(0,tg.K)(e<=tt(10),"Spring duration must be 10 seconds or less");let s=1-t;s=U(.05,1,s),e=U(.01,10,tn(e)),s<1?(r=t=>{let i=t*s,r=i*e;return .001-(i-n)/ne(t,s)*Math.exp(-r)},o=t=>{let i=t*s*e,o=Math.pow(s,2)*Math.pow(t,2)*e,a=Math.exp(-i),l=ne(Math.pow(t,2),s);return(i*n+n-o)*a*(-r(t)+.001>0?-1:1)/l}):(r=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),o=t=>e*e*(n-t)*Math.exp(-t*e));let a=function(e,t,n){let i=n;for(let n=1;n<12;n++)i-=e(i)/t(i);return i}(r,o,5/e);if(e=tt(e),isNaN(a))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(a,2)*i;return{stiffness:t,damping:2*s*Math.sqrt(i*t),duration:e}}}(e);(t={...t,...n,mass:1}).isResolvedFromDuration=!0}return t}({...i,velocity:-tn(i.velocity||0)}),f=h||0,m=u/(2*Math.sqrt(l*c)),g=s-o,v=tn(Math.sqrt(l/c)),y=5>Math.abs(g);if(n||(n=y?.01:2),t||(t=y?.005:.5),m<1){let e=ne(v,m);r=t=>s-Math.exp(-m*v*t)*((f+m*v*g)/e*Math.sin(e*t)+g*Math.cos(e*t))}else if(1===m)r=e=>s-Math.exp(-v*e)*(g+(f+v*g)*e);else{let e=v*Math.sqrt(m*m-1);r=t=>{let n=Math.exp(-m*v*t),i=Math.min(e*t,300);return s-n*((f+m*v*g)*Math.sinh(i)+e*g*Math.cosh(i))/e}}return{calculatedDuration:p&&d||null,next:e=>{let i=r(e);if(p)a.done=e>=d;else{let o=f;0!==e&&(o=m<1?t7(r,e,i):0);let l=Math.abs(o)<=n,u=Math.abs(s-i)<=t;a.done=l&&u}return a.value=a.done?s:i,a}}}function no({keyframes:e,velocity:t=0,power:n=.8,timeConstant:i=325,bounceDamping:r=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){let d,h;let p=e[0],f={done:!1,value:p},m=e=>void 0!==a&&e<a||void 0!==l&&e>l,g=e=>void 0===a?l:void 0===l?a:Math.abs(a-e)<Math.abs(l-e)?a:l,v=n*t,y=p+v,_=void 0===s?y:s(y);_!==y&&(v=_-p);let b=e=>-v*Math.exp(-e/i),w=e=>_+b(e),x=e=>{let t=b(e),n=w(e);f.done=Math.abs(t)<=u,f.value=f.done?_:n},k=e=>{m(f.value)&&(d=e,h=nr({keyframes:[f.value,g(f.value)],velocity:t7(w,e,f.value),damping:r,stiffness:o,restDelta:u,restSpeed:c}))};return k(0),{calculatedDuration:null,next:e=>{let t=!1;return(h||void 0!==d||(t=!0,x(e),k(e)),void 0!==d&&e>=d)?h.next(e-d):(t||x(e),f)}}}let ns=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function na(e,t,n,i){if(e===t&&n===i)return e0.Z;let r=t=>(function(e,t,n,i,r){let o,s;let a=0;do(o=ns(s=t+(n-t)/2,i,r)-e)>0?n=s:t=s;while(Math.abs(o)>1e-7&&++a<12);return s})(t,0,1,e,n);return e=>0===e||1===e?e:ns(r(e),t,i)}let nl=na(.42,0,1,1),nu=na(0,0,.58,1),nc=na(.42,0,.58,1),nd=e=>Array.isArray(e)&&"number"!=typeof e[0],nh=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,np=e=>t=>1-e(1-t),nf=e=>1-Math.sin(Math.acos(e)),nm=np(nf),ng=nh(nf),nv=na(.33,1.53,.69,.99),ny=np(nv),n_=nh(ny),nb={linear:e0.Z,easeIn:nl,easeInOut:nc,easeOut:nu,circIn:nf,circInOut:ng,circOut:nm,backIn:ny,backInOut:n_,backOut:nv,anticipate:e=>(e*=2)<1?.5*ny(e):.5*(2-Math.pow(2,-10*(e-1)))},nw=e=>{if(Array.isArray(e)){(0,tg.k)(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,n,i,r]=e;return na(t,n,i,r)}return"string"==typeof e?((0,tg.k)(void 0!==nb[e],`Invalid easing type '${e}'`),nb[e]):e},nx=(e,t,n)=>{let i=t-e;return 0===i?1:(n-e)/i},nk=(e,t,n)=>e+(t-e)*n;function nS(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function nE(e,t){return n=>n>0?t:e}let nT=(e,t,n)=>{let i=e*e,r=n*(t*t-i)+i;return r<0?0:Math.sqrt(r)},nP=[tz,tj,tV],nR=e=>nP.find(t=>t.test(e));function nA(e){let t=nR(e);if((0,tg.K)(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===tV&&(n=function({hue:e,saturation:t,lightness:n,alpha:i}){e/=360,n/=100;let r=0,o=0,s=0;if(t/=100){let i=n<.5?n*(1+t):n+t-n*t,a=2*n-i;r=nS(a,i,e+1/3),o=nS(a,i,e),s=nS(a,i,e-1/3)}else r=o=s=n;return{red:Math.round(255*r),green:Math.round(255*o),blue:Math.round(255*s),alpha:i}}(n)),n}let nC=(e,t)=>{let n=nA(e),i=nA(t);if(!n||!i)return nE(e,t);let r={...n};return e=>(r.red=nT(n.red,i.red,e),r.green=nT(n.green,i.green,e),r.blue=nT(n.blue,i.blue,e),r.alpha=nk(n.alpha,i.alpha,e),tj.transform(r))},nF=new Set(["none","hidden"]);function nO(e,t){return n=>nk(e,t,n)}function nL(e){return"number"==typeof e?nO:"string"==typeof e?B(e)?nE:tB.test(e)?nC:nD:Array.isArray(e)?nI:"object"==typeof e?tB.test(e)?nC:nM:nE}function nI(e,t){let n=[...e],i=n.length,r=e.map((e,n)=>nL(e)(e,t[n]));return e=>{for(let t=0;t<i;t++)n[t]=r[t](e);return n}}function nM(e,t){let n={...e,...t},i={};for(let r in n)void 0!==e[r]&&void 0!==t[r]&&(i[r]=nL(e[r])(e[r],t[r]));return e=>{for(let t in i)n[t]=i[t](e);return n}}let nD=(e,t)=>{let n=tX.createTransformer(t),i=tq(e),r=tq(t);return i.indexes.var.length===r.indexes.var.length&&i.indexes.color.length===r.indexes.color.length&&i.indexes.number.length>=r.indexes.number.length?nF.has(e)&&!r.values.length||nF.has(t)&&!i.values.length?nF.has(e)?n=>n<=0?e:t:n=>n>=1?t:e:eW(nI(function(e,t){var n;let i=[],r={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){let s=t.types[o],a=e.indexes[s][r[s]],l=null!==(n=e.values[a])&&void 0!==n?n:0;i[o]=l,r[s]++}return i}(i,r),r.values),n):((0,tg.K)(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),nE(e,t))};function nN(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?nk(e,t,n):nL(e)(e,t)}function n$({duration:e=300,keyframes:t,times:n,ease:i="easeInOut"}){let r=nd(i)?i.map(nw):nw(i),o={done:!1,value:t[0]},s=function(e,t,{clamp:n=!0,ease:i,mixer:r}={}){let o=e.length;if((0,tg.k)(o===t.length,"Both input and output ranges must be the same length"),1===o)return()=>t[0];if(2===o&&e[0]===e[1])return()=>t[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=function(e,t,n){let i=[],r=n||nN,o=e.length-1;for(let n=0;n<o;n++){let o=r(e[n],e[n+1]);t&&(o=eW(Array.isArray(t)?t[n]||e0.Z:t,o)),i.push(o)}return i}(t,i,r),a=s.length,l=t=>{let n=0;if(a>1)for(;n<e.length-2&&!(t<e[n+1]);n++);let i=nx(e[n],e[n+1],t);return s[n](i)};return n?t=>l(U(e[0],e[o-1],t)):l}((n&&n.length===t.length?n:function(e){let t=[0];return function(e,t){let n=e[e.length-1];for(let i=1;i<=t;i++){let r=nx(0,t,i);e.push(nk(n,1,r))}}(t,e.length-1),t}(t)).map(t=>t*e),t,{ease:Array.isArray(r)?r:t.map(()=>r||nc).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(o.value=s(t),o.done=t>=e,o)}}let nj=e=>{let t=({timestamp:t})=>e(t);return{start:()=>eI.Wi.update(t,!0),stop:()=>(0,eI.Pn)(t),now:()=>eI.frameData.isProcessing?eI.frameData.timestamp:tf.now()}},nz={decay:no,inertia:no,tween:n$,keyframes:n$,spring:nr},nV=e=>e/100;class nB extends t9{constructor({KeyframeResolver:e=tI,...t}){super(t),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:e}=this.options;e&&e()};let{name:n,motionValue:i,keyframes:r}=this.options,o=(e,t)=>this.onKeyframesResolved(e,t);n&&i&&i.owner?this.resolver=i.owner.resolveKeyframes(r,o,n,i):this.resolver=new e(r,o,n,i),this.resolver.scheduleResolve()}initPlayback(e){let t,n;let{type:i="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:s,velocity:a=0}=this.options,l=nz[i]||n$;l!==n$&&"number"!=typeof e[0]&&(t=eW(nV,nN(e[0],e[1])),e=[0,100]);let u=l({...this.options,keyframes:e});"mirror"===s&&(n=l({...this.options,keyframes:[...e].reverse(),velocity:-a})),null===u.calculatedDuration&&(u.calculatedDuration=function(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}(u));let{calculatedDuration:c}=u,d=c+o;return{generator:u,mirroredGenerator:n,mapPercentToKeyframes:t,calculatedDuration:c,resolvedDuration:d,totalDuration:d*(r+1)-o}}onPostResolved(){let{autoplay:e=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e,t=!1){let{resolved:n}=this;if(!n){let{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}let{finalKeyframe:i,generator:r,mirroredGenerator:o,mapPercentToKeyframes:s,keyframes:a,calculatedDuration:l,totalDuration:u,resolvedDuration:c}=n;if(null===this.startTime)return r.next(0);let{delay:d,repeat:h,repeatType:p,repeatDelay:f,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;let g=this.currentTime-d*(this.speed>=0?1:-1),v=this.speed>=0?g<0:g>u;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let y=this.currentTime,_=r;if(h){let e=Math.min(this.currentTime,u)/c,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,(t=Math.min(t,h+1))%2&&("reverse"===p?(n=1-n,f&&(n-=f/c)):"mirror"===p&&(_=o)),y=U(0,1,n)*c}let b=v?{done:!1,value:a[0]}:_.next(y);s&&(b.value=s(b.value));let{done:w}=b;v||null===l||(w=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let x=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return x&&void 0!==i&&(b.value=th(a,this.options,i)),m&&m(b.value),x&&this.finish(),b}get duration(){let{resolved:e}=this;return e?tn(e.calculatedDuration):0}get time(){return tn(this.currentTime)}set time(e){e=tt(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=tn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:e=nj,onPlay:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),t&&t();let n=this.driver.now();null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime&&"finished"!==this.state||(this.startTime=n),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=null!==(e=this.currentTime)&&void 0!==e?e:0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:e}=this.options;e&&e()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}let nW=e=>Array.isArray(e)&&"number"==typeof e[0],nH=([e,t,n,i])=>`cubic-bezier(${e}, ${t}, ${n}, ${i})`,nU={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:nH([0,.65,.55,1]),circOut:nH([.55,0,1,.45]),backIn:nH([.31,.01,.66,-.59]),backOut:nH([.33,1.53,.69,.99])};function nq(e){return nG(e)||nU.easeOut}function nG(e){if(e)return nW(e)?nH(e):Array.isArray(e)?e.map(nq):nU[e]}let nY=t8(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),nK=new Set(["opacity","clipPath","filter","transform"]);class nX extends t9{constructor(e){super(e);let{name:t,motionValue:n,keyframes:i}=this.options;this.resolver=new t6(i,(e,t)=>this.onKeyframesResolved(e,t),t,n),this.resolver.scheduleResolve()}initPlayback(e,t){var n,i;let{duration:r=300,times:o,ease:s,type:a,motionValue:l,name:u}=this.options;if(!(null===(n=l.owner)||void 0===n?void 0:n.current))return!1;if("spring"===(i=this.options).type||"backgroundColor"===i.name||!function e(t){return!!(!t||"string"==typeof t&&t in nU||nW(t)||Array.isArray(t)&&t.every(e))}(i.ease)){let{onComplete:t,onUpdate:n,motionValue:i,...l}=this.options,u=function(e,t){let n=new nB({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0}),i={done:!1,value:e[0]},r=[],o=0;for(;!i.done&&o<2e4;)r.push((i=n.sample(o)).value),o+=10;return{times:void 0,keyframes:r,duration:o-10,ease:"linear"}}(e,l);1===(e=u.keyframes).length&&(e[1]=e[0]),r=u.duration,o=u.times,s=u.ease,a="keyframes"}let c=function(e,t,n,{delay:i=0,duration:r=300,repeat:o=0,repeatType:s="loop",ease:a,times:l}={}){let u={[t]:n};l&&(u.offset=l);let c=nG(a);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:i,duration:r,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:"reverse"===s?"alternate":"normal"})}(l.owner.current,u,e,{...this.options,duration:r,times:o,ease:s});return c.startTime=tf.now(),this.pendingTimeline?(c.timeline=this.pendingTimeline,this.pendingTimeline=void 0):c.onfinish=()=>{let{onComplete:n}=this.options;l.set(th(e,this.options,t)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:r,times:o,type:a,ease:s,keyframes:e}}get duration(){let{resolved:e}=this;if(!e)return 0;let{duration:t}=e;return tn(t)}get time(){let{resolved:e}=this;if(!e)return 0;let{animation:t}=e;return tn(t.currentTime||0)}set time(e){let{resolved:t}=this;if(!t)return;let{animation:n}=t;n.currentTime=tt(e)}get speed(){let{resolved:e}=this;if(!e)return 1;let{animation:t}=e;return t.playbackRate}set speed(e){let{resolved:t}=this;if(!t)return;let{animation:n}=t;n.playbackRate=e}get state(){let{resolved:e}=this;if(!e)return"idle";let{animation:t}=e;return t.playState}attachTimeline(e){if(this._resolved){let{resolved:t}=this;if(!t)return e0.Z;let{animation:n}=t;n.timeline=e,n.onfinish=null}else this.pendingTimeline=e;return e0.Z}play(){if(this.isStopped)return;let{resolved:e}=this;if(!e)return;let{animation:t}=e;"finished"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){let{resolved:e}=this;if(!e)return;let{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;let{resolved:e}=this;if(!e)return;let{animation:t,keyframes:n,duration:i,type:r,ease:o,times:s}=e;if("idle"!==t.playState&&"finished"!==t.playState){if(this.time){let{motionValue:e,onUpdate:t,onComplete:a,...l}=this.options,u=new nB({...l,keyframes:n,duration:i,type:r,ease:o,times:s,isGenerator:!0}),c=tt(this.time);e.setWithVelocity(u.sample(c-10).value,u.sample(c).value,10)}this.cancel()}}complete(){let{resolved:e}=this;e&&e.animation.finish()}cancel(){let{resolved:e}=this;e&&e.animation.cancel()}static supports(e){let{motionValue:t,name:n,repeatDelay:i,repeatType:r,damping:o,type:s}=e;return nY()&&n&&nK.has(n)&&t&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate&&!i&&"mirror"!==r&&0!==o&&"inertia"!==s}}let nZ=t8(()=>void 0!==window.ScrollTimeline);class nQ{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}then(e,t){return Promise.all(this.animations).then(e).catch(t)}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e){let t=this.animations.map(t=>{if(!nZ()||!t.attachTimeline)return t.pause(),function(e,t){let n;let i=()=>{let{currentTime:i}=t,r=(null===i?0:i.value)/100;n!==r&&e(r),n=r};return eI.Wi.update(i,!0),()=>(0,eI.Pn)(i)}(e=>{t.time=t.duration*e},e);t.attachTimeline(e)});return()=>{t.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach(t=>t[e]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}let nJ=(e,t,n,i={},r,o)=>s=>{let a=tl(i,e)||{},l=a.delay||i.delay||0,{elapsed:u=0}=i;u-=tt(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:e=>{t.set(e),a.onUpdate&&a.onUpdate(e)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:o?void 0:r};!function({when:e,delay:t,delayChildren:n,staggerChildren:i,staggerDirection:r,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}(a)&&(c={...c,...ta(e,c)}),c.duration&&(c.duration=tt(c.duration)),c.repeatDelay&&(c.repeatDelay=tt(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(c.duration=0,0!==c.delay||(d=!0)),(tc.current||tu.c.skipAnimations)&&(d=!0,c.duration=0,c.delay=0),d&&!o&&void 0!==t.get()){let e=th(c.keyframes,a);if(void 0!==e)return eI.Wi.update(()=>{c.onUpdate(e),c.onComplete()}),new nQ([])}return!o&&nX.supports(c)?new nX(c):new nB(c)};function n0(e){return!!(D(e)&&e.add)}function n1(e,t){-1===e.indexOf(t)&&e.push(t)}function n2(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}class n3{constructor(){this.subscriptions=[]}add(e){return n1(this.subscriptions,e),()=>n2(this.subscriptions,e)}notify(e,t,n){let i=this.subscriptions.length;if(i){if(1===i)this.subscriptions[0](e,t,n);else for(let r=0;r<i;r++){let i=this.subscriptions[r];i&&i(e,t,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let n5=e=>!isNaN(parseFloat(e)),n6={current:void 0};class n8{constructor(e,t={}){this.version="11.2.10",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{let n=tf.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=tf.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=n5(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new n3);let n=this.events[e].add(t);return"change"===e?()=>{n(),eI.Wi.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return n6.current&&n6.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var e;let t=tf.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let n=Math.min(this.updatedAt-this.prevUpdatedAt,30);return e=parseFloat(this.current)-parseFloat(this.prevFrameValue),n?1e3/n*e:0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function n4(e,t){return new n8(e,t)}function n9(e){return e.getProps()[p]}function n7(e,t,{delay:n=0,transitionOverride:i,type:r}={}){var o;let{transition:s=e.getDefaultTransition(),transitionEnd:a,...l}=t,u=e.getValue("willChange");i&&(s=i);let c=[],d=r&&e.animationState&&e.animationState.getState()[r];for(let t in l){let i=e.getValue(t,null!==(o=e.latestValues[t])&&void 0!==o?o:null),r=l[t];if(void 0===r||d&&function({protectedKeys:e,needsAnimating:t},n){let i=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,i}(d,t))continue;let a={delay:n,elapsed:0,...tl(s||{},t)},h=!1;if(window.HandoffAppearAnimations){let n=n9(e);if(n){let e=window.HandoffAppearAnimations(n,t,i,eI.Wi);null!==e&&(a.elapsed=e,h=!0)}}i.start(nJ(t,i,r,e.shouldReduceMotion&&I.has(t)?{type:!1}:a,e,h));let p=i.animation;p&&(n0(u)&&(u.add(t),p.then(()=>u.remove(t))),c.push(p))}return a&&Promise.all(c).then(()=>{eI.Wi.update(()=>{a&&function(e,t){let{transitionEnd:n={},transition:i={},...r}=te(e,t)||{};for(let t in r={...r,...n}){let n=eF(r[t]);e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,n4(n))}}(e,a)})}),c}function ie(e,t,n={}){var i;let r=te(e,t,"exit"===n.type?null===(i=e.presenceContext)||void 0===i?void 0:i.custom:void 0),{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);let s=r?()=>Promise.all(n7(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(i=0)=>{let{delayChildren:r=0,staggerChildren:s,staggerDirection:a}=o;return function(e,t,n=0,i=0,r=1,o){let s=[],a=(e.variantChildren.size-1)*i,l=1===r?(e=0)=>e*i:(e=0)=>a-e*i;return Array.from(e.variantChildren).sort(it).forEach((e,i)=>{e.notify("AnimationStart",t),s.push(ie(e,t,{...o,delay:n+l(i)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(s)}(e,t,r+i,s,a,n)}:()=>Promise.resolve(),{when:l}=o;if(!l)return Promise.all([s(),a(n.delay)]);{let[e,t]="beforeChildren"===l?[s,a]:[a,s];return e().then(()=>t())}}function it(e,t){return e.sortNodePosition(t)}let ii=[..._].reverse(),ir=_.length;function io(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}class is extends eK{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>(function(e,t,n={}){let i;if(e.notify("AnimationStart",t),Array.isArray(t))i=Promise.all(t.map(t=>ie(e,t,n)));else if("string"==typeof t)i=ie(e,t,n);else{let r="function"==typeof t?te(e,t,n.custom):t;i=Promise.all(n7(e,r,n))}return i.then(()=>{eI.Wi.postRender(()=>{e.notify("AnimationComplete",t)})})})(e,t,n))),n={animate:io(!0),whileInView:io(),whileHover:io(),whileTap:io(),whileDrag:io(),whileFocus:io(),exit:io()},i=!0,r=t=>(n,i)=>{var r;let o=te(e,i,"exit"===t?null===(r=e.presenceContext)||void 0===r?void 0:r.custom:void 0);if(o){let{transition:e,transitionEnd:t,...i}=o;n={...n,...i,...t}}return n};function o(o){let s=e.getProps(),a=e.getVariantContext(!0)||{},l=[],u=new Set,c={},d=1/0;for(let t=0;t<ir;t++){var h;let p=ii[t],f=n[p],m=void 0!==s[p]?s[p]:a[p],g=v(m),_=p===o?f.isActive:null;!1===_&&(d=t);let b=m===a[p]&&m!==s[p]&&g;if(b&&i&&e.manuallyAnimateOnMount&&(b=!1),f.protectedKeys={...c},!f.isActive&&null===_||!m&&!f.prevProp||y(m)||"boolean"==typeof m)continue;let w=(h=f.prevProp,("string"==typeof m?m!==h:!!Array.isArray(m)&&!e7(m,h))||p===o&&f.isActive&&!b&&g||t>d&&g),x=!1,k=Array.isArray(m)?m:[m],S=k.reduce(r(p),{});!1===_&&(S={});let{prevResolvedValues:E={}}=f,T={...E,...S},P=t=>{w=!0,u.has(t)&&(x=!0,u.delete(t)),f.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in T){let t=S[e],n=E[e];if(!c.hasOwnProperty(e))(eA(t)&&eA(n)?e7(t,n):t===n)?void 0!==t&&u.has(e)?P(e):f.protectedKeys[e]=!0:null!=t?P(e):u.add(e)}f.prevProp=m,f.prevResolvedValues=S,f.isActive&&(c={...c,...S}),i&&e.blockInitialAnimation&&(w=!1),w&&(!b||x)&&l.push(...k.map(e=>({animation:e,options:{type:p}})))}if(u.size){let t={};u.forEach(n=>{let i=e.getBaseTarget(n),r=e.getValue(n);r&&(r.liveStyle=!0),t[n]=null!=i?i:null}),l.push({animation:t})}let p=!!l.length;return i&&(!1===s.initial||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),i=!1,p?t(l):Promise.resolve()}return{animateChanges:o,setActive:function(t,i){var r;if(n[t].isActive===i)return Promise.resolve();null===(r=e.variantChildren)||void 0===r||r.forEach(e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,i)}),n[t].isActive=i;let s=o(t);for(let e in n)n[e].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();this.unmount(),y(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){}}let ia=0;class il extends eK{constructor(){super(...arguments),this.id=ia++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;let i=this.node.animationState.setActive("exit",!e);t&&!e&&i.then(()=>t(this.id))}mount(){let{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}let iu=(e,t)=>Math.abs(e-t);class ic{constructor(e,t,{transformPagePoint:n,contextWindow:i,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let n=ip(this.lastMoveEventInfo,this.history),i=null!==this.startEvent,r=(e=n.offset,t={x:0,y:0},Math.sqrt(iu(e.x,t.x)**2+iu(e.y,t.y)**2)>=3);if(!i&&!r)return;let{point:o}=n,{timestamp:s}=eI.frameData;this.history.push({...o,timestamp:s});let{onStart:a,onMove:l}=this.handlers;i||(a&&a(this.lastMoveEvent,n),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,n)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=id(t,this.transformPagePoint),eI.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:i,resumeAnimation:r}=this.handlers;if(this.dragSnapToOrigin&&r&&r(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=ip("pointercancel"===e.type?this.lastMoveEventInfo:id(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),i&&i(e,o)},!e$(e))return;this.dragSnapToOrigin=r,this.handlers=t,this.transformPagePoint=n,this.contextWindow=i||window;let o=id(ej(e),this.transformPagePoint),{point:s}=o,{timestamp:a}=eI.frameData;this.history=[{...s,timestamp:a}];let{onSessionStart:l}=t;l&&l(e,ip(o,this.history)),this.removeListeners=eW(eV(this.contextWindow,"pointermove",this.handlePointerMove),eV(this.contextWindow,"pointerup",this.handlePointerUp),eV(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),(0,eI.Pn)(this.updatePoint)}}function id(e,t){return t?{point:t(e.point)}:e}function ih(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ip({point:e},t){return{point:e,delta:ih(e,im(t)),offset:ih(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,i=null,r=im(e);for(;n>=0&&(i=e[n],!(r.timestamp-i.timestamp>tt(.1)));)n--;if(!i)return{x:0,y:0};let o=tn(r.timestamp-i.timestamp);if(0===o)return{x:0,y:0};let s={x:(r.x-i.x)/o,y:(r.y-i.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(t,0)}}function im(e){return e[e.length-1]}function ig(e){return e.max-e.min}function iv(e,t=0,n=.01){return Math.abs(e-t)<=n}function iy(e,t,n,i=.5){e.origin=i,e.originPoint=nk(t.min,t.max,e.origin),e.scale=ig(n)/ig(t),(iv(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=nk(n.min,n.max,e.origin)-e.originPoint,(iv(e.translate)||isNaN(e.translate))&&(e.translate=0)}function i_(e,t,n,i){iy(e.x,t.x,n.x,i?i.originX:void 0),iy(e.y,t.y,n.y,i?i.originY:void 0)}function ib(e,t,n){e.min=n.min+t.min,e.max=e.min+ig(t)}function iw(e,t,n){e.min=t.min-n.min,e.max=e.min+ig(t)}function ix(e,t,n){iw(e.x,t.x,n.x),iw(e.y,t.y,n.y)}function ik(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function iS(e,t){let n=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,i]=[i,n]),{min:n,max:i}}function iE(e,t,n){return{min:iT(e,t),max:iT(e,n)}}function iT(e,t){return"number"==typeof e?e:e[t]||0}let iP=()=>({translate:0,scale:1,origin:0,originPoint:0}),iR=()=>({x:iP(),y:iP()}),iA=()=>({min:0,max:0}),iC=()=>({x:iA(),y:iA()});function iF(e){return[e("x"),e("y")]}function iO({top:e,left:t,right:n,bottom:i}){return{x:{min:t,max:n},y:{min:e,max:i}}}function iL(e){return void 0===e||1===e}function iI({scale:e,scaleX:t,scaleY:n}){return!iL(e)||!iL(t)||!iL(n)}function iM(e){return iI(e)||iD(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function iD(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function iN(e,t,n,i,r){return void 0!==r&&(e=i+r*(e-i)),i+n*(e-i)+t}function i$(e,t=0,n=1,i,r){e.min=iN(e.min,t,n,i,r),e.max=iN(e.max,t,n,i,r)}function ij(e,{x:t,y:n}){i$(e.x,t.translate,t.scale,t.originPoint),i$(e.y,n.translate,n.scale,n.originPoint)}function iz(e){return Number.isInteger(e)?e:e>1.0000000000001||e<.999999999999?e:1}function iV(e,t){e.min=e.min+t,e.max=e.max+t}function iB(e,t,[n,i,r]){let o=void 0!==t[r]?t[r]:.5,s=nk(e.min,e.max,o);i$(e,t[n],t[i],s,t.scale)}let iW=["x","scaleX","originX"],iH=["y","scaleY","originY"];function iU(e,t){iB(e.x,t,iW),iB(e.y,t,iH)}function iq(e,t){return iO(function(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}(e.getBoundingClientRect(),t))}let iG=({current:e})=>e?e.ownerDocument.defaultView:null,iY=new WeakMap;class iK{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=iC(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let{dragSnapToOrigin:i}=this.getProps();this.panSession=new ic(e,{onSessionStart:e=>{let{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(ej(e,"page").point)},onStart:(e,t)=>{let{drag:n,dragPropagation:i,onDragStart:r}=this.getProps();if(n&&!i&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=eG(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),iF(e=>{let t=this.getAxisMotionValue(e).get()||0;if(en.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let i=n.layout.layoutBox[e];if(i){let e=ig(i);t=parseFloat(t)/100*e}}}this.originPoint[e]=t}),r&&eI.Wi.postRender(()=>r(e,t));let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(e,t)=>{let{dragPropagation:n,dragDirectionLock:i,onDirectionLock:r,onDrag:o}=this.getProps();if(!n&&!this.openGlobalLock)return;let{offset:s}=t;if(i&&null===this.currentDirection){this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(s),null!==this.currentDirection&&r&&r(this.currentDirection);return}this.updateAxis("x",t.point,s),this.updateAxis("y",t.point,s),this.visualElement.render(),o&&o(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>iF(e=>{var t;return"paused"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:i,contextWindow:iG(this.visualElement)})}stop(e,t){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:i}=t;this.startAnimation(i);let{onDragEnd:r}=this.getProps();r&&eI.Wi.postRender(()=>r(e,t))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){let{drag:i}=this.getProps();if(!n||!iX(e,i,this.currentDirection))return;let r=this.getAxisMotionValue(e),o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:n},i){return void 0!==t&&e<t?e=i?nk(t,e,i.min):Math.max(e,t):void 0!==n&&e>n&&(e=i?nk(n,e,i.max):Math.min(e,n)),e}(o,this.constraints[e],this.elastic[e])),r.set(o)}resolveConstraints(){var e;let{dragConstraints:t,dragElastic:n}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,r=this.constraints;t&&g(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(e,{top:t,left:n,bottom:i,right:r}){return{x:ik(e.x,n,r),y:ik(e.y,t,i)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:iE(e,"left","right"),y:iE(e,"top","bottom")}}(n),r!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&iF(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(i.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!g(t))return!1;let i=t.current;(0,tg.k)(null!==i,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let o=function(e,t,n){let i=iq(e,n),{scroll:r}=t;return r&&(iV(i.x,r.offset.x),iV(i.y,r.offset.y)),i}(i,r.root,this.visualElement.getTransformPagePoint()),s={x:iS((e=r.layout.layoutBox).x,o.x),y:iS(e.y,o.y)};if(n){let e=n(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(s));this.hasMutatedConstraints=!!e,e&&(s=iO(e))}return s}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:i,dragTransition:r,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{};return Promise.all(iF(s=>{if(!iX(s,t,this.currentDirection))return;let l=a&&a[s]||{};o&&(l={min:0,max:0});let u={type:"inertia",velocity:n?e[s]:0,bounceStiffness:i?200:1e6,bounceDamping:i?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(s,u)})).then(s)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return n.start(nJ(e,n,0,t,this.visualElement))}stopAnimation(){iF(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){iF(e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()})}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){iF(t=>{let{drag:n}=this.getProps();if(!iX(t,n,this.currentDirection))return;let{projection:i}=this.visualElement,r=this.getAxisMotionValue(t);if(i&&i.layout){let{min:n,max:o}=i.layout.layoutBox[t];r.set(e[t]-nk(n,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!g(t)||!n||!this.constraints)return;this.stopAnimation();let i={x:0,y:0};iF(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){let n=t.get();i[e]=function(e,t){let n=.5,i=ig(e),r=ig(t);return r>i?n=nx(t.min,t.max-i,e.min):i>r&&(n=nx(e.min,e.max-r,t.min)),U(0,1,n)}({min:n,max:n},this.constraints[e])}});let{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),iF(t=>{if(!iX(t,e,null))return;let n=this.getAxisMotionValue(t),{min:r,max:o}=this.constraints[t];n.set(nk(r,o,i[t]))})}addListeners(){if(!this.visualElement.current)return;iY.set(this.visualElement,this);let e=eV(this.visualElement.current,"pointerdown",e=>{let{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),t=()=>{let{dragConstraints:e}=this.getProps();g(e)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,i=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),t();let r=eN(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(iF(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{r(),e(),i(),o&&o()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:r=!1,dragElastic:o=.35,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:i,dragConstraints:r,dragElastic:o,dragMomentum:s}}}function iX(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}class iZ extends eK{constructor(e){super(e),this.removeGroupControls=e0.Z,this.removeListeners=e0.Z,this.controls=new iK(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||e0.Z}unmount(){this.removeGroupControls(),this.removeListeners()}}let iQ=e=>(t,n)=>{e&&eI.Wi.postRender(()=>e(t,n))};class iJ extends eK{constructor(){super(...arguments),this.removePointerDownListener=e0.Z}onPointerDown(e){this.session=new ic(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:iG(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:iQ(e),onStart:iQ(t),onMove:n,onEnd:(e,t)=>{delete this.session,i&&eI.Wi.postRender(()=>i(e,t))}}}mount(){this.removePointerDownListener=eV(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let i0={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function i1(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let i2={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!ei.test(e))return e;e=parseFloat(e)}let n=i1(e,t.target.x),i=i1(e,t.target.y);return`${n}% ${i}%`}};class i3 extends s.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:i}=this.props,{projection:r}=e;Object.assign(O,i6),r&&(t.group&&t.group.add(r),n&&n.register&&i&&n.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),i0.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:i,isPresent:r}=this.props,o=n.projection;return o&&(o.isPresent=r,i||e.layoutDependency!==t||void 0===t?o.willUpdate():this.safeToRemove(),e.isPresent===r||(r?o.promote():o.relegate()||eI.Wi.postRender(()=>{let e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),f.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function i5(e){let[t,n]=function(){let e=(0,s.useContext)(u.O);if(null===e)return[!0,null];let{isPresent:t,onExitComplete:n,register:i}=e,r=(0,s.useId)();return(0,s.useEffect)(()=>i(r),[]),!t&&n?[!1,()=>n&&n(r)]:[!0]}(),i=(0,s.useContext)(P.p);return(0,o.jsx)(i3,{...e,layoutGroup:i,switchLayoutGroup:(0,s.useContext)(R),isPresent:t,safeToRemove:n})}let i6={borderRadius:{...i2,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:i2,borderTopRightRadius:i2,borderBottomLeftRadius:i2,borderBottomRightRadius:i2,boxShadow:{correct:(e,{treeScale:t,projectionDelta:n})=>{let i=tX.parse(e);if(i.length>5)return e;let r=tX.createTransformer(e),o="number"!=typeof i[0]?1:0,s=n.x.scale*t.x,a=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=a;let l=nk(s,a,.5);return"number"==typeof i[2+o]&&(i[2+o]/=l),"number"==typeof i[3+o]&&(i[3+o]/=l),r(i)}}},i8=["TopLeft","TopRight","BottomLeft","BottomRight"],i4=i8.length,i9=e=>"string"==typeof e?parseFloat(e):e,i7=e=>"number"==typeof e||ei.test(e);function re(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let rt=ri(0,.5,nm),rn=ri(.5,.95,e0.Z);function ri(e,t,n){return i=>i<e?0:i>t?1:n(nx(e,t,i))}function rr(e,t){e.min=t.min,e.max=t.max}function ro(e,t){rr(e.x,t.x),rr(e.y,t.y)}function rs(e,t,n,i,r){return e-=t,e=i+1/n*(e-i),void 0!==r&&(e=i+1/r*(e-i)),e}function ra(e,t,[n,i,r],o,s){!function(e,t=0,n=1,i=.5,r,o=e,s=e){if(en.test(t)&&(t=parseFloat(t),t=nk(s.min,s.max,t/100)-s.min),"number"!=typeof t)return;let a=nk(o.min,o.max,i);e===o&&(a-=t),e.min=rs(e.min,t,n,a,r),e.max=rs(e.max,t,n,a,r)}(e,t[n],t[i],t[r],t.scale,o,s)}let rl=["x","scaleX","originX"],ru=["y","scaleY","originY"];function rc(e,t,n,i){ra(e.x,t,rl,n?n.x:void 0,i?i.x:void 0),ra(e.y,t,ru,n?n.y:void 0,i?i.y:void 0)}function rd(e){return 0===e.translate&&1===e.scale}function rh(e){return rd(e.x)&&rd(e.y)}function rp(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function rf(e){return ig(e.x)/ig(e.y)}class rm{constructor(){this.members=[]}add(e){n1(this.members,e),e.scheduleRender()}remove(e){if(n2(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t;let n=this.members.findIndex(t=>e===t);if(0===n)return!1;for(let e=n;e>=0;e--){let n=this.members[e];if(!1!==n.isPresent){t=n;break}}return!!t&&(this.promote(t),!0)}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:i}=e.options;!1===i&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function rg(e,t,n){let i="",r=e.x.translate/t.x,o=e.y.translate/t.y,s=(null==n?void 0:n.z)||0;if((r||o||s)&&(i=`translate3d(${r}px, ${o}px, ${s}px) `),(1!==t.x||1!==t.y)&&(i+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,rotateX:r,rotateY:o,skewX:s,skewY:a}=n;e&&(i=`perspective(${e}px) ${i}`),t&&(i+=`rotate(${t}deg) `),r&&(i+=`rotateX(${r}deg) `),o&&(i+=`rotateY(${o}deg) `),s&&(i+=`skewX(${s}deg) `),a&&(i+=`skewY(${a}deg) `)}let a=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==a||1!==l)&&(i+=`scale(${a}, ${l})`),i||"none"}let rv=(e,t)=>e.depth-t.depth;class ry{constructor(){this.children=[],this.isDirty=!1}add(e){n1(this.children,e),this.isDirty=!0}remove(e){n2(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(rv),this.isDirty=!1,this.children.forEach(e)}}let r_=["","X","Y","Z"],rb={visibility:"hidden"},rw=0,rx={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function rk(e,t,n,i){let{latestValues:r}=t;r[e]&&(n[e]=r[e],t.setStaticValue(e,0),i&&(i[e]=0))}function rS({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:i,resetTransform:r}){return class{constructor(e={},n=null==t?void 0:t()){this.id=rw++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,rx.totalNodes=rx.resolvedTargetDeltas=rx.recalculatedProjection=0,this.nodes.forEach(rP),this.nodes.forEach(rI),this.nodes.forEach(rM),this.nodes.forEach(rR),window.MotionDebug&&window.MotionDebug.record(rx)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new ry)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new n3),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,n=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=t instanceof SVGElement&&"svg"!==t.tagName,this.instance=t;let{layoutId:i,layout:r,visualElement:o}=this.options;if(o&&!o.current&&o.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(r||i)&&(this.isLayoutDirty=!0),e){let n;let i=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){let n=tf.now(),i=({timestamp:t})=>{let r=t-n;r>=250&&((0,eI.Pn)(i),e(r-250))};return eI.Wi.read(i,!0),()=>(0,eI.Pn)(i)}(i,0),i0.hasAnimatedSinceResize&&(i0.hasAnimatedSinceResize=!1,this.nodes.forEach(rL))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&o&&(i||r)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:i})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||o.getDefaultTransition()||rV,{onLayoutAnimationStart:s,onLayoutAnimationComplete:a}=o.getProps(),l=!this.targetLayout||!rp(this.targetLayout,i)||n,u=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,u);let t={...tl(r,"layout"),onPlay:s,onComplete:a};(o.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||rL(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,eI.Pn)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(rD),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.HandoffCancelAllAnimations&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return!1;let{visualElement:n}=t.options;return!!n&&(!!n9(n)||!!t.parent&&!t.parent.hasCheckedOptimisedAppear&&e(t.parent))}(this)&&window.HandoffCancelAllAnimations(),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;let i=this.getTransformTemplate();this.prevTransformTemplateValue=i?i(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(rC);return}this.isUpdating||this.nodes.forEach(rF),this.isUpdating=!1,this.nodes.forEach(rO),this.nodes.forEach(rE),this.nodes.forEach(rT),this.clearAllSnapshots();let e=tf.now();eI.frameData.delta=U(0,1e3/60,e-eI.frameData.timestamp),eI.frameData.timestamp=e,eI.frameData.isProcessing=!0,eI.S6.update.process(eI.frameData),eI.S6.preRender.process(eI.frameData),eI.S6.render.process(eI.frameData),eI.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,f.read(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(rA),this.sharedNodes.forEach(rN)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,eI.Wi.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){eI.Wi.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=iC(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&(this.scroll={animationId:this.root.animationId,phase:e,isRoot:i(this.instance),offset:n(this.instance)})}resetTransform(){if(!r)return;let e=this.isLayoutDirty||this.shouldResetTransform,t=this.projectionDelta&&!rh(this.projectionDelta),n=this.getTransformTemplate(),i=n?n(this.latestValues,""):void 0,o=i!==this.prevTransformTemplateValue;e&&(t||iM(this.latestValues)||o)&&(r(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let n=this.measurePageBox(),i=this.removeElementScroll(n);return e&&(i=this.removeTransform(i)),rH((t=i).x),rH(t.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:i,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return iC();let t=e.measureViewportBox(),{scroll:n}=this.root;return n&&(iV(t.x,n.offset.x),iV(t.y,n.offset.y)),t}removeElementScroll(e){let t=iC();ro(t,e);for(let n=0;n<this.path.length;n++){let i=this.path[n],{scroll:r,options:o}=i;if(i!==this.root&&r&&o.layoutScroll){if(r.isRoot){ro(t,e);let{scroll:n}=this.root;n&&(iV(t.x,-n.offset.x),iV(t.y,-n.offset.y))}iV(t.x,r.offset.x),iV(t.y,r.offset.y)}}return t}applyTransform(e,t=!1){let n=iC();ro(n,e);for(let e=0;e<this.path.length;e++){let i=this.path[e];!t&&i.options.layoutScroll&&i.scroll&&i!==i.root&&iU(n,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),iM(i.latestValues)&&iU(n,i.latestValues)}return iM(this.latestValues)&&iU(n,this.latestValues),n}removeTransform(e){let t=iC();ro(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!n.instance||!iM(n.latestValues))continue;iI(n.latestValues)&&n.updateSnapshot();let i=iC();ro(i,n.measurePageBox()),rc(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,i)}return iM(this.latestValues)&&rc(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==eI.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t,n,i,r;let o=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=o.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=o.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=o.isSharedProjectionDirty);let s=!!this.resumingFrom||this!==o;if(!(e||s&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;let{layout:a,layoutId:l}=this.options;if(this.layout&&(a||l)){if(this.resolvedRelativeTargetAt=eI.frameData.timestamp,!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=iC(),this.relativeTargetOrigin=iC(),ix(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),ro(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=iC(),this.targetWithTransforms=iC()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),n=this.target,i=this.relativeTarget,r=this.relativeParent.target,ib(n.x,i.x,r.x),ib(n.y,i.y,r.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):ro(this.target,this.layout.layoutBox),ij(this.target,this.targetDelta)):ro(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let e=this.getClosestProjectingParent();e&&!!e.resumingFrom==!!this.resumingFrom&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=iC(),this.relativeTargetOrigin=iC(),ix(this.relativeTargetOrigin,this.target,e.target),ro(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}rx.resolvedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||iI(this.parent.latestValues)||iD(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;let t=this.getLead(),n=!!this.resumingFrom||this!==t,i=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(i=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===eI.frameData.timestamp&&(i=!1),i)return;let{layout:r,layoutId:o}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||o))return;ro(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,a=this.treeScale.y;!function(e,t,n,i=!1){let r,o;let s=n.length;if(s){t.x=t.y=1;for(let a=0;a<s;a++){o=(r=n[a]).projectionDelta;let s=r.instance;(!s||!s.style||"contents"!==s.style.display)&&(i&&r.options.layoutScroll&&r.scroll&&r!==r.root&&iU(e,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,ij(e,o)),i&&iM(r.latestValues)&&iU(e,r.latestValues))}t.x=iz(t.x),t.y=iz(t.y)}}(this.layoutCorrected,this.treeScale,this.path,n),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=iC());let{target:l}=t;if(!l){this.projectionTransform&&(this.projectionDelta=iR(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=iR(),this.projectionDeltaWithTransform=iR());let u=this.projectionTransform;i_(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=rg(this.projectionDelta,this.treeScale),(this.projectionTransform!==u||this.treeScale.x!==s||this.treeScale.y!==a)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),rx.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(e,t=!1){let n;let i=this.snapshot,r=i?i.latestValues:{},o={...this.latestValues},s=iR();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let a=iC(),l=(i?i.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),c=!u||u.members.length<=1,d=!!(l&&!c&&!0===this.options.crossfade&&!this.path.some(rz));this.animationProgress=0,this.mixTargetDelta=t=>{let i=t/1e3;if(r$(s.x,e.x,i),r$(s.y,e.y,i),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,h,p,f;ix(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,f=this.relativeTargetOrigin,rj(p.x,f.x,a.x,i),rj(p.y,f.y,a.y,i),n&&(u=this.relativeTarget,h=n,u.x.min===h.x.min&&u.x.max===h.x.max&&u.y.min===h.y.min&&u.y.max===h.y.max)&&(this.isProjectionDirty=!1),n||(n=iC()),ro(n,this.relativeTarget)}l&&(this.animationValues=o,function(e,t,n,i,r,o){r?(e.opacity=nk(0,void 0!==n.opacity?n.opacity:1,rt(i)),e.opacityExit=nk(void 0!==t.opacity?t.opacity:1,0,rn(i))):o&&(e.opacity=nk(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,i));for(let r=0;r<i4;r++){let o=`border${i8[r]}Radius`,s=re(t,o),a=re(n,o);(void 0!==s||void 0!==a)&&(s||(s=0),a||(a=0),0===s||0===a||i7(s)===i7(a)?(e[o]=Math.max(nk(i9(s),i9(a),i),0),(en.test(a)||en.test(s))&&(e[o]+="%")):e[o]=a)}(t.rotate||n.rotate)&&(e.rotate=nk(t.rotate||0,n.rotate||0,i))}(o,r,this.latestValues,i,d,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=i},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,eI.Pn)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=eI.Wi.update(()=>{i0.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){let i=D(0)?0:n4(0);return i.start(nJ("",i,1e3,n)),i.animation}(0,0,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:i,latestValues:r}=e;if(t&&n&&i){if(this!==e&&this.layout&&i&&rU(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||iC();let t=ig(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let i=ig(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+i}ro(t,n),iU(t,r),i_(this.projectionDeltaWithTransform,this.layoutCorrected,t,r)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new rm),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){var e;let{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;let{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let i=this.getStack();i&&i.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let i={};n.z&&rk("z",e,i,this.animationValues);for(let t=0;t<r_.length;t++)rk(`rotate${r_[t]}`,e,i,this.animationValues),rk(`skew${r_[t]}`,e,i,this.animationValues);for(let t in e.render(),i)e.setStaticValue(t,i[t]),this.animationValues&&(this.animationValues[t]=i[t]);e.scheduleRender()}getProjectionStyles(e){var t,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return rb;let i={visibility:""},r=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,i.opacity="",i.pointerEvents=eO(null==e?void 0:e.pointerEvents)||"",i.transform=r?r(this.latestValues,""):"none",i;let o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){let t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=eO(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!iM(this.latestValues)&&(t.transform=r?r({},""):"none",this.hasProjected=!1),t}let s=o.animationValues||o.latestValues;this.applyTransformsToTarget(),i.transform=rg(this.projectionDeltaWithTransform,this.treeScale,s),r&&(i.transform=r(s,i.transform));let{x:a,y:l}=this.projectionDelta;for(let e in i.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,o.animationValues?i.opacity=o===this?null!==(n=null!==(t=s.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:i.opacity=o===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0,O){if(void 0===s[e])continue;let{correct:t,applyTo:n}=O[e],r="none"===i.transform?s[e]:t(s[e],o);if(n){let e=n.length;for(let t=0;t<e;t++)i[n[t]]=r}else i[e]=r}return this.options.layoutId&&(i.pointerEvents=o===this?eO(null==e?void 0:e.pointerEvents)||"":"none"),i}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(rC),this.root.sharedNodes.clear()}}}function rE(e){e.updateLayout()}function rT(e){var t;let n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){let{layoutBox:t,measuredBox:i}=e.layout,{animationType:r}=e.options,o=n.source!==e.layout.source;"size"===r?iF(e=>{let i=o?n.measuredBox[e]:n.layoutBox[e],r=ig(i);i.min=t[e].min,i.max=i.min+r}):rU(r,n.layoutBox,t)&&iF(i=>{let r=o?n.measuredBox[i]:n.layoutBox[i],s=ig(t[i]);r.max=r.min+s,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[i].max=e.relativeTarget[i].min+s)});let s=iR();i_(s,t,n.layoutBox);let a=iR();o?i_(a,e.applyTransform(i,!0),n.measuredBox):i_(a,t,n.layoutBox);let l=!rh(s),u=!1;if(!e.resumeFrom){let i=e.getClosestProjectingParent();if(i&&!i.resumeFrom){let{snapshot:r,layout:o}=i;if(r&&o){let s=iC();ix(s,n.layoutBox,r.layoutBox);let a=iC();ix(a,t,o.layoutBox),rp(s,a)||(u=!0),i.options.layoutRoot&&(e.relativeTarget=a,e.relativeTargetOrigin=s,e.relativeParent=i)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function rP(e){rx.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function rR(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function rA(e){e.clearSnapshot()}function rC(e){e.clearMeasurements()}function rF(e){e.isLayoutDirty=!1}function rO(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function rL(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function rI(e){e.resolveTargetDelta()}function rM(e){e.calcProjection()}function rD(e){e.resetSkewAndRotation()}function rN(e){e.removeLeadSnapshot()}function r$(e,t,n){e.translate=nk(t.translate,0,n),e.scale=nk(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function rj(e,t,n,i){e.min=nk(t.min,n.min,i),e.max=nk(t.max,n.max,i)}function rz(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let rV={duration:.45,ease:[.4,0,.1,1]},rB=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),rW=rB("applewebkit/")&&!rB("chrome/")?Math.round:e0.Z;function rH(e){e.min=rW(e.min),e.max=rW(e.max)}function rU(e,t,n){return"position"===e||"preserve-aspect"===e&&!iv(rf(t),rf(n),.2)}let rq=rS({attachResizeListener:(e,t)=>eN(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),rG={current:void 0},rY=rS({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!rG.current){let e=new rq({});e.mount(window),e.setOptions({layoutScroll:!0}),rG.current=e}return rG.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position}),rK={current:null},rX={current:!1},rZ=new WeakMap,rQ=[...tP,tB,tX],rJ=e=>rQ.find(tT(e)),r0=Object.keys(E),r1=r0.length,r2=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],r3=b.length;class r5{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:i,blockInitialAnimation:r,visualState:o},s={}){this.resolveKeyframes=(e,t,n,i)=>new this.KeyframeResolver(e,t,n,i,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=tI,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>eI.Wi.render(this.render,!1,!0);let{latestValues:a,renderState:l}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=s,this.blockInitialAnimation=!!r,this.isControllingVariants=w(t),this.isVariantNode=x(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...c}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in c){let t=c[e];void 0!==a[e]&&D(t)&&(t.set(a[e],!1),n0(u)&&u.add(e))}}mount(e){this.current=e,rZ.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),rX.current||function(){if(rX.current=!0,T.j){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>rK.current=e.matches;e.addListener(t),t()}else rK.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||rK.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){var e;for(let e in rZ.delete(this.current),this.projection&&this.projection.unmount(),(0,eI.Pn)(this.notifyUpdate),(0,eI.Pn)(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[e].clear();for(let t in this.features)null===(e=this.features[t])||void 0===e||e.unmount();this.current=null}bindToMotionValue(e,t){let n=I.has(e),i=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&eI.Wi.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),r=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{i(),r(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...t},n,i,r){let o,s;for(let e=0;e<r1;e++){let n=r0[e],{isEnabled:i,Feature:r,ProjectionNode:a,MeasureLayout:l}=E[n];a&&(o=a),i(t)&&(!this.features[n]&&r&&(this.features[n]=new r(this)),l&&(s=l))}if(("html"===this.type||"svg"===this.type)&&!this.projection&&o){let{layoutId:e,layout:n,drag:i,dragConstraints:s,layoutScroll:a,layoutRoot:l}=t;this.projection=new o(this.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(this.parent)),this.projection.setOptions({layoutId:e,layout:n,alwaysMeasureLayout:!!i||s&&g(s),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:r,layoutScroll:a,layoutRoot:l})}return s}updateFeatures(){for(let e in this.features){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):iC()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<r2.length;t++){let n=r2[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let i=e["on"+n];i&&(this.propEventSubscriptions[n]=this.on(n,i))}this.prevMotionValues=function(e,t,n){let{willChange:i}=t;for(let r in t){let o=t[r],s=n[r];if(D(o))e.addValue(r,o),n0(i)&&i.add(r);else if(D(s))e.addValue(r,n4(o,{owner:e})),n0(i)&&i.remove(r);else if(s!==o){if(e.hasValue(r)){let t=e.getValue(r);!0===t.liveStyle?t.jump(o):t.hasAnimated||t.set(o)}else{let t=e.getStaticValue(r);e.addValue(r,n4(void 0!==t?t:o,{owner:e}))}}}for(let i in n)void 0===t[i]&&e.removeValue(i);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){let e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}let t={};for(let e=0;e<r3;e++){let n=b[e],i=this.props[n];(v(i)||!1===i)&&(t[n]=i)}return t}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=n4(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){var n;let i=void 0===this.latestValues[e]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,e))&&void 0!==n?n:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];return null!=i&&("string"==typeof i&&(tv(i)||tm(i))?i=parseFloat(i):!rJ(i)&&tX.test(t)&&(i=t3(e,t)),this.setBaseTarget(e,D(i)?i.get():i)),D(i)?i.get():i}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let n;let{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let r=eP(this.props,i,null===(t=this.presenceContext)||void 0===t?void 0:t.custom);r&&(n=r[e])}if(i&&void 0!==n)return n;let r=this.getBaseTargetFromProps(this.props,e);return void 0===r||D(r)?void 0!==this.initialValues[e]&&void 0===n?void 0:this.baseTarget[e]:r}on(e,t){return this.events[e]||(this.events[e]=new n3),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class r6 extends r5{constructor(){super(...arguments),this.KeyframeResolver=t6}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}}class r8 extends r6{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,t){if(I.has(t)){let e=t2(t);return e&&e.default||0}{let n=window.getComputedStyle(e),i=(z(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof i?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:t}){return iq(e,t)}build(e,t,n,i){eu(e,t,n,i.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return eS(e,t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;D(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}renderInstance(e,t,n,i){ew(e,t,n,i)}}class r4 extends r6{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(I.has(t)){let e=t2(t);return e&&e.default||0}return t=ex.has(t)?t:h(t),e.getAttribute(t)}measureInstanceViewportBox(){return iC()}scrapeMotionValuesFromProps(e,t,n){return eE(e,t,n)}build(e,t,n,i){ey(e,t,n,this.isSVGTag,i.transformTemplate)}renderInstance(e,t,n,i){ek(e,t,n,i)}mount(e){this.isSVGTag=eb(e.tagName),super.mount(e)}}let r9=(e,t)=>F(e)?new r4(t,{enableHardwareAcceleration:!1}):new r8(t,{allowProjection:e!==s.Fragment,enableHardwareAcceleration:!0}),r7={animation:{Feature:is},exit:{Feature:il},inView:{Feature:e9},tap:{Feature:e2},focus:{Feature:eQ},hover:{Feature:eZ},pan:{Feature:iJ},drag:{Feature:iZ,ProjectionNode:rY,MeasureLayout:i5},layout:{ProjectionNode:rY,MeasureLayout:i5}},oe=function(e){function t(t,n={}){return function({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:i,Component:r}){e&&function(e){for(let t in e)E[t]={...E[t],...e[t]}}(e);let h=(0,s.forwardRef)(function(h,m){var y;let _;let b={...(0,s.useContext)(a._),...h,layoutId:function({layoutId:e}){let t=(0,s.useContext)(P.p).id;return t&&void 0!==e?t+"-"+e:e}(h)},{isStatic:x}=b,S=function(e){let{initial:t,animate:n}=function(e,t){if(w(e)){let{initial:t,animate:n}=e;return{initial:!1===t||v(t)?t:void 0,animate:v(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,s.useContext)(l));return(0,s.useMemo)(()=>({initial:t,animate:n}),[k(t),k(n)])}(h),E=i(h,x);if(!x&&T.j){S.visualElement=function(e,t,n,i){let{visualElement:r}=(0,s.useContext)(l),o=(0,s.useContext)(d),h=(0,s.useContext)(u.O),m=(0,s.useContext)(a._).reducedMotion,g=(0,s.useRef)();i=i||o.renderer,!g.current&&i&&(g.current=i(e,{visualState:t,parent:r,props:n,presenceContext:h,blockInitialAnimation:!!h&&!1===h.initial,reducedMotionConfig:m}));let v=g.current;(0,s.useInsertionEffect)(()=>{v&&v.update(n,h)});let y=(0,s.useRef)(!!(n[p]&&!window.HandoffComplete));return(0,c.L)(()=>{v&&(f.render(v.render),y.current&&v.animationState&&v.animationState.animateChanges())}),(0,s.useEffect)(()=>{v&&(v.updateFeatures(),!y.current&&v.animationState&&v.animationState.animateChanges(),y.current&&(y.current=!1,window.HandoffComplete=!0))}),v}(r,E,b,t);let n=(0,s.useContext)(R),i=(0,s.useContext)(d).strict;S.visualElement&&(_=S.visualElement.loadFeatures(b,i,e,n))}return(0,o.jsxs)(l.Provider,{value:S,children:[_&&S.visualElement?(0,o.jsx)(_,{visualElement:S.visualElement,...b}):null,n(r,h,(y=S.visualElement,(0,s.useCallback)(e=>{e&&E.mount&&E.mount(e),y&&(e?y.mount(e):y.unmount()),m&&("function"==typeof m?m(e):g(m)&&(m.current=e))},[y])),E,x,S.visualElement)]})});return h[A]=r,h}(e(t,n))}if("undefined"==typeof Proxy)return t;let n=new Map;return new Proxy(t,{get:(e,i)=>(n.has(i)||n.set(i,t(i)),n.get(i))})}((e,t)=>(function(e,{forwardMotionProps:t=!1},n,i){return{...F(e)?eM:eD,preloadedFeatures:n,useRender:function(e=!1){return(t,n,i,{latestValues:r},o)=>{let a=(F(t)?function(e,t,n,i){let r=(0,s.useMemo)(()=>{let n=e_();return ey(n,t,{enableHardwareAcceleration:!1},eb(i),e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};ed(t,e.style,e),r.style={...t,...r.style}}return r}:function(e,t,n){let i={},r=function(e,t,n){let i=e.style||{},r={};return ed(r,i,e),Object.assign(r,function({transformTemplate:e},t,n){return(0,s.useMemo)(()=>{let i=ec();return eu(i,t,{enableHardwareAcceleration:!n},e),Object.assign({},i.vars,i.style)},[t])}(e,t,n)),r}(e,t,n);return e.drag&&!1!==e.dragListener&&(i.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(i.tabIndex=0),i.style=r,i})(n,r,o,t),l=function(e,t,n){let i={};for(let r in e)("values"!==r||"object"!=typeof e.values)&&(ef(r)||!0===n&&ep(r)||!t&&!ep(r)||e.draggable&&r.startsWith("onDrag"))&&(i[r]=e[r]);return i}(n,"string"==typeof t,e),u=t!==s.Fragment?{...l,...a,ref:i}:{},{children:c}=n,d=(0,s.useMemo)(()=>D(c)?c.get():c,[c]);return(0,s.createElement)(t,{...u,children:d})}}(t),createVisualElement:i,Component:e}})(e,t,r7,r9))},9106:function(e,t,n){"use strict";n.d(t,{c:function(){return i}});let i={skipAnimations:!1,useManualTiming:!1}},120:function(e,t,n){"use strict";n.d(t,{K:function(){return r},k:function(){return o}});var i=n(8921);let r=i.Z,o=i.Z},8280:function(e,t,n){"use strict";n.d(t,{j:function(){return i}});let i="undefined"!=typeof document},8921:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});let i=e=>e},6730:function(e,t,n){"use strict";n.d(t,{h:function(){return r}});var i=n(2983);function r(e){let t=(0,i.useRef)(null);return null===t.current&&(t.current=e()),t.current}},7974:function(e,t,n){"use strict";n.d(t,{L:function(){return r}});var i=n(2983);let r=n(8280).j?i.useLayoutEffect:i.useEffect},3113:function(e,t,n){"use strict";n.d(t,{j5:function(){return s}});var i=n(7458),r=n(63),o=n(506);function s(e){function t(t){return(0,i.jsx)(e,{...function(e){let{_superjson:t,...n}=e;return o.ZP.deserialize({json:n,meta:t})}(t)})}return r(t,e),t}},1078:function(e,t,n){"use strict";n.d(t,{u:function(){return eE}});var i=n(2983);let r=Math.min,o=Math.max,s=Math.round,a=Math.floor,l=e=>({x:e,y:e}),u={left:"right",right:"left",bottom:"top",top:"bottom"},c={start:"end",end:"start"};function d(e,t){return"function"==typeof e?e(t):e}function h(e){return e.split("-")[0]}function p(e){return e.split("-")[1]}function f(e){return"x"===e?"y":"x"}function m(e){return"y"===e?"height":"width"}function g(e){return["top","bottom"].includes(h(e))?"y":"x"}function v(e){return e.replace(/start|end/g,e=>c[e])}function y(e){return e.replace(/left|right|bottom|top/g,e=>u[e])}function _(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function b(e){let{x:t,y:n,width:i,height:r}=e;return{width:i,height:r,top:n,left:t,right:t+i,bottom:n+r,x:t,y:n}}function w(e,t,n){let i,{reference:r,floating:o}=e,s=g(t),a=f(g(t)),l=m(a),u=h(t),c="y"===s,d=r.x+r.width/2-o.width/2,v=r.y+r.height/2-o.height/2,y=r[l]/2-o[l]/2;switch(u){case"top":i={x:d,y:r.y-o.height};break;case"bottom":i={x:d,y:r.y+r.height};break;case"right":i={x:r.x+r.width,y:v};break;case"left":i={x:r.x-o.width,y:v};break;default:i={x:r.x,y:r.y}}switch(p(t)){case"start":i[a]-=y*(n&&c?-1:1);break;case"end":i[a]+=y*(n&&c?-1:1)}return i}let x=async(e,t,n)=>{let{placement:i="bottom",strategy:r="absolute",middleware:o=[],platform:s}=n,a=o.filter(Boolean),l=await (null==s.isRTL?void 0:s.isRTL(t)),u=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:c,y:d}=w(u,i,l),h=i,p={},f=0;for(let n=0;n<a.length;n++){let{name:o,fn:m}=a[n],{x:g,y:v,data:y,reset:_}=await m({x:c,y:d,initialPlacement:i,placement:h,strategy:r,middlewareData:p,rects:u,platform:s,elements:{reference:e,floating:t}});c=null!=g?g:c,d=null!=v?v:d,p={...p,[o]:{...p[o],...y}},_&&f<=50&&(f++,"object"==typeof _&&(_.placement&&(h=_.placement),_.rects&&(u=!0===_.rects?await s.getElementRects({reference:e,floating:t,strategy:r}):_.rects),{x:c,y:d}=w(u,h,l)),n=-1)}return{x:c,y:d,placement:h,strategy:r,middlewareData:p}};async function k(e,t){var n;void 0===t&&(t={});let{x:i,y:r,platform:o,rects:s,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:h="floating",altBoundary:p=!1,padding:f=0}=d(t,e),m=_(f),g=a[p?"floating"===h?"reference":"floating":h],v=b(await o.getClippingRect({element:null==(n=await (null==o.isElement?void 0:o.isElement(g)))||n?g:g.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:l})),y="floating"===h?{x:i,y:r,width:s.floating.width,height:s.floating.height}:s.reference,w=await (null==o.getOffsetParent?void 0:o.getOffsetParent(a.floating)),x=await (null==o.isElement?void 0:o.isElement(w))&&await (null==o.getScale?void 0:o.getScale(w))||{x:1,y:1},k=b(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:y,offsetParent:w,strategy:l}):y);return{top:(v.top-k.top+m.top)/x.y,bottom:(k.bottom-v.bottom+m.bottom)/x.y,left:(v.left-k.left+m.left)/x.x,right:(k.right-v.right+m.right)/x.x}}async function S(e,t){let{placement:n,platform:i,elements:r}=e,o=await (null==i.isRTL?void 0:i.isRTL(r.floating)),s=h(n),a=p(n),l="y"===g(n),u=["left","top"].includes(s)?-1:1,c=o&&l?-1:1,f=d(t,e),{mainAxis:m,crossAxis:v,alignmentAxis:y}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&"number"==typeof y&&(v="end"===a?-1*y:y),l?{x:v*c,y:m*u}:{x:m*u,y:v*c}}function E(e){return R(e)?(e.nodeName||"").toLowerCase():"#document"}function T(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function P(e){var t;return null==(t=(R(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function R(e){return e instanceof Node||e instanceof T(e).Node}function A(e){return e instanceof Element||e instanceof T(e).Element}function C(e){return e instanceof HTMLElement||e instanceof T(e).HTMLElement}function F(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof T(e).ShadowRoot)}function O(e){let{overflow:t,overflowX:n,overflowY:i,display:r}=D(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!["inline","contents"].includes(r)}function L(e){let t=I(),n=D(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function I(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function M(e){return["html","body","#document"].includes(E(e))}function D(e){return T(e).getComputedStyle(e)}function N(e){return A(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function $(e){if("html"===E(e))return e;let t=e.assignedSlot||e.parentNode||F(e)&&e.host||P(e);return F(t)?t.host:t}function j(e,t,n){var i;void 0===t&&(t=[]),void 0===n&&(n=!0);let r=function e(t){let n=$(t);return M(n)?t.ownerDocument?t.ownerDocument.body:t.body:C(n)&&O(n)?n:e(n)}(e),o=r===(null==(i=e.ownerDocument)?void 0:i.body),s=T(r);return o?t.concat(s,s.visualViewport||[],O(r)?r:[],s.frameElement&&n?j(s.frameElement):[]):t.concat(r,j(r,[],n))}function z(e){let t=D(e),n=parseFloat(t.width)||0,i=parseFloat(t.height)||0,r=C(e),o=r?e.offsetWidth:n,a=r?e.offsetHeight:i,l=s(n)!==o||s(i)!==a;return l&&(n=o,i=a),{width:n,height:i,$:l}}function V(e){return A(e)?e:e.contextElement}function B(e){let t=V(e);if(!C(t))return l(1);let n=t.getBoundingClientRect(),{width:i,height:r,$:o}=z(t),a=(o?s(n.width):n.width)/i,u=(o?s(n.height):n.height)/r;return a&&Number.isFinite(a)||(a=1),u&&Number.isFinite(u)||(u=1),{x:a,y:u}}let W=l(0);function H(e){let t=T(e);return I()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:W}function U(e,t,n,i){var r;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),s=V(e),a=l(1);t&&(i?A(i)&&(a=B(i)):a=B(e));let u=(void 0===(r=n)&&(r=!1),i&&(!r||i===T(s))&&r)?H(s):l(0),c=(o.left+u.x)/a.x,d=(o.top+u.y)/a.y,h=o.width/a.x,p=o.height/a.y;if(s){let e=T(s),t=i&&A(i)?T(i):i,n=e,r=n.frameElement;for(;r&&i&&t!==n;){let e=B(r),t=r.getBoundingClientRect(),i=D(r),o=t.left+(r.clientLeft+parseFloat(i.paddingLeft))*e.x,s=t.top+(r.clientTop+parseFloat(i.paddingTop))*e.y;c*=e.x,d*=e.y,h*=e.x,p*=e.y,c+=o,d+=s,r=(n=T(r)).frameElement}}return b({width:h,height:p,x:c,y:d})}let q=[":popover-open",":modal"];function G(e){return q.some(t=>{try{return e.matches(t)}catch(e){return!1}})}function Y(e){return U(P(e)).left+N(e).scrollLeft}function K(e,t,n){let i;if("viewport"===t)i=function(e,t){let n=T(e),i=P(e),r=n.visualViewport,o=i.clientWidth,s=i.clientHeight,a=0,l=0;if(r){o=r.width,s=r.height;let e=I();(!e||e&&"fixed"===t)&&(a=r.offsetLeft,l=r.offsetTop)}return{width:o,height:s,x:a,y:l}}(e,n);else if("document"===t)i=function(e){let t=P(e),n=N(e),i=e.ownerDocument.body,r=o(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),s=o(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight),a=-n.scrollLeft+Y(e),l=-n.scrollTop;return"rtl"===D(i).direction&&(a+=o(t.clientWidth,i.clientWidth)-r),{width:r,height:s,x:a,y:l}}(P(e));else if(A(t))i=function(e,t){let n=U(e,!0,"fixed"===t),i=n.top+e.clientTop,r=n.left+e.clientLeft,o=C(e)?B(e):l(1),s=e.clientWidth*o.x;return{width:s,height:e.clientHeight*o.y,x:r*o.x,y:i*o.y}}(t,n);else{let n=H(e);i={...t,x:t.x-n.x,y:t.y-n.y}}return b(i)}function X(e){return"static"===D(e).position}function Z(e,t){return C(e)&&"fixed"!==D(e).position?t?t(e):e.offsetParent:null}function Q(e,t){let n=T(e);if(G(e))return n;if(!C(e)){let t=$(e);for(;t&&!M(t);){if(A(t)&&!X(t))return t;t=$(t)}return n}let i=Z(e,t);for(;i&&["table","td","th"].includes(E(i))&&X(i);)i=Z(i,t);return i&&M(i)&&X(i)&&!L(i)?n:i||function(e){let t=$(e);for(;C(t)&&!M(t);){if(L(t))return t;t=$(t)}return null}(e)||n}let J=async function(e){let t=this.getOffsetParent||Q,n=this.getDimensions,i=await n(e.floating);return{reference:function(e,t,n){let i=C(t),r=P(t),o="fixed"===n,s=U(e,!0,o,t),a={scrollLeft:0,scrollTop:0},u=l(0);if(i||!i&&!o){if(("body"!==E(t)||O(r))&&(a=N(t)),i){let e=U(t,!0,o,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else r&&(u.x=Y(r))}return{x:s.left+a.scrollLeft-u.x,y:s.top+a.scrollTop-u.y,width:s.width,height:s.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},ee={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:i,strategy:r}=e,o="fixed"===r,s=P(i),a=!!t&&G(t.floating);if(i===s||a&&o)return n;let u={scrollLeft:0,scrollTop:0},c=l(1),d=l(0),h=C(i);if((h||!h&&!o)&&(("body"!==E(i)||O(s))&&(u=N(i)),C(i))){let e=U(i);c=B(i),d.x=e.x+i.clientLeft,d.y=e.y+i.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+d.x,y:n.y*c.y-u.scrollTop*c.y+d.y}},getDocumentElement:P,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:i,strategy:s}=e,a=[..."clippingAncestors"===n?G(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let i=j(e,[],!1).filter(e=>A(e)&&"body"!==E(e)),r=null,o="fixed"===D(e).position,s=o?$(e):e;for(;A(s)&&!M(s);){let t=D(s),n=L(s);n||"fixed"!==t.position||(r=null),(o?!n&&!r:!n&&"static"===t.position&&!!r&&["absolute","fixed"].includes(r.position)||O(s)&&!n&&function e(t,n){let i=$(t);return!(i===n||!A(i)||M(i))&&("fixed"===D(i).position||e(i,n))}(e,s))?i=i.filter(e=>e!==s):r=t,s=$(s)}return t.set(e,i),i}(t,this._c):[].concat(n),i],l=a[0],u=a.reduce((e,n)=>{let i=K(t,n,s);return e.top=o(i.top,e.top),e.right=r(i.right,e.right),e.bottom=r(i.bottom,e.bottom),e.left=o(i.left,e.left),e},K(t,l,s));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}},getOffsetParent:Q,getElementRects:J,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=z(e);return{width:t,height:n}},getScale:B,isElement:A,isRTL:function(e){return"rtl"===D(e).direction}},et=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,i;let{x:r,y:o,placement:s,middlewareData:a}=t,l=await S(t,e);return s===(null==(n=a.offset)?void 0:n.placement)&&null!=(i=a.arrow)&&i.alignmentOffset?{}:{x:r+l.x,y:o+l.y,data:{...l,placement:s}}}}},en=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:i,placement:s}=t,{mainAxis:a=!0,crossAxis:l=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=d(e,t),p={x:n,y:i},m=await k(t,c),v=g(h(s)),y=f(v),_=p[y],b=p[v];if(a){let e="y"===y?"top":"left",t="y"===y?"bottom":"right",n=_+m[e],i=_-m[t];_=o(n,r(_,i))}if(l){let e="y"===v?"top":"left",t="y"===v?"bottom":"right",n=b+m[e],i=b-m[t];b=o(n,r(b,i))}let w=u.fn({...t,[y]:_,[v]:b});return{...w,data:{x:w.x-n,y:w.y-i}}}}},ei=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,i,r,o,s;let{placement:a,middlewareData:l,rects:u,initialPlacement:c,platform:_,elements:b}=t,{mainAxis:w=!0,crossAxis:x=!0,fallbackPlacements:S,fallbackStrategy:E="bestFit",fallbackAxisSideDirection:T="none",flipAlignment:P=!0,...R}=d(e,t);if(null!=(n=l.arrow)&&n.alignmentOffset)return{};let A=h(a),C=h(c)===c,F=await (null==_.isRTL?void 0:_.isRTL(b.floating)),O=S||(C||!P?[y(c)]:function(e){let t=y(e);return[v(e),t,v(t)]}(c));S||"none"===T||O.push(...function(e,t,n,i){let r=p(e),o=function(e,t,n){let i=["left","right"],r=["right","left"];switch(e){case"top":case"bottom":if(n)return t?r:i;return t?i:r;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(h(e),"start"===n,i);return r&&(o=o.map(e=>e+"-"+r),t&&(o=o.concat(o.map(v)))),o}(c,P,T,F));let L=[c,...O],I=await k(t,R),M=[],D=(null==(i=l.flip)?void 0:i.overflows)||[];if(w&&M.push(I[A]),x){let e=function(e,t,n){void 0===n&&(n=!1);let i=p(e),r=f(g(e)),o=m(r),s="x"===r?i===(n?"end":"start")?"right":"left":"start"===i?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=y(s)),[s,y(s)]}(a,u,F);M.push(I[e[0]],I[e[1]])}if(D=[...D,{placement:a,overflows:M}],!M.every(e=>e<=0)){let e=((null==(r=l.flip)?void 0:r.index)||0)+1,t=L[e];if(t)return{data:{index:e,overflows:D},reset:{placement:t}};let n=null==(o=D.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!n)switch(E){case"bestFit":{let e=null==(s=D.map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:s[0];e&&(n=e);break}case"initialPlacement":n=c}if(a!==n)return{reset:{placement:n}}}return{}}}},er=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:i,placement:s,rects:a,platform:l,elements:u,middlewareData:c}=t,{element:h,padding:v=0}=d(e,t)||{};if(null==h)return{};let y=_(v),b={x:n,y:i},w=f(g(s)),x=m(w),k=await l.getDimensions(h),S="y"===w,E=S?"clientHeight":"clientWidth",T=a.reference[x]+a.reference[w]-b[w]-a.floating[x],P=b[w]-a.reference[w],R=await (null==l.getOffsetParent?void 0:l.getOffsetParent(h)),A=R?R[E]:0;A&&await (null==l.isElement?void 0:l.isElement(R))||(A=u.floating[E]||a.floating[x]);let C=A/2-k[x]/2-1,F=r(y[S?"top":"left"],C),O=r(y[S?"bottom":"right"],C),L=A-k[x]-O,I=A/2-k[x]/2+(T/2-P/2),M=o(F,r(I,L)),D=!c.arrow&&null!=p(s)&&I!==M&&a.reference[x]/2-(I<F?F:O)-k[x]/2<0,N=D?I<F?I-F:I-L:0;return{[w]:b[w]+N,data:{[w]:M,centerOffset:I-M-N,...D&&{alignmentOffset:N}},reset:D}}}),eo=(e,t,n)=>{let i=new Map,r={platform:ee,...n},o={...r.platform,_c:i};return x(e,t,{...r,platform:o})};var es=n(1865),ea=n(6468);/*
* React Tooltip
* {@link https://github.com/ReactTooltip/react-tooltip}
* @copyright ReactTooltip Team
* @license MIT
*/let el={core:!1,base:!1};function eu({css:e,id:t="react-tooltip-base-styles",type:n="base",ref:i}){var r,o;if(!e||"undefined"==typeof document||el[n]||"core"===n&&void 0!==ea&&(null===(r=null==ea?void 0:ea.env)||void 0===r?void 0:r.REACT_TOOLTIP_DISABLE_CORE_STYLES)||"base"!==n&&void 0!==ea&&(null===(o=null==ea?void 0:ea.env)||void 0===o?void 0:o.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;"core"===n&&(t="react-tooltip-core-styles"),i||(i={});let{insertAt:s}=i;if(document.getElementById(t))return void console.warn(`[react-tooltip] Element with id '${t}' already exists. Call \`removeStyle()\` first`);let a=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.id=t,l.type="text/css","top"===s&&a.firstChild?a.insertBefore(l,a.firstChild):a.appendChild(l),l.styleSheet?l.styleSheet.cssText=e:l.appendChild(document.createTextNode(e)),el[n]=!0}let ec=async({elementReference:e=null,tooltipReference:t=null,tooltipArrowReference:n=null,place:i="top",offset:r=10,strategy:o="absolute",middlewares:s=[et(Number(r)),ei({fallbackAxisSideDirection:"start"}),en({padding:5})],border:a})=>e&&null!==t?n?(s.push(er({element:n,padding:5})),eo(e,t,{placement:i,strategy:o,middleware:s}).then(({x:e,y:t,placement:n,middlewareData:i})=>{var r,o;let s={left:`${e}px`,top:`${t}px`,border:a},{x:l,y:u}=null!==(r=i.arrow)&&void 0!==r?r:{x:0,y:0},c=null!==(o=({top:"bottom",right:"left",bottom:"top",left:"right"})[n.split("-")[0]])&&void 0!==o?o:"bottom",d=0;if(a){let e=`${a}`.match(/(\d+)px/);d=(null==e?void 0:e[1])?Number(e[1]):1}return{tooltipStyles:s,tooltipArrowStyles:{left:null!=l?`${l}px`:"",top:null!=u?`${u}px`:"",right:"",bottom:"",...a&&{borderBottom:a,borderRight:a},[c]:`-${4+d}px`},place:n}})):eo(e,t,{placement:"bottom",strategy:o,middleware:s}).then(({x:e,y:t,placement:n})=>({tooltipStyles:{left:`${e}px`,top:`${t}px`},tooltipArrowStyles:{},place:n})):{tooltipStyles:{},tooltipArrowStyles:{},place:i},ed=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),eh=(e,t,n)=>{let i=null,r=function(...r){let o=()=>{i=null,n||e.apply(this,r)};n&&!i&&(e.apply(this,r),i=setTimeout(o,t)),n||(i&&clearTimeout(i),i=setTimeout(o,t))};return r.cancel=()=>{i&&(clearTimeout(i),i=null)},r},ep=e=>null!==e&&!Array.isArray(e)&&"object"==typeof e,ef=(e,t)=>{if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every((e,n)=>ef(e,t[n]));if(Array.isArray(e)!==Array.isArray(t))return!1;if(!ep(e)||!ep(t))return e===t;let n=Object.keys(e),i=Object.keys(t);return n.length===i.length&&n.every(n=>ef(e[n],t[n]))},em=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;let t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some(e=>{let n=t.getPropertyValue(e);return"auto"===n||"scroll"===n})},eg=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(em(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},ev="undefined"!=typeof window?i.useLayoutEffect:i.useEffect,ey={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},e_=(0,i.createContext)({getTooltipData:()=>ey});function eb(e="DEFAULT_TOOLTIP_ID"){return(0,i.useContext)(e_).getTooltipData(e)}var ew={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},ex={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};let ek=({forwardRef:e,id:t,className:n,classNameArrow:s,variant:l="dark",anchorId:u,anchorSelect:c,place:d="top",offset:h=10,events:p=["hover"],openOnClick:f=!1,positionStrategy:m="absolute",middlewares:g,wrapper:v,delayShow:y=0,delayHide:_=0,float:b=!1,hidden:w=!1,noArrow:x=!1,clickable:k=!1,closeOnEsc:S=!1,closeOnScroll:E=!1,closeOnResize:T=!1,openEvents:R,closeEvents:A,globalCloseEvents:C,imperativeModeOnly:F,style:O,position:L,afterShow:I,afterHide:M,content:D,contentWrapperRef:N,isOpen:$,defaultIsOpen:z=!1,setIsOpen:B,activeAnchor:W,setActiveAnchor:H,border:q,opacity:G,arrowColor:Y,role:K="tooltip"})=>{var X;let Z=(0,i.useRef)(null),Q=(0,i.useRef)(null),J=(0,i.useRef)(null),ee=(0,i.useRef)(null),et=(0,i.useRef)(null),[en,ei]=(0,i.useState)({tooltipStyles:{},tooltipArrowStyles:{},place:d}),[er,eo]=(0,i.useState)(!1),[ea,el]=(0,i.useState)(!1),[eu,ed]=(0,i.useState)(null),ep=(0,i.useRef)(!1),em=(0,i.useRef)(null),{anchorRefs:ey,setActiveAnchor:e_}=eb(t),ek=(0,i.useRef)(!1),[eS,eE]=(0,i.useState)([]),eT=(0,i.useRef)(!1),eP=f||p.includes("click"),eR=eP||(null==R?void 0:R.click)||(null==R?void 0:R.dblclick)||(null==R?void 0:R.mousedown),eA=R?{...R}:{mouseenter:!0,focus:!0,click:!1,dblclick:!1,mousedown:!1};!R&&eP&&Object.assign(eA,{mouseenter:!1,focus:!1,click:!0});let eC=A?{...A}:{mouseleave:!0,blur:!0,click:!1,dblclick:!1,mouseup:!1};!A&&eP&&Object.assign(eC,{mouseleave:!1,blur:!1});let eF=C?{...C}:{escape:S||!1,scroll:E||!1,resize:T||!1,clickOutsideAnchor:eR||!1};F&&(Object.assign(eA,{mouseenter:!1,focus:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(eC,{mouseleave:!1,blur:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(eF,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),ev(()=>(eT.current=!0,()=>{eT.current=!1}),[]);let eO=e=>{eT.current&&(e&&el(!0),setTimeout(()=>{eT.current&&(null==B||B(e),void 0===$&&eo(e))},10))};(0,i.useEffect)(()=>{if(void 0===$)return()=>null;$&&el(!0);let e=setTimeout(()=>{eo($)},10);return()=>{clearTimeout(e)}},[$]),(0,i.useEffect)(()=>{if(er!==ep.current){if(et.current&&clearTimeout(et.current),ep.current=er,er)null==I||I();else{let e=(e=>{let t=e.match(/^([\d.]+)(ms|s)$/);if(!t)return 0;let[,n,i]=t;return Number(n)*("ms"===i?1:1e3)})(getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay"));et.current=setTimeout(()=>{el(!1),ed(null),null==M||M()},e+25)}}},[er]);let eL=e=>{ei(t=>ef(t,e)?t:e)},eI=(e=y)=>{J.current&&clearTimeout(J.current),ea?eO(!0):J.current=setTimeout(()=>{eO(!0)},e)},eM=(e=_)=>{ee.current&&clearTimeout(ee.current),ee.current=setTimeout(()=>{ek.current||eO(!1)},e)},eD=e=>{var t;if(!e)return;let n=null!==(t=e.currentTarget)&&void 0!==t?t:e.target;if(!(null==n?void 0:n.isConnected))return H(null),void e_({current:null});y?eI():eO(!0),H(n),e_({current:n}),ee.current&&clearTimeout(ee.current)},eN=()=>{k?eM(_||100):_?eM():eO(!1),J.current&&clearTimeout(J.current)},e$=({x:e,y:t})=>{var n;ec({place:null!==(n=null==eu?void 0:eu.place)&&void 0!==n?n:d,offset:h,elementReference:{getBoundingClientRect:()=>({x:e,y:t,width:0,height:0,top:t,left:e,right:e,bottom:t})},tooltipReference:Z.current,tooltipArrowReference:Q.current,strategy:m,middlewares:g,border:q}).then(e=>{eL(e)})},ej=e=>{if(!e)return;let t={x:e.clientX,y:e.clientY};e$(t),em.current=t},ez=e=>{var t;if(!er)return;let n=e.target;n.isConnected&&(null===(t=Z.current)||void 0===t||!t.contains(n))&&([document.querySelector(`[id='${u}']`),...eS].some(e=>null==e?void 0:e.contains(n))||(eO(!1),J.current&&clearTimeout(J.current)))},eV=eh(eD,50,!0),eB=eh(eN,50,!0),eW=e=>{eB.cancel(),eV(e)},eH=()=>{eV.cancel(),eB()},eU=(0,i.useCallback)(()=>{var e,t;let n=null!==(e=null==eu?void 0:eu.position)&&void 0!==e?e:L;n?e$(n):b?em.current&&e$(em.current):(null==W?void 0:W.isConnected)&&ec({place:null!==(t=null==eu?void 0:eu.place)&&void 0!==t?t:d,offset:h,elementReference:W,tooltipReference:Z.current,tooltipArrowReference:Q.current,strategy:m,middlewares:g,border:q}).then(e=>{eT.current&&eL(e)})},[er,W,D,O,d,null==eu?void 0:eu.place,h,m,L,null==eu?void 0:eu.position,b]);(0,i.useEffect)(()=>{var e,t;let n=new Set(ey);eS.forEach(e=>{n.add({current:e})});let i=document.querySelector(`[id='${u}']`);i&&n.add({current:i});let s=()=>{eO(!1)},l=eg(W),c=eg(Z.current);eF.scroll&&(window.addEventListener("scroll",s),null==l||l.addEventListener("scroll",s),null==c||c.addEventListener("scroll",s));let d=null;eF.resize?window.addEventListener("resize",s):W&&Z.current&&(d=function(e,t,n,i){let s;void 0===i&&(i={});let{ancestorScroll:l=!0,ancestorResize:u=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:d="function"==typeof IntersectionObserver,animationFrame:h=!1}=i,p=V(e),f=l||u?[...p?j(p):[],...j(t)]:[];f.forEach(e=>{l&&e.addEventListener("scroll",n,{passive:!0}),u&&e.addEventListener("resize",n)});let m=p&&d?function(e,t){let n,i=null,s=P(e);function l(){var e;clearTimeout(n),null==(e=i)||e.disconnect(),i=null}return function u(c,d){void 0===c&&(c=!1),void 0===d&&(d=1),l();let{left:h,top:p,width:f,height:m}=e.getBoundingClientRect();if(c||t(),!f||!m)return;let g=a(p),v=a(s.clientWidth-(h+f)),y={rootMargin:-g+"px "+-v+"px "+-a(s.clientHeight-(p+m))+"px "+-a(h)+"px",threshold:o(0,r(1,d))||1},_=!0;function b(e){let t=e[0].intersectionRatio;if(t!==d){if(!_)return u();t?u(!1,t):n=setTimeout(()=>{u(!1,1e-7)},1e3)}_=!1}try{i=new IntersectionObserver(b,{...y,root:s.ownerDocument})}catch(e){i=new IntersectionObserver(b,y)}i.observe(e)}(!0),l}(p,n):null,g=-1,v=null;c&&(v=new ResizeObserver(e=>{let[i]=e;i&&i.target===p&&v&&(v.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var e;null==(e=v)||e.observe(t)})),n()}),p&&!h&&v.observe(p),v.observe(t));let y=h?U(e):null;return h&&function t(){let i=U(e);y&&(i.x!==y.x||i.y!==y.y||i.width!==y.width||i.height!==y.height)&&n(),y=i,s=requestAnimationFrame(t)}(),n(),()=>{var e;f.forEach(e=>{l&&e.removeEventListener("scroll",n),u&&e.removeEventListener("resize",n)}),null==m||m(),null==(e=v)||e.disconnect(),v=null,h&&cancelAnimationFrame(s)}}(W,Z.current,eU,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));let h=e=>{"Escape"===e.key&&eO(!1)};eF.escape&&window.addEventListener("keydown",h),eF.clickOutsideAnchor&&window.addEventListener("click",ez);let p=[],f=e=>{er&&(null==e?void 0:e.target)===W||eD(e)},m=e=>{er&&(null==e?void 0:e.target)===W&&eN()},g=["mouseenter","mouseleave","focus","blur"],v=["click","dblclick","mousedown","mouseup"];Object.entries(eA).forEach(([e,t])=>{t&&(g.includes(e)?p.push({event:e,listener:eW}):v.includes(e)&&p.push({event:e,listener:f}))}),Object.entries(eC).forEach(([e,t])=>{t&&(g.includes(e)?p.push({event:e,listener:eH}):v.includes(e)&&p.push({event:e,listener:m}))}),b&&p.push({event:"pointermove",listener:ej});let y=()=>{ek.current=!0},_=()=>{ek.current=!1,eN()};return k&&!eR&&(null===(e=Z.current)||void 0===e||e.addEventListener("mouseenter",y),null===(t=Z.current)||void 0===t||t.addEventListener("mouseleave",_)),p.forEach(({event:e,listener:t})=>{n.forEach(n=>{var i;null===(i=n.current)||void 0===i||i.addEventListener(e,t)})}),()=>{var e,t;eF.scroll&&(window.removeEventListener("scroll",s),null==l||l.removeEventListener("scroll",s),null==c||c.removeEventListener("scroll",s)),eF.resize?window.removeEventListener("resize",s):null==d||d(),eF.clickOutsideAnchor&&window.removeEventListener("click",ez),eF.escape&&window.removeEventListener("keydown",h),k&&!eR&&(null===(e=Z.current)||void 0===e||e.removeEventListener("mouseenter",y),null===(t=Z.current)||void 0===t||t.removeEventListener("mouseleave",_)),p.forEach(({event:e,listener:t})=>{n.forEach(n=>{var i;null===(i=n.current)||void 0===i||i.removeEventListener(e,t)})})}},[W,eU,ea,ey,eS,R,A,C,eP,y,_]),(0,i.useEffect)(()=>{var e,n;let i=null!==(n=null!==(e=null==eu?void 0:eu.anchorSelect)&&void 0!==e?e:c)&&void 0!==n?n:"";!i&&t&&(i=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`);let r=new MutationObserver(e=>{let n=[],r=[];e.forEach(e=>{if("attributes"===e.type&&"data-tooltip-id"===e.attributeName&&(e.target.getAttribute("data-tooltip-id")===t?n.push(e.target):e.oldValue===t&&r.push(e.target)),"childList"===e.type){if(W){let t=[...e.removedNodes].filter(e=>1===e.nodeType);if(i)try{r.push(...t.filter(e=>e.matches(i))),r.push(...t.flatMap(e=>[...e.querySelectorAll(i)]))}catch(e){}t.some(e=>{var t;return!!(null===(t=null==e?void 0:e.contains)||void 0===t?void 0:t.call(e,W))&&(el(!1),eO(!1),H(null),J.current&&clearTimeout(J.current),ee.current&&clearTimeout(ee.current),!0)})}if(i)try{let t=[...e.addedNodes].filter(e=>1===e.nodeType);n.push(...t.filter(e=>e.matches(i))),n.push(...t.flatMap(e=>[...e.querySelectorAll(i)]))}catch(e){}}}),(n.length||r.length)&&eE(e=>[...e.filter(e=>!r.includes(e)),...n])});return r.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{r.disconnect()}},[t,c,null==eu?void 0:eu.anchorSelect,W]),(0,i.useEffect)(()=>{eU()},[eU]),(0,i.useEffect)(()=>{if(!(null==N?void 0:N.current))return()=>null;let e=new ResizeObserver(()=>{setTimeout(()=>eU())});return e.observe(N.current),()=>{e.disconnect()}},[D,null==N?void 0:N.current]),(0,i.useEffect)(()=>{var e;let t=document.querySelector(`[id='${u}']`),n=[...eS,t];W&&n.includes(W)||H(null!==(e=eS[0])&&void 0!==e?e:t)},[u,eS,W]),(0,i.useEffect)(()=>(z&&eO(!0),()=>{J.current&&clearTimeout(J.current),ee.current&&clearTimeout(ee.current)}),[]),(0,i.useEffect)(()=>{var e;let n=null!==(e=null==eu?void 0:eu.anchorSelect)&&void 0!==e?e:c;if(!n&&t&&(n=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`),n)try{let e=Array.from(document.querySelectorAll(n));eE(e)}catch(e){eE([])}},[t,c,null==eu?void 0:eu.anchorSelect]),(0,i.useEffect)(()=>{J.current&&(clearTimeout(J.current),eI(y))},[y]);let eq=null!==(X=null==eu?void 0:eu.content)&&void 0!==X?X:D,eG=er&&Object.keys(en.tooltipStyles).length>0;return(0,i.useImperativeHandle)(e,()=>({open:e=>{if(null==e?void 0:e.anchorSelect)try{document.querySelector(e.anchorSelect)}catch(t){return void console.warn(`[react-tooltip] "${e.anchorSelect}" is not a valid CSS selector`)}ed(null!=e?e:null),(null==e?void 0:e.delay)?eI(e.delay):eO(!0)},close:e=>{(null==e?void 0:e.delay)?eM(e.delay):eO(!1)},activeAnchor:W,place:en.place,isOpen:!!(ea&&!w&&eq&&eG)})),ea&&!w&&eq?i.createElement(v,{id:t,role:K,className:es("react-tooltip",ew.tooltip,ex.tooltip,ex[l],n,`react-tooltip__place-${en.place}`,ew[eG?"show":"closing"],eG?"react-tooltip__show":"react-tooltip__closing","fixed"===m&&ew.fixed,k&&ew.clickable),onTransitionEnd:e=>{et.current&&clearTimeout(et.current),er||"opacity"!==e.propertyName||(el(!1),ed(null),null==M||M())},style:{...O,...en.tooltipStyles,opacity:void 0!==G&&eG?G:void 0},ref:Z},eq,i.createElement(v,{className:es("react-tooltip-arrow",ew.arrow,ex.arrow,s,x&&ew.noArrow),style:{...en.tooltipArrowStyles,background:Y?`linear-gradient(to right bottom, transparent 50%, ${Y} 50%)`:void 0},ref:Q})):null},eS=({content:e})=>i.createElement("span",{dangerouslySetInnerHTML:{__html:e}}),eE=i.forwardRef(({id:e,anchorId:t,anchorSelect:n,content:r,html:o,render:s,className:a,classNameArrow:l,variant:u="dark",place:c="top",offset:d=10,wrapper:h="div",children:p=null,events:f=["hover"],openOnClick:m=!1,positionStrategy:g="absolute",middlewares:v,delayShow:y=0,delayHide:_=0,float:b=!1,hidden:w=!1,noArrow:x=!1,clickable:k=!1,closeOnEsc:S=!1,closeOnScroll:E=!1,closeOnResize:T=!1,openEvents:P,closeEvents:R,globalCloseEvents:A,imperativeModeOnly:C=!1,style:F,position:O,isOpen:L,defaultIsOpen:I=!1,disableStyleInjection:M=!1,border:D,opacity:N,arrowColor:$,setIsOpen:j,afterShow:z,afterHide:V,role:B="tooltip"},W)=>{let[H,U]=(0,i.useState)(r),[q,G]=(0,i.useState)(o),[Y,K]=(0,i.useState)(c),[X,Z]=(0,i.useState)(u),[Q,J]=(0,i.useState)(d),[ee,et]=(0,i.useState)(y),[en,ei]=(0,i.useState)(_),[er,eo]=(0,i.useState)(b),[ea,el]=(0,i.useState)(w),[eu,ec]=(0,i.useState)(h),[eh,ep]=(0,i.useState)(f),[ef,em]=(0,i.useState)(g),[eg,ev]=(0,i.useState)(null),[ey,e_]=(0,i.useState)(null),ew=(0,i.useRef)(M),{anchorRefs:ex,activeAnchor:eE}=eb(e),eT=e=>null==e?void 0:e.getAttributeNames().reduce((t,n)=>{var i;return n.startsWith("data-tooltip-")&&(t[n.replace(/^data-tooltip-/,"")]=null!==(i=null==e?void 0:e.getAttribute(n))&&void 0!==i?i:null),t},{}),eP=e=>{let t={place:e=>{K(null!=e?e:c)},content:e=>{U(null!=e?e:r)},html:e=>{G(null!=e?e:o)},variant:e=>{Z(null!=e?e:u)},offset:e=>{J(null===e?d:Number(e))},wrapper:e=>{ec(null!=e?e:h)},events:e=>{let t=null==e?void 0:e.split(" ");ep(null!=t?t:f)},"position-strategy":e=>{em(null!=e?e:g)},"delay-show":e=>{et(null===e?y:Number(e))},"delay-hide":e=>{ei(null===e?_:Number(e))},float:e=>{eo(null===e?b:"true"===e)},hidden:e=>{el(null===e?w:"true"===e)},"class-name":e=>{ev(e)}};Object.values(t).forEach(e=>e(null)),Object.entries(e).forEach(([e,n])=>{var i;null===(i=t[e])||void 0===i||i.call(t,n)})};(0,i.useEffect)(()=>{U(r)},[r]),(0,i.useEffect)(()=>{G(o)},[o]),(0,i.useEffect)(()=>{K(c)},[c]),(0,i.useEffect)(()=>{Z(u)},[u]),(0,i.useEffect)(()=>{J(d)},[d]),(0,i.useEffect)(()=>{et(y)},[y]),(0,i.useEffect)(()=>{ei(_)},[_]),(0,i.useEffect)(()=>{eo(b)},[b]),(0,i.useEffect)(()=>{el(w)},[w]),(0,i.useEffect)(()=>{em(g)},[g]),(0,i.useEffect)(()=>{ew.current!==M&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")},[M]),(0,i.useEffect)(()=>{"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:"core"===M,disableBase:M}}))},[]),(0,i.useEffect)(()=>{var i;let r=new Set(ex),o=n;if(!o&&e&&(o=`[data-tooltip-id='${e.replace(/'/g,"\\'")}']`),o)try{document.querySelectorAll(o).forEach(e=>{r.add({current:e})})}catch(e){console.warn(`[react-tooltip] "${o}" is not a valid CSS selector`)}let s=document.querySelector(`[id='${t}']`);if(s&&r.add({current:s}),!r.size)return()=>null;let a=null!==(i=null!=ey?ey:s)&&void 0!==i?i:eE.current,l=new MutationObserver(e=>{e.forEach(e=>{var t;a&&"attributes"===e.type&&(null===(t=e.attributeName)||void 0===t?void 0:t.startsWith("data-tooltip-"))&&eP(eT(a))})});return a&&(eP(eT(a)),l.observe(a,{attributes:!0,childList:!1,subtree:!1})),()=>{l.disconnect()}},[ex,eE,ey,t,n]),(0,i.useEffect)(()=>{(null==F?void 0:F.border)&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),D&&!ed("border",`${D}`)&&console.warn(`[react-tooltip] "${D}" is not a valid \`border\`.`),(null==F?void 0:F.opacity)&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),N&&!ed("opacity",`${N}`)&&console.warn(`[react-tooltip] "${N}" is not a valid \`opacity\`.`)},[]);let eR=p,eA=(0,i.useRef)(null);if(s){let e=s({content:(null==ey?void 0:ey.getAttribute("data-tooltip-content"))||H||null,activeAnchor:ey});eR=e?i.createElement("div",{ref:eA,className:"react-tooltip-content-wrapper"},e):null}else H&&(eR=H);q&&(eR=i.createElement(eS,{content:q}));let eC={forwardRef:W,id:e,anchorId:t,anchorSelect:n,className:es(a,eg),classNameArrow:l,content:eR,contentWrapperRef:eA,place:Y,variant:X,offset:Q,wrapper:eu,events:eh,openOnClick:m,positionStrategy:ef,middlewares:v,delayShow:ee,delayHide:en,float:er,hidden:ea,noArrow:x,clickable:k,closeOnEsc:S,closeOnScroll:E,closeOnResize:T,openEvents:P,closeEvents:R,globalCloseEvents:A,imperativeModeOnly:C,style:F,position:O,isOpen:L,defaultIsOpen:I,border:D,opacity:N,arrowColor:$,setIsOpen:j,afterShow:z,afterHide:V,activeAnchor:ey,setActiveAnchor:e=>e_(e),role:B};return i.createElement(ek,{...eC})});"undefined"!=typeof window&&window.addEventListener("react-tooltip-inject-styles",e=>{e.detail.disableCore||eu({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),e.detail.disableBase||eu({css:`
.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}`,type:"base"})})},1387:function(e,t,n){"use strict";n.d(t,{m6:function(){return D}});let i=/^\[(.+)\]$/;function r(e,t){let n=e;return t.split("-").forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n}let o=/\s+/;function s(){let e,t,n=0,i="";for(;n<arguments.length;)(e=arguments[n++])&&(t=function e(t){let n;if("string"==typeof t)return t;let i="";for(let r=0;r<t.length;r++)t[r]&&(n=e(t[r]))&&(i&&(i+=" "),i+=n);return i}(e))&&(i&&(i+=" "),i+=t);return i}function a(e){let t=t=>t[e]||[];return t.isThemeGetter=!0,t}let l=/^\[(?:([a-z-]+):)?(.+)\]$/i,u=/^\d+\/\d+$/,c=new Set(["px","full","screen"]),d=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,h=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,p=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,f=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,m=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function g(e){return y(e)||c.has(e)||u.test(e)}function v(e){return F(e,"length",O)}function y(e){return!!e&&!Number.isNaN(Number(e))}function _(e){return F(e,"number",y)}function b(e){return!!e&&Number.isInteger(Number(e))}function w(e){return e.endsWith("%")&&y(e.slice(0,-1))}function x(e){return l.test(e)}function k(e){return d.test(e)}let S=new Set(["length","size","percentage"]);function E(e){return F(e,S,L)}function T(e){return F(e,"position",L)}let P=new Set(["image","url"]);function R(e){return F(e,P,M)}function A(e){return F(e,"",I)}function C(){return!0}function F(e,t,n){let i=l.exec(e);return!!i&&(i[1]?"string"==typeof t?i[1]===t:t.has(i[1]):n(i[2]))}function O(e){return h.test(e)&&!p.test(e)}function L(){return!1}function I(e){return f.test(e)}function M(e){return m.test(e)}let D=function(e,...t){let n,a,l;let u=function(o){var s;return a=(n={cache:function(e){if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=new Map,i=new Map;function r(r,o){n.set(r,o),++t>e&&(t=0,i=n,n=new Map)}return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=i.get(e))?(r(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):r(e,t)}}}((s=t.reduce((e,t)=>t(e),e())).cacheSize),splitModifiers:function(e){let t=e.separator,n=1===t.length,i=t[0],r=t.length;return function(e){let o;let s=[],a=0,l=0;for(let u=0;u<e.length;u++){let c=e[u];if(0===a){if(c===i&&(n||e.slice(u,u+r)===t)){s.push(e.slice(l,u)),l=u+r;continue}if("/"===c){o=u;continue}}"["===c?a++:"]"===c&&a--}let u=0===s.length?e:e.substring(l),c=u.startsWith("!"),d=c?u.substring(1):u;return{modifiers:s,hasImportantModifier:c,baseClassName:d,maybePostfixModifierPosition:o&&o>l?o-l:void 0}}}(s),...function(e){let t=function(e){var t;let{theme:n,prefix:i}=e,o={nextPart:new Map,validators:[]};return(t=Object.entries(e.classGroups),i?t.map(([e,t])=>[e,t.map(e=>"string"==typeof e?i+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,t])=>[i+e,t])):e)]):t).forEach(([e,t])=>{(function e(t,n,i,o){t.forEach(t=>{if("string"==typeof t){(""===t?n:r(n,t)).classGroupId=i;return}if("function"==typeof t){if(t.isThemeGetter){e(t(o),n,i,o);return}n.validators.push({validator:t,classGroupId:i});return}Object.entries(t).forEach(([t,s])=>{e(s,r(n,t),i,o)})})})(t,o,e,n)}),o}(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:function(e){let n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),function e(t,n){if(0===t.length)return n.classGroupId;let i=t[0],r=n.nextPart.get(i),o=r?e(t.slice(1),r):void 0;if(o)return o;if(0===n.validators.length)return;let s=t.join("-");return n.validators.find(({validator:e})=>e(s))?.classGroupId}(n,t)||function(e){if(i.test(e)){let t=i.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}}(e)},getConflictingClassGroupIds:function(e,t){let i=n[e]||[];return t&&o[e]?[...i,...o[e]]:i}}}(s)}).cache.get,l=n.cache.set,u=c,c(o)};function c(e){let t=a(e);if(t)return t;let i=function(e,t){let{splitModifiers:n,getClassGroupId:i,getConflictingClassGroupIds:r}=t,s=new Set;return e.trim().split(o).map(e=>{let{modifiers:t,hasImportantModifier:r,baseClassName:o,maybePostfixModifierPosition:s}=n(e),a=i(s?o.substring(0,s):o),l=!!s;if(!a){if(!s||!(a=i(o)))return{isTailwindClass:!1,originalClassName:e};l=!1}let u=(function(e){if(e.length<=1)return e;let t=[],n=[];return e.forEach(e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)}),t.push(...n.sort()),t})(t).join(":");return{isTailwindClass:!0,modifierId:r?u+"!":u,classGroupId:a,originalClassName:e,hasPostfixModifier:l}}).reverse().filter(e=>{if(!e.isTailwindClass)return!0;let{modifierId:t,classGroupId:n,hasPostfixModifier:i}=e,o=t+n;return!s.has(o)&&(s.add(o),r(n,i).forEach(e=>s.add(t+e)),!0)}).reverse().map(e=>e.originalClassName).join(" ")}(e,n);return l(e,i),i}return function(){return u(s.apply(null,arguments))}}(function(){let e=a("colors"),t=a("spacing"),n=a("blur"),i=a("brightness"),r=a("borderColor"),o=a("borderRadius"),s=a("borderSpacing"),l=a("borderWidth"),u=a("contrast"),c=a("grayscale"),d=a("hueRotate"),h=a("invert"),p=a("gap"),f=a("gradientColorStops"),m=a("gradientColorStopPositions"),S=a("inset"),P=a("margin"),F=a("opacity"),O=a("padding"),L=a("saturate"),I=a("scale"),M=a("sepia"),D=a("skew"),N=a("space"),$=a("translate"),j=()=>["auto","contain","none"],z=()=>["auto","hidden","clip","visible","scroll"],V=()=>["auto",x,t],B=()=>[x,t],W=()=>["",g,v],H=()=>["auto",y,x],U=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],q=()=>["solid","dashed","dotted","double","none"],G=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Y=()=>["start","end","center","between","around","evenly","stretch"],K=()=>["","0",x],X=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Z=()=>[y,_],Q=()=>[y,x];return{cacheSize:500,separator:":",theme:{colors:[C],spacing:[g,v],blur:["none","",k,x],brightness:Z(),borderColor:[e],borderRadius:["none","","full",k,x],borderSpacing:B(),borderWidth:W(),contrast:Z(),grayscale:K(),hueRotate:Q(),invert:K(),gap:B(),gradientColorStops:[e],gradientColorStopPositions:[w,v],inset:V(),margin:V(),opacity:Z(),padding:B(),saturate:Z(),scale:Z(),sepia:K(),skew:Q(),space:B(),translate:B()},classGroups:{aspect:[{aspect:["auto","square","video",x]}],container:["container"],columns:[{columns:[k]}],"break-after":[{"break-after":X()}],"break-before":[{"break-before":X()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...U(),x]}],overflow:[{overflow:z()}],"overflow-x":[{"overflow-x":z()}],"overflow-y":[{"overflow-y":z()}],overscroll:[{overscroll:j()}],"overscroll-x":[{"overscroll-x":j()}],"overscroll-y":[{"overscroll-y":j()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[S]}],"inset-x":[{"inset-x":[S]}],"inset-y":[{"inset-y":[S]}],start:[{start:[S]}],end:[{end:[S]}],top:[{top:[S]}],right:[{right:[S]}],bottom:[{bottom:[S]}],left:[{left:[S]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",b,x]}],basis:[{basis:V()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",x]}],grow:[{grow:K()}],shrink:[{shrink:K()}],order:[{order:["first","last","none",b,x]}],"grid-cols":[{"grid-cols":[C]}],"col-start-end":[{col:["auto",{span:["full",b,x]},x]}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":[C]}],"row-start-end":[{row:["auto",{span:[b,x]},x]}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",x]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",x]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal",...Y()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Y(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Y(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[O]}],px:[{px:[O]}],py:[{py:[O]}],ps:[{ps:[O]}],pe:[{pe:[O]}],pt:[{pt:[O]}],pr:[{pr:[O]}],pb:[{pb:[O]}],pl:[{pl:[O]}],m:[{m:[P]}],mx:[{mx:[P]}],my:[{my:[P]}],ms:[{ms:[P]}],me:[{me:[P]}],mt:[{mt:[P]}],mr:[{mr:[P]}],mb:[{mb:[P]}],ml:[{ml:[P]}],"space-x":[{"space-x":[N]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[N]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",x,t]}],"min-w":[{"min-w":[x,t,"min","max","fit"]}],"max-w":[{"max-w":[x,t,"none","full","min","max","fit","prose",{screen:[k]},k]}],h:[{h:[x,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[x,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[x,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[x,t,"auto","min","max","fit"]}],"font-size":[{text:["base",k,v]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",_]}],"font-family":[{font:[C]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",x]}],"line-clamp":[{"line-clamp":["none",y,_]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",g,x]}],"list-image":[{"list-image":["none",x]}],"list-style-type":[{list:["none","disc","decimal",x]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[F]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[F]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...q(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",g,v]}],"underline-offset":[{"underline-offset":["auto",g,x]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:B()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",x]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",x]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[F]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...U(),T]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",E]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},R]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[f]}],"gradient-via":[{via:[f]}],"gradient-to":[{to:[f]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[F]}],"border-style":[{border:[...q(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[F]}],"divide-style":[{divide:q()}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:["",...q()]}],"outline-offset":[{"outline-offset":[g,x]}],"outline-w":[{outline:[g,v]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:W()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[F]}],"ring-offset-w":[{"ring-offset":[g,v]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",k,A]}],"shadow-color":[{shadow:[C]}],opacity:[{opacity:[F]}],"mix-blend":[{"mix-blend":[...G(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":G()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[i]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",k,x]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[h]}],saturate:[{saturate:[L]}],sepia:[{sepia:[M]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[i]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[F]}],"backdrop-saturate":[{"backdrop-saturate":[L]}],"backdrop-sepia":[{"backdrop-sepia":[M]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",x]}],duration:[{duration:Q()}],ease:[{ease:["linear","in","out","in-out",x]}],delay:[{delay:Q()}],animate:[{animate:["none","spin","ping","pulse","bounce",x]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[I]}],"scale-x":[{"scale-x":[I]}],"scale-y":[{"scale-y":[I]}],rotate:[{rotate:[b,x]}],"translate-x":[{"translate-x":[$]}],"translate-y":[{"translate-y":[$]}],"skew-x":[{"skew-x":[D]}],"skew-y":[{"skew-y":[D]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",x]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",x]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":B()}],"scroll-mx":[{"scroll-mx":B()}],"scroll-my":[{"scroll-my":B()}],"scroll-ms":[{"scroll-ms":B()}],"scroll-me":[{"scroll-me":B()}],"scroll-mt":[{"scroll-mt":B()}],"scroll-mr":[{"scroll-mr":B()}],"scroll-mb":[{"scroll-mb":B()}],"scroll-ml":[{"scroll-ml":B()}],"scroll-p":[{"scroll-p":B()}],"scroll-px":[{"scroll-px":B()}],"scroll-py":[{"scroll-py":B()}],"scroll-ps":[{"scroll-ps":B()}],"scroll-pe":[{"scroll-pe":B()}],"scroll-pt":[{"scroll-pt":B()}],"scroll-pr":[{"scroll-pr":B()}],"scroll-pb":[{"scroll-pb":B()}],"scroll-pl":[{"scroll-pl":B()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",x]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[g,v,_]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}})}}]);