@obsrviq/widgets 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
"use strict";var ObsrviqReplayBundle=(()=>{var G0=Object.create;var Gs=Object.defineProperty;var X0=Object.getOwnPropertyDescriptor;var K0=Object.getOwnPropertyNames;var Q0=Object.getPrototypeOf,Y0=Object.prototype.hasOwnProperty;var Nr=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),J0=(e,t)=>{for(var r in t)Gs(e,r,{get:t[r],enumerable:!0})},mm=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of K0(t))!Y0.call(e,a)&&a!==r&&Gs(e,a,{get:()=>t[a],enumerable:!(n=X0(t,a))||n.enumerable});return e};var F=(e,t,r)=>(r=e!=null?G0(Q0(e)):{},mm(t||!e||!e.__esModule?Gs(r,"default",{value:e,enumerable:!0}):r,e)),Z0=e=>mm(Gs({},"__esModule",{value:!0}),e);var Im=Nr(oe=>{"use strict";var so=Symbol.for("react.element"),eb=Symbol.for("react.portal"),tb=Symbol.for("react.fragment"),rb=Symbol.for("react.strict_mode"),nb=Symbol.for("react.profiler"),ab=Symbol.for("react.provider"),ob=Symbol.for("react.context"),sb=Symbol.for("react.forward_ref"),ib=Symbol.for("react.suspense"),lb=Symbol.for("react.memo"),ub=Symbol.for("react.lazy"),hm=Symbol.iterator;function db(e){return e===null||typeof e!="object"?null:(e=hm&&e[hm]||e["@@iterator"],typeof e=="function"?e:null)}var vm={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ym=Object.assign,wm={};function fa(e,t,r){this.props=e,this.context=t,this.refs=wm,this.updater=r||vm}fa.prototype.isReactComponent={};fa.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};fa.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function bm(){}bm.prototype=fa.prototype;function _u(e,t,r){this.props=e,this.context=t,this.refs=wm,this.updater=r||vm}var Mu=_u.prototype=new bm;Mu.constructor=_u;ym(Mu,fa.prototype);Mu.isPureReactComponent=!0;var gm=Array.isArray,Sm=Object.prototype.hasOwnProperty,Ru={current:null},Cm={key:!0,ref:!0,__self:!0,__source:!0};function Lm(e,t,r){var n,a={},o=null,s=null;if(t!=null)for(n in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)Sm.call(t,n)&&!Cm.hasOwnProperty(n)&&(a[n]=t[n]);var i=arguments.length-2;if(i===1)a.children=r;else if(1<i){for(var l=Array(i),d=0;d<i;d++)l[d]=arguments[d+2];a.children=l}if(e&&e.defaultProps)for(n in i=e.defaultProps,i)a[n]===void 0&&(a[n]=i[n]);return{$$typeof:so,type:e,key:o,ref:s,props:a,_owner:Ru.current}}function cb(e,t){return{$$typeof:so,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Eu(e){return typeof e=="object"&&e!==null&&e.$$typeof===so}function fb(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var xm=/\/+/g;function Iu(e,t){return typeof e=="object"&&e!==null&&e.key!=null?fb(""+e.key):t.toString(36)}function Ks(e,t,r,n,a){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case so:case eb:s=!0}}if(s)return s=e,a=a(s),e=n===""?"."+Iu(s,0):n,gm(a)?(r="",e!=null&&(r=e.replace(xm,"$&/")+"/"),Ks(a,t,r,"",function(d){return d})):a!=null&&(Eu(a)&&(a=cb(a,r+(!a.key||s&&s.key===a.key?"":(""+a.key).replace(xm,"$&/")+"/")+e)),t.push(a)),1;if(s=0,n=n===""?".":n+":",gm(e))for(var i=0;i<e.length;i++){o=e[i];var l=n+Iu(o,i);s+=Ks(o,t,r,l,a)}else if(l=db(e),typeof l=="function")for(e=l.call(e),i=0;!(o=e.next()).done;)o=o.value,l=n+Iu(o,i++),s+=Ks(o,t,r,l,a);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function Xs(e,t,r){if(e==null)return e;var n=[],a=0;return Ks(e,n,"","",function(o){return t.call(r,o,a++)}),n}function pb(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var wt={current:null},Qs={transition:null},mb={ReactCurrentDispatcher:wt,ReactCurrentBatchConfig:Qs,ReactCurrentOwner:Ru};function km(){throw Error("act(...) is not supported in production builds of React.")}oe.Children={map:Xs,forEach:function(e,t,r){Xs(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return Xs(e,function(){t++}),t},toArray:function(e){return Xs(e,function(t){return t})||[]},only:function(e){if(!Eu(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};oe.Component=fa;oe.Fragment=tb;oe.Profiler=nb;oe.PureComponent=_u;oe.StrictMode=rb;oe.Suspense=ib;oe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=mb;oe.act=km;oe.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=ym({},e.props),a=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=Ru.current),t.key!==void 0&&(a=""+t.key),e.type&&e.type.defaultProps)var i=e.type.defaultProps;for(l in t)Sm.call(t,l)&&!Cm.hasOwnProperty(l)&&(n[l]=t[l]===void 0&&i!==void 0?i[l]:t[l])}var l=arguments.length-2;if(l===1)n.children=r;else if(1<l){i=Array(l);for(var d=0;d<l;d++)i[d]=arguments[d+2];n.children=i}return{$$typeof:so,type:e.type,key:a,ref:o,props:n,_owner:s}};oe.createContext=function(e){return e={$$typeof:ob,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:ab,_context:e},e.Consumer=e};oe.createElement=Lm;oe.createFactory=function(e){var t=Lm.bind(null,e);return t.type=e,t};oe.createRef=function(){return{current:null}};oe.forwardRef=function(e){return{$$typeof:sb,render:e}};oe.isValidElement=Eu;oe.lazy=function(e){return{$$typeof:ub,_payload:{_status:-1,_result:e},_init:pb}};oe.memo=function(e,t){return{$$typeof:lb,type:e,compare:t===void 0?null:t}};oe.startTransition=function(e){var t=Qs.transition;Qs.transition={};try{e()}finally{Qs.transition=t}};oe.unstable_act=km;oe.useCallback=function(e,t){return wt.current.useCallback(e,t)};oe.useContext=function(e){return wt.current.useContext(e)};oe.useDebugValue=function(){};oe.useDeferredValue=function(e){return wt.current.useDeferredValue(e)};oe.useEffect=function(e,t){return wt.current.useEffect(e,t)};oe.useId=function(){return wt.current.useId()};oe.useImperativeHandle=function(e,t,r){return wt.current.useImperativeHandle(e,t,r)};oe.useInsertionEffect=function(e,t){return wt.current.useInsertionEffect(e,t)};oe.useLayoutEffect=function(e,t){return wt.current.useLayoutEffect(e,t)};oe.useMemo=function(e,t){return wt.current.useMemo(e,t)};oe.useReducer=function(e,t,r){return wt.current.useReducer(e,t,r)};oe.useRef=function(e){return wt.current.useRef(e)};oe.useState=function(e){return wt.current.useState(e)};oe.useSyncExternalStore=function(e,t,r){return wt.current.useSyncExternalStore(e,t,r)};oe.useTransition=function(){return wt.current.useTransition()};oe.version="18.3.1"});var fe=Nr((P_,_m)=>{"use strict";_m.exports=Im()});var Fm=Nr(Ee=>{"use strict";function Au(e,t){var r=e.length;e.push(t);e:for(;0<r;){var n=r-1>>>1,a=e[n];if(0<Ys(a,t))e[n]=t,e[r]=a,r=n;else break e}}function ir(e){return e.length===0?null:e[0]}function Zs(e){if(e.length===0)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,a=e.length,o=a>>>1;n<o;){var s=2*(n+1)-1,i=e[s],l=s+1,d=e[l];if(0>Ys(i,r))l<a&&0>Ys(d,i)?(e[n]=d,e[l]=r,n=l):(e[n]=i,e[s]=r,n=s);else if(l<a&&0>Ys(d,r))e[n]=d,e[l]=r,n=l;else break e}}return t}function Ys(e,t){var r=e.sortIndex-t.sortIndex;return r!==0?r:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(Mm=performance,Ee.unstable_now=function(){return Mm.now()}):(Pu=Date,Rm=Pu.now(),Ee.unstable_now=function(){return Pu.now()-Rm});var Mm,Pu,Rm,Cr=[],Yr=[],hb=1,jt=null,dt=3,ei=!1,Rn=!1,lo=!1,Nm=typeof setTimeout=="function"?setTimeout:null,Tm=typeof clearTimeout=="function"?clearTimeout:null,Em=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Du(e){for(var t=ir(Yr);t!==null;){if(t.callback===null)Zs(Yr);else if(t.startTime<=e)Zs(Yr),t.sortIndex=t.expirationTime,Au(Cr,t);else break;t=ir(Yr)}}function Ou(e){if(lo=!1,Du(e),!Rn)if(ir(Cr)!==null)Rn=!0,Bu(Fu);else{var t=ir(Yr);t!==null&&zu(Ou,t.startTime-e)}}function Fu(e,t){Rn=!1,lo&&(lo=!1,Tm(uo),uo=-1),ei=!0;var r=dt;try{for(Du(t),jt=ir(Cr);jt!==null&&(!(jt.expirationTime>t)||e&&!Om());){var n=jt.callback;if(typeof n=="function"){jt.callback=null,dt=jt.priorityLevel;var a=n(jt.expirationTime<=t);t=Ee.unstable_now(),typeof a=="function"?jt.callback=a:jt===ir(Cr)&&Zs(Cr),Du(t)}else Zs(Cr);jt=ir(Cr)}if(jt!==null)var o=!0;else{var s=ir(Yr);s!==null&&zu(Ou,s.startTime-t),o=!1}return o}finally{jt=null,dt=r,ei=!1}}var ti=!1,Js=null,uo=-1,Am=5,Dm=-1;function Om(){return!(Ee.unstable_now()-Dm<Am)}function Nu(){if(Js!==null){var e=Ee.unstable_now();Dm=e;var t=!0;try{t=Js(!0,e)}finally{t?io():(ti=!1,Js=null)}}else ti=!1}var io;typeof Em=="function"?io=function(){Em(Nu)}:typeof MessageChannel<"u"?(Tu=new MessageChannel,Pm=Tu.port2,Tu.port1.onmessage=Nu,io=function(){Pm.postMessage(null)}):io=function(){Nm(Nu,0)};var Tu,Pm;function Bu(e){Js=e,ti||(ti=!0,io())}function zu(e,t){uo=Nm(function(){e(Ee.unstable_now())},t)}Ee.unstable_IdlePriority=5;Ee.unstable_ImmediatePriority=1;Ee.unstable_LowPriority=4;Ee.unstable_NormalPriority=3;Ee.unstable_Profiling=null;Ee.unstable_UserBlockingPriority=2;Ee.unstable_cancelCallback=function(e){e.callback=null};Ee.unstable_continueExecution=function(){Rn||ei||(Rn=!0,Bu(Fu))};Ee.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Am=0<e?Math.floor(1e3/e):5};Ee.unstable_getCurrentPriorityLevel=function(){return dt};Ee.unstable_getFirstCallbackNode=function(){return ir(Cr)};Ee.unstable_next=function(e){switch(dt){case 1:case 2:case 3:var t=3;break;default:t=dt}var r=dt;dt=t;try{return e()}finally{dt=r}};Ee.unstable_pauseExecution=function(){};Ee.unstable_requestPaint=function(){};Ee.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=dt;dt=e;try{return t()}finally{dt=r}};Ee.unstable_scheduleCallback=function(e,t,r){var n=Ee.unstable_now();switch(typeof r=="object"&&r!==null?(r=r.delay,r=typeof r=="number"&&0<r?n+r:n):r=n,e){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return a=r+a,e={id:hb++,callback:t,priorityLevel:e,startTime:r,expirationTime:a,sortIndex:-1},r>n?(e.sortIndex=r,Au(Yr,e),ir(Cr)===null&&e===ir(Yr)&&(lo?(Tm(uo),uo=-1):lo=!0,zu(Ou,r-n))):(e.sortIndex=a,Au(Cr,e),Rn||ei||(Rn=!0,Bu(Fu))),e};Ee.unstable_shouldYield=Om;Ee.unstable_wrapCallback=function(e){var t=dt;return function(){var r=dt;dt=t;try{return e.apply(this,arguments)}finally{dt=r}}}});var zm=Nr((T_,Bm)=>{"use strict";Bm.exports=Fm()});var Hx=Nr(qt=>{"use strict";var gb=fe(),zt=zm();function P(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Vh=new Set,No={};function $n(e,t){Ta(e,t),Ta(e+"Capture",t)}function Ta(e,t){for(No[e]=t,e=0;e<t.length;e++)Vh.add(t[e])}var Br=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ld=Object.prototype.hasOwnProperty,xb=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Um={},qm={};function vb(e){return ld.call(qm,e)?!0:ld.call(Um,e)?!1:xb.test(e)?qm[e]=!0:(Um[e]=!0,!1)}function yb(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function wb(e,t,r,n){if(t===null||typeof t>"u"||yb(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ct(e,t,r,n,a,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=a,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var ot={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ot[e]=new Ct(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ot[t]=new Ct(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ot[e]=new Ct(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ot[e]=new Ct(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ot[e]=new Ct(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ot[e]=new Ct(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ot[e]=new Ct(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ot[e]=new Ct(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ot[e]=new Ct(e,5,!1,e.toLowerCase(),null,!1,!1)});var ec=/[\-:]([a-z])/g;function tc(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(ec,tc);ot[t]=new Ct(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(ec,tc);ot[t]=new Ct(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ec,tc);ot[t]=new Ct(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ot[e]=new Ct(e,1,!1,e.toLowerCase(),null,!1,!1)});ot.xlinkHref=new Ct("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ot[e]=new Ct(e,1,!1,e.toLowerCase(),null,!0,!0)});function rc(e,t,r,n){var a=ot.hasOwnProperty(t)?ot[t]:null;(a!==null?a.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(wb(t,r,a,n)&&(r=null),n||a===null?vb(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):a.mustUseProperty?e[a.propertyName]=r===null?a.type===3?!1:"":r:(t=a.attributeName,n=a.attributeNamespace,r===null?e.removeAttribute(t):(a=a.type,r=a===3||a===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var $r=gb.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ri=Symbol.for("react.element"),ha=Symbol.for("react.portal"),ga=Symbol.for("react.fragment"),nc=Symbol.for("react.strict_mode"),ud=Symbol.for("react.profiler"),Gh=Symbol.for("react.provider"),Xh=Symbol.for("react.context"),ac=Symbol.for("react.forward_ref"),dd=Symbol.for("react.suspense"),cd=Symbol.for("react.suspense_list"),oc=Symbol.for("react.memo"),Zr=Symbol.for("react.lazy"),Kh=Symbol.for("react.offscreen"),$m=Symbol.iterator;function co(e){return e===null||typeof e!="object"?null:(e=$m&&e[$m]||e["@@iterator"],typeof e=="function"?e:null)}var $e=Object.assign,Uu;function yo(e){if(Uu===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);Uu=t&&t[1]||""}return`
|
|
2
|
-
`+
|
|
1
|
+
"use strict";var ObsrviqReplayBundle=(()=>{var e0=Object.create;var Qs=Object.defineProperty;var t0=Object.getOwnPropertyDescriptor;var r0=Object.getOwnPropertyNames;var n0=Object.getPrototypeOf,a0=Object.prototype.hasOwnProperty;var Tr=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),o0=(e,t)=>{for(var r in t)Qs(e,r,{get:t[r],enumerable:!0})},ym=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of r0(t))!a0.call(e,a)&&a!==r&&Qs(e,a,{get:()=>t[a],enumerable:!(n=t0(t,a))||n.enumerable});return e};var B=(e,t,r)=>(r=e!=null?e0(n0(e)):{},ym(t||!e||!e.__esModule?Qs(r,"default",{value:e,enumerable:!0}):r,e)),s0=e=>ym(Qs({},"__esModule",{value:!0}),e);var Nm=Tr(ie=>{"use strict";var co=Symbol.for("react.element"),l0=Symbol.for("react.portal"),i0=Symbol.for("react.fragment"),u0=Symbol.for("react.strict_mode"),d0=Symbol.for("react.profiler"),c0=Symbol.for("react.provider"),f0=Symbol.for("react.context"),p0=Symbol.for("react.forward_ref"),m0=Symbol.for("react.suspense"),h0=Symbol.for("react.memo"),g0=Symbol.for("react.lazy"),wm=Symbol.iterator;function x0(e){return e===null||typeof e!="object"?null:(e=wm&&e[wm]||e["@@iterator"],typeof e=="function"?e:null)}var Cm={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Lm=Object.assign,km={};function ga(e,t,r){this.props=e,this.context=t,this.refs=km,this.updater=r||Cm}ga.prototype.isReactComponent={};ga.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};ga.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Im(){}Im.prototype=ga.prototype;function Eu(e,t,r){this.props=e,this.context=t,this.refs=km,this.updater=r||Cm}var Nu=Eu.prototype=new Im;Nu.constructor=Eu;Lm(Nu,ga.prototype);Nu.isPureReactComponent=!0;var bm=Array.isArray,_m=Object.prototype.hasOwnProperty,Pu={current:null},Mm={key:!0,ref:!0,__self:!0,__source:!0};function Rm(e,t,r){var n,a={},o=null,s=null;if(t!=null)for(n in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)_m.call(t,n)&&!Mm.hasOwnProperty(n)&&(a[n]=t[n]);var l=arguments.length-2;if(l===1)a.children=r;else if(1<l){for(var i=Array(l),d=0;d<l;d++)i[d]=arguments[d+2];a.children=i}if(e&&e.defaultProps)for(n in l=e.defaultProps,l)a[n]===void 0&&(a[n]=l[n]);return{$$typeof:co,type:e,key:o,ref:s,props:a,_owner:Pu.current}}function v0(e,t){return{$$typeof:co,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Tu(e){return typeof e=="object"&&e!==null&&e.$$typeof===co}function y0(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var Sm=/\/+/g;function Ru(e,t){return typeof e=="object"&&e!==null&&e.key!=null?y0(""+e.key):t.toString(36)}function Js(e,t,r,n,a){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case co:case l0:s=!0}}if(s)return s=e,a=a(s),e=n===""?"."+Ru(s,0):n,bm(a)?(r="",e!=null&&(r=e.replace(Sm,"$&/")+"/"),Js(a,t,r,"",function(d){return d})):a!=null&&(Tu(a)&&(a=v0(a,r+(!a.key||s&&s.key===a.key?"":(""+a.key).replace(Sm,"$&/")+"/")+e)),t.push(a)),1;if(s=0,n=n===""?".":n+":",bm(e))for(var l=0;l<e.length;l++){o=e[l];var i=n+Ru(o,l);s+=Js(o,t,r,i,a)}else if(i=x0(e),typeof i=="function")for(e=i.call(e),l=0;!(o=e.next()).done;)o=o.value,i=n+Ru(o,l++),s+=Js(o,t,r,i,a);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function Ys(e,t,r){if(e==null)return e;var n=[],a=0;return Js(e,n,"","",function(o){return t.call(r,o,a++)}),n}function w0(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var bt={current:null},Zs={transition:null},b0={ReactCurrentDispatcher:bt,ReactCurrentBatchConfig:Zs,ReactCurrentOwner:Pu};function Em(){throw Error("act(...) is not supported in production builds of React.")}ie.Children={map:Ys,forEach:function(e,t,r){Ys(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return Ys(e,function(){t++}),t},toArray:function(e){return Ys(e,function(t){return t})||[]},only:function(e){if(!Tu(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ie.Component=ga;ie.Fragment=i0;ie.Profiler=d0;ie.PureComponent=Eu;ie.StrictMode=u0;ie.Suspense=m0;ie.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=b0;ie.act=Em;ie.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=Lm({},e.props),a=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=Pu.current),t.key!==void 0&&(a=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(i in t)_m.call(t,i)&&!Mm.hasOwnProperty(i)&&(n[i]=t[i]===void 0&&l!==void 0?l[i]:t[i])}var i=arguments.length-2;if(i===1)n.children=r;else if(1<i){l=Array(i);for(var d=0;d<i;d++)l[d]=arguments[d+2];n.children=l}return{$$typeof:co,type:e.type,key:a,ref:o,props:n,_owner:s}};ie.createContext=function(e){return e={$$typeof:f0,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:c0,_context:e},e.Consumer=e};ie.createElement=Rm;ie.createFactory=function(e){var t=Rm.bind(null,e);return t.type=e,t};ie.createRef=function(){return{current:null}};ie.forwardRef=function(e){return{$$typeof:p0,render:e}};ie.isValidElement=Tu;ie.lazy=function(e){return{$$typeof:g0,_payload:{_status:-1,_result:e},_init:w0}};ie.memo=function(e,t){return{$$typeof:h0,type:e,compare:t===void 0?null:t}};ie.startTransition=function(e){var t=Zs.transition;Zs.transition={};try{e()}finally{Zs.transition=t}};ie.unstable_act=Em;ie.useCallback=function(e,t){return bt.current.useCallback(e,t)};ie.useContext=function(e){return bt.current.useContext(e)};ie.useDebugValue=function(){};ie.useDeferredValue=function(e){return bt.current.useDeferredValue(e)};ie.useEffect=function(e,t){return bt.current.useEffect(e,t)};ie.useId=function(){return bt.current.useId()};ie.useImperativeHandle=function(e,t,r){return bt.current.useImperativeHandle(e,t,r)};ie.useInsertionEffect=function(e,t){return bt.current.useInsertionEffect(e,t)};ie.useLayoutEffect=function(e,t){return bt.current.useLayoutEffect(e,t)};ie.useMemo=function(e,t){return bt.current.useMemo(e,t)};ie.useReducer=function(e,t,r){return bt.current.useReducer(e,t,r)};ie.useRef=function(e){return bt.current.useRef(e)};ie.useState=function(e){return bt.current.useState(e)};ie.useSyncExternalStore=function(e,t,r){return bt.current.useSyncExternalStore(e,t,r)};ie.useTransition=function(){return bt.current.useTransition()};ie.version="18.3.1"});var me=Tr((H_,Pm)=>{"use strict";Pm.exports=Nm()});var $m=Tr(Ne=>{"use strict";function Fu(e,t){var r=e.length;e.push(t);e:for(;0<r;){var n=r-1>>>1,a=e[n];if(0<el(a,t))e[n]=t,e[r]=a,r=n;else break e}}function ur(e){return e.length===0?null:e[0]}function rl(e){if(e.length===0)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,a=e.length,o=a>>>1;n<o;){var s=2*(n+1)-1,l=e[s],i=s+1,d=e[i];if(0>el(l,r))i<a&&0>el(d,l)?(e[n]=d,e[i]=r,n=i):(e[n]=l,e[s]=r,n=s);else if(i<a&&0>el(d,r))e[n]=d,e[i]=r,n=i;else break e}}return t}function el(e,t){var r=e.sortIndex-t.sortIndex;return r!==0?r:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(Tm=performance,Ne.unstable_now=function(){return Tm.now()}):(Au=Date,Am=Au.now(),Ne.unstable_now=function(){return Au.now()-Am});var Tm,Au,Am,Lr=[],Jr=[],S0=1,Gt=null,ct=3,nl=!1,Pn=!1,po=!1,Fm=typeof setTimeout=="function"?setTimeout:null,Bm=typeof clearTimeout=="function"?clearTimeout:null,Dm=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Bu(e){for(var t=ur(Jr);t!==null;){if(t.callback===null)rl(Jr);else if(t.startTime<=e)rl(Jr),t.sortIndex=t.expirationTime,Fu(Lr,t);else break;t=ur(Jr)}}function zu(e){if(po=!1,Bu(e),!Pn)if(ur(Lr)!==null)Pn=!0,qu(Uu);else{var t=ur(Jr);t!==null&&$u(zu,t.startTime-e)}}function Uu(e,t){Pn=!1,po&&(po=!1,Bm(mo),mo=-1),nl=!0;var r=ct;try{for(Bu(t),Gt=ur(Lr);Gt!==null&&(!(Gt.expirationTime>t)||e&&!qm());){var n=Gt.callback;if(typeof n=="function"){Gt.callback=null,ct=Gt.priorityLevel;var a=n(Gt.expirationTime<=t);t=Ne.unstable_now(),typeof a=="function"?Gt.callback=a:Gt===ur(Lr)&&rl(Lr),Bu(t)}else rl(Lr);Gt=ur(Lr)}if(Gt!==null)var o=!0;else{var s=ur(Jr);s!==null&&$u(zu,s.startTime-t),o=!1}return o}finally{Gt=null,ct=r,nl=!1}}var al=!1,tl=null,mo=-1,zm=5,Um=-1;function qm(){return!(Ne.unstable_now()-Um<zm)}function Du(){if(tl!==null){var e=Ne.unstable_now();Um=e;var t=!0;try{t=tl(!0,e)}finally{t?fo():(al=!1,tl=null)}}else al=!1}var fo;typeof Dm=="function"?fo=function(){Dm(Du)}:typeof MessageChannel<"u"?(Ou=new MessageChannel,Om=Ou.port2,Ou.port1.onmessage=Du,fo=function(){Om.postMessage(null)}):fo=function(){Fm(Du,0)};var Ou,Om;function qu(e){tl=e,al||(al=!0,fo())}function $u(e,t){mo=Fm(function(){e(Ne.unstable_now())},t)}Ne.unstable_IdlePriority=5;Ne.unstable_ImmediatePriority=1;Ne.unstable_LowPriority=4;Ne.unstable_NormalPriority=3;Ne.unstable_Profiling=null;Ne.unstable_UserBlockingPriority=2;Ne.unstable_cancelCallback=function(e){e.callback=null};Ne.unstable_continueExecution=function(){Pn||nl||(Pn=!0,qu(Uu))};Ne.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):zm=0<e?Math.floor(1e3/e):5};Ne.unstable_getCurrentPriorityLevel=function(){return ct};Ne.unstable_getFirstCallbackNode=function(){return ur(Lr)};Ne.unstable_next=function(e){switch(ct){case 1:case 2:case 3:var t=3;break;default:t=ct}var r=ct;ct=t;try{return e()}finally{ct=r}};Ne.unstable_pauseExecution=function(){};Ne.unstable_requestPaint=function(){};Ne.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=ct;ct=e;try{return t()}finally{ct=r}};Ne.unstable_scheduleCallback=function(e,t,r){var n=Ne.unstable_now();switch(typeof r=="object"&&r!==null?(r=r.delay,r=typeof r=="number"&&0<r?n+r:n):r=n,e){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return a=r+a,e={id:S0++,callback:t,priorityLevel:e,startTime:r,expirationTime:a,sortIndex:-1},r>n?(e.sortIndex=r,Fu(Jr,e),ur(Lr)===null&&e===ur(Jr)&&(po?(Bm(mo),mo=-1):po=!0,$u(zu,r-n))):(e.sortIndex=a,Fu(Lr,e),Pn||nl||(Pn=!0,qu(Uu))),e};Ne.unstable_shouldYield=qm;Ne.unstable_wrapCallback=function(e){var t=ct;return function(){var r=ct;ct=t;try{return e.apply(this,arguments)}finally{ct=r}}}});var jm=Tr((W_,Hm)=>{"use strict";Hm.exports=$m()});var Xx=Tr($t=>{"use strict";var C0=me(),Ut=jm();function A(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Yh=new Set,Oo={};function Wn(e,t){Fa(e,t),Fa(e+"Capture",t)}function Fa(e,t){for(Oo[e]=t,e=0;e<t.length;e++)Yh.add(t[e])}var zr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),cd=Object.prototype.hasOwnProperty,L0=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Wm={},Vm={};function k0(e){return cd.call(Vm,e)?!0:cd.call(Wm,e)?!1:L0.test(e)?Vm[e]=!0:(Wm[e]=!0,!1)}function I0(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function _0(e,t,r,n){if(t===null||typeof t>"u"||I0(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Lt(e,t,r,n,a,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=a,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var st={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){st[e]=new Lt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];st[t]=new Lt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){st[e]=new Lt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){st[e]=new Lt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){st[e]=new Lt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){st[e]=new Lt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){st[e]=new Lt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){st[e]=new Lt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){st[e]=new Lt(e,5,!1,e.toLowerCase(),null,!1,!1)});var nc=/[\-:]([a-z])/g;function ac(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(nc,ac);st[t]=new Lt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(nc,ac);st[t]=new Lt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(nc,ac);st[t]=new Lt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){st[e]=new Lt(e,1,!1,e.toLowerCase(),null,!1,!1)});st.xlinkHref=new Lt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){st[e]=new Lt(e,1,!1,e.toLowerCase(),null,!0,!0)});function oc(e,t,r,n){var a=st.hasOwnProperty(t)?st[t]:null;(a!==null?a.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(_0(t,r,a,n)&&(r=null),n||a===null?k0(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):a.mustUseProperty?e[a.propertyName]=r===null?a.type===3?!1:"":r:(t=a.attributeName,n=a.attributeNamespace,r===null?e.removeAttribute(t):(a=a.type,r=a===3||a===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var Hr=C0.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ol=Symbol.for("react.element"),ya=Symbol.for("react.portal"),wa=Symbol.for("react.fragment"),sc=Symbol.for("react.strict_mode"),fd=Symbol.for("react.profiler"),Jh=Symbol.for("react.provider"),Zh=Symbol.for("react.context"),lc=Symbol.for("react.forward_ref"),pd=Symbol.for("react.suspense"),md=Symbol.for("react.suspense_list"),ic=Symbol.for("react.memo"),en=Symbol.for("react.lazy"),eg=Symbol.for("react.offscreen"),Gm=Symbol.iterator;function ho(e){return e===null||typeof e!="object"?null:(e=Gm&&e[Gm]||e["@@iterator"],typeof e=="function"?e:null)}var He=Object.assign,Hu;function Co(e){if(Hu===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);Hu=t&&t[1]||""}return`
|
|
2
|
+
`+Hu+e}var ju=!1;function Wu(e,t){if(!e||ju)return"";ju=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(d){var n=d}Reflect.construct(e,[],t)}else{try{t.call()}catch(d){n=d}e.call(t.prototype)}else{try{throw Error()}catch(d){n=d}e()}}catch(d){if(d&&n&&typeof d.stack=="string"){for(var a=d.stack.split(`
|
|
3
3
|
`),o=n.stack.split(`
|
|
4
|
-
`),s=a.length-1,
|
|
5
|
-
`+a[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=i);break}}}finally{qu=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?yo(e):""}function bb(e){switch(e.tag){case 5:return yo(e.type);case 16:return yo("Lazy");case 13:return yo("Suspense");case 19:return yo("SuspenseList");case 0:case 2:case 15:return e=$u(e.type,!1),e;case 11:return e=$u(e.type.render,!1),e;case 1:return e=$u(e.type,!0),e;default:return""}}function fd(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ga:return"Fragment";case ha:return"Portal";case ud:return"Profiler";case nc:return"StrictMode";case dd:return"Suspense";case cd:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Xh:return(e.displayName||"Context")+".Consumer";case Gh:return(e._context.displayName||"Context")+".Provider";case ac:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case oc:return t=e.displayName||null,t!==null?t:fd(e.type)||"Memo";case Zr:t=e._payload,e=e._init;try{return fd(e(t))}catch{}}return null}function Sb(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return fd(t);case 8:return t===nc?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function mn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Qh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Cb(e){var t=Qh(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var a=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(s){n=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(s){n=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ni(e){e._valueTracker||(e._valueTracker=Cb(e))}function Yh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Qh(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Pi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function pd(e,t){var r=t.checked;return $e({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Hm(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=mn(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Jh(e,t){t=t.checked,t!=null&&rc(e,"checked",t,!1)}function md(e,t){Jh(e,t);var r=mn(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?hd(e,t.type,r):t.hasOwnProperty("defaultValue")&&hd(e,t.type,mn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Wm(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function hd(e,t,r){(t!=="number"||Pi(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var wo=Array.isArray;function _a(e,t,r,n){if(e=e.options,t){t={};for(var a=0;a<r.length;a++)t["$"+r[a]]=!0;for(r=0;r<e.length;r++)a=t.hasOwnProperty("$"+e[r].value),e[r].selected!==a&&(e[r].selected=a),a&&n&&(e[r].defaultSelected=!0)}else{for(r=""+mn(r),t=null,a=0;a<e.length;a++){if(e[a].value===r){e[a].selected=!0,n&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function gd(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(P(91));return $e({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function jm(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(P(92));if(wo(r)){if(1<r.length)throw Error(P(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:mn(r)}}function Zh(e,t){var r=mn(t.value),n=mn(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function Vm(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function eg(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function xd(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?eg(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ai,tg=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,a){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,a)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(ai=ai||document.createElement("div"),ai.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ai.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function To(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Co={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Lb=["Webkit","ms","Moz","O"];Object.keys(Co).forEach(function(e){Lb.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Co[t]=Co[e]})});function rg(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Co.hasOwnProperty(e)&&Co[e]?(""+t).trim():t+"px"}function ng(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,a=rg(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,a):e[r]=a}}var kb=$e({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function vd(e,t){if(t){if(kb[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(P(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(P(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(P(61))}if(t.style!=null&&typeof t.style!="object")throw Error(P(62))}}function yd(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var wd=null;function sc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var bd=null,Ma=null,Ra=null;function Gm(e){if(e=Yo(e)){if(typeof bd!="function")throw Error(P(280));var t=e.stateNode;t&&(t=ol(t),bd(e.stateNode,e.type,t))}}function ag(e){Ma?Ra?Ra.push(e):Ra=[e]:Ma=e}function og(){if(Ma){var e=Ma,t=Ra;if(Ra=Ma=null,Gm(e),t)for(e=0;e<t.length;e++)Gm(t[e])}}function sg(e,t){return e(t)}function ig(){}var Hu=!1;function lg(e,t,r){if(Hu)return e(t,r);Hu=!0;try{return sg(e,t,r)}finally{Hu=!1,(Ma!==null||Ra!==null)&&(ig(),og())}}function Ao(e,t){var r=e.stateNode;if(r===null)return null;var n=ol(r);if(n===null)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(P(231,t,typeof r));return r}var Sd=!1;if(Br)try{pa={},Object.defineProperty(pa,"passive",{get:function(){Sd=!0}}),window.addEventListener("test",pa,pa),window.removeEventListener("test",pa,pa)}catch{Sd=!1}var pa;function Ib(e,t,r,n,a,o,s,i,l){var d=Array.prototype.slice.call(arguments,3);try{t.apply(r,d)}catch(u){this.onError(u)}}var Lo=!1,Ni=null,Ti=!1,Cd=null,_b={onError:function(e){Lo=!0,Ni=e}};function Mb(e,t,r,n,a,o,s,i,l){Lo=!1,Ni=null,Ib.apply(_b,arguments)}function Rb(e,t,r,n,a,o,s,i,l){if(Mb.apply(this,arguments),Lo){if(Lo){var d=Ni;Lo=!1,Ni=null}else throw Error(P(198));Ti||(Ti=!0,Cd=d)}}function Hn(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function ug(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Xm(e){if(Hn(e)!==e)throw Error(P(188))}function Eb(e){var t=e.alternate;if(!t){if(t=Hn(e),t===null)throw Error(P(188));return t!==e?null:e}for(var r=e,n=t;;){var a=r.return;if(a===null)break;var o=a.alternate;if(o===null){if(n=a.return,n!==null){r=n;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===r)return Xm(a),e;if(o===n)return Xm(a),t;o=o.sibling}throw Error(P(188))}if(r.return!==n.return)r=a,n=o;else{for(var s=!1,i=a.child;i;){if(i===r){s=!0,r=a,n=o;break}if(i===n){s=!0,n=a,r=o;break}i=i.sibling}if(!s){for(i=o.child;i;){if(i===r){s=!0,r=o,n=a;break}if(i===n){s=!0,n=o,r=a;break}i=i.sibling}if(!s)throw Error(P(189))}}if(r.alternate!==n)throw Error(P(190))}if(r.tag!==3)throw Error(P(188));return r.stateNode.current===r?e:t}function dg(e){return e=Eb(e),e!==null?cg(e):null}function cg(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=cg(e);if(t!==null)return t;e=e.sibling}return null}var fg=zt.unstable_scheduleCallback,Km=zt.unstable_cancelCallback,Pb=zt.unstable_shouldYield,Nb=zt.unstable_requestPaint,Ve=zt.unstable_now,Tb=zt.unstable_getCurrentPriorityLevel,ic=zt.unstable_ImmediatePriority,pg=zt.unstable_UserBlockingPriority,Ai=zt.unstable_NormalPriority,Ab=zt.unstable_LowPriority,mg=zt.unstable_IdlePriority,tl=null,_r=null;function Db(e){if(_r&&typeof _r.onCommitFiberRoot=="function")try{_r.onCommitFiberRoot(tl,e,void 0,(e.current.flags&128)===128)}catch{}}var fr=Math.clz32?Math.clz32:Bb,Ob=Math.log,Fb=Math.LN2;function Bb(e){return e>>>=0,e===0?32:31-(Ob(e)/Fb|0)|0}var oi=64,si=4194304;function bo(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Di(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,a=e.suspendedLanes,o=e.pingedLanes,s=r&268435455;if(s!==0){var i=s&~a;i!==0?n=bo(i):(o&=s,o!==0&&(n=bo(o)))}else s=r&~a,s!==0?n=bo(s):o!==0&&(n=bo(o));if(n===0)return 0;if(t!==0&&t!==n&&(t&a)===0&&(a=n&-n,o=t&-t,a>=o||a===16&&(o&4194240)!==0))return t;if((n&4)!==0&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-fr(t),a=1<<r,n|=e[r],t&=~a;return n}function zb(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ub(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,a=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-fr(o),i=1<<s,l=a[s];l===-1?((i&r)===0||(i&n)!==0)&&(a[s]=zb(i,t)):l<=t&&(e.expiredLanes|=i),o&=~i}}function Ld(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function hg(){var e=oi;return oi<<=1,(oi&4194240)===0&&(oi=64),e}function Wu(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Ko(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-fr(t),e[t]=r}function qb(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var a=31-fr(r),o=1<<a;t[a]=0,n[a]=-1,e[a]=-1,r&=~o}}function lc(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-fr(r),a=1<<n;a&t|e[n]&t&&(e[n]|=t),r&=~a}}var Le=0;function gg(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var xg,uc,vg,yg,wg,kd=!1,ii=[],on=null,sn=null,ln=null,Do=new Map,Oo=new Map,tn=[],$b="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Qm(e,t){switch(e){case"focusin":case"focusout":on=null;break;case"dragenter":case"dragleave":sn=null;break;case"mouseover":case"mouseout":ln=null;break;case"pointerover":case"pointerout":Do.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Oo.delete(t.pointerId)}}function fo(e,t,r,n,a,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:o,targetContainers:[a]},t!==null&&(t=Yo(t),t!==null&&uc(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function Hb(e,t,r,n,a){switch(t){case"focusin":return on=fo(on,e,t,r,n,a),!0;case"dragenter":return sn=fo(sn,e,t,r,n,a),!0;case"mouseover":return ln=fo(ln,e,t,r,n,a),!0;case"pointerover":var o=a.pointerId;return Do.set(o,fo(Do.get(o)||null,e,t,r,n,a)),!0;case"gotpointercapture":return o=a.pointerId,Oo.set(o,fo(Oo.get(o)||null,e,t,r,n,a)),!0}return!1}function bg(e){var t=Nn(e.target);if(t!==null){var r=Hn(t);if(r!==null){if(t=r.tag,t===13){if(t=ug(r),t!==null){e.blockedOn=t,wg(e.priority,function(){vg(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function bi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Id(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);wd=n,r.target.dispatchEvent(n),wd=null}else return t=Yo(r),t!==null&&uc(t),e.blockedOn=r,!1;t.shift()}return!0}function Ym(e,t,r){bi(e)&&r.delete(t)}function Wb(){kd=!1,on!==null&&bi(on)&&(on=null),sn!==null&&bi(sn)&&(sn=null),ln!==null&&bi(ln)&&(ln=null),Do.forEach(Ym),Oo.forEach(Ym)}function po(e,t){e.blockedOn===t&&(e.blockedOn=null,kd||(kd=!0,zt.unstable_scheduleCallback(zt.unstable_NormalPriority,Wb)))}function Fo(e){function t(a){return po(a,e)}if(0<ii.length){po(ii[0],e);for(var r=1;r<ii.length;r++){var n=ii[r];n.blockedOn===e&&(n.blockedOn=null)}}for(on!==null&&po(on,e),sn!==null&&po(sn,e),ln!==null&&po(ln,e),Do.forEach(t),Oo.forEach(t),r=0;r<tn.length;r++)n=tn[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<tn.length&&(r=tn[0],r.blockedOn===null);)bg(r),r.blockedOn===null&&tn.shift()}var Ea=$r.ReactCurrentBatchConfig,Oi=!0;function jb(e,t,r,n){var a=Le,o=Ea.transition;Ea.transition=null;try{Le=1,dc(e,t,r,n)}finally{Le=a,Ea.transition=o}}function Vb(e,t,r,n){var a=Le,o=Ea.transition;Ea.transition=null;try{Le=4,dc(e,t,r,n)}finally{Le=a,Ea.transition=o}}function dc(e,t,r,n){if(Oi){var a=Id(e,t,r,n);if(a===null)Yu(e,t,n,Fi,r),Qm(e,n);else if(Hb(a,e,t,r,n))n.stopPropagation();else if(Qm(e,n),t&4&&-1<$b.indexOf(e)){for(;a!==null;){var o=Yo(a);if(o!==null&&xg(o),o=Id(e,t,r,n),o===null&&Yu(e,t,n,Fi,r),o===a)break;a=o}a!==null&&n.stopPropagation()}else Yu(e,t,n,null,r)}}var Fi=null;function Id(e,t,r,n){if(Fi=null,e=sc(n),e=Nn(e),e!==null)if(t=Hn(e),t===null)e=null;else if(r=t.tag,r===13){if(e=ug(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Fi=e,null}function Sg(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Tb()){case ic:return 1;case pg:return 4;case Ai:case Ab:return 16;case mg:return 536870912;default:return 16}default:return 16}}var nn=null,cc=null,Si=null;function Cg(){if(Si)return Si;var e,t=cc,r=t.length,n,a="value"in nn?nn.value:nn.textContent,o=a.length;for(e=0;e<r&&t[e]===a[e];e++);var s=r-e;for(n=1;n<=s&&t[r-n]===a[o-n];n++);return Si=a.slice(e,1<n?1-n:void 0)}function Ci(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function li(){return!0}function Jm(){return!1}function Ut(e){function t(r,n,a,o,s){this._reactName=r,this._targetInst=a,this.type=n,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var i in e)e.hasOwnProperty(i)&&(r=e[i],this[i]=r?r(o):o[i]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?li:Jm,this.isPropagationStopped=Jm,this}return $e(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=li)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=li)},persist:function(){},isPersistent:li}),t}var Ua={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fc=Ut(Ua),Qo=$e({},Ua,{view:0,detail:0}),Gb=Ut(Qo),ju,Vu,mo,rl=$e({},Qo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:pc,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==mo&&(mo&&e.type==="mousemove"?(ju=e.screenX-mo.screenX,Vu=e.screenY-mo.screenY):Vu=ju=0,mo=e),ju)},movementY:function(e){return"movementY"in e?e.movementY:Vu}}),Zm=Ut(rl),Xb=$e({},rl,{dataTransfer:0}),Kb=Ut(Xb),Qb=$e({},Qo,{relatedTarget:0}),Gu=Ut(Qb),Yb=$e({},Ua,{animationName:0,elapsedTime:0,pseudoElement:0}),Jb=Ut(Yb),Zb=$e({},Ua,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),eS=Ut(Zb),tS=$e({},Ua,{data:0}),eh=Ut(tS),rS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},nS={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},aS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function oS(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=aS[e])?!!t[e]:!1}function pc(){return oS}var sS=$e({},Qo,{key:function(e){if(e.key){var t=rS[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ci(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?nS[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:pc,charCode:function(e){return e.type==="keypress"?Ci(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ci(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),iS=Ut(sS),lS=$e({},rl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),th=Ut(lS),uS=$e({},Qo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:pc}),dS=Ut(uS),cS=$e({},Ua,{propertyName:0,elapsedTime:0,pseudoElement:0}),fS=Ut(cS),pS=$e({},rl,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),mS=Ut(pS),hS=[9,13,27,32],mc=Br&&"CompositionEvent"in window,ko=null;Br&&"documentMode"in document&&(ko=document.documentMode);var gS=Br&&"TextEvent"in window&&!ko,Lg=Br&&(!mc||ko&&8<ko&&11>=ko),rh=" ",nh=!1;function kg(e,t){switch(e){case"keyup":return hS.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ig(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var xa=!1;function xS(e,t){switch(e){case"compositionend":return Ig(t);case"keypress":return t.which!==32?null:(nh=!0,rh);case"textInput":return e=t.data,e===rh&&nh?null:e;default:return null}}function vS(e,t){if(xa)return e==="compositionend"||!mc&&kg(e,t)?(e=Cg(),Si=cc=nn=null,xa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Lg&&t.locale!=="ko"?null:t.data;default:return null}}var yS={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function ah(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!yS[e.type]:t==="textarea"}function _g(e,t,r,n){ag(n),t=Bi(t,"onChange"),0<t.length&&(r=new fc("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Io=null,Bo=null;function wS(e){Bg(e,0)}function nl(e){var t=wa(e);if(Yh(t))return e}function bS(e,t){if(e==="change")return t}var Mg=!1;Br&&(Br?(di="oninput"in document,di||(Xu=document.createElement("div"),Xu.setAttribute("oninput","return;"),di=typeof Xu.oninput=="function"),ui=di):ui=!1,Mg=ui&&(!document.documentMode||9<document.documentMode));var ui,di,Xu;function oh(){Io&&(Io.detachEvent("onpropertychange",Rg),Bo=Io=null)}function Rg(e){if(e.propertyName==="value"&&nl(Bo)){var t=[];_g(t,Bo,e,sc(e)),lg(wS,t)}}function SS(e,t,r){e==="focusin"?(oh(),Io=t,Bo=r,Io.attachEvent("onpropertychange",Rg)):e==="focusout"&&oh()}function CS(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return nl(Bo)}function LS(e,t){if(e==="click")return nl(t)}function kS(e,t){if(e==="input"||e==="change")return nl(t)}function IS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var mr=typeof Object.is=="function"?Object.is:IS;function zo(e,t){if(mr(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var a=r[n];if(!ld.call(t,a)||!mr(e[a],t[a]))return!1}return!0}function sh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ih(e,t){var r=sh(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=sh(r)}}function Eg(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Eg(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Pg(){for(var e=window,t=Pi();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Pi(e.document)}return t}function hc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function _S(e){var t=Pg(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Eg(r.ownerDocument.documentElement,r)){if(n!==null&&hc(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=r.textContent.length,o=Math.min(n.start,a);n=n.end===void 0?o:Math.min(n.end,a),!e.extend&&o>n&&(a=n,n=o,o=a),a=ih(r,o);var s=ih(r,n);a&&s&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),o>n?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var MS=Br&&"documentMode"in document&&11>=document.documentMode,va=null,_d=null,_o=null,Md=!1;function lh(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Md||va==null||va!==Pi(n)||(n=va,"selectionStart"in n&&hc(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),_o&&zo(_o,n)||(_o=n,n=Bi(_d,"onSelect"),0<n.length&&(t=new fc("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=va)))}function ci(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var ya={animationend:ci("Animation","AnimationEnd"),animationiteration:ci("Animation","AnimationIteration"),animationstart:ci("Animation","AnimationStart"),transitionend:ci("Transition","TransitionEnd")},Ku={},Ng={};Br&&(Ng=document.createElement("div").style,"AnimationEvent"in window||(delete ya.animationend.animation,delete ya.animationiteration.animation,delete ya.animationstart.animation),"TransitionEvent"in window||delete ya.transitionend.transition);function al(e){if(Ku[e])return Ku[e];if(!ya[e])return e;var t=ya[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in Ng)return Ku[e]=t[r];return e}var Tg=al("animationend"),Ag=al("animationiteration"),Dg=al("animationstart"),Og=al("transitionend"),Fg=new Map,uh="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function gn(e,t){Fg.set(e,t),$n(t,[e])}for(fi=0;fi<uh.length;fi++)pi=uh[fi],dh=pi.toLowerCase(),ch=pi[0].toUpperCase()+pi.slice(1),gn(dh,"on"+ch);var pi,dh,ch,fi;gn(Tg,"onAnimationEnd");gn(Ag,"onAnimationIteration");gn(Dg,"onAnimationStart");gn("dblclick","onDoubleClick");gn("focusin","onFocus");gn("focusout","onBlur");gn(Og,"onTransitionEnd");Ta("onMouseEnter",["mouseout","mouseover"]);Ta("onMouseLeave",["mouseout","mouseover"]);Ta("onPointerEnter",["pointerout","pointerover"]);Ta("onPointerLeave",["pointerout","pointerover"]);$n("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));$n("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));$n("onBeforeInput",["compositionend","keypress","textInput","paste"]);$n("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));$n("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));$n("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var So="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),RS=new Set("cancel close invalid load scroll toggle".split(" ").concat(So));function fh(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,Rb(n,t,void 0,e),e.currentTarget=null}function Bg(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],a=n.event;n=n.listeners;e:{var o=void 0;if(t)for(var s=n.length-1;0<=s;s--){var i=n[s],l=i.instance,d=i.currentTarget;if(i=i.listener,l!==o&&a.isPropagationStopped())break e;fh(a,i,d),o=l}else for(s=0;s<n.length;s++){if(i=n[s],l=i.instance,d=i.currentTarget,i=i.listener,l!==o&&a.isPropagationStopped())break e;fh(a,i,d),o=l}}}if(Ti)throw e=Cd,Ti=!1,Cd=null,e}function Ae(e,t){var r=t[Td];r===void 0&&(r=t[Td]=new Set);var n=e+"__bubble";r.has(n)||(zg(t,e,2,!1),r.add(n))}function Qu(e,t,r){var n=0;t&&(n|=4),zg(r,e,n,t)}var mi="_reactListening"+Math.random().toString(36).slice(2);function Uo(e){if(!e[mi]){e[mi]=!0,Vh.forEach(function(r){r!=="selectionchange"&&(RS.has(r)||Qu(r,!1,e),Qu(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[mi]||(t[mi]=!0,Qu("selectionchange",!1,t))}}function zg(e,t,r,n){switch(Sg(t)){case 1:var a=jb;break;case 4:a=Vb;break;default:a=dc}r=a.bind(null,t,r,e),a=void 0,!Sd||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),n?a!==void 0?e.addEventListener(t,r,{capture:!0,passive:a}):e.addEventListener(t,r,!0):a!==void 0?e.addEventListener(t,r,{passive:a}):e.addEventListener(t,r,!1)}function Yu(e,t,r,n,a){var o=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var s=n.tag;if(s===3||s===4){var i=n.stateNode.containerInfo;if(i===a||i.nodeType===8&&i.parentNode===a)break;if(s===4)for(s=n.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===a||l.nodeType===8&&l.parentNode===a))return;s=s.return}for(;i!==null;){if(s=Nn(i),s===null)return;if(l=s.tag,l===5||l===6){n=o=s;continue e}i=i.parentNode}}n=n.return}lg(function(){var d=o,u=sc(r),p=[];e:{var c=Fg.get(e);if(c!==void 0){var f=fc,h=e;switch(e){case"keypress":if(Ci(r)===0)break e;case"keydown":case"keyup":f=iS;break;case"focusin":h="focus",f=Gu;break;case"focusout":h="blur",f=Gu;break;case"beforeblur":case"afterblur":f=Gu;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":f=Zm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=Kb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=dS;break;case Tg:case Ag:case Dg:f=Jb;break;case Og:f=fS;break;case"scroll":f=Gb;break;case"wheel":f=mS;break;case"copy":case"cut":case"paste":f=eS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=th}var m=(t&4)!==0,b=!m&&e==="scroll",g=m?c!==null?c+"Capture":null:c;m=[];for(var x=d,v;x!==null;){v=x;var S=v.stateNode;if(v.tag===5&&S!==null&&(v=S,g!==null&&(S=Ao(x,g),S!=null&&m.push(qo(x,S,v)))),b)break;x=x.return}0<m.length&&(c=new f(c,h,null,r,u),p.push({event:c,listeners:m}))}}if((t&7)===0){e:{if(c=e==="mouseover"||e==="pointerover",f=e==="mouseout"||e==="pointerout",c&&r!==wd&&(h=r.relatedTarget||r.fromElement)&&(Nn(h)||h[zr]))break e;if((f||c)&&(c=u.window===u?u:(c=u.ownerDocument)?c.defaultView||c.parentWindow:window,f?(h=r.relatedTarget||r.toElement,f=d,h=h?Nn(h):null,h!==null&&(b=Hn(h),h!==b||h.tag!==5&&h.tag!==6)&&(h=null)):(f=null,h=d),f!==h)){if(m=Zm,S="onMouseLeave",g="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(m=th,S="onPointerLeave",g="onPointerEnter",x="pointer"),b=f==null?c:wa(f),v=h==null?c:wa(h),c=new m(S,x+"leave",f,r,u),c.target=b,c.relatedTarget=v,S=null,Nn(u)===d&&(m=new m(g,x+"enter",h,r,u),m.target=v,m.relatedTarget=b,S=m),b=S,f&&h)t:{for(m=f,g=h,x=0,v=m;v;v=ma(v))x++;for(v=0,S=g;S;S=ma(S))v++;for(;0<x-v;)m=ma(m),x--;for(;0<v-x;)g=ma(g),v--;for(;x--;){if(m===g||g!==null&&m===g.alternate)break t;m=ma(m),g=ma(g)}m=null}else m=null;f!==null&&ph(p,c,f,m,!1),h!==null&&b!==null&&ph(p,b,h,m,!0)}}e:{if(c=d?wa(d):window,f=c.nodeName&&c.nodeName.toLowerCase(),f==="select"||f==="input"&&c.type==="file")var y=bS;else if(ah(c))if(Mg)y=kS;else{y=CS;var w=SS}else(f=c.nodeName)&&f.toLowerCase()==="input"&&(c.type==="checkbox"||c.type==="radio")&&(y=LS);if(y&&(y=y(e,d))){_g(p,y,r,u);break e}w&&w(e,c,d),e==="focusout"&&(w=c._wrapperState)&&w.controlled&&c.type==="number"&&hd(c,"number",c.value)}switch(w=d?wa(d):window,e){case"focusin":(ah(w)||w.contentEditable==="true")&&(va=w,_d=d,_o=null);break;case"focusout":_o=_d=va=null;break;case"mousedown":Md=!0;break;case"contextmenu":case"mouseup":case"dragend":Md=!1,lh(p,r,u);break;case"selectionchange":if(MS)break;case"keydown":case"keyup":lh(p,r,u)}var L;if(mc)e:{switch(e){case"compositionstart":var C="onCompositionStart";break e;case"compositionend":C="onCompositionEnd";break e;case"compositionupdate":C="onCompositionUpdate";break e}C=void 0}else xa?kg(e,r)&&(C="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(C="onCompositionStart");C&&(Lg&&r.locale!=="ko"&&(xa||C!=="onCompositionStart"?C==="onCompositionEnd"&&xa&&(L=Cg()):(nn=u,cc="value"in nn?nn.value:nn.textContent,xa=!0)),w=Bi(d,C),0<w.length&&(C=new eh(C,e,null,r,u),p.push({event:C,listeners:w}),L?C.data=L:(L=Ig(r),L!==null&&(C.data=L)))),(L=gS?xS(e,r):vS(e,r))&&(d=Bi(d,"onBeforeInput"),0<d.length&&(u=new eh("onBeforeInput","beforeinput",null,r,u),p.push({event:u,listeners:d}),u.data=L))}Bg(p,t)})}function qo(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Bi(e,t){for(var r=t+"Capture",n=[];e!==null;){var a=e,o=a.stateNode;a.tag===5&&o!==null&&(a=o,o=Ao(e,r),o!=null&&n.unshift(qo(e,o,a)),o=Ao(e,t),o!=null&&n.push(qo(e,o,a))),e=e.return}return n}function ma(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function ph(e,t,r,n,a){for(var o=t._reactName,s=[];r!==null&&r!==n;){var i=r,l=i.alternate,d=i.stateNode;if(l!==null&&l===n)break;i.tag===5&&d!==null&&(i=d,a?(l=Ao(r,o),l!=null&&s.unshift(qo(r,l,i))):a||(l=Ao(r,o),l!=null&&s.push(qo(r,l,i)))),r=r.return}s.length!==0&&e.push({event:t,listeners:s})}var ES=/\r\n?/g,PS=/\u0000|\uFFFD/g;function mh(e){return(typeof e=="string"?e:""+e).replace(ES,`
|
|
6
|
-
`).replace(PS,"")}function hi(e,t,r){if(t=mh(t),mh(e)!==t&&r)throw Error(P(425))}function zi(){}var Rd=null,Ed=null;function Pd(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Nd=typeof setTimeout=="function"?setTimeout:void 0,NS=typeof clearTimeout=="function"?clearTimeout:void 0,hh=typeof Promise=="function"?Promise:void 0,TS=typeof queueMicrotask=="function"?queueMicrotask:typeof hh<"u"?function(e){return hh.resolve(null).then(e).catch(AS)}:Nd;function AS(e){setTimeout(function(){throw e})}function Ju(e,t){var r=t,n=0;do{var a=r.nextSibling;if(e.removeChild(r),a&&a.nodeType===8)if(r=a.data,r==="/$"){if(n===0){e.removeChild(a),Fo(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=a}while(r);Fo(t)}function un(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function gh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var qa=Math.random().toString(36).slice(2),Ir="__reactFiber$"+qa,$o="__reactProps$"+qa,zr="__reactContainer$"+qa,Td="__reactEvents$"+qa,DS="__reactListeners$"+qa,OS="__reactHandles$"+qa;function Nn(e){var t=e[Ir];if(t)return t;for(var r=e.parentNode;r;){if(t=r[zr]||r[Ir]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=gh(e);e!==null;){if(r=e[Ir])return r;e=gh(e)}return t}e=r,r=e.parentNode}return null}function Yo(e){return e=e[Ir]||e[zr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function wa(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(P(33))}function ol(e){return e[$o]||null}var Ad=[],ba=-1;function xn(e){return{current:e}}function De(e){0>ba||(e.current=Ad[ba],Ad[ba]=null,ba--)}function Pe(e,t){ba++,Ad[ba]=e.current,e.current=t}var hn={},mt=xn(hn),Rt=xn(!1),Fn=hn;function Aa(e,t){var r=e.type.contextTypes;if(!r)return hn;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var a={},o;for(o in r)a[o]=t[o];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Et(e){return e=e.childContextTypes,e!=null}function Ui(){De(Rt),De(mt)}function xh(e,t,r){if(mt.current!==hn)throw Error(P(168));Pe(mt,t),Pe(Rt,r)}function Ug(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var a in n)if(!(a in t))throw Error(P(108,Sb(e)||"Unknown",a));return $e({},r,n)}function qi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||hn,Fn=mt.current,Pe(mt,e),Pe(Rt,Rt.current),!0}function vh(e,t,r){var n=e.stateNode;if(!n)throw Error(P(169));r?(e=Ug(e,t,Fn),n.__reactInternalMemoizedMergedChildContext=e,De(Rt),De(mt),Pe(mt,e)):De(Rt),Pe(Rt,r)}var Ar=null,sl=!1,Zu=!1;function qg(e){Ar===null?Ar=[e]:Ar.push(e)}function FS(e){sl=!0,qg(e)}function vn(){if(!Zu&&Ar!==null){Zu=!0;var e=0,t=Le;try{var r=Ar;for(Le=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}Ar=null,sl=!1}catch(a){throw Ar!==null&&(Ar=Ar.slice(e+1)),fg(ic,vn),a}finally{Le=t,Zu=!1}}return null}var Sa=[],Ca=0,$i=null,Hi=0,Vt=[],Gt=0,Bn=null,Dr=1,Or="";function En(e,t){Sa[Ca++]=Hi,Sa[Ca++]=$i,$i=e,Hi=t}function $g(e,t,r){Vt[Gt++]=Dr,Vt[Gt++]=Or,Vt[Gt++]=Bn,Bn=e;var n=Dr;e=Or;var a=32-fr(n)-1;n&=~(1<<a),r+=1;var o=32-fr(t)+a;if(30<o){var s=a-a%5;o=(n&(1<<s)-1).toString(32),n>>=s,a-=s,Dr=1<<32-fr(t)+a|r<<a|n,Or=o+e}else Dr=1<<o|r<<a|n,Or=e}function gc(e){e.return!==null&&(En(e,1),$g(e,1,0))}function xc(e){for(;e===$i;)$i=Sa[--Ca],Sa[Ca]=null,Hi=Sa[--Ca],Sa[Ca]=null;for(;e===Bn;)Bn=Vt[--Gt],Vt[Gt]=null,Or=Vt[--Gt],Vt[Gt]=null,Dr=Vt[--Gt],Vt[Gt]=null}var Bt=null,Ft=null,Fe=!1,cr=null;function Hg(e,t){var r=Xt(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function yh(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Bt=e,Ft=un(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Bt=e,Ft=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Bn!==null?{id:Dr,overflow:Or}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=Xt(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,Bt=e,Ft=null,!0):!1;default:return!1}}function Dd(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Od(e){if(Fe){var t=Ft;if(t){var r=t;if(!yh(e,t)){if(Dd(e))throw Error(P(418));t=un(r.nextSibling);var n=Bt;t&&yh(e,t)?Hg(n,r):(e.flags=e.flags&-4097|2,Fe=!1,Bt=e)}}else{if(Dd(e))throw Error(P(418));e.flags=e.flags&-4097|2,Fe=!1,Bt=e}}}function wh(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Bt=e}function gi(e){if(e!==Bt)return!1;if(!Fe)return wh(e),Fe=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Pd(e.type,e.memoizedProps)),t&&(t=Ft)){if(Dd(e))throw Wg(),Error(P(418));for(;t;)Hg(e,t),t=un(t.nextSibling)}if(wh(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(P(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Ft=un(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Ft=null}}else Ft=Bt?un(e.stateNode.nextSibling):null;return!0}function Wg(){for(var e=Ft;e;)e=un(e.nextSibling)}function Da(){Ft=Bt=null,Fe=!1}function vc(e){cr===null?cr=[e]:cr.push(e)}var BS=$r.ReactCurrentBatchConfig;function ho(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(P(309));var n=r.stateNode}if(!n)throw Error(P(147,e));var a=n,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(s){var i=a.refs;s===null?delete i[o]:i[o]=s},t._stringRef=o,t)}if(typeof e!="string")throw Error(P(284));if(!r._owner)throw Error(P(290,e))}return e}function xi(e,t){throw e=Object.prototype.toString.call(t),Error(P(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bh(e){var t=e._init;return t(e._payload)}function jg(e){function t(g,x){if(e){var v=g.deletions;v===null?(g.deletions=[x],g.flags|=16):v.push(x)}}function r(g,x){if(!e)return null;for(;x!==null;)t(g,x),x=x.sibling;return null}function n(g,x){for(g=new Map;x!==null;)x.key!==null?g.set(x.key,x):g.set(x.index,x),x=x.sibling;return g}function a(g,x){return g=pn(g,x),g.index=0,g.sibling=null,g}function o(g,x,v){return g.index=v,e?(v=g.alternate,v!==null?(v=v.index,v<x?(g.flags|=2,x):v):(g.flags|=2,x)):(g.flags|=1048576,x)}function s(g){return e&&g.alternate===null&&(g.flags|=2),g}function i(g,x,v,S){return x===null||x.tag!==6?(x=sd(v,g.mode,S),x.return=g,x):(x=a(x,v),x.return=g,x)}function l(g,x,v,S){var y=v.type;return y===ga?u(g,x,v.props.children,S,v.key):x!==null&&(x.elementType===y||typeof y=="object"&&y!==null&&y.$$typeof===Zr&&bh(y)===x.type)?(S=a(x,v.props),S.ref=ho(g,x,v),S.return=g,S):(S=Ei(v.type,v.key,v.props,null,g.mode,S),S.ref=ho(g,x,v),S.return=g,S)}function d(g,x,v,S){return x===null||x.tag!==4||x.stateNode.containerInfo!==v.containerInfo||x.stateNode.implementation!==v.implementation?(x=id(v,g.mode,S),x.return=g,x):(x=a(x,v.children||[]),x.return=g,x)}function u(g,x,v,S,y){return x===null||x.tag!==7?(x=On(v,g.mode,S,y),x.return=g,x):(x=a(x,v),x.return=g,x)}function p(g,x,v){if(typeof x=="string"&&x!==""||typeof x=="number")return x=sd(""+x,g.mode,v),x.return=g,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case ri:return v=Ei(x.type,x.key,x.props,null,g.mode,v),v.ref=ho(g,null,x),v.return=g,v;case ha:return x=id(x,g.mode,v),x.return=g,x;case Zr:var S=x._init;return p(g,S(x._payload),v)}if(wo(x)||co(x))return x=On(x,g.mode,v,null),x.return=g,x;xi(g,x)}return null}function c(g,x,v,S){var y=x!==null?x.key:null;if(typeof v=="string"&&v!==""||typeof v=="number")return y!==null?null:i(g,x,""+v,S);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case ri:return v.key===y?l(g,x,v,S):null;case ha:return v.key===y?d(g,x,v,S):null;case Zr:return y=v._init,c(g,x,y(v._payload),S)}if(wo(v)||co(v))return y!==null?null:u(g,x,v,S,null);xi(g,v)}return null}function f(g,x,v,S,y){if(typeof S=="string"&&S!==""||typeof S=="number")return g=g.get(v)||null,i(x,g,""+S,y);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case ri:return g=g.get(S.key===null?v:S.key)||null,l(x,g,S,y);case ha:return g=g.get(S.key===null?v:S.key)||null,d(x,g,S,y);case Zr:var w=S._init;return f(g,x,v,w(S._payload),y)}if(wo(S)||co(S))return g=g.get(v)||null,u(x,g,S,y,null);xi(x,S)}return null}function h(g,x,v,S){for(var y=null,w=null,L=x,C=x=0,_=null;L!==null&&C<v.length;C++){L.index>C?(_=L,L=null):_=L.sibling;var I=c(g,L,v[C],S);if(I===null){L===null&&(L=_);break}e&&L&&I.alternate===null&&t(g,L),x=o(I,x,C),w===null?y=I:w.sibling=I,w=I,L=_}if(C===v.length)return r(g,L),Fe&&En(g,C),y;if(L===null){for(;C<v.length;C++)L=p(g,v[C],S),L!==null&&(x=o(L,x,C),w===null?y=L:w.sibling=L,w=L);return Fe&&En(g,C),y}for(L=n(g,L);C<v.length;C++)_=f(L,g,C,v[C],S),_!==null&&(e&&_.alternate!==null&&L.delete(_.key===null?C:_.key),x=o(_,x,C),w===null?y=_:w.sibling=_,w=_);return e&&L.forEach(function(D){return t(g,D)}),Fe&&En(g,C),y}function m(g,x,v,S){var y=co(v);if(typeof y!="function")throw Error(P(150));if(v=y.call(v),v==null)throw Error(P(151));for(var w=y=null,L=x,C=x=0,_=null,I=v.next();L!==null&&!I.done;C++,I=v.next()){L.index>C?(_=L,L=null):_=L.sibling;var D=c(g,L,I.value,S);if(D===null){L===null&&(L=_);break}e&&L&&D.alternate===null&&t(g,L),x=o(D,x,C),w===null?y=D:w.sibling=D,w=D,L=_}if(I.done)return r(g,L),Fe&&En(g,C),y;if(L===null){for(;!I.done;C++,I=v.next())I=p(g,I.value,S),I!==null&&(x=o(I,x,C),w===null?y=I:w.sibling=I,w=I);return Fe&&En(g,C),y}for(L=n(g,L);!I.done;C++,I=v.next())I=f(L,g,C,I.value,S),I!==null&&(e&&I.alternate!==null&&L.delete(I.key===null?C:I.key),x=o(I,x,C),w===null?y=I:w.sibling=I,w=I);return e&&L.forEach(function(A){return t(g,A)}),Fe&&En(g,C),y}function b(g,x,v,S){if(typeof v=="object"&&v!==null&&v.type===ga&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case ri:e:{for(var y=v.key,w=x;w!==null;){if(w.key===y){if(y=v.type,y===ga){if(w.tag===7){r(g,w.sibling),x=a(w,v.props.children),x.return=g,g=x;break e}}else if(w.elementType===y||typeof y=="object"&&y!==null&&y.$$typeof===Zr&&bh(y)===w.type){r(g,w.sibling),x=a(w,v.props),x.ref=ho(g,w,v),x.return=g,g=x;break e}r(g,w);break}else t(g,w);w=w.sibling}v.type===ga?(x=On(v.props.children,g.mode,S,v.key),x.return=g,g=x):(S=Ei(v.type,v.key,v.props,null,g.mode,S),S.ref=ho(g,x,v),S.return=g,g=S)}return s(g);case ha:e:{for(w=v.key;x!==null;){if(x.key===w)if(x.tag===4&&x.stateNode.containerInfo===v.containerInfo&&x.stateNode.implementation===v.implementation){r(g,x.sibling),x=a(x,v.children||[]),x.return=g,g=x;break e}else{r(g,x);break}else t(g,x);x=x.sibling}x=id(v,g.mode,S),x.return=g,g=x}return s(g);case Zr:return w=v._init,b(g,x,w(v._payload),S)}if(wo(v))return h(g,x,v,S);if(co(v))return m(g,x,v,S);xi(g,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,x!==null&&x.tag===6?(r(g,x.sibling),x=a(x,v),x.return=g,g=x):(r(g,x),x=sd(v,g.mode,S),x.return=g,g=x),s(g)):r(g,x)}return b}var Oa=jg(!0),Vg=jg(!1),Wi=xn(null),ji=null,La=null,yc=null;function wc(){yc=La=ji=null}function bc(e){var t=Wi.current;De(Wi),e._currentValue=t}function Fd(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Pa(e,t){ji=e,yc=La=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Mt=!0),e.firstContext=null)}function Qt(e){var t=e._currentValue;if(yc!==e)if(e={context:e,memoizedValue:t,next:null},La===null){if(ji===null)throw Error(P(308));La=e,ji.dependencies={lanes:0,firstContext:e}}else La=La.next=e;return t}var Tn=null;function Sc(e){Tn===null?Tn=[e]:Tn.push(e)}function Gg(e,t,r,n){var a=t.interleaved;return a===null?(r.next=r,Sc(t)):(r.next=a.next,a.next=r),t.interleaved=r,Ur(e,n)}function Ur(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var en=!1;function Cc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Xg(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Fr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function dn(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(he&2)!==0){var a=n.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),n.pending=t,Ur(e,r)}return a=n.interleaved,a===null?(t.next=t,Sc(n)):(t.next=a.next,a.next=t),n.interleaved=t,Ur(e,r)}function Li(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,lc(e,r)}}function Sh(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var a=null,o=null;if(r=r.firstBaseUpdate,r!==null){do{var s={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};o===null?a=o=s:o=o.next=s,r=r.next}while(r!==null);o===null?a=o=t:o=o.next=t}else a=o=t;r={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Vi(e,t,r,n){var a=e.updateQueue;en=!1;var o=a.firstBaseUpdate,s=a.lastBaseUpdate,i=a.shared.pending;if(i!==null){a.shared.pending=null;var l=i,d=l.next;l.next=null,s===null?o=d:s.next=d,s=l;var u=e.alternate;u!==null&&(u=u.updateQueue,i=u.lastBaseUpdate,i!==s&&(i===null?u.firstBaseUpdate=d:i.next=d,u.lastBaseUpdate=l))}if(o!==null){var p=a.baseState;s=0,u=d=l=null,i=o;do{var c=i.lane,f=i.eventTime;if((n&c)===c){u!==null&&(u=u.next={eventTime:f,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var h=e,m=i;switch(c=t,f=r,m.tag){case 1:if(h=m.payload,typeof h=="function"){p=h.call(f,p,c);break e}p=h;break e;case 3:h.flags=h.flags&-65537|128;case 0:if(h=m.payload,c=typeof h=="function"?h.call(f,p,c):h,c==null)break e;p=$e({},p,c);break e;case 2:en=!0}}i.callback!==null&&i.lane!==0&&(e.flags|=64,c=a.effects,c===null?a.effects=[i]:c.push(i))}else f={eventTime:f,lane:c,tag:i.tag,payload:i.payload,callback:i.callback,next:null},u===null?(d=u=f,l=p):u=u.next=f,s|=c;if(i=i.next,i===null){if(i=a.shared.pending,i===null)break;c=i,i=c.next,c.next=null,a.lastBaseUpdate=c,a.shared.pending=null}}while(!0);if(u===null&&(l=p),a.baseState=l,a.firstBaseUpdate=d,a.lastBaseUpdate=u,t=a.shared.interleaved,t!==null){a=t;do s|=a.lane,a=a.next;while(a!==t)}else o===null&&(a.shared.lanes=0);Un|=s,e.lanes=s,e.memoizedState=p}}function Ch(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],a=n.callback;if(a!==null){if(n.callback=null,n=r,typeof a!="function")throw Error(P(191,a));a.call(n)}}}var Jo={},Mr=xn(Jo),Ho=xn(Jo),Wo=xn(Jo);function An(e){if(e===Jo)throw Error(P(174));return e}function Lc(e,t){switch(Pe(Wo,t),Pe(Ho,e),Pe(Mr,Jo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:xd(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=xd(t,e)}De(Mr),Pe(Mr,t)}function Fa(){De(Mr),De(Ho),De(Wo)}function Kg(e){An(Wo.current);var t=An(Mr.current),r=xd(t,e.type);t!==r&&(Pe(Ho,e),Pe(Mr,r))}function kc(e){Ho.current===e&&(De(Mr),De(Ho))}var Ue=xn(0);function Gi(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ed=[];function Ic(){for(var e=0;e<ed.length;e++)ed[e]._workInProgressVersionPrimary=null;ed.length=0}var ki=$r.ReactCurrentDispatcher,td=$r.ReactCurrentBatchConfig,zn=0,qe=null,Ye=null,tt=null,Xi=!1,Mo=!1,jo=0,zS=0;function ct(){throw Error(P(321))}function _c(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!mr(e[r],t[r]))return!1;return!0}function Mc(e,t,r,n,a,o){if(zn=o,qe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ki.current=e===null||e.memoizedState===null?HS:WS,e=r(n,a),Mo){o=0;do{if(Mo=!1,jo=0,25<=o)throw Error(P(301));o+=1,tt=Ye=null,t.updateQueue=null,ki.current=jS,e=r(n,a)}while(Mo)}if(ki.current=Ki,t=Ye!==null&&Ye.next!==null,zn=0,tt=Ye=qe=null,Xi=!1,t)throw Error(P(300));return e}function Rc(){var e=jo!==0;return jo=0,e}function kr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return tt===null?qe.memoizedState=tt=e:tt=tt.next=e,tt}function Yt(){if(Ye===null){var e=qe.alternate;e=e!==null?e.memoizedState:null}else e=Ye.next;var t=tt===null?qe.memoizedState:tt.next;if(t!==null)tt=t,Ye=e;else{if(e===null)throw Error(P(310));Ye=e,e={memoizedState:Ye.memoizedState,baseState:Ye.baseState,baseQueue:Ye.baseQueue,queue:Ye.queue,next:null},tt===null?qe.memoizedState=tt=e:tt=tt.next=e}return tt}function Vo(e,t){return typeof t=="function"?t(e):t}function rd(e){var t=Yt(),r=t.queue;if(r===null)throw Error(P(311));r.lastRenderedReducer=e;var n=Ye,a=n.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}n.baseQueue=a=o,r.pending=null}if(a!==null){o=a.next,n=n.baseState;var i=s=null,l=null,d=o;do{var u=d.lane;if((zn&u)===u)l!==null&&(l=l.next={lane:0,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null}),n=d.hasEagerState?d.eagerState:e(n,d.action);else{var p={lane:u,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null};l===null?(i=l=p,s=n):l=l.next=p,qe.lanes|=u,Un|=u}d=d.next}while(d!==null&&d!==o);l===null?s=n:l.next=i,mr(n,t.memoizedState)||(Mt=!0),t.memoizedState=n,t.baseState=s,t.baseQueue=l,r.lastRenderedState=n}if(e=r.interleaved,e!==null){a=e;do o=a.lane,qe.lanes|=o,Un|=o,a=a.next;while(a!==e)}else a===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function nd(e){var t=Yt(),r=t.queue;if(r===null)throw Error(P(311));r.lastRenderedReducer=e;var n=r.dispatch,a=r.pending,o=t.memoizedState;if(a!==null){r.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);mr(o,t.memoizedState)||(Mt=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),r.lastRenderedState=o}return[o,n]}function Qg(){}function Yg(e,t){var r=qe,n=Yt(),a=t(),o=!mr(n.memoizedState,a);if(o&&(n.memoizedState=a,Mt=!0),n=n.queue,Ec(ex.bind(null,r,n,e),[e]),n.getSnapshot!==t||o||tt!==null&&tt.memoizedState.tag&1){if(r.flags|=2048,Go(9,Zg.bind(null,r,n,a,t),void 0,null),rt===null)throw Error(P(349));(zn&30)!==0||Jg(r,t,a)}return a}function Jg(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=qe.updateQueue,t===null?(t={lastEffect:null,stores:null},qe.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function Zg(e,t,r,n){t.value=r,t.getSnapshot=n,tx(t)&&rx(e)}function ex(e,t,r){return r(function(){tx(t)&&rx(e)})}function tx(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!mr(e,r)}catch{return!0}}function rx(e){var t=Ur(e,1);t!==null&&pr(t,e,1,-1)}function Lh(e){var t=kr();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Vo,lastRenderedState:e},t.queue=e,e=e.dispatch=$S.bind(null,qe,e),[t.memoizedState,e]}function Go(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=qe.updateQueue,t===null?(t={lastEffect:null,stores:null},qe.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function nx(){return Yt().memoizedState}function Ii(e,t,r,n){var a=kr();qe.flags|=e,a.memoizedState=Go(1|t,r,void 0,n===void 0?null:n)}function il(e,t,r,n){var a=Yt();n=n===void 0?null:n;var o=void 0;if(Ye!==null){var s=Ye.memoizedState;if(o=s.destroy,n!==null&&_c(n,s.deps)){a.memoizedState=Go(t,r,o,n);return}}qe.flags|=e,a.memoizedState=Go(1|t,r,o,n)}function kh(e,t){return Ii(8390656,8,e,t)}function Ec(e,t){return il(2048,8,e,t)}function ax(e,t){return il(4,2,e,t)}function ox(e,t){return il(4,4,e,t)}function sx(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ix(e,t,r){return r=r!=null?r.concat([e]):null,il(4,4,sx.bind(null,t,e),r)}function Pc(){}function lx(e,t){var r=Yt();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&_c(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function ux(e,t){var r=Yt();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&_c(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function dx(e,t,r){return(zn&21)===0?(e.baseState&&(e.baseState=!1,Mt=!0),e.memoizedState=r):(mr(r,t)||(r=hg(),qe.lanes|=r,Un|=r,e.baseState=!0),t)}function US(e,t){var r=Le;Le=r!==0&&4>r?r:4,e(!0);var n=td.transition;td.transition={};try{e(!1),t()}finally{Le=r,td.transition=n}}function cx(){return Yt().memoizedState}function qS(e,t,r){var n=fn(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},fx(e))px(t,r);else if(r=Gg(e,t,r,n),r!==null){var a=St();pr(r,e,n,a),mx(r,t,n)}}function $S(e,t,r){var n=fn(e),a={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(fx(e))px(t,a);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,i=o(s,r);if(a.hasEagerState=!0,a.eagerState=i,mr(i,s)){var l=t.interleaved;l===null?(a.next=a,Sc(t)):(a.next=l.next,l.next=a),t.interleaved=a;return}}catch{}r=Gg(e,t,a,n),r!==null&&(a=St(),pr(r,e,n,a),mx(r,t,n))}}function fx(e){var t=e.alternate;return e===qe||t!==null&&t===qe}function px(e,t){Mo=Xi=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function mx(e,t,r){if((r&4194240)!==0){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,lc(e,r)}}var Ki={readContext:Qt,useCallback:ct,useContext:ct,useEffect:ct,useImperativeHandle:ct,useInsertionEffect:ct,useLayoutEffect:ct,useMemo:ct,useReducer:ct,useRef:ct,useState:ct,useDebugValue:ct,useDeferredValue:ct,useTransition:ct,useMutableSource:ct,useSyncExternalStore:ct,useId:ct,unstable_isNewReconciler:!1},HS={readContext:Qt,useCallback:function(e,t){return kr().memoizedState=[e,t===void 0?null:t],e},useContext:Qt,useEffect:kh,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Ii(4194308,4,sx.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Ii(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ii(4,2,e,t)},useMemo:function(e,t){var r=kr();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=kr();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=qS.bind(null,qe,e),[n.memoizedState,e]},useRef:function(e){var t=kr();return e={current:e},t.memoizedState=e},useState:Lh,useDebugValue:Pc,useDeferredValue:function(e){return kr().memoizedState=e},useTransition:function(){var e=Lh(!1),t=e[0];return e=US.bind(null,e[1]),kr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=qe,a=kr();if(Fe){if(r===void 0)throw Error(P(407));r=r()}else{if(r=t(),rt===null)throw Error(P(349));(zn&30)!==0||Jg(n,t,r)}a.memoizedState=r;var o={value:r,getSnapshot:t};return a.queue=o,kh(ex.bind(null,n,o,e),[e]),n.flags|=2048,Go(9,Zg.bind(null,n,o,r,t),void 0,null),r},useId:function(){var e=kr(),t=rt.identifierPrefix;if(Fe){var r=Or,n=Dr;r=(n&~(1<<32-fr(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=jo++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=zS++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},WS={readContext:Qt,useCallback:lx,useContext:Qt,useEffect:Ec,useImperativeHandle:ix,useInsertionEffect:ax,useLayoutEffect:ox,useMemo:ux,useReducer:rd,useRef:nx,useState:function(){return rd(Vo)},useDebugValue:Pc,useDeferredValue:function(e){var t=Yt();return dx(t,Ye.memoizedState,e)},useTransition:function(){var e=rd(Vo)[0],t=Yt().memoizedState;return[e,t]},useMutableSource:Qg,useSyncExternalStore:Yg,useId:cx,unstable_isNewReconciler:!1},jS={readContext:Qt,useCallback:lx,useContext:Qt,useEffect:Ec,useImperativeHandle:ix,useInsertionEffect:ax,useLayoutEffect:ox,useMemo:ux,useReducer:nd,useRef:nx,useState:function(){return nd(Vo)},useDebugValue:Pc,useDeferredValue:function(e){var t=Yt();return Ye===null?t.memoizedState=e:dx(t,Ye.memoizedState,e)},useTransition:function(){var e=nd(Vo)[0],t=Yt().memoizedState;return[e,t]},useMutableSource:Qg,useSyncExternalStore:Yg,useId:cx,unstable_isNewReconciler:!1};function ur(e,t){if(e&&e.defaultProps){t=$e({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function Bd(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:$e({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var ll={isMounted:function(e){return(e=e._reactInternals)?Hn(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=St(),a=fn(e),o=Fr(n,a);o.payload=t,r!=null&&(o.callback=r),t=dn(e,o,a),t!==null&&(pr(t,e,a,n),Li(t,e,a))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=St(),a=fn(e),o=Fr(n,a);o.tag=1,o.payload=t,r!=null&&(o.callback=r),t=dn(e,o,a),t!==null&&(pr(t,e,a,n),Li(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=St(),n=fn(e),a=Fr(r,n);a.tag=2,t!=null&&(a.callback=t),t=dn(e,a,n),t!==null&&(pr(t,e,n,r),Li(t,e,n))}};function Ih(e,t,r,n,a,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,o,s):t.prototype&&t.prototype.isPureReactComponent?!zo(r,n)||!zo(a,o):!0}function hx(e,t,r){var n=!1,a=hn,o=t.contextType;return typeof o=="object"&&o!==null?o=Qt(o):(a=Et(t)?Fn:mt.current,n=t.contextTypes,o=(n=n!=null)?Aa(e,a):hn),t=new t(r,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ll,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=o),t}function _h(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&ll.enqueueReplaceState(t,t.state,null)}function zd(e,t,r,n){var a=e.stateNode;a.props=r,a.state=e.memoizedState,a.refs={},Cc(e);var o=t.contextType;typeof o=="object"&&o!==null?a.context=Qt(o):(o=Et(t)?Fn:mt.current,a.context=Aa(e,o)),a.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Bd(e,t,o,r),a.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof a.getSnapshotBeforeUpdate=="function"||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(t=a.state,typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),t!==a.state&&ll.enqueueReplaceState(a,a.state,null),Vi(e,r,a,n),a.state=e.memoizedState),typeof a.componentDidMount=="function"&&(e.flags|=4194308)}function Ba(e,t){try{var r="",n=t;do r+=bb(n),n=n.return;while(n);var a=r}catch(o){a=`
|
|
4
|
+
`),s=a.length-1,l=o.length-1;1<=s&&0<=l&&a[s]!==o[l];)l--;for(;1<=s&&0<=l;s--,l--)if(a[s]!==o[l]){if(s!==1||l!==1)do if(s--,l--,0>l||a[s]!==o[l]){var i=`
|
|
5
|
+
`+a[s].replace(" at new "," at ");return e.displayName&&i.includes("<anonymous>")&&(i=i.replace("<anonymous>",e.displayName)),i}while(1<=s&&0<=l);break}}}finally{ju=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?Co(e):""}function M0(e){switch(e.tag){case 5:return Co(e.type);case 16:return Co("Lazy");case 13:return Co("Suspense");case 19:return Co("SuspenseList");case 0:case 2:case 15:return e=Wu(e.type,!1),e;case 11:return e=Wu(e.type.render,!1),e;case 1:return e=Wu(e.type,!0),e;default:return""}}function hd(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case wa:return"Fragment";case ya:return"Portal";case fd:return"Profiler";case sc:return"StrictMode";case pd:return"Suspense";case md:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Zh:return(e.displayName||"Context")+".Consumer";case Jh:return(e._context.displayName||"Context")+".Provider";case lc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ic:return t=e.displayName||null,t!==null?t:hd(e.type)||"Memo";case en:t=e._payload,e=e._init;try{return hd(e(t))}catch{}}return null}function R0(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return hd(t);case 8:return t===sc?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function hn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function tg(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function E0(e){var t=tg(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var a=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(s){n=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(s){n=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function sl(e){e._valueTracker||(e._valueTracker=E0(e))}function rg(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=tg(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Al(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function gd(e,t){var r=t.checked;return He({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Xm(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=hn(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function ng(e,t){t=t.checked,t!=null&&oc(e,"checked",t,!1)}function xd(e,t){ng(e,t);var r=hn(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?vd(e,t.type,r):t.hasOwnProperty("defaultValue")&&vd(e,t.type,hn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Km(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function vd(e,t,r){(t!=="number"||Al(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var Lo=Array.isArray;function Na(e,t,r,n){if(e=e.options,t){t={};for(var a=0;a<r.length;a++)t["$"+r[a]]=!0;for(r=0;r<e.length;r++)a=t.hasOwnProperty("$"+e[r].value),e[r].selected!==a&&(e[r].selected=a),a&&n&&(e[r].defaultSelected=!0)}else{for(r=""+hn(r),t=null,a=0;a<e.length;a++){if(e[a].value===r){e[a].selected=!0,n&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function yd(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(A(91));return He({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Qm(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(A(92));if(Lo(r)){if(1<r.length)throw Error(A(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:hn(r)}}function ag(e,t){var r=hn(t.value),n=hn(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function Ym(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function og(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function wd(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?og(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ll,sg=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,a){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,a)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(ll=ll||document.createElement("div"),ll.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ll.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Fo(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var _o={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},N0=["Webkit","ms","Moz","O"];Object.keys(_o).forEach(function(e){N0.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),_o[t]=_o[e]})});function lg(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||_o.hasOwnProperty(e)&&_o[e]?(""+t).trim():t+"px"}function ig(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,a=lg(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,a):e[r]=a}}var P0=He({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function bd(e,t){if(t){if(P0[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(A(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(A(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(A(61))}if(t.style!=null&&typeof t.style!="object")throw Error(A(62))}}function Sd(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Cd=null;function uc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ld=null,Pa=null,Ta=null;function Jm(e){if(e=ts(e)){if(typeof Ld!="function")throw Error(A(280));var t=e.stateNode;t&&(t=ii(t),Ld(e.stateNode,e.type,t))}}function ug(e){Pa?Ta?Ta.push(e):Ta=[e]:Pa=e}function dg(){if(Pa){var e=Pa,t=Ta;if(Ta=Pa=null,Jm(e),t)for(e=0;e<t.length;e++)Jm(t[e])}}function cg(e,t){return e(t)}function fg(){}var Vu=!1;function pg(e,t,r){if(Vu)return e(t,r);Vu=!0;try{return cg(e,t,r)}finally{Vu=!1,(Pa!==null||Ta!==null)&&(fg(),dg())}}function Bo(e,t){var r=e.stateNode;if(r===null)return null;var n=ii(r);if(n===null)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(A(231,t,typeof r));return r}var kd=!1;if(zr)try{xa={},Object.defineProperty(xa,"passive",{get:function(){kd=!0}}),window.addEventListener("test",xa,xa),window.removeEventListener("test",xa,xa)}catch{kd=!1}var xa;function T0(e,t,r,n,a,o,s,l,i){var d=Array.prototype.slice.call(arguments,3);try{t.apply(r,d)}catch(u){this.onError(u)}}var Mo=!1,Dl=null,Ol=!1,Id=null,A0={onError:function(e){Mo=!0,Dl=e}};function D0(e,t,r,n,a,o,s,l,i){Mo=!1,Dl=null,T0.apply(A0,arguments)}function O0(e,t,r,n,a,o,s,l,i){if(D0.apply(this,arguments),Mo){if(Mo){var d=Dl;Mo=!1,Dl=null}else throw Error(A(198));Ol||(Ol=!0,Id=d)}}function Vn(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function mg(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Zm(e){if(Vn(e)!==e)throw Error(A(188))}function F0(e){var t=e.alternate;if(!t){if(t=Vn(e),t===null)throw Error(A(188));return t!==e?null:e}for(var r=e,n=t;;){var a=r.return;if(a===null)break;var o=a.alternate;if(o===null){if(n=a.return,n!==null){r=n;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===r)return Zm(a),e;if(o===n)return Zm(a),t;o=o.sibling}throw Error(A(188))}if(r.return!==n.return)r=a,n=o;else{for(var s=!1,l=a.child;l;){if(l===r){s=!0,r=a,n=o;break}if(l===n){s=!0,n=a,r=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===r){s=!0,r=o,n=a;break}if(l===n){s=!0,n=o,r=a;break}l=l.sibling}if(!s)throw Error(A(189))}}if(r.alternate!==n)throw Error(A(190))}if(r.tag!==3)throw Error(A(188));return r.stateNode.current===r?e:t}function hg(e){return e=F0(e),e!==null?gg(e):null}function gg(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=gg(e);if(t!==null)return t;e=e.sibling}return null}var xg=Ut.unstable_scheduleCallback,eh=Ut.unstable_cancelCallback,B0=Ut.unstable_shouldYield,z0=Ut.unstable_requestPaint,Ge=Ut.unstable_now,U0=Ut.unstable_getCurrentPriorityLevel,dc=Ut.unstable_ImmediatePriority,vg=Ut.unstable_UserBlockingPriority,Fl=Ut.unstable_NormalPriority,q0=Ut.unstable_LowPriority,yg=Ut.unstable_IdlePriority,ai=null,Mr=null;function $0(e){if(Mr&&typeof Mr.onCommitFiberRoot=="function")try{Mr.onCommitFiberRoot(ai,e,void 0,(e.current.flags&128)===128)}catch{}}var mr=Math.clz32?Math.clz32:W0,H0=Math.log,j0=Math.LN2;function W0(e){return e>>>=0,e===0?32:31-(H0(e)/j0|0)|0}var il=64,ul=4194304;function ko(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Bl(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,a=e.suspendedLanes,o=e.pingedLanes,s=r&268435455;if(s!==0){var l=s&~a;l!==0?n=ko(l):(o&=s,o!==0&&(n=ko(o)))}else s=r&~a,s!==0?n=ko(s):o!==0&&(n=ko(o));if(n===0)return 0;if(t!==0&&t!==n&&(t&a)===0&&(a=n&-n,o=t&-t,a>=o||a===16&&(o&4194240)!==0))return t;if((n&4)!==0&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-mr(t),a=1<<r,n|=e[r],t&=~a;return n}function V0(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function G0(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,a=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-mr(o),l=1<<s,i=a[s];i===-1?((l&r)===0||(l&n)!==0)&&(a[s]=V0(l,t)):i<=t&&(e.expiredLanes|=l),o&=~l}}function _d(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function wg(){var e=il;return il<<=1,(il&4194240)===0&&(il=64),e}function Gu(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Zo(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-mr(t),e[t]=r}function X0(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var a=31-mr(r),o=1<<a;t[a]=0,n[a]=-1,e[a]=-1,r&=~o}}function cc(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-mr(r),a=1<<n;a&t|e[n]&t&&(e[n]|=t),r&=~a}}var Ie=0;function bg(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Sg,fc,Cg,Lg,kg,Md=!1,dl=[],sn=null,ln=null,un=null,zo=new Map,Uo=new Map,rn=[],K0="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function th(e,t){switch(e){case"focusin":case"focusout":sn=null;break;case"dragenter":case"dragleave":ln=null;break;case"mouseover":case"mouseout":un=null;break;case"pointerover":case"pointerout":zo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Uo.delete(t.pointerId)}}function go(e,t,r,n,a,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:o,targetContainers:[a]},t!==null&&(t=ts(t),t!==null&&fc(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function Q0(e,t,r,n,a){switch(t){case"focusin":return sn=go(sn,e,t,r,n,a),!0;case"dragenter":return ln=go(ln,e,t,r,n,a),!0;case"mouseover":return un=go(un,e,t,r,n,a),!0;case"pointerover":var o=a.pointerId;return zo.set(o,go(zo.get(o)||null,e,t,r,n,a)),!0;case"gotpointercapture":return o=a.pointerId,Uo.set(o,go(Uo.get(o)||null,e,t,r,n,a)),!0}return!1}function Ig(e){var t=Dn(e.target);if(t!==null){var r=Vn(t);if(r!==null){if(t=r.tag,t===13){if(t=mg(r),t!==null){e.blockedOn=t,kg(e.priority,function(){Cg(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ll(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Rd(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);Cd=n,r.target.dispatchEvent(n),Cd=null}else return t=ts(r),t!==null&&fc(t),e.blockedOn=r,!1;t.shift()}return!0}function rh(e,t,r){Ll(e)&&r.delete(t)}function Y0(){Md=!1,sn!==null&&Ll(sn)&&(sn=null),ln!==null&&Ll(ln)&&(ln=null),un!==null&&Ll(un)&&(un=null),zo.forEach(rh),Uo.forEach(rh)}function xo(e,t){e.blockedOn===t&&(e.blockedOn=null,Md||(Md=!0,Ut.unstable_scheduleCallback(Ut.unstable_NormalPriority,Y0)))}function qo(e){function t(a){return xo(a,e)}if(0<dl.length){xo(dl[0],e);for(var r=1;r<dl.length;r++){var n=dl[r];n.blockedOn===e&&(n.blockedOn=null)}}for(sn!==null&&xo(sn,e),ln!==null&&xo(ln,e),un!==null&&xo(un,e),zo.forEach(t),Uo.forEach(t),r=0;r<rn.length;r++)n=rn[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<rn.length&&(r=rn[0],r.blockedOn===null);)Ig(r),r.blockedOn===null&&rn.shift()}var Aa=Hr.ReactCurrentBatchConfig,zl=!0;function J0(e,t,r,n){var a=Ie,o=Aa.transition;Aa.transition=null;try{Ie=1,pc(e,t,r,n)}finally{Ie=a,Aa.transition=o}}function Z0(e,t,r,n){var a=Ie,o=Aa.transition;Aa.transition=null;try{Ie=4,pc(e,t,r,n)}finally{Ie=a,Aa.transition=o}}function pc(e,t,r,n){if(zl){var a=Rd(e,t,r,n);if(a===null)ed(e,t,n,Ul,r),th(e,n);else if(Q0(a,e,t,r,n))n.stopPropagation();else if(th(e,n),t&4&&-1<K0.indexOf(e)){for(;a!==null;){var o=ts(a);if(o!==null&&Sg(o),o=Rd(e,t,r,n),o===null&&ed(e,t,n,Ul,r),o===a)break;a=o}a!==null&&n.stopPropagation()}else ed(e,t,n,null,r)}}var Ul=null;function Rd(e,t,r,n){if(Ul=null,e=uc(n),e=Dn(e),e!==null)if(t=Vn(e),t===null)e=null;else if(r=t.tag,r===13){if(e=mg(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Ul=e,null}function _g(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(U0()){case dc:return 1;case vg:return 4;case Fl:case q0:return 16;case yg:return 536870912;default:return 16}default:return 16}}var an=null,mc=null,kl=null;function Mg(){if(kl)return kl;var e,t=mc,r=t.length,n,a="value"in an?an.value:an.textContent,o=a.length;for(e=0;e<r&&t[e]===a[e];e++);var s=r-e;for(n=1;n<=s&&t[r-n]===a[o-n];n++);return kl=a.slice(e,1<n?1-n:void 0)}function Il(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function cl(){return!0}function nh(){return!1}function qt(e){function t(r,n,a,o,s){this._reactName=r,this._targetInst=a,this.type=n,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(r=e[l],this[l]=r?r(o):o[l]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?cl:nh,this.isPropagationStopped=nh,this}return He(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=cl)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=cl)},persist:function(){},isPersistent:cl}),t}var ja={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hc=qt(ja),es=He({},ja,{view:0,detail:0}),eS=qt(es),Xu,Ku,vo,oi=He({},es,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:gc,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==vo&&(vo&&e.type==="mousemove"?(Xu=e.screenX-vo.screenX,Ku=e.screenY-vo.screenY):Ku=Xu=0,vo=e),Xu)},movementY:function(e){return"movementY"in e?e.movementY:Ku}}),ah=qt(oi),tS=He({},oi,{dataTransfer:0}),rS=qt(tS),nS=He({},es,{relatedTarget:0}),Qu=qt(nS),aS=He({},ja,{animationName:0,elapsedTime:0,pseudoElement:0}),oS=qt(aS),sS=He({},ja,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),lS=qt(sS),iS=He({},ja,{data:0}),oh=qt(iS),uS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},dS={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},cS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function fS(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=cS[e])?!!t[e]:!1}function gc(){return fS}var pS=He({},es,{key:function(e){if(e.key){var t=uS[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Il(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?dS[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:gc,charCode:function(e){return e.type==="keypress"?Il(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Il(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),mS=qt(pS),hS=He({},oi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),sh=qt(hS),gS=He({},es,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:gc}),xS=qt(gS),vS=He({},ja,{propertyName:0,elapsedTime:0,pseudoElement:0}),yS=qt(vS),wS=He({},oi,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),bS=qt(wS),SS=[9,13,27,32],xc=zr&&"CompositionEvent"in window,Ro=null;zr&&"documentMode"in document&&(Ro=document.documentMode);var CS=zr&&"TextEvent"in window&&!Ro,Rg=zr&&(!xc||Ro&&8<Ro&&11>=Ro),lh=" ",ih=!1;function Eg(e,t){switch(e){case"keyup":return SS.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ng(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ba=!1;function LS(e,t){switch(e){case"compositionend":return Ng(t);case"keypress":return t.which!==32?null:(ih=!0,lh);case"textInput":return e=t.data,e===lh&&ih?null:e;default:return null}}function kS(e,t){if(ba)return e==="compositionend"||!xc&&Eg(e,t)?(e=Mg(),kl=mc=an=null,ba=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Rg&&t.locale!=="ko"?null:t.data;default:return null}}var IS={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function uh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!IS[e.type]:t==="textarea"}function Pg(e,t,r,n){ug(n),t=ql(t,"onChange"),0<t.length&&(r=new hc("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Eo=null,$o=null;function _S(e){Hg(e,0)}function si(e){var t=La(e);if(rg(t))return e}function MS(e,t){if(e==="change")return t}var Tg=!1;zr&&(zr?(pl="oninput"in document,pl||(Yu=document.createElement("div"),Yu.setAttribute("oninput","return;"),pl=typeof Yu.oninput=="function"),fl=pl):fl=!1,Tg=fl&&(!document.documentMode||9<document.documentMode));var fl,pl,Yu;function dh(){Eo&&(Eo.detachEvent("onpropertychange",Ag),$o=Eo=null)}function Ag(e){if(e.propertyName==="value"&&si($o)){var t=[];Pg(t,$o,e,uc(e)),pg(_S,t)}}function RS(e,t,r){e==="focusin"?(dh(),Eo=t,$o=r,Eo.attachEvent("onpropertychange",Ag)):e==="focusout"&&dh()}function ES(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return si($o)}function NS(e,t){if(e==="click")return si(t)}function PS(e,t){if(e==="input"||e==="change")return si(t)}function TS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var gr=typeof Object.is=="function"?Object.is:TS;function Ho(e,t){if(gr(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var a=r[n];if(!cd.call(t,a)||!gr(e[a],t[a]))return!1}return!0}function ch(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function fh(e,t){var r=ch(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ch(r)}}function Dg(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Dg(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Og(){for(var e=window,t=Al();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Al(e.document)}return t}function vc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function AS(e){var t=Og(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Dg(r.ownerDocument.documentElement,r)){if(n!==null&&vc(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=r.textContent.length,o=Math.min(n.start,a);n=n.end===void 0?o:Math.min(n.end,a),!e.extend&&o>n&&(a=n,n=o,o=a),a=fh(r,o);var s=fh(r,n);a&&s&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),o>n?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var DS=zr&&"documentMode"in document&&11>=document.documentMode,Sa=null,Ed=null,No=null,Nd=!1;function ph(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Nd||Sa==null||Sa!==Al(n)||(n=Sa,"selectionStart"in n&&vc(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),No&&Ho(No,n)||(No=n,n=ql(Ed,"onSelect"),0<n.length&&(t=new hc("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=Sa)))}function ml(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Ca={animationend:ml("Animation","AnimationEnd"),animationiteration:ml("Animation","AnimationIteration"),animationstart:ml("Animation","AnimationStart"),transitionend:ml("Transition","TransitionEnd")},Ju={},Fg={};zr&&(Fg=document.createElement("div").style,"AnimationEvent"in window||(delete Ca.animationend.animation,delete Ca.animationiteration.animation,delete Ca.animationstart.animation),"TransitionEvent"in window||delete Ca.transitionend.transition);function li(e){if(Ju[e])return Ju[e];if(!Ca[e])return e;var t=Ca[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in Fg)return Ju[e]=t[r];return e}var Bg=li("animationend"),zg=li("animationiteration"),Ug=li("animationstart"),qg=li("transitionend"),$g=new Map,mh="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function xn(e,t){$g.set(e,t),Wn(t,[e])}for(hl=0;hl<mh.length;hl++)gl=mh[hl],hh=gl.toLowerCase(),gh=gl[0].toUpperCase()+gl.slice(1),xn(hh,"on"+gh);var gl,hh,gh,hl;xn(Bg,"onAnimationEnd");xn(zg,"onAnimationIteration");xn(Ug,"onAnimationStart");xn("dblclick","onDoubleClick");xn("focusin","onFocus");xn("focusout","onBlur");xn(qg,"onTransitionEnd");Fa("onMouseEnter",["mouseout","mouseover"]);Fa("onMouseLeave",["mouseout","mouseover"]);Fa("onPointerEnter",["pointerout","pointerover"]);Fa("onPointerLeave",["pointerout","pointerover"]);Wn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Wn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Wn("onBeforeInput",["compositionend","keypress","textInput","paste"]);Wn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Wn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Wn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Io="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),OS=new Set("cancel close invalid load scroll toggle".split(" ").concat(Io));function xh(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,O0(n,t,void 0,e),e.currentTarget=null}function Hg(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],a=n.event;n=n.listeners;e:{var o=void 0;if(t)for(var s=n.length-1;0<=s;s--){var l=n[s],i=l.instance,d=l.currentTarget;if(l=l.listener,i!==o&&a.isPropagationStopped())break e;xh(a,l,d),o=i}else for(s=0;s<n.length;s++){if(l=n[s],i=l.instance,d=l.currentTarget,l=l.listener,i!==o&&a.isPropagationStopped())break e;xh(a,l,d),o=i}}}if(Ol)throw e=Id,Ol=!1,Id=null,e}function Oe(e,t){var r=t[Od];r===void 0&&(r=t[Od]=new Set);var n=e+"__bubble";r.has(n)||(jg(t,e,2,!1),r.add(n))}function Zu(e,t,r){var n=0;t&&(n|=4),jg(r,e,n,t)}var xl="_reactListening"+Math.random().toString(36).slice(2);function jo(e){if(!e[xl]){e[xl]=!0,Yh.forEach(function(r){r!=="selectionchange"&&(OS.has(r)||Zu(r,!1,e),Zu(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[xl]||(t[xl]=!0,Zu("selectionchange",!1,t))}}function jg(e,t,r,n){switch(_g(t)){case 1:var a=J0;break;case 4:a=Z0;break;default:a=pc}r=a.bind(null,t,r,e),a=void 0,!kd||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),n?a!==void 0?e.addEventListener(t,r,{capture:!0,passive:a}):e.addEventListener(t,r,!0):a!==void 0?e.addEventListener(t,r,{passive:a}):e.addEventListener(t,r,!1)}function ed(e,t,r,n,a){var o=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var s=n.tag;if(s===3||s===4){var l=n.stateNode.containerInfo;if(l===a||l.nodeType===8&&l.parentNode===a)break;if(s===4)for(s=n.return;s!==null;){var i=s.tag;if((i===3||i===4)&&(i=s.stateNode.containerInfo,i===a||i.nodeType===8&&i.parentNode===a))return;s=s.return}for(;l!==null;){if(s=Dn(l),s===null)return;if(i=s.tag,i===5||i===6){n=o=s;continue e}l=l.parentNode}}n=n.return}pg(function(){var d=o,u=uc(r),p=[];e:{var c=$g.get(e);if(c!==void 0){var f=hc,h=e;switch(e){case"keypress":if(Il(r)===0)break e;case"keydown":case"keyup":f=mS;break;case"focusin":h="focus",f=Qu;break;case"focusout":h="blur",f=Qu;break;case"beforeblur":case"afterblur":f=Qu;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":f=ah;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=rS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=xS;break;case Bg:case zg:case Ug:f=oS;break;case qg:f=yS;break;case"scroll":f=eS;break;case"wheel":f=bS;break;case"copy":case"cut":case"paste":f=lS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=sh}var m=(t&4)!==0,y=!m&&e==="scroll",g=m?c!==null?c+"Capture":null:c;m=[];for(var x=d,v;x!==null;){v=x;var S=v.stateNode;if(v.tag===5&&S!==null&&(v=S,g!==null&&(S=Bo(x,g),S!=null&&m.push(Wo(x,S,v)))),y)break;x=x.return}0<m.length&&(c=new f(c,h,null,r,u),p.push({event:c,listeners:m}))}}if((t&7)===0){e:{if(c=e==="mouseover"||e==="pointerover",f=e==="mouseout"||e==="pointerout",c&&r!==Cd&&(h=r.relatedTarget||r.fromElement)&&(Dn(h)||h[Ur]))break e;if((f||c)&&(c=u.window===u?u:(c=u.ownerDocument)?c.defaultView||c.parentWindow:window,f?(h=r.relatedTarget||r.toElement,f=d,h=h?Dn(h):null,h!==null&&(y=Vn(h),h!==y||h.tag!==5&&h.tag!==6)&&(h=null)):(f=null,h=d),f!==h)){if(m=ah,S="onMouseLeave",g="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(m=sh,S="onPointerLeave",g="onPointerEnter",x="pointer"),y=f==null?c:La(f),v=h==null?c:La(h),c=new m(S,x+"leave",f,r,u),c.target=y,c.relatedTarget=v,S=null,Dn(u)===d&&(m=new m(g,x+"enter",h,r,u),m.target=v,m.relatedTarget=y,S=m),y=S,f&&h)t:{for(m=f,g=h,x=0,v=m;v;v=va(v))x++;for(v=0,S=g;S;S=va(S))v++;for(;0<x-v;)m=va(m),x--;for(;0<v-x;)g=va(g),v--;for(;x--;){if(m===g||g!==null&&m===g.alternate)break t;m=va(m),g=va(g)}m=null}else m=null;f!==null&&vh(p,c,f,m,!1),h!==null&&y!==null&&vh(p,y,h,m,!0)}}e:{if(c=d?La(d):window,f=c.nodeName&&c.nodeName.toLowerCase(),f==="select"||f==="input"&&c.type==="file")var b=MS;else if(uh(c))if(Tg)b=PS;else{b=ES;var w=RS}else(f=c.nodeName)&&f.toLowerCase()==="input"&&(c.type==="checkbox"||c.type==="radio")&&(b=NS);if(b&&(b=b(e,d))){Pg(p,b,r,u);break e}w&&w(e,c,d),e==="focusout"&&(w=c._wrapperState)&&w.controlled&&c.type==="number"&&vd(c,"number",c.value)}switch(w=d?La(d):window,e){case"focusin":(uh(w)||w.contentEditable==="true")&&(Sa=w,Ed=d,No=null);break;case"focusout":No=Ed=Sa=null;break;case"mousedown":Nd=!0;break;case"contextmenu":case"mouseup":case"dragend":Nd=!1,ph(p,r,u);break;case"selectionchange":if(DS)break;case"keydown":case"keyup":ph(p,r,u)}var C;if(xc)e:{switch(e){case"compositionstart":var L="onCompositionStart";break e;case"compositionend":L="onCompositionEnd";break e;case"compositionupdate":L="onCompositionUpdate";break e}L=void 0}else ba?Eg(e,r)&&(L="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(L="onCompositionStart");L&&(Rg&&r.locale!=="ko"&&(ba||L!=="onCompositionStart"?L==="onCompositionEnd"&&ba&&(C=Mg()):(an=u,mc="value"in an?an.value:an.textContent,ba=!0)),w=ql(d,L),0<w.length&&(L=new oh(L,e,null,r,u),p.push({event:L,listeners:w}),C?L.data=C:(C=Ng(r),C!==null&&(L.data=C)))),(C=CS?LS(e,r):kS(e,r))&&(d=ql(d,"onBeforeInput"),0<d.length&&(u=new oh("onBeforeInput","beforeinput",null,r,u),p.push({event:u,listeners:d}),u.data=C))}Hg(p,t)})}function Wo(e,t,r){return{instance:e,listener:t,currentTarget:r}}function ql(e,t){for(var r=t+"Capture",n=[];e!==null;){var a=e,o=a.stateNode;a.tag===5&&o!==null&&(a=o,o=Bo(e,r),o!=null&&n.unshift(Wo(e,o,a)),o=Bo(e,t),o!=null&&n.push(Wo(e,o,a))),e=e.return}return n}function va(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function vh(e,t,r,n,a){for(var o=t._reactName,s=[];r!==null&&r!==n;){var l=r,i=l.alternate,d=l.stateNode;if(i!==null&&i===n)break;l.tag===5&&d!==null&&(l=d,a?(i=Bo(r,o),i!=null&&s.unshift(Wo(r,i,l))):a||(i=Bo(r,o),i!=null&&s.push(Wo(r,i,l)))),r=r.return}s.length!==0&&e.push({event:t,listeners:s})}var FS=/\r\n?/g,BS=/\u0000|\uFFFD/g;function yh(e){return(typeof e=="string"?e:""+e).replace(FS,`
|
|
6
|
+
`).replace(BS,"")}function vl(e,t,r){if(t=yh(t),yh(e)!==t&&r)throw Error(A(425))}function $l(){}var Pd=null,Td=null;function Ad(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Dd=typeof setTimeout=="function"?setTimeout:void 0,zS=typeof clearTimeout=="function"?clearTimeout:void 0,wh=typeof Promise=="function"?Promise:void 0,US=typeof queueMicrotask=="function"?queueMicrotask:typeof wh<"u"?function(e){return wh.resolve(null).then(e).catch(qS)}:Dd;function qS(e){setTimeout(function(){throw e})}function td(e,t){var r=t,n=0;do{var a=r.nextSibling;if(e.removeChild(r),a&&a.nodeType===8)if(r=a.data,r==="/$"){if(n===0){e.removeChild(a),qo(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=a}while(r);qo(t)}function dn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function bh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var Wa=Math.random().toString(36).slice(2),_r="__reactFiber$"+Wa,Vo="__reactProps$"+Wa,Ur="__reactContainer$"+Wa,Od="__reactEvents$"+Wa,$S="__reactListeners$"+Wa,HS="__reactHandles$"+Wa;function Dn(e){var t=e[_r];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Ur]||r[_r]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=bh(e);e!==null;){if(r=e[_r])return r;e=bh(e)}return t}e=r,r=e.parentNode}return null}function ts(e){return e=e[_r]||e[Ur],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function La(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(A(33))}function ii(e){return e[Vo]||null}var Fd=[],ka=-1;function vn(e){return{current:e}}function Fe(e){0>ka||(e.current=Fd[ka],Fd[ka]=null,ka--)}function Pe(e,t){ka++,Fd[ka]=e.current,e.current=t}var gn={},ht=vn(gn),Et=vn(!1),Un=gn;function Ba(e,t){var r=e.type.contextTypes;if(!r)return gn;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var a={},o;for(o in r)a[o]=t[o];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Nt(e){return e=e.childContextTypes,e!=null}function Hl(){Fe(Et),Fe(ht)}function Sh(e,t,r){if(ht.current!==gn)throw Error(A(168));Pe(ht,t),Pe(Et,r)}function Wg(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var a in n)if(!(a in t))throw Error(A(108,R0(e)||"Unknown",a));return He({},r,n)}function jl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||gn,Un=ht.current,Pe(ht,e),Pe(Et,Et.current),!0}function Ch(e,t,r){var n=e.stateNode;if(!n)throw Error(A(169));r?(e=Wg(e,t,Un),n.__reactInternalMemoizedMergedChildContext=e,Fe(Et),Fe(ht),Pe(ht,e)):Fe(Et),Pe(Et,r)}var Dr=null,ui=!1,rd=!1;function Vg(e){Dr===null?Dr=[e]:Dr.push(e)}function jS(e){ui=!0,Vg(e)}function yn(){if(!rd&&Dr!==null){rd=!0;var e=0,t=Ie;try{var r=Dr;for(Ie=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}Dr=null,ui=!1}catch(a){throw Dr!==null&&(Dr=Dr.slice(e+1)),xg(dc,yn),a}finally{Ie=t,rd=!1}}return null}var Ia=[],_a=0,Wl=null,Vl=0,Xt=[],Kt=0,qn=null,Or=1,Fr="";function Tn(e,t){Ia[_a++]=Vl,Ia[_a++]=Wl,Wl=e,Vl=t}function Gg(e,t,r){Xt[Kt++]=Or,Xt[Kt++]=Fr,Xt[Kt++]=qn,qn=e;var n=Or;e=Fr;var a=32-mr(n)-1;n&=~(1<<a),r+=1;var o=32-mr(t)+a;if(30<o){var s=a-a%5;o=(n&(1<<s)-1).toString(32),n>>=s,a-=s,Or=1<<32-mr(t)+a|r<<a|n,Fr=o+e}else Or=1<<o|r<<a|n,Fr=e}function yc(e){e.return!==null&&(Tn(e,1),Gg(e,1,0))}function wc(e){for(;e===Wl;)Wl=Ia[--_a],Ia[_a]=null,Vl=Ia[--_a],Ia[_a]=null;for(;e===qn;)qn=Xt[--Kt],Xt[Kt]=null,Fr=Xt[--Kt],Xt[Kt]=null,Or=Xt[--Kt],Xt[Kt]=null}var zt=null,Bt=null,ze=!1,pr=null;function Xg(e,t){var r=Qt(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function Lh(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,zt=e,Bt=dn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,zt=e,Bt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=qn!==null?{id:Or,overflow:Fr}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=Qt(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,zt=e,Bt=null,!0):!1;default:return!1}}function Bd(e){return(e.mode&1)!==0&&(e.flags&128)===0}function zd(e){if(ze){var t=Bt;if(t){var r=t;if(!Lh(e,t)){if(Bd(e))throw Error(A(418));t=dn(r.nextSibling);var n=zt;t&&Lh(e,t)?Xg(n,r):(e.flags=e.flags&-4097|2,ze=!1,zt=e)}}else{if(Bd(e))throw Error(A(418));e.flags=e.flags&-4097|2,ze=!1,zt=e}}}function kh(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;zt=e}function yl(e){if(e!==zt)return!1;if(!ze)return kh(e),ze=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ad(e.type,e.memoizedProps)),t&&(t=Bt)){if(Bd(e))throw Kg(),Error(A(418));for(;t;)Xg(e,t),t=dn(t.nextSibling)}if(kh(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(A(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Bt=dn(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Bt=null}}else Bt=zt?dn(e.stateNode.nextSibling):null;return!0}function Kg(){for(var e=Bt;e;)e=dn(e.nextSibling)}function za(){Bt=zt=null,ze=!1}function bc(e){pr===null?pr=[e]:pr.push(e)}var WS=Hr.ReactCurrentBatchConfig;function yo(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(A(309));var n=r.stateNode}if(!n)throw Error(A(147,e));var a=n,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(s){var l=a.refs;s===null?delete l[o]:l[o]=s},t._stringRef=o,t)}if(typeof e!="string")throw Error(A(284));if(!r._owner)throw Error(A(290,e))}return e}function wl(e,t){throw e=Object.prototype.toString.call(t),Error(A(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ih(e){var t=e._init;return t(e._payload)}function Qg(e){function t(g,x){if(e){var v=g.deletions;v===null?(g.deletions=[x],g.flags|=16):v.push(x)}}function r(g,x){if(!e)return null;for(;x!==null;)t(g,x),x=x.sibling;return null}function n(g,x){for(g=new Map;x!==null;)x.key!==null?g.set(x.key,x):g.set(x.index,x),x=x.sibling;return g}function a(g,x){return g=mn(g,x),g.index=0,g.sibling=null,g}function o(g,x,v){return g.index=v,e?(v=g.alternate,v!==null?(v=v.index,v<x?(g.flags|=2,x):v):(g.flags|=2,x)):(g.flags|=1048576,x)}function s(g){return e&&g.alternate===null&&(g.flags|=2),g}function l(g,x,v,S){return x===null||x.tag!==6?(x=ud(v,g.mode,S),x.return=g,x):(x=a(x,v),x.return=g,x)}function i(g,x,v,S){var b=v.type;return b===wa?u(g,x,v.props.children,S,v.key):x!==null&&(x.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===en&&Ih(b)===x.type)?(S=a(x,v.props),S.ref=yo(g,x,v),S.return=g,S):(S=Tl(v.type,v.key,v.props,null,g.mode,S),S.ref=yo(g,x,v),S.return=g,S)}function d(g,x,v,S){return x===null||x.tag!==4||x.stateNode.containerInfo!==v.containerInfo||x.stateNode.implementation!==v.implementation?(x=dd(v,g.mode,S),x.return=g,x):(x=a(x,v.children||[]),x.return=g,x)}function u(g,x,v,S,b){return x===null||x.tag!==7?(x=zn(v,g.mode,S,b),x.return=g,x):(x=a(x,v),x.return=g,x)}function p(g,x,v){if(typeof x=="string"&&x!==""||typeof x=="number")return x=ud(""+x,g.mode,v),x.return=g,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case ol:return v=Tl(x.type,x.key,x.props,null,g.mode,v),v.ref=yo(g,null,x),v.return=g,v;case ya:return x=dd(x,g.mode,v),x.return=g,x;case en:var S=x._init;return p(g,S(x._payload),v)}if(Lo(x)||ho(x))return x=zn(x,g.mode,v,null),x.return=g,x;wl(g,x)}return null}function c(g,x,v,S){var b=x!==null?x.key:null;if(typeof v=="string"&&v!==""||typeof v=="number")return b!==null?null:l(g,x,""+v,S);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case ol:return v.key===b?i(g,x,v,S):null;case ya:return v.key===b?d(g,x,v,S):null;case en:return b=v._init,c(g,x,b(v._payload),S)}if(Lo(v)||ho(v))return b!==null?null:u(g,x,v,S,null);wl(g,v)}return null}function f(g,x,v,S,b){if(typeof S=="string"&&S!==""||typeof S=="number")return g=g.get(v)||null,l(x,g,""+S,b);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case ol:return g=g.get(S.key===null?v:S.key)||null,i(x,g,S,b);case ya:return g=g.get(S.key===null?v:S.key)||null,d(x,g,S,b);case en:var w=S._init;return f(g,x,v,w(S._payload),b)}if(Lo(S)||ho(S))return g=g.get(v)||null,u(x,g,S,b,null);wl(x,S)}return null}function h(g,x,v,S){for(var b=null,w=null,C=x,L=x=0,k=null;C!==null&&L<v.length;L++){C.index>L?(k=C,C=null):k=C.sibling;var _=c(g,C,v[L],S);if(_===null){C===null&&(C=k);break}e&&C&&_.alternate===null&&t(g,C),x=o(_,x,L),w===null?b=_:w.sibling=_,w=_,C=k}if(L===v.length)return r(g,C),ze&&Tn(g,L),b;if(C===null){for(;L<v.length;L++)C=p(g,v[L],S),C!==null&&(x=o(C,x,L),w===null?b=C:w.sibling=C,w=C);return ze&&Tn(g,L),b}for(C=n(g,C);L<v.length;L++)k=f(C,g,L,v[L],S),k!==null&&(e&&k.alternate!==null&&C.delete(k.key===null?L:k.key),x=o(k,x,L),w===null?b=k:w.sibling=k,w=k);return e&&C.forEach(function(N){return t(g,N)}),ze&&Tn(g,L),b}function m(g,x,v,S){var b=ho(v);if(typeof b!="function")throw Error(A(150));if(v=b.call(v),v==null)throw Error(A(151));for(var w=b=null,C=x,L=x=0,k=null,_=v.next();C!==null&&!_.done;L++,_=v.next()){C.index>L?(k=C,C=null):k=C.sibling;var N=c(g,C,_.value,S);if(N===null){C===null&&(C=k);break}e&&C&&N.alternate===null&&t(g,C),x=o(N,x,L),w===null?b=N:w.sibling=N,w=N,C=k}if(_.done)return r(g,C),ze&&Tn(g,L),b;if(C===null){for(;!_.done;L++,_=v.next())_=p(g,_.value,S),_!==null&&(x=o(_,x,L),w===null?b=_:w.sibling=_,w=_);return ze&&Tn(g,L),b}for(C=n(g,C);!_.done;L++,_=v.next())_=f(C,g,L,_.value,S),_!==null&&(e&&_.alternate!==null&&C.delete(_.key===null?L:_.key),x=o(_,x,L),w===null?b=_:w.sibling=_,w=_);return e&&C.forEach(function(P){return t(g,P)}),ze&&Tn(g,L),b}function y(g,x,v,S){if(typeof v=="object"&&v!==null&&v.type===wa&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case ol:e:{for(var b=v.key,w=x;w!==null;){if(w.key===b){if(b=v.type,b===wa){if(w.tag===7){r(g,w.sibling),x=a(w,v.props.children),x.return=g,g=x;break e}}else if(w.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===en&&Ih(b)===w.type){r(g,w.sibling),x=a(w,v.props),x.ref=yo(g,w,v),x.return=g,g=x;break e}r(g,w);break}else t(g,w);w=w.sibling}v.type===wa?(x=zn(v.props.children,g.mode,S,v.key),x.return=g,g=x):(S=Tl(v.type,v.key,v.props,null,g.mode,S),S.ref=yo(g,x,v),S.return=g,g=S)}return s(g);case ya:e:{for(w=v.key;x!==null;){if(x.key===w)if(x.tag===4&&x.stateNode.containerInfo===v.containerInfo&&x.stateNode.implementation===v.implementation){r(g,x.sibling),x=a(x,v.children||[]),x.return=g,g=x;break e}else{r(g,x);break}else t(g,x);x=x.sibling}x=dd(v,g.mode,S),x.return=g,g=x}return s(g);case en:return w=v._init,y(g,x,w(v._payload),S)}if(Lo(v))return h(g,x,v,S);if(ho(v))return m(g,x,v,S);wl(g,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,x!==null&&x.tag===6?(r(g,x.sibling),x=a(x,v),x.return=g,g=x):(r(g,x),x=ud(v,g.mode,S),x.return=g,g=x),s(g)):r(g,x)}return y}var Ua=Qg(!0),Yg=Qg(!1),Gl=vn(null),Xl=null,Ma=null,Sc=null;function Cc(){Sc=Ma=Xl=null}function Lc(e){var t=Gl.current;Fe(Gl),e._currentValue=t}function Ud(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Da(e,t){Xl=e,Sc=Ma=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Rt=!0),e.firstContext=null)}function Jt(e){var t=e._currentValue;if(Sc!==e)if(e={context:e,memoizedValue:t,next:null},Ma===null){if(Xl===null)throw Error(A(308));Ma=e,Xl.dependencies={lanes:0,firstContext:e}}else Ma=Ma.next=e;return t}var On=null;function kc(e){On===null?On=[e]:On.push(e)}function Jg(e,t,r,n){var a=t.interleaved;return a===null?(r.next=r,kc(t)):(r.next=a.next,a.next=r),t.interleaved=r,qr(e,n)}function qr(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var tn=!1;function Ic(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Zg(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Br(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function cn(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(xe&2)!==0){var a=n.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),n.pending=t,qr(e,r)}return a=n.interleaved,a===null?(t.next=t,kc(n)):(t.next=a.next,a.next=t),n.interleaved=t,qr(e,r)}function _l(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,cc(e,r)}}function _h(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var a=null,o=null;if(r=r.firstBaseUpdate,r!==null){do{var s={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};o===null?a=o=s:o=o.next=s,r=r.next}while(r!==null);o===null?a=o=t:o=o.next=t}else a=o=t;r={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Kl(e,t,r,n){var a=e.updateQueue;tn=!1;var o=a.firstBaseUpdate,s=a.lastBaseUpdate,l=a.shared.pending;if(l!==null){a.shared.pending=null;var i=l,d=i.next;i.next=null,s===null?o=d:s.next=d,s=i;var u=e.alternate;u!==null&&(u=u.updateQueue,l=u.lastBaseUpdate,l!==s&&(l===null?u.firstBaseUpdate=d:l.next=d,u.lastBaseUpdate=i))}if(o!==null){var p=a.baseState;s=0,u=d=i=null,l=o;do{var c=l.lane,f=l.eventTime;if((n&c)===c){u!==null&&(u=u.next={eventTime:f,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var h=e,m=l;switch(c=t,f=r,m.tag){case 1:if(h=m.payload,typeof h=="function"){p=h.call(f,p,c);break e}p=h;break e;case 3:h.flags=h.flags&-65537|128;case 0:if(h=m.payload,c=typeof h=="function"?h.call(f,p,c):h,c==null)break e;p=He({},p,c);break e;case 2:tn=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,c=a.effects,c===null?a.effects=[l]:c.push(l))}else f={eventTime:f,lane:c,tag:l.tag,payload:l.payload,callback:l.callback,next:null},u===null?(d=u=f,i=p):u=u.next=f,s|=c;if(l=l.next,l===null){if(l=a.shared.pending,l===null)break;c=l,l=c.next,c.next=null,a.lastBaseUpdate=c,a.shared.pending=null}}while(!0);if(u===null&&(i=p),a.baseState=i,a.firstBaseUpdate=d,a.lastBaseUpdate=u,t=a.shared.interleaved,t!==null){a=t;do s|=a.lane,a=a.next;while(a!==t)}else o===null&&(a.shared.lanes=0);Hn|=s,e.lanes=s,e.memoizedState=p}}function Mh(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],a=n.callback;if(a!==null){if(n.callback=null,n=r,typeof a!="function")throw Error(A(191,a));a.call(n)}}}var rs={},Rr=vn(rs),Go=vn(rs),Xo=vn(rs);function Fn(e){if(e===rs)throw Error(A(174));return e}function _c(e,t){switch(Pe(Xo,t),Pe(Go,e),Pe(Rr,rs),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:wd(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=wd(t,e)}Fe(Rr),Pe(Rr,t)}function qa(){Fe(Rr),Fe(Go),Fe(Xo)}function ex(e){Fn(Xo.current);var t=Fn(Rr.current),r=wd(t,e.type);t!==r&&(Pe(Go,e),Pe(Rr,r))}function Mc(e){Go.current===e&&(Fe(Rr),Fe(Go))}var qe=vn(0);function Ql(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var nd=[];function Rc(){for(var e=0;e<nd.length;e++)nd[e]._workInProgressVersionPrimary=null;nd.length=0}var Ml=Hr.ReactCurrentDispatcher,ad=Hr.ReactCurrentBatchConfig,$n=0,$e=null,Je=null,rt=null,Yl=!1,Po=!1,Ko=0,VS=0;function ft(){throw Error(A(321))}function Ec(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!gr(e[r],t[r]))return!1;return!0}function Nc(e,t,r,n,a,o){if($n=o,$e=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ml.current=e===null||e.memoizedState===null?QS:YS,e=r(n,a),Po){o=0;do{if(Po=!1,Ko=0,25<=o)throw Error(A(301));o+=1,rt=Je=null,t.updateQueue=null,Ml.current=JS,e=r(n,a)}while(Po)}if(Ml.current=Jl,t=Je!==null&&Je.next!==null,$n=0,rt=Je=$e=null,Yl=!1,t)throw Error(A(300));return e}function Pc(){var e=Ko!==0;return Ko=0,e}function Ir(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return rt===null?$e.memoizedState=rt=e:rt=rt.next=e,rt}function Zt(){if(Je===null){var e=$e.alternate;e=e!==null?e.memoizedState:null}else e=Je.next;var t=rt===null?$e.memoizedState:rt.next;if(t!==null)rt=t,Je=e;else{if(e===null)throw Error(A(310));Je=e,e={memoizedState:Je.memoizedState,baseState:Je.baseState,baseQueue:Je.baseQueue,queue:Je.queue,next:null},rt===null?$e.memoizedState=rt=e:rt=rt.next=e}return rt}function Qo(e,t){return typeof t=="function"?t(e):t}function od(e){var t=Zt(),r=t.queue;if(r===null)throw Error(A(311));r.lastRenderedReducer=e;var n=Je,a=n.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}n.baseQueue=a=o,r.pending=null}if(a!==null){o=a.next,n=n.baseState;var l=s=null,i=null,d=o;do{var u=d.lane;if(($n&u)===u)i!==null&&(i=i.next={lane:0,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null}),n=d.hasEagerState?d.eagerState:e(n,d.action);else{var p={lane:u,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null};i===null?(l=i=p,s=n):i=i.next=p,$e.lanes|=u,Hn|=u}d=d.next}while(d!==null&&d!==o);i===null?s=n:i.next=l,gr(n,t.memoizedState)||(Rt=!0),t.memoizedState=n,t.baseState=s,t.baseQueue=i,r.lastRenderedState=n}if(e=r.interleaved,e!==null){a=e;do o=a.lane,$e.lanes|=o,Hn|=o,a=a.next;while(a!==e)}else a===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function sd(e){var t=Zt(),r=t.queue;if(r===null)throw Error(A(311));r.lastRenderedReducer=e;var n=r.dispatch,a=r.pending,o=t.memoizedState;if(a!==null){r.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);gr(o,t.memoizedState)||(Rt=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),r.lastRenderedState=o}return[o,n]}function tx(){}function rx(e,t){var r=$e,n=Zt(),a=t(),o=!gr(n.memoizedState,a);if(o&&(n.memoizedState=a,Rt=!0),n=n.queue,Tc(ox.bind(null,r,n,e),[e]),n.getSnapshot!==t||o||rt!==null&&rt.memoizedState.tag&1){if(r.flags|=2048,Yo(9,ax.bind(null,r,n,a,t),void 0,null),nt===null)throw Error(A(349));($n&30)!==0||nx(r,t,a)}return a}function nx(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=$e.updateQueue,t===null?(t={lastEffect:null,stores:null},$e.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function ax(e,t,r,n){t.value=r,t.getSnapshot=n,sx(t)&&lx(e)}function ox(e,t,r){return r(function(){sx(t)&&lx(e)})}function sx(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!gr(e,r)}catch{return!0}}function lx(e){var t=qr(e,1);t!==null&&hr(t,e,1,-1)}function Rh(e){var t=Ir();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Qo,lastRenderedState:e},t.queue=e,e=e.dispatch=KS.bind(null,$e,e),[t.memoizedState,e]}function Yo(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=$e.updateQueue,t===null?(t={lastEffect:null,stores:null},$e.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function ix(){return Zt().memoizedState}function Rl(e,t,r,n){var a=Ir();$e.flags|=e,a.memoizedState=Yo(1|t,r,void 0,n===void 0?null:n)}function di(e,t,r,n){var a=Zt();n=n===void 0?null:n;var o=void 0;if(Je!==null){var s=Je.memoizedState;if(o=s.destroy,n!==null&&Ec(n,s.deps)){a.memoizedState=Yo(t,r,o,n);return}}$e.flags|=e,a.memoizedState=Yo(1|t,r,o,n)}function Eh(e,t){return Rl(8390656,8,e,t)}function Tc(e,t){return di(2048,8,e,t)}function ux(e,t){return di(4,2,e,t)}function dx(e,t){return di(4,4,e,t)}function cx(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function fx(e,t,r){return r=r!=null?r.concat([e]):null,di(4,4,cx.bind(null,t,e),r)}function Ac(){}function px(e,t){var r=Zt();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Ec(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function mx(e,t){var r=Zt();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&Ec(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function hx(e,t,r){return($n&21)===0?(e.baseState&&(e.baseState=!1,Rt=!0),e.memoizedState=r):(gr(r,t)||(r=wg(),$e.lanes|=r,Hn|=r,e.baseState=!0),t)}function GS(e,t){var r=Ie;Ie=r!==0&&4>r?r:4,e(!0);var n=ad.transition;ad.transition={};try{e(!1),t()}finally{Ie=r,ad.transition=n}}function gx(){return Zt().memoizedState}function XS(e,t,r){var n=pn(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},xx(e))vx(t,r);else if(r=Jg(e,t,r,n),r!==null){var a=Ct();hr(r,e,n,a),yx(r,t,n)}}function KS(e,t,r){var n=pn(e),a={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(xx(e))vx(t,a);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,l=o(s,r);if(a.hasEagerState=!0,a.eagerState=l,gr(l,s)){var i=t.interleaved;i===null?(a.next=a,kc(t)):(a.next=i.next,i.next=a),t.interleaved=a;return}}catch{}r=Jg(e,t,a,n),r!==null&&(a=Ct(),hr(r,e,n,a),yx(r,t,n))}}function xx(e){var t=e.alternate;return e===$e||t!==null&&t===$e}function vx(e,t){Po=Yl=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function yx(e,t,r){if((r&4194240)!==0){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,cc(e,r)}}var Jl={readContext:Jt,useCallback:ft,useContext:ft,useEffect:ft,useImperativeHandle:ft,useInsertionEffect:ft,useLayoutEffect:ft,useMemo:ft,useReducer:ft,useRef:ft,useState:ft,useDebugValue:ft,useDeferredValue:ft,useTransition:ft,useMutableSource:ft,useSyncExternalStore:ft,useId:ft,unstable_isNewReconciler:!1},QS={readContext:Jt,useCallback:function(e,t){return Ir().memoizedState=[e,t===void 0?null:t],e},useContext:Jt,useEffect:Eh,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Rl(4194308,4,cx.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Rl(4194308,4,e,t)},useInsertionEffect:function(e,t){return Rl(4,2,e,t)},useMemo:function(e,t){var r=Ir();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Ir();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=XS.bind(null,$e,e),[n.memoizedState,e]},useRef:function(e){var t=Ir();return e={current:e},t.memoizedState=e},useState:Rh,useDebugValue:Ac,useDeferredValue:function(e){return Ir().memoizedState=e},useTransition:function(){var e=Rh(!1),t=e[0];return e=GS.bind(null,e[1]),Ir().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=$e,a=Ir();if(ze){if(r===void 0)throw Error(A(407));r=r()}else{if(r=t(),nt===null)throw Error(A(349));($n&30)!==0||nx(n,t,r)}a.memoizedState=r;var o={value:r,getSnapshot:t};return a.queue=o,Eh(ox.bind(null,n,o,e),[e]),n.flags|=2048,Yo(9,ax.bind(null,n,o,r,t),void 0,null),r},useId:function(){var e=Ir(),t=nt.identifierPrefix;if(ze){var r=Fr,n=Or;r=(n&~(1<<32-mr(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=Ko++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=VS++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},YS={readContext:Jt,useCallback:px,useContext:Jt,useEffect:Tc,useImperativeHandle:fx,useInsertionEffect:ux,useLayoutEffect:dx,useMemo:mx,useReducer:od,useRef:ix,useState:function(){return od(Qo)},useDebugValue:Ac,useDeferredValue:function(e){var t=Zt();return hx(t,Je.memoizedState,e)},useTransition:function(){var e=od(Qo)[0],t=Zt().memoizedState;return[e,t]},useMutableSource:tx,useSyncExternalStore:rx,useId:gx,unstable_isNewReconciler:!1},JS={readContext:Jt,useCallback:px,useContext:Jt,useEffect:Tc,useImperativeHandle:fx,useInsertionEffect:ux,useLayoutEffect:dx,useMemo:mx,useReducer:sd,useRef:ix,useState:function(){return sd(Qo)},useDebugValue:Ac,useDeferredValue:function(e){var t=Zt();return Je===null?t.memoizedState=e:hx(t,Je.memoizedState,e)},useTransition:function(){var e=sd(Qo)[0],t=Zt().memoizedState;return[e,t]},useMutableSource:tx,useSyncExternalStore:rx,useId:gx,unstable_isNewReconciler:!1};function cr(e,t){if(e&&e.defaultProps){t=He({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function qd(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:He({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var ci={isMounted:function(e){return(e=e._reactInternals)?Vn(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=Ct(),a=pn(e),o=Br(n,a);o.payload=t,r!=null&&(o.callback=r),t=cn(e,o,a),t!==null&&(hr(t,e,a,n),_l(t,e,a))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=Ct(),a=pn(e),o=Br(n,a);o.tag=1,o.payload=t,r!=null&&(o.callback=r),t=cn(e,o,a),t!==null&&(hr(t,e,a,n),_l(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=Ct(),n=pn(e),a=Br(r,n);a.tag=2,t!=null&&(a.callback=t),t=cn(e,a,n),t!==null&&(hr(t,e,n,r),_l(t,e,n))}};function Nh(e,t,r,n,a,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,o,s):t.prototype&&t.prototype.isPureReactComponent?!Ho(r,n)||!Ho(a,o):!0}function wx(e,t,r){var n=!1,a=gn,o=t.contextType;return typeof o=="object"&&o!==null?o=Jt(o):(a=Nt(t)?Un:ht.current,n=t.contextTypes,o=(n=n!=null)?Ba(e,a):gn),t=new t(r,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ci,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=o),t}function Ph(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&ci.enqueueReplaceState(t,t.state,null)}function $d(e,t,r,n){var a=e.stateNode;a.props=r,a.state=e.memoizedState,a.refs={},Ic(e);var o=t.contextType;typeof o=="object"&&o!==null?a.context=Jt(o):(o=Nt(t)?Un:ht.current,a.context=Ba(e,o)),a.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(qd(e,t,o,r),a.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof a.getSnapshotBeforeUpdate=="function"||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(t=a.state,typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),t!==a.state&&ci.enqueueReplaceState(a,a.state,null),Kl(e,r,a,n),a.state=e.memoizedState),typeof a.componentDidMount=="function"&&(e.flags|=4194308)}function $a(e,t){try{var r="",n=t;do r+=M0(n),n=n.return;while(n);var a=r}catch(o){a=`
|
|
7
7
|
Error generating stack: `+o.message+`
|
|
8
|
-
`+o.stack}return{value:e,source:t,stack:a,digest:null}}function ad(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function Ud(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var VS=typeof WeakMap=="function"?WeakMap:Map;function gx(e,t,r){r=Fr(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Yi||(Yi=!0,Qd=n),Ud(e,t)},r}function xx(e,t,r){r=Fr(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var a=t.value;r.payload=function(){return n(a)},r.callback=function(){Ud(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(r.callback=function(){Ud(e,t),typeof n!="function"&&(cn===null?cn=new Set([this]):cn.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),r}function Mh(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new VS;var a=new Set;n.set(t,a)}else a=n.get(t),a===void 0&&(a=new Set,n.set(t,a));a.has(r)||(a.add(r),e=s1.bind(null,e,t,r),t.then(e,e))}function Rh(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Eh(e,t,r,n,a){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=Fr(-1,1),t.tag=2,dn(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=a,e)}var GS=$r.ReactCurrentOwner,Mt=!1;function bt(e,t,r,n){t.child=e===null?Vg(t,null,r,n):Oa(t,e.child,r,n)}function Ph(e,t,r,n,a){r=r.render;var o=t.ref;return Pa(t,a),n=Mc(e,t,r,n,o,a),r=Rc(),e!==null&&!Mt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,qr(e,t,a)):(Fe&&r&&gc(t),t.flags|=1,bt(e,t,n,a),t.child)}function Nh(e,t,r,n,a){if(e===null){var o=r.type;return typeof o=="function"&&!zc(o)&&o.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=o,vx(e,t,o,n,a)):(e=Ei(r.type,null,n,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,(e.lanes&a)===0){var s=o.memoizedProps;if(r=r.compare,r=r!==null?r:zo,r(s,n)&&e.ref===t.ref)return qr(e,t,a)}return t.flags|=1,e=pn(o,n),e.ref=t.ref,e.return=t,t.child=e}function vx(e,t,r,n,a){if(e!==null){var o=e.memoizedProps;if(zo(o,n)&&e.ref===t.ref)if(Mt=!1,t.pendingProps=n=o,(e.lanes&a)!==0)(e.flags&131072)!==0&&(Mt=!0);else return t.lanes=e.lanes,qr(e,t,a)}return qd(e,t,r,n,a)}function yx(e,t,r){var n=t.pendingProps,a=n.children,o=e!==null?e.memoizedState:null;if(n.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Pe(Ia,Ot),Ot|=r;else{if((r&1073741824)===0)return e=o!==null?o.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Pe(Ia,Ot),Ot|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=o!==null?o.baseLanes:r,Pe(Ia,Ot),Ot|=n}else o!==null?(n=o.baseLanes|r,t.memoizedState=null):n=r,Pe(Ia,Ot),Ot|=n;return bt(e,t,a,r),t.child}function wx(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function qd(e,t,r,n,a){var o=Et(r)?Fn:mt.current;return o=Aa(t,o),Pa(t,a),r=Mc(e,t,r,n,o,a),n=Rc(),e!==null&&!Mt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,qr(e,t,a)):(Fe&&n&&gc(t),t.flags|=1,bt(e,t,r,a),t.child)}function Th(e,t,r,n,a){if(Et(r)){var o=!0;qi(t)}else o=!1;if(Pa(t,a),t.stateNode===null)_i(e,t),hx(t,r,n),zd(t,r,n,a),n=!0;else if(e===null){var s=t.stateNode,i=t.memoizedProps;s.props=i;var l=s.context,d=r.contextType;typeof d=="object"&&d!==null?d=Qt(d):(d=Et(r)?Fn:mt.current,d=Aa(t,d));var u=r.getDerivedStateFromProps,p=typeof u=="function"||typeof s.getSnapshotBeforeUpdate=="function";p||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(i!==n||l!==d)&&_h(t,s,n,d),en=!1;var c=t.memoizedState;s.state=c,Vi(t,n,s,a),l=t.memoizedState,i!==n||c!==l||Rt.current||en?(typeof u=="function"&&(Bd(t,r,u,n),l=t.memoizedState),(i=en||Ih(t,r,i,n,c,l,d))?(p||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),s.props=n,s.state=l,s.context=d,n=i):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{s=t.stateNode,Xg(e,t),i=t.memoizedProps,d=t.type===t.elementType?i:ur(t.type,i),s.props=d,p=t.pendingProps,c=s.context,l=r.contextType,typeof l=="object"&&l!==null?l=Qt(l):(l=Et(r)?Fn:mt.current,l=Aa(t,l));var f=r.getDerivedStateFromProps;(u=typeof f=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(i!==p||c!==l)&&_h(t,s,n,l),en=!1,c=t.memoizedState,s.state=c,Vi(t,n,s,a);var h=t.memoizedState;i!==p||c!==h||Rt.current||en?(typeof f=="function"&&(Bd(t,r,f,n),h=t.memoizedState),(d=en||Ih(t,r,d,n,c,h,l)||!1)?(u||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(n,h,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(n,h,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||i===e.memoizedProps&&c===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&c===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=h),s.props=n,s.state=h,s.context=l,n=d):(typeof s.componentDidUpdate!="function"||i===e.memoizedProps&&c===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&c===e.memoizedState||(t.flags|=1024),n=!1)}return $d(e,t,r,n,o,a)}function $d(e,t,r,n,a,o){wx(e,t);var s=(t.flags&128)!==0;if(!n&&!s)return a&&vh(t,r,!1),qr(e,t,o);n=t.stateNode,GS.current=t;var i=s&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&s?(t.child=Oa(t,e.child,null,o),t.child=Oa(t,null,i,o)):bt(e,t,i,o),t.memoizedState=n.state,a&&vh(t,r,!0),t.child}function bx(e){var t=e.stateNode;t.pendingContext?xh(e,t.pendingContext,t.pendingContext!==t.context):t.context&&xh(e,t.context,!1),Lc(e,t.containerInfo)}function Ah(e,t,r,n,a){return Da(),vc(a),t.flags|=256,bt(e,t,r,n),t.child}var Hd={dehydrated:null,treeContext:null,retryLane:0};function Wd(e){return{baseLanes:e,cachePool:null,transitions:null}}function Sx(e,t,r){var n=t.pendingProps,a=Ue.current,o=!1,s=(t.flags&128)!==0,i;if((i=s)||(i=e!==null&&e.memoizedState===null?!1:(a&2)!==0),i?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(a|=1),Pe(Ue,a&1),e===null)return Od(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(s=n.children,e=n.fallback,o?(n=t.mode,o=t.child,s={mode:"hidden",children:s},(n&1)===0&&o!==null?(o.childLanes=0,o.pendingProps=s):o=cl(s,n,0,null),e=On(e,n,r,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Wd(r),t.memoizedState=Hd,e):Nc(t,s));if(a=e.memoizedState,a!==null&&(i=a.dehydrated,i!==null))return XS(e,t,s,n,i,a,r);if(o){o=n.fallback,s=t.mode,a=e.child,i=a.sibling;var l={mode:"hidden",children:n.children};return(s&1)===0&&t.child!==a?(n=t.child,n.childLanes=0,n.pendingProps=l,t.deletions=null):(n=pn(a,l),n.subtreeFlags=a.subtreeFlags&14680064),i!==null?o=pn(i,o):(o=On(o,s,r,null),o.flags|=2),o.return=t,n.return=t,n.sibling=o,t.child=n,n=o,o=t.child,s=e.child.memoizedState,s=s===null?Wd(r):{baseLanes:s.baseLanes|r,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~r,t.memoizedState=Hd,n}return o=e.child,e=o.sibling,n=pn(o,{mode:"visible",children:n.children}),(t.mode&1)===0&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function Nc(e,t){return t=cl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function vi(e,t,r,n){return n!==null&&vc(n),Oa(t,e.child,null,r),e=Nc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function XS(e,t,r,n,a,o,s){if(r)return t.flags&256?(t.flags&=-257,n=ad(Error(P(422))),vi(e,t,s,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=n.fallback,a=t.mode,n=cl({mode:"visible",children:n.children},a,0,null),o=On(o,a,s,null),o.flags|=2,n.return=t,o.return=t,n.sibling=o,t.child=n,(t.mode&1)!==0&&Oa(t,e.child,null,s),t.child.memoizedState=Wd(s),t.memoizedState=Hd,o);if((t.mode&1)===0)return vi(e,t,s,null);if(a.data==="$!"){if(n=a.nextSibling&&a.nextSibling.dataset,n)var i=n.dgst;return n=i,o=Error(P(419)),n=ad(o,n,void 0),vi(e,t,s,n)}if(i=(s&e.childLanes)!==0,Mt||i){if(n=rt,n!==null){switch(s&-s){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}a=(a&(n.suspendedLanes|s))!==0?0:a,a!==0&&a!==o.retryLane&&(o.retryLane=a,Ur(e,a),pr(n,e,a,-1))}return Bc(),n=ad(Error(P(421))),vi(e,t,s,n)}return a.data==="$?"?(t.flags|=128,t.child=e.child,t=i1.bind(null,e),a._reactRetry=t,null):(e=o.treeContext,Ft=un(a.nextSibling),Bt=t,Fe=!0,cr=null,e!==null&&(Vt[Gt++]=Dr,Vt[Gt++]=Or,Vt[Gt++]=Bn,Dr=e.id,Or=e.overflow,Bn=t),t=Nc(t,n.children),t.flags|=4096,t)}function Dh(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Fd(e.return,t,r)}function od(e,t,r,n,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=r,o.tailMode=a)}function Cx(e,t,r){var n=t.pendingProps,a=n.revealOrder,o=n.tail;if(bt(e,t,n.children,r),n=Ue.current,(n&2)!==0)n=n&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Dh(e,r,t);else if(e.tag===19)Dh(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(Pe(Ue,n),(t.mode&1)===0)t.memoizedState=null;else switch(a){case"forwards":for(r=t.child,a=null;r!==null;)e=r.alternate,e!==null&&Gi(e)===null&&(a=r),r=r.sibling;r=a,r===null?(a=t.child,t.child=null):(a=r.sibling,r.sibling=null),od(t,!1,a,r,o);break;case"backwards":for(r=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&Gi(e)===null){t.child=a;break}e=a.sibling,a.sibling=r,r=a,a=e}od(t,!0,r,null,o);break;case"together":od(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function _i(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function qr(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Un|=t.lanes,(r&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(P(153));if(t.child!==null){for(e=t.child,r=pn(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=pn(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function KS(e,t,r){switch(t.tag){case 3:bx(t),Da();break;case 5:Kg(t);break;case 1:Et(t.type)&&qi(t);break;case 4:Lc(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,a=t.memoizedProps.value;Pe(Wi,n._currentValue),n._currentValue=a;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(Pe(Ue,Ue.current&1),t.flags|=128,null):(r&t.child.childLanes)!==0?Sx(e,t,r):(Pe(Ue,Ue.current&1),e=qr(e,t,r),e!==null?e.sibling:null);Pe(Ue,Ue.current&1);break;case 19:if(n=(r&t.childLanes)!==0,(e.flags&128)!==0){if(n)return Cx(e,t,r);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Pe(Ue,Ue.current),n)break;return null;case 22:case 23:return t.lanes=0,yx(e,t,r)}return qr(e,t,r)}var Lx,jd,kx,Ix;Lx=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};jd=function(){};kx=function(e,t,r,n){var a=e.memoizedProps;if(a!==n){e=t.stateNode,An(Mr.current);var o=null;switch(r){case"input":a=pd(e,a),n=pd(e,n),o=[];break;case"select":a=$e({},a,{value:void 0}),n=$e({},n,{value:void 0}),o=[];break;case"textarea":a=gd(e,a),n=gd(e,n),o=[];break;default:typeof a.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=zi)}vd(r,n);var s;r=null;for(d in a)if(!n.hasOwnProperty(d)&&a.hasOwnProperty(d)&&a[d]!=null)if(d==="style"){var i=a[d];for(s in i)i.hasOwnProperty(s)&&(r||(r={}),r[s]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(No.hasOwnProperty(d)?o||(o=[]):(o=o||[]).push(d,null));for(d in n){var l=n[d];if(i=a?.[d],n.hasOwnProperty(d)&&l!==i&&(l!=null||i!=null))if(d==="style")if(i){for(s in i)!i.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(r||(r={}),r[s]="");for(s in l)l.hasOwnProperty(s)&&i[s]!==l[s]&&(r||(r={}),r[s]=l[s])}else r||(o||(o=[]),o.push(d,r)),r=l;else d==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,i=i?i.__html:void 0,l!=null&&i!==l&&(o=o||[]).push(d,l)):d==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(d,""+l):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&(No.hasOwnProperty(d)?(l!=null&&d==="onScroll"&&Ae("scroll",e),o||i===l||(o=[])):(o=o||[]).push(d,l))}r&&(o=o||[]).push("style",r);var d=o;(t.updateQueue=d)&&(t.flags|=4)}};Ix=function(e,t,r,n){r!==n&&(t.flags|=4)};function go(e,t){if(!Fe)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function ft(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var a=e.child;a!==null;)r|=a.lanes|a.childLanes,n|=a.subtreeFlags&14680064,n|=a.flags&14680064,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)r|=a.lanes|a.childLanes,n|=a.subtreeFlags,n|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function QS(e,t,r){var n=t.pendingProps;switch(xc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ft(t),null;case 1:return Et(t.type)&&Ui(),ft(t),null;case 3:return n=t.stateNode,Fa(),De(Rt),De(mt),Ic(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(gi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,cr!==null&&(Zd(cr),cr=null))),jd(e,t),ft(t),null;case 5:kc(t);var a=An(Wo.current);if(r=t.type,e!==null&&t.stateNode!=null)kx(e,t,r,n,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(P(166));return ft(t),null}if(e=An(Mr.current),gi(t)){n=t.stateNode,r=t.type;var o=t.memoizedProps;switch(n[Ir]=t,n[$o]=o,e=(t.mode&1)!==0,r){case"dialog":Ae("cancel",n),Ae("close",n);break;case"iframe":case"object":case"embed":Ae("load",n);break;case"video":case"audio":for(a=0;a<So.length;a++)Ae(So[a],n);break;case"source":Ae("error",n);break;case"img":case"image":case"link":Ae("error",n),Ae("load",n);break;case"details":Ae("toggle",n);break;case"input":Hm(n,o),Ae("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!o.multiple},Ae("invalid",n);break;case"textarea":jm(n,o),Ae("invalid",n)}vd(r,o),a=null;for(var s in o)if(o.hasOwnProperty(s)){var i=o[s];s==="children"?typeof i=="string"?n.textContent!==i&&(o.suppressHydrationWarning!==!0&&hi(n.textContent,i,e),a=["children",i]):typeof i=="number"&&n.textContent!==""+i&&(o.suppressHydrationWarning!==!0&&hi(n.textContent,i,e),a=["children",""+i]):No.hasOwnProperty(s)&&i!=null&&s==="onScroll"&&Ae("scroll",n)}switch(r){case"input":ni(n),Wm(n,o,!0);break;case"textarea":ni(n),Vm(n);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(n.onclick=zi)}n=a,t.updateQueue=n,n!==null&&(t.flags|=4)}else{s=a.nodeType===9?a:a.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=eg(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=s.createElement(r,{is:n.is}):(e=s.createElement(r),r==="select"&&(s=e,n.multiple?s.multiple=!0:n.size&&(s.size=n.size))):e=s.createElementNS(e,r),e[Ir]=t,e[$o]=n,Lx(e,t,!1,!1),t.stateNode=e;e:{switch(s=yd(r,n),r){case"dialog":Ae("cancel",e),Ae("close",e),a=n;break;case"iframe":case"object":case"embed":Ae("load",e),a=n;break;case"video":case"audio":for(a=0;a<So.length;a++)Ae(So[a],e);a=n;break;case"source":Ae("error",e),a=n;break;case"img":case"image":case"link":Ae("error",e),Ae("load",e),a=n;break;case"details":Ae("toggle",e),a=n;break;case"input":Hm(e,n),a=pd(e,n),Ae("invalid",e);break;case"option":a=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},a=$e({},n,{value:void 0}),Ae("invalid",e);break;case"textarea":jm(e,n),a=gd(e,n),Ae("invalid",e);break;default:a=n}vd(r,a),i=a;for(o in i)if(i.hasOwnProperty(o)){var l=i[o];o==="style"?ng(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&tg(e,l)):o==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&To(e,l):typeof l=="number"&&To(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(No.hasOwnProperty(o)?l!=null&&o==="onScroll"&&Ae("scroll",e):l!=null&&rc(e,o,l,s))}switch(r){case"input":ni(e),Wm(e,n,!1);break;case"textarea":ni(e),Vm(e);break;case"option":n.value!=null&&e.setAttribute("value",""+mn(n.value));break;case"select":e.multiple=!!n.multiple,o=n.value,o!=null?_a(e,!!n.multiple,o,!1):n.defaultValue!=null&&_a(e,!!n.multiple,n.defaultValue,!0);break;default:typeof a.onClick=="function"&&(e.onclick=zi)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return ft(t),null;case 6:if(e&&t.stateNode!=null)Ix(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(P(166));if(r=An(Wo.current),An(Mr.current),gi(t)){if(n=t.stateNode,r=t.memoizedProps,n[Ir]=t,(o=n.nodeValue!==r)&&(e=Bt,e!==null))switch(e.tag){case 3:hi(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&hi(n.nodeValue,r,(e.mode&1)!==0)}o&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[Ir]=t,t.stateNode=n}return ft(t),null;case 13:if(De(Ue),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Fe&&Ft!==null&&(t.mode&1)!==0&&(t.flags&128)===0)Wg(),Da(),t.flags|=98560,o=!1;else if(o=gi(t),n!==null&&n.dehydrated!==null){if(e===null){if(!o)throw Error(P(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(P(317));o[Ir]=t}else Da(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ft(t),o=!1}else cr!==null&&(Zd(cr),cr=null),o=!0;if(!o)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(Ue.current&1)!==0?Je===0&&(Je=3):Bc())),t.updateQueue!==null&&(t.flags|=4),ft(t),null);case 4:return Fa(),jd(e,t),e===null&&Uo(t.stateNode.containerInfo),ft(t),null;case 10:return bc(t.type._context),ft(t),null;case 17:return Et(t.type)&&Ui(),ft(t),null;case 19:if(De(Ue),o=t.memoizedState,o===null)return ft(t),null;if(n=(t.flags&128)!==0,s=o.rendering,s===null)if(n)go(o,!1);else{if(Je!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=Gi(e),s!==null){for(t.flags|=128,go(o,!1),n=s.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)o=r,e=n,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Pe(Ue,Ue.current&1|2),t.child}e=e.sibling}o.tail!==null&&Ve()>za&&(t.flags|=128,n=!0,go(o,!1),t.lanes=4194304)}else{if(!n)if(e=Gi(s),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),go(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!Fe)return ft(t),null}else 2*Ve()-o.renderingStartTime>za&&r!==1073741824&&(t.flags|=128,n=!0,go(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(r=o.last,r!==null?r.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Ve(),t.sibling=null,r=Ue.current,Pe(Ue,n?r&1|2:r&1),t):(ft(t),null);case 22:case 23:return Fc(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&(t.mode&1)!==0?(Ot&1073741824)!==0&&(ft(t),t.subtreeFlags&6&&(t.flags|=8192)):ft(t),null;case 24:return null;case 25:return null}throw Error(P(156,t.tag))}function YS(e,t){switch(xc(t),t.tag){case 1:return Et(t.type)&&Ui(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Fa(),De(Rt),De(mt),Ic(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return kc(t),null;case 13:if(De(Ue),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(P(340));Da()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return De(Ue),null;case 4:return Fa(),null;case 10:return bc(t.type._context),null;case 22:case 23:return Fc(),null;case 24:return null;default:return null}}var yi=!1,pt=!1,JS=typeof WeakSet=="function"?WeakSet:Set,B=null;function ka(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){He(e,t,n)}else r.current=null}function Vd(e,t,r){try{r()}catch(n){He(e,t,n)}}var Oh=!1;function ZS(e,t){if(Rd=Oi,e=Pg(),hc(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var a=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break e}var s=0,i=-1,l=-1,d=0,u=0,p=e,c=null;t:for(;;){for(var f;p!==r||a!==0&&p.nodeType!==3||(i=s+a),p!==o||n!==0&&p.nodeType!==3||(l=s+n),p.nodeType===3&&(s+=p.nodeValue.length),(f=p.firstChild)!==null;)c=p,p=f;for(;;){if(p===e)break t;if(c===r&&++d===a&&(i=s),c===o&&++u===n&&(l=s),(f=p.nextSibling)!==null)break;p=c,c=p.parentNode}p=f}r=i===-1||l===-1?null:{start:i,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Ed={focusedElem:e,selectionRange:r},Oi=!1,B=t;B!==null;)if(t=B,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,B=e;else for(;B!==null;){t=B;try{var h=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var m=h.memoizedProps,b=h.memoizedState,g=t.stateNode,x=g.getSnapshotBeforeUpdate(t.elementType===t.type?m:ur(t.type,m),b);g.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(P(163))}}catch(S){He(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,B=e;break}B=t.return}return h=Oh,Oh=!1,h}function Ro(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var a=n=n.next;do{if((a.tag&e)===e){var o=a.destroy;a.destroy=void 0,o!==void 0&&Vd(t,r,o)}a=a.next}while(a!==n)}}function ul(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function Gd(e){var t=e.ref;if(t!==null){var r=e.stateNode;e.tag,e=r,typeof t=="function"?t(e):t.current=e}}function _x(e){var t=e.alternate;t!==null&&(e.alternate=null,_x(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ir],delete t[$o],delete t[Td],delete t[DS],delete t[OS])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Mx(e){return e.tag===5||e.tag===3||e.tag===4}function Fh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Mx(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Xd(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=zi));else if(n!==4&&(e=e.child,e!==null))for(Xd(e,t,r),e=e.sibling;e!==null;)Xd(e,t,r),e=e.sibling}function Kd(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(Kd(e,t,r),e=e.sibling;e!==null;)Kd(e,t,r),e=e.sibling}var nt=null,dr=!1;function Jr(e,t,r){for(r=r.child;r!==null;)Rx(e,t,r),r=r.sibling}function Rx(e,t,r){if(_r&&typeof _r.onCommitFiberUnmount=="function")try{_r.onCommitFiberUnmount(tl,r)}catch{}switch(r.tag){case 5:pt||ka(r,t);case 6:var n=nt,a=dr;nt=null,Jr(e,t,r),nt=n,dr=a,nt!==null&&(dr?(e=nt,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):nt.removeChild(r.stateNode));break;case 18:nt!==null&&(dr?(e=nt,r=r.stateNode,e.nodeType===8?Ju(e.parentNode,r):e.nodeType===1&&Ju(e,r),Fo(e)):Ju(nt,r.stateNode));break;case 4:n=nt,a=dr,nt=r.stateNode.containerInfo,dr=!0,Jr(e,t,r),nt=n,dr=a;break;case 0:case 11:case 14:case 15:if(!pt&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){a=n=n.next;do{var o=a,s=o.destroy;o=o.tag,s!==void 0&&((o&2)!==0||(o&4)!==0)&&Vd(r,t,s),a=a.next}while(a!==n)}Jr(e,t,r);break;case 1:if(!pt&&(ka(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(i){He(r,t,i)}Jr(e,t,r);break;case 21:Jr(e,t,r);break;case 22:r.mode&1?(pt=(n=pt)||r.memoizedState!==null,Jr(e,t,r),pt=n):Jr(e,t,r);break;default:Jr(e,t,r)}}function Bh(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new JS),t.forEach(function(n){var a=l1.bind(null,e,n);r.has(n)||(r.add(n),n.then(a,a))})}}function lr(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var a=r[n];try{var o=e,s=t,i=s;e:for(;i!==null;){switch(i.tag){case 5:nt=i.stateNode,dr=!1;break e;case 3:nt=i.stateNode.containerInfo,dr=!0;break e;case 4:nt=i.stateNode.containerInfo,dr=!0;break e}i=i.return}if(nt===null)throw Error(P(160));Rx(o,s,a),nt=null,dr=!1;var l=a.alternate;l!==null&&(l.return=null),a.return=null}catch(d){He(a,t,d)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Ex(t,e),t=t.sibling}function Ex(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(lr(t,e),Lr(e),n&4){try{Ro(3,e,e.return),ul(3,e)}catch(m){He(e,e.return,m)}try{Ro(5,e,e.return)}catch(m){He(e,e.return,m)}}break;case 1:lr(t,e),Lr(e),n&512&&r!==null&&ka(r,r.return);break;case 5:if(lr(t,e),Lr(e),n&512&&r!==null&&ka(r,r.return),e.flags&32){var a=e.stateNode;try{To(a,"")}catch(m){He(e,e.return,m)}}if(n&4&&(a=e.stateNode,a!=null)){var o=e.memoizedProps,s=r!==null?r.memoizedProps:o,i=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{i==="input"&&o.type==="radio"&&o.name!=null&&Jh(a,o),yd(i,s);var d=yd(i,o);for(s=0;s<l.length;s+=2){var u=l[s],p=l[s+1];u==="style"?ng(a,p):u==="dangerouslySetInnerHTML"?tg(a,p):u==="children"?To(a,p):rc(a,u,p,d)}switch(i){case"input":md(a,o);break;case"textarea":Zh(a,o);break;case"select":var c=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!o.multiple;var f=o.value;f!=null?_a(a,!!o.multiple,f,!1):c!==!!o.multiple&&(o.defaultValue!=null?_a(a,!!o.multiple,o.defaultValue,!0):_a(a,!!o.multiple,o.multiple?[]:"",!1))}a[$o]=o}catch(m){He(e,e.return,m)}}break;case 6:if(lr(t,e),Lr(e),n&4){if(e.stateNode===null)throw Error(P(162));a=e.stateNode,o=e.memoizedProps;try{a.nodeValue=o}catch(m){He(e,e.return,m)}}break;case 3:if(lr(t,e),Lr(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{Fo(t.containerInfo)}catch(m){He(e,e.return,m)}break;case 4:lr(t,e),Lr(e);break;case 13:lr(t,e),Lr(e),a=e.child,a.flags&8192&&(o=a.memoizedState!==null,a.stateNode.isHidden=o,!o||a.alternate!==null&&a.alternate.memoizedState!==null||(Dc=Ve())),n&4&&Bh(e);break;case 22:if(u=r!==null&&r.memoizedState!==null,e.mode&1?(pt=(d=pt)||u,lr(t,e),pt=d):lr(t,e),Lr(e),n&8192){if(d=e.memoizedState!==null,(e.stateNode.isHidden=d)&&!u&&(e.mode&1)!==0)for(B=e,u=e.child;u!==null;){for(p=B=u;B!==null;){switch(c=B,f=c.child,c.tag){case 0:case 11:case 14:case 15:Ro(4,c,c.return);break;case 1:ka(c,c.return);var h=c.stateNode;if(typeof h.componentWillUnmount=="function"){n=c,r=c.return;try{t=n,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(m){He(n,r,m)}}break;case 5:ka(c,c.return);break;case 22:if(c.memoizedState!==null){Uh(p);continue}}f!==null?(f.return=c,B=f):Uh(p)}u=u.sibling}e:for(u=null,p=e;;){if(p.tag===5){if(u===null){u=p;try{a=p.stateNode,d?(o=a.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(i=p.stateNode,l=p.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,i.style.display=rg("display",s))}catch(m){He(e,e.return,m)}}}else if(p.tag===6){if(u===null)try{p.stateNode.nodeValue=d?"":p.memoizedProps}catch(m){He(e,e.return,m)}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===e)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;p.sibling===null;){if(p.return===null||p.return===e)break e;u===p&&(u=null),p=p.return}u===p&&(u=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:lr(t,e),Lr(e),n&4&&Bh(e);break;case 21:break;default:lr(t,e),Lr(e)}}function Lr(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(Mx(r)){var n=r;break e}r=r.return}throw Error(P(160))}switch(n.tag){case 5:var a=n.stateNode;n.flags&32&&(To(a,""),n.flags&=-33);var o=Fh(e);Kd(e,o,a);break;case 3:case 4:var s=n.stateNode.containerInfo,i=Fh(e);Xd(e,i,s);break;default:throw Error(P(161))}}catch(l){He(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function e1(e,t,r){B=e,Px(e,t,r)}function Px(e,t,r){for(var n=(e.mode&1)!==0;B!==null;){var a=B,o=a.child;if(a.tag===22&&n){var s=a.memoizedState!==null||yi;if(!s){var i=a.alternate,l=i!==null&&i.memoizedState!==null||pt;i=yi;var d=pt;if(yi=s,(pt=l)&&!d)for(B=a;B!==null;)s=B,l=s.child,s.tag===22&&s.memoizedState!==null?qh(a):l!==null?(l.return=s,B=l):qh(a);for(;o!==null;)B=o,Px(o,t,r),o=o.sibling;B=a,yi=i,pt=d}zh(e,t,r)}else(a.subtreeFlags&8772)!==0&&o!==null?(o.return=a,B=o):zh(e,t,r)}}function zh(e){for(;B!==null;){var t=B;if((t.flags&8772)!==0){var r=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:pt||ul(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!pt)if(r===null)n.componentDidMount();else{var a=t.elementType===t.type?r.memoizedProps:ur(t.type,r.memoizedProps);n.componentDidUpdate(a,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&Ch(t,o,n);break;case 3:var s=t.updateQueue;if(s!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}Ch(t,s,r)}break;case 5:var i=t.stateNode;if(r===null&&t.flags&4){r=i;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var d=t.alternate;if(d!==null){var u=d.memoizedState;if(u!==null){var p=u.dehydrated;p!==null&&Fo(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(P(163))}pt||t.flags&512&&Gd(t)}catch(c){He(t,t.return,c)}}if(t===e){B=null;break}if(r=t.sibling,r!==null){r.return=t.return,B=r;break}B=t.return}}function Uh(e){for(;B!==null;){var t=B;if(t===e){B=null;break}var r=t.sibling;if(r!==null){r.return=t.return,B=r;break}B=t.return}}function qh(e){for(;B!==null;){var t=B;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{ul(4,t)}catch(l){He(t,r,l)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var a=t.return;try{n.componentDidMount()}catch(l){He(t,a,l)}}var o=t.return;try{Gd(t)}catch(l){He(t,o,l)}break;case 5:var s=t.return;try{Gd(t)}catch(l){He(t,s,l)}}}catch(l){He(t,t.return,l)}if(t===e){B=null;break}var i=t.sibling;if(i!==null){i.return=t.return,B=i;break}B=t.return}}var t1=Math.ceil,Qi=$r.ReactCurrentDispatcher,Tc=$r.ReactCurrentOwner,Kt=$r.ReactCurrentBatchConfig,he=0,rt=null,Ge=null,at=0,Ot=0,Ia=xn(0),Je=0,Xo=null,Un=0,dl=0,Ac=0,Eo=null,_t=null,Dc=0,za=1/0,Tr=null,Yi=!1,Qd=null,cn=null,wi=!1,an=null,Ji=0,Po=0,Yd=null,Mi=-1,Ri=0;function St(){return(he&6)!==0?Ve():Mi!==-1?Mi:Mi=Ve()}function fn(e){return(e.mode&1)===0?1:(he&2)!==0&&at!==0?at&-at:BS.transition!==null?(Ri===0&&(Ri=hg()),Ri):(e=Le,e!==0||(e=window.event,e=e===void 0?16:Sg(e.type)),e)}function pr(e,t,r,n){if(50<Po)throw Po=0,Yd=null,Error(P(185));Ko(e,r,n),((he&2)===0||e!==rt)&&(e===rt&&((he&2)===0&&(dl|=r),Je===4&&rn(e,at)),Pt(e,n),r===1&&he===0&&(t.mode&1)===0&&(za=Ve()+500,sl&&vn()))}function Pt(e,t){var r=e.callbackNode;Ub(e,t);var n=Di(e,e===rt?at:0);if(n===0)r!==null&&Km(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&Km(r),t===1)e.tag===0?FS($h.bind(null,e)):qg($h.bind(null,e)),TS(function(){(he&6)===0&&vn()}),r=null;else{switch(gg(n)){case 1:r=ic;break;case 4:r=pg;break;case 16:r=Ai;break;case 536870912:r=mg;break;default:r=Ai}r=zx(r,Nx.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function Nx(e,t){if(Mi=-1,Ri=0,(he&6)!==0)throw Error(P(327));var r=e.callbackNode;if(Na()&&e.callbackNode!==r)return null;var n=Di(e,e===rt?at:0);if(n===0)return null;if((n&30)!==0||(n&e.expiredLanes)!==0||t)t=Zi(e,n);else{t=n;var a=he;he|=2;var o=Ax();(rt!==e||at!==t)&&(Tr=null,za=Ve()+500,Dn(e,t));do try{a1();break}catch(i){Tx(e,i)}while(!0);wc(),Qi.current=o,he=a,Ge!==null?t=0:(rt=null,at=0,t=Je)}if(t!==0){if(t===2&&(a=Ld(e),a!==0&&(n=a,t=Jd(e,a))),t===1)throw r=Xo,Dn(e,0),rn(e,n),Pt(e,Ve()),r;if(t===6)rn(e,n);else{if(a=e.current.alternate,(n&30)===0&&!r1(a)&&(t=Zi(e,n),t===2&&(o=Ld(e),o!==0&&(n=o,t=Jd(e,o))),t===1))throw r=Xo,Dn(e,0),rn(e,n),Pt(e,Ve()),r;switch(e.finishedWork=a,e.finishedLanes=n,t){case 0:case 1:throw Error(P(345));case 2:Pn(e,_t,Tr);break;case 3:if(rn(e,n),(n&130023424)===n&&(t=Dc+500-Ve(),10<t)){if(Di(e,0)!==0)break;if(a=e.suspendedLanes,(a&n)!==n){St(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=Nd(Pn.bind(null,e,_t,Tr),t);break}Pn(e,_t,Tr);break;case 4:if(rn(e,n),(n&4194240)===n)break;for(t=e.eventTimes,a=-1;0<n;){var s=31-fr(n);o=1<<s,s=t[s],s>a&&(a=s),n&=~o}if(n=a,n=Ve()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*t1(n/1960))-n,10<n){e.timeoutHandle=Nd(Pn.bind(null,e,_t,Tr),n);break}Pn(e,_t,Tr);break;case 5:Pn(e,_t,Tr);break;default:throw Error(P(329))}}}return Pt(e,Ve()),e.callbackNode===r?Nx.bind(null,e):null}function Jd(e,t){var r=Eo;return e.current.memoizedState.isDehydrated&&(Dn(e,t).flags|=256),e=Zi(e,t),e!==2&&(t=_t,_t=r,t!==null&&Zd(t)),e}function Zd(e){_t===null?_t=e:_t.push.apply(_t,e)}function r1(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var a=r[n],o=a.getSnapshot;a=a.value;try{if(!mr(o(),a))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function rn(e,t){for(t&=~Ac,t&=~dl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-fr(t),n=1<<r;e[r]=-1,t&=~n}}function $h(e){if((he&6)!==0)throw Error(P(327));Na();var t=Di(e,0);if((t&1)===0)return Pt(e,Ve()),null;var r=Zi(e,t);if(e.tag!==0&&r===2){var n=Ld(e);n!==0&&(t=n,r=Jd(e,n))}if(r===1)throw r=Xo,Dn(e,0),rn(e,t),Pt(e,Ve()),r;if(r===6)throw Error(P(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Pn(e,_t,Tr),Pt(e,Ve()),null}function Oc(e,t){var r=he;he|=1;try{return e(t)}finally{he=r,he===0&&(za=Ve()+500,sl&&vn())}}function qn(e){an!==null&&an.tag===0&&(he&6)===0&&Na();var t=he;he|=1;var r=Kt.transition,n=Le;try{if(Kt.transition=null,Le=1,e)return e()}finally{Le=n,Kt.transition=r,he=t,(he&6)===0&&vn()}}function Fc(){Ot=Ia.current,De(Ia)}function Dn(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,NS(r)),Ge!==null)for(r=Ge.return;r!==null;){var n=r;switch(xc(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&Ui();break;case 3:Fa(),De(Rt),De(mt),Ic();break;case 5:kc(n);break;case 4:Fa();break;case 13:De(Ue);break;case 19:De(Ue);break;case 10:bc(n.type._context);break;case 22:case 23:Fc()}r=r.return}if(rt=e,Ge=e=pn(e.current,null),at=Ot=t,Je=0,Xo=null,Ac=dl=Un=0,_t=Eo=null,Tn!==null){for(t=0;t<Tn.length;t++)if(r=Tn[t],n=r.interleaved,n!==null){r.interleaved=null;var a=n.next,o=r.pending;if(o!==null){var s=o.next;o.next=a,n.next=s}r.pending=n}Tn=null}return e}function Tx(e,t){do{var r=Ge;try{if(wc(),ki.current=Ki,Xi){for(var n=qe.memoizedState;n!==null;){var a=n.queue;a!==null&&(a.pending=null),n=n.next}Xi=!1}if(zn=0,tt=Ye=qe=null,Mo=!1,jo=0,Tc.current=null,r===null||r.return===null){Je=1,Xo=t,Ge=null;break}e:{var o=e,s=r.return,i=r,l=t;if(t=at,i.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var d=l,u=i,p=u.tag;if((u.mode&1)===0&&(p===0||p===11||p===15)){var c=u.alternate;c?(u.updateQueue=c.updateQueue,u.memoizedState=c.memoizedState,u.lanes=c.lanes):(u.updateQueue=null,u.memoizedState=null)}var f=Rh(s);if(f!==null){f.flags&=-257,Eh(f,s,i,o,t),f.mode&1&&Mh(o,d,t),t=f,l=d;var h=t.updateQueue;if(h===null){var m=new Set;m.add(l),t.updateQueue=m}else h.add(l);break e}else{if((t&1)===0){Mh(o,d,t),Bc();break e}l=Error(P(426))}}else if(Fe&&i.mode&1){var b=Rh(s);if(b!==null){(b.flags&65536)===0&&(b.flags|=256),Eh(b,s,i,o,t),vc(Ba(l,i));break e}}o=l=Ba(l,i),Je!==4&&(Je=2),Eo===null?Eo=[o]:Eo.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var g=gx(o,l,t);Sh(o,g);break e;case 1:i=l;var x=o.type,v=o.stateNode;if((o.flags&128)===0&&(typeof x.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(cn===null||!cn.has(v)))){o.flags|=65536,t&=-t,o.lanes|=t;var S=xx(o,i,t);Sh(o,S);break e}}o=o.return}while(o!==null)}Ox(r)}catch(y){t=y,Ge===r&&r!==null&&(Ge=r=r.return);continue}break}while(!0)}function Ax(){var e=Qi.current;return Qi.current=Ki,e===null?Ki:e}function Bc(){(Je===0||Je===3||Je===2)&&(Je=4),rt===null||(Un&268435455)===0&&(dl&268435455)===0||rn(rt,at)}function Zi(e,t){var r=he;he|=2;var n=Ax();(rt!==e||at!==t)&&(Tr=null,Dn(e,t));do try{n1();break}catch(a){Tx(e,a)}while(!0);if(wc(),he=r,Qi.current=n,Ge!==null)throw Error(P(261));return rt=null,at=0,Je}function n1(){for(;Ge!==null;)Dx(Ge)}function a1(){for(;Ge!==null&&!Pb();)Dx(Ge)}function Dx(e){var t=Bx(e.alternate,e,Ot);e.memoizedProps=e.pendingProps,t===null?Ox(e):Ge=t,Tc.current=null}function Ox(e){var t=e;do{var r=t.alternate;if(e=t.return,(t.flags&32768)===0){if(r=QS(r,t,Ot),r!==null){Ge=r;return}}else{if(r=YS(r,t),r!==null){r.flags&=32767,Ge=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Je=6,Ge=null;return}}if(t=t.sibling,t!==null){Ge=t;return}Ge=t=e}while(t!==null);Je===0&&(Je=5)}function Pn(e,t,r){var n=Le,a=Kt.transition;try{Kt.transition=null,Le=1,o1(e,t,r,n)}finally{Kt.transition=a,Le=n}return null}function o1(e,t,r,n){do Na();while(an!==null);if((he&6)!==0)throw Error(P(327));r=e.finishedWork;var a=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(P(177));e.callbackNode=null,e.callbackPriority=0;var o=r.lanes|r.childLanes;if(qb(e,o),e===rt&&(Ge=rt=null,at=0),(r.subtreeFlags&2064)===0&&(r.flags&2064)===0||wi||(wi=!0,zx(Ai,function(){return Na(),null})),o=(r.flags&15990)!==0,(r.subtreeFlags&15990)!==0||o){o=Kt.transition,Kt.transition=null;var s=Le;Le=1;var i=he;he|=4,Tc.current=null,ZS(e,r),Ex(r,e),_S(Ed),Oi=!!Rd,Ed=Rd=null,e.current=r,e1(r,e,a),Nb(),he=i,Le=s,Kt.transition=o}else e.current=r;if(wi&&(wi=!1,an=e,Ji=a),o=e.pendingLanes,o===0&&(cn=null),Db(r.stateNode,n),Pt(e,Ve()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)a=t[r],n(a.value,{componentStack:a.stack,digest:a.digest});if(Yi)throw Yi=!1,e=Qd,Qd=null,e;return(Ji&1)!==0&&e.tag!==0&&Na(),o=e.pendingLanes,(o&1)!==0?e===Yd?Po++:(Po=0,Yd=e):Po=0,vn(),null}function Na(){if(an!==null){var e=gg(Ji),t=Kt.transition,r=Le;try{if(Kt.transition=null,Le=16>e?16:e,an===null)var n=!1;else{if(e=an,an=null,Ji=0,(he&6)!==0)throw Error(P(331));var a=he;for(he|=4,B=e.current;B!==null;){var o=B,s=o.child;if((B.flags&16)!==0){var i=o.deletions;if(i!==null){for(var l=0;l<i.length;l++){var d=i[l];for(B=d;B!==null;){var u=B;switch(u.tag){case 0:case 11:case 15:Ro(8,u,o)}var p=u.child;if(p!==null)p.return=u,B=p;else for(;B!==null;){u=B;var c=u.sibling,f=u.return;if(_x(u),u===d){B=null;break}if(c!==null){c.return=f,B=c;break}B=f}}}var h=o.alternate;if(h!==null){var m=h.child;if(m!==null){h.child=null;do{var b=m.sibling;m.sibling=null,m=b}while(m!==null)}}B=o}}if((o.subtreeFlags&2064)!==0&&s!==null)s.return=o,B=s;else e:for(;B!==null;){if(o=B,(o.flags&2048)!==0)switch(o.tag){case 0:case 11:case 15:Ro(9,o,o.return)}var g=o.sibling;if(g!==null){g.return=o.return,B=g;break e}B=o.return}}var x=e.current;for(B=x;B!==null;){s=B;var v=s.child;if((s.subtreeFlags&2064)!==0&&v!==null)v.return=s,B=v;else e:for(s=x;B!==null;){if(i=B,(i.flags&2048)!==0)try{switch(i.tag){case 0:case 11:case 15:ul(9,i)}}catch(y){He(i,i.return,y)}if(i===s){B=null;break e}var S=i.sibling;if(S!==null){S.return=i.return,B=S;break e}B=i.return}}if(he=a,vn(),_r&&typeof _r.onPostCommitFiberRoot=="function")try{_r.onPostCommitFiberRoot(tl,e)}catch{}n=!0}return n}finally{Le=r,Kt.transition=t}}return!1}function Hh(e,t,r){t=Ba(r,t),t=gx(e,t,1),e=dn(e,t,1),t=St(),e!==null&&(Ko(e,1,t),Pt(e,t))}function He(e,t,r){if(e.tag===3)Hh(e,e,r);else for(;t!==null;){if(t.tag===3){Hh(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(cn===null||!cn.has(n))){e=Ba(r,e),e=xx(t,e,1),t=dn(t,e,1),e=St(),t!==null&&(Ko(t,1,e),Pt(t,e));break}}t=t.return}}function s1(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=St(),e.pingedLanes|=e.suspendedLanes&r,rt===e&&(at&r)===r&&(Je===4||Je===3&&(at&130023424)===at&&500>Ve()-Dc?Dn(e,0):Ac|=r),Pt(e,t)}function Fx(e,t){t===0&&((e.mode&1)===0?t=1:(t=si,si<<=1,(si&130023424)===0&&(si=4194304)));var r=St();e=Ur(e,t),e!==null&&(Ko(e,t,r),Pt(e,r))}function i1(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),Fx(e,r)}function l1(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,a=e.memoizedState;a!==null&&(r=a.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(P(314))}n!==null&&n.delete(t),Fx(e,r)}var Bx;Bx=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Rt.current)Mt=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return Mt=!1,KS(e,t,r);Mt=(e.flags&131072)!==0}else Mt=!1,Fe&&(t.flags&1048576)!==0&&$g(t,Hi,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;_i(e,t),e=t.pendingProps;var a=Aa(t,mt.current);Pa(t,r),a=Mc(null,t,n,e,a,r);var o=Rc();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Et(n)?(o=!0,qi(t)):o=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,Cc(t),a.updater=ll,t.stateNode=a,a._reactInternals=t,zd(t,n,e,r),t=$d(null,t,n,!0,o,r)):(t.tag=0,Fe&&o&&gc(t),bt(null,t,a,r),t=t.child),t;case 16:n=t.elementType;e:{switch(_i(e,t),e=t.pendingProps,a=n._init,n=a(n._payload),t.type=n,a=t.tag=d1(n),e=ur(n,e),a){case 0:t=qd(null,t,n,e,r);break e;case 1:t=Th(null,t,n,e,r);break e;case 11:t=Ph(null,t,n,e,r);break e;case 14:t=Nh(null,t,n,ur(n.type,e),r);break e}throw Error(P(306,n,""))}return t;case 0:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:ur(n,a),qd(e,t,n,a,r);case 1:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:ur(n,a),Th(e,t,n,a,r);case 3:e:{if(bx(t),e===null)throw Error(P(387));n=t.pendingProps,o=t.memoizedState,a=o.element,Xg(e,t),Vi(t,n,null,r);var s=t.memoizedState;if(n=s.element,o.isDehydrated)if(o={element:n,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){a=Ba(Error(P(423)),t),t=Ah(e,t,n,r,a);break e}else if(n!==a){a=Ba(Error(P(424)),t),t=Ah(e,t,n,r,a);break e}else for(Ft=un(t.stateNode.containerInfo.firstChild),Bt=t,Fe=!0,cr=null,r=Vg(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Da(),n===a){t=qr(e,t,r);break e}bt(e,t,n,r)}t=t.child}return t;case 5:return Kg(t),e===null&&Od(t),n=t.type,a=t.pendingProps,o=e!==null?e.memoizedProps:null,s=a.children,Pd(n,a)?s=null:o!==null&&Pd(n,o)&&(t.flags|=32),wx(e,t),bt(e,t,s,r),t.child;case 6:return e===null&&Od(t),null;case 13:return Sx(e,t,r);case 4:return Lc(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Oa(t,null,n,r):bt(e,t,n,r),t.child;case 11:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:ur(n,a),Ph(e,t,n,a,r);case 7:return bt(e,t,t.pendingProps,r),t.child;case 8:return bt(e,t,t.pendingProps.children,r),t.child;case 12:return bt(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,a=t.pendingProps,o=t.memoizedProps,s=a.value,Pe(Wi,n._currentValue),n._currentValue=s,o!==null)if(mr(o.value,s)){if(o.children===a.children&&!Rt.current){t=qr(e,t,r);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var i=o.dependencies;if(i!==null){s=o.child;for(var l=i.firstContext;l!==null;){if(l.context===n){if(o.tag===1){l=Fr(-1,r&-r),l.tag=2;var d=o.updateQueue;if(d!==null){d=d.shared;var u=d.pending;u===null?l.next=l:(l.next=u.next,u.next=l),d.pending=l}}o.lanes|=r,l=o.alternate,l!==null&&(l.lanes|=r),Fd(o.return,r,t),i.lanes|=r;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(P(341));s.lanes|=r,i=s.alternate,i!==null&&(i.lanes|=r),Fd(s,r,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}bt(e,t,a.children,r),t=t.child}return t;case 9:return a=t.type,n=t.pendingProps.children,Pa(t,r),a=Qt(a),n=n(a),t.flags|=1,bt(e,t,n,r),t.child;case 14:return n=t.type,a=ur(n,t.pendingProps),a=ur(n.type,a),Nh(e,t,n,a,r);case 15:return vx(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:ur(n,a),_i(e,t),t.tag=1,Et(n)?(e=!0,qi(t)):e=!1,Pa(t,r),hx(t,n,a),zd(t,n,a,r),$d(null,t,n,!0,e,r);case 19:return Cx(e,t,r);case 22:return yx(e,t,r)}throw Error(P(156,t.tag))};function zx(e,t){return fg(e,t)}function u1(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Xt(e,t,r,n){return new u1(e,t,r,n)}function zc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function d1(e){if(typeof e=="function")return zc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ac)return 11;if(e===oc)return 14}return 2}function pn(e,t){var r=e.alternate;return r===null?(r=Xt(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Ei(e,t,r,n,a,o){var s=2;if(n=e,typeof e=="function")zc(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case ga:return On(r.children,a,o,t);case nc:s=8,a|=8;break;case ud:return e=Xt(12,r,t,a|2),e.elementType=ud,e.lanes=o,e;case dd:return e=Xt(13,r,t,a),e.elementType=dd,e.lanes=o,e;case cd:return e=Xt(19,r,t,a),e.elementType=cd,e.lanes=o,e;case Kh:return cl(r,a,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Gh:s=10;break e;case Xh:s=9;break e;case ac:s=11;break e;case oc:s=14;break e;case Zr:s=16,n=null;break e}throw Error(P(130,e==null?e:typeof e,""))}return t=Xt(s,r,t,a),t.elementType=e,t.type=n,t.lanes=o,t}function On(e,t,r,n){return e=Xt(7,e,n,t),e.lanes=r,e}function cl(e,t,r,n){return e=Xt(22,e,n,t),e.elementType=Kh,e.lanes=r,e.stateNode={isHidden:!1},e}function sd(e,t,r){return e=Xt(6,e,null,t),e.lanes=r,e}function id(e,t,r){return t=Xt(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function c1(e,t,r,n,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Wu(0),this.expirationTimes=Wu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wu(0),this.identifierPrefix=n,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function Uc(e,t,r,n,a,o,s,i,l){return e=new c1(e,t,r,i,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Xt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Cc(o),e}function f1(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ha,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function Ux(e){if(!e)return hn;e=e._reactInternals;e:{if(Hn(e)!==e||e.tag!==1)throw Error(P(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Et(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(P(171))}if(e.tag===1){var r=e.type;if(Et(r))return Ug(e,r,t)}return t}function qx(e,t,r,n,a,o,s,i,l){return e=Uc(r,n,!0,e,a,o,s,i,l),e.context=Ux(null),r=e.current,n=St(),a=fn(r),o=Fr(n,a),o.callback=t??null,dn(r,o,a),e.current.lanes=a,Ko(e,a,n),Pt(e,n),e}function fl(e,t,r,n){var a=t.current,o=St(),s=fn(a);return r=Ux(r),t.context===null?t.context=r:t.pendingContext=r,t=Fr(o,s),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=dn(a,t,s),e!==null&&(pr(e,a,s,o),Li(e,a,s)),s}function el(e){return e=e.current,e.child?(e.child.tag===5,e.child.stateNode):null}function Wh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function qc(e,t){Wh(e,t),(e=e.alternate)&&Wh(e,t)}function p1(){return null}var $x=typeof reportError=="function"?reportError:function(e){console.error(e)};function $c(e){this._internalRoot=e}pl.prototype.render=$c.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(P(409));fl(e,t,null,null)};pl.prototype.unmount=$c.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;qn(function(){fl(null,e,null,null)}),t[zr]=null}};function pl(e){this._internalRoot=e}pl.prototype.unstable_scheduleHydration=function(e){if(e){var t=yg();e={blockedOn:null,target:e,priority:t};for(var r=0;r<tn.length&&t!==0&&t<tn[r].priority;r++);tn.splice(r,0,e),r===0&&bg(e)}};function Hc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ml(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function jh(){}function m1(e,t,r,n,a){if(a){if(typeof n=="function"){var o=n;n=function(){var d=el(s);o.call(d)}}var s=qx(t,n,e,0,null,!1,!1,"",jh);return e._reactRootContainer=s,e[zr]=s.current,Uo(e.nodeType===8?e.parentNode:e),qn(),s}for(;a=e.lastChild;)e.removeChild(a);if(typeof n=="function"){var i=n;n=function(){var d=el(l);i.call(d)}}var l=Uc(e,0,!1,null,null,!1,!1,"",jh);return e._reactRootContainer=l,e[zr]=l.current,Uo(e.nodeType===8?e.parentNode:e),qn(function(){fl(t,l,r,n)}),l}function hl(e,t,r,n,a){var o=r._reactRootContainer;if(o){var s=o;if(typeof a=="function"){var i=a;a=function(){var l=el(s);i.call(l)}}fl(t,s,e,a)}else s=m1(r,t,e,a,n);return el(s)}xg=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=bo(t.pendingLanes);r!==0&&(lc(t,r|1),Pt(t,Ve()),(he&6)===0&&(za=Ve()+500,vn()))}break;case 13:qn(function(){var n=Ur(e,1);if(n!==null){var a=St();pr(n,e,1,a)}}),qc(e,1)}};uc=function(e){if(e.tag===13){var t=Ur(e,134217728);if(t!==null){var r=St();pr(t,e,134217728,r)}qc(e,134217728)}};vg=function(e){if(e.tag===13){var t=fn(e),r=Ur(e,t);if(r!==null){var n=St();pr(r,e,t,n)}qc(e,t)}};yg=function(){return Le};wg=function(e,t){var r=Le;try{return Le=e,t()}finally{Le=r}};bd=function(e,t,r){switch(t){case"input":if(md(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var a=ol(n);if(!a)throw Error(P(90));Yh(n),md(n,a)}}}break;case"textarea":Zh(e,r);break;case"select":t=r.value,t!=null&&_a(e,!!r.multiple,t,!1)}};sg=Oc;ig=qn;var h1={usingClientEntryPoint:!1,Events:[Yo,wa,ol,ag,og,Oc]},xo={findFiberByHostInstance:Nn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},g1={bundleType:xo.bundleType,version:xo.version,rendererPackageName:xo.rendererPackageName,rendererConfig:xo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:$r.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=dg(e),e===null?null:e.stateNode},findFiberByHostInstance:xo.findFiberByHostInstance||p1,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(vo=__REACT_DEVTOOLS_GLOBAL_HOOK__,!vo.isDisabled&&vo.supportsFiber))try{tl=vo.inject(g1),_r=vo}catch{}var vo;qt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=h1;qt.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Hc(t))throw Error(P(200));return f1(e,t,null,r)};qt.createRoot=function(e,t){if(!Hc(e))throw Error(P(299));var r=!1,n="",a=$x;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=Uc(e,1,!1,null,null,r,!1,n,a),e[zr]=t.current,Uo(e.nodeType===8?e.parentNode:e),new $c(t)};qt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(P(188)):(e=Object.keys(e).join(","),Error(P(268,e)));return e=dg(t),e=e===null?null:e.stateNode,e};qt.flushSync=function(e){return qn(e)};qt.hydrate=function(e,t,r){if(!ml(t))throw Error(P(200));return hl(null,e,t,!0,r)};qt.hydrateRoot=function(e,t,r){if(!Hc(e))throw Error(P(405));var n=r!=null&&r.hydratedSources||null,a=!1,o="",s=$x;if(r!=null&&(r.unstable_strictMode===!0&&(a=!0),r.identifierPrefix!==void 0&&(o=r.identifierPrefix),r.onRecoverableError!==void 0&&(s=r.onRecoverableError)),t=qx(t,null,e,1,r??null,a,!1,o,s),e[zr]=t.current,Uo(e),n)for(e=0;e<n.length;e++)r=n[e],a=r._getVersion,a=a(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,a]:t.mutableSourceEagerHydrationData.push(r,a);return new pl(t)};qt.render=function(e,t,r){if(!ml(t))throw Error(P(200));return hl(null,e,t,!1,r)};qt.unmountComponentAtNode=function(e){if(!ml(e))throw Error(P(40));return e._reactRootContainer?(qn(function(){hl(null,null,e,!1,function(){e._reactRootContainer=null,e[zr]=null})}),!0):!1};qt.unstable_batchedUpdates=Oc;qt.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!ml(r))throw Error(P(200));if(e==null||e._reactInternals===void 0)throw Error(P(38));return hl(e,t,r,!1,n)};qt.version="18.3.1-next-f1338f8080-20240426"});var Vx=Nr((D_,jx)=>{"use strict";function Wx(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Wx)}catch(e){console.error(e)}}Wx(),jx.exports=Hx()});var Xx=Nr(Wc=>{"use strict";var Gx=Vx();Wc.createRoot=Gx.createRoot,Wc.hydrateRoot=Gx.hydrateRoot;var O_});var Qx=Nr(gl=>{"use strict";var x1=fe(),v1=Symbol.for("react.element"),y1=Symbol.for("react.fragment"),w1=Object.prototype.hasOwnProperty,b1=x1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,S1={key:!0,ref:!0,__self:!0,__source:!0};function Kx(e,t,r){var n,a={},o=null,s=null;r!==void 0&&(o=""+r),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(n in t)w1.call(t,n)&&!S1.hasOwnProperty(n)&&(a[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)a[n]===void 0&&(a[n]=t[n]);return{$$typeof:v1,type:e,key:o,ref:s,props:a,_owner:b1.current}}gl.Fragment=y1;gl.jsx=Kx;gl.jsxs=Kx});var le=Nr((z_,Yx)=>{"use strict";Yx.exports=Qx()});var M_={};J0(M_,{default:()=>__,mount:()=>B0});var O0=F(fe(),1),F0=F(Xx(),1);var Qr=F(fe(),1);var G=F(fe(),1);var Nt=F(fe(),1),de=F(le(),1),xl=(...e)=>e.filter(Boolean).join(" ");function ht({label:e,pressed:t,className:r,children:n,...a}){return(0,de.jsx)(jc,{content:e,children:(0,de.jsx)("button",{className:xl("lum-iconbtn",r),"aria-label":e,"aria-pressed":t,...a,children:n})})}function Wn({tone:e="default",children:t,className:r}){return(0,de.jsx)("span",{className:xl("lum-badge",e!=="default"&&`lum-badge--${e}`,r),children:t})}function jc({content:e,children:t}){return e?(0,de.jsxs)("span",{className:"lum-tip",children:[t,(0,de.jsx)("span",{className:"lum-tip__bubble",role:"tooltip",children:e})]}):(0,de.jsx)(de.Fragment,{children:t})}function Vc({open:e,onClose:t,title:r,children:n}){return(0,Nt.useEffect)(()=>{if(!e)return;let a=o=>o.key==="Escape"&&t();return window.addEventListener("keydown",a),()=>window.removeEventListener("keydown",a)},[e,t]),e?(0,de.jsxs)(de.Fragment,{children:[(0,de.jsx)("div",{className:"lum-drawer__scrim",onClick:t}),(0,de.jsxs)("aside",{className:"lum-drawer",role:"dialog","aria-modal":"true","aria-label":typeof r=="string"?r:"Details",children:[(0,de.jsxs)("div",{className:"lum-drawer__header",children:[(0,de.jsx)("strong",{children:r}),(0,de.jsx)(ht,{label:"Close",onClick:t,children:"\u2715"})]}),(0,de.jsx)("div",{className:"lum-drawer__body",children:n})]})]}):null}function Gc({width:e,height:t=14,className:r,radius:n}){return(0,de.jsx)("div",{className:xl("lum-skeleton",r),style:{width:e??"100%",height:t,borderRadius:n},"aria-hidden":!0})}var C1=(0,Nt.createContext)(()=>{});function Jx({children:e}){let[t,r]=(0,Nt.useState)([]),n=(0,Nt.useCallback)((a,o="default")=>{let s=Date.now()+Math.floor(performance.now());r(i=>[...i,{id:s,text:a,tone:o}]),setTimeout(()=>r(i=>i.filter(l=>l.id!==s)),3200)},[]);return(0,de.jsxs)(C1.Provider,{value:n,children:[e,(0,de.jsx)("div",{className:"lum-toasts",role:"status","aria-live":"polite",children:t.map(a=>(0,de.jsx)("div",{className:xl("lum-toast",a.tone&&a.tone!=="default"&&`lum-toast--${a.tone}`),children:a.text},a.id))})]})}function Zx({trigger:e,options:t,value:r,onSelect:n,placement:a="bottom"}){let[o,s]=(0,Nt.useState)(!1),i=(0,Nt.useRef)(null);return(0,Nt.useEffect)(()=>{if(!o)return;let l=u=>{i.current&&!i.current.contains(u.target)&&s(!1)},d=u=>u.key==="Escape"&&s(!1);return document.addEventListener("mousedown",l),document.addEventListener("keydown",d),()=>{document.removeEventListener("mousedown",l),document.removeEventListener("keydown",d)}},[o]),(0,de.jsxs)("div",{className:"lum-menu",ref:i,children:[(0,de.jsx)("span",{onClick:()=>s(l=>!l),children:e}),o&&(0,de.jsx)("div",{className:`lum-menu__list${a==="top"?" lum-menu__list--up":""}`,role:"menu",children:t.map(l=>(0,de.jsxs)("button",{role:"menuitemradio","aria-checked":r===l.value,className:"lum-menu__item",onClick:()=>{n(l.value),s(!1)},children:[l.label,r===l.value&&(0,de.jsx)("span",{"aria-hidden":!0,children:"\u2713"})]},String(l.value)))})]})}function Jt({title:e,children:t,icon:r,action:n}){return(0,de.jsxs)("div",{className:"lum-state",children:[r&&(0,de.jsx)("div",{className:"lum-state__icon",children:r}),(0,de.jsx)("div",{className:"lum-state__title",children:e}),t&&(0,de.jsx)("div",{children:t}),n]})}function ev({title:e,children:t,action:r}){return(0,de.jsxs)("div",{className:"lum-state lum-state--error",role:"alert",children:[(0,de.jsx)("div",{className:"lum-state__icon",children:"\u26A0"}),(0,de.jsx)("div",{className:"lum-state__title",children:e}),t&&(0,de.jsx)("div",{children:t}),r]})}var tv=e=>{let t,r=new Set,n=(d,u)=>{let p=typeof d=="function"?d(t):d;if(!Object.is(p,t)){let c=t;t=u??(typeof p!="object"||p===null)?p:Object.assign({},t,p),r.forEach(f=>f(t,c))}},a=()=>t,i={setState:n,getState:a,getInitialState:()=>l,subscribe:d=>(r.add(d),()=>r.delete(d))},l=t=e(n,a,i);return i},rv=(e=>e?tv(e):tv);var hu=F(fe(),1);var Zo=F(fe(),1);var L1=e=>e;function nv(e,t=L1){let r=Zo.default.useSyncExternalStore(e.subscribe,Zo.default.useCallback(()=>t(e.getState()),[e,t]),Zo.default.useCallback(()=>t(e.getInitialState()),[e,t]));return Zo.default.useDebugValue(r),r}var f0=F(le(),1),gu=F(fe(),1),m0=F(le(),1);var k1=Object.defineProperty,I1=(e,t,r)=>t in e?k1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,R=(e,t,r)=>I1(e,typeof t!="symbol"?t+"":t,r),av,_1=Object.defineProperty,M1=(e,t,r)=>t in e?_1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ov=(e,t,r)=>M1(e,typeof t!="symbol"?t+"":t,r),re=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(re||{}),sv={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},iv={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},vl={},Wy={},R1=()=>!!globalThis.Zone;function _p(e){if(vl[e])return vl[e];let t=globalThis[e],r=t.prototype,n=e in sv?sv[e]:void 0,a=!!(n&&n.every(i=>{var l,d;return!!((d=(l=Object.getOwnPropertyDescriptor(r,i))==null?void 0:l.get)!=null&&d.toString().includes("[native code]"))})),o=e in iv?iv[e]:void 0,s=!!(o&&o.every(i=>{var l;return typeof r[i]=="function"&&((l=r[i])==null?void 0:l.toString().includes("[native code]"))}));if(a&&s&&!R1())return vl[e]=t.prototype,t.prototype;try{let i=document.createElement("iframe");i.style.display="none",document.body.appendChild(i);let l=i.contentWindow;if(!l)return t.prototype;let d=l[e].prototype;if(!d)return i.remove(),r;let u=navigator.userAgent;return u.includes("Safari")&&!u.includes("Chrome")?(i.classList.add("rr-block"),i.setAttribute("__rrwebUntaintedMutationObserver",""),Wy[e]=()=>i.remove()):i.remove(),vl[e]=d}catch{return r}}var Xc={};function Vr(e,t,r){var n;let a=`${e}.${String(r)}`;if(Xc[a])return Xc[a].call(t);let o=_p(e),s=(n=Object.getOwnPropertyDescriptor(o,r))==null?void 0:n.get;return s?(Xc[a]=s,s.call(t)):t[r]}var Kc={};function jy(e,t,r){let n=`${e}.${String(r)}`;if(Kc[n])return Kc[n].bind(t);let o=_p(e)[r];return typeof o!="function"?t[r]:(Kc[n]=o,o.bind(t))}function E1(e){return Vr("Node",e,"ownerDocument")}function P1(e){return Vr("Node",e,"childNodes")}function N1(e){return Vr("Node",e,"parentNode")}function T1(e){return Vr("Node",e,"parentElement")}function A1(e){return Vr("Node",e,"textContent")}function D1(e,t){return jy("Node",e,"contains")(t)}function O1(e){return jy("Node",e,"getRootNode")()}function F1(e){return!e||!("host"in e)?null:Vr("ShadowRoot",e,"host")}function B1(e){return e.styleSheets}function z1(e){return!e||!("shadowRoot"in e)?null:Vr("Element",e,"shadowRoot")}function U1(e,t){return Vr("Element",e,"querySelector")(t)}function q1(e,t){return Vr("Element",e,"querySelectorAll")(t)}function $1(){return[_p("MutationObserver").constructor,Wy.MutationObserver??(()=>{})]}var Vy=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Vy=()=>new Date().getTime());function H1(e,t,r){try{if(!(t in e))return()=>{};let n=e[t],a=r(n);return typeof a=="function"&&(a.prototype=a.prototype||{},Object.defineProperties(a,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=a,()=>{e[t]=n}}catch{return()=>{}}}var gt={ownerDocument:E1,childNodes:P1,parentNode:N1,parentElement:T1,textContent:A1,contains:D1,getRootNode:O1,host:F1,styleSheets:B1,shadowRoot:z1,querySelector:U1,querySelectorAll:q1,nowTimestamp:Vy,mutationObserverCtor:$1,patch:H1};function Mp(e){return e.nodeType===e.ELEMENT_NODE}function ns(e){let t=e&&"host"in e&&"mode"in e&>.host(e)||null;return!!(t&&"shadowRoot"in t&>.shadowRoot(t)===e)}function as(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function W1(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function j1(e){let{cssText:t}=e;if(t.split('"').length<3)return t;let r=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}function np(e){try{let t=e.rules||e.cssRules;if(!t)return null;let r=e.href;!r&&e.ownerNode&&(r=e.ownerNode.baseURI);let n=Array.from(t,a=>Gy(a,r)).join("");return W1(n)}catch{return null}}function Gy(e,t){if(G1(e)){let r;try{r=np(e.styleSheet)||j1(e)}catch{r=e.cssText}return e.styleSheet.href?Nl(r,e.styleSheet.href):r}else{let r=e.cssText;return X1(e)&&e.selectorText.includes(":")&&(r=V1(r)),t?Nl(r,t):r}}function V1(e){let t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function G1(e){return"styleSheet"in e}function X1(e){return"selectorText"in e}var ls=class{constructor(){ov(this,"idNodeMap",new Map),ov(this,"nodeMetaMap",new WeakMap)}getId(t){var r;return t?((r=this.getMeta(t))==null?void 0:r.id)??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){let r=this.getId(t);this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(n=>this.removeNodeFromMap(n))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){let n=r.id;this.idNodeMap.set(n,t),this.nodeMetaMap.set(t,r)}replace(t,r){let n=this.getNode(t);if(n){let a=this.nodeMetaMap.get(n);a&&this.nodeMetaMap.set(r,a)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function Xy(){return new ls}function El({element:e,maskInputOptions:t,tagName:r,type:n,value:a,maskInputFn:o}){let s=a||"",i=n&&Sn(n);return(t[r.toLowerCase()]||i&&t[i])&&(o?s=o(s,e):s="*".repeat(s.length)),s}function Sn(e){return e.toLowerCase()}var lv="__rrweb_original__";function K1(e){let t=e.getContext("2d");if(!t)return!0;let r=50;for(let n=0;n<e.width;n+=r)for(let a=0;a<e.height;a+=r){let o=t.getImageData,s=lv in o?o[lv]:o;if(new Uint32Array(s.call(t,n,a,Math.min(r,e.width-n),Math.min(r,e.height-a)).data.buffer).some(l=>l!==0))return!1}return!0}function Q1(e,t){return!e||!t||e.type!==t.type?!1:e.type===re.Document?e.compatMode===t.compatMode:e.type===re.DocumentType?e.name===t.name&&e.publicId===t.publicId&&e.systemId===t.systemId:e.type===re.Comment||e.type===re.Text||e.type===re.CDATA?e.textContent===t.textContent:e.type===re.Element?e.tagName===t.tagName&&JSON.stringify(e.attributes)===JSON.stringify(t.attributes)&&e.isSVG===t.isSVG&&e.needBlock===t.needBlock:!1}function Pl(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Sn(t):null}function Rp(e,t){let r;try{r=new URL(e,t??window.location.href)}catch{return null}let n=/\.([0-9a-z]+)(?:$)/i,a=r.pathname.match(n);return a?.[1]??null}function Y1(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}var J1=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Z1=/^(?:[a-z+]+:)?\/\//i,eC=/^www\..*/i,tC=/^(data:)([^,]*),(.*)/i;function Nl(e,t){return(e||"").replace(J1,(r,n,a,o,s,i)=>{let l=a||s||i,d=n||o||"";if(!l)return r;if(Z1.test(l)||eC.test(l))return`url(${d}${l}${d})`;if(tC.test(l))return`url(${d}${l}${d})`;if(l[0]==="/")return`url(${d}${Y1(t)+l}${d})`;let u=t.split("/"),p=l.split("/");u.pop();for(let c of p)c!=="."&&(c===".."?u.pop():u.push(c));return`url(${d}${u.join("/")}${d})`})}function yl(e,t=!1){return t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function rC(e,t,r=!1){let n=Array.from(t.childNodes),a=[],o=0;if(n.length>1&&e&&typeof e=="string"){let s=yl(e,r),i=s.length/e.length;for(let l=1;l<n.length;l++)if(n[l].textContent&&typeof n[l].textContent=="string"){let d=yl(n[l].textContent,r),u=100,p=3;for(;p<d.length&&(d[p].match(/[a-zA-Z0-9]/)||d.indexOf(d.substring(0,p),1)!==-1);p++);for(;p<d.length;p++){let c=d.substring(0,p),f=s.split(c),h=-1;if(f.length===2)h=f[0].length;else if(f.length>2&&f[0]===""&&n[l-1].textContent!=="")h=s.indexOf(c,1);else if(f.length===1){if(c=c.substring(0,c.length-1),f=s.split(c),f.length<=1)return a.push(e),a;p=u+1}else p===d.length-1&&(h=s.indexOf(c));if(f.length>=2&&p>u){let m=n[l-1].textContent;if(m&&typeof m=="string"){let b=yl(m).length;h=s.indexOf(c,b)}h===-1&&(h=f[0].length)}if(h!==-1){let m=Math.floor(h/i);for(;m>0&&m<e.length;){if(o+=1,o>50*n.length)return a.push(e),a;let b=yl(e.substring(0,m),r);if(b.length===h){a.push(e.substring(0,m)),e=e.substring(m),s=s.substring(h);break}else b.length<h?m+=Math.max(1,Math.floor((h-b.length)/i)):m-=Math.max(1,Math.floor((b.length-h)*i))}break}}}}return a.push(e),a}function nC(e,t){return rC(e,t).join("/* rr_split */")}var aC=1,oC=new RegExp("[^a-z0-9-_:]"),us=-2;function Ky(){return aC++}function sC(e){if(e instanceof HTMLFormElement)return"form";let t=Sn(e.tagName);return oC.test(t)?"div":t}var $a,uv,iC=/^[^ \t\n\r\u000c]+/,lC=/^[, \t\n\r\u000c]+/;function uC(e,t){if(t.trim()==="")return t;let r=0;function n(o){let s,i=o.exec(t.substring(r));return i?(s=i[0],r+=s.length,s):""}let a=[];for(;n(lC),!(r>=t.length);){let o=n(iC);if(o.slice(-1)===",")o=Va(e,o.substring(0,o.length-1)),a.push(o);else{let s="";o=Va(e,o);let i=!1;for(;;){let l=t.charAt(r);if(l===""){a.push((o+s).trim());break}else if(i)l===")"&&(i=!1);else if(l===","){r+=1,a.push((o+s).trim());break}else l==="("&&(i=!0);s+=l,r+=1}}}return a.join(", ")}var dv=new WeakMap;function Va(e,t){return!t||t.trim()===""?t:Ep(e,t)}function dC(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function Ep(e,t){let r=dv.get(e);if(r||(r=e.createElement("a"),dv.set(e,r)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return r.setAttribute("href",t),r.href}function Qy(e,t,r,n){return n&&(r==="src"||r==="href"&&!(t==="use"&&n[0]==="#")||r==="xlink:href"&&n[0]!=="#"||r==="background"&&["table","td","th"].includes(t)?Va(e,n):r==="srcset"?uC(e,n):r==="style"?Nl(n,Ep(e)):t==="object"&&r==="data"?Va(e,n):n)}function Yy(e,t,r){return["video","audio"].includes(e)&&t==="autoplay"}function cC(e,t,r){try{if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){let a=e.classList[n];if(t.test(a))return!0}if(r)return e.matches(r)}catch{}return!1}function Tl(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return r?Tl(gt.parentNode(e),t,r):!1;for(let n=e.classList.length;n--;){let a=e.classList[n];if(t.test(a))return!0}return r?Tl(gt.parentNode(e),t,r):!1}function Jy(e,t,r,n){let a;if(Mp(e)){if(a=e,!gt.childNodes(a).length)return!1}else{if(gt.parentElement(e)===null)return!1;a=gt.parentElement(e)}try{if(typeof t=="string"){if(n){if(a.closest(`.${t}`))return!0}else if(a.classList.contains(t))return!0}else if(Tl(a,t,n))return!0;if(r){if(n){if(a.closest(r))return!0}else if(a.matches(r))return!0}}catch{}return!1}function fC(e,t,r){let n=e.contentWindow;if(!n)return;let a=!1,o;try{o=n.document.readyState}catch{return}if(o!=="complete"){let i=setTimeout(()=>{a||(t(),a=!0)},r);e.addEventListener("load",()=>{clearTimeout(i),a=!0,t()});return}let s="about:blank";if(n.location.href!==s||e.src===s||e.src==="")return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function pC(e,t,r){let n=!1,a;try{a=e.sheet}catch{return}if(a)return;let o=setTimeout(()=>{n||(t(),n=!0)},r);e.addEventListener("load",()=>{clearTimeout(o),n=!0,t()})}function mC(e,t){let{doc:r,mirror:n,blockClass:a,blockSelector:o,needsMask:s,inlineStylesheet:i,maskInputOptions:l={},maskTextFn:d,maskInputFn:u,dataURLOptions:p={},inlineImages:c,recordCanvas:f,keepIframeSrcFn:h,newlyAddedElement:m=!1,cssCaptured:b=!1}=t,g=hC(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:re.Document,childNodes:[],compatMode:e.compatMode}:{type:re.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:re.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:g};case e.ELEMENT_NODE:return xC(e,{doc:r,blockClass:a,blockSelector:o,inlineStylesheet:i,maskInputOptions:l,maskInputFn:u,dataURLOptions:p,inlineImages:c,recordCanvas:f,keepIframeSrcFn:h,newlyAddedElement:m,rootId:g});case e.TEXT_NODE:return gC(e,{doc:r,needsMask:s,maskTextFn:d,rootId:g,cssCaptured:b});case e.CDATA_SECTION_NODE:return{type:re.CDATA,textContent:"",rootId:g};case e.COMMENT_NODE:return{type:re.Comment,textContent:gt.textContent(e)||"",rootId:g};default:return!1}}function hC(e,t){if(!t.hasNode(e))return;let r=t.getId(e);return r===1?void 0:r}function gC(e,t){let{needsMask:r,maskTextFn:n,rootId:a,cssCaptured:o}=t,s=gt.parentNode(e),i=s&&s.tagName,l="",d=i==="STYLE"?!0:void 0,u=i==="SCRIPT"?!0:void 0;return u?l="SCRIPT_PLACEHOLDER":o||(l=gt.textContent(e),d&&l&&(l=Nl(l,Ep(t.doc)))),!d&&!u&&l&&r&&(l=n?n(l,gt.parentElement(e)):l.replace(/[\S]/g,"*")),{type:re.Text,textContent:l||"",rootId:a}}function xC(e,t){let{doc:r,blockClass:n,blockSelector:a,inlineStylesheet:o,maskInputOptions:s={},maskInputFn:i,dataURLOptions:l={},inlineImages:d,recordCanvas:u,keepIframeSrcFn:p,newlyAddedElement:c=!1,rootId:f}=t,h=cC(e,n,a),m=sC(e),b={},g=e.attributes.length;for(let v=0;v<g;v++){let S=e.attributes[v];Yy(m,S.name,S.value)||(b[S.name]=Qy(r,m,Sn(S.name),S.value))}if(m==="link"&&o){let v=Array.from(r.styleSheets).find(y=>y.href===e.href),S=null;v&&(S=np(v)),S&&(delete b.rel,delete b.href,b._cssText=S)}if(m==="style"&&e.sheet){let v=np(e.sheet);v&&(e.childNodes.length>1&&(v=nC(v,e)),b._cssText=v)}if(["input","textarea","select"].includes(m)){let v=e.value,S=e.checked;b.type!=="radio"&&b.type!=="checkbox"&&b.type!=="submit"&&b.type!=="button"&&v?b.value=El({element:e,type:Pl(e),tagName:m,value:v,maskInputOptions:s,maskInputFn:i}):S&&(b.checked=S)}if(m==="option"&&(e.selected&&!s.select?b.selected=!0:delete b.selected),m==="dialog"&&e.open&&(b.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),m==="canvas"&&u){if(e.__context==="2d")K1(e)||(b.rr_dataURL=e.toDataURL(l.type,l.quality));else if(!("__context"in e)){let v=e.toDataURL(l.type,l.quality),S=r.createElement("canvas");S.width=e.width,S.height=e.height;let y=S.toDataURL(l.type,l.quality);v!==y&&(b.rr_dataURL=v)}}if(m==="img"&&d){$a||($a=r.createElement("canvas"),uv=$a.getContext("2d"));let v=e,S=v.currentSrc||v.getAttribute("src")||"<unknown-src>",y=v.crossOrigin,w=()=>{v.removeEventListener("load",w);try{$a.width=v.naturalWidth,$a.height=v.naturalHeight,uv.drawImage(v,0,0),b.rr_dataURL=$a.toDataURL(l.type,l.quality)}catch(L){if(v.crossOrigin!=="anonymous"){v.crossOrigin="anonymous",v.complete&&v.naturalWidth!==0?w():v.addEventListener("load",w);return}else console.warn(`Cannot inline img src=${S}! Error: ${L}`)}v.crossOrigin==="anonymous"&&(y?b.crossOrigin=y:v.removeAttribute("crossorigin"))};v.complete&&v.naturalWidth!==0?w():v.addEventListener("load",w)}if(["audio","video"].includes(m)){let v=b;v.rr_mediaState=e.paused?"paused":"played",v.rr_mediaCurrentTime=e.currentTime,v.rr_mediaPlaybackRate=e.playbackRate,v.rr_mediaMuted=e.muted,v.rr_mediaLoop=e.loop,v.rr_mediaVolume=e.volume}if(c||(e.scrollLeft&&(b.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(b.rr_scrollTop=e.scrollTop)),h){let{width:v,height:S}=e.getBoundingClientRect();b={class:b.class,rr_width:`${v}px`,rr_height:`${S}px`}}m==="iframe"&&!p(b.src)&&(e.contentDocument||(b.rr_src=b.src),delete b.src);let x;try{customElements.get(m)&&(x=!0)}catch{}return{type:re.Element,tagName:m,attributes:b,childNodes:[],isSVG:dC(e)||void 0,needBlock:h,rootId:f,isCustom:x}}function Ne(e){return e==null?"":e.toLowerCase()}function Zy(e){return e===!0||e==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:e==="all",headMetaDescKeywords:e==="all",headTitleMutations:e==="all"}:e||{}}function vC(e,t){if(t.comment&&e.type===re.Comment)return!0;if(e.type===re.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"&&e.attributes.as==="script"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&Rp(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(Ne(e.attributes.name).match(/^msapplication-tile(image|color)$/)||Ne(e.attributes.name)==="application-name"||Ne(e.attributes.rel)==="icon"||Ne(e.attributes.rel)==="apple-touch-icon"||Ne(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&Ne(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Ne(e.attributes.property).match(/^(og|twitter|fb):/)||Ne(e.attributes.name).match(/^(og|twitter):/)||Ne(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(Ne(e.attributes.name)==="robots"||Ne(e.attributes.name)==="googlebot"||Ne(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(Ne(e.attributes.name)==="author"||Ne(e.attributes.name)==="generator"||Ne(e.attributes.name)==="framework"||Ne(e.attributes.name)==="publisher"||Ne(e.attributes.name)==="progid"||Ne(e.attributes.property).match(/^article:/)||Ne(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(Ne(e.attributes.name)==="google-site-verification"||Ne(e.attributes.name)==="yandex-verification"||Ne(e.attributes.name)==="csrf-token"||Ne(e.attributes.name)==="p:domain_verify"||Ne(e.attributes.name)==="verify-v1"||Ne(e.attributes.name)==="verification"||Ne(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Ga(e,t){let{doc:r,mirror:n,blockClass:a,blockSelector:o,maskTextClass:s,maskTextSelector:i,skipChild:l=!1,inlineStylesheet:d=!0,maskInputOptions:u={},maskTextFn:p,maskInputFn:c,slimDOMOptions:f,dataURLOptions:h={},inlineImages:m=!1,recordCanvas:b=!1,onSerialize:g,onIframeLoad:x,iframeLoadTimeout:v=5e3,onStylesheetLoad:S,stylesheetLoadTimeout:y=5e3,keepIframeSrcFn:w=()=>!1,newlyAddedElement:L=!1,cssCaptured:C=!1}=t,{needsMask:_}=t,{preserveWhiteSpace:I=!0}=t;_||(_=Jy(e,s,i,_===void 0));let D=mC(e,{doc:r,mirror:n,blockClass:a,blockSelector:o,needsMask:_,inlineStylesheet:d,maskInputOptions:u,maskTextFn:p,maskInputFn:c,dataURLOptions:h,inlineImages:m,recordCanvas:b,keepIframeSrcFn:w,newlyAddedElement:L,cssCaptured:C});if(!D)return console.warn(e,"not serialized"),null;let A;n.hasNode(e)?A=n.getId(e):vC(D,f)||!I&&D.type===re.Text&&!D.textContent.replace(/^\s+|\s+$/gm,"").length?A=us:A=Ky();let k=Object.assign(D,{id:A});if(n.add(e,k),A===us)return null;g&&g(e);let ke=!l;if(k.type===re.Element){ke=ke&&!k.needBlock,delete k.needBlock;let ue=gt.shadowRoot(e);ue&&as(ue)&&(k.isShadowHost=!0)}if((k.type===re.Document||k.type===re.Element)&&ke){f.headWhitespace&&k.type===re.Element&&k.tagName==="head"&&(I=!1);let ue={doc:r,mirror:n,blockClass:a,blockSelector:o,needsMask:_,maskTextClass:s,maskTextSelector:i,skipChild:l,inlineStylesheet:d,maskInputOptions:u,maskTextFn:p,maskInputFn:c,slimDOMOptions:f,dataURLOptions:h,inlineImages:m,recordCanvas:b,preserveWhiteSpace:I,onSerialize:g,onIframeLoad:x,iframeLoadTimeout:v,onStylesheetLoad:S,stylesheetLoadTimeout:y,keepIframeSrcFn:w,cssCaptured:!1};if(!(k.type===re.Element&&k.tagName==="textarea"&&k.attributes.value!==void 0)){k.type===re.Element&&k.attributes._cssText!==void 0&&typeof k.attributes._cssText=="string"&&(ue.cssCaptured=!0);for(let be of Array.from(gt.childNodes(e))){let ze=Ga(be,ue);ze&&k.childNodes.push(ze)}}let j=null;if(Mp(e)&&(j=gt.shadowRoot(e)))for(let be of Array.from(gt.childNodes(j))){let ze=Ga(be,ue);ze&&(as(j)&&(ze.isShadow=!0),k.childNodes.push(ze))}}let Ie=gt.parentNode(e);return Ie&&ns(Ie)&&as(Ie)&&(k.isShadow=!0),k.type===re.Element&&k.tagName==="iframe"&&fC(e,()=>{let ue=e.contentDocument;if(ue&&x){let j=Ga(ue,{doc:ue,mirror:n,blockClass:a,blockSelector:o,needsMask:_,maskTextClass:s,maskTextSelector:i,skipChild:!1,inlineStylesheet:d,maskInputOptions:u,maskTextFn:p,maskInputFn:c,slimDOMOptions:f,dataURLOptions:h,inlineImages:m,recordCanvas:b,preserveWhiteSpace:I,onSerialize:g,onIframeLoad:x,iframeLoadTimeout:v,onStylesheetLoad:S,stylesheetLoadTimeout:y,keepIframeSrcFn:w});j&&x(e,j)}},v),k.type===re.Element&&k.tagName==="link"&&typeof k.attributes.rel=="string"&&(k.attributes.rel==="stylesheet"||k.attributes.rel==="preload"&&typeof k.attributes.href=="string"&&Rp(k.attributes.href)==="css")&&pC(e,()=>{if(S){let ue=Ga(e,{doc:r,mirror:n,blockClass:a,blockSelector:o,needsMask:_,maskTextClass:s,maskTextSelector:i,skipChild:!1,inlineStylesheet:d,maskInputOptions:u,maskTextFn:p,maskInputFn:c,slimDOMOptions:f,dataURLOptions:h,inlineImages:m,recordCanvas:b,preserveWhiteSpace:I,onSerialize:g,onIframeLoad:x,iframeLoadTimeout:v,onStylesheetLoad:S,stylesheetLoadTimeout:y,keepIframeSrcFn:w});ue&&S(e,ue)}},y),k}function yC(e,t){let{mirror:r=new ls,blockClass:n="rr-block",blockSelector:a=null,maskTextClass:o="rr-mask",maskTextSelector:s=null,inlineStylesheet:i=!0,inlineImages:l=!1,recordCanvas:d=!1,maskAllInputs:u=!1,maskTextFn:p,maskInputFn:c,slimDOM:f=!1,dataURLOptions:h,preserveWhiteSpace:m,onSerialize:b,onIframeLoad:g,iframeLoadTimeout:x,onStylesheetLoad:v,stylesheetLoadTimeout:S,keepIframeSrcFn:y=()=>!1}=t,w=u===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:u===!1?{password:!0}:u,L=Zy(f);return Ga(e,{doc:e,mirror:r,blockClass:n,blockSelector:a,maskTextClass:o,maskTextSelector:s,skipChild:!1,inlineStylesheet:i,maskInputOptions:w,maskTextFn:p,maskInputFn:c,slimDOMOptions:L,dataURLOptions:h,inlineImages:l,recordCanvas:d,preserveWhiteSpace:m,onSerialize:b,onIframeLoad:g,iframeLoadTimeout:x,onStylesheetLoad:v,stylesheetLoadTimeout:S,keepIframeSrcFn:y,newlyAddedElement:!1})}var wC=/(max|min)-device-(width|height)/,cv=new RegExp(wC.source,"g"),bC={postcssPlugin:"postcss-custom-selectors",prepare(){return{postcssPlugin:"postcss-custom-selectors",AtRule:function(e){e.params.match(cv)&&(e.params=e.params.replace(cv,"$1-$2"))}}}},SC={postcssPlugin:"postcss-hover-classes",prepare:function(){let e=[];return{Rule:function(t){e.indexOf(t)===-1&&(e.push(t),t.selectors.forEach(function(r){r.includes(":hover")&&(t.selector+=`,
|
|
9
|
-
`+r.replace(/:hover/g,".\\:hover"))}))}}}};function
|
|
10
|
-
`+
|
|
8
|
+
`+o.stack}return{value:e,source:t,stack:a,digest:null}}function ld(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function Hd(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var ZS=typeof WeakMap=="function"?WeakMap:Map;function bx(e,t,r){r=Br(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){ei||(ei=!0,Zd=n),Hd(e,t)},r}function Sx(e,t,r){r=Br(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var a=t.value;r.payload=function(){return n(a)},r.callback=function(){Hd(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(r.callback=function(){Hd(e,t),typeof n!="function"&&(fn===null?fn=new Set([this]):fn.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),r}function Th(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new ZS;var a=new Set;n.set(t,a)}else a=n.get(t),a===void 0&&(a=new Set,n.set(t,a));a.has(r)||(a.add(r),e=p1.bind(null,e,t,r),t.then(e,e))}function Ah(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Dh(e,t,r,n,a){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=Br(-1,1),t.tag=2,cn(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=a,e)}var e1=Hr.ReactCurrentOwner,Rt=!1;function St(e,t,r,n){t.child=e===null?Yg(t,null,r,n):Ua(t,e.child,r,n)}function Oh(e,t,r,n,a){r=r.render;var o=t.ref;return Da(t,a),n=Nc(e,t,r,n,o,a),r=Pc(),e!==null&&!Rt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,$r(e,t,a)):(ze&&r&&yc(t),t.flags|=1,St(e,t,n,a),t.child)}function Fh(e,t,r,n,a){if(e===null){var o=r.type;return typeof o=="function"&&!$c(o)&&o.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=o,Cx(e,t,o,n,a)):(e=Tl(r.type,null,n,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,(e.lanes&a)===0){var s=o.memoizedProps;if(r=r.compare,r=r!==null?r:Ho,r(s,n)&&e.ref===t.ref)return $r(e,t,a)}return t.flags|=1,e=mn(o,n),e.ref=t.ref,e.return=t,t.child=e}function Cx(e,t,r,n,a){if(e!==null){var o=e.memoizedProps;if(Ho(o,n)&&e.ref===t.ref)if(Rt=!1,t.pendingProps=n=o,(e.lanes&a)!==0)(e.flags&131072)!==0&&(Rt=!0);else return t.lanes=e.lanes,$r(e,t,a)}return jd(e,t,r,n,a)}function Lx(e,t,r){var n=t.pendingProps,a=n.children,o=e!==null?e.memoizedState:null;if(n.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Pe(Ea,Ft),Ft|=r;else{if((r&1073741824)===0)return e=o!==null?o.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Pe(Ea,Ft),Ft|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=o!==null?o.baseLanes:r,Pe(Ea,Ft),Ft|=n}else o!==null?(n=o.baseLanes|r,t.memoizedState=null):n=r,Pe(Ea,Ft),Ft|=n;return St(e,t,a,r),t.child}function kx(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function jd(e,t,r,n,a){var o=Nt(r)?Un:ht.current;return o=Ba(t,o),Da(t,a),r=Nc(e,t,r,n,o,a),n=Pc(),e!==null&&!Rt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,$r(e,t,a)):(ze&&n&&yc(t),t.flags|=1,St(e,t,r,a),t.child)}function Bh(e,t,r,n,a){if(Nt(r)){var o=!0;jl(t)}else o=!1;if(Da(t,a),t.stateNode===null)El(e,t),wx(t,r,n),$d(t,r,n,a),n=!0;else if(e===null){var s=t.stateNode,l=t.memoizedProps;s.props=l;var i=s.context,d=r.contextType;typeof d=="object"&&d!==null?d=Jt(d):(d=Nt(r)?Un:ht.current,d=Ba(t,d));var u=r.getDerivedStateFromProps,p=typeof u=="function"||typeof s.getSnapshotBeforeUpdate=="function";p||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==n||i!==d)&&Ph(t,s,n,d),tn=!1;var c=t.memoizedState;s.state=c,Kl(t,n,s,a),i=t.memoizedState,l!==n||c!==i||Et.current||tn?(typeof u=="function"&&(qd(t,r,u,n),i=t.memoizedState),(l=tn||Nh(t,r,l,n,c,i,d))?(p||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=i),s.props=n,s.state=i,s.context=d,n=l):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{s=t.stateNode,Zg(e,t),l=t.memoizedProps,d=t.type===t.elementType?l:cr(t.type,l),s.props=d,p=t.pendingProps,c=s.context,i=r.contextType,typeof i=="object"&&i!==null?i=Jt(i):(i=Nt(r)?Un:ht.current,i=Ba(t,i));var f=r.getDerivedStateFromProps;(u=typeof f=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==p||c!==i)&&Ph(t,s,n,i),tn=!1,c=t.memoizedState,s.state=c,Kl(t,n,s,a);var h=t.memoizedState;l!==p||c!==h||Et.current||tn?(typeof f=="function"&&(qd(t,r,f,n),h=t.memoizedState),(d=tn||Nh(t,r,d,n,c,h,i)||!1)?(u||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(n,h,i),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(n,h,i)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&c===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&c===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=h),s.props=n,s.state=h,s.context=i,n=d):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&c===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&c===e.memoizedState||(t.flags|=1024),n=!1)}return Wd(e,t,r,n,o,a)}function Wd(e,t,r,n,a,o){kx(e,t);var s=(t.flags&128)!==0;if(!n&&!s)return a&&Ch(t,r,!1),$r(e,t,o);n=t.stateNode,e1.current=t;var l=s&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&s?(t.child=Ua(t,e.child,null,o),t.child=Ua(t,null,l,o)):St(e,t,l,o),t.memoizedState=n.state,a&&Ch(t,r,!0),t.child}function Ix(e){var t=e.stateNode;t.pendingContext?Sh(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Sh(e,t.context,!1),_c(e,t.containerInfo)}function zh(e,t,r,n,a){return za(),bc(a),t.flags|=256,St(e,t,r,n),t.child}var Vd={dehydrated:null,treeContext:null,retryLane:0};function Gd(e){return{baseLanes:e,cachePool:null,transitions:null}}function _x(e,t,r){var n=t.pendingProps,a=qe.current,o=!1,s=(t.flags&128)!==0,l;if((l=s)||(l=e!==null&&e.memoizedState===null?!1:(a&2)!==0),l?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(a|=1),Pe(qe,a&1),e===null)return zd(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(s=n.children,e=n.fallback,o?(n=t.mode,o=t.child,s={mode:"hidden",children:s},(n&1)===0&&o!==null?(o.childLanes=0,o.pendingProps=s):o=mi(s,n,0,null),e=zn(e,n,r,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Gd(r),t.memoizedState=Vd,e):Dc(t,s));if(a=e.memoizedState,a!==null&&(l=a.dehydrated,l!==null))return t1(e,t,s,n,l,a,r);if(o){o=n.fallback,s=t.mode,a=e.child,l=a.sibling;var i={mode:"hidden",children:n.children};return(s&1)===0&&t.child!==a?(n=t.child,n.childLanes=0,n.pendingProps=i,t.deletions=null):(n=mn(a,i),n.subtreeFlags=a.subtreeFlags&14680064),l!==null?o=mn(l,o):(o=zn(o,s,r,null),o.flags|=2),o.return=t,n.return=t,n.sibling=o,t.child=n,n=o,o=t.child,s=e.child.memoizedState,s=s===null?Gd(r):{baseLanes:s.baseLanes|r,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~r,t.memoizedState=Vd,n}return o=e.child,e=o.sibling,n=mn(o,{mode:"visible",children:n.children}),(t.mode&1)===0&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function Dc(e,t){return t=mi({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function bl(e,t,r,n){return n!==null&&bc(n),Ua(t,e.child,null,r),e=Dc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function t1(e,t,r,n,a,o,s){if(r)return t.flags&256?(t.flags&=-257,n=ld(Error(A(422))),bl(e,t,s,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=n.fallback,a=t.mode,n=mi({mode:"visible",children:n.children},a,0,null),o=zn(o,a,s,null),o.flags|=2,n.return=t,o.return=t,n.sibling=o,t.child=n,(t.mode&1)!==0&&Ua(t,e.child,null,s),t.child.memoizedState=Gd(s),t.memoizedState=Vd,o);if((t.mode&1)===0)return bl(e,t,s,null);if(a.data==="$!"){if(n=a.nextSibling&&a.nextSibling.dataset,n)var l=n.dgst;return n=l,o=Error(A(419)),n=ld(o,n,void 0),bl(e,t,s,n)}if(l=(s&e.childLanes)!==0,Rt||l){if(n=nt,n!==null){switch(s&-s){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}a=(a&(n.suspendedLanes|s))!==0?0:a,a!==0&&a!==o.retryLane&&(o.retryLane=a,qr(e,a),hr(n,e,a,-1))}return qc(),n=ld(Error(A(421))),bl(e,t,s,n)}return a.data==="$?"?(t.flags|=128,t.child=e.child,t=m1.bind(null,e),a._reactRetry=t,null):(e=o.treeContext,Bt=dn(a.nextSibling),zt=t,ze=!0,pr=null,e!==null&&(Xt[Kt++]=Or,Xt[Kt++]=Fr,Xt[Kt++]=qn,Or=e.id,Fr=e.overflow,qn=t),t=Dc(t,n.children),t.flags|=4096,t)}function Uh(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Ud(e.return,t,r)}function id(e,t,r,n,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=r,o.tailMode=a)}function Mx(e,t,r){var n=t.pendingProps,a=n.revealOrder,o=n.tail;if(St(e,t,n.children,r),n=qe.current,(n&2)!==0)n=n&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Uh(e,r,t);else if(e.tag===19)Uh(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(Pe(qe,n),(t.mode&1)===0)t.memoizedState=null;else switch(a){case"forwards":for(r=t.child,a=null;r!==null;)e=r.alternate,e!==null&&Ql(e)===null&&(a=r),r=r.sibling;r=a,r===null?(a=t.child,t.child=null):(a=r.sibling,r.sibling=null),id(t,!1,a,r,o);break;case"backwards":for(r=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&Ql(e)===null){t.child=a;break}e=a.sibling,a.sibling=r,r=a,a=e}id(t,!0,r,null,o);break;case"together":id(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function El(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function $r(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Hn|=t.lanes,(r&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(A(153));if(t.child!==null){for(e=t.child,r=mn(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=mn(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function r1(e,t,r){switch(t.tag){case 3:Ix(t),za();break;case 5:ex(t);break;case 1:Nt(t.type)&&jl(t);break;case 4:_c(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,a=t.memoizedProps.value;Pe(Gl,n._currentValue),n._currentValue=a;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(Pe(qe,qe.current&1),t.flags|=128,null):(r&t.child.childLanes)!==0?_x(e,t,r):(Pe(qe,qe.current&1),e=$r(e,t,r),e!==null?e.sibling:null);Pe(qe,qe.current&1);break;case 19:if(n=(r&t.childLanes)!==0,(e.flags&128)!==0){if(n)return Mx(e,t,r);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Pe(qe,qe.current),n)break;return null;case 22:case 23:return t.lanes=0,Lx(e,t,r)}return $r(e,t,r)}var Rx,Xd,Ex,Nx;Rx=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};Xd=function(){};Ex=function(e,t,r,n){var a=e.memoizedProps;if(a!==n){e=t.stateNode,Fn(Rr.current);var o=null;switch(r){case"input":a=gd(e,a),n=gd(e,n),o=[];break;case"select":a=He({},a,{value:void 0}),n=He({},n,{value:void 0}),o=[];break;case"textarea":a=yd(e,a),n=yd(e,n),o=[];break;default:typeof a.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=$l)}bd(r,n);var s;r=null;for(d in a)if(!n.hasOwnProperty(d)&&a.hasOwnProperty(d)&&a[d]!=null)if(d==="style"){var l=a[d];for(s in l)l.hasOwnProperty(s)&&(r||(r={}),r[s]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(Oo.hasOwnProperty(d)?o||(o=[]):(o=o||[]).push(d,null));for(d in n){var i=n[d];if(l=a?.[d],n.hasOwnProperty(d)&&i!==l&&(i!=null||l!=null))if(d==="style")if(l){for(s in l)!l.hasOwnProperty(s)||i&&i.hasOwnProperty(s)||(r||(r={}),r[s]="");for(s in i)i.hasOwnProperty(s)&&l[s]!==i[s]&&(r||(r={}),r[s]=i[s])}else r||(o||(o=[]),o.push(d,r)),r=i;else d==="dangerouslySetInnerHTML"?(i=i?i.__html:void 0,l=l?l.__html:void 0,i!=null&&l!==i&&(o=o||[]).push(d,i)):d==="children"?typeof i!="string"&&typeof i!="number"||(o=o||[]).push(d,""+i):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&(Oo.hasOwnProperty(d)?(i!=null&&d==="onScroll"&&Oe("scroll",e),o||l===i||(o=[])):(o=o||[]).push(d,i))}r&&(o=o||[]).push("style",r);var d=o;(t.updateQueue=d)&&(t.flags|=4)}};Nx=function(e,t,r,n){r!==n&&(t.flags|=4)};function wo(e,t){if(!ze)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function pt(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var a=e.child;a!==null;)r|=a.lanes|a.childLanes,n|=a.subtreeFlags&14680064,n|=a.flags&14680064,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)r|=a.lanes|a.childLanes,n|=a.subtreeFlags,n|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function n1(e,t,r){var n=t.pendingProps;switch(wc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return pt(t),null;case 1:return Nt(t.type)&&Hl(),pt(t),null;case 3:return n=t.stateNode,qa(),Fe(Et),Fe(ht),Rc(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(yl(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,pr!==null&&(rc(pr),pr=null))),Xd(e,t),pt(t),null;case 5:Mc(t);var a=Fn(Xo.current);if(r=t.type,e!==null&&t.stateNode!=null)Ex(e,t,r,n,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(A(166));return pt(t),null}if(e=Fn(Rr.current),yl(t)){n=t.stateNode,r=t.type;var o=t.memoizedProps;switch(n[_r]=t,n[Vo]=o,e=(t.mode&1)!==0,r){case"dialog":Oe("cancel",n),Oe("close",n);break;case"iframe":case"object":case"embed":Oe("load",n);break;case"video":case"audio":for(a=0;a<Io.length;a++)Oe(Io[a],n);break;case"source":Oe("error",n);break;case"img":case"image":case"link":Oe("error",n),Oe("load",n);break;case"details":Oe("toggle",n);break;case"input":Xm(n,o),Oe("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!o.multiple},Oe("invalid",n);break;case"textarea":Qm(n,o),Oe("invalid",n)}bd(r,o),a=null;for(var s in o)if(o.hasOwnProperty(s)){var l=o[s];s==="children"?typeof l=="string"?n.textContent!==l&&(o.suppressHydrationWarning!==!0&&vl(n.textContent,l,e),a=["children",l]):typeof l=="number"&&n.textContent!==""+l&&(o.suppressHydrationWarning!==!0&&vl(n.textContent,l,e),a=["children",""+l]):Oo.hasOwnProperty(s)&&l!=null&&s==="onScroll"&&Oe("scroll",n)}switch(r){case"input":sl(n),Km(n,o,!0);break;case"textarea":sl(n),Ym(n);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(n.onclick=$l)}n=a,t.updateQueue=n,n!==null&&(t.flags|=4)}else{s=a.nodeType===9?a:a.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=og(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=s.createElement(r,{is:n.is}):(e=s.createElement(r),r==="select"&&(s=e,n.multiple?s.multiple=!0:n.size&&(s.size=n.size))):e=s.createElementNS(e,r),e[_r]=t,e[Vo]=n,Rx(e,t,!1,!1),t.stateNode=e;e:{switch(s=Sd(r,n),r){case"dialog":Oe("cancel",e),Oe("close",e),a=n;break;case"iframe":case"object":case"embed":Oe("load",e),a=n;break;case"video":case"audio":for(a=0;a<Io.length;a++)Oe(Io[a],e);a=n;break;case"source":Oe("error",e),a=n;break;case"img":case"image":case"link":Oe("error",e),Oe("load",e),a=n;break;case"details":Oe("toggle",e),a=n;break;case"input":Xm(e,n),a=gd(e,n),Oe("invalid",e);break;case"option":a=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},a=He({},n,{value:void 0}),Oe("invalid",e);break;case"textarea":Qm(e,n),a=yd(e,n),Oe("invalid",e);break;default:a=n}bd(r,a),l=a;for(o in l)if(l.hasOwnProperty(o)){var i=l[o];o==="style"?ig(e,i):o==="dangerouslySetInnerHTML"?(i=i?i.__html:void 0,i!=null&&sg(e,i)):o==="children"?typeof i=="string"?(r!=="textarea"||i!=="")&&Fo(e,i):typeof i=="number"&&Fo(e,""+i):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Oo.hasOwnProperty(o)?i!=null&&o==="onScroll"&&Oe("scroll",e):i!=null&&oc(e,o,i,s))}switch(r){case"input":sl(e),Km(e,n,!1);break;case"textarea":sl(e),Ym(e);break;case"option":n.value!=null&&e.setAttribute("value",""+hn(n.value));break;case"select":e.multiple=!!n.multiple,o=n.value,o!=null?Na(e,!!n.multiple,o,!1):n.defaultValue!=null&&Na(e,!!n.multiple,n.defaultValue,!0);break;default:typeof a.onClick=="function"&&(e.onclick=$l)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return pt(t),null;case 6:if(e&&t.stateNode!=null)Nx(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(A(166));if(r=Fn(Xo.current),Fn(Rr.current),yl(t)){if(n=t.stateNode,r=t.memoizedProps,n[_r]=t,(o=n.nodeValue!==r)&&(e=zt,e!==null))switch(e.tag){case 3:vl(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&vl(n.nodeValue,r,(e.mode&1)!==0)}o&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[_r]=t,t.stateNode=n}return pt(t),null;case 13:if(Fe(qe),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ze&&Bt!==null&&(t.mode&1)!==0&&(t.flags&128)===0)Kg(),za(),t.flags|=98560,o=!1;else if(o=yl(t),n!==null&&n.dehydrated!==null){if(e===null){if(!o)throw Error(A(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(A(317));o[_r]=t}else za(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;pt(t),o=!1}else pr!==null&&(rc(pr),pr=null),o=!0;if(!o)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(qe.current&1)!==0?Ze===0&&(Ze=3):qc())),t.updateQueue!==null&&(t.flags|=4),pt(t),null);case 4:return qa(),Xd(e,t),e===null&&jo(t.stateNode.containerInfo),pt(t),null;case 10:return Lc(t.type._context),pt(t),null;case 17:return Nt(t.type)&&Hl(),pt(t),null;case 19:if(Fe(qe),o=t.memoizedState,o===null)return pt(t),null;if(n=(t.flags&128)!==0,s=o.rendering,s===null)if(n)wo(o,!1);else{if(Ze!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=Ql(e),s!==null){for(t.flags|=128,wo(o,!1),n=s.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)o=r,e=n,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Pe(qe,qe.current&1|2),t.child}e=e.sibling}o.tail!==null&&Ge()>Ha&&(t.flags|=128,n=!0,wo(o,!1),t.lanes=4194304)}else{if(!n)if(e=Ql(s),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),wo(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!ze)return pt(t),null}else 2*Ge()-o.renderingStartTime>Ha&&r!==1073741824&&(t.flags|=128,n=!0,wo(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(r=o.last,r!==null?r.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Ge(),t.sibling=null,r=qe.current,Pe(qe,n?r&1|2:r&1),t):(pt(t),null);case 22:case 23:return Uc(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&(t.mode&1)!==0?(Ft&1073741824)!==0&&(pt(t),t.subtreeFlags&6&&(t.flags|=8192)):pt(t),null;case 24:return null;case 25:return null}throw Error(A(156,t.tag))}function a1(e,t){switch(wc(t),t.tag){case 1:return Nt(t.type)&&Hl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return qa(),Fe(Et),Fe(ht),Rc(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Mc(t),null;case 13:if(Fe(qe),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(A(340));za()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Fe(qe),null;case 4:return qa(),null;case 10:return Lc(t.type._context),null;case 22:case 23:return Uc(),null;case 24:return null;default:return null}}var Sl=!1,mt=!1,o1=typeof WeakSet=="function"?WeakSet:Set,z=null;function Ra(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){je(e,t,n)}else r.current=null}function Kd(e,t,r){try{r()}catch(n){je(e,t,n)}}var qh=!1;function s1(e,t){if(Pd=zl,e=Og(),vc(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var a=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break e}var s=0,l=-1,i=-1,d=0,u=0,p=e,c=null;t:for(;;){for(var f;p!==r||a!==0&&p.nodeType!==3||(l=s+a),p!==o||n!==0&&p.nodeType!==3||(i=s+n),p.nodeType===3&&(s+=p.nodeValue.length),(f=p.firstChild)!==null;)c=p,p=f;for(;;){if(p===e)break t;if(c===r&&++d===a&&(l=s),c===o&&++u===n&&(i=s),(f=p.nextSibling)!==null)break;p=c,c=p.parentNode}p=f}r=l===-1||i===-1?null:{start:l,end:i}}else r=null}r=r||{start:0,end:0}}else r=null;for(Td={focusedElem:e,selectionRange:r},zl=!1,z=t;z!==null;)if(t=z,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,z=e;else for(;z!==null;){t=z;try{var h=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var m=h.memoizedProps,y=h.memoizedState,g=t.stateNode,x=g.getSnapshotBeforeUpdate(t.elementType===t.type?m:cr(t.type,m),y);g.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(A(163))}}catch(S){je(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,z=e;break}z=t.return}return h=qh,qh=!1,h}function To(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var a=n=n.next;do{if((a.tag&e)===e){var o=a.destroy;a.destroy=void 0,o!==void 0&&Kd(t,r,o)}a=a.next}while(a!==n)}}function fi(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function Qd(e){var t=e.ref;if(t!==null){var r=e.stateNode;e.tag,e=r,typeof t=="function"?t(e):t.current=e}}function Px(e){var t=e.alternate;t!==null&&(e.alternate=null,Px(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[_r],delete t[Vo],delete t[Od],delete t[$S],delete t[HS])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Tx(e){return e.tag===5||e.tag===3||e.tag===4}function $h(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Tx(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Yd(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=$l));else if(n!==4&&(e=e.child,e!==null))for(Yd(e,t,r),e=e.sibling;e!==null;)Yd(e,t,r),e=e.sibling}function Jd(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(Jd(e,t,r),e=e.sibling;e!==null;)Jd(e,t,r),e=e.sibling}var at=null,fr=!1;function Zr(e,t,r){for(r=r.child;r!==null;)Ax(e,t,r),r=r.sibling}function Ax(e,t,r){if(Mr&&typeof Mr.onCommitFiberUnmount=="function")try{Mr.onCommitFiberUnmount(ai,r)}catch{}switch(r.tag){case 5:mt||Ra(r,t);case 6:var n=at,a=fr;at=null,Zr(e,t,r),at=n,fr=a,at!==null&&(fr?(e=at,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):at.removeChild(r.stateNode));break;case 18:at!==null&&(fr?(e=at,r=r.stateNode,e.nodeType===8?td(e.parentNode,r):e.nodeType===1&&td(e,r),qo(e)):td(at,r.stateNode));break;case 4:n=at,a=fr,at=r.stateNode.containerInfo,fr=!0,Zr(e,t,r),at=n,fr=a;break;case 0:case 11:case 14:case 15:if(!mt&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){a=n=n.next;do{var o=a,s=o.destroy;o=o.tag,s!==void 0&&((o&2)!==0||(o&4)!==0)&&Kd(r,t,s),a=a.next}while(a!==n)}Zr(e,t,r);break;case 1:if(!mt&&(Ra(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(l){je(r,t,l)}Zr(e,t,r);break;case 21:Zr(e,t,r);break;case 22:r.mode&1?(mt=(n=mt)||r.memoizedState!==null,Zr(e,t,r),mt=n):Zr(e,t,r);break;default:Zr(e,t,r)}}function Hh(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new o1),t.forEach(function(n){var a=h1.bind(null,e,n);r.has(n)||(r.add(n),n.then(a,a))})}}function dr(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var a=r[n];try{var o=e,s=t,l=s;e:for(;l!==null;){switch(l.tag){case 5:at=l.stateNode,fr=!1;break e;case 3:at=l.stateNode.containerInfo,fr=!0;break e;case 4:at=l.stateNode.containerInfo,fr=!0;break e}l=l.return}if(at===null)throw Error(A(160));Ax(o,s,a),at=null,fr=!1;var i=a.alternate;i!==null&&(i.return=null),a.return=null}catch(d){je(a,t,d)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Dx(t,e),t=t.sibling}function Dx(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(dr(t,e),kr(e),n&4){try{To(3,e,e.return),fi(3,e)}catch(m){je(e,e.return,m)}try{To(5,e,e.return)}catch(m){je(e,e.return,m)}}break;case 1:dr(t,e),kr(e),n&512&&r!==null&&Ra(r,r.return);break;case 5:if(dr(t,e),kr(e),n&512&&r!==null&&Ra(r,r.return),e.flags&32){var a=e.stateNode;try{Fo(a,"")}catch(m){je(e,e.return,m)}}if(n&4&&(a=e.stateNode,a!=null)){var o=e.memoizedProps,s=r!==null?r.memoizedProps:o,l=e.type,i=e.updateQueue;if(e.updateQueue=null,i!==null)try{l==="input"&&o.type==="radio"&&o.name!=null&&ng(a,o),Sd(l,s);var d=Sd(l,o);for(s=0;s<i.length;s+=2){var u=i[s],p=i[s+1];u==="style"?ig(a,p):u==="dangerouslySetInnerHTML"?sg(a,p):u==="children"?Fo(a,p):oc(a,u,p,d)}switch(l){case"input":xd(a,o);break;case"textarea":ag(a,o);break;case"select":var c=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!o.multiple;var f=o.value;f!=null?Na(a,!!o.multiple,f,!1):c!==!!o.multiple&&(o.defaultValue!=null?Na(a,!!o.multiple,o.defaultValue,!0):Na(a,!!o.multiple,o.multiple?[]:"",!1))}a[Vo]=o}catch(m){je(e,e.return,m)}}break;case 6:if(dr(t,e),kr(e),n&4){if(e.stateNode===null)throw Error(A(162));a=e.stateNode,o=e.memoizedProps;try{a.nodeValue=o}catch(m){je(e,e.return,m)}}break;case 3:if(dr(t,e),kr(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{qo(t.containerInfo)}catch(m){je(e,e.return,m)}break;case 4:dr(t,e),kr(e);break;case 13:dr(t,e),kr(e),a=e.child,a.flags&8192&&(o=a.memoizedState!==null,a.stateNode.isHidden=o,!o||a.alternate!==null&&a.alternate.memoizedState!==null||(Bc=Ge())),n&4&&Hh(e);break;case 22:if(u=r!==null&&r.memoizedState!==null,e.mode&1?(mt=(d=mt)||u,dr(t,e),mt=d):dr(t,e),kr(e),n&8192){if(d=e.memoizedState!==null,(e.stateNode.isHidden=d)&&!u&&(e.mode&1)!==0)for(z=e,u=e.child;u!==null;){for(p=z=u;z!==null;){switch(c=z,f=c.child,c.tag){case 0:case 11:case 14:case 15:To(4,c,c.return);break;case 1:Ra(c,c.return);var h=c.stateNode;if(typeof h.componentWillUnmount=="function"){n=c,r=c.return;try{t=n,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(m){je(n,r,m)}}break;case 5:Ra(c,c.return);break;case 22:if(c.memoizedState!==null){Wh(p);continue}}f!==null?(f.return=c,z=f):Wh(p)}u=u.sibling}e:for(u=null,p=e;;){if(p.tag===5){if(u===null){u=p;try{a=p.stateNode,d?(o=a.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(l=p.stateNode,i=p.memoizedProps.style,s=i!=null&&i.hasOwnProperty("display")?i.display:null,l.style.display=lg("display",s))}catch(m){je(e,e.return,m)}}}else if(p.tag===6){if(u===null)try{p.stateNode.nodeValue=d?"":p.memoizedProps}catch(m){je(e,e.return,m)}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===e)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;p.sibling===null;){if(p.return===null||p.return===e)break e;u===p&&(u=null),p=p.return}u===p&&(u=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:dr(t,e),kr(e),n&4&&Hh(e);break;case 21:break;default:dr(t,e),kr(e)}}function kr(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(Tx(r)){var n=r;break e}r=r.return}throw Error(A(160))}switch(n.tag){case 5:var a=n.stateNode;n.flags&32&&(Fo(a,""),n.flags&=-33);var o=$h(e);Jd(e,o,a);break;case 3:case 4:var s=n.stateNode.containerInfo,l=$h(e);Yd(e,l,s);break;default:throw Error(A(161))}}catch(i){je(e,e.return,i)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function l1(e,t,r){z=e,Ox(e,t,r)}function Ox(e,t,r){for(var n=(e.mode&1)!==0;z!==null;){var a=z,o=a.child;if(a.tag===22&&n){var s=a.memoizedState!==null||Sl;if(!s){var l=a.alternate,i=l!==null&&l.memoizedState!==null||mt;l=Sl;var d=mt;if(Sl=s,(mt=i)&&!d)for(z=a;z!==null;)s=z,i=s.child,s.tag===22&&s.memoizedState!==null?Vh(a):i!==null?(i.return=s,z=i):Vh(a);for(;o!==null;)z=o,Ox(o,t,r),o=o.sibling;z=a,Sl=l,mt=d}jh(e,t,r)}else(a.subtreeFlags&8772)!==0&&o!==null?(o.return=a,z=o):jh(e,t,r)}}function jh(e){for(;z!==null;){var t=z;if((t.flags&8772)!==0){var r=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:mt||fi(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!mt)if(r===null)n.componentDidMount();else{var a=t.elementType===t.type?r.memoizedProps:cr(t.type,r.memoizedProps);n.componentDidUpdate(a,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&Mh(t,o,n);break;case 3:var s=t.updateQueue;if(s!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}Mh(t,s,r)}break;case 5:var l=t.stateNode;if(r===null&&t.flags&4){r=l;var i=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":i.autoFocus&&r.focus();break;case"img":i.src&&(r.src=i.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var d=t.alternate;if(d!==null){var u=d.memoizedState;if(u!==null){var p=u.dehydrated;p!==null&&qo(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(A(163))}mt||t.flags&512&&Qd(t)}catch(c){je(t,t.return,c)}}if(t===e){z=null;break}if(r=t.sibling,r!==null){r.return=t.return,z=r;break}z=t.return}}function Wh(e){for(;z!==null;){var t=z;if(t===e){z=null;break}var r=t.sibling;if(r!==null){r.return=t.return,z=r;break}z=t.return}}function Vh(e){for(;z!==null;){var t=z;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{fi(4,t)}catch(i){je(t,r,i)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var a=t.return;try{n.componentDidMount()}catch(i){je(t,a,i)}}var o=t.return;try{Qd(t)}catch(i){je(t,o,i)}break;case 5:var s=t.return;try{Qd(t)}catch(i){je(t,s,i)}}}catch(i){je(t,t.return,i)}if(t===e){z=null;break}var l=t.sibling;if(l!==null){l.return=t.return,z=l;break}z=t.return}}var i1=Math.ceil,Zl=Hr.ReactCurrentDispatcher,Oc=Hr.ReactCurrentOwner,Yt=Hr.ReactCurrentBatchConfig,xe=0,nt=null,Ke=null,ot=0,Ft=0,Ea=vn(0),Ze=0,Jo=null,Hn=0,pi=0,Fc=0,Ao=null,Mt=null,Bc=0,Ha=1/0,Ar=null,ei=!1,Zd=null,fn=null,Cl=!1,on=null,ti=0,Do=0,ec=null,Nl=-1,Pl=0;function Ct(){return(xe&6)!==0?Ge():Nl!==-1?Nl:Nl=Ge()}function pn(e){return(e.mode&1)===0?1:(xe&2)!==0&&ot!==0?ot&-ot:WS.transition!==null?(Pl===0&&(Pl=wg()),Pl):(e=Ie,e!==0||(e=window.event,e=e===void 0?16:_g(e.type)),e)}function hr(e,t,r,n){if(50<Do)throw Do=0,ec=null,Error(A(185));Zo(e,r,n),((xe&2)===0||e!==nt)&&(e===nt&&((xe&2)===0&&(pi|=r),Ze===4&&nn(e,ot)),Pt(e,n),r===1&&xe===0&&(t.mode&1)===0&&(Ha=Ge()+500,ui&&yn()))}function Pt(e,t){var r=e.callbackNode;G0(e,t);var n=Bl(e,e===nt?ot:0);if(n===0)r!==null&&eh(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&eh(r),t===1)e.tag===0?jS(Gh.bind(null,e)):Vg(Gh.bind(null,e)),US(function(){(xe&6)===0&&yn()}),r=null;else{switch(bg(n)){case 1:r=dc;break;case 4:r=vg;break;case 16:r=Fl;break;case 536870912:r=yg;break;default:r=Fl}r=jx(r,Fx.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function Fx(e,t){if(Nl=-1,Pl=0,(xe&6)!==0)throw Error(A(327));var r=e.callbackNode;if(Oa()&&e.callbackNode!==r)return null;var n=Bl(e,e===nt?ot:0);if(n===0)return null;if((n&30)!==0||(n&e.expiredLanes)!==0||t)t=ri(e,n);else{t=n;var a=xe;xe|=2;var o=zx();(nt!==e||ot!==t)&&(Ar=null,Ha=Ge()+500,Bn(e,t));do try{c1();break}catch(l){Bx(e,l)}while(!0);Cc(),Zl.current=o,xe=a,Ke!==null?t=0:(nt=null,ot=0,t=Ze)}if(t!==0){if(t===2&&(a=_d(e),a!==0&&(n=a,t=tc(e,a))),t===1)throw r=Jo,Bn(e,0),nn(e,n),Pt(e,Ge()),r;if(t===6)nn(e,n);else{if(a=e.current.alternate,(n&30)===0&&!u1(a)&&(t=ri(e,n),t===2&&(o=_d(e),o!==0&&(n=o,t=tc(e,o))),t===1))throw r=Jo,Bn(e,0),nn(e,n),Pt(e,Ge()),r;switch(e.finishedWork=a,e.finishedLanes=n,t){case 0:case 1:throw Error(A(345));case 2:An(e,Mt,Ar);break;case 3:if(nn(e,n),(n&130023424)===n&&(t=Bc+500-Ge(),10<t)){if(Bl(e,0)!==0)break;if(a=e.suspendedLanes,(a&n)!==n){Ct(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=Dd(An.bind(null,e,Mt,Ar),t);break}An(e,Mt,Ar);break;case 4:if(nn(e,n),(n&4194240)===n)break;for(t=e.eventTimes,a=-1;0<n;){var s=31-mr(n);o=1<<s,s=t[s],s>a&&(a=s),n&=~o}if(n=a,n=Ge()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*i1(n/1960))-n,10<n){e.timeoutHandle=Dd(An.bind(null,e,Mt,Ar),n);break}An(e,Mt,Ar);break;case 5:An(e,Mt,Ar);break;default:throw Error(A(329))}}}return Pt(e,Ge()),e.callbackNode===r?Fx.bind(null,e):null}function tc(e,t){var r=Ao;return e.current.memoizedState.isDehydrated&&(Bn(e,t).flags|=256),e=ri(e,t),e!==2&&(t=Mt,Mt=r,t!==null&&rc(t)),e}function rc(e){Mt===null?Mt=e:Mt.push.apply(Mt,e)}function u1(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var a=r[n],o=a.getSnapshot;a=a.value;try{if(!gr(o(),a))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function nn(e,t){for(t&=~Fc,t&=~pi,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-mr(t),n=1<<r;e[r]=-1,t&=~n}}function Gh(e){if((xe&6)!==0)throw Error(A(327));Oa();var t=Bl(e,0);if((t&1)===0)return Pt(e,Ge()),null;var r=ri(e,t);if(e.tag!==0&&r===2){var n=_d(e);n!==0&&(t=n,r=tc(e,n))}if(r===1)throw r=Jo,Bn(e,0),nn(e,t),Pt(e,Ge()),r;if(r===6)throw Error(A(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,An(e,Mt,Ar),Pt(e,Ge()),null}function zc(e,t){var r=xe;xe|=1;try{return e(t)}finally{xe=r,xe===0&&(Ha=Ge()+500,ui&&yn())}}function jn(e){on!==null&&on.tag===0&&(xe&6)===0&&Oa();var t=xe;xe|=1;var r=Yt.transition,n=Ie;try{if(Yt.transition=null,Ie=1,e)return e()}finally{Ie=n,Yt.transition=r,xe=t,(xe&6)===0&&yn()}}function Uc(){Ft=Ea.current,Fe(Ea)}function Bn(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,zS(r)),Ke!==null)for(r=Ke.return;r!==null;){var n=r;switch(wc(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&Hl();break;case 3:qa(),Fe(Et),Fe(ht),Rc();break;case 5:Mc(n);break;case 4:qa();break;case 13:Fe(qe);break;case 19:Fe(qe);break;case 10:Lc(n.type._context);break;case 22:case 23:Uc()}r=r.return}if(nt=e,Ke=e=mn(e.current,null),ot=Ft=t,Ze=0,Jo=null,Fc=pi=Hn=0,Mt=Ao=null,On!==null){for(t=0;t<On.length;t++)if(r=On[t],n=r.interleaved,n!==null){r.interleaved=null;var a=n.next,o=r.pending;if(o!==null){var s=o.next;o.next=a,n.next=s}r.pending=n}On=null}return e}function Bx(e,t){do{var r=Ke;try{if(Cc(),Ml.current=Jl,Yl){for(var n=$e.memoizedState;n!==null;){var a=n.queue;a!==null&&(a.pending=null),n=n.next}Yl=!1}if($n=0,rt=Je=$e=null,Po=!1,Ko=0,Oc.current=null,r===null||r.return===null){Ze=1,Jo=t,Ke=null;break}e:{var o=e,s=r.return,l=r,i=t;if(t=ot,l.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){var d=i,u=l,p=u.tag;if((u.mode&1)===0&&(p===0||p===11||p===15)){var c=u.alternate;c?(u.updateQueue=c.updateQueue,u.memoizedState=c.memoizedState,u.lanes=c.lanes):(u.updateQueue=null,u.memoizedState=null)}var f=Ah(s);if(f!==null){f.flags&=-257,Dh(f,s,l,o,t),f.mode&1&&Th(o,d,t),t=f,i=d;var h=t.updateQueue;if(h===null){var m=new Set;m.add(i),t.updateQueue=m}else h.add(i);break e}else{if((t&1)===0){Th(o,d,t),qc();break e}i=Error(A(426))}}else if(ze&&l.mode&1){var y=Ah(s);if(y!==null){(y.flags&65536)===0&&(y.flags|=256),Dh(y,s,l,o,t),bc($a(i,l));break e}}o=i=$a(i,l),Ze!==4&&(Ze=2),Ao===null?Ao=[o]:Ao.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var g=bx(o,i,t);_h(o,g);break e;case 1:l=i;var x=o.type,v=o.stateNode;if((o.flags&128)===0&&(typeof x.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(fn===null||!fn.has(v)))){o.flags|=65536,t&=-t,o.lanes|=t;var S=Sx(o,l,t);_h(o,S);break e}}o=o.return}while(o!==null)}qx(r)}catch(b){t=b,Ke===r&&r!==null&&(Ke=r=r.return);continue}break}while(!0)}function zx(){var e=Zl.current;return Zl.current=Jl,e===null?Jl:e}function qc(){(Ze===0||Ze===3||Ze===2)&&(Ze=4),nt===null||(Hn&268435455)===0&&(pi&268435455)===0||nn(nt,ot)}function ri(e,t){var r=xe;xe|=2;var n=zx();(nt!==e||ot!==t)&&(Ar=null,Bn(e,t));do try{d1();break}catch(a){Bx(e,a)}while(!0);if(Cc(),xe=r,Zl.current=n,Ke!==null)throw Error(A(261));return nt=null,ot=0,Ze}function d1(){for(;Ke!==null;)Ux(Ke)}function c1(){for(;Ke!==null&&!B0();)Ux(Ke)}function Ux(e){var t=Hx(e.alternate,e,Ft);e.memoizedProps=e.pendingProps,t===null?qx(e):Ke=t,Oc.current=null}function qx(e){var t=e;do{var r=t.alternate;if(e=t.return,(t.flags&32768)===0){if(r=n1(r,t,Ft),r!==null){Ke=r;return}}else{if(r=a1(r,t),r!==null){r.flags&=32767,Ke=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ze=6,Ke=null;return}}if(t=t.sibling,t!==null){Ke=t;return}Ke=t=e}while(t!==null);Ze===0&&(Ze=5)}function An(e,t,r){var n=Ie,a=Yt.transition;try{Yt.transition=null,Ie=1,f1(e,t,r,n)}finally{Yt.transition=a,Ie=n}return null}function f1(e,t,r,n){do Oa();while(on!==null);if((xe&6)!==0)throw Error(A(327));r=e.finishedWork;var a=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(A(177));e.callbackNode=null,e.callbackPriority=0;var o=r.lanes|r.childLanes;if(X0(e,o),e===nt&&(Ke=nt=null,ot=0),(r.subtreeFlags&2064)===0&&(r.flags&2064)===0||Cl||(Cl=!0,jx(Fl,function(){return Oa(),null})),o=(r.flags&15990)!==0,(r.subtreeFlags&15990)!==0||o){o=Yt.transition,Yt.transition=null;var s=Ie;Ie=1;var l=xe;xe|=4,Oc.current=null,s1(e,r),Dx(r,e),AS(Td),zl=!!Pd,Td=Pd=null,e.current=r,l1(r,e,a),z0(),xe=l,Ie=s,Yt.transition=o}else e.current=r;if(Cl&&(Cl=!1,on=e,ti=a),o=e.pendingLanes,o===0&&(fn=null),$0(r.stateNode,n),Pt(e,Ge()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)a=t[r],n(a.value,{componentStack:a.stack,digest:a.digest});if(ei)throw ei=!1,e=Zd,Zd=null,e;return(ti&1)!==0&&e.tag!==0&&Oa(),o=e.pendingLanes,(o&1)!==0?e===ec?Do++:(Do=0,ec=e):Do=0,yn(),null}function Oa(){if(on!==null){var e=bg(ti),t=Yt.transition,r=Ie;try{if(Yt.transition=null,Ie=16>e?16:e,on===null)var n=!1;else{if(e=on,on=null,ti=0,(xe&6)!==0)throw Error(A(331));var a=xe;for(xe|=4,z=e.current;z!==null;){var o=z,s=o.child;if((z.flags&16)!==0){var l=o.deletions;if(l!==null){for(var i=0;i<l.length;i++){var d=l[i];for(z=d;z!==null;){var u=z;switch(u.tag){case 0:case 11:case 15:To(8,u,o)}var p=u.child;if(p!==null)p.return=u,z=p;else for(;z!==null;){u=z;var c=u.sibling,f=u.return;if(Px(u),u===d){z=null;break}if(c!==null){c.return=f,z=c;break}z=f}}}var h=o.alternate;if(h!==null){var m=h.child;if(m!==null){h.child=null;do{var y=m.sibling;m.sibling=null,m=y}while(m!==null)}}z=o}}if((o.subtreeFlags&2064)!==0&&s!==null)s.return=o,z=s;else e:for(;z!==null;){if(o=z,(o.flags&2048)!==0)switch(o.tag){case 0:case 11:case 15:To(9,o,o.return)}var g=o.sibling;if(g!==null){g.return=o.return,z=g;break e}z=o.return}}var x=e.current;for(z=x;z!==null;){s=z;var v=s.child;if((s.subtreeFlags&2064)!==0&&v!==null)v.return=s,z=v;else e:for(s=x;z!==null;){if(l=z,(l.flags&2048)!==0)try{switch(l.tag){case 0:case 11:case 15:fi(9,l)}}catch(b){je(l,l.return,b)}if(l===s){z=null;break e}var S=l.sibling;if(S!==null){S.return=l.return,z=S;break e}z=l.return}}if(xe=a,yn(),Mr&&typeof Mr.onPostCommitFiberRoot=="function")try{Mr.onPostCommitFiberRoot(ai,e)}catch{}n=!0}return n}finally{Ie=r,Yt.transition=t}}return!1}function Xh(e,t,r){t=$a(r,t),t=bx(e,t,1),e=cn(e,t,1),t=Ct(),e!==null&&(Zo(e,1,t),Pt(e,t))}function je(e,t,r){if(e.tag===3)Xh(e,e,r);else for(;t!==null;){if(t.tag===3){Xh(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(fn===null||!fn.has(n))){e=$a(r,e),e=Sx(t,e,1),t=cn(t,e,1),e=Ct(),t!==null&&(Zo(t,1,e),Pt(t,e));break}}t=t.return}}function p1(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=Ct(),e.pingedLanes|=e.suspendedLanes&r,nt===e&&(ot&r)===r&&(Ze===4||Ze===3&&(ot&130023424)===ot&&500>Ge()-Bc?Bn(e,0):Fc|=r),Pt(e,t)}function $x(e,t){t===0&&((e.mode&1)===0?t=1:(t=ul,ul<<=1,(ul&130023424)===0&&(ul=4194304)));var r=Ct();e=qr(e,t),e!==null&&(Zo(e,t,r),Pt(e,r))}function m1(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),$x(e,r)}function h1(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,a=e.memoizedState;a!==null&&(r=a.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(A(314))}n!==null&&n.delete(t),$x(e,r)}var Hx;Hx=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Et.current)Rt=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return Rt=!1,r1(e,t,r);Rt=(e.flags&131072)!==0}else Rt=!1,ze&&(t.flags&1048576)!==0&&Gg(t,Vl,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;El(e,t),e=t.pendingProps;var a=Ba(t,ht.current);Da(t,r),a=Nc(null,t,n,e,a,r);var o=Pc();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Nt(n)?(o=!0,jl(t)):o=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,Ic(t),a.updater=ci,t.stateNode=a,a._reactInternals=t,$d(t,n,e,r),t=Wd(null,t,n,!0,o,r)):(t.tag=0,ze&&o&&yc(t),St(null,t,a,r),t=t.child),t;case 16:n=t.elementType;e:{switch(El(e,t),e=t.pendingProps,a=n._init,n=a(n._payload),t.type=n,a=t.tag=x1(n),e=cr(n,e),a){case 0:t=jd(null,t,n,e,r);break e;case 1:t=Bh(null,t,n,e,r);break e;case 11:t=Oh(null,t,n,e,r);break e;case 14:t=Fh(null,t,n,cr(n.type,e),r);break e}throw Error(A(306,n,""))}return t;case 0:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:cr(n,a),jd(e,t,n,a,r);case 1:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:cr(n,a),Bh(e,t,n,a,r);case 3:e:{if(Ix(t),e===null)throw Error(A(387));n=t.pendingProps,o=t.memoizedState,a=o.element,Zg(e,t),Kl(t,n,null,r);var s=t.memoizedState;if(n=s.element,o.isDehydrated)if(o={element:n,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){a=$a(Error(A(423)),t),t=zh(e,t,n,r,a);break e}else if(n!==a){a=$a(Error(A(424)),t),t=zh(e,t,n,r,a);break e}else for(Bt=dn(t.stateNode.containerInfo.firstChild),zt=t,ze=!0,pr=null,r=Yg(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(za(),n===a){t=$r(e,t,r);break e}St(e,t,n,r)}t=t.child}return t;case 5:return ex(t),e===null&&zd(t),n=t.type,a=t.pendingProps,o=e!==null?e.memoizedProps:null,s=a.children,Ad(n,a)?s=null:o!==null&&Ad(n,o)&&(t.flags|=32),kx(e,t),St(e,t,s,r),t.child;case 6:return e===null&&zd(t),null;case 13:return _x(e,t,r);case 4:return _c(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Ua(t,null,n,r):St(e,t,n,r),t.child;case 11:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:cr(n,a),Oh(e,t,n,a,r);case 7:return St(e,t,t.pendingProps,r),t.child;case 8:return St(e,t,t.pendingProps.children,r),t.child;case 12:return St(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,a=t.pendingProps,o=t.memoizedProps,s=a.value,Pe(Gl,n._currentValue),n._currentValue=s,o!==null)if(gr(o.value,s)){if(o.children===a.children&&!Et.current){t=$r(e,t,r);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){s=o.child;for(var i=l.firstContext;i!==null;){if(i.context===n){if(o.tag===1){i=Br(-1,r&-r),i.tag=2;var d=o.updateQueue;if(d!==null){d=d.shared;var u=d.pending;u===null?i.next=i:(i.next=u.next,u.next=i),d.pending=i}}o.lanes|=r,i=o.alternate,i!==null&&(i.lanes|=r),Ud(o.return,r,t),l.lanes|=r;break}i=i.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(A(341));s.lanes|=r,l=s.alternate,l!==null&&(l.lanes|=r),Ud(s,r,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}St(e,t,a.children,r),t=t.child}return t;case 9:return a=t.type,n=t.pendingProps.children,Da(t,r),a=Jt(a),n=n(a),t.flags|=1,St(e,t,n,r),t.child;case 14:return n=t.type,a=cr(n,t.pendingProps),a=cr(n.type,a),Fh(e,t,n,a,r);case 15:return Cx(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:cr(n,a),El(e,t),t.tag=1,Nt(n)?(e=!0,jl(t)):e=!1,Da(t,r),wx(t,n,a),$d(t,n,a,r),Wd(null,t,n,!0,e,r);case 19:return Mx(e,t,r);case 22:return Lx(e,t,r)}throw Error(A(156,t.tag))};function jx(e,t){return xg(e,t)}function g1(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Qt(e,t,r,n){return new g1(e,t,r,n)}function $c(e){return e=e.prototype,!(!e||!e.isReactComponent)}function x1(e){if(typeof e=="function")return $c(e)?1:0;if(e!=null){if(e=e.$$typeof,e===lc)return 11;if(e===ic)return 14}return 2}function mn(e,t){var r=e.alternate;return r===null?(r=Qt(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Tl(e,t,r,n,a,o){var s=2;if(n=e,typeof e=="function")$c(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case wa:return zn(r.children,a,o,t);case sc:s=8,a|=8;break;case fd:return e=Qt(12,r,t,a|2),e.elementType=fd,e.lanes=o,e;case pd:return e=Qt(13,r,t,a),e.elementType=pd,e.lanes=o,e;case md:return e=Qt(19,r,t,a),e.elementType=md,e.lanes=o,e;case eg:return mi(r,a,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Jh:s=10;break e;case Zh:s=9;break e;case lc:s=11;break e;case ic:s=14;break e;case en:s=16,n=null;break e}throw Error(A(130,e==null?e:typeof e,""))}return t=Qt(s,r,t,a),t.elementType=e,t.type=n,t.lanes=o,t}function zn(e,t,r,n){return e=Qt(7,e,n,t),e.lanes=r,e}function mi(e,t,r,n){return e=Qt(22,e,n,t),e.elementType=eg,e.lanes=r,e.stateNode={isHidden:!1},e}function ud(e,t,r){return e=Qt(6,e,null,t),e.lanes=r,e}function dd(e,t,r){return t=Qt(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function v1(e,t,r,n,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Gu(0),this.expirationTimes=Gu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Gu(0),this.identifierPrefix=n,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function Hc(e,t,r,n,a,o,s,l,i){return e=new v1(e,t,r,l,i),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Qt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ic(o),e}function y1(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ya,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function Wx(e){if(!e)return gn;e=e._reactInternals;e:{if(Vn(e)!==e||e.tag!==1)throw Error(A(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Nt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(A(171))}if(e.tag===1){var r=e.type;if(Nt(r))return Wg(e,r,t)}return t}function Vx(e,t,r,n,a,o,s,l,i){return e=Hc(r,n,!0,e,a,o,s,l,i),e.context=Wx(null),r=e.current,n=Ct(),a=pn(r),o=Br(n,a),o.callback=t??null,cn(r,o,a),e.current.lanes=a,Zo(e,a,n),Pt(e,n),e}function hi(e,t,r,n){var a=t.current,o=Ct(),s=pn(a);return r=Wx(r),t.context===null?t.context=r:t.pendingContext=r,t=Br(o,s),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=cn(a,t,s),e!==null&&(hr(e,a,s,o),_l(e,a,s)),s}function ni(e){return e=e.current,e.child?(e.child.tag===5,e.child.stateNode):null}function Kh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function jc(e,t){Kh(e,t),(e=e.alternate)&&Kh(e,t)}function w1(){return null}var Gx=typeof reportError=="function"?reportError:function(e){console.error(e)};function Wc(e){this._internalRoot=e}gi.prototype.render=Wc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(A(409));hi(e,t,null,null)};gi.prototype.unmount=Wc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;jn(function(){hi(null,e,null,null)}),t[Ur]=null}};function gi(e){this._internalRoot=e}gi.prototype.unstable_scheduleHydration=function(e){if(e){var t=Lg();e={blockedOn:null,target:e,priority:t};for(var r=0;r<rn.length&&t!==0&&t<rn[r].priority;r++);rn.splice(r,0,e),r===0&&Ig(e)}};function Vc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function xi(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Qh(){}function b1(e,t,r,n,a){if(a){if(typeof n=="function"){var o=n;n=function(){var d=ni(s);o.call(d)}}var s=Vx(t,n,e,0,null,!1,!1,"",Qh);return e._reactRootContainer=s,e[Ur]=s.current,jo(e.nodeType===8?e.parentNode:e),jn(),s}for(;a=e.lastChild;)e.removeChild(a);if(typeof n=="function"){var l=n;n=function(){var d=ni(i);l.call(d)}}var i=Hc(e,0,!1,null,null,!1,!1,"",Qh);return e._reactRootContainer=i,e[Ur]=i.current,jo(e.nodeType===8?e.parentNode:e),jn(function(){hi(t,i,r,n)}),i}function vi(e,t,r,n,a){var o=r._reactRootContainer;if(o){var s=o;if(typeof a=="function"){var l=a;a=function(){var i=ni(s);l.call(i)}}hi(t,s,e,a)}else s=b1(r,t,e,a,n);return ni(s)}Sg=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=ko(t.pendingLanes);r!==0&&(cc(t,r|1),Pt(t,Ge()),(xe&6)===0&&(Ha=Ge()+500,yn()))}break;case 13:jn(function(){var n=qr(e,1);if(n!==null){var a=Ct();hr(n,e,1,a)}}),jc(e,1)}};fc=function(e){if(e.tag===13){var t=qr(e,134217728);if(t!==null){var r=Ct();hr(t,e,134217728,r)}jc(e,134217728)}};Cg=function(e){if(e.tag===13){var t=pn(e),r=qr(e,t);if(r!==null){var n=Ct();hr(r,e,t,n)}jc(e,t)}};Lg=function(){return Ie};kg=function(e,t){var r=Ie;try{return Ie=e,t()}finally{Ie=r}};Ld=function(e,t,r){switch(t){case"input":if(xd(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var a=ii(n);if(!a)throw Error(A(90));rg(n),xd(n,a)}}}break;case"textarea":ag(e,r);break;case"select":t=r.value,t!=null&&Na(e,!!r.multiple,t,!1)}};cg=zc;fg=jn;var S1={usingClientEntryPoint:!1,Events:[ts,La,ii,ug,dg,zc]},bo={findFiberByHostInstance:Dn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},C1={bundleType:bo.bundleType,version:bo.version,rendererPackageName:bo.rendererPackageName,rendererConfig:bo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Hr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=hg(e),e===null?null:e.stateNode},findFiberByHostInstance:bo.findFiberByHostInstance||w1,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(So=__REACT_DEVTOOLS_GLOBAL_HOOK__,!So.isDisabled&&So.supportsFiber))try{ai=So.inject(C1),Mr=So}catch{}var So;$t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=S1;$t.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Vc(t))throw Error(A(200));return y1(e,t,null,r)};$t.createRoot=function(e,t){if(!Vc(e))throw Error(A(299));var r=!1,n="",a=Gx;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=Hc(e,1,!1,null,null,r,!1,n,a),e[Ur]=t.current,jo(e.nodeType===8?e.parentNode:e),new Wc(t)};$t.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(A(188)):(e=Object.keys(e).join(","),Error(A(268,e)));return e=hg(t),e=e===null?null:e.stateNode,e};$t.flushSync=function(e){return jn(e)};$t.hydrate=function(e,t,r){if(!xi(t))throw Error(A(200));return vi(null,e,t,!0,r)};$t.hydrateRoot=function(e,t,r){if(!Vc(e))throw Error(A(405));var n=r!=null&&r.hydratedSources||null,a=!1,o="",s=Gx;if(r!=null&&(r.unstable_strictMode===!0&&(a=!0),r.identifierPrefix!==void 0&&(o=r.identifierPrefix),r.onRecoverableError!==void 0&&(s=r.onRecoverableError)),t=Vx(t,null,e,1,r??null,a,!1,o,s),e[Ur]=t.current,jo(e),n)for(e=0;e<n.length;e++)r=n[e],a=r._getVersion,a=a(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,a]:t.mutableSourceEagerHydrationData.push(r,a);return new gi(t)};$t.render=function(e,t,r){if(!xi(t))throw Error(A(200));return vi(null,e,t,!1,r)};$t.unmountComponentAtNode=function(e){if(!xi(e))throw Error(A(40));return e._reactRootContainer?(jn(function(){vi(null,null,e,!1,function(){e._reactRootContainer=null,e[Ur]=null})}),!0):!1};$t.unstable_batchedUpdates=zc;$t.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!xi(r))throw Error(A(200));if(e==null||e._reactInternals===void 0)throw Error(A(38));return vi(e,t,r,!1,n)};$t.version="18.3.1-next-f1338f8080-20240426"});var Yx=Tr((G_,Qx)=>{"use strict";function Kx(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Kx)}catch(e){console.error(e)}}Kx(),Qx.exports=Xx()});var Zx=Tr(Gc=>{"use strict";var Jx=Yx();Gc.createRoot=Jx.createRoot,Gc.hydrateRoot=Jx.hydrateRoot;var X_});var tv=Tr(yi=>{"use strict";var L1=me(),k1=Symbol.for("react.element"),I1=Symbol.for("react.fragment"),_1=Object.prototype.hasOwnProperty,M1=L1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,R1={key:!0,ref:!0,__self:!0,__source:!0};function ev(e,t,r){var n,a={},o=null,s=null;r!==void 0&&(o=""+r),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(n in t)_1.call(t,n)&&!R1.hasOwnProperty(n)&&(a[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)a[n]===void 0&&(a[n]=t[n]);return{$$typeof:k1,type:e,key:o,ref:s,props:a,_owner:M1.current}}yi.Fragment=I1;yi.jsx=ev;yi.jsxs=ev});var ce=Tr((Y_,rv)=>{"use strict";rv.exports=tv()});var U_={};o0(U_,{default:()=>z_,mount:()=>Wb});var Hb=B(me(),1),jb=B(Zx(),1);var Yr=B(me(),1);var X=B(me(),1);var Tt=B(me(),1),fe=B(ce(),1),wi=(...e)=>e.filter(Boolean).join(" ");function gt({label:e,pressed:t,className:r,children:n,...a}){return(0,fe.jsx)(Xc,{content:e,children:(0,fe.jsx)("button",{className:wi("lum-iconbtn",r),"aria-label":e,"aria-pressed":t,...a,children:n})})}function wn({tone:e="default",children:t,className:r}){return(0,fe.jsx)("span",{className:wi("lum-badge",e!=="default"&&`lum-badge--${e}`,r),children:t})}function Xc({content:e,children:t}){return e?(0,fe.jsxs)("span",{className:"lum-tip",children:[t,(0,fe.jsx)("span",{className:"lum-tip__bubble",role:"tooltip",children:e})]}):(0,fe.jsx)(fe.Fragment,{children:t})}function Kc({open:e,onClose:t,title:r,children:n}){return(0,Tt.useEffect)(()=>{if(!e)return;let a=o=>o.key==="Escape"&&t();return window.addEventListener("keydown",a),()=>window.removeEventListener("keydown",a)},[e,t]),e?(0,fe.jsxs)(fe.Fragment,{children:[(0,fe.jsx)("div",{className:"lum-drawer__scrim",onClick:t}),(0,fe.jsxs)("aside",{className:"lum-drawer",role:"dialog","aria-modal":"true","aria-label":typeof r=="string"?r:"Details",children:[(0,fe.jsxs)("div",{className:"lum-drawer__header",children:[(0,fe.jsx)("strong",{children:r}),(0,fe.jsx)(gt,{label:"Close",onClick:t,children:"\u2715"})]}),(0,fe.jsx)("div",{className:"lum-drawer__body",children:n})]})]}):null}function Qc({width:e,height:t=14,className:r,radius:n}){return(0,fe.jsx)("div",{className:wi("lum-skeleton",r),style:{width:e??"100%",height:t,borderRadius:n},"aria-hidden":!0})}var E1=(0,Tt.createContext)(()=>{});function nv({children:e}){let[t,r]=(0,Tt.useState)([]),n=(0,Tt.useCallback)((a,o="default")=>{let s=Date.now()+Math.floor(performance.now());r(l=>[...l,{id:s,text:a,tone:o}]),setTimeout(()=>r(l=>l.filter(i=>i.id!==s)),3200)},[]);return(0,fe.jsxs)(E1.Provider,{value:n,children:[e,(0,fe.jsx)("div",{className:"lum-toasts",role:"status","aria-live":"polite",children:t.map(a=>(0,fe.jsx)("div",{className:wi("lum-toast",a.tone&&a.tone!=="default"&&`lum-toast--${a.tone}`),children:a.text},a.id))})]})}function av({trigger:e,options:t,value:r,onSelect:n,placement:a="bottom"}){let[o,s]=(0,Tt.useState)(!1),l=(0,Tt.useRef)(null);return(0,Tt.useEffect)(()=>{if(!o)return;let i=u=>{l.current&&!l.current.contains(u.target)&&s(!1)},d=u=>u.key==="Escape"&&s(!1);return document.addEventListener("mousedown",i),document.addEventListener("keydown",d),()=>{document.removeEventListener("mousedown",i),document.removeEventListener("keydown",d)}},[o]),(0,fe.jsxs)("div",{className:"lum-menu",ref:l,children:[(0,fe.jsx)("span",{onClick:()=>s(i=>!i),children:e}),o&&(0,fe.jsx)("div",{className:`lum-menu__list${a==="top"?" lum-menu__list--up":""}`,role:"menu",children:t.map(i=>(0,fe.jsxs)("button",{role:"menuitemradio","aria-checked":r===i.value,className:"lum-menu__item",onClick:()=>{n(i.value),s(!1)},children:[i.label,r===i.value&&(0,fe.jsx)("span",{"aria-hidden":!0,children:"\u2713"})]},String(i.value)))})]})}function er({title:e,children:t,icon:r,action:n}){return(0,fe.jsxs)("div",{className:"lum-state",children:[r&&(0,fe.jsx)("div",{className:"lum-state__icon",children:r}),(0,fe.jsx)("div",{className:"lum-state__title",children:e}),t&&(0,fe.jsx)("div",{children:t}),n]})}function ov({title:e,children:t,action:r}){return(0,fe.jsxs)("div",{className:"lum-state lum-state--error",role:"alert",children:[(0,fe.jsx)("div",{className:"lum-state__icon",children:"\u26A0"}),(0,fe.jsx)("div",{className:"lum-state__title",children:e}),t&&(0,fe.jsx)("div",{children:t}),r]})}var sv=e=>{let t,r=new Set,n=(d,u)=>{let p=typeof d=="function"?d(t):d;if(!Object.is(p,t)){let c=t;t=u??(typeof p!="object"||p===null)?p:Object.assign({},t,p),r.forEach(f=>f(t,c))}},a=()=>t,l={setState:n,getState:a,getInitialState:()=>i,subscribe:d=>(r.add(d),()=>r.delete(d))},i=t=e(n,a,l);return l},lv=(e=>e?sv(e):sv);var vu=B(me(),1);var ns=B(me(),1);var N1=e=>e;function iv(e,t=N1){let r=ns.default.useSyncExternalStore(e.subscribe,ns.default.useCallback(()=>t(e.getState()),[e,t]),ns.default.useCallback(()=>t(e.getInitialState()),[e,t]));return ns.default.useDebugValue(r),r}var yb=B(ce(),1),yu=B(me(),1),bb=B(ce(),1);var P1=Object.defineProperty,T1=(e,t,r)=>t in e?P1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,R=(e,t,r)=>T1(e,typeof t!="symbol"?t+"":t,r),uv,A1=Object.defineProperty,D1=(e,t,r)=>t in e?A1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,dv=(e,t,r)=>D1(e,typeof t!="symbol"?t+"":t,r),ae=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(ae||{}),cv={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},fv={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},bi={},Ky={},O1=()=>!!globalThis.Zone;function Ep(e){if(bi[e])return bi[e];let t=globalThis[e],r=t.prototype,n=e in cv?cv[e]:void 0,a=!!(n&&n.every(l=>{var i,d;return!!((d=(i=Object.getOwnPropertyDescriptor(r,l))==null?void 0:i.get)!=null&&d.toString().includes("[native code]"))})),o=e in fv?fv[e]:void 0,s=!!(o&&o.every(l=>{var i;return typeof r[l]=="function"&&((i=r[l])==null?void 0:i.toString().includes("[native code]"))}));if(a&&s&&!O1())return bi[e]=t.prototype,t.prototype;try{let l=document.createElement("iframe");l.style.display="none",document.body.appendChild(l);let i=l.contentWindow;if(!i)return t.prototype;let d=i[e].prototype;if(!d)return l.remove(),r;let u=navigator.userAgent;return u.includes("Safari")&&!u.includes("Chrome")?(l.classList.add("rr-block"),l.setAttribute("__rrwebUntaintedMutationObserver",""),Ky[e]=()=>l.remove()):l.remove(),bi[e]=d}catch{return r}}var Yc={};function Gr(e,t,r){var n;let a=`${e}.${String(r)}`;if(Yc[a])return Yc[a].call(t);let o=Ep(e),s=(n=Object.getOwnPropertyDescriptor(o,r))==null?void 0:n.get;return s?(Yc[a]=s,s.call(t)):t[r]}var Jc={};function Qy(e,t,r){let n=`${e}.${String(r)}`;if(Jc[n])return Jc[n].bind(t);let o=Ep(e)[r];return typeof o!="function"?t[r]:(Jc[n]=o,o.bind(t))}function F1(e){return Gr("Node",e,"ownerDocument")}function B1(e){return Gr("Node",e,"childNodes")}function z1(e){return Gr("Node",e,"parentNode")}function U1(e){return Gr("Node",e,"parentElement")}function q1(e){return Gr("Node",e,"textContent")}function $1(e,t){return Qy("Node",e,"contains")(t)}function H1(e){return Qy("Node",e,"getRootNode")()}function j1(e){return!e||!("host"in e)?null:Gr("ShadowRoot",e,"host")}function W1(e){return e.styleSheets}function V1(e){return!e||!("shadowRoot"in e)?null:Gr("Element",e,"shadowRoot")}function G1(e,t){return Gr("Element",e,"querySelector")(t)}function X1(e,t){return Gr("Element",e,"querySelectorAll")(t)}function K1(){return[Ep("MutationObserver").constructor,Ky.MutationObserver??(()=>{})]}var Yy=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Yy=()=>new Date().getTime());function Q1(e,t,r){try{if(!(t in e))return()=>{};let n=e[t],a=r(n);return typeof a=="function"&&(a.prototype=a.prototype||{},Object.defineProperties(a,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=a,()=>{e[t]=n}}catch{return()=>{}}}var xt={ownerDocument:F1,childNodes:B1,parentNode:z1,parentElement:U1,textContent:q1,contains:$1,getRootNode:H1,host:j1,styleSheets:W1,shadowRoot:V1,querySelector:G1,querySelectorAll:X1,nowTimestamp:Yy,mutationObserverCtor:K1,patch:Q1};function Np(e){return e.nodeType===e.ELEMENT_NODE}function ls(e){let t=e&&"host"in e&&"mode"in e&&xt.host(e)||null;return!!(t&&"shadowRoot"in t&&xt.shadowRoot(t)===e)}function is(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function Y1(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function J1(e){let{cssText:t}=e;if(t.split('"').length<3)return t;let r=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}function sp(e){try{let t=e.rules||e.cssRules;if(!t)return null;let r=e.href;!r&&e.ownerNode&&(r=e.ownerNode.baseURI);let n=Array.from(t,a=>Jy(a,r)).join("");return Y1(n)}catch{return null}}function Jy(e,t){if(eC(e)){let r;try{r=sp(e.styleSheet)||J1(e)}catch{r=e.cssText}return e.styleSheet.href?Di(r,e.styleSheet.href):r}else{let r=e.cssText;return tC(e)&&e.selectorText.includes(":")&&(r=Z1(r)),t?Di(r,t):r}}function Z1(e){let t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function eC(e){return"styleSheet"in e}function tC(e){return"selectorText"in e}var fs=class{constructor(){dv(this,"idNodeMap",new Map),dv(this,"nodeMetaMap",new WeakMap)}getId(t){var r;return t?((r=this.getMeta(t))==null?void 0:r.id)??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){let r=this.getId(t);this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(n=>this.removeNodeFromMap(n))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){let n=r.id;this.idNodeMap.set(n,t),this.nodeMetaMap.set(t,r)}replace(t,r){let n=this.getNode(t);if(n){let a=this.nodeMetaMap.get(n);a&&this.nodeMetaMap.set(r,a)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function Zy(){return new fs}function Ti({element:e,maskInputOptions:t,tagName:r,type:n,value:a,maskInputFn:o}){let s=a||"",l=n&&Ln(n);return(t[r.toLowerCase()]||l&&t[l])&&(o?s=o(s,e):s="*".repeat(s.length)),s}function Ln(e){return e.toLowerCase()}var pv="__rrweb_original__";function rC(e){let t=e.getContext("2d");if(!t)return!0;let r=50;for(let n=0;n<e.width;n+=r)for(let a=0;a<e.height;a+=r){let o=t.getImageData,s=pv in o?o[pv]:o;if(new Uint32Array(s.call(t,n,a,Math.min(r,e.width-n),Math.min(r,e.height-a)).data.buffer).some(i=>i!==0))return!1}return!0}function nC(e,t){return!e||!t||e.type!==t.type?!1:e.type===ae.Document?e.compatMode===t.compatMode:e.type===ae.DocumentType?e.name===t.name&&e.publicId===t.publicId&&e.systemId===t.systemId:e.type===ae.Comment||e.type===ae.Text||e.type===ae.CDATA?e.textContent===t.textContent:e.type===ae.Element?e.tagName===t.tagName&&JSON.stringify(e.attributes)===JSON.stringify(t.attributes)&&e.isSVG===t.isSVG&&e.needBlock===t.needBlock:!1}function Ai(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Ln(t):null}function Pp(e,t){let r;try{r=new URL(e,t??window.location.href)}catch{return null}let n=/\.([0-9a-z]+)(?:$)/i,a=r.pathname.match(n);return a?.[1]??null}function aC(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}var oC=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,sC=/^(?:[a-z+]+:)?\/\//i,lC=/^www\..*/i,iC=/^(data:)([^,]*),(.*)/i;function Di(e,t){return(e||"").replace(oC,(r,n,a,o,s,l)=>{let i=a||s||l,d=n||o||"";if(!i)return r;if(sC.test(i)||lC.test(i))return`url(${d}${i}${d})`;if(iC.test(i))return`url(${d}${i}${d})`;if(i[0]==="/")return`url(${d}${aC(t)+i}${d})`;let u=t.split("/"),p=i.split("/");u.pop();for(let c of p)c!=="."&&(c===".."?u.pop():u.push(c));return`url(${d}${u.join("/")}${d})`})}function Si(e,t=!1){return t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function uC(e,t,r=!1){let n=Array.from(t.childNodes),a=[],o=0;if(n.length>1&&e&&typeof e=="string"){let s=Si(e,r),l=s.length/e.length;for(let i=1;i<n.length;i++)if(n[i].textContent&&typeof n[i].textContent=="string"){let d=Si(n[i].textContent,r),u=100,p=3;for(;p<d.length&&(d[p].match(/[a-zA-Z0-9]/)||d.indexOf(d.substring(0,p),1)!==-1);p++);for(;p<d.length;p++){let c=d.substring(0,p),f=s.split(c),h=-1;if(f.length===2)h=f[0].length;else if(f.length>2&&f[0]===""&&n[i-1].textContent!=="")h=s.indexOf(c,1);else if(f.length===1){if(c=c.substring(0,c.length-1),f=s.split(c),f.length<=1)return a.push(e),a;p=u+1}else p===d.length-1&&(h=s.indexOf(c));if(f.length>=2&&p>u){let m=n[i-1].textContent;if(m&&typeof m=="string"){let y=Si(m).length;h=s.indexOf(c,y)}h===-1&&(h=f[0].length)}if(h!==-1){let m=Math.floor(h/l);for(;m>0&&m<e.length;){if(o+=1,o>50*n.length)return a.push(e),a;let y=Si(e.substring(0,m),r);if(y.length===h){a.push(e.substring(0,m)),e=e.substring(m),s=s.substring(h);break}else y.length<h?m+=Math.max(1,Math.floor((h-y.length)/l)):m-=Math.max(1,Math.floor((y.length-h)*l))}break}}}}return a.push(e),a}function dC(e,t){return uC(e,t).join("/* rr_split */")}var cC=1,fC=new RegExp("[^a-z0-9-_:]"),ps=-2;function ew(){return cC++}function pC(e){if(e instanceof HTMLFormElement)return"form";let t=Ln(e.tagName);return fC.test(t)?"div":t}var Va,mv,mC=/^[^ \t\n\r\u000c]+/,hC=/^[, \t\n\r\u000c]+/;function gC(e,t){if(t.trim()==="")return t;let r=0;function n(o){let s,l=o.exec(t.substring(r));return l?(s=l[0],r+=s.length,s):""}let a=[];for(;n(hC),!(r>=t.length);){let o=n(mC);if(o.slice(-1)===",")o=Qa(e,o.substring(0,o.length-1)),a.push(o);else{let s="";o=Qa(e,o);let l=!1;for(;;){let i=t.charAt(r);if(i===""){a.push((o+s).trim());break}else if(l)i===")"&&(l=!1);else if(i===","){r+=1,a.push((o+s).trim());break}else i==="("&&(l=!0);s+=i,r+=1}}}return a.join(", ")}var hv=new WeakMap;function Qa(e,t){return!t||t.trim()===""?t:Tp(e,t)}function xC(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function Tp(e,t){let r=hv.get(e);if(r||(r=e.createElement("a"),hv.set(e,r)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return r.setAttribute("href",t),r.href}function tw(e,t,r,n){return n&&(r==="src"||r==="href"&&!(t==="use"&&n[0]==="#")||r==="xlink:href"&&n[0]!=="#"||r==="background"&&["table","td","th"].includes(t)?Qa(e,n):r==="srcset"?gC(e,n):r==="style"?Di(n,Tp(e)):t==="object"&&r==="data"?Qa(e,n):n)}function rw(e,t,r){return["video","audio"].includes(e)&&t==="autoplay"}function vC(e,t,r){try{if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){let a=e.classList[n];if(t.test(a))return!0}if(r)return e.matches(r)}catch{}return!1}function Oi(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return r?Oi(xt.parentNode(e),t,r):!1;for(let n=e.classList.length;n--;){let a=e.classList[n];if(t.test(a))return!0}return r?Oi(xt.parentNode(e),t,r):!1}function nw(e,t,r,n){let a;if(Np(e)){if(a=e,!xt.childNodes(a).length)return!1}else{if(xt.parentElement(e)===null)return!1;a=xt.parentElement(e)}try{if(typeof t=="string"){if(n){if(a.closest(`.${t}`))return!0}else if(a.classList.contains(t))return!0}else if(Oi(a,t,n))return!0;if(r){if(n){if(a.closest(r))return!0}else if(a.matches(r))return!0}}catch{}return!1}function yC(e,t,r){let n=e.contentWindow;if(!n)return;let a=!1,o;try{o=n.document.readyState}catch{return}if(o!=="complete"){let l=setTimeout(()=>{a||(t(),a=!0)},r);e.addEventListener("load",()=>{clearTimeout(l),a=!0,t()});return}let s="about:blank";if(n.location.href!==s||e.src===s||e.src==="")return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function wC(e,t,r){let n=!1,a;try{a=e.sheet}catch{return}if(a)return;let o=setTimeout(()=>{n||(t(),n=!0)},r);e.addEventListener("load",()=>{clearTimeout(o),n=!0,t()})}function bC(e,t){let{doc:r,mirror:n,blockClass:a,blockSelector:o,needsMask:s,inlineStylesheet:l,maskInputOptions:i={},maskTextFn:d,maskInputFn:u,dataURLOptions:p={},inlineImages:c,recordCanvas:f,keepIframeSrcFn:h,newlyAddedElement:m=!1,cssCaptured:y=!1}=t,g=SC(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:ae.Document,childNodes:[],compatMode:e.compatMode}:{type:ae.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:ae.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:g};case e.ELEMENT_NODE:return LC(e,{doc:r,blockClass:a,blockSelector:o,inlineStylesheet:l,maskInputOptions:i,maskInputFn:u,dataURLOptions:p,inlineImages:c,recordCanvas:f,keepIframeSrcFn:h,newlyAddedElement:m,rootId:g});case e.TEXT_NODE:return CC(e,{doc:r,needsMask:s,maskTextFn:d,rootId:g,cssCaptured:y});case e.CDATA_SECTION_NODE:return{type:ae.CDATA,textContent:"",rootId:g};case e.COMMENT_NODE:return{type:ae.Comment,textContent:xt.textContent(e)||"",rootId:g};default:return!1}}function SC(e,t){if(!t.hasNode(e))return;let r=t.getId(e);return r===1?void 0:r}function CC(e,t){let{needsMask:r,maskTextFn:n,rootId:a,cssCaptured:o}=t,s=xt.parentNode(e),l=s&&s.tagName,i="",d=l==="STYLE"?!0:void 0,u=l==="SCRIPT"?!0:void 0;return u?i="SCRIPT_PLACEHOLDER":o||(i=xt.textContent(e),d&&i&&(i=Di(i,Tp(t.doc)))),!d&&!u&&i&&r&&(i=n?n(i,xt.parentElement(e)):i.replace(/[\S]/g,"*")),{type:ae.Text,textContent:i||"",rootId:a}}function LC(e,t){let{doc:r,blockClass:n,blockSelector:a,inlineStylesheet:o,maskInputOptions:s={},maskInputFn:l,dataURLOptions:i={},inlineImages:d,recordCanvas:u,keepIframeSrcFn:p,newlyAddedElement:c=!1,rootId:f}=t,h=vC(e,n,a),m=pC(e),y={},g=e.attributes.length;for(let v=0;v<g;v++){let S=e.attributes[v];rw(m,S.name,S.value)||(y[S.name]=tw(r,m,Ln(S.name),S.value))}if(m==="link"&&o){let v=Array.from(r.styleSheets).find(b=>b.href===e.href),S=null;v&&(S=sp(v)),S&&(delete y.rel,delete y.href,y._cssText=S)}if(m==="style"&&e.sheet){let v=sp(e.sheet);v&&(e.childNodes.length>1&&(v=dC(v,e)),y._cssText=v)}if(["input","textarea","select"].includes(m)){let v=e.value,S=e.checked;y.type!=="radio"&&y.type!=="checkbox"&&y.type!=="submit"&&y.type!=="button"&&v?y.value=Ti({element:e,type:Ai(e),tagName:m,value:v,maskInputOptions:s,maskInputFn:l}):S&&(y.checked=S)}if(m==="option"&&(e.selected&&!s.select?y.selected=!0:delete y.selected),m==="dialog"&&e.open&&(y.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),m==="canvas"&&u){if(e.__context==="2d")rC(e)||(y.rr_dataURL=e.toDataURL(i.type,i.quality));else if(!("__context"in e)){let v=e.toDataURL(i.type,i.quality),S=r.createElement("canvas");S.width=e.width,S.height=e.height;let b=S.toDataURL(i.type,i.quality);v!==b&&(y.rr_dataURL=v)}}if(m==="img"&&d){Va||(Va=r.createElement("canvas"),mv=Va.getContext("2d"));let v=e,S=v.currentSrc||v.getAttribute("src")||"<unknown-src>",b=v.crossOrigin,w=()=>{v.removeEventListener("load",w);try{Va.width=v.naturalWidth,Va.height=v.naturalHeight,mv.drawImage(v,0,0),y.rr_dataURL=Va.toDataURL(i.type,i.quality)}catch(C){if(v.crossOrigin!=="anonymous"){v.crossOrigin="anonymous",v.complete&&v.naturalWidth!==0?w():v.addEventListener("load",w);return}else console.warn(`Cannot inline img src=${S}! Error: ${C}`)}v.crossOrigin==="anonymous"&&(b?y.crossOrigin=b:v.removeAttribute("crossorigin"))};v.complete&&v.naturalWidth!==0?w():v.addEventListener("load",w)}if(["audio","video"].includes(m)){let v=y;v.rr_mediaState=e.paused?"paused":"played",v.rr_mediaCurrentTime=e.currentTime,v.rr_mediaPlaybackRate=e.playbackRate,v.rr_mediaMuted=e.muted,v.rr_mediaLoop=e.loop,v.rr_mediaVolume=e.volume}if(c||(e.scrollLeft&&(y.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(y.rr_scrollTop=e.scrollTop)),h){let{width:v,height:S}=e.getBoundingClientRect();y={class:y.class,rr_width:`${v}px`,rr_height:`${S}px`}}m==="iframe"&&!p(y.src)&&(e.contentDocument||(y.rr_src=y.src),delete y.src);let x;try{customElements.get(m)&&(x=!0)}catch{}return{type:ae.Element,tagName:m,attributes:y,childNodes:[],isSVG:xC(e)||void 0,needBlock:h,rootId:f,isCustom:x}}function Te(e){return e==null?"":e.toLowerCase()}function aw(e){return e===!0||e==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:e==="all",headMetaDescKeywords:e==="all",headTitleMutations:e==="all"}:e||{}}function kC(e,t){if(t.comment&&e.type===ae.Comment)return!0;if(e.type===ae.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"&&e.attributes.as==="script"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&Pp(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(Te(e.attributes.name).match(/^msapplication-tile(image|color)$/)||Te(e.attributes.name)==="application-name"||Te(e.attributes.rel)==="icon"||Te(e.attributes.rel)==="apple-touch-icon"||Te(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&Te(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Te(e.attributes.property).match(/^(og|twitter|fb):/)||Te(e.attributes.name).match(/^(og|twitter):/)||Te(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(Te(e.attributes.name)==="robots"||Te(e.attributes.name)==="googlebot"||Te(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(Te(e.attributes.name)==="author"||Te(e.attributes.name)==="generator"||Te(e.attributes.name)==="framework"||Te(e.attributes.name)==="publisher"||Te(e.attributes.name)==="progid"||Te(e.attributes.property).match(/^article:/)||Te(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(Te(e.attributes.name)==="google-site-verification"||Te(e.attributes.name)==="yandex-verification"||Te(e.attributes.name)==="csrf-token"||Te(e.attributes.name)==="p:domain_verify"||Te(e.attributes.name)==="verify-v1"||Te(e.attributes.name)==="verification"||Te(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Ya(e,t){let{doc:r,mirror:n,blockClass:a,blockSelector:o,maskTextClass:s,maskTextSelector:l,skipChild:i=!1,inlineStylesheet:d=!0,maskInputOptions:u={},maskTextFn:p,maskInputFn:c,slimDOMOptions:f,dataURLOptions:h={},inlineImages:m=!1,recordCanvas:y=!1,onSerialize:g,onIframeLoad:x,iframeLoadTimeout:v=5e3,onStylesheetLoad:S,stylesheetLoadTimeout:b=5e3,keepIframeSrcFn:w=()=>!1,newlyAddedElement:C=!1,cssCaptured:L=!1}=t,{needsMask:k}=t,{preserveWhiteSpace:_=!0}=t;k||(k=nw(e,s,l,k===void 0));let N=bC(e,{doc:r,mirror:n,blockClass:a,blockSelector:o,needsMask:k,inlineStylesheet:d,maskInputOptions:u,maskTextFn:p,maskInputFn:c,dataURLOptions:h,inlineImages:m,recordCanvas:y,keepIframeSrcFn:w,newlyAddedElement:C,cssCaptured:L});if(!N)return console.warn(e,"not serialized"),null;let P;n.hasNode(e)?P=n.getId(e):kC(N,f)||!_&&N.type===ae.Text&&!N.textContent.replace(/^\s+|\s+$/gm,"").length?P=ps:P=ew();let I=Object.assign(N,{id:P});if(n.add(e,I),P===ps)return null;g&&g(e);let re=!i;if(I.type===ae.Element){re=re&&!I.needBlock,delete I.needBlock;let se=xt.shadowRoot(e);se&&is(se)&&(I.isShadowHost=!0)}if((I.type===ae.Document||I.type===ae.Element)&&re){f.headWhitespace&&I.type===ae.Element&&I.tagName==="head"&&(_=!1);let se={doc:r,mirror:n,blockClass:a,blockSelector:o,needsMask:k,maskTextClass:s,maskTextSelector:l,skipChild:i,inlineStylesheet:d,maskInputOptions:u,maskTextFn:p,maskInputFn:c,slimDOMOptions:f,dataURLOptions:h,inlineImages:m,recordCanvas:y,preserveWhiteSpace:_,onSerialize:g,onIframeLoad:x,iframeLoadTimeout:v,onStylesheetLoad:S,stylesheetLoadTimeout:b,keepIframeSrcFn:w,cssCaptured:!1};if(!(I.type===ae.Element&&I.tagName==="textarea"&&I.attributes.value!==void 0)){I.type===ae.Element&&I.attributes._cssText!==void 0&&typeof I.attributes._cssText=="string"&&(se.cssCaptured=!0);for(let ve of Array.from(xt.childNodes(e))){let Me=Ya(ve,se);Me&&I.childNodes.push(Me)}}let j=null;if(Np(e)&&(j=xt.shadowRoot(e)))for(let ve of Array.from(xt.childNodes(j))){let Me=Ya(ve,se);Me&&(is(j)&&(Me.isShadow=!0),I.childNodes.push(Me))}}let _e=xt.parentNode(e);return _e&&ls(_e)&&is(_e)&&(I.isShadow=!0),I.type===ae.Element&&I.tagName==="iframe"&&yC(e,()=>{let se=e.contentDocument;if(se&&x){let j=Ya(se,{doc:se,mirror:n,blockClass:a,blockSelector:o,needsMask:k,maskTextClass:s,maskTextSelector:l,skipChild:!1,inlineStylesheet:d,maskInputOptions:u,maskTextFn:p,maskInputFn:c,slimDOMOptions:f,dataURLOptions:h,inlineImages:m,recordCanvas:y,preserveWhiteSpace:_,onSerialize:g,onIframeLoad:x,iframeLoadTimeout:v,onStylesheetLoad:S,stylesheetLoadTimeout:b,keepIframeSrcFn:w});j&&x(e,j)}},v),I.type===ae.Element&&I.tagName==="link"&&typeof I.attributes.rel=="string"&&(I.attributes.rel==="stylesheet"||I.attributes.rel==="preload"&&typeof I.attributes.href=="string"&&Pp(I.attributes.href)==="css")&&wC(e,()=>{if(S){let se=Ya(e,{doc:r,mirror:n,blockClass:a,blockSelector:o,needsMask:k,maskTextClass:s,maskTextSelector:l,skipChild:!1,inlineStylesheet:d,maskInputOptions:u,maskTextFn:p,maskInputFn:c,slimDOMOptions:f,dataURLOptions:h,inlineImages:m,recordCanvas:y,preserveWhiteSpace:_,onSerialize:g,onIframeLoad:x,iframeLoadTimeout:v,onStylesheetLoad:S,stylesheetLoadTimeout:b,keepIframeSrcFn:w});se&&S(e,se)}},b),I}function IC(e,t){let{mirror:r=new fs,blockClass:n="rr-block",blockSelector:a=null,maskTextClass:o="rr-mask",maskTextSelector:s=null,inlineStylesheet:l=!0,inlineImages:i=!1,recordCanvas:d=!1,maskAllInputs:u=!1,maskTextFn:p,maskInputFn:c,slimDOM:f=!1,dataURLOptions:h,preserveWhiteSpace:m,onSerialize:y,onIframeLoad:g,iframeLoadTimeout:x,onStylesheetLoad:v,stylesheetLoadTimeout:S,keepIframeSrcFn:b=()=>!1}=t,w=u===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:u===!1?{password:!0}:u,C=aw(f);return Ya(e,{doc:e,mirror:r,blockClass:n,blockSelector:a,maskTextClass:o,maskTextSelector:s,skipChild:!1,inlineStylesheet:l,maskInputOptions:w,maskTextFn:p,maskInputFn:c,slimDOMOptions:C,dataURLOptions:h,inlineImages:i,recordCanvas:d,preserveWhiteSpace:m,onSerialize:y,onIframeLoad:g,iframeLoadTimeout:x,onStylesheetLoad:v,stylesheetLoadTimeout:S,keepIframeSrcFn:b,newlyAddedElement:!1})}var _C=/(max|min)-device-(width|height)/,gv=new RegExp(_C.source,"g"),MC={postcssPlugin:"postcss-custom-selectors",prepare(){return{postcssPlugin:"postcss-custom-selectors",AtRule:function(e){e.params.match(gv)&&(e.params=e.params.replace(gv,"$1-$2"))}}}},RC={postcssPlugin:"postcss-hover-classes",prepare:function(){let e=[];return{Rule:function(t){e.indexOf(t)===-1&&(e.push(t),t.selectors.forEach(function(r){r.includes(":hover")&&(t.selector+=`,
|
|
9
|
+
`+r.replace(/:hover/g,".\\:hover"))}))}}}};function EC(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function NC(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return e[n]}})}),r}var Ci={exports:{}},xv;function PC(){if(xv)return Ci.exports;xv=1;var e=String,t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e}};return Ci.exports=t(),Ci.exports.createColors=t,Ci.exports}var TC={},AC=Object.freeze(Object.defineProperty({__proto__:null,default:TC},Symbol.toStringTag,{value:"Module"})),vr=NC(AC),Zc,vv;function Ap(){if(vv)return Zc;vv=1;let e=PC(),t=vr;class r extends Error{constructor(a,o,s,l,i,d){super(a),this.name="CssSyntaxError",this.reason=a,i&&(this.file=i),l&&(this.source=l),d&&(this.plugin=d),typeof o<"u"&&typeof s<"u"&&(typeof o=="number"?(this.line=o,this.column=s):(this.line=o.line,this.column=o.column,this.endLine=s.line,this.endColumn=s.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,r)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(a){if(!this.source)return"";let o=this.source;a==null&&(a=e.isColorSupported),t&&a&&(o=t(o));let s=o.split(/\r?\n/),l=Math.max(this.line-3,0),i=Math.min(this.line+2,s.length),d=String(i).length,u,p;if(a){let{bold:c,gray:f,red:h}=e.createColors(!0);u=m=>c(h(m)),p=m=>f(m)}else u=p=c=>c;return s.slice(l,i).map((c,f)=>{let h=l+1+f,m=" "+(" "+h).slice(-d)+" | ";if(h===this.line){let y=p(m.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return u(">")+p(m)+c+`
|
|
10
|
+
`+y+u("^")}return" "+p(m)+c}).join(`
|
|
11
11
|
`)}toString(){let a=this.showSourceCode();return a&&(a=`
|
|
12
12
|
|
|
13
13
|
`+a+`
|
|
14
|
-
`),this.name+": "+this.message+a}}return
|
|
14
|
+
`),this.name+": "+this.message+a}}return Zc=r,r.default=r,Zc}var Li={},yv;function Dp(){return yv||(yv=1,Li.isClean=Symbol("isClean"),Li.my=Symbol("my")),Li}var ef,wv;function ow(){if(wv)return ef;wv=1;let e={after:`
|
|
15
15
|
`,beforeClose:`
|
|
16
16
|
`,beforeComment:`
|
|
17
17
|
`,beforeDecl:`
|
|
18
18
|
`,beforeOpen:" ",beforeRule:`
|
|
19
|
-
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function t(n){return n[0].toUpperCase()+n.slice(1)}class r{constructor(a){this.builder=a}atrule(a,o){let s="@"+a.name,
|
|
20
|
-
`)){let d=this.raw(a,null,"indent");if(d.length)for(let u=0;u<
|
|
21
|
-
`)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawBeforeComment(a,o){let s;return a.walkComments(
|
|
22
|
-
`)&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s>"u"?s=this.raw(o,null,"beforeDecl"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeDecl(a,o){let s;return a.walkDecls(
|
|
19
|
+
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function t(n){return n[0].toUpperCase()+n.slice(1)}class r{constructor(a){this.builder=a}atrule(a,o){let s="@"+a.name,l=a.params?this.rawValue(a,"params"):"";if(typeof a.raws.afterName<"u"?s+=a.raws.afterName:l&&(s+=" "),a.nodes)this.block(a,s+l);else{let i=(a.raws.between||"")+(o?";":"");this.builder(s+l+i,a)}}beforeAfter(a,o){let s;a.type==="decl"?s=this.raw(a,null,"beforeDecl"):a.type==="comment"?s=this.raw(a,null,"beforeComment"):o==="before"?s=this.raw(a,null,"beforeRule"):s=this.raw(a,null,"beforeClose");let l=a.parent,i=0;for(;l&&l.type!=="root";)i+=1,l=l.parent;if(s.includes(`
|
|
20
|
+
`)){let d=this.raw(a,null,"indent");if(d.length)for(let u=0;u<i;u++)s+=d}return s}block(a,o){let s=this.raw(a,"between","beforeOpen");this.builder(o+s+"{",a,"start");let l;a.nodes&&a.nodes.length?(this.body(a),l=this.raw(a,"after")):l=this.raw(a,"after","emptyBody"),l&&this.builder(l),this.builder("}",a,"end")}body(a){let o=a.nodes.length-1;for(;o>0&&a.nodes[o].type==="comment";)o-=1;let s=this.raw(a,"semicolon");for(let l=0;l<a.nodes.length;l++){let i=a.nodes[l],d=this.raw(i,"before");d&&this.builder(d),this.stringify(i,o!==l||s)}}comment(a){let o=this.raw(a,"left","commentLeft"),s=this.raw(a,"right","commentRight");this.builder("/*"+o+a.text+s+"*/",a)}decl(a,o){let s=this.raw(a,"between","colon"),l=a.prop+s+this.rawValue(a,"value");a.important&&(l+=a.raws.important||" !important"),o&&(l+=";"),this.builder(l,a)}document(a){this.body(a)}raw(a,o,s){let l;if(s||(s=o),o&&(l=a.raws[o],typeof l<"u"))return l;let i=a.parent;if(s==="before"&&(!i||i.type==="root"&&i.first===a||i&&i.type==="document"))return"";if(!i)return e[s];let d=a.root();if(d.rawCache||(d.rawCache={}),typeof d.rawCache[s]<"u")return d.rawCache[s];if(s==="before"||s==="after")return this.beforeAfter(a,s);{let u="raw"+t(s);this[u]?l=this[u](d,a):d.walk(p=>{if(l=p.raws[o],typeof l<"u")return!1})}return typeof l>"u"&&(l=e[s]),d.rawCache[s]=l,l}rawBeforeClose(a){let o;return a.walk(s=>{if(s.nodes&&s.nodes.length>0&&typeof s.raws.after<"u")return o=s.raws.after,o.includes(`
|
|
21
|
+
`)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawBeforeComment(a,o){let s;return a.walkComments(l=>{if(typeof l.raws.before<"u")return s=l.raws.before,s.includes(`
|
|
22
|
+
`)&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s>"u"?s=this.raw(o,null,"beforeDecl"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeDecl(a,o){let s;return a.walkDecls(l=>{if(typeof l.raws.before<"u")return s=l.raws.before,s.includes(`
|
|
23
23
|
`)&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s>"u"?s=this.raw(o,null,"beforeRule"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeOpen(a){let o;return a.walk(s=>{if(s.type!=="decl"&&(o=s.raws.between,typeof o<"u"))return!1}),o}rawBeforeRule(a){let o;return a.walk(s=>{if(s.nodes&&(s.parent!==a||a.first!==s)&&typeof s.raws.before<"u")return o=s.raws.before,o.includes(`
|
|
24
|
-
`)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawColon(a){let o;return a.walkDecls(s=>{if(typeof s.raws.between<"u")return o=s.raws.between.replace(/[^\s:]/g,""),!1}),o}rawEmptyBody(a){let o;return a.walk(s=>{if(s.nodes&&s.nodes.length===0&&(o=s.raws.after,typeof o<"u"))return!1}),o}rawIndent(a){if(a.raws.indent)return a.raws.indent;let o;return a.walk(s=>{let
|
|
25
|
-
`);return o=
|
|
26
|
-
`?(p=1,c+=1):p+=1;return{column:p,line:c}}prev(){if(!this.parent)return;let
|
|
27
|
-
`);g=new Array(v.length);let S=0;for(let
|
|
24
|
+
`)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawColon(a){let o;return a.walkDecls(s=>{if(typeof s.raws.between<"u")return o=s.raws.between.replace(/[^\s:]/g,""),!1}),o}rawEmptyBody(a){let o;return a.walk(s=>{if(s.nodes&&s.nodes.length===0&&(o=s.raws.after,typeof o<"u"))return!1}),o}rawIndent(a){if(a.raws.indent)return a.raws.indent;let o;return a.walk(s=>{let l=s.parent;if(l&&l!==a&&l.parent&&l.parent===a&&typeof s.raws.before<"u"){let i=s.raws.before.split(`
|
|
25
|
+
`);return o=i[i.length-1],o=o.replace(/\S/g,""),!1}}),o}rawSemicolon(a){let o;return a.walk(s=>{if(s.nodes&&s.nodes.length&&s.last.type==="decl"&&(o=s.raws.semicolon,typeof o<"u"))return!1}),o}rawValue(a,o){let s=a[o],l=a.raws[o];return l&&l.value===s?l.raw:s}root(a){this.body(a),a.raws.after&&this.builder(a.raws.after)}rule(a){this.block(a,this.rawValue(a,"selector")),a.raws.ownSemicolon&&this.builder(a.raws.ownSemicolon,a,"end")}stringify(a,o){if(!this[a.type])throw new Error("Unknown AST node type "+a.type+". Maybe you need to change PostCSS stringifier.");this[a.type](a,o)}}return ef=r,r.default=r,ef}var tf,bv;function Ki(){if(bv)return tf;bv=1;let e=ow();function t(r,n){new e(n).stringify(r)}return tf=t,t.default=t,tf}var rf,Sv;function Qi(){if(Sv)return rf;Sv=1;let{isClean:e,my:t}=Dp(),r=Ap(),n=ow(),a=Ki();function o(l,i){let d=new l.constructor;for(let u in l){if(!Object.prototype.hasOwnProperty.call(l,u)||u==="proxyCache")continue;let p=l[u],c=typeof p;u==="parent"&&c==="object"?i&&(d[u]=i):u==="source"?d[u]=p:Array.isArray(p)?d[u]=p.map(f=>o(f,d)):(c==="object"&&p!==null&&(p=o(p)),d[u]=p)}return d}class s{constructor(i={}){this.raws={},this[e]=!1,this[t]=!0;for(let d in i)if(d==="nodes"){this.nodes=[];for(let u of i[d])typeof u.clone=="function"?this.append(u.clone()):this.append(u)}else this[d]=i[d]}addToError(i){if(i.postcssNode=this,i.stack&&this.source&&/\n\s{4}at /.test(i.stack)){let d=this.source;i.stack=i.stack.replace(/\n\s{4}at /,`$&${d.input.from}:${d.start.line}:${d.start.column}$&`)}return i}after(i){return this.parent.insertAfter(this,i),this}assign(i={}){for(let d in i)this[d]=i[d];return this}before(i){return this.parent.insertBefore(this,i),this}cleanRaws(i){delete this.raws.before,delete this.raws.after,i||delete this.raws.between}clone(i={}){let d=o(this);for(let u in i)d[u]=i[u];return d}cloneAfter(i={}){let d=this.clone(i);return this.parent.insertAfter(this,d),d}cloneBefore(i={}){let d=this.clone(i);return this.parent.insertBefore(this,d),d}error(i,d={}){if(this.source){let{end:u,start:p}=this.rangeBy(d);return this.source.input.error(i,{column:p.column,line:p.line},{column:u.column,line:u.line},d)}return new r(i)}getProxyProcessor(){return{get(i,d){return d==="proxyOf"?i:d==="root"?()=>i.root().toProxy():i[d]},set(i,d,u){return i[d]===u||(i[d]=u,(d==="prop"||d==="value"||d==="name"||d==="params"||d==="important"||d==="text")&&i.markDirty()),!0}}}markDirty(){if(this[e]){this[e]=!1;let i=this;for(;i=i.parent;)i[e]=!1}}next(){if(!this.parent)return;let i=this.parent.index(this);return this.parent.nodes[i+1]}positionBy(i,d){let u=this.source.start;if(i.index)u=this.positionInside(i.index,d);else if(i.word){d=this.toString();let p=d.indexOf(i.word);p!==-1&&(u=this.positionInside(p,d))}return u}positionInside(i,d){let u=d||this.toString(),p=this.source.start.column,c=this.source.start.line;for(let f=0;f<i;f++)u[f]===`
|
|
26
|
+
`?(p=1,c+=1):p+=1;return{column:p,line:c}}prev(){if(!this.parent)return;let i=this.parent.index(this);return this.parent.nodes[i-1]}rangeBy(i){let d={column:this.source.start.column,line:this.source.start.line},u=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:d.column+1,line:d.line};if(i.word){let p=this.toString(),c=p.indexOf(i.word);c!==-1&&(d=this.positionInside(c,p),u=this.positionInside(c+i.word.length,p))}else i.start?d={column:i.start.column,line:i.start.line}:i.index&&(d=this.positionInside(i.index)),i.end?u={column:i.end.column,line:i.end.line}:typeof i.endIndex=="number"?u=this.positionInside(i.endIndex):i.index&&(u=this.positionInside(i.index+1));return(u.line<d.line||u.line===d.line&&u.column<=d.column)&&(u={column:d.column+1,line:d.line}),{end:u,start:d}}raw(i,d){return new n().raw(this,i,d)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...i){if(this.parent){let d=this,u=!1;for(let p of i)p===this?u=!0:u?(this.parent.insertAfter(d,p),d=p):this.parent.insertBefore(d,p);u||this.remove()}return this}root(){let i=this;for(;i.parent&&i.parent.type!=="document";)i=i.parent;return i}toJSON(i,d){let u={},p=d==null;d=d||new Map;let c=0;for(let f in this){if(!Object.prototype.hasOwnProperty.call(this,f)||f==="parent"||f==="proxyCache")continue;let h=this[f];if(Array.isArray(h))u[f]=h.map(m=>typeof m=="object"&&m.toJSON?m.toJSON(null,d):m);else if(typeof h=="object"&&h.toJSON)u[f]=h.toJSON(null,d);else if(f==="source"){let m=d.get(h.input);m==null&&(m=c,d.set(h.input,c),c++),u[f]={end:h.end,inputId:m,start:h.start}}else u[f]=h}return p&&(u.inputs=[...d.keys()].map(f=>f.toJSON())),u}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(i=a){i.stringify&&(i=i.stringify);let d="";return i(this,u=>{d+=u}),d}warn(i,d,u){let p={node:this};for(let c in u)p[c]=u[c];return i.warn(d,p)}get proxyOf(){return this}}return rf=s,s.default=s,rf}var nf,Cv;function Yi(){if(Cv)return nf;Cv=1;let e=Qi();class t extends e{constructor(n){n&&typeof n.value<"u"&&typeof n.value!="string"&&(n={...n,value:String(n.value)}),super(n),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return nf=t,t.default=t,nf}var af,Lv;function DC(){if(Lv)return af;Lv=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return af={nanoid:(n=21)=>{let a="",o=n;for(;o--;)a+=e[Math.random()*64|0];return a},customAlphabet:(n,a=21)=>(o=a)=>{let s="",l=o;for(;l--;)s+=n[Math.random()*n.length|0];return s}},af}var of,kv;function sw(){if(kv)return of;kv=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=vr,{existsSync:r,readFileSync:n}=vr,{dirname:a,join:o}=vr;function s(i){return Buffer?Buffer.from(i,"base64").toString():window.atob(i)}class l{constructor(d,u){if(u.map===!1)return;this.loadAnnotation(d),this.inline=this.startWith(this.annotation,"data:");let p=u.map?u.map.prev:void 0,c=this.loadMap(u.from,p);!this.mapFile&&u.from&&(this.mapFile=u.from),this.mapFile&&(this.root=a(this.mapFile)),c&&(this.text=c)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(d){let u=/^data:application\/json;charset=utf-?8;base64,/,p=/^data:application\/json;base64,/,c=/^data:application\/json;charset=utf-?8,/,f=/^data:application\/json,/;if(c.test(d)||f.test(d))return decodeURIComponent(d.substr(RegExp.lastMatch.length));if(u.test(d)||p.test(d))return s(d.substr(RegExp.lastMatch.length));let h=d.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+h)}getAnnotationURL(d){return d.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(d){return typeof d!="object"?!1:typeof d.mappings=="string"||typeof d._mappings=="string"||Array.isArray(d.sections)}loadAnnotation(d){let u=d.match(/\/\*\s*# sourceMappingURL=/gm);if(!u)return;let p=d.lastIndexOf(u.pop()),c=d.indexOf("*/",p);p>-1&&c>-1&&(this.annotation=this.getAnnotationURL(d.substring(p,c)))}loadFile(d){if(this.root=a(d),r(d))return this.mapFile=d,n(d,"utf-8").toString().trim()}loadMap(d,u){if(u===!1)return!1;if(u){if(typeof u=="string")return u;if(typeof u=="function"){let p=u(d);if(p){let c=this.loadFile(p);if(!c)throw new Error("Unable to load previous source map: "+p.toString());return c}}else{if(u instanceof e)return t.fromSourceMap(u).toString();if(u instanceof t)return u.toString();if(this.isMap(u))return JSON.stringify(u);throw new Error("Unsupported previous source map format: "+u.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let p=this.annotation;return d&&(p=o(a(d),p)),this.loadFile(p)}}}startWith(d,u){return d?d.substr(0,u.length)===u:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return of=l,l.default=l,of}var sf,Iv;function Ji(){if(Iv)return sf;Iv=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=vr,{fileURLToPath:r,pathToFileURL:n}=vr,{isAbsolute:a,resolve:o}=vr,{nanoid:s}=DC(),l=vr,i=Ap(),d=sw(),u=Symbol("fromOffsetCache"),p=!!(e&&t),c=!!(o&&a);class f{constructor(m,y={}){if(m===null||typeof m>"u"||typeof m=="object"&&!m.toString)throw new Error(`PostCSS received ${m} instead of CSS string`);if(this.css=m.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,y.from&&(!c||/^\w+:\/\//.test(y.from)||a(y.from)?this.file=y.from:this.file=o(y.from)),c&&p){let g=new d(this.css,y);if(g.text){this.map=g;let x=g.consumer().file;!this.file&&x&&(this.file=this.mapResolve(x))}}this.file||(this.id="<input css "+s(6)+">"),this.map&&(this.map.file=this.from)}error(m,y,g,x={}){let v,S,b;if(y&&typeof y=="object"){let C=y,L=g;if(typeof C.offset=="number"){let k=this.fromOffset(C.offset);y=k.line,g=k.col}else y=C.line,g=C.column;if(typeof L.offset=="number"){let k=this.fromOffset(L.offset);S=k.line,b=k.col}else S=L.line,b=L.column}else if(!g){let C=this.fromOffset(y);y=C.line,g=C.col}let w=this.origin(y,g,S,b);return w?v=new i(m,w.endLine===void 0?w.line:{column:w.column,line:w.line},w.endLine===void 0?w.column:{column:w.endColumn,line:w.endLine},w.source,w.file,x.plugin):v=new i(m,S===void 0?y:{column:g,line:y},S===void 0?g:{column:b,line:S},this.css,this.file,x.plugin),v.input={column:g,endColumn:b,endLine:S,line:y,source:this.css},this.file&&(n&&(v.input.url=n(this.file).toString()),v.input.file=this.file),v}fromOffset(m){let y,g;if(this[u])g=this[u];else{let v=this.css.split(`
|
|
27
|
+
`);g=new Array(v.length);let S=0;for(let b=0,w=v.length;b<w;b++)g[b]=S,S+=v[b].length+1;this[u]=g}y=g[g.length-1];let x=0;if(m>=y)x=g.length-1;else{let v=g.length-2,S;for(;x<v;)if(S=x+(v-x>>1),m<g[S])v=S-1;else if(m>=g[S+1])x=S+1;else{x=S;break}}return{col:m-g[x]+1,line:x+1}}mapResolve(m){return/^\w+:\/\//.test(m)?m:o(this.map.consumer().sourceRoot||this.map.root||".",m)}origin(m,y,g,x){if(!this.map)return!1;let v=this.map.consumer(),S=v.originalPositionFor({column:y,line:m});if(!S.source)return!1;let b;typeof g=="number"&&(b=v.originalPositionFor({column:x,line:g}));let w;a(S.source)?w=n(S.source):w=new URL(S.source,this.map.consumer().sourceRoot||n(this.map.mapFile));let C={column:S.column,endColumn:b&&b.column,endLine:b&&b.line,line:S.line,url:w.toString()};if(w.protocol==="file:")if(r)C.file=r(w);else throw new Error("file: protocol is not available in this PostCSS build");let L=v.sourceContentFor(S.source);return L&&(C.source=L),C}toJSON(){let m={};for(let y of["hasBOM","css","file","id"])this[y]!=null&&(m[y]=this[y]);return this.map&&(m.map={...this.map},m.map.consumerCache&&(m.map.consumerCache=void 0)),m}get from(){return this.file||this.id}}return sf=f,f.default=f,l&&l.registerInput&&l.registerInput(f),sf}var lf,_v;function lw(){if(_v)return lf;_v=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=vr,{dirname:r,relative:n,resolve:a,sep:o}=vr,{pathToFileURL:s}=vr,l=Ji(),i=!!(e&&t),d=!!(r&&a&&n&&o);class u{constructor(c,f,h,m){this.stringify=c,this.mapOpts=h.map||{},this.root=f,this.opts=h,this.css=m,this.originalCSS=m,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let c;this.isInline()?c="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?c=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?c=this.mapOpts.annotation(this.opts.to,this.root):c=this.outputFile()+".map";let f=`
|
|
28
28
|
`;this.css.includes(`\r
|
|
29
29
|
`)&&(f=`\r
|
|
30
|
-
`),this.css+=f+"/*# sourceMappingURL="+c+" */"}applyPrevMaps(){for(let c of this.previous()){let f=this.toUrl(this.path(c.file)),h=c.root||r(c.file),m;this.mapOpts.sourcesContent===!1?(m=new e(c.text),m.sourcesContent&&(m.sourcesContent=null)):m=c.consumer(),this.map.applySourceMap(m,f,this.toUrl(this.path(h)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let c;for(let f=this.root.nodes.length-1;f>=0;f--)c=this.root.nodes[f],c.type==="comment"&&c.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(f)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),d&&
|
|
31
|
-
`),f=x.length-g):f+=x.length,v&&S!=="start"){let y=v.parent||{raws:{}};(!(v.type==="decl"||v.type==="atrule"&&!v.nodes)||v!==y.last||y.raws.semicolon)&&(v.source&&v.source.end?(m.source=this.sourcePath(v),m.original.line=v.source.end.line,m.original.column=v.source.end.column-1,m.generated.line=c,m.generated.column=f-2,this.map.addMapping(m)):(m.source=h,m.original.line=1,m.original.column=0,m.generated.line=c,m.generated.column=f-1,this.map.addMapping(m)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(c=>c.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let c=this.mapOpts.annotation;return typeof c<"u"&&c!==!0?!1:this.previous().length?this.previous().some(f=>f.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(c=>c.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(c){if(this.mapOpts.absolute||c.charCodeAt(0)===60||/^\w+:\/\//.test(c))return c;let f=this.memoizedPaths.get(c);if(f)return f;let h=this.opts.to?r(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(h=r(a(h,this.mapOpts.annotation)));let m=n(h,c);return this.memoizedPaths.set(c,m),m}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(c=>{if(c.source&&c.source.input.map){let f=c.source.input.map;this.previousMaps.includes(f)||this.previousMaps.push(f)}});else{let c=new i(this.originalCSS,this.opts);c.map&&this.previousMaps.push(c.map)}return this.previousMaps}setSourcesContent(){let c={};if(this.root)this.root.walk(f=>{if(f.source){let h=f.source.input.from;if(h&&!c[h]){c[h]=!0;let m=this.usesFileUrls?this.toFileUrl(h):this.toUrl(this.path(h));this.map.setSourceContent(m,f.source.input.css)}}});else if(this.css){let f=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(f,this.css)}}sourcePath(c){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(c.source.input.from):this.toUrl(this.path(c.source.input.from))}toBase64(c){return Buffer?Buffer.from(c).toString("base64"):window.btoa(unescape(encodeURIComponent(c)))}toFileUrl(c){let f=this.memoizedFileURLs.get(c);if(f)return f;if(s){let h=s(c).toString();return this.memoizedFileURLs.set(c,h),h}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(c){let f=this.memoizedURLs.get(c);if(f)return f;o==="\\"&&(c=c.replace(/\\/g,"/"));let h=encodeURI(c).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(c,h),h}}return af=u,af}var of,Cv;function Ql(){if(Cv)return of;Cv=1;let e=Gl();class t extends e{constructor(n){super(n),this.type="comment"}}return of=t,t.default=t,of}var sf,Lv;function Gn(){if(Lv)return sf;Lv=1;let{isClean:e,my:t}=Np(),r=Xl(),n=Ql(),a=Gl(),o,s,i,l;function d(c){return c.map(f=>(f.nodes&&(f.nodes=d(f.nodes)),delete f.source,f))}function u(c){if(c[e]=!1,c.proxyOf.nodes)for(let f of c.proxyOf.nodes)u(f)}class p extends a{append(...f){for(let h of f){let m=this.normalize(h,this.last);for(let b of m)this.proxyOf.nodes.push(b)}return this.markDirty(),this}cleanRaws(f){if(super.cleanRaws(f),this.nodes)for(let h of this.nodes)h.cleanRaws(f)}each(f){if(!this.proxyOf.nodes)return;let h=this.getIterator(),m,b;for(;this.indexes[h]<this.proxyOf.nodes.length&&(m=this.indexes[h],b=f(this.proxyOf.nodes[m],m),b!==!1);)this.indexes[h]+=1;return delete this.indexes[h],b}every(f){return this.nodes.every(f)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let f=this.lastEach;return this.indexes[f]=0,f}getProxyProcessor(){return{get(f,h){return h==="proxyOf"?f:f[h]?h==="each"||typeof h=="string"&&h.startsWith("walk")?(...m)=>f[h](...m.map(b=>typeof b=="function"?(g,x)=>b(g.toProxy(),x):b)):h==="every"||h==="some"?m=>f[h]((b,...g)=>m(b.toProxy(),...g)):h==="root"?()=>f.root().toProxy():h==="nodes"?f.nodes.map(m=>m.toProxy()):h==="first"||h==="last"?f[h].toProxy():f[h]:f[h]},set(f,h,m){return f[h]===m||(f[h]=m,(h==="name"||h==="params"||h==="selector")&&f.markDirty()),!0}}}index(f){return typeof f=="number"?f:(f.proxyOf&&(f=f.proxyOf),this.proxyOf.nodes.indexOf(f))}insertAfter(f,h){let m=this.index(f),b=this.normalize(h,this.proxyOf.nodes[m]).reverse();m=this.index(f);for(let x of b)this.proxyOf.nodes.splice(m+1,0,x);let g;for(let x in this.indexes)g=this.indexes[x],m<g&&(this.indexes[x]=g+b.length);return this.markDirty(),this}insertBefore(f,h){let m=this.index(f),b=m===0?"prepend":!1,g=this.normalize(h,this.proxyOf.nodes[m],b).reverse();m=this.index(f);for(let v of g)this.proxyOf.nodes.splice(m,0,v);let x;for(let v in this.indexes)x=this.indexes[v],m<=x&&(this.indexes[v]=x+g.length);return this.markDirty(),this}normalize(f,h){if(typeof f=="string")f=d(o(f).nodes);else if(typeof f>"u")f=[];else if(Array.isArray(f)){f=f.slice(0);for(let b of f)b.parent&&b.parent.removeChild(b,"ignore")}else if(f.type==="root"&&this.type!=="document"){f=f.nodes.slice(0);for(let b of f)b.parent&&b.parent.removeChild(b,"ignore")}else if(f.type)f=[f];else if(f.prop){if(typeof f.value>"u")throw new Error("Value field is missed in node creation");typeof f.value!="string"&&(f.value=String(f.value)),f=[new r(f)]}else if(f.selector)f=[new s(f)];else if(f.name)f=[new i(f)];else if(f.text)f=[new n(f)];else throw new Error("Unknown node type in node creation");return f.map(b=>(b[t]||p.rebuild(b),b=b.proxyOf,b.parent&&b.parent.removeChild(b),b[e]&&u(b),typeof b.raws.before>"u"&&h&&typeof h.raws.before<"u"&&(b.raws.before=h.raws.before.replace(/\S/g,"")),b.parent=this.proxyOf,b))}prepend(...f){f=f.reverse();for(let h of f){let m=this.normalize(h,this.first,"prepend").reverse();for(let b of m)this.proxyOf.nodes.unshift(b);for(let b in this.indexes)this.indexes[b]=this.indexes[b]+m.length}return this.markDirty(),this}push(f){return f.parent=this,this.proxyOf.nodes.push(f),this}removeAll(){for(let f of this.proxyOf.nodes)f.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(f){f=this.index(f),this.proxyOf.nodes[f].parent=void 0,this.proxyOf.nodes.splice(f,1);let h;for(let m in this.indexes)h=this.indexes[m],h>=f&&(this.indexes[m]=h-1);return this.markDirty(),this}replaceValues(f,h,m){return m||(m=h,h={}),this.walkDecls(b=>{h.props&&!h.props.includes(b.prop)||h.fast&&!b.value.includes(h.fast)||(b.value=b.value.replace(f,m))}),this.markDirty(),this}some(f){return this.nodes.some(f)}walk(f){return this.each((h,m)=>{let b;try{b=f(h,m)}catch(g){throw h.addToError(g)}return b!==!1&&h.walk&&(b=h.walk(f)),b})}walkAtRules(f,h){return h?f instanceof RegExp?this.walk((m,b)=>{if(m.type==="atrule"&&f.test(m.name))return h(m,b)}):this.walk((m,b)=>{if(m.type==="atrule"&&m.name===f)return h(m,b)}):(h=f,this.walk((m,b)=>{if(m.type==="atrule")return h(m,b)}))}walkComments(f){return this.walk((h,m)=>{if(h.type==="comment")return f(h,m)})}walkDecls(f,h){return h?f instanceof RegExp?this.walk((m,b)=>{if(m.type==="decl"&&f.test(m.prop))return h(m,b)}):this.walk((m,b)=>{if(m.type==="decl"&&m.prop===f)return h(m,b)}):(h=f,this.walk((m,b)=>{if(m.type==="decl")return h(m,b)}))}walkRules(f,h){return h?f instanceof RegExp?this.walk((m,b)=>{if(m.type==="rule"&&f.test(m.selector))return h(m,b)}):this.walk((m,b)=>{if(m.type==="rule"&&m.selector===f)return h(m,b)}):(h=f,this.walk((m,b)=>{if(m.type==="rule")return h(m,b)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return p.registerParse=c=>{o=c},p.registerRule=c=>{s=c},p.registerAtRule=c=>{i=c},p.registerRoot=c=>{l=c},sf=p,p.default=p,p.rebuild=c=>{c.type==="atrule"?Object.setPrototypeOf(c,i.prototype):c.type==="rule"?Object.setPrototypeOf(c,s.prototype):c.type==="decl"?Object.setPrototypeOf(c,r.prototype):c.type==="comment"?Object.setPrototypeOf(c,n.prototype):c.type==="root"&&Object.setPrototypeOf(c,l.prototype),c[t]=!0,c.nodes&&c.nodes.forEach(f=>{p.rebuild(f)})},sf}var lf,kv;function Tp(){if(kv)return lf;kv=1;let e=Gn(),t,r;class n extends e{constructor(o){super({type:"document",...o}),this.nodes||(this.nodes=[])}toResult(o={}){return new t(new r,this,o).stringify()}}return n.registerLazyResult=a=>{t=a},n.registerProcessor=a=>{r=a},lf=n,n.default=n,lf}var uf,Iv;function nw(){if(Iv)return uf;Iv=1;let e={};return uf=function(r){e[r]||(e[r]=!0,typeof console<"u"&&console.warn&&console.warn(r))},uf}var df,_v;function aw(){if(_v)return df;_v=1;class e{constructor(r,n={}){if(this.type="warning",this.text=r,n.node&&n.node.source){let a=n.node.rangeBy(n);this.line=a.start.line,this.column=a.start.column,this.endLine=a.end.line,this.endColumn=a.end.column}for(let a in n)this[a]=n[a]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return df=e,e.default=e,df}var cf,Mv;function Ap(){if(Mv)return cf;Mv=1;let e=aw();class t{constructor(n,a,o){this.processor=n,this.messages=[],this.root=a,this.opts=o,this.css=void 0,this.map=void 0}toString(){return this.css}warn(n,a={}){a.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(a.plugin=this.lastPlugin.postcssPlugin);let o=new e(n,a);return this.messages.push(o),o}warnings(){return this.messages.filter(n=>n.type==="warning")}get content(){return this.css}}return cf=t,t.default=t,cf}var ff,Rv;function RC(){if(Rv)return ff;Rv=1;let e=39,t=34,r=92,n=47,a=10,o=32,s=12,i=9,l=13,d=91,u=93,p=40,c=41,f=123,h=125,m=59,b=42,g=58,x=64,v=/[\t\n\f\r "#'()/;[\\\]{}]/g,S=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,y=/.[\r\n"'(/\\]/,w=/[\da-f]/i;return ff=function(C,_={}){let I=C.css.valueOf(),D=_.ignoreErrors,A,k,ke,Ie,ue,j,be,ze,Se,we,wr=I.length,E=0,vt=[],yt=[];function _n(){return E}function Qe(X){throw C.error("Unclosed "+X,E)}function it(){return yt.length===0&&E>=wr}function br(X){if(yt.length)return yt.pop();if(E>=wr)return;let Me=X?X.ignoreUnclosed:!1;switch(A=I.charCodeAt(E),A){case a:case o:case i:case l:case s:{k=E;do k+=1,A=I.charCodeAt(k);while(A===o||A===a||A===i||A===l||A===s);we=["space",I.slice(E,k)],E=k-1;break}case d:case u:case f:case h:case g:case m:case c:{let se=String.fromCharCode(A);we=[se,se,E];break}case p:{if(ze=vt.length?vt.pop()[1]:"",Se=I.charCodeAt(E+1),ze==="url"&&Se!==e&&Se!==t&&Se!==o&&Se!==a&&Se!==i&&Se!==s&&Se!==l){k=E;do{if(j=!1,k=I.indexOf(")",k+1),k===-1)if(D||Me){k=E;break}else Qe("bracket");for(be=k;I.charCodeAt(be-1)===r;)be-=1,j=!j}while(j);we=["brackets",I.slice(E,k+1),E,k],E=k}else k=I.indexOf(")",E+1),Ie=I.slice(E,k+1),k===-1||y.test(Ie)?we=["(","(",E]:(we=["brackets",Ie,E,k],E=k);break}case e:case t:{ke=A===e?"'":'"',k=E;do{if(j=!1,k=I.indexOf(ke,k+1),k===-1)if(D||Me){k=E+1;break}else Qe("string");for(be=k;I.charCodeAt(be-1)===r;)be-=1,j=!j}while(j);we=["string",I.slice(E,k+1),E,k],E=k;break}case x:{v.lastIndex=E+1,v.test(I),v.lastIndex===0?k=I.length-1:k=v.lastIndex-2,we=["at-word",I.slice(E,k+1),E,k],E=k;break}case r:{for(k=E,ue=!0;I.charCodeAt(k+1)===r;)k+=1,ue=!ue;if(A=I.charCodeAt(k+1),ue&&A!==n&&A!==o&&A!==a&&A!==i&&A!==l&&A!==s&&(k+=1,w.test(I.charAt(k)))){for(;w.test(I.charAt(k+1));)k+=1;I.charCodeAt(k+1)===o&&(k+=1)}we=["word",I.slice(E,k+1),E,k],E=k;break}default:{A===n&&I.charCodeAt(E+1)===b?(k=I.indexOf("*/",E+2)+1,k===0&&(D||Me?k=I.length:Qe("comment")),we=["comment",I.slice(E,k+1),E,k],E=k):(S.lastIndex=E+1,S.test(I),S.lastIndex===0?k=I.length-1:k=S.lastIndex-2,we=["word",I.slice(E,k+1),E,k],vt.push(we),E=k);break}}return E++,we}function Sr(X){yt.push(X)}return{back:Sr,endOfFile:it,nextToken:br,position:_n}},ff}var pf,Ev;function Dp(){if(Ev)return pf;Ev=1;let e=Gn();class t extends e{constructor(n){super(n),this.type="atrule"}append(...n){return this.proxyOf.nodes||(this.nodes=[]),super.append(...n)}prepend(...n){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...n)}}return pf=t,t.default=t,e.registerAtRule(t),pf}var mf,Pv;function fs(){if(Pv)return mf;Pv=1;let e=Gn(),t,r;class n extends e{constructor(o){super(o),this.type="root",this.nodes||(this.nodes=[])}normalize(o,s,i){let l=super.normalize(o);if(s){if(i==="prepend")this.nodes.length>1?s.raws.before=this.nodes[1].raws.before:delete s.raws.before;else if(this.first!==s)for(let d of l)d.raws.before=s.raws.before}return l}removeChild(o,s){let i=this.index(o);return!s&&i===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[i].raws.before),super.removeChild(o)}toResult(o={}){return new t(new r,this,o).stringify()}}return n.registerLazyResult=a=>{t=a},n.registerProcessor=a=>{r=a},mf=n,n.default=n,e.registerRoot(n),mf}var hf,Nv;function ow(){if(Nv)return hf;Nv=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let r=[" ",`
|
|
32
|
-
`," "];return e.split(t,r)},split(t,r,n){let a=[],o="",s=!1,i=0,l=!1,d="",u=!1;for(let p of t)u?u=!1:p==="\\"?u=!0:l?p===d&&(l=!1):p==='"'||p==="'"?(l=!0,d=p):p==="("?i+=1:p===")"?i>0&&(i-=1):i===0&&r.includes(p)&&(s=!0),s?(o!==""&&a.push(o.trim()),o="",s=!1):o+=p;return(n||o!=="")&&a.push(o.trim()),a}};return hf=e,e.default=e,hf}var gf,Tv;function Op(){if(Tv)return gf;Tv=1;let e=Gn(),t=ow();class r extends e{constructor(a){super(a),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(a){let o=this.selector?this.selector.match(/,\s*/):null,s=o?o[0]:","+this.raw("between","beforeOpen");this.selector=a.join(s)}}return gf=r,r.default=r,e.registerRule(r),gf}var xf,Av;function EC(){if(Av)return xf;Av=1;let e=Xl(),t=RC(),r=Ql(),n=Dp(),a=fs(),o=Op(),s={empty:!0,space:!0};function i(d){for(let u=d.length-1;u>=0;u--){let p=d[u],c=p[3]||p[2];if(c)return c}}class l{constructor(u){this.input=u,this.root=new a,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:u,start:{column:1,line:1,offset:0}}}atrule(u){let p=new n;p.name=u[1].slice(1),p.name===""&&this.unnamedAtrule(p,u),this.init(p,u[2]);let c,f,h,m=!1,b=!1,g=[],x=[];for(;!this.tokenizer.endOfFile();){if(u=this.tokenizer.nextToken(),c=u[0],c==="("||c==="["?x.push(c==="("?")":"]"):c==="{"&&x.length>0?x.push("}"):c===x[x.length-1]&&x.pop(),x.length===0)if(c===";"){p.source.end=this.getPosition(u[2]),p.source.end.offset++,this.semicolon=!0;break}else if(c==="{"){b=!0;break}else if(c==="}"){if(g.length>0){for(h=g.length-1,f=g[h];f&&f[0]==="space";)f=g[--h];f&&(p.source.end=this.getPosition(f[3]||f[2]),p.source.end.offset++)}this.end(u);break}else g.push(u);else g.push(u);if(this.tokenizer.endOfFile()){m=!0;break}}p.raws.between=this.spacesAndCommentsFromEnd(g),g.length?(p.raws.afterName=this.spacesAndCommentsFromStart(g),this.raw(p,"params",g),m&&(u=g[g.length-1],p.source.end=this.getPosition(u[3]||u[2]),p.source.end.offset++,this.spaces=p.raws.between,p.raws.between="")):(p.raws.afterName="",p.params=""),b&&(p.nodes=[],this.current=p)}checkMissedSemicolon(u){let p=this.colon(u);if(p===!1)return;let c=0,f;for(let h=p-1;h>=0&&(f=u[h],!(f[0]!=="space"&&(c+=1,c===2)));h--);throw this.input.error("Missed semicolon",f[0]==="word"?f[3]+1:f[2])}colon(u){let p=0,c,f,h;for(let[m,b]of u.entries()){if(c=b,f=c[0],f==="("&&(p+=1),f===")"&&(p-=1),p===0&&f===":")if(!h)this.doubleColon(c);else{if(h[0]==="word"&&h[1]==="progid")continue;return m}h=c}return!1}comment(u){let p=new r;this.init(p,u[2]),p.source.end=this.getPosition(u[3]||u[2]),p.source.end.offset++;let c=u[1].slice(2,-2);if(/^\s*$/.test(c))p.text="",p.raws.left=c,p.raws.right="";else{let f=c.match(/^(\s*)([^]*\S)(\s*)$/);p.text=f[2],p.raws.left=f[1],p.raws.right=f[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(u,p){let c=new e;this.init(c,u[0][2]);let f=u[u.length-1];for(f[0]===";"&&(this.semicolon=!0,u.pop()),c.source.end=this.getPosition(f[3]||f[2]||i(u)),c.source.end.offset++;u[0][0]!=="word";)u.length===1&&this.unknownWord(u),c.raws.before+=u.shift()[1];for(c.source.start=this.getPosition(u[0][2]),c.prop="";u.length;){let x=u[0][0];if(x===":"||x==="space"||x==="comment")break;c.prop+=u.shift()[1]}c.raws.between="";let h;for(;u.length;)if(h=u.shift(),h[0]===":"){c.raws.between+=h[1];break}else h[0]==="word"&&/\w/.test(h[1])&&this.unknownWord([h]),c.raws.between+=h[1];(c.prop[0]==="_"||c.prop[0]==="*")&&(c.raws.before+=c.prop[0],c.prop=c.prop.slice(1));let m=[],b;for(;u.length&&(b=u[0][0],!(b!=="space"&&b!=="comment"));)m.push(u.shift());this.precheckMissedSemicolon(u);for(let x=u.length-1;x>=0;x--){if(h=u[x],h[1].toLowerCase()==="!important"){c.important=!0;let v=this.stringFrom(u,x);v=this.spacesFromEnd(u)+v,v!==" !important"&&(c.raws.important=v);break}else if(h[1].toLowerCase()==="important"){let v=u.slice(0),S="";for(let y=x;y>0;y--){let w=v[y][0];if(S.trim().indexOf("!")===0&&w!=="space")break;S=v.pop()[1]+S}S.trim().indexOf("!")===0&&(c.important=!0,c.raws.important=S,u=v)}if(h[0]!=="space"&&h[0]!=="comment")break}u.some(x=>x[0]!=="space"&&x[0]!=="comment")&&(c.raws.between+=m.map(x=>x[1]).join(""),m=[]),this.raw(c,"value",m.concat(u),p),c.value.includes(":")&&!p&&this.checkMissedSemicolon(u)}doubleColon(u){throw this.input.error("Double colon",{offset:u[2]},{offset:u[2]+u[1].length})}emptyRule(u){let p=new o;this.init(p,u[2]),p.selector="",p.raws.between="",this.current=p}end(u){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(u[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(u)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(u){if(this.spaces+=u[1],this.current.nodes){let p=this.current.nodes[this.current.nodes.length-1];p&&p.type==="rule"&&!p.raws.ownSemicolon&&(p.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(u){let p=this.input.fromOffset(u);return{column:p.col,line:p.line,offset:u}}init(u,p){this.current.push(u),u.source={input:this.input,start:this.getPosition(p)},u.raws.before=this.spaces,this.spaces="",u.type!=="comment"&&(this.semicolon=!1)}other(u){let p=!1,c=null,f=!1,h=null,m=[],b=u[1].startsWith("--"),g=[],x=u;for(;x;){if(c=x[0],g.push(x),c==="("||c==="[")h||(h=x),m.push(c==="("?")":"]");else if(b&&f&&c==="{")h||(h=x),m.push("}");else if(m.length===0)if(c===";")if(f){this.decl(g,b);return}else break;else if(c==="{"){this.rule(g);return}else if(c==="}"){this.tokenizer.back(g.pop()),p=!0;break}else c===":"&&(f=!0);else c===m[m.length-1]&&(m.pop(),m.length===0&&(h=null));x=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(p=!0),m.length>0&&this.unclosedBracket(h),p&&f){if(!b)for(;g.length&&(x=g[g.length-1][0],!(x!=="space"&&x!=="comment"));)this.tokenizer.back(g.pop());this.decl(g,b)}else this.unknownWord(g)}parse(){let u;for(;!this.tokenizer.endOfFile();)switch(u=this.tokenizer.nextToken(),u[0]){case"space":this.spaces+=u[1];break;case";":this.freeSemicolon(u);break;case"}":this.end(u);break;case"comment":this.comment(u);break;case"at-word":this.atrule(u);break;case"{":this.emptyRule(u);break;default:this.other(u);break}this.endFile()}precheckMissedSemicolon(){}raw(u,p,c,f){let h,m,b=c.length,g="",x=!0,v,S;for(let y=0;y<b;y+=1)h=c[y],m=h[0],m==="space"&&y===b-1&&!f?x=!1:m==="comment"?(S=c[y-1]?c[y-1][0]:"empty",v=c[y+1]?c[y+1][0]:"empty",!s[S]&&!s[v]?g.slice(-1)===","?x=!1:g+=h[1]:x=!1):g+=h[1];if(!x){let y=c.reduce((w,L)=>w+L[1],"");u.raws[p]={raw:y,value:g}}u[p]=g}rule(u){u.pop();let p=new o;this.init(p,u[0][2]),p.raws.between=this.spacesAndCommentsFromEnd(u),this.raw(p,"selector",u),this.current=p}spacesAndCommentsFromEnd(u){let p,c="";for(;u.length&&(p=u[u.length-1][0],!(p!=="space"&&p!=="comment"));)c=u.pop()[1]+c;return c}spacesAndCommentsFromStart(u){let p,c="";for(;u.length&&(p=u[0][0],!(p!=="space"&&p!=="comment"));)c+=u.shift()[1];return c}spacesFromEnd(u){let p,c="";for(;u.length&&(p=u[u.length-1][0],p==="space");)c=u.pop()[1]+c;return c}stringFrom(u,p){let c="";for(let f=p;f<u.length;f++)c+=u[f][1];return u.splice(p,u.length-p),c}unclosedBlock(){let u=this.current.source.start;throw this.input.error("Unclosed block",u.line,u.column)}unclosedBracket(u){throw this.input.error("Unclosed bracket",{offset:u[2]},{offset:u[2]+1})}unexpectedClose(u){throw this.input.error("Unexpected }",{offset:u[2]},{offset:u[2]+1})}unknownWord(u){throw this.input.error("Unknown word",{offset:u[0][2]},{offset:u[0][2]+u[0][1].length})}unnamedAtrule(u,p){throw this.input.error("At-rule without name",{offset:p[2]},{offset:p[2]+p[1].length})}}return xf=l,xf}var vf,Dv;function Fp(){if(Dv)return vf;Dv=1;let e=Gn(),t=EC(),r=Kl();function n(a,o){let s=new r(a,o),i=new t(s);try{i.parse()}catch(l){throw l}return i.root}return vf=n,n.default=n,e.registerParse(n),vf}var yf,Ov;function sw(){if(Ov)return yf;Ov=1;let{isClean:e,my:t}=Np(),r=rw(),n=Vl(),a=Gn(),o=Tp(),s=nw(),i=Ap(),l=Fp(),d=fs(),u={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},p={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},c={Once:!0,postcssPlugin:!0,prepare:!0},f=0;function h(S){return typeof S=="object"&&typeof S.then=="function"}function m(S){let y=!1,w=u[S.type];return S.type==="decl"?y=S.prop.toLowerCase():S.type==="atrule"&&(y=S.name.toLowerCase()),y&&S.append?[w,w+"-"+y,f,w+"Exit",w+"Exit-"+y]:y?[w,w+"-"+y,w+"Exit",w+"Exit-"+y]:S.append?[w,f,w+"Exit"]:[w,w+"Exit"]}function b(S){let y;return S.type==="document"?y=["Document",f,"DocumentExit"]:S.type==="root"?y=["Root",f,"RootExit"]:y=m(S),{eventIndex:0,events:y,iterator:0,node:S,visitorIndex:0,visitors:[]}}function g(S){return S[e]=!1,S.nodes&&S.nodes.forEach(y=>g(y)),S}let x={};class v{constructor(y,w,L){this.stringified=!1,this.processed=!1;let C;if(typeof w=="object"&&w!==null&&(w.type==="root"||w.type==="document"))C=g(w);else if(w instanceof v||w instanceof i)C=g(w.root),w.map&&(typeof L.map>"u"&&(L.map={}),L.map.inline||(L.map.inline=!1),L.map.prev=w.map);else{let _=l;L.syntax&&(_=L.syntax.parse),L.parser&&(_=L.parser),_.parse&&(_=_.parse);try{C=_(w,L)}catch(I){this.processed=!0,this.error=I}C&&!C[t]&&a.rebuild(C)}this.result=new i(y,C,L),this.helpers={...x,postcss:x,result:this.result},this.plugins=this.processor.plugins.map(_=>typeof _=="object"&&_.prepare?{..._,..._.prepare(this.result)}:_)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(y){return this.async().catch(y)}finally(y){return this.async().then(y,y)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(y,w){let L=this.result.lastPlugin;try{w&&w.addToError(y),this.error=y,y.name==="CssSyntaxError"&&!y.plugin?(y.plugin=L.postcssPlugin,y.setMessage()):L.postcssVersion}catch(C){console&&console.error&&console.error(C)}return y}prepareVisitors(){this.listeners={};let y=(w,L,C)=>{this.listeners[L]||(this.listeners[L]=[]),this.listeners[L].push([w,C])};for(let w of this.plugins)if(typeof w=="object")for(let L in w){if(!p[L]&&/^[A-Z]/.test(L))throw new Error(`Unknown event ${L} in ${w.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!c[L])if(typeof w[L]=="object")for(let C in w[L])C==="*"?y(w,L,w[L][C]):y(w,L+"-"+C.toLowerCase(),w[L][C]);else typeof w[L]=="function"&&y(w,L,w[L])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let y=0;y<this.plugins.length;y++){let w=this.plugins[y],L=this.runOnRoot(w);if(h(L))try{await L}catch(C){throw this.handleError(C)}}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[e];){y[e]=!0;let w=[b(y)];for(;w.length>0;){let L=this.visitTick(w);if(h(L))try{await L}catch(C){let _=w[w.length-1].node;throw this.handleError(C,_)}}}if(this.listeners.OnceExit)for(let[w,L]of this.listeners.OnceExit){this.result.lastPlugin=w;try{if(y.type==="document"){let C=y.nodes.map(_=>L(_,this.helpers));await Promise.all(C)}else await L(y,this.helpers)}catch(C){throw this.handleError(C)}}}return this.processed=!0,this.stringify()}runOnRoot(y){this.result.lastPlugin=y;try{if(typeof y=="object"&&y.Once){if(this.result.root.type==="document"){let w=this.result.root.nodes.map(L=>y.Once(L,this.helpers));return h(w[0])?Promise.all(w):w}return y.Once(this.result.root,this.helpers)}else if(typeof y=="function")return y(this.result.root,this.result)}catch(w){throw this.handleError(w)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let y=this.result.opts,w=n;y.syntax&&(w=y.syntax.stringify),y.stringifier&&(w=y.stringifier),w.stringify&&(w=w.stringify);let C=new r(w,this.result.root,this.result.opts).generate();return this.result.css=C[0],this.result.map=C[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let y of this.plugins){let w=this.runOnRoot(y);if(h(w))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[e];)y[e]=!0,this.walkSync(y);if(this.listeners.OnceExit)if(y.type==="document")for(let w of y.nodes)this.visitSync(this.listeners.OnceExit,w);else this.visitSync(this.listeners.OnceExit,y)}return this.result}then(y,w){return this.async().then(y,w)}toString(){return this.css}visitSync(y,w){for(let[L,C]of y){this.result.lastPlugin=L;let _;try{_=C(w,this.helpers)}catch(I){throw this.handleError(I,w.proxyOf)}if(w.type!=="root"&&w.type!=="document"&&!w.parent)return!0;if(h(_))throw this.getAsyncError()}}visitTick(y){let w=y[y.length-1],{node:L,visitors:C}=w;if(L.type!=="root"&&L.type!=="document"&&!L.parent){y.pop();return}if(C.length>0&&w.visitorIndex<C.length){let[I,D]=C[w.visitorIndex];w.visitorIndex+=1,w.visitorIndex===C.length&&(w.visitors=[],w.visitorIndex=0),this.result.lastPlugin=I;try{return D(L.toProxy(),this.helpers)}catch(A){throw this.handleError(A,L)}}if(w.iterator!==0){let I=w.iterator,D;for(;D=L.nodes[L.indexes[I]];)if(L.indexes[I]+=1,!D[e]){D[e]=!0,y.push(b(D));return}w.iterator=0,delete L.indexes[I]}let _=w.events;for(;w.eventIndex<_.length;){let I=_[w.eventIndex];if(w.eventIndex+=1,I===f){L.nodes&&L.nodes.length&&(L[e]=!0,w.iterator=L.getIterator());return}else if(this.listeners[I]){w.visitors=this.listeners[I];return}}y.pop()}walkSync(y){y[e]=!0;let w=m(y);for(let L of w)if(L===f)y.nodes&&y.each(C=>{C[e]||this.walkSync(C)});else{let C=this.listeners[L];if(C&&this.visitSync(C,y.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}return v.registerPostcss=S=>{x=S},yf=v,v.default=v,d.registerLazyResult(v),o.registerLazyResult(v),yf}var wf,Fv;function PC(){if(Fv)return wf;Fv=1;let e=rw(),t=Vl(),r=nw(),n=Fp(),a=Ap();class o{constructor(i,l,d){l=l.toString(),this.stringified=!1,this._processor=i,this._css=l,this._opts=d,this._map=void 0;let u,p=t;this.result=new a(this._processor,u,this._opts),this.result.css=l;let c=this;Object.defineProperty(this.result,"root",{get(){return c.root}});let f=new e(p,u,this._opts,l);if(f.isMap()){let[h,m]=f.generate();h&&(this.result.css=h),m&&(this.result.map=m)}else f.clearAnnotation(),this.result.css=f.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(i){return this.async().catch(i)}finally(i){return this.async().then(i,i)}sync(){if(this.error)throw this.error;return this.result}then(i,l){return this.async().then(i,l)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let i,l=n;try{i=l(this._css,this._opts)}catch(d){this.error=d}if(this.error)throw this.error;return this._root=i,i}get[Symbol.toStringTag](){return"NoWorkResult"}}return wf=o,o.default=o,wf}var bf,Bv;function NC(){if(Bv)return bf;Bv=1;let e=PC(),t=sw(),r=Tp(),n=fs();class a{constructor(s=[]){this.version="8.4.38",this.plugins=this.normalize(s)}normalize(s){let i=[];for(let l of s)if(l.postcss===!0?l=l():l.postcss&&(l=l.postcss),typeof l=="object"&&Array.isArray(l.plugins))i=i.concat(l.plugins);else if(typeof l=="object"&&l.postcssPlugin)i.push(l);else if(typeof l=="function")i.push(l);else if(!(typeof l=="object"&&(l.parse||l.stringify)))throw new Error(l+" is not a PostCSS plugin");return i}process(s,i={}){return!this.plugins.length&&!i.parser&&!i.stringifier&&!i.syntax?new e(this,s,i):new t(this,s,i)}use(s){return this.plugins=this.plugins.concat(this.normalize([s])),this}}return bf=a,a.default=a,n.registerProcessor(a),r.registerProcessor(a),bf}var Sf,zv;function TC(){if(zv)return Sf;zv=1;let e=Xl(),t=tw(),r=Ql(),n=Dp(),a=Kl(),o=fs(),s=Op();function i(l,d){if(Array.isArray(l))return l.map(c=>i(c));let{inputs:u,...p}=l;if(u){d=[];for(let c of u){let f={...c,__proto__:a.prototype};f.map&&(f.map={...f.map,__proto__:t.prototype}),d.push(f)}}if(p.nodes&&(p.nodes=l.nodes.map(c=>i(c,d))),p.source){let{inputId:c,...f}=p.source;p.source=f,c!=null&&(p.source.input=d[c])}if(p.type==="root")return new o(p);if(p.type==="decl")return new e(p);if(p.type==="rule")return new s(p);if(p.type==="comment")return new r(p);if(p.type==="atrule")return new n(p);throw new Error("Unknown node type: "+l.type)}return Sf=i,i.default=i,Sf}var Cf,Uv;function AC(){if(Uv)return Cf;Uv=1;let e=Pp(),t=Xl(),r=sw(),n=Gn(),a=NC(),o=Vl(),s=TC(),i=Tp(),l=aw(),d=Ql(),u=Dp(),p=Ap(),c=Kl(),f=Fp(),h=ow(),m=Op(),b=fs(),g=Gl();function x(...v){return v.length===1&&Array.isArray(v[0])&&(v=v[0]),new a(v)}return x.plugin=function(S,y){let w=!1;function L(..._){console&&console.warn&&!w&&(w=!0,console.warn(S+`: postcss.plugin was deprecated. Migration guide:
|
|
30
|
+
`),this.css+=f+"/*# sourceMappingURL="+c+" */"}applyPrevMaps(){for(let c of this.previous()){let f=this.toUrl(this.path(c.file)),h=c.root||r(c.file),m;this.mapOpts.sourcesContent===!1?(m=new e(c.text),m.sourcesContent&&(m.sourcesContent=null)):m=c.consumer(),this.map.applySourceMap(m,f,this.toUrl(this.path(h)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let c;for(let f=this.root.nodes.length-1;f>=0;f--)c=this.root.nodes[f],c.type==="comment"&&c.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(f)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),d&&i&&this.isMap())return this.generateMap();{let c="";return this.stringify(this.root,f=>{c+=f}),[c]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let c=this.previous()[0].consumer();c.file=this.outputFile(),this.map=t.fromSourceMap(c,{ignoreInvalidMapping:!0})}else this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0});let c=1,f=1,h="<no source>",m={generated:{column:0,line:0},original:{column:0,line:0},source:""},y,g;this.stringify(this.root,(x,v,S)=>{if(this.css+=x,v&&S!=="end"&&(m.generated.line=c,m.generated.column=f-1,v.source&&v.source.start?(m.source=this.sourcePath(v),m.original.line=v.source.start.line,m.original.column=v.source.start.column-1,this.map.addMapping(m)):(m.source=h,m.original.line=1,m.original.column=0,this.map.addMapping(m))),y=x.match(/\n/g),y?(c+=y.length,g=x.lastIndexOf(`
|
|
31
|
+
`),f=x.length-g):f+=x.length,v&&S!=="start"){let b=v.parent||{raws:{}};(!(v.type==="decl"||v.type==="atrule"&&!v.nodes)||v!==b.last||b.raws.semicolon)&&(v.source&&v.source.end?(m.source=this.sourcePath(v),m.original.line=v.source.end.line,m.original.column=v.source.end.column-1,m.generated.line=c,m.generated.column=f-2,this.map.addMapping(m)):(m.source=h,m.original.line=1,m.original.column=0,m.generated.line=c,m.generated.column=f-1,this.map.addMapping(m)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(c=>c.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let c=this.mapOpts.annotation;return typeof c<"u"&&c!==!0?!1:this.previous().length?this.previous().some(f=>f.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(c=>c.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(c){if(this.mapOpts.absolute||c.charCodeAt(0)===60||/^\w+:\/\//.test(c))return c;let f=this.memoizedPaths.get(c);if(f)return f;let h=this.opts.to?r(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(h=r(a(h,this.mapOpts.annotation)));let m=n(h,c);return this.memoizedPaths.set(c,m),m}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(c=>{if(c.source&&c.source.input.map){let f=c.source.input.map;this.previousMaps.includes(f)||this.previousMaps.push(f)}});else{let c=new l(this.originalCSS,this.opts);c.map&&this.previousMaps.push(c.map)}return this.previousMaps}setSourcesContent(){let c={};if(this.root)this.root.walk(f=>{if(f.source){let h=f.source.input.from;if(h&&!c[h]){c[h]=!0;let m=this.usesFileUrls?this.toFileUrl(h):this.toUrl(this.path(h));this.map.setSourceContent(m,f.source.input.css)}}});else if(this.css){let f=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(f,this.css)}}sourcePath(c){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(c.source.input.from):this.toUrl(this.path(c.source.input.from))}toBase64(c){return Buffer?Buffer.from(c).toString("base64"):window.btoa(unescape(encodeURIComponent(c)))}toFileUrl(c){let f=this.memoizedFileURLs.get(c);if(f)return f;if(s){let h=s(c).toString();return this.memoizedFileURLs.set(c,h),h}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(c){let f=this.memoizedURLs.get(c);if(f)return f;o==="\\"&&(c=c.replace(/\\/g,"/"));let h=encodeURI(c).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(c,h),h}}return lf=u,lf}var uf,Mv;function Zi(){if(Mv)return uf;Mv=1;let e=Qi();class t extends e{constructor(n){super(n),this.type="comment"}}return uf=t,t.default=t,uf}var df,Rv;function Kn(){if(Rv)return df;Rv=1;let{isClean:e,my:t}=Dp(),r=Yi(),n=Zi(),a=Qi(),o,s,l,i;function d(c){return c.map(f=>(f.nodes&&(f.nodes=d(f.nodes)),delete f.source,f))}function u(c){if(c[e]=!1,c.proxyOf.nodes)for(let f of c.proxyOf.nodes)u(f)}class p extends a{append(...f){for(let h of f){let m=this.normalize(h,this.last);for(let y of m)this.proxyOf.nodes.push(y)}return this.markDirty(),this}cleanRaws(f){if(super.cleanRaws(f),this.nodes)for(let h of this.nodes)h.cleanRaws(f)}each(f){if(!this.proxyOf.nodes)return;let h=this.getIterator(),m,y;for(;this.indexes[h]<this.proxyOf.nodes.length&&(m=this.indexes[h],y=f(this.proxyOf.nodes[m],m),y!==!1);)this.indexes[h]+=1;return delete this.indexes[h],y}every(f){return this.nodes.every(f)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let f=this.lastEach;return this.indexes[f]=0,f}getProxyProcessor(){return{get(f,h){return h==="proxyOf"?f:f[h]?h==="each"||typeof h=="string"&&h.startsWith("walk")?(...m)=>f[h](...m.map(y=>typeof y=="function"?(g,x)=>y(g.toProxy(),x):y)):h==="every"||h==="some"?m=>f[h]((y,...g)=>m(y.toProxy(),...g)):h==="root"?()=>f.root().toProxy():h==="nodes"?f.nodes.map(m=>m.toProxy()):h==="first"||h==="last"?f[h].toProxy():f[h]:f[h]},set(f,h,m){return f[h]===m||(f[h]=m,(h==="name"||h==="params"||h==="selector")&&f.markDirty()),!0}}}index(f){return typeof f=="number"?f:(f.proxyOf&&(f=f.proxyOf),this.proxyOf.nodes.indexOf(f))}insertAfter(f,h){let m=this.index(f),y=this.normalize(h,this.proxyOf.nodes[m]).reverse();m=this.index(f);for(let x of y)this.proxyOf.nodes.splice(m+1,0,x);let g;for(let x in this.indexes)g=this.indexes[x],m<g&&(this.indexes[x]=g+y.length);return this.markDirty(),this}insertBefore(f,h){let m=this.index(f),y=m===0?"prepend":!1,g=this.normalize(h,this.proxyOf.nodes[m],y).reverse();m=this.index(f);for(let v of g)this.proxyOf.nodes.splice(m,0,v);let x;for(let v in this.indexes)x=this.indexes[v],m<=x&&(this.indexes[v]=x+g.length);return this.markDirty(),this}normalize(f,h){if(typeof f=="string")f=d(o(f).nodes);else if(typeof f>"u")f=[];else if(Array.isArray(f)){f=f.slice(0);for(let y of f)y.parent&&y.parent.removeChild(y,"ignore")}else if(f.type==="root"&&this.type!=="document"){f=f.nodes.slice(0);for(let y of f)y.parent&&y.parent.removeChild(y,"ignore")}else if(f.type)f=[f];else if(f.prop){if(typeof f.value>"u")throw new Error("Value field is missed in node creation");typeof f.value!="string"&&(f.value=String(f.value)),f=[new r(f)]}else if(f.selector)f=[new s(f)];else if(f.name)f=[new l(f)];else if(f.text)f=[new n(f)];else throw new Error("Unknown node type in node creation");return f.map(y=>(y[t]||p.rebuild(y),y=y.proxyOf,y.parent&&y.parent.removeChild(y),y[e]&&u(y),typeof y.raws.before>"u"&&h&&typeof h.raws.before<"u"&&(y.raws.before=h.raws.before.replace(/\S/g,"")),y.parent=this.proxyOf,y))}prepend(...f){f=f.reverse();for(let h of f){let m=this.normalize(h,this.first,"prepend").reverse();for(let y of m)this.proxyOf.nodes.unshift(y);for(let y in this.indexes)this.indexes[y]=this.indexes[y]+m.length}return this.markDirty(),this}push(f){return f.parent=this,this.proxyOf.nodes.push(f),this}removeAll(){for(let f of this.proxyOf.nodes)f.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(f){f=this.index(f),this.proxyOf.nodes[f].parent=void 0,this.proxyOf.nodes.splice(f,1);let h;for(let m in this.indexes)h=this.indexes[m],h>=f&&(this.indexes[m]=h-1);return this.markDirty(),this}replaceValues(f,h,m){return m||(m=h,h={}),this.walkDecls(y=>{h.props&&!h.props.includes(y.prop)||h.fast&&!y.value.includes(h.fast)||(y.value=y.value.replace(f,m))}),this.markDirty(),this}some(f){return this.nodes.some(f)}walk(f){return this.each((h,m)=>{let y;try{y=f(h,m)}catch(g){throw h.addToError(g)}return y!==!1&&h.walk&&(y=h.walk(f)),y})}walkAtRules(f,h){return h?f instanceof RegExp?this.walk((m,y)=>{if(m.type==="atrule"&&f.test(m.name))return h(m,y)}):this.walk((m,y)=>{if(m.type==="atrule"&&m.name===f)return h(m,y)}):(h=f,this.walk((m,y)=>{if(m.type==="atrule")return h(m,y)}))}walkComments(f){return this.walk((h,m)=>{if(h.type==="comment")return f(h,m)})}walkDecls(f,h){return h?f instanceof RegExp?this.walk((m,y)=>{if(m.type==="decl"&&f.test(m.prop))return h(m,y)}):this.walk((m,y)=>{if(m.type==="decl"&&m.prop===f)return h(m,y)}):(h=f,this.walk((m,y)=>{if(m.type==="decl")return h(m,y)}))}walkRules(f,h){return h?f instanceof RegExp?this.walk((m,y)=>{if(m.type==="rule"&&f.test(m.selector))return h(m,y)}):this.walk((m,y)=>{if(m.type==="rule"&&m.selector===f)return h(m,y)}):(h=f,this.walk((m,y)=>{if(m.type==="rule")return h(m,y)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return p.registerParse=c=>{o=c},p.registerRule=c=>{s=c},p.registerAtRule=c=>{l=c},p.registerRoot=c=>{i=c},df=p,p.default=p,p.rebuild=c=>{c.type==="atrule"?Object.setPrototypeOf(c,l.prototype):c.type==="rule"?Object.setPrototypeOf(c,s.prototype):c.type==="decl"?Object.setPrototypeOf(c,r.prototype):c.type==="comment"?Object.setPrototypeOf(c,n.prototype):c.type==="root"&&Object.setPrototypeOf(c,i.prototype),c[t]=!0,c.nodes&&c.nodes.forEach(f=>{p.rebuild(f)})},df}var cf,Ev;function Op(){if(Ev)return cf;Ev=1;let e=Kn(),t,r;class n extends e{constructor(o){super({type:"document",...o}),this.nodes||(this.nodes=[])}toResult(o={}){return new t(new r,this,o).stringify()}}return n.registerLazyResult=a=>{t=a},n.registerProcessor=a=>{r=a},cf=n,n.default=n,cf}var ff,Nv;function iw(){if(Nv)return ff;Nv=1;let e={};return ff=function(r){e[r]||(e[r]=!0,typeof console<"u"&&console.warn&&console.warn(r))},ff}var pf,Pv;function uw(){if(Pv)return pf;Pv=1;class e{constructor(r,n={}){if(this.type="warning",this.text=r,n.node&&n.node.source){let a=n.node.rangeBy(n);this.line=a.start.line,this.column=a.start.column,this.endLine=a.end.line,this.endColumn=a.end.column}for(let a in n)this[a]=n[a]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return pf=e,e.default=e,pf}var mf,Tv;function Fp(){if(Tv)return mf;Tv=1;let e=uw();class t{constructor(n,a,o){this.processor=n,this.messages=[],this.root=a,this.opts=o,this.css=void 0,this.map=void 0}toString(){return this.css}warn(n,a={}){a.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(a.plugin=this.lastPlugin.postcssPlugin);let o=new e(n,a);return this.messages.push(o),o}warnings(){return this.messages.filter(n=>n.type==="warning")}get content(){return this.css}}return mf=t,t.default=t,mf}var hf,Av;function OC(){if(Av)return hf;Av=1;let e=39,t=34,r=92,n=47,a=10,o=32,s=12,l=9,i=13,d=91,u=93,p=40,c=41,f=123,h=125,m=59,y=42,g=58,x=64,v=/[\t\n\f\r "#'()/;[\\\]{}]/g,S=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,b=/.[\r\n"'(/\\]/,w=/[\da-f]/i;return hf=function(L,k={}){let _=L.css.valueOf(),N=k.ignoreErrors,P,I,re,_e,se,j,ve,Me,Le,Ce,br=_.length,T=0,yt=[],wt=[];function En(){return T}function Ye(K){throw L.error("Unclosed "+K,T)}function it(){return wt.length===0&&T>=br}function Sr(K){if(wt.length)return wt.pop();if(T>=br)return;let Re=K?K.ignoreUnclosed:!1;switch(P=_.charCodeAt(T),P){case a:case o:case l:case i:case s:{I=T;do I+=1,P=_.charCodeAt(I);while(P===o||P===a||P===l||P===i||P===s);Ce=["space",_.slice(T,I)],T=I-1;break}case d:case u:case f:case h:case g:case m:case c:{let ue=String.fromCharCode(P);Ce=[ue,ue,T];break}case p:{if(Me=yt.length?yt.pop()[1]:"",Le=_.charCodeAt(T+1),Me==="url"&&Le!==e&&Le!==t&&Le!==o&&Le!==a&&Le!==l&&Le!==s&&Le!==i){I=T;do{if(j=!1,I=_.indexOf(")",I+1),I===-1)if(N||Re){I=T;break}else Ye("bracket");for(ve=I;_.charCodeAt(ve-1)===r;)ve-=1,j=!j}while(j);Ce=["brackets",_.slice(T,I+1),T,I],T=I}else I=_.indexOf(")",T+1),_e=_.slice(T,I+1),I===-1||b.test(_e)?Ce=["(","(",T]:(Ce=["brackets",_e,T,I],T=I);break}case e:case t:{re=P===e?"'":'"',I=T;do{if(j=!1,I=_.indexOf(re,I+1),I===-1)if(N||Re){I=T+1;break}else Ye("string");for(ve=I;_.charCodeAt(ve-1)===r;)ve-=1,j=!j}while(j);Ce=["string",_.slice(T,I+1),T,I],T=I;break}case x:{v.lastIndex=T+1,v.test(_),v.lastIndex===0?I=_.length-1:I=v.lastIndex-2,Ce=["at-word",_.slice(T,I+1),T,I],T=I;break}case r:{for(I=T,se=!0;_.charCodeAt(I+1)===r;)I+=1,se=!se;if(P=_.charCodeAt(I+1),se&&P!==n&&P!==o&&P!==a&&P!==l&&P!==i&&P!==s&&(I+=1,w.test(_.charAt(I)))){for(;w.test(_.charAt(I+1));)I+=1;_.charCodeAt(I+1)===o&&(I+=1)}Ce=["word",_.slice(T,I+1),T,I],T=I;break}default:{P===n&&_.charCodeAt(T+1)===y?(I=_.indexOf("*/",T+2)+1,I===0&&(N||Re?I=_.length:Ye("comment")),Ce=["comment",_.slice(T,I+1),T,I],T=I):(S.lastIndex=T+1,S.test(_),S.lastIndex===0?I=_.length-1:I=S.lastIndex-2,Ce=["word",_.slice(T,I+1),T,I],yt.push(Ce),T=I);break}}return T++,Ce}function Cr(K){wt.push(K)}return{back:Cr,endOfFile:it,nextToken:Sr,position:En}},hf}var gf,Dv;function Bp(){if(Dv)return gf;Dv=1;let e=Kn();class t extends e{constructor(n){super(n),this.type="atrule"}append(...n){return this.proxyOf.nodes||(this.nodes=[]),super.append(...n)}prepend(...n){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...n)}}return gf=t,t.default=t,e.registerAtRule(t),gf}var xf,Ov;function gs(){if(Ov)return xf;Ov=1;let e=Kn(),t,r;class n extends e{constructor(o){super(o),this.type="root",this.nodes||(this.nodes=[])}normalize(o,s,l){let i=super.normalize(o);if(s){if(l==="prepend")this.nodes.length>1?s.raws.before=this.nodes[1].raws.before:delete s.raws.before;else if(this.first!==s)for(let d of i)d.raws.before=s.raws.before}return i}removeChild(o,s){let l=this.index(o);return!s&&l===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[l].raws.before),super.removeChild(o)}toResult(o={}){return new t(new r,this,o).stringify()}}return n.registerLazyResult=a=>{t=a},n.registerProcessor=a=>{r=a},xf=n,n.default=n,e.registerRoot(n),xf}var vf,Fv;function dw(){if(Fv)return vf;Fv=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let r=[" ",`
|
|
32
|
+
`," "];return e.split(t,r)},split(t,r,n){let a=[],o="",s=!1,l=0,i=!1,d="",u=!1;for(let p of t)u?u=!1:p==="\\"?u=!0:i?p===d&&(i=!1):p==='"'||p==="'"?(i=!0,d=p):p==="("?l+=1:p===")"?l>0&&(l-=1):l===0&&r.includes(p)&&(s=!0),s?(o!==""&&a.push(o.trim()),o="",s=!1):o+=p;return(n||o!=="")&&a.push(o.trim()),a}};return vf=e,e.default=e,vf}var yf,Bv;function zp(){if(Bv)return yf;Bv=1;let e=Kn(),t=dw();class r extends e{constructor(a){super(a),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(a){let o=this.selector?this.selector.match(/,\s*/):null,s=o?o[0]:","+this.raw("between","beforeOpen");this.selector=a.join(s)}}return yf=r,r.default=r,e.registerRule(r),yf}var wf,zv;function FC(){if(zv)return wf;zv=1;let e=Yi(),t=OC(),r=Zi(),n=Bp(),a=gs(),o=zp(),s={empty:!0,space:!0};function l(d){for(let u=d.length-1;u>=0;u--){let p=d[u],c=p[3]||p[2];if(c)return c}}class i{constructor(u){this.input=u,this.root=new a,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:u,start:{column:1,line:1,offset:0}}}atrule(u){let p=new n;p.name=u[1].slice(1),p.name===""&&this.unnamedAtrule(p,u),this.init(p,u[2]);let c,f,h,m=!1,y=!1,g=[],x=[];for(;!this.tokenizer.endOfFile();){if(u=this.tokenizer.nextToken(),c=u[0],c==="("||c==="["?x.push(c==="("?")":"]"):c==="{"&&x.length>0?x.push("}"):c===x[x.length-1]&&x.pop(),x.length===0)if(c===";"){p.source.end=this.getPosition(u[2]),p.source.end.offset++,this.semicolon=!0;break}else if(c==="{"){y=!0;break}else if(c==="}"){if(g.length>0){for(h=g.length-1,f=g[h];f&&f[0]==="space";)f=g[--h];f&&(p.source.end=this.getPosition(f[3]||f[2]),p.source.end.offset++)}this.end(u);break}else g.push(u);else g.push(u);if(this.tokenizer.endOfFile()){m=!0;break}}p.raws.between=this.spacesAndCommentsFromEnd(g),g.length?(p.raws.afterName=this.spacesAndCommentsFromStart(g),this.raw(p,"params",g),m&&(u=g[g.length-1],p.source.end=this.getPosition(u[3]||u[2]),p.source.end.offset++,this.spaces=p.raws.between,p.raws.between="")):(p.raws.afterName="",p.params=""),y&&(p.nodes=[],this.current=p)}checkMissedSemicolon(u){let p=this.colon(u);if(p===!1)return;let c=0,f;for(let h=p-1;h>=0&&(f=u[h],!(f[0]!=="space"&&(c+=1,c===2)));h--);throw this.input.error("Missed semicolon",f[0]==="word"?f[3]+1:f[2])}colon(u){let p=0,c,f,h;for(let[m,y]of u.entries()){if(c=y,f=c[0],f==="("&&(p+=1),f===")"&&(p-=1),p===0&&f===":")if(!h)this.doubleColon(c);else{if(h[0]==="word"&&h[1]==="progid")continue;return m}h=c}return!1}comment(u){let p=new r;this.init(p,u[2]),p.source.end=this.getPosition(u[3]||u[2]),p.source.end.offset++;let c=u[1].slice(2,-2);if(/^\s*$/.test(c))p.text="",p.raws.left=c,p.raws.right="";else{let f=c.match(/^(\s*)([^]*\S)(\s*)$/);p.text=f[2],p.raws.left=f[1],p.raws.right=f[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(u,p){let c=new e;this.init(c,u[0][2]);let f=u[u.length-1];for(f[0]===";"&&(this.semicolon=!0,u.pop()),c.source.end=this.getPosition(f[3]||f[2]||l(u)),c.source.end.offset++;u[0][0]!=="word";)u.length===1&&this.unknownWord(u),c.raws.before+=u.shift()[1];for(c.source.start=this.getPosition(u[0][2]),c.prop="";u.length;){let x=u[0][0];if(x===":"||x==="space"||x==="comment")break;c.prop+=u.shift()[1]}c.raws.between="";let h;for(;u.length;)if(h=u.shift(),h[0]===":"){c.raws.between+=h[1];break}else h[0]==="word"&&/\w/.test(h[1])&&this.unknownWord([h]),c.raws.between+=h[1];(c.prop[0]==="_"||c.prop[0]==="*")&&(c.raws.before+=c.prop[0],c.prop=c.prop.slice(1));let m=[],y;for(;u.length&&(y=u[0][0],!(y!=="space"&&y!=="comment"));)m.push(u.shift());this.precheckMissedSemicolon(u);for(let x=u.length-1;x>=0;x--){if(h=u[x],h[1].toLowerCase()==="!important"){c.important=!0;let v=this.stringFrom(u,x);v=this.spacesFromEnd(u)+v,v!==" !important"&&(c.raws.important=v);break}else if(h[1].toLowerCase()==="important"){let v=u.slice(0),S="";for(let b=x;b>0;b--){let w=v[b][0];if(S.trim().indexOf("!")===0&&w!=="space")break;S=v.pop()[1]+S}S.trim().indexOf("!")===0&&(c.important=!0,c.raws.important=S,u=v)}if(h[0]!=="space"&&h[0]!=="comment")break}u.some(x=>x[0]!=="space"&&x[0]!=="comment")&&(c.raws.between+=m.map(x=>x[1]).join(""),m=[]),this.raw(c,"value",m.concat(u),p),c.value.includes(":")&&!p&&this.checkMissedSemicolon(u)}doubleColon(u){throw this.input.error("Double colon",{offset:u[2]},{offset:u[2]+u[1].length})}emptyRule(u){let p=new o;this.init(p,u[2]),p.selector="",p.raws.between="",this.current=p}end(u){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(u[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(u)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(u){if(this.spaces+=u[1],this.current.nodes){let p=this.current.nodes[this.current.nodes.length-1];p&&p.type==="rule"&&!p.raws.ownSemicolon&&(p.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(u){let p=this.input.fromOffset(u);return{column:p.col,line:p.line,offset:u}}init(u,p){this.current.push(u),u.source={input:this.input,start:this.getPosition(p)},u.raws.before=this.spaces,this.spaces="",u.type!=="comment"&&(this.semicolon=!1)}other(u){let p=!1,c=null,f=!1,h=null,m=[],y=u[1].startsWith("--"),g=[],x=u;for(;x;){if(c=x[0],g.push(x),c==="("||c==="[")h||(h=x),m.push(c==="("?")":"]");else if(y&&f&&c==="{")h||(h=x),m.push("}");else if(m.length===0)if(c===";")if(f){this.decl(g,y);return}else break;else if(c==="{"){this.rule(g);return}else if(c==="}"){this.tokenizer.back(g.pop()),p=!0;break}else c===":"&&(f=!0);else c===m[m.length-1]&&(m.pop(),m.length===0&&(h=null));x=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(p=!0),m.length>0&&this.unclosedBracket(h),p&&f){if(!y)for(;g.length&&(x=g[g.length-1][0],!(x!=="space"&&x!=="comment"));)this.tokenizer.back(g.pop());this.decl(g,y)}else this.unknownWord(g)}parse(){let u;for(;!this.tokenizer.endOfFile();)switch(u=this.tokenizer.nextToken(),u[0]){case"space":this.spaces+=u[1];break;case";":this.freeSemicolon(u);break;case"}":this.end(u);break;case"comment":this.comment(u);break;case"at-word":this.atrule(u);break;case"{":this.emptyRule(u);break;default:this.other(u);break}this.endFile()}precheckMissedSemicolon(){}raw(u,p,c,f){let h,m,y=c.length,g="",x=!0,v,S;for(let b=0;b<y;b+=1)h=c[b],m=h[0],m==="space"&&b===y-1&&!f?x=!1:m==="comment"?(S=c[b-1]?c[b-1][0]:"empty",v=c[b+1]?c[b+1][0]:"empty",!s[S]&&!s[v]?g.slice(-1)===","?x=!1:g+=h[1]:x=!1):g+=h[1];if(!x){let b=c.reduce((w,C)=>w+C[1],"");u.raws[p]={raw:b,value:g}}u[p]=g}rule(u){u.pop();let p=new o;this.init(p,u[0][2]),p.raws.between=this.spacesAndCommentsFromEnd(u),this.raw(p,"selector",u),this.current=p}spacesAndCommentsFromEnd(u){let p,c="";for(;u.length&&(p=u[u.length-1][0],!(p!=="space"&&p!=="comment"));)c=u.pop()[1]+c;return c}spacesAndCommentsFromStart(u){let p,c="";for(;u.length&&(p=u[0][0],!(p!=="space"&&p!=="comment"));)c+=u.shift()[1];return c}spacesFromEnd(u){let p,c="";for(;u.length&&(p=u[u.length-1][0],p==="space");)c=u.pop()[1]+c;return c}stringFrom(u,p){let c="";for(let f=p;f<u.length;f++)c+=u[f][1];return u.splice(p,u.length-p),c}unclosedBlock(){let u=this.current.source.start;throw this.input.error("Unclosed block",u.line,u.column)}unclosedBracket(u){throw this.input.error("Unclosed bracket",{offset:u[2]},{offset:u[2]+1})}unexpectedClose(u){throw this.input.error("Unexpected }",{offset:u[2]},{offset:u[2]+1})}unknownWord(u){throw this.input.error("Unknown word",{offset:u[0][2]},{offset:u[0][2]+u[0][1].length})}unnamedAtrule(u,p){throw this.input.error("At-rule without name",{offset:p[2]},{offset:p[2]+p[1].length})}}return wf=i,wf}var bf,Uv;function Up(){if(Uv)return bf;Uv=1;let e=Kn(),t=FC(),r=Ji();function n(a,o){let s=new r(a,o),l=new t(s);try{l.parse()}catch(i){throw i}return l.root}return bf=n,n.default=n,e.registerParse(n),bf}var Sf,qv;function cw(){if(qv)return Sf;qv=1;let{isClean:e,my:t}=Dp(),r=lw(),n=Ki(),a=Kn(),o=Op(),s=iw(),l=Fp(),i=Up(),d=gs(),u={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},p={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},c={Once:!0,postcssPlugin:!0,prepare:!0},f=0;function h(S){return typeof S=="object"&&typeof S.then=="function"}function m(S){let b=!1,w=u[S.type];return S.type==="decl"?b=S.prop.toLowerCase():S.type==="atrule"&&(b=S.name.toLowerCase()),b&&S.append?[w,w+"-"+b,f,w+"Exit",w+"Exit-"+b]:b?[w,w+"-"+b,w+"Exit",w+"Exit-"+b]:S.append?[w,f,w+"Exit"]:[w,w+"Exit"]}function y(S){let b;return S.type==="document"?b=["Document",f,"DocumentExit"]:S.type==="root"?b=["Root",f,"RootExit"]:b=m(S),{eventIndex:0,events:b,iterator:0,node:S,visitorIndex:0,visitors:[]}}function g(S){return S[e]=!1,S.nodes&&S.nodes.forEach(b=>g(b)),S}let x={};class v{constructor(b,w,C){this.stringified=!1,this.processed=!1;let L;if(typeof w=="object"&&w!==null&&(w.type==="root"||w.type==="document"))L=g(w);else if(w instanceof v||w instanceof l)L=g(w.root),w.map&&(typeof C.map>"u"&&(C.map={}),C.map.inline||(C.map.inline=!1),C.map.prev=w.map);else{let k=i;C.syntax&&(k=C.syntax.parse),C.parser&&(k=C.parser),k.parse&&(k=k.parse);try{L=k(w,C)}catch(_){this.processed=!0,this.error=_}L&&!L[t]&&a.rebuild(L)}this.result=new l(b,L,C),this.helpers={...x,postcss:x,result:this.result},this.plugins=this.processor.plugins.map(k=>typeof k=="object"&&k.prepare?{...k,...k.prepare(this.result)}:k)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(b){return this.async().catch(b)}finally(b){return this.async().then(b,b)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(b,w){let C=this.result.lastPlugin;try{w&&w.addToError(b),this.error=b,b.name==="CssSyntaxError"&&!b.plugin?(b.plugin=C.postcssPlugin,b.setMessage()):C.postcssVersion}catch(L){console&&console.error&&console.error(L)}return b}prepareVisitors(){this.listeners={};let b=(w,C,L)=>{this.listeners[C]||(this.listeners[C]=[]),this.listeners[C].push([w,L])};for(let w of this.plugins)if(typeof w=="object")for(let C in w){if(!p[C]&&/^[A-Z]/.test(C))throw new Error(`Unknown event ${C} in ${w.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!c[C])if(typeof w[C]=="object")for(let L in w[C])L==="*"?b(w,C,w[C][L]):b(w,C+"-"+L.toLowerCase(),w[C][L]);else typeof w[C]=="function"&&b(w,C,w[C])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let b=0;b<this.plugins.length;b++){let w=this.plugins[b],C=this.runOnRoot(w);if(h(C))try{await C}catch(L){throw this.handleError(L)}}if(this.prepareVisitors(),this.hasListener){let b=this.result.root;for(;!b[e];){b[e]=!0;let w=[y(b)];for(;w.length>0;){let C=this.visitTick(w);if(h(C))try{await C}catch(L){let k=w[w.length-1].node;throw this.handleError(L,k)}}}if(this.listeners.OnceExit)for(let[w,C]of this.listeners.OnceExit){this.result.lastPlugin=w;try{if(b.type==="document"){let L=b.nodes.map(k=>C(k,this.helpers));await Promise.all(L)}else await C(b,this.helpers)}catch(L){throw this.handleError(L)}}}return this.processed=!0,this.stringify()}runOnRoot(b){this.result.lastPlugin=b;try{if(typeof b=="object"&&b.Once){if(this.result.root.type==="document"){let w=this.result.root.nodes.map(C=>b.Once(C,this.helpers));return h(w[0])?Promise.all(w):w}return b.Once(this.result.root,this.helpers)}else if(typeof b=="function")return b(this.result.root,this.result)}catch(w){throw this.handleError(w)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let b=this.result.opts,w=n;b.syntax&&(w=b.syntax.stringify),b.stringifier&&(w=b.stringifier),w.stringify&&(w=w.stringify);let L=new r(w,this.result.root,this.result.opts).generate();return this.result.css=L[0],this.result.map=L[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let b of this.plugins){let w=this.runOnRoot(b);if(h(w))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let b=this.result.root;for(;!b[e];)b[e]=!0,this.walkSync(b);if(this.listeners.OnceExit)if(b.type==="document")for(let w of b.nodes)this.visitSync(this.listeners.OnceExit,w);else this.visitSync(this.listeners.OnceExit,b)}return this.result}then(b,w){return this.async().then(b,w)}toString(){return this.css}visitSync(b,w){for(let[C,L]of b){this.result.lastPlugin=C;let k;try{k=L(w,this.helpers)}catch(_){throw this.handleError(_,w.proxyOf)}if(w.type!=="root"&&w.type!=="document"&&!w.parent)return!0;if(h(k))throw this.getAsyncError()}}visitTick(b){let w=b[b.length-1],{node:C,visitors:L}=w;if(C.type!=="root"&&C.type!=="document"&&!C.parent){b.pop();return}if(L.length>0&&w.visitorIndex<L.length){let[_,N]=L[w.visitorIndex];w.visitorIndex+=1,w.visitorIndex===L.length&&(w.visitors=[],w.visitorIndex=0),this.result.lastPlugin=_;try{return N(C.toProxy(),this.helpers)}catch(P){throw this.handleError(P,C)}}if(w.iterator!==0){let _=w.iterator,N;for(;N=C.nodes[C.indexes[_]];)if(C.indexes[_]+=1,!N[e]){N[e]=!0,b.push(y(N));return}w.iterator=0,delete C.indexes[_]}let k=w.events;for(;w.eventIndex<k.length;){let _=k[w.eventIndex];if(w.eventIndex+=1,_===f){C.nodes&&C.nodes.length&&(C[e]=!0,w.iterator=C.getIterator());return}else if(this.listeners[_]){w.visitors=this.listeners[_];return}}b.pop()}walkSync(b){b[e]=!0;let w=m(b);for(let C of w)if(C===f)b.nodes&&b.each(L=>{L[e]||this.walkSync(L)});else{let L=this.listeners[C];if(L&&this.visitSync(L,b.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}return v.registerPostcss=S=>{x=S},Sf=v,v.default=v,d.registerLazyResult(v),o.registerLazyResult(v),Sf}var Cf,$v;function BC(){if($v)return Cf;$v=1;let e=lw(),t=Ki(),r=iw(),n=Up(),a=Fp();class o{constructor(l,i,d){i=i.toString(),this.stringified=!1,this._processor=l,this._css=i,this._opts=d,this._map=void 0;let u,p=t;this.result=new a(this._processor,u,this._opts),this.result.css=i;let c=this;Object.defineProperty(this.result,"root",{get(){return c.root}});let f=new e(p,u,this._opts,i);if(f.isMap()){let[h,m]=f.generate();h&&(this.result.css=h),m&&(this.result.map=m)}else f.clearAnnotation(),this.result.css=f.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(l){return this.async().catch(l)}finally(l){return this.async().then(l,l)}sync(){if(this.error)throw this.error;return this.result}then(l,i){return this.async().then(l,i)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let l,i=n;try{l=i(this._css,this._opts)}catch(d){this.error=d}if(this.error)throw this.error;return this._root=l,l}get[Symbol.toStringTag](){return"NoWorkResult"}}return Cf=o,o.default=o,Cf}var Lf,Hv;function zC(){if(Hv)return Lf;Hv=1;let e=BC(),t=cw(),r=Op(),n=gs();class a{constructor(s=[]){this.version="8.4.38",this.plugins=this.normalize(s)}normalize(s){let l=[];for(let i of s)if(i.postcss===!0?i=i():i.postcss&&(i=i.postcss),typeof i=="object"&&Array.isArray(i.plugins))l=l.concat(i.plugins);else if(typeof i=="object"&&i.postcssPlugin)l.push(i);else if(typeof i=="function")l.push(i);else if(!(typeof i=="object"&&(i.parse||i.stringify)))throw new Error(i+" is not a PostCSS plugin");return l}process(s,l={}){return!this.plugins.length&&!l.parser&&!l.stringifier&&!l.syntax?new e(this,s,l):new t(this,s,l)}use(s){return this.plugins=this.plugins.concat(this.normalize([s])),this}}return Lf=a,a.default=a,n.registerProcessor(a),r.registerProcessor(a),Lf}var kf,jv;function UC(){if(jv)return kf;jv=1;let e=Yi(),t=sw(),r=Zi(),n=Bp(),a=Ji(),o=gs(),s=zp();function l(i,d){if(Array.isArray(i))return i.map(c=>l(c));let{inputs:u,...p}=i;if(u){d=[];for(let c of u){let f={...c,__proto__:a.prototype};f.map&&(f.map={...f.map,__proto__:t.prototype}),d.push(f)}}if(p.nodes&&(p.nodes=i.nodes.map(c=>l(c,d))),p.source){let{inputId:c,...f}=p.source;p.source=f,c!=null&&(p.source.input=d[c])}if(p.type==="root")return new o(p);if(p.type==="decl")return new e(p);if(p.type==="rule")return new s(p);if(p.type==="comment")return new r(p);if(p.type==="atrule")return new n(p);throw new Error("Unknown node type: "+i.type)}return kf=l,l.default=l,kf}var If,Wv;function qC(){if(Wv)return If;Wv=1;let e=Ap(),t=Yi(),r=cw(),n=Kn(),a=zC(),o=Ki(),s=UC(),l=Op(),i=uw(),d=Zi(),u=Bp(),p=Fp(),c=Ji(),f=Up(),h=dw(),m=zp(),y=gs(),g=Qi();function x(...v){return v.length===1&&Array.isArray(v[0])&&(v=v[0]),new a(v)}return x.plugin=function(S,b){let w=!1;function C(...k){console&&console.warn&&!w&&(w=!0,console.warn(S+`: postcss.plugin was deprecated. Migration guide:
|
|
33
33
|
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(S+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
|
|
34
|
-
https://www.w3ctech.com/topic/2226`));let I=y(..._);return I.postcssPlugin=S,I.postcssVersion=new a().version,I}let C;return Object.defineProperty(L,"postcss",{get(){return C||(C=L()),C}}),L.process=function(_,I,D){return x([L(D)]).process(_,I)},L},x.stringify=o,x.parse=f,x.fromJSON=s,x.list=h,x.comment=v=>new d(v),x.atRule=v=>new u(v),x.decl=v=>new t(v),x.rule=v=>new m(v),x.root=v=>new b(v),x.document=v=>new i(v),x.CssSyntaxError=e,x.Declaration=t,x.Container=n,x.Processor=a,x.Document=i,x.Comment=d,x.Warning=l,x.AtRule=u,x.Result=p,x.Input=c,x.Rule=m,x.Root=b,x.Node=g,r.registerPostcss(x),Cf=x,x.default=x,Cf}var DC=AC(),Oe=CC(DC);Oe.stringify;Oe.fromJSON;Oe.plugin;Oe.parse;Oe.list;Oe.document;Oe.comment;Oe.atRule;Oe.rule;Oe.decl;Oe.root;Oe.CssSyntaxError;Oe.Declaration;Oe.Container;Oe.Processor;Oe.Document;Oe.Comment;Oe.Warning;Oe.AtRule;Oe.Result;Oe.Input;Oe.Rule;Oe.Root;Oe.Node;var qv={script:"noscript",altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient"};function OC(e){let t=qv[e.tagName]?qv[e.tagName]:e.tagName;return t==="link"&&e.attributes._cssText&&(t="style"),t}function Yl(e,t){let r=t?.stylesWithHoverClass.get(e);if(r)return r;let n=e;try{n=Oe([bC,SC]).process(e).css}catch(a){console.warn("Failed to adapt css for replay",a)}return t?.stylesWithHoverClass.set(e,n),n}function $v(){return{stylesWithHoverClass:new Map}}var FC="rrweb-snapshot.rebuild() cannot rebuild into an unprotected browser document. Use rebuildIntoSandboxedIframe() or set UNSAFE_allowUnprotectedRebuild: true only when you accept the script-execution risk.",Hv="rrweb-snapshot.createSandboxedIframe() requires root to be connected to a document before creating a sandboxed iframe.",iw=new WeakSet;function BC(e){if(!e||e.tagName!=="IFRAME"||!("sandbox"in e))return!1;let t=Array.from(e.sandbox);return t.length===1&&t[0]==="allow-same-origin"}function zC(e){if(e.UNSAFE_allowUnprotectedRebuild)return;let t=e.doc.defaultView;if(t&&!(iw.has(e.doc)&&BC(t.frameElement)))throw new Error(FC)}function UC(e,t,r,n){let a=[];for(let l of e.childNodes)l.type===re.Text&&a.push(l);let o=t.split("/* rr_split */");for(;o.length>1&&o.length>a.length;)o.splice(-2,2,o.slice(-2).join(""));let s="";r&&(s=Yl(o.join(""),n));let i=0;for(let l=0;l<a.length&&l!==o.length;l++){let d=a[l];if(!r)d.textContent=o[l];else if(l<o.length-1){let u=i,p=o[l+1].length;p=Math.min(p,30);let c=!1;for(;p>2;p--){let f=o[l+1].substring(0,p),h=s.substring(i).indexOf(f);if(c=h!==-1,c){u+=h;break}}c||(u+=o[l].length),d.textContent=s.substring(i,u),i=u}else d.textContent=s.substring(i)}}function qC(e,t,r,n){let{doc:a,hackCss:o,cache:s}=n;e.childNodes.length?UC(e,r,o,s):(o&&(r=Yl(r,s)),t.appendChild(a.createTextNode(r)))}function $C(e,t){var r;let{doc:n,hackCss:a,cache:o}=t;switch(e.type){case re.Document:return n.implementation.createDocument(null,"",null);case re.DocumentType:return n.implementation.createDocumentType(e.name||"html",e.publicId,e.systemId);case re.Element:{let s=OC(e),i;e.isSVG?i=n.createElementNS("http://www.w3.org/2000/svg",s):(e.isCustom&&((r=n.defaultView)!=null&&r.customElements)&&!n.defaultView.customElements.get(e.tagName)&&n.defaultView.customElements.define(e.tagName,class extends n.defaultView.HTMLElement{}),i=n.createElement(s));let l={};for(let d in e.attributes){if(!Object.prototype.hasOwnProperty.call(e.attributes,d))continue;let u=e.attributes[d];if(!(s==="option"&&d==="selected"&&u===!1)&&u!==null){if(u===!0&&(u=""),d.startsWith("rr_")){l[d]=u;continue}if(typeof u=="string"){if(s==="style"&&d==="_cssText"){qC(e,i,u,t);continue}else if(s==="textarea"&&d==="value"){i.appendChild(n.createTextNode(u)),e.childNodes=[];continue}}try{if(e.isSVG&&d==="xlink:href")i.setAttributeNS("http://www.w3.org/1999/xlink",d,u.toString());else if(d==="onload"||d==="onclick"||d.substring(0,7)==="onmouse")i.setAttribute("_"+d,u.toString());else if(s==="meta"&&e.attributes["http-equiv"]==="Content-Security-Policy"&&d==="content"){i.setAttribute("csp-content",u.toString());continue}else s==="link"&&(e.attributes.rel==="preload"&&e.attributes.as==="script"||e.attributes.rel==="modulepreload")||s==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&Rp(e.attributes.href)==="js"||(s==="img"&&e.attributes.srcset&&e.attributes.rr_dataURL?i.setAttribute("rrweb-original-srcset",e.attributes.srcset):i.setAttribute(d,u.toString()))}catch{}}}for(let d in l){let u=l[d];if(s==="canvas"&&d==="rr_dataURL"){let p=n.createElement("img");p.onload=()=>{let c=i.getContext("2d");c&&c.drawImage(p,0,0,p.width,p.height)},p.src=u.toString(),i.RRNodeType&&(i.rr_dataURL=u.toString())}else if(s==="img"&&d==="rr_dataURL"){let p=i;p.currentSrc.startsWith("data:")||(p.setAttribute("rrweb-original-src",e.attributes.src),p.src=u.toString())}if(d==="rr_width")i.style.setProperty("width",u.toString());else if(d==="rr_height")i.style.setProperty("height",u.toString());else if(d==="rr_mediaCurrentTime"&&typeof u=="number")i.currentTime=u;else if(d==="rr_mediaState")switch(u){case"played":i.play().catch(p=>console.warn("media playback error",p));break;case"paused":i.pause();break}else d==="rr_mediaPlaybackRate"&&typeof u=="number"?i.playbackRate=u:d==="rr_mediaMuted"&&typeof u=="boolean"?i.muted=u:d==="rr_mediaLoop"&&typeof u=="boolean"?i.loop=u:d==="rr_mediaVolume"&&typeof u=="number"?i.volume=u:d==="rr_open_mode"&&i.setAttribute("rr_open_mode",u)}if(e.isShadowHost)if(!i.shadowRoot)i.attachShadow({mode:"open"});else for(;i.shadowRoot.firstChild;)i.shadowRoot.removeChild(i.shadowRoot.firstChild);return i}case re.Text:return e.isStyle&&a?n.createTextNode(Yl(e.textContent,o)):n.createTextNode(e.textContent);case re.CDATA:return n.createCDATASection(e.textContent);case re.Comment:return n.createComment(e.textContent);default:return null}}function os(e,t){let{doc:r,mirror:n,skipChild:a=!1,hackCss:o=!0,afterAppend:s,cache:i}=t;if(n.has(e.id)){let d=n.getNode(e.id),u=n.getMeta(d);if(Q1(u,e))return n.getNode(e.id)}let l=$C(e,{doc:r,hackCss:o,cache:i});if(!l)return null;if(e.rootId&&n.getNode(e.rootId)!==r&&n.replace(e.rootId,r),e.type===re.Document&&(r.close(),r.open(),e.compatMode==="BackCompat"&&e.childNodes&&e.childNodes[0].type!==re.DocumentType&&(e.childNodes[0].type===re.Element&&"xmlns"in e.childNodes[0].attributes&&e.childNodes[0].attributes.xmlns==="http://www.w3.org/1999/xhtml"?r.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'):r.write('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">')),l=r),n.add(l,e),(e.type===re.Document||e.type===re.Element)&&!a)for(let d of e.childNodes){let u=os(d,{doc:r,mirror:n,skipChild:!1,hackCss:o,afterAppend:s,cache:i});if(!u){console.warn("Failed to rebuild",d);continue}if(d.isShadow&&Mp(l)&&l.shadowRoot)l.shadowRoot.appendChild(u);else if(e.type===re.Document&&d.type==re.Element){let p=u,c=null;p.childNodes.forEach(f=>{f.nodeName==="BODY"&&(c=f)}),c?(p.removeChild(c),l.appendChild(u),p.appendChild(c)):l.appendChild(u)}else l.appendChild(u);s&&s(u,d.id)}return l}function HC(e,t){function r(n){t(n)}for(let n of e.getIds())e.has(n)&&r(e.getNode(n))}function WC(e,t){let r=t.getMeta(e);if(r?.type!==re.Element)return;let n=e;for(let a in r.attributes){if(!(Object.prototype.hasOwnProperty.call(r.attributes,a)&&a.startsWith("rr_")))continue;let o=r.attributes[a];a==="rr_scrollLeft"&&(n.scrollLeft=o),a==="rr_scrollTop"&&(n.scrollTop=o)}}function jC(e,t){zC(t);let{doc:r,onVisit:n,hackCss:a=!0,afterAppend:o,cache:s,mirror:i=new ls}=t,l=os(e,{doc:r,mirror:i,skipChild:!1,hackCss:a,afterAppend:o,cache:s});return HC(i,d=>{n&&n(d),WC(d,i)}),l}function VC(e){var t;if(!e.root.isConnected)throw new Error(Hv);let r=e.root.ownerDocument.createElement("iframe");for(let[a,o]of Object.entries(e.iframeAttributes||{}))a!=="sandbox"&&r.setAttribute(a,o);r.setAttribute("sandbox","allow-same-origin"),e.root.appendChild(r);let n=r.contentDocument;if(!n||!r.contentWindow)throw(t=r.parentNode)==null||t.removeChild(r),new Error(Hv);return iw.add(n),r}var GC=Object.defineProperty,XC=(e,t,r)=>t in e?GC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,z=(e,t,r)=>XC(e,typeof t!="symbol"?t+"":t,r),KC=Object.defineProperty,QC=(e,t,r)=>t in e?KC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Wv=(e,t,r)=>QC(e,typeof t!="symbol"?t+"":t,r);Date.now().toString();var YC=class{constructor(){Wv(this,"idNodeMap",new Map),Wv(this,"nodeMetaMap",new WeakMap)}getId(t){var r;return t?((r=this.getMeta(t))==null?void 0:r.id)??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){let r=this.getId(t);this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(n=>this.removeNodeFromMap(n))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){let n=r.id;this.idNodeMap.set(n,t),this.nodeMetaMap.set(t,r)}replace(t,r){let n=this.getNode(t);if(n){let a=this.nodeMetaMap.get(n);a&&this.nodeMetaMap.set(r,a)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function JC(){return new YC}function ZC(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function eL(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return e[n]}})}),r}var Sl={exports:{}},jv;function tL(){if(jv)return Sl.exports;jv=1;var e=String,t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e}};return Sl.exports=t(),Sl.exports.createColors=t,Sl.exports}var rL={},nL=Object.freeze(Object.defineProperty({__proto__:null,default:rL},Symbol.toStringTag,{value:"Module"})),xr=eL(nL),Lf,Vv;function Bp(){if(Vv)return Lf;Vv=1;let e=tL(),t=xr;class r extends Error{constructor(a,o,s,i,l,d){super(a),this.name="CssSyntaxError",this.reason=a,l&&(this.file=l),i&&(this.source=i),d&&(this.plugin=d),typeof o<"u"&&typeof s<"u"&&(typeof o=="number"?(this.line=o,this.column=s):(this.line=o.line,this.column=o.column,this.endLine=s.line,this.endColumn=s.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,r)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(a){if(!this.source)return"";let o=this.source;a==null&&(a=e.isColorSupported),t&&a&&(o=t(o));let s=o.split(/\r?\n/),i=Math.max(this.line-3,0),l=Math.min(this.line+2,s.length),d=String(l).length,u,p;if(a){let{bold:c,gray:f,red:h}=e.createColors(!0);u=m=>c(h(m)),p=m=>f(m)}else u=p=c=>c;return s.slice(i,l).map((c,f)=>{let h=i+1+f,m=" "+(" "+h).slice(-d)+" | ";if(h===this.line){let b=p(m.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return u(">")+p(m)+c+`
|
|
35
|
-
`+
|
|
34
|
+
https://www.w3ctech.com/topic/2226`));let _=b(...k);return _.postcssPlugin=S,_.postcssVersion=new a().version,_}let L;return Object.defineProperty(C,"postcss",{get(){return L||(L=C()),L}}),C.process=function(k,_,N){return x([C(N)]).process(k,_)},C},x.stringify=o,x.parse=f,x.fromJSON=s,x.list=h,x.comment=v=>new d(v),x.atRule=v=>new u(v),x.decl=v=>new t(v),x.rule=v=>new m(v),x.root=v=>new y(v),x.document=v=>new l(v),x.CssSyntaxError=e,x.Declaration=t,x.Container=n,x.Processor=a,x.Document=l,x.Comment=d,x.Warning=i,x.AtRule=u,x.Result=p,x.Input=c,x.Rule=m,x.Root=y,x.Node=g,r.registerPostcss(x),If=x,x.default=x,If}var $C=qC(),Be=EC($C);Be.stringify;Be.fromJSON;Be.plugin;Be.parse;Be.list;Be.document;Be.comment;Be.atRule;Be.rule;Be.decl;Be.root;Be.CssSyntaxError;Be.Declaration;Be.Container;Be.Processor;Be.Document;Be.Comment;Be.Warning;Be.AtRule;Be.Result;Be.Input;Be.Rule;Be.Root;Be.Node;var Vv={script:"noscript",altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient"};function HC(e){let t=Vv[e.tagName]?Vv[e.tagName]:e.tagName;return t==="link"&&e.attributes._cssText&&(t="style"),t}function eu(e,t){let r=t?.stylesWithHoverClass.get(e);if(r)return r;let n=e;try{n=Be([MC,RC]).process(e).css}catch(a){console.warn("Failed to adapt css for replay",a)}return t?.stylesWithHoverClass.set(e,n),n}function Gv(){return{stylesWithHoverClass:new Map}}var jC="rrweb-snapshot.rebuild() cannot rebuild into an unprotected browser document. Use rebuildIntoSandboxedIframe() or set UNSAFE_allowUnprotectedRebuild: true only when you accept the script-execution risk.",Xv="rrweb-snapshot.createSandboxedIframe() requires root to be connected to a document before creating a sandboxed iframe.",fw=new WeakSet;function WC(e){if(!e||e.tagName!=="IFRAME"||!("sandbox"in e))return!1;let t=Array.from(e.sandbox);return t.length===1&&t[0]==="allow-same-origin"}function VC(e){if(e.UNSAFE_allowUnprotectedRebuild)return;let t=e.doc.defaultView;if(t&&!(fw.has(e.doc)&&WC(t.frameElement)))throw new Error(jC)}function GC(e,t,r,n){let a=[];for(let i of e.childNodes)i.type===ae.Text&&a.push(i);let o=t.split("/* rr_split */");for(;o.length>1&&o.length>a.length;)o.splice(-2,2,o.slice(-2).join(""));let s="";r&&(s=eu(o.join(""),n));let l=0;for(let i=0;i<a.length&&i!==o.length;i++){let d=a[i];if(!r)d.textContent=o[i];else if(i<o.length-1){let u=l,p=o[i+1].length;p=Math.min(p,30);let c=!1;for(;p>2;p--){let f=o[i+1].substring(0,p),h=s.substring(l).indexOf(f);if(c=h!==-1,c){u+=h;break}}c||(u+=o[i].length),d.textContent=s.substring(l,u),l=u}else d.textContent=s.substring(l)}}function XC(e,t,r,n){let{doc:a,hackCss:o,cache:s}=n;e.childNodes.length?GC(e,r,o,s):(o&&(r=eu(r,s)),t.appendChild(a.createTextNode(r)))}function KC(e,t){var r;let{doc:n,hackCss:a,cache:o}=t;switch(e.type){case ae.Document:return n.implementation.createDocument(null,"",null);case ae.DocumentType:return n.implementation.createDocumentType(e.name||"html",e.publicId,e.systemId);case ae.Element:{let s=HC(e),l;e.isSVG?l=n.createElementNS("http://www.w3.org/2000/svg",s):(e.isCustom&&((r=n.defaultView)!=null&&r.customElements)&&!n.defaultView.customElements.get(e.tagName)&&n.defaultView.customElements.define(e.tagName,class extends n.defaultView.HTMLElement{}),l=n.createElement(s));let i={};for(let d in e.attributes){if(!Object.prototype.hasOwnProperty.call(e.attributes,d))continue;let u=e.attributes[d];if(!(s==="option"&&d==="selected"&&u===!1)&&u!==null){if(u===!0&&(u=""),d.startsWith("rr_")){i[d]=u;continue}if(typeof u=="string"){if(s==="style"&&d==="_cssText"){XC(e,l,u,t);continue}else if(s==="textarea"&&d==="value"){l.appendChild(n.createTextNode(u)),e.childNodes=[];continue}}try{if(e.isSVG&&d==="xlink:href")l.setAttributeNS("http://www.w3.org/1999/xlink",d,u.toString());else if(d==="onload"||d==="onclick"||d.substring(0,7)==="onmouse")l.setAttribute("_"+d,u.toString());else if(s==="meta"&&e.attributes["http-equiv"]==="Content-Security-Policy"&&d==="content"){l.setAttribute("csp-content",u.toString());continue}else s==="link"&&(e.attributes.rel==="preload"&&e.attributes.as==="script"||e.attributes.rel==="modulepreload")||s==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&Pp(e.attributes.href)==="js"||(s==="img"&&e.attributes.srcset&&e.attributes.rr_dataURL?l.setAttribute("rrweb-original-srcset",e.attributes.srcset):l.setAttribute(d,u.toString()))}catch{}}}for(let d in i){let u=i[d];if(s==="canvas"&&d==="rr_dataURL"){let p=n.createElement("img");p.onload=()=>{let c=l.getContext("2d");c&&c.drawImage(p,0,0,p.width,p.height)},p.src=u.toString(),l.RRNodeType&&(l.rr_dataURL=u.toString())}else if(s==="img"&&d==="rr_dataURL"){let p=l;p.currentSrc.startsWith("data:")||(p.setAttribute("rrweb-original-src",e.attributes.src),p.src=u.toString())}if(d==="rr_width")l.style.setProperty("width",u.toString());else if(d==="rr_height")l.style.setProperty("height",u.toString());else if(d==="rr_mediaCurrentTime"&&typeof u=="number")l.currentTime=u;else if(d==="rr_mediaState")switch(u){case"played":l.play().catch(p=>console.warn("media playback error",p));break;case"paused":l.pause();break}else d==="rr_mediaPlaybackRate"&&typeof u=="number"?l.playbackRate=u:d==="rr_mediaMuted"&&typeof u=="boolean"?l.muted=u:d==="rr_mediaLoop"&&typeof u=="boolean"?l.loop=u:d==="rr_mediaVolume"&&typeof u=="number"?l.volume=u:d==="rr_open_mode"&&l.setAttribute("rr_open_mode",u)}if(e.isShadowHost)if(!l.shadowRoot)l.attachShadow({mode:"open"});else for(;l.shadowRoot.firstChild;)l.shadowRoot.removeChild(l.shadowRoot.firstChild);return l}case ae.Text:return e.isStyle&&a?n.createTextNode(eu(e.textContent,o)):n.createTextNode(e.textContent);case ae.CDATA:return n.createCDATASection(e.textContent);case ae.Comment:return n.createComment(e.textContent);default:return null}}function us(e,t){let{doc:r,mirror:n,skipChild:a=!1,hackCss:o=!0,afterAppend:s,cache:l}=t;if(n.has(e.id)){let d=n.getNode(e.id),u=n.getMeta(d);if(nC(u,e))return n.getNode(e.id)}let i=KC(e,{doc:r,hackCss:o,cache:l});if(!i)return null;if(e.rootId&&n.getNode(e.rootId)!==r&&n.replace(e.rootId,r),e.type===ae.Document&&(r.close(),r.open(),e.compatMode==="BackCompat"&&e.childNodes&&e.childNodes[0].type!==ae.DocumentType&&(e.childNodes[0].type===ae.Element&&"xmlns"in e.childNodes[0].attributes&&e.childNodes[0].attributes.xmlns==="http://www.w3.org/1999/xhtml"?r.write('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'):r.write('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">')),i=r),n.add(i,e),(e.type===ae.Document||e.type===ae.Element)&&!a)for(let d of e.childNodes){let u=us(d,{doc:r,mirror:n,skipChild:!1,hackCss:o,afterAppend:s,cache:l});if(!u){console.warn("Failed to rebuild",d);continue}if(d.isShadow&&Np(i)&&i.shadowRoot)i.shadowRoot.appendChild(u);else if(e.type===ae.Document&&d.type==ae.Element){let p=u,c=null;p.childNodes.forEach(f=>{f.nodeName==="BODY"&&(c=f)}),c?(p.removeChild(c),i.appendChild(u),p.appendChild(c)):i.appendChild(u)}else i.appendChild(u);s&&s(u,d.id)}return i}function QC(e,t){function r(n){t(n)}for(let n of e.getIds())e.has(n)&&r(e.getNode(n))}function YC(e,t){let r=t.getMeta(e);if(r?.type!==ae.Element)return;let n=e;for(let a in r.attributes){if(!(Object.prototype.hasOwnProperty.call(r.attributes,a)&&a.startsWith("rr_")))continue;let o=r.attributes[a];a==="rr_scrollLeft"&&(n.scrollLeft=o),a==="rr_scrollTop"&&(n.scrollTop=o)}}function JC(e,t){VC(t);let{doc:r,onVisit:n,hackCss:a=!0,afterAppend:o,cache:s,mirror:l=new fs}=t,i=us(e,{doc:r,mirror:l,skipChild:!1,hackCss:a,afterAppend:o,cache:s});return QC(l,d=>{n&&n(d),YC(d,l)}),i}function ZC(e){var t;if(!e.root.isConnected)throw new Error(Xv);let r=e.root.ownerDocument.createElement("iframe");for(let[a,o]of Object.entries(e.iframeAttributes||{}))a!=="sandbox"&&r.setAttribute(a,o);r.setAttribute("sandbox","allow-same-origin"),e.root.appendChild(r);let n=r.contentDocument;if(!n||!r.contentWindow)throw(t=r.parentNode)==null||t.removeChild(r),new Error(Xv);return fw.add(n),r}var eL=Object.defineProperty,tL=(e,t,r)=>t in e?eL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,U=(e,t,r)=>tL(e,typeof t!="symbol"?t+"":t,r),rL=Object.defineProperty,nL=(e,t,r)=>t in e?rL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Kv=(e,t,r)=>nL(e,typeof t!="symbol"?t+"":t,r);Date.now().toString();var aL=class{constructor(){Kv(this,"idNodeMap",new Map),Kv(this,"nodeMetaMap",new WeakMap)}getId(t){var r;return t?((r=this.getMeta(t))==null?void 0:r.id)??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){let r=this.getId(t);this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(n=>this.removeNodeFromMap(n))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){let n=r.id;this.idNodeMap.set(n,t),this.nodeMetaMap.set(t,r)}replace(t,r){let n=this.getNode(t);if(n){let a=this.nodeMetaMap.get(n);a&&this.nodeMetaMap.set(r,a)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function oL(){return new aL}function sL(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function lL(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return e[n]}})}),r}var ki={exports:{}},Qv;function iL(){if(Qv)return ki.exports;Qv=1;var e=String,t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e}};return ki.exports=t(),ki.exports.createColors=t,ki.exports}var uL={},dL=Object.freeze(Object.defineProperty({__proto__:null,default:uL},Symbol.toStringTag,{value:"Module"})),yr=lL(dL),_f,Yv;function qp(){if(Yv)return _f;Yv=1;let e=iL(),t=yr;class r extends Error{constructor(a,o,s,l,i,d){super(a),this.name="CssSyntaxError",this.reason=a,i&&(this.file=i),l&&(this.source=l),d&&(this.plugin=d),typeof o<"u"&&typeof s<"u"&&(typeof o=="number"?(this.line=o,this.column=s):(this.line=o.line,this.column=o.column,this.endLine=s.line,this.endColumn=s.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,r)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(a){if(!this.source)return"";let o=this.source;a==null&&(a=e.isColorSupported),t&&a&&(o=t(o));let s=o.split(/\r?\n/),l=Math.max(this.line-3,0),i=Math.min(this.line+2,s.length),d=String(i).length,u,p;if(a){let{bold:c,gray:f,red:h}=e.createColors(!0);u=m=>c(h(m)),p=m=>f(m)}else u=p=c=>c;return s.slice(l,i).map((c,f)=>{let h=l+1+f,m=" "+(" "+h).slice(-d)+" | ";if(h===this.line){let y=p(m.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return u(">")+p(m)+c+`
|
|
35
|
+
`+y+u("^")}return" "+p(m)+c}).join(`
|
|
36
36
|
`)}toString(){let a=this.showSourceCode();return a&&(a=`
|
|
37
37
|
|
|
38
38
|
`+a+`
|
|
39
|
-
`),this.name+": "+this.message+a}}return
|
|
39
|
+
`),this.name+": "+this.message+a}}return _f=r,r.default=r,_f}var Ii={},Jv;function $p(){return Jv||(Jv=1,Ii.isClean=Symbol("isClean"),Ii.my=Symbol("my")),Ii}var Mf,Zv;function pw(){if(Zv)return Mf;Zv=1;let e={after:`
|
|
40
40
|
`,beforeClose:`
|
|
41
41
|
`,beforeComment:`
|
|
42
42
|
`,beforeDecl:`
|
|
43
43
|
`,beforeOpen:" ",beforeRule:`
|
|
44
|
-
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function t(n){return n[0].toUpperCase()+n.slice(1)}class r{constructor(a){this.builder=a}atrule(a,o){let s="@"+a.name,
|
|
45
|
-
`)){let d=this.raw(a,null,"indent");if(d.length)for(let u=0;u<
|
|
46
|
-
`)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawBeforeComment(a,o){let s;return a.walkComments(
|
|
47
|
-
`)&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s>"u"?s=this.raw(o,null,"beforeDecl"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeDecl(a,o){let s;return a.walkDecls(
|
|
44
|
+
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function t(n){return n[0].toUpperCase()+n.slice(1)}class r{constructor(a){this.builder=a}atrule(a,o){let s="@"+a.name,l=a.params?this.rawValue(a,"params"):"";if(typeof a.raws.afterName<"u"?s+=a.raws.afterName:l&&(s+=" "),a.nodes)this.block(a,s+l);else{let i=(a.raws.between||"")+(o?";":"");this.builder(s+l+i,a)}}beforeAfter(a,o){let s;a.type==="decl"?s=this.raw(a,null,"beforeDecl"):a.type==="comment"?s=this.raw(a,null,"beforeComment"):o==="before"?s=this.raw(a,null,"beforeRule"):s=this.raw(a,null,"beforeClose");let l=a.parent,i=0;for(;l&&l.type!=="root";)i+=1,l=l.parent;if(s.includes(`
|
|
45
|
+
`)){let d=this.raw(a,null,"indent");if(d.length)for(let u=0;u<i;u++)s+=d}return s}block(a,o){let s=this.raw(a,"between","beforeOpen");this.builder(o+s+"{",a,"start");let l;a.nodes&&a.nodes.length?(this.body(a),l=this.raw(a,"after")):l=this.raw(a,"after","emptyBody"),l&&this.builder(l),this.builder("}",a,"end")}body(a){let o=a.nodes.length-1;for(;o>0&&a.nodes[o].type==="comment";)o-=1;let s=this.raw(a,"semicolon");for(let l=0;l<a.nodes.length;l++){let i=a.nodes[l],d=this.raw(i,"before");d&&this.builder(d),this.stringify(i,o!==l||s)}}comment(a){let o=this.raw(a,"left","commentLeft"),s=this.raw(a,"right","commentRight");this.builder("/*"+o+a.text+s+"*/",a)}decl(a,o){let s=this.raw(a,"between","colon"),l=a.prop+s+this.rawValue(a,"value");a.important&&(l+=a.raws.important||" !important"),o&&(l+=";"),this.builder(l,a)}document(a){this.body(a)}raw(a,o,s){let l;if(s||(s=o),o&&(l=a.raws[o],typeof l<"u"))return l;let i=a.parent;if(s==="before"&&(!i||i.type==="root"&&i.first===a||i&&i.type==="document"))return"";if(!i)return e[s];let d=a.root();if(d.rawCache||(d.rawCache={}),typeof d.rawCache[s]<"u")return d.rawCache[s];if(s==="before"||s==="after")return this.beforeAfter(a,s);{let u="raw"+t(s);this[u]?l=this[u](d,a):d.walk(p=>{if(l=p.raws[o],typeof l<"u")return!1})}return typeof l>"u"&&(l=e[s]),d.rawCache[s]=l,l}rawBeforeClose(a){let o;return a.walk(s=>{if(s.nodes&&s.nodes.length>0&&typeof s.raws.after<"u")return o=s.raws.after,o.includes(`
|
|
46
|
+
`)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawBeforeComment(a,o){let s;return a.walkComments(l=>{if(typeof l.raws.before<"u")return s=l.raws.before,s.includes(`
|
|
47
|
+
`)&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s>"u"?s=this.raw(o,null,"beforeDecl"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeDecl(a,o){let s;return a.walkDecls(l=>{if(typeof l.raws.before<"u")return s=l.raws.before,s.includes(`
|
|
48
48
|
`)&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s>"u"?s=this.raw(o,null,"beforeRule"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeOpen(a){let o;return a.walk(s=>{if(s.type!=="decl"&&(o=s.raws.between,typeof o<"u"))return!1}),o}rawBeforeRule(a){let o;return a.walk(s=>{if(s.nodes&&(s.parent!==a||a.first!==s)&&typeof s.raws.before<"u")return o=s.raws.before,o.includes(`
|
|
49
|
-
`)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawColon(a){let o;return a.walkDecls(s=>{if(typeof s.raws.between<"u")return o=s.raws.between.replace(/[^\s:]/g,""),!1}),o}rawEmptyBody(a){let o;return a.walk(s=>{if(s.nodes&&s.nodes.length===0&&(o=s.raws.after,typeof o<"u"))return!1}),o}rawIndent(a){if(a.raws.indent)return a.raws.indent;let o;return a.walk(s=>{let
|
|
50
|
-
`);return o=
|
|
51
|
-
`?(p=1,c+=1):p+=1;return{column:p,line:c}}prev(){if(!this.parent)return;let
|
|
52
|
-
`);g=new Array(v.length);let S=0;for(let
|
|
49
|
+
`)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawColon(a){let o;return a.walkDecls(s=>{if(typeof s.raws.between<"u")return o=s.raws.between.replace(/[^\s:]/g,""),!1}),o}rawEmptyBody(a){let o;return a.walk(s=>{if(s.nodes&&s.nodes.length===0&&(o=s.raws.after,typeof o<"u"))return!1}),o}rawIndent(a){if(a.raws.indent)return a.raws.indent;let o;return a.walk(s=>{let l=s.parent;if(l&&l!==a&&l.parent&&l.parent===a&&typeof s.raws.before<"u"){let i=s.raws.before.split(`
|
|
50
|
+
`);return o=i[i.length-1],o=o.replace(/\S/g,""),!1}}),o}rawSemicolon(a){let o;return a.walk(s=>{if(s.nodes&&s.nodes.length&&s.last.type==="decl"&&(o=s.raws.semicolon,typeof o<"u"))return!1}),o}rawValue(a,o){let s=a[o],l=a.raws[o];return l&&l.value===s?l.raw:s}root(a){this.body(a),a.raws.after&&this.builder(a.raws.after)}rule(a){this.block(a,this.rawValue(a,"selector")),a.raws.ownSemicolon&&this.builder(a.raws.ownSemicolon,a,"end")}stringify(a,o){if(!this[a.type])throw new Error("Unknown AST node type "+a.type+". Maybe you need to change PostCSS stringifier.");this[a.type](a,o)}}return Mf=r,r.default=r,Mf}var Rf,ey;function tu(){if(ey)return Rf;ey=1;let e=pw();function t(r,n){new e(n).stringify(r)}return Rf=t,t.default=t,Rf}var Ef,ty;function ru(){if(ty)return Ef;ty=1;let{isClean:e,my:t}=$p(),r=qp(),n=pw(),a=tu();function o(l,i){let d=new l.constructor;for(let u in l){if(!Object.prototype.hasOwnProperty.call(l,u)||u==="proxyCache")continue;let p=l[u],c=typeof p;u==="parent"&&c==="object"?i&&(d[u]=i):u==="source"?d[u]=p:Array.isArray(p)?d[u]=p.map(f=>o(f,d)):(c==="object"&&p!==null&&(p=o(p)),d[u]=p)}return d}class s{constructor(i={}){this.raws={},this[e]=!1,this[t]=!0;for(let d in i)if(d==="nodes"){this.nodes=[];for(let u of i[d])typeof u.clone=="function"?this.append(u.clone()):this.append(u)}else this[d]=i[d]}addToError(i){if(i.postcssNode=this,i.stack&&this.source&&/\n\s{4}at /.test(i.stack)){let d=this.source;i.stack=i.stack.replace(/\n\s{4}at /,`$&${d.input.from}:${d.start.line}:${d.start.column}$&`)}return i}after(i){return this.parent.insertAfter(this,i),this}assign(i={}){for(let d in i)this[d]=i[d];return this}before(i){return this.parent.insertBefore(this,i),this}cleanRaws(i){delete this.raws.before,delete this.raws.after,i||delete this.raws.between}clone(i={}){let d=o(this);for(let u in i)d[u]=i[u];return d}cloneAfter(i={}){let d=this.clone(i);return this.parent.insertAfter(this,d),d}cloneBefore(i={}){let d=this.clone(i);return this.parent.insertBefore(this,d),d}error(i,d={}){if(this.source){let{end:u,start:p}=this.rangeBy(d);return this.source.input.error(i,{column:p.column,line:p.line},{column:u.column,line:u.line},d)}return new r(i)}getProxyProcessor(){return{get(i,d){return d==="proxyOf"?i:d==="root"?()=>i.root().toProxy():i[d]},set(i,d,u){return i[d]===u||(i[d]=u,(d==="prop"||d==="value"||d==="name"||d==="params"||d==="important"||d==="text")&&i.markDirty()),!0}}}markDirty(){if(this[e]){this[e]=!1;let i=this;for(;i=i.parent;)i[e]=!1}}next(){if(!this.parent)return;let i=this.parent.index(this);return this.parent.nodes[i+1]}positionBy(i,d){let u=this.source.start;if(i.index)u=this.positionInside(i.index,d);else if(i.word){d=this.toString();let p=d.indexOf(i.word);p!==-1&&(u=this.positionInside(p,d))}return u}positionInside(i,d){let u=d||this.toString(),p=this.source.start.column,c=this.source.start.line;for(let f=0;f<i;f++)u[f]===`
|
|
51
|
+
`?(p=1,c+=1):p+=1;return{column:p,line:c}}prev(){if(!this.parent)return;let i=this.parent.index(this);return this.parent.nodes[i-1]}rangeBy(i){let d={column:this.source.start.column,line:this.source.start.line},u=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:d.column+1,line:d.line};if(i.word){let p=this.toString(),c=p.indexOf(i.word);c!==-1&&(d=this.positionInside(c,p),u=this.positionInside(c+i.word.length,p))}else i.start?d={column:i.start.column,line:i.start.line}:i.index&&(d=this.positionInside(i.index)),i.end?u={column:i.end.column,line:i.end.line}:typeof i.endIndex=="number"?u=this.positionInside(i.endIndex):i.index&&(u=this.positionInside(i.index+1));return(u.line<d.line||u.line===d.line&&u.column<=d.column)&&(u={column:d.column+1,line:d.line}),{end:u,start:d}}raw(i,d){return new n().raw(this,i,d)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...i){if(this.parent){let d=this,u=!1;for(let p of i)p===this?u=!0:u?(this.parent.insertAfter(d,p),d=p):this.parent.insertBefore(d,p);u||this.remove()}return this}root(){let i=this;for(;i.parent&&i.parent.type!=="document";)i=i.parent;return i}toJSON(i,d){let u={},p=d==null;d=d||new Map;let c=0;for(let f in this){if(!Object.prototype.hasOwnProperty.call(this,f)||f==="parent"||f==="proxyCache")continue;let h=this[f];if(Array.isArray(h))u[f]=h.map(m=>typeof m=="object"&&m.toJSON?m.toJSON(null,d):m);else if(typeof h=="object"&&h.toJSON)u[f]=h.toJSON(null,d);else if(f==="source"){let m=d.get(h.input);m==null&&(m=c,d.set(h.input,c),c++),u[f]={end:h.end,inputId:m,start:h.start}}else u[f]=h}return p&&(u.inputs=[...d.keys()].map(f=>f.toJSON())),u}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(i=a){i.stringify&&(i=i.stringify);let d="";return i(this,u=>{d+=u}),d}warn(i,d,u){let p={node:this};for(let c in u)p[c]=u[c];return i.warn(d,p)}get proxyOf(){return this}}return Ef=s,s.default=s,Ef}var Nf,ry;function nu(){if(ry)return Nf;ry=1;let e=ru();class t extends e{constructor(n){n&&typeof n.value<"u"&&typeof n.value!="string"&&(n={...n,value:String(n.value)}),super(n),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return Nf=t,t.default=t,Nf}var Pf,ny;function cL(){if(ny)return Pf;ny=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Pf={nanoid:(n=21)=>{let a="",o=n;for(;o--;)a+=e[Math.random()*64|0];return a},customAlphabet:(n,a=21)=>(o=a)=>{let s="",l=o;for(;l--;)s+=n[Math.random()*n.length|0];return s}},Pf}var Tf,ay;function mw(){if(ay)return Tf;ay=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=yr,{existsSync:r,readFileSync:n}=yr,{dirname:a,join:o}=yr;function s(i){return Buffer?Buffer.from(i,"base64").toString():window.atob(i)}class l{constructor(d,u){if(u.map===!1)return;this.loadAnnotation(d),this.inline=this.startWith(this.annotation,"data:");let p=u.map?u.map.prev:void 0,c=this.loadMap(u.from,p);!this.mapFile&&u.from&&(this.mapFile=u.from),this.mapFile&&(this.root=a(this.mapFile)),c&&(this.text=c)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(d){let u=/^data:application\/json;charset=utf-?8;base64,/,p=/^data:application\/json;base64,/,c=/^data:application\/json;charset=utf-?8,/,f=/^data:application\/json,/;if(c.test(d)||f.test(d))return decodeURIComponent(d.substr(RegExp.lastMatch.length));if(u.test(d)||p.test(d))return s(d.substr(RegExp.lastMatch.length));let h=d.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+h)}getAnnotationURL(d){return d.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(d){return typeof d!="object"?!1:typeof d.mappings=="string"||typeof d._mappings=="string"||Array.isArray(d.sections)}loadAnnotation(d){let u=d.match(/\/\*\s*# sourceMappingURL=/gm);if(!u)return;let p=d.lastIndexOf(u.pop()),c=d.indexOf("*/",p);p>-1&&c>-1&&(this.annotation=this.getAnnotationURL(d.substring(p,c)))}loadFile(d){if(this.root=a(d),r(d))return this.mapFile=d,n(d,"utf-8").toString().trim()}loadMap(d,u){if(u===!1)return!1;if(u){if(typeof u=="string")return u;if(typeof u=="function"){let p=u(d);if(p){let c=this.loadFile(p);if(!c)throw new Error("Unable to load previous source map: "+p.toString());return c}}else{if(u instanceof e)return t.fromSourceMap(u).toString();if(u instanceof t)return u.toString();if(this.isMap(u))return JSON.stringify(u);throw new Error("Unsupported previous source map format: "+u.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let p=this.annotation;return d&&(p=o(a(d),p)),this.loadFile(p)}}}startWith(d,u){return d?d.substr(0,u.length)===u:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Tf=l,l.default=l,Tf}var Af,oy;function au(){if(oy)return Af;oy=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=yr,{fileURLToPath:r,pathToFileURL:n}=yr,{isAbsolute:a,resolve:o}=yr,{nanoid:s}=cL(),l=yr,i=qp(),d=mw(),u=Symbol("fromOffsetCache"),p=!!(e&&t),c=!!(o&&a);class f{constructor(m,y={}){if(m===null||typeof m>"u"||typeof m=="object"&&!m.toString)throw new Error(`PostCSS received ${m} instead of CSS string`);if(this.css=m.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,y.from&&(!c||/^\w+:\/\//.test(y.from)||a(y.from)?this.file=y.from:this.file=o(y.from)),c&&p){let g=new d(this.css,y);if(g.text){this.map=g;let x=g.consumer().file;!this.file&&x&&(this.file=this.mapResolve(x))}}this.file||(this.id="<input css "+s(6)+">"),this.map&&(this.map.file=this.from)}error(m,y,g,x={}){let v,S,b;if(y&&typeof y=="object"){let C=y,L=g;if(typeof C.offset=="number"){let k=this.fromOffset(C.offset);y=k.line,g=k.col}else y=C.line,g=C.column;if(typeof L.offset=="number"){let k=this.fromOffset(L.offset);S=k.line,b=k.col}else S=L.line,b=L.column}else if(!g){let C=this.fromOffset(y);y=C.line,g=C.col}let w=this.origin(y,g,S,b);return w?v=new i(m,w.endLine===void 0?w.line:{column:w.column,line:w.line},w.endLine===void 0?w.column:{column:w.endColumn,line:w.endLine},w.source,w.file,x.plugin):v=new i(m,S===void 0?y:{column:g,line:y},S===void 0?g:{column:b,line:S},this.css,this.file,x.plugin),v.input={column:g,endColumn:b,endLine:S,line:y,source:this.css},this.file&&(n&&(v.input.url=n(this.file).toString()),v.input.file=this.file),v}fromOffset(m){let y,g;if(this[u])g=this[u];else{let v=this.css.split(`
|
|
52
|
+
`);g=new Array(v.length);let S=0;for(let b=0,w=v.length;b<w;b++)g[b]=S,S+=v[b].length+1;this[u]=g}y=g[g.length-1];let x=0;if(m>=y)x=g.length-1;else{let v=g.length-2,S;for(;x<v;)if(S=x+(v-x>>1),m<g[S])v=S-1;else if(m>=g[S+1])x=S+1;else{x=S;break}}return{col:m-g[x]+1,line:x+1}}mapResolve(m){return/^\w+:\/\//.test(m)?m:o(this.map.consumer().sourceRoot||this.map.root||".",m)}origin(m,y,g,x){if(!this.map)return!1;let v=this.map.consumer(),S=v.originalPositionFor({column:y,line:m});if(!S.source)return!1;let b;typeof g=="number"&&(b=v.originalPositionFor({column:x,line:g}));let w;a(S.source)?w=n(S.source):w=new URL(S.source,this.map.consumer().sourceRoot||n(this.map.mapFile));let C={column:S.column,endColumn:b&&b.column,endLine:b&&b.line,line:S.line,url:w.toString()};if(w.protocol==="file:")if(r)C.file=r(w);else throw new Error("file: protocol is not available in this PostCSS build");let L=v.sourceContentFor(S.source);return L&&(C.source=L),C}toJSON(){let m={};for(let y of["hasBOM","css","file","id"])this[y]!=null&&(m[y]=this[y]);return this.map&&(m.map={...this.map},m.map.consumerCache&&(m.map.consumerCache=void 0)),m}get from(){return this.file||this.id}}return Af=f,f.default=f,l&&l.registerInput&&l.registerInput(f),Af}var Df,sy;function hw(){if(sy)return Df;sy=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=yr,{dirname:r,relative:n,resolve:a,sep:o}=yr,{pathToFileURL:s}=yr,l=au(),i=!!(e&&t),d=!!(r&&a&&n&&o);class u{constructor(c,f,h,m){this.stringify=c,this.mapOpts=h.map||{},this.root=f,this.opts=h,this.css=m,this.originalCSS=m,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let c;this.isInline()?c="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?c=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?c=this.mapOpts.annotation(this.opts.to,this.root):c=this.outputFile()+".map";let f=`
|
|
53
53
|
`;this.css.includes(`\r
|
|
54
54
|
`)&&(f=`\r
|
|
55
|
-
`),this.css+=f+"/*# sourceMappingURL="+c+" */"}applyPrevMaps(){for(let c of this.previous()){let f=this.toUrl(this.path(c.file)),h=c.root||r(c.file),m;this.mapOpts.sourcesContent===!1?(m=new e(c.text),m.sourcesContent&&(m.sourcesContent=null)):m=c.consumer(),this.map.applySourceMap(m,f,this.toUrl(this.path(h)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let c;for(let f=this.root.nodes.length-1;f>=0;f--)c=this.root.nodes[f],c.type==="comment"&&c.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(f)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),d&&
|
|
56
|
-
`),f=x.length-g):f+=x.length,v&&S!=="start"){let y=v.parent||{raws:{}};(!(v.type==="decl"||v.type==="atrule"&&!v.nodes)||v!==y.last||y.raws.semicolon)&&(v.source&&v.source.end?(m.source=this.sourcePath(v),m.original.line=v.source.end.line,m.original.column=v.source.end.column-1,m.generated.line=c,m.generated.column=f-2,this.map.addMapping(m)):(m.source=h,m.original.line=1,m.original.column=0,m.generated.line=c,m.generated.column=f-1,this.map.addMapping(m)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(c=>c.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let c=this.mapOpts.annotation;return typeof c<"u"&&c!==!0?!1:this.previous().length?this.previous().some(f=>f.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(c=>c.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(c){if(this.mapOpts.absolute||c.charCodeAt(0)===60||/^\w+:\/\//.test(c))return c;let f=this.memoizedPaths.get(c);if(f)return f;let h=this.opts.to?r(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(h=r(a(h,this.mapOpts.annotation)));let m=n(h,c);return this.memoizedPaths.set(c,m),m}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(c=>{if(c.source&&c.source.input.map){let f=c.source.input.map;this.previousMaps.includes(f)||this.previousMaps.push(f)}});else{let c=new i(this.originalCSS,this.opts);c.map&&this.previousMaps.push(c.map)}return this.previousMaps}setSourcesContent(){let c={};if(this.root)this.root.walk(f=>{if(f.source){let h=f.source.input.from;if(h&&!c[h]){c[h]=!0;let m=this.usesFileUrls?this.toFileUrl(h):this.toUrl(this.path(h));this.map.setSourceContent(m,f.source.input.css)}}});else if(this.css){let f=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(f,this.css)}}sourcePath(c){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(c.source.input.from):this.toUrl(this.path(c.source.input.from))}toBase64(c){return Buffer?Buffer.from(c).toString("base64"):window.btoa(unescape(encodeURIComponent(c)))}toFileUrl(c){let f=this.memoizedFileURLs.get(c);if(f)return f;if(s){let h=s(c).toString();return this.memoizedFileURLs.set(c,h),h}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(c){let f=this.memoizedURLs.get(c);if(f)return f;o==="\\"&&(c=c.replace(/\\/g,"/"));let h=encodeURI(c).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(c,h),h}}return Nf=u,Nf}var Tf,ry;function ru(){if(ry)return Tf;ry=1;let e=Zl();class t extends e{constructor(n){super(n),this.type="comment"}}return Tf=t,t.default=t,Tf}var Af,ny;function Xn(){if(ny)return Af;ny=1;let{isClean:e,my:t}=zp(),r=eu(),n=ru(),a=Zl(),o,s,i,l;function d(c){return c.map(f=>(f.nodes&&(f.nodes=d(f.nodes)),delete f.source,f))}function u(c){if(c[e]=!1,c.proxyOf.nodes)for(let f of c.proxyOf.nodes)u(f)}class p extends a{append(...f){for(let h of f){let m=this.normalize(h,this.last);for(let b of m)this.proxyOf.nodes.push(b)}return this.markDirty(),this}cleanRaws(f){if(super.cleanRaws(f),this.nodes)for(let h of this.nodes)h.cleanRaws(f)}each(f){if(!this.proxyOf.nodes)return;let h=this.getIterator(),m,b;for(;this.indexes[h]<this.proxyOf.nodes.length&&(m=this.indexes[h],b=f(this.proxyOf.nodes[m],m),b!==!1);)this.indexes[h]+=1;return delete this.indexes[h],b}every(f){return this.nodes.every(f)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let f=this.lastEach;return this.indexes[f]=0,f}getProxyProcessor(){return{get(f,h){return h==="proxyOf"?f:f[h]?h==="each"||typeof h=="string"&&h.startsWith("walk")?(...m)=>f[h](...m.map(b=>typeof b=="function"?(g,x)=>b(g.toProxy(),x):b)):h==="every"||h==="some"?m=>f[h]((b,...g)=>m(b.toProxy(),...g)):h==="root"?()=>f.root().toProxy():h==="nodes"?f.nodes.map(m=>m.toProxy()):h==="first"||h==="last"?f[h].toProxy():f[h]:f[h]},set(f,h,m){return f[h]===m||(f[h]=m,(h==="name"||h==="params"||h==="selector")&&f.markDirty()),!0}}}index(f){return typeof f=="number"?f:(f.proxyOf&&(f=f.proxyOf),this.proxyOf.nodes.indexOf(f))}insertAfter(f,h){let m=this.index(f),b=this.normalize(h,this.proxyOf.nodes[m]).reverse();m=this.index(f);for(let x of b)this.proxyOf.nodes.splice(m+1,0,x);let g;for(let x in this.indexes)g=this.indexes[x],m<g&&(this.indexes[x]=g+b.length);return this.markDirty(),this}insertBefore(f,h){let m=this.index(f),b=m===0?"prepend":!1,g=this.normalize(h,this.proxyOf.nodes[m],b).reverse();m=this.index(f);for(let v of g)this.proxyOf.nodes.splice(m,0,v);let x;for(let v in this.indexes)x=this.indexes[v],m<=x&&(this.indexes[v]=x+g.length);return this.markDirty(),this}normalize(f,h){if(typeof f=="string")f=d(o(f).nodes);else if(typeof f>"u")f=[];else if(Array.isArray(f)){f=f.slice(0);for(let b of f)b.parent&&b.parent.removeChild(b,"ignore")}else if(f.type==="root"&&this.type!=="document"){f=f.nodes.slice(0);for(let b of f)b.parent&&b.parent.removeChild(b,"ignore")}else if(f.type)f=[f];else if(f.prop){if(typeof f.value>"u")throw new Error("Value field is missed in node creation");typeof f.value!="string"&&(f.value=String(f.value)),f=[new r(f)]}else if(f.selector)f=[new s(f)];else if(f.name)f=[new i(f)];else if(f.text)f=[new n(f)];else throw new Error("Unknown node type in node creation");return f.map(b=>(b[t]||p.rebuild(b),b=b.proxyOf,b.parent&&b.parent.removeChild(b),b[e]&&u(b),typeof b.raws.before>"u"&&h&&typeof h.raws.before<"u"&&(b.raws.before=h.raws.before.replace(/\S/g,"")),b.parent=this.proxyOf,b))}prepend(...f){f=f.reverse();for(let h of f){let m=this.normalize(h,this.first,"prepend").reverse();for(let b of m)this.proxyOf.nodes.unshift(b);for(let b in this.indexes)this.indexes[b]=this.indexes[b]+m.length}return this.markDirty(),this}push(f){return f.parent=this,this.proxyOf.nodes.push(f),this}removeAll(){for(let f of this.proxyOf.nodes)f.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(f){f=this.index(f),this.proxyOf.nodes[f].parent=void 0,this.proxyOf.nodes.splice(f,1);let h;for(let m in this.indexes)h=this.indexes[m],h>=f&&(this.indexes[m]=h-1);return this.markDirty(),this}replaceValues(f,h,m){return m||(m=h,h={}),this.walkDecls(b=>{h.props&&!h.props.includes(b.prop)||h.fast&&!b.value.includes(h.fast)||(b.value=b.value.replace(f,m))}),this.markDirty(),this}some(f){return this.nodes.some(f)}walk(f){return this.each((h,m)=>{let b;try{b=f(h,m)}catch(g){throw h.addToError(g)}return b!==!1&&h.walk&&(b=h.walk(f)),b})}walkAtRules(f,h){return h?f instanceof RegExp?this.walk((m,b)=>{if(m.type==="atrule"&&f.test(m.name))return h(m,b)}):this.walk((m,b)=>{if(m.type==="atrule"&&m.name===f)return h(m,b)}):(h=f,this.walk((m,b)=>{if(m.type==="atrule")return h(m,b)}))}walkComments(f){return this.walk((h,m)=>{if(h.type==="comment")return f(h,m)})}walkDecls(f,h){return h?f instanceof RegExp?this.walk((m,b)=>{if(m.type==="decl"&&f.test(m.prop))return h(m,b)}):this.walk((m,b)=>{if(m.type==="decl"&&m.prop===f)return h(m,b)}):(h=f,this.walk((m,b)=>{if(m.type==="decl")return h(m,b)}))}walkRules(f,h){return h?f instanceof RegExp?this.walk((m,b)=>{if(m.type==="rule"&&f.test(m.selector))return h(m,b)}):this.walk((m,b)=>{if(m.type==="rule"&&m.selector===f)return h(m,b)}):(h=f,this.walk((m,b)=>{if(m.type==="rule")return h(m,b)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return p.registerParse=c=>{o=c},p.registerRule=c=>{s=c},p.registerAtRule=c=>{i=c},p.registerRoot=c=>{l=c},Af=p,p.default=p,p.rebuild=c=>{c.type==="atrule"?Object.setPrototypeOf(c,i.prototype):c.type==="rule"?Object.setPrototypeOf(c,s.prototype):c.type==="decl"?Object.setPrototypeOf(c,r.prototype):c.type==="comment"?Object.setPrototypeOf(c,n.prototype):c.type==="root"&&Object.setPrototypeOf(c,l.prototype),c[t]=!0,c.nodes&&c.nodes.forEach(f=>{p.rebuild(f)})},Af}var Df,ay;function Up(){if(ay)return Df;ay=1;let e=Xn(),t,r;class n extends e{constructor(o){super({type:"document",...o}),this.nodes||(this.nodes=[])}toResult(o={}){return new t(new r,this,o).stringify()}}return n.registerLazyResult=a=>{t=a},n.registerProcessor=a=>{r=a},Df=n,n.default=n,Df}var Of,oy;function cw(){if(oy)return Of;oy=1;let e={};return Of=function(r){e[r]||(e[r]=!0,typeof console<"u"&&console.warn&&console.warn(r))},Of}var Ff,sy;function fw(){if(sy)return Ff;sy=1;class e{constructor(r,n={}){if(this.type="warning",this.text=r,n.node&&n.node.source){let a=n.node.rangeBy(n);this.line=a.start.line,this.column=a.start.column,this.endLine=a.end.line,this.endColumn=a.end.column}for(let a in n)this[a]=n[a]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return Ff=e,e.default=e,Ff}var Bf,iy;function qp(){if(iy)return Bf;iy=1;let e=fw();class t{constructor(n,a,o){this.processor=n,this.messages=[],this.root=a,this.opts=o,this.css=void 0,this.map=void 0}toString(){return this.css}warn(n,a={}){a.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(a.plugin=this.lastPlugin.postcssPlugin);let o=new e(n,a);return this.messages.push(o),o}warnings(){return this.messages.filter(n=>n.type==="warning")}get content(){return this.css}}return Bf=t,t.default=t,Bf}var zf,ly;function oL(){if(ly)return zf;ly=1;let e=39,t=34,r=92,n=47,a=10,o=32,s=12,i=9,l=13,d=91,u=93,p=40,c=41,f=123,h=125,m=59,b=42,g=58,x=64,v=/[\t\n\f\r "#'()/;[\\\]{}]/g,S=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,y=/.[\r\n"'(/\\]/,w=/[\da-f]/i;return zf=function(C,_={}){let I=C.css.valueOf(),D=_.ignoreErrors,A,k,ke,Ie,ue,j,be,ze,Se,we,wr=I.length,E=0,vt=[],yt=[];function _n(){return E}function Qe(X){throw C.error("Unclosed "+X,E)}function it(){return yt.length===0&&E>=wr}function br(X){if(yt.length)return yt.pop();if(E>=wr)return;let Me=X?X.ignoreUnclosed:!1;switch(A=I.charCodeAt(E),A){case a:case o:case i:case l:case s:{k=E;do k+=1,A=I.charCodeAt(k);while(A===o||A===a||A===i||A===l||A===s);we=["space",I.slice(E,k)],E=k-1;break}case d:case u:case f:case h:case g:case m:case c:{let se=String.fromCharCode(A);we=[se,se,E];break}case p:{if(ze=vt.length?vt.pop()[1]:"",Se=I.charCodeAt(E+1),ze==="url"&&Se!==e&&Se!==t&&Se!==o&&Se!==a&&Se!==i&&Se!==s&&Se!==l){k=E;do{if(j=!1,k=I.indexOf(")",k+1),k===-1)if(D||Me){k=E;break}else Qe("bracket");for(be=k;I.charCodeAt(be-1)===r;)be-=1,j=!j}while(j);we=["brackets",I.slice(E,k+1),E,k],E=k}else k=I.indexOf(")",E+1),Ie=I.slice(E,k+1),k===-1||y.test(Ie)?we=["(","(",E]:(we=["brackets",Ie,E,k],E=k);break}case e:case t:{ke=A===e?"'":'"',k=E;do{if(j=!1,k=I.indexOf(ke,k+1),k===-1)if(D||Me){k=E+1;break}else Qe("string");for(be=k;I.charCodeAt(be-1)===r;)be-=1,j=!j}while(j);we=["string",I.slice(E,k+1),E,k],E=k;break}case x:{v.lastIndex=E+1,v.test(I),v.lastIndex===0?k=I.length-1:k=v.lastIndex-2,we=["at-word",I.slice(E,k+1),E,k],E=k;break}case r:{for(k=E,ue=!0;I.charCodeAt(k+1)===r;)k+=1,ue=!ue;if(A=I.charCodeAt(k+1),ue&&A!==n&&A!==o&&A!==a&&A!==i&&A!==l&&A!==s&&(k+=1,w.test(I.charAt(k)))){for(;w.test(I.charAt(k+1));)k+=1;I.charCodeAt(k+1)===o&&(k+=1)}we=["word",I.slice(E,k+1),E,k],E=k;break}default:{A===n&&I.charCodeAt(E+1)===b?(k=I.indexOf("*/",E+2)+1,k===0&&(D||Me?k=I.length:Qe("comment")),we=["comment",I.slice(E,k+1),E,k],E=k):(S.lastIndex=E+1,S.test(I),S.lastIndex===0?k=I.length-1:k=S.lastIndex-2,we=["word",I.slice(E,k+1),E,k],vt.push(we),E=k);break}}return E++,we}function Sr(X){yt.push(X)}return{back:Sr,endOfFile:it,nextToken:br,position:_n}},zf}var Uf,uy;function $p(){if(uy)return Uf;uy=1;let e=Xn();class t extends e{constructor(n){super(n),this.type="atrule"}append(...n){return this.proxyOf.nodes||(this.nodes=[]),super.append(...n)}prepend(...n){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...n)}}return Uf=t,t.default=t,e.registerAtRule(t),Uf}var qf,dy;function ps(){if(dy)return qf;dy=1;let e=Xn(),t,r;class n extends e{constructor(o){super(o),this.type="root",this.nodes||(this.nodes=[])}normalize(o,s,i){let l=super.normalize(o);if(s){if(i==="prepend")this.nodes.length>1?s.raws.before=this.nodes[1].raws.before:delete s.raws.before;else if(this.first!==s)for(let d of l)d.raws.before=s.raws.before}return l}removeChild(o,s){let i=this.index(o);return!s&&i===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[i].raws.before),super.removeChild(o)}toResult(o={}){return new t(new r,this,o).stringify()}}return n.registerLazyResult=a=>{t=a},n.registerProcessor=a=>{r=a},qf=n,n.default=n,e.registerRoot(n),qf}var $f,cy;function pw(){if(cy)return $f;cy=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let r=[" ",`
|
|
57
|
-
`," "];return e.split(t,r)},split(t,r,n){let a=[],o="",s=!1,i=0,l=!1,d="",u=!1;for(let p of t)u?u=!1:p==="\\"?u=!0:l?p===d&&(l=!1):p==='"'||p==="'"?(l=!0,d=p):p==="("?i+=1:p===")"?i>0&&(i-=1):i===0&&r.includes(p)&&(s=!0),s?(o!==""&&a.push(o.trim()),o="",s=!1):o+=p;return(n||o!=="")&&a.push(o.trim()),a}};return $f=e,e.default=e,$f}var Hf,fy;function Hp(){if(fy)return Hf;fy=1;let e=Xn(),t=pw();class r extends e{constructor(a){super(a),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(a){let o=this.selector?this.selector.match(/,\s*/):null,s=o?o[0]:","+this.raw("between","beforeOpen");this.selector=a.join(s)}}return Hf=r,r.default=r,e.registerRule(r),Hf}var Wf,py;function sL(){if(py)return Wf;py=1;let e=eu(),t=oL(),r=ru(),n=$p(),a=ps(),o=Hp(),s={empty:!0,space:!0};function i(d){for(let u=d.length-1;u>=0;u--){let p=d[u],c=p[3]||p[2];if(c)return c}}class l{constructor(u){this.input=u,this.root=new a,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:u,start:{column:1,line:1,offset:0}}}atrule(u){let p=new n;p.name=u[1].slice(1),p.name===""&&this.unnamedAtrule(p,u),this.init(p,u[2]);let c,f,h,m=!1,b=!1,g=[],x=[];for(;!this.tokenizer.endOfFile();){if(u=this.tokenizer.nextToken(),c=u[0],c==="("||c==="["?x.push(c==="("?")":"]"):c==="{"&&x.length>0?x.push("}"):c===x[x.length-1]&&x.pop(),x.length===0)if(c===";"){p.source.end=this.getPosition(u[2]),p.source.end.offset++,this.semicolon=!0;break}else if(c==="{"){b=!0;break}else if(c==="}"){if(g.length>0){for(h=g.length-1,f=g[h];f&&f[0]==="space";)f=g[--h];f&&(p.source.end=this.getPosition(f[3]||f[2]),p.source.end.offset++)}this.end(u);break}else g.push(u);else g.push(u);if(this.tokenizer.endOfFile()){m=!0;break}}p.raws.between=this.spacesAndCommentsFromEnd(g),g.length?(p.raws.afterName=this.spacesAndCommentsFromStart(g),this.raw(p,"params",g),m&&(u=g[g.length-1],p.source.end=this.getPosition(u[3]||u[2]),p.source.end.offset++,this.spaces=p.raws.between,p.raws.between="")):(p.raws.afterName="",p.params=""),b&&(p.nodes=[],this.current=p)}checkMissedSemicolon(u){let p=this.colon(u);if(p===!1)return;let c=0,f;for(let h=p-1;h>=0&&(f=u[h],!(f[0]!=="space"&&(c+=1,c===2)));h--);throw this.input.error("Missed semicolon",f[0]==="word"?f[3]+1:f[2])}colon(u){let p=0,c,f,h;for(let[m,b]of u.entries()){if(c=b,f=c[0],f==="("&&(p+=1),f===")"&&(p-=1),p===0&&f===":")if(!h)this.doubleColon(c);else{if(h[0]==="word"&&h[1]==="progid")continue;return m}h=c}return!1}comment(u){let p=new r;this.init(p,u[2]),p.source.end=this.getPosition(u[3]||u[2]),p.source.end.offset++;let c=u[1].slice(2,-2);if(/^\s*$/.test(c))p.text="",p.raws.left=c,p.raws.right="";else{let f=c.match(/^(\s*)([^]*\S)(\s*)$/);p.text=f[2],p.raws.left=f[1],p.raws.right=f[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(u,p){let c=new e;this.init(c,u[0][2]);let f=u[u.length-1];for(f[0]===";"&&(this.semicolon=!0,u.pop()),c.source.end=this.getPosition(f[3]||f[2]||i(u)),c.source.end.offset++;u[0][0]!=="word";)u.length===1&&this.unknownWord(u),c.raws.before+=u.shift()[1];for(c.source.start=this.getPosition(u[0][2]),c.prop="";u.length;){let x=u[0][0];if(x===":"||x==="space"||x==="comment")break;c.prop+=u.shift()[1]}c.raws.between="";let h;for(;u.length;)if(h=u.shift(),h[0]===":"){c.raws.between+=h[1];break}else h[0]==="word"&&/\w/.test(h[1])&&this.unknownWord([h]),c.raws.between+=h[1];(c.prop[0]==="_"||c.prop[0]==="*")&&(c.raws.before+=c.prop[0],c.prop=c.prop.slice(1));let m=[],b;for(;u.length&&(b=u[0][0],!(b!=="space"&&b!=="comment"));)m.push(u.shift());this.precheckMissedSemicolon(u);for(let x=u.length-1;x>=0;x--){if(h=u[x],h[1].toLowerCase()==="!important"){c.important=!0;let v=this.stringFrom(u,x);v=this.spacesFromEnd(u)+v,v!==" !important"&&(c.raws.important=v);break}else if(h[1].toLowerCase()==="important"){let v=u.slice(0),S="";for(let y=x;y>0;y--){let w=v[y][0];if(S.trim().indexOf("!")===0&&w!=="space")break;S=v.pop()[1]+S}S.trim().indexOf("!")===0&&(c.important=!0,c.raws.important=S,u=v)}if(h[0]!=="space"&&h[0]!=="comment")break}u.some(x=>x[0]!=="space"&&x[0]!=="comment")&&(c.raws.between+=m.map(x=>x[1]).join(""),m=[]),this.raw(c,"value",m.concat(u),p),c.value.includes(":")&&!p&&this.checkMissedSemicolon(u)}doubleColon(u){throw this.input.error("Double colon",{offset:u[2]},{offset:u[2]+u[1].length})}emptyRule(u){let p=new o;this.init(p,u[2]),p.selector="",p.raws.between="",this.current=p}end(u){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(u[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(u)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(u){if(this.spaces+=u[1],this.current.nodes){let p=this.current.nodes[this.current.nodes.length-1];p&&p.type==="rule"&&!p.raws.ownSemicolon&&(p.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(u){let p=this.input.fromOffset(u);return{column:p.col,line:p.line,offset:u}}init(u,p){this.current.push(u),u.source={input:this.input,start:this.getPosition(p)},u.raws.before=this.spaces,this.spaces="",u.type!=="comment"&&(this.semicolon=!1)}other(u){let p=!1,c=null,f=!1,h=null,m=[],b=u[1].startsWith("--"),g=[],x=u;for(;x;){if(c=x[0],g.push(x),c==="("||c==="[")h||(h=x),m.push(c==="("?")":"]");else if(b&&f&&c==="{")h||(h=x),m.push("}");else if(m.length===0)if(c===";")if(f){this.decl(g,b);return}else break;else if(c==="{"){this.rule(g);return}else if(c==="}"){this.tokenizer.back(g.pop()),p=!0;break}else c===":"&&(f=!0);else c===m[m.length-1]&&(m.pop(),m.length===0&&(h=null));x=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(p=!0),m.length>0&&this.unclosedBracket(h),p&&f){if(!b)for(;g.length&&(x=g[g.length-1][0],!(x!=="space"&&x!=="comment"));)this.tokenizer.back(g.pop());this.decl(g,b)}else this.unknownWord(g)}parse(){let u;for(;!this.tokenizer.endOfFile();)switch(u=this.tokenizer.nextToken(),u[0]){case"space":this.spaces+=u[1];break;case";":this.freeSemicolon(u);break;case"}":this.end(u);break;case"comment":this.comment(u);break;case"at-word":this.atrule(u);break;case"{":this.emptyRule(u);break;default:this.other(u);break}this.endFile()}precheckMissedSemicolon(){}raw(u,p,c,f){let h,m,b=c.length,g="",x=!0,v,S;for(let y=0;y<b;y+=1)h=c[y],m=h[0],m==="space"&&y===b-1&&!f?x=!1:m==="comment"?(S=c[y-1]?c[y-1][0]:"empty",v=c[y+1]?c[y+1][0]:"empty",!s[S]&&!s[v]?g.slice(-1)===","?x=!1:g+=h[1]:x=!1):g+=h[1];if(!x){let y=c.reduce((w,L)=>w+L[1],"");u.raws[p]={raw:y,value:g}}u[p]=g}rule(u){u.pop();let p=new o;this.init(p,u[0][2]),p.raws.between=this.spacesAndCommentsFromEnd(u),this.raw(p,"selector",u),this.current=p}spacesAndCommentsFromEnd(u){let p,c="";for(;u.length&&(p=u[u.length-1][0],!(p!=="space"&&p!=="comment"));)c=u.pop()[1]+c;return c}spacesAndCommentsFromStart(u){let p,c="";for(;u.length&&(p=u[0][0],!(p!=="space"&&p!=="comment"));)c+=u.shift()[1];return c}spacesFromEnd(u){let p,c="";for(;u.length&&(p=u[u.length-1][0],p==="space");)c=u.pop()[1]+c;return c}stringFrom(u,p){let c="";for(let f=p;f<u.length;f++)c+=u[f][1];return u.splice(p,u.length-p),c}unclosedBlock(){let u=this.current.source.start;throw this.input.error("Unclosed block",u.line,u.column)}unclosedBracket(u){throw this.input.error("Unclosed bracket",{offset:u[2]},{offset:u[2]+1})}unexpectedClose(u){throw this.input.error("Unexpected }",{offset:u[2]},{offset:u[2]+1})}unknownWord(u){throw this.input.error("Unknown word",{offset:u[0][2]},{offset:u[0][2]+u[0][1].length})}unnamedAtrule(u,p){throw this.input.error("At-rule without name",{offset:p[2]},{offset:p[2]+p[1].length})}}return Wf=l,Wf}var jf,my;function Wp(){if(my)return jf;my=1;let e=Xn(),t=sL(),r=tu();function n(a,o){let s=new r(a,o),i=new t(s);try{i.parse()}catch(l){throw l}return i.root}return jf=n,n.default=n,e.registerParse(n),jf}var Vf,hy;function mw(){if(hy)return Vf;hy=1;let{isClean:e,my:t}=zp(),r=dw(),n=Jl(),a=Xn(),o=Up(),s=cw(),i=qp(),l=Wp(),d=ps(),u={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},p={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},c={Once:!0,postcssPlugin:!0,prepare:!0},f=0;function h(S){return typeof S=="object"&&typeof S.then=="function"}function m(S){let y=!1,w=u[S.type];return S.type==="decl"?y=S.prop.toLowerCase():S.type==="atrule"&&(y=S.name.toLowerCase()),y&&S.append?[w,w+"-"+y,f,w+"Exit",w+"Exit-"+y]:y?[w,w+"-"+y,w+"Exit",w+"Exit-"+y]:S.append?[w,f,w+"Exit"]:[w,w+"Exit"]}function b(S){let y;return S.type==="document"?y=["Document",f,"DocumentExit"]:S.type==="root"?y=["Root",f,"RootExit"]:y=m(S),{eventIndex:0,events:y,iterator:0,node:S,visitorIndex:0,visitors:[]}}function g(S){return S[e]=!1,S.nodes&&S.nodes.forEach(y=>g(y)),S}let x={};class v{constructor(y,w,L){this.stringified=!1,this.processed=!1;let C;if(typeof w=="object"&&w!==null&&(w.type==="root"||w.type==="document"))C=g(w);else if(w instanceof v||w instanceof i)C=g(w.root),w.map&&(typeof L.map>"u"&&(L.map={}),L.map.inline||(L.map.inline=!1),L.map.prev=w.map);else{let _=l;L.syntax&&(_=L.syntax.parse),L.parser&&(_=L.parser),_.parse&&(_=_.parse);try{C=_(w,L)}catch(I){this.processed=!0,this.error=I}C&&!C[t]&&a.rebuild(C)}this.result=new i(y,C,L),this.helpers={...x,postcss:x,result:this.result},this.plugins=this.processor.plugins.map(_=>typeof _=="object"&&_.prepare?{..._,..._.prepare(this.result)}:_)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(y){return this.async().catch(y)}finally(y){return this.async().then(y,y)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(y,w){let L=this.result.lastPlugin;try{w&&w.addToError(y),this.error=y,y.name==="CssSyntaxError"&&!y.plugin?(y.plugin=L.postcssPlugin,y.setMessage()):L.postcssVersion}catch(C){console&&console.error&&console.error(C)}return y}prepareVisitors(){this.listeners={};let y=(w,L,C)=>{this.listeners[L]||(this.listeners[L]=[]),this.listeners[L].push([w,C])};for(let w of this.plugins)if(typeof w=="object")for(let L in w){if(!p[L]&&/^[A-Z]/.test(L))throw new Error(`Unknown event ${L} in ${w.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!c[L])if(typeof w[L]=="object")for(let C in w[L])C==="*"?y(w,L,w[L][C]):y(w,L+"-"+C.toLowerCase(),w[L][C]);else typeof w[L]=="function"&&y(w,L,w[L])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let y=0;y<this.plugins.length;y++){let w=this.plugins[y],L=this.runOnRoot(w);if(h(L))try{await L}catch(C){throw this.handleError(C)}}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[e];){y[e]=!0;let w=[b(y)];for(;w.length>0;){let L=this.visitTick(w);if(h(L))try{await L}catch(C){let _=w[w.length-1].node;throw this.handleError(C,_)}}}if(this.listeners.OnceExit)for(let[w,L]of this.listeners.OnceExit){this.result.lastPlugin=w;try{if(y.type==="document"){let C=y.nodes.map(_=>L(_,this.helpers));await Promise.all(C)}else await L(y,this.helpers)}catch(C){throw this.handleError(C)}}}return this.processed=!0,this.stringify()}runOnRoot(y){this.result.lastPlugin=y;try{if(typeof y=="object"&&y.Once){if(this.result.root.type==="document"){let w=this.result.root.nodes.map(L=>y.Once(L,this.helpers));return h(w[0])?Promise.all(w):w}return y.Once(this.result.root,this.helpers)}else if(typeof y=="function")return y(this.result.root,this.result)}catch(w){throw this.handleError(w)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let y=this.result.opts,w=n;y.syntax&&(w=y.syntax.stringify),y.stringifier&&(w=y.stringifier),w.stringify&&(w=w.stringify);let C=new r(w,this.result.root,this.result.opts).generate();return this.result.css=C[0],this.result.map=C[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let y of this.plugins){let w=this.runOnRoot(y);if(h(w))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[e];)y[e]=!0,this.walkSync(y);if(this.listeners.OnceExit)if(y.type==="document")for(let w of y.nodes)this.visitSync(this.listeners.OnceExit,w);else this.visitSync(this.listeners.OnceExit,y)}return this.result}then(y,w){return this.async().then(y,w)}toString(){return this.css}visitSync(y,w){for(let[L,C]of y){this.result.lastPlugin=L;let _;try{_=C(w,this.helpers)}catch(I){throw this.handleError(I,w.proxyOf)}if(w.type!=="root"&&w.type!=="document"&&!w.parent)return!0;if(h(_))throw this.getAsyncError()}}visitTick(y){let w=y[y.length-1],{node:L,visitors:C}=w;if(L.type!=="root"&&L.type!=="document"&&!L.parent){y.pop();return}if(C.length>0&&w.visitorIndex<C.length){let[I,D]=C[w.visitorIndex];w.visitorIndex+=1,w.visitorIndex===C.length&&(w.visitors=[],w.visitorIndex=0),this.result.lastPlugin=I;try{return D(L.toProxy(),this.helpers)}catch(A){throw this.handleError(A,L)}}if(w.iterator!==0){let I=w.iterator,D;for(;D=L.nodes[L.indexes[I]];)if(L.indexes[I]+=1,!D[e]){D[e]=!0,y.push(b(D));return}w.iterator=0,delete L.indexes[I]}let _=w.events;for(;w.eventIndex<_.length;){let I=_[w.eventIndex];if(w.eventIndex+=1,I===f){L.nodes&&L.nodes.length&&(L[e]=!0,w.iterator=L.getIterator());return}else if(this.listeners[I]){w.visitors=this.listeners[I];return}}y.pop()}walkSync(y){y[e]=!0;let w=m(y);for(let L of w)if(L===f)y.nodes&&y.each(C=>{C[e]||this.walkSync(C)});else{let C=this.listeners[L];if(C&&this.visitSync(C,y.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}return v.registerPostcss=S=>{x=S},Vf=v,v.default=v,d.registerLazyResult(v),o.registerLazyResult(v),Vf}var Gf,gy;function iL(){if(gy)return Gf;gy=1;let e=dw(),t=Jl(),r=cw(),n=Wp(),a=qp();class o{constructor(i,l,d){l=l.toString(),this.stringified=!1,this._processor=i,this._css=l,this._opts=d,this._map=void 0;let u,p=t;this.result=new a(this._processor,u,this._opts),this.result.css=l;let c=this;Object.defineProperty(this.result,"root",{get(){return c.root}});let f=new e(p,u,this._opts,l);if(f.isMap()){let[h,m]=f.generate();h&&(this.result.css=h),m&&(this.result.map=m)}else f.clearAnnotation(),this.result.css=f.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(i){return this.async().catch(i)}finally(i){return this.async().then(i,i)}sync(){if(this.error)throw this.error;return this.result}then(i,l){return this.async().then(i,l)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let i,l=n;try{i=l(this._css,this._opts)}catch(d){this.error=d}if(this.error)throw this.error;return this._root=i,i}get[Symbol.toStringTag](){return"NoWorkResult"}}return Gf=o,o.default=o,Gf}var Xf,xy;function lL(){if(xy)return Xf;xy=1;let e=iL(),t=mw(),r=Up(),n=ps();class a{constructor(s=[]){this.version="8.4.38",this.plugins=this.normalize(s)}normalize(s){let i=[];for(let l of s)if(l.postcss===!0?l=l():l.postcss&&(l=l.postcss),typeof l=="object"&&Array.isArray(l.plugins))i=i.concat(l.plugins);else if(typeof l=="object"&&l.postcssPlugin)i.push(l);else if(typeof l=="function")i.push(l);else if(!(typeof l=="object"&&(l.parse||l.stringify)))throw new Error(l+" is not a PostCSS plugin");return i}process(s,i={}){return!this.plugins.length&&!i.parser&&!i.stringifier&&!i.syntax?new e(this,s,i):new t(this,s,i)}use(s){return this.plugins=this.plugins.concat(this.normalize([s])),this}}return Xf=a,a.default=a,n.registerProcessor(a),r.registerProcessor(a),Xf}var Kf,vy;function uL(){if(vy)return Kf;vy=1;let e=eu(),t=uw(),r=ru(),n=$p(),a=tu(),o=ps(),s=Hp();function i(l,d){if(Array.isArray(l))return l.map(c=>i(c));let{inputs:u,...p}=l;if(u){d=[];for(let c of u){let f={...c,__proto__:a.prototype};f.map&&(f.map={...f.map,__proto__:t.prototype}),d.push(f)}}if(p.nodes&&(p.nodes=l.nodes.map(c=>i(c,d))),p.source){let{inputId:c,...f}=p.source;p.source=f,c!=null&&(p.source.input=d[c])}if(p.type==="root")return new o(p);if(p.type==="decl")return new e(p);if(p.type==="rule")return new s(p);if(p.type==="comment")return new r(p);if(p.type==="atrule")return new n(p);throw new Error("Unknown node type: "+l.type)}return Kf=i,i.default=i,Kf}var Qf,yy;function dL(){if(yy)return Qf;yy=1;let e=Bp(),t=eu(),r=mw(),n=Xn(),a=lL(),o=Jl(),s=uL(),i=Up(),l=fw(),d=ru(),u=$p(),p=qp(),c=tu(),f=Wp(),h=pw(),m=Hp(),b=ps(),g=Zl();function x(...v){return v.length===1&&Array.isArray(v[0])&&(v=v[0]),new a(v)}return x.plugin=function(S,y){let w=!1;function L(..._){console&&console.warn&&!w&&(w=!0,console.warn(S+`: postcss.plugin was deprecated. Migration guide:
|
|
55
|
+
`),this.css+=f+"/*# sourceMappingURL="+c+" */"}applyPrevMaps(){for(let c of this.previous()){let f=this.toUrl(this.path(c.file)),h=c.root||r(c.file),m;this.mapOpts.sourcesContent===!1?(m=new e(c.text),m.sourcesContent&&(m.sourcesContent=null)):m=c.consumer(),this.map.applySourceMap(m,f,this.toUrl(this.path(h)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let c;for(let f=this.root.nodes.length-1;f>=0;f--)c=this.root.nodes[f],c.type==="comment"&&c.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(f)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),d&&i&&this.isMap())return this.generateMap();{let c="";return this.stringify(this.root,f=>{c+=f}),[c]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let c=this.previous()[0].consumer();c.file=this.outputFile(),this.map=t.fromSourceMap(c,{ignoreInvalidMapping:!0})}else this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0});let c=1,f=1,h="<no source>",m={generated:{column:0,line:0},original:{column:0,line:0},source:""},y,g;this.stringify(this.root,(x,v,S)=>{if(this.css+=x,v&&S!=="end"&&(m.generated.line=c,m.generated.column=f-1,v.source&&v.source.start?(m.source=this.sourcePath(v),m.original.line=v.source.start.line,m.original.column=v.source.start.column-1,this.map.addMapping(m)):(m.source=h,m.original.line=1,m.original.column=0,this.map.addMapping(m))),y=x.match(/\n/g),y?(c+=y.length,g=x.lastIndexOf(`
|
|
56
|
+
`),f=x.length-g):f+=x.length,v&&S!=="start"){let b=v.parent||{raws:{}};(!(v.type==="decl"||v.type==="atrule"&&!v.nodes)||v!==b.last||b.raws.semicolon)&&(v.source&&v.source.end?(m.source=this.sourcePath(v),m.original.line=v.source.end.line,m.original.column=v.source.end.column-1,m.generated.line=c,m.generated.column=f-2,this.map.addMapping(m)):(m.source=h,m.original.line=1,m.original.column=0,m.generated.line=c,m.generated.column=f-1,this.map.addMapping(m)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(c=>c.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let c=this.mapOpts.annotation;return typeof c<"u"&&c!==!0?!1:this.previous().length?this.previous().some(f=>f.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(c=>c.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(c){if(this.mapOpts.absolute||c.charCodeAt(0)===60||/^\w+:\/\//.test(c))return c;let f=this.memoizedPaths.get(c);if(f)return f;let h=this.opts.to?r(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(h=r(a(h,this.mapOpts.annotation)));let m=n(h,c);return this.memoizedPaths.set(c,m),m}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(c=>{if(c.source&&c.source.input.map){let f=c.source.input.map;this.previousMaps.includes(f)||this.previousMaps.push(f)}});else{let c=new l(this.originalCSS,this.opts);c.map&&this.previousMaps.push(c.map)}return this.previousMaps}setSourcesContent(){let c={};if(this.root)this.root.walk(f=>{if(f.source){let h=f.source.input.from;if(h&&!c[h]){c[h]=!0;let m=this.usesFileUrls?this.toFileUrl(h):this.toUrl(this.path(h));this.map.setSourceContent(m,f.source.input.css)}}});else if(this.css){let f=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(f,this.css)}}sourcePath(c){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(c.source.input.from):this.toUrl(this.path(c.source.input.from))}toBase64(c){return Buffer?Buffer.from(c).toString("base64"):window.btoa(unescape(encodeURIComponent(c)))}toFileUrl(c){let f=this.memoizedFileURLs.get(c);if(f)return f;if(s){let h=s(c).toString();return this.memoizedFileURLs.set(c,h),h}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(c){let f=this.memoizedURLs.get(c);if(f)return f;o==="\\"&&(c=c.replace(/\\/g,"/"));let h=encodeURI(c).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(c,h),h}}return Df=u,Df}var Of,ly;function ou(){if(ly)return Of;ly=1;let e=ru();class t extends e{constructor(n){super(n),this.type="comment"}}return Of=t,t.default=t,Of}var Ff,iy;function Qn(){if(iy)return Ff;iy=1;let{isClean:e,my:t}=$p(),r=nu(),n=ou(),a=ru(),o,s,l,i;function d(c){return c.map(f=>(f.nodes&&(f.nodes=d(f.nodes)),delete f.source,f))}function u(c){if(c[e]=!1,c.proxyOf.nodes)for(let f of c.proxyOf.nodes)u(f)}class p extends a{append(...f){for(let h of f){let m=this.normalize(h,this.last);for(let y of m)this.proxyOf.nodes.push(y)}return this.markDirty(),this}cleanRaws(f){if(super.cleanRaws(f),this.nodes)for(let h of this.nodes)h.cleanRaws(f)}each(f){if(!this.proxyOf.nodes)return;let h=this.getIterator(),m,y;for(;this.indexes[h]<this.proxyOf.nodes.length&&(m=this.indexes[h],y=f(this.proxyOf.nodes[m],m),y!==!1);)this.indexes[h]+=1;return delete this.indexes[h],y}every(f){return this.nodes.every(f)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let f=this.lastEach;return this.indexes[f]=0,f}getProxyProcessor(){return{get(f,h){return h==="proxyOf"?f:f[h]?h==="each"||typeof h=="string"&&h.startsWith("walk")?(...m)=>f[h](...m.map(y=>typeof y=="function"?(g,x)=>y(g.toProxy(),x):y)):h==="every"||h==="some"?m=>f[h]((y,...g)=>m(y.toProxy(),...g)):h==="root"?()=>f.root().toProxy():h==="nodes"?f.nodes.map(m=>m.toProxy()):h==="first"||h==="last"?f[h].toProxy():f[h]:f[h]},set(f,h,m){return f[h]===m||(f[h]=m,(h==="name"||h==="params"||h==="selector")&&f.markDirty()),!0}}}index(f){return typeof f=="number"?f:(f.proxyOf&&(f=f.proxyOf),this.proxyOf.nodes.indexOf(f))}insertAfter(f,h){let m=this.index(f),y=this.normalize(h,this.proxyOf.nodes[m]).reverse();m=this.index(f);for(let x of y)this.proxyOf.nodes.splice(m+1,0,x);let g;for(let x in this.indexes)g=this.indexes[x],m<g&&(this.indexes[x]=g+y.length);return this.markDirty(),this}insertBefore(f,h){let m=this.index(f),y=m===0?"prepend":!1,g=this.normalize(h,this.proxyOf.nodes[m],y).reverse();m=this.index(f);for(let v of g)this.proxyOf.nodes.splice(m,0,v);let x;for(let v in this.indexes)x=this.indexes[v],m<=x&&(this.indexes[v]=x+g.length);return this.markDirty(),this}normalize(f,h){if(typeof f=="string")f=d(o(f).nodes);else if(typeof f>"u")f=[];else if(Array.isArray(f)){f=f.slice(0);for(let y of f)y.parent&&y.parent.removeChild(y,"ignore")}else if(f.type==="root"&&this.type!=="document"){f=f.nodes.slice(0);for(let y of f)y.parent&&y.parent.removeChild(y,"ignore")}else if(f.type)f=[f];else if(f.prop){if(typeof f.value>"u")throw new Error("Value field is missed in node creation");typeof f.value!="string"&&(f.value=String(f.value)),f=[new r(f)]}else if(f.selector)f=[new s(f)];else if(f.name)f=[new l(f)];else if(f.text)f=[new n(f)];else throw new Error("Unknown node type in node creation");return f.map(y=>(y[t]||p.rebuild(y),y=y.proxyOf,y.parent&&y.parent.removeChild(y),y[e]&&u(y),typeof y.raws.before>"u"&&h&&typeof h.raws.before<"u"&&(y.raws.before=h.raws.before.replace(/\S/g,"")),y.parent=this.proxyOf,y))}prepend(...f){f=f.reverse();for(let h of f){let m=this.normalize(h,this.first,"prepend").reverse();for(let y of m)this.proxyOf.nodes.unshift(y);for(let y in this.indexes)this.indexes[y]=this.indexes[y]+m.length}return this.markDirty(),this}push(f){return f.parent=this,this.proxyOf.nodes.push(f),this}removeAll(){for(let f of this.proxyOf.nodes)f.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(f){f=this.index(f),this.proxyOf.nodes[f].parent=void 0,this.proxyOf.nodes.splice(f,1);let h;for(let m in this.indexes)h=this.indexes[m],h>=f&&(this.indexes[m]=h-1);return this.markDirty(),this}replaceValues(f,h,m){return m||(m=h,h={}),this.walkDecls(y=>{h.props&&!h.props.includes(y.prop)||h.fast&&!y.value.includes(h.fast)||(y.value=y.value.replace(f,m))}),this.markDirty(),this}some(f){return this.nodes.some(f)}walk(f){return this.each((h,m)=>{let y;try{y=f(h,m)}catch(g){throw h.addToError(g)}return y!==!1&&h.walk&&(y=h.walk(f)),y})}walkAtRules(f,h){return h?f instanceof RegExp?this.walk((m,y)=>{if(m.type==="atrule"&&f.test(m.name))return h(m,y)}):this.walk((m,y)=>{if(m.type==="atrule"&&m.name===f)return h(m,y)}):(h=f,this.walk((m,y)=>{if(m.type==="atrule")return h(m,y)}))}walkComments(f){return this.walk((h,m)=>{if(h.type==="comment")return f(h,m)})}walkDecls(f,h){return h?f instanceof RegExp?this.walk((m,y)=>{if(m.type==="decl"&&f.test(m.prop))return h(m,y)}):this.walk((m,y)=>{if(m.type==="decl"&&m.prop===f)return h(m,y)}):(h=f,this.walk((m,y)=>{if(m.type==="decl")return h(m,y)}))}walkRules(f,h){return h?f instanceof RegExp?this.walk((m,y)=>{if(m.type==="rule"&&f.test(m.selector))return h(m,y)}):this.walk((m,y)=>{if(m.type==="rule"&&m.selector===f)return h(m,y)}):(h=f,this.walk((m,y)=>{if(m.type==="rule")return h(m,y)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return p.registerParse=c=>{o=c},p.registerRule=c=>{s=c},p.registerAtRule=c=>{l=c},p.registerRoot=c=>{i=c},Ff=p,p.default=p,p.rebuild=c=>{c.type==="atrule"?Object.setPrototypeOf(c,l.prototype):c.type==="rule"?Object.setPrototypeOf(c,s.prototype):c.type==="decl"?Object.setPrototypeOf(c,r.prototype):c.type==="comment"?Object.setPrototypeOf(c,n.prototype):c.type==="root"&&Object.setPrototypeOf(c,i.prototype),c[t]=!0,c.nodes&&c.nodes.forEach(f=>{p.rebuild(f)})},Ff}var Bf,uy;function Hp(){if(uy)return Bf;uy=1;let e=Qn(),t,r;class n extends e{constructor(o){super({type:"document",...o}),this.nodes||(this.nodes=[])}toResult(o={}){return new t(new r,this,o).stringify()}}return n.registerLazyResult=a=>{t=a},n.registerProcessor=a=>{r=a},Bf=n,n.default=n,Bf}var zf,dy;function gw(){if(dy)return zf;dy=1;let e={};return zf=function(r){e[r]||(e[r]=!0,typeof console<"u"&&console.warn&&console.warn(r))},zf}var Uf,cy;function xw(){if(cy)return Uf;cy=1;class e{constructor(r,n={}){if(this.type="warning",this.text=r,n.node&&n.node.source){let a=n.node.rangeBy(n);this.line=a.start.line,this.column=a.start.column,this.endLine=a.end.line,this.endColumn=a.end.column}for(let a in n)this[a]=n[a]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return Uf=e,e.default=e,Uf}var qf,fy;function jp(){if(fy)return qf;fy=1;let e=xw();class t{constructor(n,a,o){this.processor=n,this.messages=[],this.root=a,this.opts=o,this.css=void 0,this.map=void 0}toString(){return this.css}warn(n,a={}){a.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(a.plugin=this.lastPlugin.postcssPlugin);let o=new e(n,a);return this.messages.push(o),o}warnings(){return this.messages.filter(n=>n.type==="warning")}get content(){return this.css}}return qf=t,t.default=t,qf}var $f,py;function fL(){if(py)return $f;py=1;let e=39,t=34,r=92,n=47,a=10,o=32,s=12,l=9,i=13,d=91,u=93,p=40,c=41,f=123,h=125,m=59,y=42,g=58,x=64,v=/[\t\n\f\r "#'()/;[\\\]{}]/g,S=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,b=/.[\r\n"'(/\\]/,w=/[\da-f]/i;return $f=function(L,k={}){let _=L.css.valueOf(),N=k.ignoreErrors,P,I,re,_e,se,j,ve,Me,Le,Ce,br=_.length,T=0,yt=[],wt=[];function En(){return T}function Ye(K){throw L.error("Unclosed "+K,T)}function it(){return wt.length===0&&T>=br}function Sr(K){if(wt.length)return wt.pop();if(T>=br)return;let Re=K?K.ignoreUnclosed:!1;switch(P=_.charCodeAt(T),P){case a:case o:case l:case i:case s:{I=T;do I+=1,P=_.charCodeAt(I);while(P===o||P===a||P===l||P===i||P===s);Ce=["space",_.slice(T,I)],T=I-1;break}case d:case u:case f:case h:case g:case m:case c:{let ue=String.fromCharCode(P);Ce=[ue,ue,T];break}case p:{if(Me=yt.length?yt.pop()[1]:"",Le=_.charCodeAt(T+1),Me==="url"&&Le!==e&&Le!==t&&Le!==o&&Le!==a&&Le!==l&&Le!==s&&Le!==i){I=T;do{if(j=!1,I=_.indexOf(")",I+1),I===-1)if(N||Re){I=T;break}else Ye("bracket");for(ve=I;_.charCodeAt(ve-1)===r;)ve-=1,j=!j}while(j);Ce=["brackets",_.slice(T,I+1),T,I],T=I}else I=_.indexOf(")",T+1),_e=_.slice(T,I+1),I===-1||b.test(_e)?Ce=["(","(",T]:(Ce=["brackets",_e,T,I],T=I);break}case e:case t:{re=P===e?"'":'"',I=T;do{if(j=!1,I=_.indexOf(re,I+1),I===-1)if(N||Re){I=T+1;break}else Ye("string");for(ve=I;_.charCodeAt(ve-1)===r;)ve-=1,j=!j}while(j);Ce=["string",_.slice(T,I+1),T,I],T=I;break}case x:{v.lastIndex=T+1,v.test(_),v.lastIndex===0?I=_.length-1:I=v.lastIndex-2,Ce=["at-word",_.slice(T,I+1),T,I],T=I;break}case r:{for(I=T,se=!0;_.charCodeAt(I+1)===r;)I+=1,se=!se;if(P=_.charCodeAt(I+1),se&&P!==n&&P!==o&&P!==a&&P!==l&&P!==i&&P!==s&&(I+=1,w.test(_.charAt(I)))){for(;w.test(_.charAt(I+1));)I+=1;_.charCodeAt(I+1)===o&&(I+=1)}Ce=["word",_.slice(T,I+1),T,I],T=I;break}default:{P===n&&_.charCodeAt(T+1)===y?(I=_.indexOf("*/",T+2)+1,I===0&&(N||Re?I=_.length:Ye("comment")),Ce=["comment",_.slice(T,I+1),T,I],T=I):(S.lastIndex=T+1,S.test(_),S.lastIndex===0?I=_.length-1:I=S.lastIndex-2,Ce=["word",_.slice(T,I+1),T,I],yt.push(Ce),T=I);break}}return T++,Ce}function Cr(K){wt.push(K)}return{back:Cr,endOfFile:it,nextToken:Sr,position:En}},$f}var Hf,my;function Wp(){if(my)return Hf;my=1;let e=Qn();class t extends e{constructor(n){super(n),this.type="atrule"}append(...n){return this.proxyOf.nodes||(this.nodes=[]),super.append(...n)}prepend(...n){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...n)}}return Hf=t,t.default=t,e.registerAtRule(t),Hf}var jf,hy;function xs(){if(hy)return jf;hy=1;let e=Qn(),t,r;class n extends e{constructor(o){super(o),this.type="root",this.nodes||(this.nodes=[])}normalize(o,s,l){let i=super.normalize(o);if(s){if(l==="prepend")this.nodes.length>1?s.raws.before=this.nodes[1].raws.before:delete s.raws.before;else if(this.first!==s)for(let d of i)d.raws.before=s.raws.before}return i}removeChild(o,s){let l=this.index(o);return!s&&l===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[l].raws.before),super.removeChild(o)}toResult(o={}){return new t(new r,this,o).stringify()}}return n.registerLazyResult=a=>{t=a},n.registerProcessor=a=>{r=a},jf=n,n.default=n,e.registerRoot(n),jf}var Wf,gy;function vw(){if(gy)return Wf;gy=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let r=[" ",`
|
|
57
|
+
`," "];return e.split(t,r)},split(t,r,n){let a=[],o="",s=!1,l=0,i=!1,d="",u=!1;for(let p of t)u?u=!1:p==="\\"?u=!0:i?p===d&&(i=!1):p==='"'||p==="'"?(i=!0,d=p):p==="("?l+=1:p===")"?l>0&&(l-=1):l===0&&r.includes(p)&&(s=!0),s?(o!==""&&a.push(o.trim()),o="",s=!1):o+=p;return(n||o!=="")&&a.push(o.trim()),a}};return Wf=e,e.default=e,Wf}var Vf,xy;function Vp(){if(xy)return Vf;xy=1;let e=Qn(),t=vw();class r extends e{constructor(a){super(a),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(a){let o=this.selector?this.selector.match(/,\s*/):null,s=o?o[0]:","+this.raw("between","beforeOpen");this.selector=a.join(s)}}return Vf=r,r.default=r,e.registerRule(r),Vf}var Gf,vy;function pL(){if(vy)return Gf;vy=1;let e=nu(),t=fL(),r=ou(),n=Wp(),a=xs(),o=Vp(),s={empty:!0,space:!0};function l(d){for(let u=d.length-1;u>=0;u--){let p=d[u],c=p[3]||p[2];if(c)return c}}class i{constructor(u){this.input=u,this.root=new a,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:u,start:{column:1,line:1,offset:0}}}atrule(u){let p=new n;p.name=u[1].slice(1),p.name===""&&this.unnamedAtrule(p,u),this.init(p,u[2]);let c,f,h,m=!1,y=!1,g=[],x=[];for(;!this.tokenizer.endOfFile();){if(u=this.tokenizer.nextToken(),c=u[0],c==="("||c==="["?x.push(c==="("?")":"]"):c==="{"&&x.length>0?x.push("}"):c===x[x.length-1]&&x.pop(),x.length===0)if(c===";"){p.source.end=this.getPosition(u[2]),p.source.end.offset++,this.semicolon=!0;break}else if(c==="{"){y=!0;break}else if(c==="}"){if(g.length>0){for(h=g.length-1,f=g[h];f&&f[0]==="space";)f=g[--h];f&&(p.source.end=this.getPosition(f[3]||f[2]),p.source.end.offset++)}this.end(u);break}else g.push(u);else g.push(u);if(this.tokenizer.endOfFile()){m=!0;break}}p.raws.between=this.spacesAndCommentsFromEnd(g),g.length?(p.raws.afterName=this.spacesAndCommentsFromStart(g),this.raw(p,"params",g),m&&(u=g[g.length-1],p.source.end=this.getPosition(u[3]||u[2]),p.source.end.offset++,this.spaces=p.raws.between,p.raws.between="")):(p.raws.afterName="",p.params=""),y&&(p.nodes=[],this.current=p)}checkMissedSemicolon(u){let p=this.colon(u);if(p===!1)return;let c=0,f;for(let h=p-1;h>=0&&(f=u[h],!(f[0]!=="space"&&(c+=1,c===2)));h--);throw this.input.error("Missed semicolon",f[0]==="word"?f[3]+1:f[2])}colon(u){let p=0,c,f,h;for(let[m,y]of u.entries()){if(c=y,f=c[0],f==="("&&(p+=1),f===")"&&(p-=1),p===0&&f===":")if(!h)this.doubleColon(c);else{if(h[0]==="word"&&h[1]==="progid")continue;return m}h=c}return!1}comment(u){let p=new r;this.init(p,u[2]),p.source.end=this.getPosition(u[3]||u[2]),p.source.end.offset++;let c=u[1].slice(2,-2);if(/^\s*$/.test(c))p.text="",p.raws.left=c,p.raws.right="";else{let f=c.match(/^(\s*)([^]*\S)(\s*)$/);p.text=f[2],p.raws.left=f[1],p.raws.right=f[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(u,p){let c=new e;this.init(c,u[0][2]);let f=u[u.length-1];for(f[0]===";"&&(this.semicolon=!0,u.pop()),c.source.end=this.getPosition(f[3]||f[2]||l(u)),c.source.end.offset++;u[0][0]!=="word";)u.length===1&&this.unknownWord(u),c.raws.before+=u.shift()[1];for(c.source.start=this.getPosition(u[0][2]),c.prop="";u.length;){let x=u[0][0];if(x===":"||x==="space"||x==="comment")break;c.prop+=u.shift()[1]}c.raws.between="";let h;for(;u.length;)if(h=u.shift(),h[0]===":"){c.raws.between+=h[1];break}else h[0]==="word"&&/\w/.test(h[1])&&this.unknownWord([h]),c.raws.between+=h[1];(c.prop[0]==="_"||c.prop[0]==="*")&&(c.raws.before+=c.prop[0],c.prop=c.prop.slice(1));let m=[],y;for(;u.length&&(y=u[0][0],!(y!=="space"&&y!=="comment"));)m.push(u.shift());this.precheckMissedSemicolon(u);for(let x=u.length-1;x>=0;x--){if(h=u[x],h[1].toLowerCase()==="!important"){c.important=!0;let v=this.stringFrom(u,x);v=this.spacesFromEnd(u)+v,v!==" !important"&&(c.raws.important=v);break}else if(h[1].toLowerCase()==="important"){let v=u.slice(0),S="";for(let b=x;b>0;b--){let w=v[b][0];if(S.trim().indexOf("!")===0&&w!=="space")break;S=v.pop()[1]+S}S.trim().indexOf("!")===0&&(c.important=!0,c.raws.important=S,u=v)}if(h[0]!=="space"&&h[0]!=="comment")break}u.some(x=>x[0]!=="space"&&x[0]!=="comment")&&(c.raws.between+=m.map(x=>x[1]).join(""),m=[]),this.raw(c,"value",m.concat(u),p),c.value.includes(":")&&!p&&this.checkMissedSemicolon(u)}doubleColon(u){throw this.input.error("Double colon",{offset:u[2]},{offset:u[2]+u[1].length})}emptyRule(u){let p=new o;this.init(p,u[2]),p.selector="",p.raws.between="",this.current=p}end(u){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(u[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(u)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(u){if(this.spaces+=u[1],this.current.nodes){let p=this.current.nodes[this.current.nodes.length-1];p&&p.type==="rule"&&!p.raws.ownSemicolon&&(p.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(u){let p=this.input.fromOffset(u);return{column:p.col,line:p.line,offset:u}}init(u,p){this.current.push(u),u.source={input:this.input,start:this.getPosition(p)},u.raws.before=this.spaces,this.spaces="",u.type!=="comment"&&(this.semicolon=!1)}other(u){let p=!1,c=null,f=!1,h=null,m=[],y=u[1].startsWith("--"),g=[],x=u;for(;x;){if(c=x[0],g.push(x),c==="("||c==="[")h||(h=x),m.push(c==="("?")":"]");else if(y&&f&&c==="{")h||(h=x),m.push("}");else if(m.length===0)if(c===";")if(f){this.decl(g,y);return}else break;else if(c==="{"){this.rule(g);return}else if(c==="}"){this.tokenizer.back(g.pop()),p=!0;break}else c===":"&&(f=!0);else c===m[m.length-1]&&(m.pop(),m.length===0&&(h=null));x=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(p=!0),m.length>0&&this.unclosedBracket(h),p&&f){if(!y)for(;g.length&&(x=g[g.length-1][0],!(x!=="space"&&x!=="comment"));)this.tokenizer.back(g.pop());this.decl(g,y)}else this.unknownWord(g)}parse(){let u;for(;!this.tokenizer.endOfFile();)switch(u=this.tokenizer.nextToken(),u[0]){case"space":this.spaces+=u[1];break;case";":this.freeSemicolon(u);break;case"}":this.end(u);break;case"comment":this.comment(u);break;case"at-word":this.atrule(u);break;case"{":this.emptyRule(u);break;default:this.other(u);break}this.endFile()}precheckMissedSemicolon(){}raw(u,p,c,f){let h,m,y=c.length,g="",x=!0,v,S;for(let b=0;b<y;b+=1)h=c[b],m=h[0],m==="space"&&b===y-1&&!f?x=!1:m==="comment"?(S=c[b-1]?c[b-1][0]:"empty",v=c[b+1]?c[b+1][0]:"empty",!s[S]&&!s[v]?g.slice(-1)===","?x=!1:g+=h[1]:x=!1):g+=h[1];if(!x){let b=c.reduce((w,C)=>w+C[1],"");u.raws[p]={raw:b,value:g}}u[p]=g}rule(u){u.pop();let p=new o;this.init(p,u[0][2]),p.raws.between=this.spacesAndCommentsFromEnd(u),this.raw(p,"selector",u),this.current=p}spacesAndCommentsFromEnd(u){let p,c="";for(;u.length&&(p=u[u.length-1][0],!(p!=="space"&&p!=="comment"));)c=u.pop()[1]+c;return c}spacesAndCommentsFromStart(u){let p,c="";for(;u.length&&(p=u[0][0],!(p!=="space"&&p!=="comment"));)c+=u.shift()[1];return c}spacesFromEnd(u){let p,c="";for(;u.length&&(p=u[u.length-1][0],p==="space");)c=u.pop()[1]+c;return c}stringFrom(u,p){let c="";for(let f=p;f<u.length;f++)c+=u[f][1];return u.splice(p,u.length-p),c}unclosedBlock(){let u=this.current.source.start;throw this.input.error("Unclosed block",u.line,u.column)}unclosedBracket(u){throw this.input.error("Unclosed bracket",{offset:u[2]},{offset:u[2]+1})}unexpectedClose(u){throw this.input.error("Unexpected }",{offset:u[2]},{offset:u[2]+1})}unknownWord(u){throw this.input.error("Unknown word",{offset:u[0][2]},{offset:u[0][2]+u[0][1].length})}unnamedAtrule(u,p){throw this.input.error("At-rule without name",{offset:p[2]},{offset:p[2]+p[1].length})}}return Gf=i,Gf}var Xf,yy;function Gp(){if(yy)return Xf;yy=1;let e=Qn(),t=pL(),r=au();function n(a,o){let s=new r(a,o),l=new t(s);try{l.parse()}catch(i){throw i}return l.root}return Xf=n,n.default=n,e.registerParse(n),Xf}var Kf,wy;function yw(){if(wy)return Kf;wy=1;let{isClean:e,my:t}=$p(),r=hw(),n=tu(),a=Qn(),o=Hp(),s=gw(),l=jp(),i=Gp(),d=xs(),u={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},p={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},c={Once:!0,postcssPlugin:!0,prepare:!0},f=0;function h(S){return typeof S=="object"&&typeof S.then=="function"}function m(S){let b=!1,w=u[S.type];return S.type==="decl"?b=S.prop.toLowerCase():S.type==="atrule"&&(b=S.name.toLowerCase()),b&&S.append?[w,w+"-"+b,f,w+"Exit",w+"Exit-"+b]:b?[w,w+"-"+b,w+"Exit",w+"Exit-"+b]:S.append?[w,f,w+"Exit"]:[w,w+"Exit"]}function y(S){let b;return S.type==="document"?b=["Document",f,"DocumentExit"]:S.type==="root"?b=["Root",f,"RootExit"]:b=m(S),{eventIndex:0,events:b,iterator:0,node:S,visitorIndex:0,visitors:[]}}function g(S){return S[e]=!1,S.nodes&&S.nodes.forEach(b=>g(b)),S}let x={};class v{constructor(b,w,C){this.stringified=!1,this.processed=!1;let L;if(typeof w=="object"&&w!==null&&(w.type==="root"||w.type==="document"))L=g(w);else if(w instanceof v||w instanceof l)L=g(w.root),w.map&&(typeof C.map>"u"&&(C.map={}),C.map.inline||(C.map.inline=!1),C.map.prev=w.map);else{let k=i;C.syntax&&(k=C.syntax.parse),C.parser&&(k=C.parser),k.parse&&(k=k.parse);try{L=k(w,C)}catch(_){this.processed=!0,this.error=_}L&&!L[t]&&a.rebuild(L)}this.result=new l(b,L,C),this.helpers={...x,postcss:x,result:this.result},this.plugins=this.processor.plugins.map(k=>typeof k=="object"&&k.prepare?{...k,...k.prepare(this.result)}:k)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(b){return this.async().catch(b)}finally(b){return this.async().then(b,b)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(b,w){let C=this.result.lastPlugin;try{w&&w.addToError(b),this.error=b,b.name==="CssSyntaxError"&&!b.plugin?(b.plugin=C.postcssPlugin,b.setMessage()):C.postcssVersion}catch(L){console&&console.error&&console.error(L)}return b}prepareVisitors(){this.listeners={};let b=(w,C,L)=>{this.listeners[C]||(this.listeners[C]=[]),this.listeners[C].push([w,L])};for(let w of this.plugins)if(typeof w=="object")for(let C in w){if(!p[C]&&/^[A-Z]/.test(C))throw new Error(`Unknown event ${C} in ${w.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!c[C])if(typeof w[C]=="object")for(let L in w[C])L==="*"?b(w,C,w[C][L]):b(w,C+"-"+L.toLowerCase(),w[C][L]);else typeof w[C]=="function"&&b(w,C,w[C])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let b=0;b<this.plugins.length;b++){let w=this.plugins[b],C=this.runOnRoot(w);if(h(C))try{await C}catch(L){throw this.handleError(L)}}if(this.prepareVisitors(),this.hasListener){let b=this.result.root;for(;!b[e];){b[e]=!0;let w=[y(b)];for(;w.length>0;){let C=this.visitTick(w);if(h(C))try{await C}catch(L){let k=w[w.length-1].node;throw this.handleError(L,k)}}}if(this.listeners.OnceExit)for(let[w,C]of this.listeners.OnceExit){this.result.lastPlugin=w;try{if(b.type==="document"){let L=b.nodes.map(k=>C(k,this.helpers));await Promise.all(L)}else await C(b,this.helpers)}catch(L){throw this.handleError(L)}}}return this.processed=!0,this.stringify()}runOnRoot(b){this.result.lastPlugin=b;try{if(typeof b=="object"&&b.Once){if(this.result.root.type==="document"){let w=this.result.root.nodes.map(C=>b.Once(C,this.helpers));return h(w[0])?Promise.all(w):w}return b.Once(this.result.root,this.helpers)}else if(typeof b=="function")return b(this.result.root,this.result)}catch(w){throw this.handleError(w)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let b=this.result.opts,w=n;b.syntax&&(w=b.syntax.stringify),b.stringifier&&(w=b.stringifier),w.stringify&&(w=w.stringify);let L=new r(w,this.result.root,this.result.opts).generate();return this.result.css=L[0],this.result.map=L[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let b of this.plugins){let w=this.runOnRoot(b);if(h(w))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let b=this.result.root;for(;!b[e];)b[e]=!0,this.walkSync(b);if(this.listeners.OnceExit)if(b.type==="document")for(let w of b.nodes)this.visitSync(this.listeners.OnceExit,w);else this.visitSync(this.listeners.OnceExit,b)}return this.result}then(b,w){return this.async().then(b,w)}toString(){return this.css}visitSync(b,w){for(let[C,L]of b){this.result.lastPlugin=C;let k;try{k=L(w,this.helpers)}catch(_){throw this.handleError(_,w.proxyOf)}if(w.type!=="root"&&w.type!=="document"&&!w.parent)return!0;if(h(k))throw this.getAsyncError()}}visitTick(b){let w=b[b.length-1],{node:C,visitors:L}=w;if(C.type!=="root"&&C.type!=="document"&&!C.parent){b.pop();return}if(L.length>0&&w.visitorIndex<L.length){let[_,N]=L[w.visitorIndex];w.visitorIndex+=1,w.visitorIndex===L.length&&(w.visitors=[],w.visitorIndex=0),this.result.lastPlugin=_;try{return N(C.toProxy(),this.helpers)}catch(P){throw this.handleError(P,C)}}if(w.iterator!==0){let _=w.iterator,N;for(;N=C.nodes[C.indexes[_]];)if(C.indexes[_]+=1,!N[e]){N[e]=!0,b.push(y(N));return}w.iterator=0,delete C.indexes[_]}let k=w.events;for(;w.eventIndex<k.length;){let _=k[w.eventIndex];if(w.eventIndex+=1,_===f){C.nodes&&C.nodes.length&&(C[e]=!0,w.iterator=C.getIterator());return}else if(this.listeners[_]){w.visitors=this.listeners[_];return}}b.pop()}walkSync(b){b[e]=!0;let w=m(b);for(let C of w)if(C===f)b.nodes&&b.each(L=>{L[e]||this.walkSync(L)});else{let L=this.listeners[C];if(L&&this.visitSync(L,b.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}return v.registerPostcss=S=>{x=S},Kf=v,v.default=v,d.registerLazyResult(v),o.registerLazyResult(v),Kf}var Qf,by;function mL(){if(by)return Qf;by=1;let e=hw(),t=tu(),r=gw(),n=Gp(),a=jp();class o{constructor(l,i,d){i=i.toString(),this.stringified=!1,this._processor=l,this._css=i,this._opts=d,this._map=void 0;let u,p=t;this.result=new a(this._processor,u,this._opts),this.result.css=i;let c=this;Object.defineProperty(this.result,"root",{get(){return c.root}});let f=new e(p,u,this._opts,i);if(f.isMap()){let[h,m]=f.generate();h&&(this.result.css=h),m&&(this.result.map=m)}else f.clearAnnotation(),this.result.css=f.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(l){return this.async().catch(l)}finally(l){return this.async().then(l,l)}sync(){if(this.error)throw this.error;return this.result}then(l,i){return this.async().then(l,i)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let l,i=n;try{l=i(this._css,this._opts)}catch(d){this.error=d}if(this.error)throw this.error;return this._root=l,l}get[Symbol.toStringTag](){return"NoWorkResult"}}return Qf=o,o.default=o,Qf}var Yf,Sy;function hL(){if(Sy)return Yf;Sy=1;let e=mL(),t=yw(),r=Hp(),n=xs();class a{constructor(s=[]){this.version="8.4.38",this.plugins=this.normalize(s)}normalize(s){let l=[];for(let i of s)if(i.postcss===!0?i=i():i.postcss&&(i=i.postcss),typeof i=="object"&&Array.isArray(i.plugins))l=l.concat(i.plugins);else if(typeof i=="object"&&i.postcssPlugin)l.push(i);else if(typeof i=="function")l.push(i);else if(!(typeof i=="object"&&(i.parse||i.stringify)))throw new Error(i+" is not a PostCSS plugin");return l}process(s,l={}){return!this.plugins.length&&!l.parser&&!l.stringifier&&!l.syntax?new e(this,s,l):new t(this,s,l)}use(s){return this.plugins=this.plugins.concat(this.normalize([s])),this}}return Yf=a,a.default=a,n.registerProcessor(a),r.registerProcessor(a),Yf}var Jf,Cy;function gL(){if(Cy)return Jf;Cy=1;let e=nu(),t=mw(),r=ou(),n=Wp(),a=au(),o=xs(),s=Vp();function l(i,d){if(Array.isArray(i))return i.map(c=>l(c));let{inputs:u,...p}=i;if(u){d=[];for(let c of u){let f={...c,__proto__:a.prototype};f.map&&(f.map={...f.map,__proto__:t.prototype}),d.push(f)}}if(p.nodes&&(p.nodes=i.nodes.map(c=>l(c,d))),p.source){let{inputId:c,...f}=p.source;p.source=f,c!=null&&(p.source.input=d[c])}if(p.type==="root")return new o(p);if(p.type==="decl")return new e(p);if(p.type==="rule")return new s(p);if(p.type==="comment")return new r(p);if(p.type==="atrule")return new n(p);throw new Error("Unknown node type: "+i.type)}return Jf=l,l.default=l,Jf}var Zf,Ly;function xL(){if(Ly)return Zf;Ly=1;let e=qp(),t=nu(),r=yw(),n=Qn(),a=hL(),o=tu(),s=gL(),l=Hp(),i=xw(),d=ou(),u=Wp(),p=jp(),c=au(),f=Gp(),h=vw(),m=Vp(),y=xs(),g=ru();function x(...v){return v.length===1&&Array.isArray(v[0])&&(v=v[0]),new a(v)}return x.plugin=function(S,b){let w=!1;function C(...k){console&&console.warn&&!w&&(w=!0,console.warn(S+`: postcss.plugin was deprecated. Migration guide:
|
|
58
58
|
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(S+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
|
|
59
|
-
https://www.w3ctech.com/topic/2226`));let I=y(..._);return I.postcssPlugin=S,I.postcssVersion=new a().version,I}let C;return Object.defineProperty(L,"postcss",{get(){return C||(C=L()),C}}),L.process=function(_,I,D){return x([L(D)]).process(_,I)},L},x.stringify=o,x.parse=f,x.fromJSON=s,x.list=h,x.comment=v=>new d(v),x.atRule=v=>new u(v),x.decl=v=>new t(v),x.rule=v=>new m(v),x.root=v=>new b(v),x.document=v=>new i(v),x.CssSyntaxError=e,x.Declaration=t,x.Container=n,x.Processor=a,x.Document=i,x.Comment=d,x.Warning=l,x.AtRule=u,x.Result=p,x.Input=c,x.Rule=m,x.Root=b,x.Node=g,r.registerPostcss(x),Qf=x,x.default=x,Qf}var cL=dL(),Be=ZC(cL);Be.stringify;Be.fromJSON;Be.plugin;Be.parse;Be.list;Be.document;Be.comment;Be.atRule;Be.rule;Be.decl;Be.root;Be.CssSyntaxError;Be.Declaration;Be.Container;Be.Processor;Be.Document;Be.Comment;Be.Warning;Be.AtRule;Be.Result;Be.Input;Be.Rule;Be.Root;Be.Node;var ce=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(ce||{});function fL(e){let t={},r=/;(?![^(]*\))/g,n=/:(.+)/,a=/\/\*.*?\*\//g;return e.replace(a,"").split(r).forEach(function(o){if(o){let s=o.split(n);s.length>1&&(t[ap(s[0].trim())]=s[1].trim())}}),t}function wy(e){let t=[];for(let r in e){let n=e[r];if(typeof n!="string")continue;let a=gL(r);t.push(`${a}: ${n};`)}return t.join(" ")}var pL=/-([a-z])/g,mL=/^--[a-zA-Z0-9-]+$/,ap=e=>mL.test(e)?e:e.replace(pL,(t,r)=>r?r.toUpperCase():""),hL=/\B([A-Z])/g,gL=e=>e.replace(hL,"-$1").toLowerCase(),vr=class e{constructor(...t){z(this,"parentElement",null),z(this,"parentNode",null),z(this,"ownerDocument"),z(this,"firstChild",null),z(this,"lastChild",null),z(this,"previousSibling",null),z(this,"nextSibling",null),z(this,"ELEMENT_NODE",1),z(this,"TEXT_NODE",3),z(this,"nodeType"),z(this,"nodeName"),z(this,"RRNodeType")}get childNodes(){let t=[],r=this.firstChild;for(;r;)t.push(r),r=r.nextSibling;return t}contains(t){if(t instanceof e){if(t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0}else return!1;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1}appendChild(t){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(t,r){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(t){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}},op=class e extends vr{constructor(...t){super(t),z(this,"nodeType",9),z(this,"nodeName","#document"),z(this,"compatMode","CSS1Compat"),z(this,"RRNodeType",ce.Document),z(this,"textContent",null),this.ownerDocument=this}get documentElement(){return this.childNodes.find(t=>t.RRNodeType===ce.Element&&t.tagName==="HTML")||null}get body(){var t;return((t=this.documentElement)==null?void 0:t.childNodes.find(r=>r.RRNodeType===ce.Element&&r.tagName==="BODY"))||null}get head(){var t;return((t=this.documentElement)==null?void 0:t.childNodes.find(r=>r.RRNodeType===ce.Element&&r.tagName==="HEAD"))||null}get implementation(){return this}get firstElementChild(){return this.documentElement}appendChild(t){let r=t.RRNodeType;if((r===ce.Element||r===ce.DocumentType)&&this.childNodes.some(a=>a.RRNodeType===r))throw new Error(`RRDomException: Failed to execute 'appendChild' on 'RRNode': Only one ${r===ce.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);let n=jp(this,t);return n.parentElement=null,n}insertBefore(t,r){let n=t.RRNodeType;if((n===ce.Element||n===ce.DocumentType)&&this.childNodes.some(o=>o.RRNodeType===n))throw new Error(`RRDomException: Failed to execute 'insertBefore' on 'RRNode': Only one ${n===ce.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);let a=hw(this,t,r);return a.parentElement=null,a}removeChild(t){return gw(this,t)}open(){this.firstChild=null,this.lastChild=null}close(){}write(t){let r;if(t==='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'?r="-//W3C//DTD XHTML 1.0 Transitional//EN":t==='<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">'&&(r="-//W3C//DTD HTML 4.0 Transitional//EN"),r){let n=this.createDocumentType("html",r,"");this.open(),this.appendChild(n)}}createDocument(t,r,n){return new e}createDocumentType(t,r,n){let a=new Al(t,r,n);return a.ownerDocument=this,a}createElement(t){let r=new Qa(t);return r.ownerDocument=this,r}createElementNS(t,r){return this.createElement(r)}createTextNode(t){let r=new Dl(t);return r.ownerDocument=this,r}createComment(t){let r=new Ol(t);return r.ownerDocument=this,r}createCDATASection(t){let r=new Fl(t);return r.ownerDocument=this,r}toString(){return"RRDocument"}},Al=class extends vr{constructor(t,r,n){super(),z(this,"nodeType",10),z(this,"RRNodeType",ce.DocumentType),z(this,"name"),z(this,"publicId"),z(this,"systemId"),z(this,"textContent",null),this.name=t,this.publicId=r,this.systemId=n,this.nodeName=t}toString(){return"RRDocumentType"}},Qa=class extends vr{constructor(t){super(),z(this,"nodeType",1),z(this,"RRNodeType",ce.Element),z(this,"tagName"),z(this,"attributes",{}),z(this,"shadowRoot",null),z(this,"scrollLeft"),z(this,"scrollTop"),this.tagName=t.toUpperCase(),this.nodeName=t.toUpperCase()}get textContent(){let t="";return this.childNodes.forEach(r=>t+=r.textContent),t}set textContent(t){this.firstChild=null,this.lastChild=null,this.appendChild(this.ownerDocument.createTextNode(t))}get classList(){return new lp(this.attributes.class,t=>{this.attributes.class=t})}get id(){return this.attributes.id||""}get className(){return this.attributes.class||""}get style(){let t=this.attributes.style?fL(this.attributes.style):{},r=/\B([A-Z])/g;return t.setProperty=(n,a,o)=>{if(r.test(n))return;let s=ap(n);a?t[s]=a:delete t[s],o==="important"&&(t[s]+=" !important"),this.attributes.style=wy(t)},t.removeProperty=n=>{if(r.test(n))return"";let a=ap(n),o=t[a]||"";return delete t[a],this.attributes.style=wy(t),o},t}getAttribute(t){return this.attributes[t]===void 0?null:this.attributes[t]}setAttribute(t,r){this.attributes[t]=r}setAttributeNS(t,r,n){this.setAttribute(r,n)}removeAttribute(t){delete this.attributes[t]}appendChild(t){return jp(this,t)}insertBefore(t,r){return hw(this,t,r)}removeChild(t){return gw(this,t)}attachShadow(t){let r=this.ownerDocument.createElement("SHADOWROOT");return this.shadowRoot=r,r}dispatchEvent(t){return!0}toString(){let t="";for(let r in this.attributes)t+=`${r}="${this.attributes[r]}" `;return`${this.tagName} ${t}`}},sp=class extends Qa{constructor(){super(...arguments),z(this,"currentTime"),z(this,"volume"),z(this,"paused"),z(this,"muted"),z(this,"playbackRate"),z(this,"loop")}attachShadow(t){throw new Error("RRDomException: Failed to execute 'attachShadow' on 'RRElement': This RRElement does not support attachShadow")}play(){this.paused=!1}pause(){this.paused=!0}},ip=class extends Qa{constructor(){super(...arguments),z(this,"tagName","DIALOG"),z(this,"nodeName","DIALOG")}get isModal(){return this.getAttribute("rr_open_mode")==="modal"}get open(){return this.getAttribute("open")!==null}close(){this.removeAttribute("open"),this.removeAttribute("rr_open_mode")}show(){this.setAttribute("open",""),this.setAttribute("rr_open_mode","non-modal")}showModal(){this.setAttribute("open",""),this.setAttribute("rr_open_mode","modal")}},Dl=class extends vr{constructor(t){super(),z(this,"nodeType",3),z(this,"nodeName","#text"),z(this,"RRNodeType",ce.Text),z(this,"data"),this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}toString(){return`RRText text=${JSON.stringify(this.data)}`}},Ol=class extends vr{constructor(t){super(),z(this,"nodeType",8),z(this,"nodeName","#comment"),z(this,"RRNodeType",ce.Comment),z(this,"data"),this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}toString(){return`RRComment text=${JSON.stringify(this.data)}`}},Fl=class extends vr{constructor(t){super(),z(this,"nodeName","#cdata-section"),z(this,"nodeType",4),z(this,"RRNodeType",ce.CDATA),z(this,"data"),this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}toString(){return`RRCDATASection data=${JSON.stringify(this.data)}`}},lp=class{constructor(t,r){if(z(this,"onChange"),z(this,"classes",[]),z(this,"add",(...n)=>{for(let a of n){let o=String(a);this.classes.indexOf(o)>=0||this.classes.push(o)}this.onChange&&this.onChange(this.classes.join(" "))}),z(this,"remove",(...n)=>{this.classes=this.classes.filter(a=>n.indexOf(a)===-1),this.onChange&&this.onChange(this.classes.join(" "))}),t){let n=t.trim().split(/\s+/);this.classes.push(...n)}this.onChange=r}};function jp(e,t){return t.parentNode&&t.parentNode.removeChild(t),e.lastChild?(e.lastChild.nextSibling=t,t.previousSibling=e.lastChild):(e.firstChild=t,t.previousSibling=null),e.lastChild=t,t.nextSibling=null,t.parentNode=e,t.parentElement=e,t.ownerDocument=e.ownerDocument,t}function hw(e,t,r){if(!r)return jp(e,t);if(r.parentNode!==e)throw new Error("Failed to execute 'insertBefore' on 'RRNode': The RRNode before which the new node is to be inserted is not a child of this RRNode.");return t===r||(t.parentNode&&t.parentNode.removeChild(t),t.previousSibling=r.previousSibling,r.previousSibling=t,t.nextSibling=r,t.previousSibling?t.previousSibling.nextSibling=t:e.firstChild=t,t.parentElement=e,t.parentNode=e,t.ownerDocument=e.ownerDocument),t}function gw(e,t){if(t.parentNode!==e)throw new Error("Failed to execute 'removeChild' on 'RRNode': The RRNode to be removed is not a child of this RRNode.");return t.previousSibling?t.previousSibling.nextSibling=t.nextSibling:e.firstChild=t.nextSibling,t.nextSibling?t.nextSibling.previousSibling=t.previousSibling:e.lastChild=t.previousSibling,t.previousSibling=null,t.nextSibling=null,t.parentElement=null,t.parentNode=null,t}var $t=(e=>(e[e.PLACEHOLDER=0]="PLACEHOLDER",e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",e[e.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",e[e.ENTITY_NODE=6]="ENTITY_NODE",e[e.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE",e[e.DOCUMENT_NODE=9]="DOCUMENT_NODE",e[e.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",e[e.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE",e))($t||{}),up={svg:"http://www.w3.org/2000/svg","xlink:href":"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/2000/xmlns/"},xL={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient"},Rr=null;function Bl(e,t,r,n=t.mirror||t.ownerDocument.mirror){e=vL(e,t,r,n),xw(e,t,r,n),yL(e,t,r)}function vL(e,t,r,n){var a;if(r.afterAppend&&!Rr&&(Rr=new WeakSet,setTimeout(()=>{Rr=null},0)),!Vp(e,t)){let o=zl(t,r.mirror,n);(a=e.parentNode)==null||a.replaceChild(o,e),e=o}switch(t.RRNodeType){case ce.Document:{if(!Ha(e,t,r.mirror,n)){let o=n.getMeta(t);o&&(r.mirror.removeNodeFromMap(e),e.close(),e.open(),r.mirror.add(e,o),Rr?.add(e))}break}case ce.Element:{let o=e,s=t;switch(s.tagName){case"IFRAME":{let i=e.contentDocument;if(!i)break;Bl(i,t.contentDocument,r,n);break}}s.shadowRoot&&(o.shadowRoot||o.attachShadow({mode:"open"}),xw(o.shadowRoot,s.shadowRoot,r,n)),wL(o,s,n);break}}return e}function yL(e,t,r){var n;switch(t.RRNodeType){case ce.Document:{let a=t.scrollData;a&&r.applyScroll(a,!0);break}case ce.Element:{let a=e,o=t;switch(o.scrollData&&r.applyScroll(o.scrollData,!0),o.inputData&&r.applyInput(o.inputData),o.tagName){case"AUDIO":case"VIDEO":{let s=e,i=o;i.paused!==void 0&&(i.paused?s.pause():s.play()),i.muted!==void 0&&(s.muted=i.muted),i.volume!==void 0&&(s.volume=i.volume),i.currentTime!==void 0&&(s.currentTime=i.currentTime),i.playbackRate!==void 0&&(s.playbackRate=i.playbackRate),i.loop!==void 0&&(s.loop=i.loop);break}case"CANVAS":{let s=t;if(s.rr_dataURL!==null){let i=document.createElement("img");i.onload=()=>{let l=a.getContext("2d");l&&l.drawImage(i,0,0,i.width,i.height)},i.src=s.rr_dataURL}s.canvasMutations.forEach(i=>r.applyCanvas(i.event,i.mutation,e));break}case"STYLE":{let s=a.sheet;s&&t.rules.forEach(i=>r.applyStyleSheetMutation(i,s));break}case"DIALOG":{let s=a,i=o,l=s.open,d=s.matches("dialog:modal"),u=i.open,p=i.isModal,c=d!==p,f=l!==u;if((c||l&&f)&&s.close(),u&&(f||c))try{p?s.showModal():s.show()}catch(h){console.warn(h)}break}}break}case ce.Text:case ce.Comment:case ce.CDATA:{e.textContent!==t.data&&(e.textContent=t.data);break}}Rr?.has(e)&&(Rr.delete(e),(n=r.afterAppend)==null||n.call(r,e,r.mirror.getId(e)))}function wL(e,t,r){let n=e.attributes,a=t.attributes;for(let o in a){let s=a[o],i=r.getMeta(t);if(i?.isSVG&&up[o])e.setAttributeNS(up[o],o,s);else if(t.tagName==="CANVAS"&&o==="rr_dataURL"){let l=document.createElement("img");l.src=s,l.onload=()=>{let d=e.getContext("2d");d&&d.drawImage(l,0,0,l.width,l.height)}}else{if(t.tagName==="IFRAME"&&o==="srcdoc")continue;try{e.setAttribute(o,s)}catch(l){console.warn(l)}}}for(let{name:o}of Array.from(n))o in a||e.removeAttribute(o);t.scrollLeft&&(e.scrollLeft=t.scrollLeft),t.scrollTop&&(e.scrollTop=t.scrollTop)}function xw(e,t,r,n){let a=Array.from(e.childNodes),o=t.childNodes;if(a.length===0&&o.length===0)return;let s=0,i=a.length-1,l=0,d=o.length-1,u=a[s],p=a[i],c=o[l],f=o[d],h,m;for(;s<=i&&l<=d;)if(u===void 0)u=a[++s];else if(p===void 0)p=a[--i];else if(Ha(u,c,r.mirror,n))u=a[++s],c=o[++l];else if(Ha(p,f,r.mirror,n))p=a[--i],f=o[--d];else if(Ha(u,f,r.mirror,n)){try{e.insertBefore(u,p.nextSibling)}catch(x){console.warn(x)}u=a[++s],f=o[--d]}else if(Ha(p,c,r.mirror,n)){try{e.insertBefore(p,u)}catch(x){console.warn(x)}p=a[--i],c=o[++l]}else{if(!h){h={};for(let v=s;v<=i;v++){let S=a[v];S&&r.mirror.hasNode(S)&&(h[r.mirror.getId(S)]=v)}}m=h[n.getId(c)];let x=a[m];if(m!==void 0&&x&&Ha(x,c,r.mirror,n)){try{e.insertBefore(x,u)}catch(v){console.warn(v)}a[m]=void 0}else{let v=zl(c,r.mirror,n);e.nodeName==="#document"&&u&&(v.nodeType===v.DOCUMENT_TYPE_NODE&&u.nodeType===u.DOCUMENT_TYPE_NODE||v.nodeType===v.ELEMENT_NODE&&u.nodeType===u.ELEMENT_NODE)&&(e.removeChild(u),r.mirror.removeNodeFromMap(u),u=a[++s]);try{e.insertBefore(v,u||null)}catch(S){console.warn(S)}}c=o[++l]}if(s>i){let x=o[d+1],v=null;for(x&&(v=r.mirror.getNode(n.getId(x)));l<=d;++l){let S=zl(o[l],r.mirror,n);try{e.insertBefore(S,v)}catch(y){console.warn(y)}}}else if(l>d)for(;s<=i;s++){let x=a[s];if(!(!x||x.parentNode!==e))try{e.removeChild(x),r.mirror.removeNodeFromMap(x)}catch(v){console.warn(v)}}let b=e.firstChild,g=t.firstChild;for(;b!==null&&g!==null;)Bl(b,g,r,n),b=b.nextSibling,g=g.nextSibling}function zl(e,t,r){let n=r.getId(e),a=r.getMeta(e),o=null;if(n>-1&&(o=t.getNode(n)),o!==null&&Vp(o,e))return o;switch(e.RRNodeType){case ce.Document:o=new Document;break;case ce.DocumentType:o=document.implementation.createDocumentType(e.name,e.publicId,e.systemId);break;case ce.Element:{let s=e.tagName.toLowerCase();s=xL[s]||s,a&&"isSVG"in a&&a?.isSVG?o=document.createElementNS(up.svg,s):o=document.createElement(e.tagName);break}case ce.Text:o=document.createTextNode(e.data);break;case ce.Comment:o=document.createComment(e.data);break;case ce.CDATA:o=document.createCDATASection(e.data);break}a&&t.add(o,{...a});try{Rr?.add(o)}catch{}return o}function Vp(e,t){return e.nodeType!==t.nodeType?!1:e.nodeType!==e.ELEMENT_NODE||e.tagName.toUpperCase()===t.tagName}function Ha(e,t,r,n){let a=r.getId(e),o=n.getId(t);return a===-1||a!==o?!1:Vp(e,t)}var Ya=class e extends op{constructor(t){super(),z(this,"UNSERIALIZED_STARTING_ID",-2),z(this,"_unserializedId",this.UNSERIALIZED_STARTING_ID),z(this,"mirror",_L()),z(this,"scrollData",null),t&&(this.mirror=t)}get unserializedId(){return this._unserializedId--}createDocument(t,r,n){return new e}createDocumentType(t,r,n){let a=new bL(t,r,n);return a.ownerDocument=this,a}createElement(t){let r=t.toUpperCase(),n;switch(r){case"AUDIO":case"VIDEO":n=new dp(r);break;case"IFRAME":n=new mp(r,this.mirror);break;case"CANVAS":n=new fp(r);break;case"STYLE":n=new pp(r);break;case"DIALOG":n=new cp(r);break;default:n=new Ja(r);break}return n.ownerDocument=this,n}createComment(t){let r=new CL(t);return r.ownerDocument=this,r}createCDATASection(t){let r=new LL(t);return r.ownerDocument=this,r}createTextNode(t){let r=new SL(t);return r.ownerDocument=this,r}destroyTree(){this.firstChild=null,this.lastChild=null,this.mirror.reset()}open(){super.open(),this._unserializedId=this.UNSERIALIZED_STARTING_ID}},bL=Al,Ja=class extends Qa{constructor(){super(...arguments),z(this,"inputData",null),z(this,"scrollData",null)}},dp=class extends sp{},cp=class extends ip{},fp=class extends Ja{constructor(){super(...arguments),z(this,"rr_dataURL",null),z(this,"canvasMutations",[])}getContext(){return null}},pp=class extends Ja{constructor(){super(...arguments),z(this,"rules",[])}},mp=class extends Ja{constructor(t,r){super(t),z(this,"contentDocument",new Ya),this.contentDocument.mirror=r}},SL=Dl,CL=Ol,LL=Fl;function kL(e){return e instanceof HTMLFormElement?"FORM":e.tagName.toUpperCase()}function vw(e,t,r,n){let a;switch(e.nodeType){case $t.DOCUMENT_NODE:n&&n.nodeName==="IFRAME"?a=n.contentDocument:(a=t,a.compatMode=e.compatMode);break;case $t.DOCUMENT_TYPE_NODE:{let s=e;a=t.createDocumentType(s.name,s.publicId,s.systemId);break}case $t.ELEMENT_NODE:{let s=e,i=kL(s);a=t.createElement(i);let l=a;for(let{name:d,value:u}of Array.from(s.attributes))l.attributes[d]=u;s.scrollLeft&&(l.scrollLeft=s.scrollLeft),s.scrollTop&&(l.scrollTop=s.scrollTop);break}case $t.TEXT_NODE:a=t.createTextNode(e.textContent||"");break;case $t.CDATA_SECTION_NODE:a=t.createCDATASection(e.data);break;case $t.COMMENT_NODE:a=t.createComment(e.textContent||"");break;case $t.DOCUMENT_FRAGMENT_NODE:a=n.attachShadow({mode:"open"});break;default:return null}let o=r.getMeta(e);return t instanceof Ya&&(o||(o=yw(a,t.unserializedId),r.add(e,o)),t.mirror.add(a,{...o})),a}function IL(e,t=JC(),r=new Ya){function n(a,o){let s=vw(a,r,t,o);if(s!==null)if(o?.nodeName!=="IFRAME"&&a.nodeType!==$t.DOCUMENT_FRAGMENT_NODE&&(o?.appendChild(s),s.parentNode=o,s.parentElement=o),a.nodeName==="IFRAME"){let i=a.contentDocument;i&&n(i,s)}else(a.nodeType===$t.DOCUMENT_NODE||a.nodeType===$t.ELEMENT_NODE||a.nodeType===$t.DOCUMENT_FRAGMENT_NODE)&&(a.nodeType===$t.ELEMENT_NODE&&a.shadowRoot&&n(a.shadowRoot,s),a.childNodes.forEach(i=>n(i,s)))}return n(e,null),r}function _L(){return new hp}var hp=class{constructor(){z(this,"idNodeMap",new Map),z(this,"nodeMetaMap",new WeakMap)}getId(t){var r;return t?((r=this.getMeta(t))==null?void 0:r.id)??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){let r=this.getId(t);this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(n=>this.removeNodeFromMap(n))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){let n=r.id;this.idNodeMap.set(n,t),this.nodeMetaMap.set(t,r)}replace(t,r){let n=this.getNode(t);if(n){let a=this.nodeMetaMap.get(n);a&&this.nodeMetaMap.set(r,a)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function yw(e,t){switch(e.RRNodeType){case ce.Document:return{id:t,type:e.RRNodeType,childNodes:[]};case ce.DocumentType:{let r=e;return{id:t,type:e.RRNodeType,name:r.name,publicId:r.publicId,systemId:r.systemId}}case ce.Element:return{id:t,type:e.RRNodeType,tagName:e.tagName.toLowerCase(),attributes:{},childNodes:[]};case ce.Text:return{id:t,type:e.RRNodeType,textContent:e.textContent||""};case ce.Comment:return{id:t,type:e.RRNodeType,textContent:e.textContent||""};case ce.CDATA:return{id:t,type:e.RRNodeType,textContent:""}}}var by={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Sy={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Ll={},ww={},ML=()=>!!globalThis.Zone;function Gp(e){if(Ll[e])return Ll[e];let t=globalThis[e],r=t.prototype,n=e in by?by[e]:void 0,a=!!(n&&n.every(i=>{var l,d;return!!((d=(l=Object.getOwnPropertyDescriptor(r,i))==null?void 0:l.get)!=null&&d.toString().includes("[native code]"))})),o=e in Sy?Sy[e]:void 0,s=!!(o&&o.every(i=>{var l;return typeof r[i]=="function"&&((l=r[i])==null?void 0:l.toString().includes("[native code]"))}));if(a&&s&&!ML())return Ll[e]=t.prototype,t.prototype;try{let i=document.createElement("iframe");i.style.display="none",document.body.appendChild(i);let l=i.contentWindow;if(!l)return t.prototype;let d=l[e].prototype;if(!d)return i.remove(),r;let u=navigator.userAgent;return u.includes("Safari")&&!u.includes("Chrome")?(i.classList.add("rr-block"),i.setAttribute("__rrwebUntaintedMutationObserver",""),ww[e]=()=>i.remove()):i.remove(),Ll[e]=d}catch{return r}}var Yf={};function Gr(e,t,r){var n;let a=`${e}.${String(r)}`;if(Yf[a])return Yf[a].call(t);let o=Gp(e),s=(n=Object.getOwnPropertyDescriptor(o,r))==null?void 0:n.get;return s?(Yf[a]=s,s.call(t)):t[r]}var Jf={};function bw(e,t,r){let n=`${e}.${String(r)}`;if(Jf[n])return Jf[n].bind(t);let o=Gp(e)[r];return typeof o!="function"?t[r]:(Jf[n]=o,o.bind(t))}function RL(e){return Gr("Node",e,"ownerDocument")}function EL(e){return Gr("Node",e,"childNodes")}function PL(e){return Gr("Node",e,"parentNode")}function NL(e){return Gr("Node",e,"parentElement")}function TL(e){return Gr("Node",e,"textContent")}function AL(e,t){return bw("Node",e,"contains")(t)}function DL(e){return bw("Node",e,"getRootNode")()}function OL(e){return!e||!("host"in e)?null:Gr("ShadowRoot",e,"host")}function FL(e){return e.styleSheets}function BL(e){return!e||!("shadowRoot"in e)?null:Gr("Element",e,"shadowRoot")}function zL(e,t){return Gr("Element",e,"querySelector")(t)}function UL(e,t){return Gr("Element",e,"querySelectorAll")(t)}function Sw(){return[Gp("MutationObserver").constructor,ww.MutationObserver??(()=>{})]}var ds=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(ds=()=>new Date().getTime());function Kn(e,t,r){try{if(!(t in e))return()=>{};let n=e[t],a=r(n);return typeof a=="function"&&(a.prototype=a.prototype||{},Object.defineProperties(a,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=a,()=>{e[t]=n}}catch{return()=>{}}}var ne={ownerDocument:RL,childNodes:EL,parentNode:PL,parentElement:NL,textContent:TL,contains:AL,getRootNode:DL,host:OL,styleSheets:FL,shadowRoot:BL,querySelector:zL,querySelectorAll:UL,nowTimestamp:ds,mutationObserverCtor:Sw,patch:Kn};function Lt(e,t,r=document){let n={capture:!0,passive:!0};return r.addEventListener(e,t,n),()=>r.removeEventListener(e,t,n)}var Wa=`Please stop import mirror directly. Instead of that,\r
|
|
59
|
+
https://www.w3ctech.com/topic/2226`));let _=b(...k);return _.postcssPlugin=S,_.postcssVersion=new a().version,_}let L;return Object.defineProperty(C,"postcss",{get(){return L||(L=C()),L}}),C.process=function(k,_,N){return x([C(N)]).process(k,_)},C},x.stringify=o,x.parse=f,x.fromJSON=s,x.list=h,x.comment=v=>new d(v),x.atRule=v=>new u(v),x.decl=v=>new t(v),x.rule=v=>new m(v),x.root=v=>new y(v),x.document=v=>new l(v),x.CssSyntaxError=e,x.Declaration=t,x.Container=n,x.Processor=a,x.Document=l,x.Comment=d,x.Warning=i,x.AtRule=u,x.Result=p,x.Input=c,x.Rule=m,x.Root=y,x.Node=g,r.registerPostcss(x),Zf=x,x.default=x,Zf}var vL=xL(),Ue=sL(vL);Ue.stringify;Ue.fromJSON;Ue.plugin;Ue.parse;Ue.list;Ue.document;Ue.comment;Ue.atRule;Ue.rule;Ue.decl;Ue.root;Ue.CssSyntaxError;Ue.Declaration;Ue.Container;Ue.Processor;Ue.Document;Ue.Comment;Ue.Warning;Ue.AtRule;Ue.Result;Ue.Input;Ue.Rule;Ue.Root;Ue.Node;var pe=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(pe||{});function yL(e){let t={},r=/;(?![^(]*\))/g,n=/:(.+)/,a=/\/\*.*?\*\//g;return e.replace(a,"").split(r).forEach(function(o){if(o){let s=o.split(n);s.length>1&&(t[lp(s[0].trim())]=s[1].trim())}}),t}function ky(e){let t=[];for(let r in e){let n=e[r];if(typeof n!="string")continue;let a=CL(r);t.push(`${a}: ${n};`)}return t.join(" ")}var wL=/-([a-z])/g,bL=/^--[a-zA-Z0-9-]+$/,lp=e=>bL.test(e)?e:e.replace(wL,(t,r)=>r?r.toUpperCase():""),SL=/\B([A-Z])/g,CL=e=>e.replace(SL,"-$1").toLowerCase(),wr=class e{constructor(...t){U(this,"parentElement",null),U(this,"parentNode",null),U(this,"ownerDocument"),U(this,"firstChild",null),U(this,"lastChild",null),U(this,"previousSibling",null),U(this,"nextSibling",null),U(this,"ELEMENT_NODE",1),U(this,"TEXT_NODE",3),U(this,"nodeType"),U(this,"nodeName"),U(this,"RRNodeType")}get childNodes(){let t=[],r=this.firstChild;for(;r;)t.push(r),r=r.nextSibling;return t}contains(t){if(t instanceof e){if(t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0}else return!1;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1}appendChild(t){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(t,r){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(t){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}},ip=class e extends wr{constructor(...t){super(t),U(this,"nodeType",9),U(this,"nodeName","#document"),U(this,"compatMode","CSS1Compat"),U(this,"RRNodeType",pe.Document),U(this,"textContent",null),this.ownerDocument=this}get documentElement(){return this.childNodes.find(t=>t.RRNodeType===pe.Element&&t.tagName==="HTML")||null}get body(){var t;return((t=this.documentElement)==null?void 0:t.childNodes.find(r=>r.RRNodeType===pe.Element&&r.tagName==="BODY"))||null}get head(){var t;return((t=this.documentElement)==null?void 0:t.childNodes.find(r=>r.RRNodeType===pe.Element&&r.tagName==="HEAD"))||null}get implementation(){return this}get firstElementChild(){return this.documentElement}appendChild(t){let r=t.RRNodeType;if((r===pe.Element||r===pe.DocumentType)&&this.childNodes.some(a=>a.RRNodeType===r))throw new Error(`RRDomException: Failed to execute 'appendChild' on 'RRNode': Only one ${r===pe.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);let n=Xp(this,t);return n.parentElement=null,n}insertBefore(t,r){let n=t.RRNodeType;if((n===pe.Element||n===pe.DocumentType)&&this.childNodes.some(o=>o.RRNodeType===n))throw new Error(`RRDomException: Failed to execute 'insertBefore' on 'RRNode': Only one ${n===pe.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);let a=ww(this,t,r);return a.parentElement=null,a}removeChild(t){return bw(this,t)}open(){this.firstChild=null,this.lastChild=null}close(){}write(t){let r;if(t==='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'?r="-//W3C//DTD XHTML 1.0 Transitional//EN":t==='<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">'&&(r="-//W3C//DTD HTML 4.0 Transitional//EN"),r){let n=this.createDocumentType("html",r,"");this.open(),this.appendChild(n)}}createDocument(t,r,n){return new e}createDocumentType(t,r,n){let a=new Fi(t,r,n);return a.ownerDocument=this,a}createElement(t){let r=new eo(t);return r.ownerDocument=this,r}createElementNS(t,r){return this.createElement(r)}createTextNode(t){let r=new Bi(t);return r.ownerDocument=this,r}createComment(t){let r=new zi(t);return r.ownerDocument=this,r}createCDATASection(t){let r=new Ui(t);return r.ownerDocument=this,r}toString(){return"RRDocument"}},Fi=class extends wr{constructor(t,r,n){super(),U(this,"nodeType",10),U(this,"RRNodeType",pe.DocumentType),U(this,"name"),U(this,"publicId"),U(this,"systemId"),U(this,"textContent",null),this.name=t,this.publicId=r,this.systemId=n,this.nodeName=t}toString(){return"RRDocumentType"}},eo=class extends wr{constructor(t){super(),U(this,"nodeType",1),U(this,"RRNodeType",pe.Element),U(this,"tagName"),U(this,"attributes",{}),U(this,"shadowRoot",null),U(this,"scrollLeft"),U(this,"scrollTop"),this.tagName=t.toUpperCase(),this.nodeName=t.toUpperCase()}get textContent(){let t="";return this.childNodes.forEach(r=>t+=r.textContent),t}set textContent(t){this.firstChild=null,this.lastChild=null,this.appendChild(this.ownerDocument.createTextNode(t))}get classList(){return new cp(this.attributes.class,t=>{this.attributes.class=t})}get id(){return this.attributes.id||""}get className(){return this.attributes.class||""}get style(){let t=this.attributes.style?yL(this.attributes.style):{},r=/\B([A-Z])/g;return t.setProperty=(n,a,o)=>{if(r.test(n))return;let s=lp(n);a?t[s]=a:delete t[s],o==="important"&&(t[s]+=" !important"),this.attributes.style=ky(t)},t.removeProperty=n=>{if(r.test(n))return"";let a=lp(n),o=t[a]||"";return delete t[a],this.attributes.style=ky(t),o},t}getAttribute(t){return this.attributes[t]===void 0?null:this.attributes[t]}setAttribute(t,r){this.attributes[t]=r}setAttributeNS(t,r,n){this.setAttribute(r,n)}removeAttribute(t){delete this.attributes[t]}appendChild(t){return Xp(this,t)}insertBefore(t,r){return ww(this,t,r)}removeChild(t){return bw(this,t)}attachShadow(t){let r=this.ownerDocument.createElement("SHADOWROOT");return this.shadowRoot=r,r}dispatchEvent(t){return!0}toString(){let t="";for(let r in this.attributes)t+=`${r}="${this.attributes[r]}" `;return`${this.tagName} ${t}`}},up=class extends eo{constructor(){super(...arguments),U(this,"currentTime"),U(this,"volume"),U(this,"paused"),U(this,"muted"),U(this,"playbackRate"),U(this,"loop")}attachShadow(t){throw new Error("RRDomException: Failed to execute 'attachShadow' on 'RRElement': This RRElement does not support attachShadow")}play(){this.paused=!1}pause(){this.paused=!0}},dp=class extends eo{constructor(){super(...arguments),U(this,"tagName","DIALOG"),U(this,"nodeName","DIALOG")}get isModal(){return this.getAttribute("rr_open_mode")==="modal"}get open(){return this.getAttribute("open")!==null}close(){this.removeAttribute("open"),this.removeAttribute("rr_open_mode")}show(){this.setAttribute("open",""),this.setAttribute("rr_open_mode","non-modal")}showModal(){this.setAttribute("open",""),this.setAttribute("rr_open_mode","modal")}},Bi=class extends wr{constructor(t){super(),U(this,"nodeType",3),U(this,"nodeName","#text"),U(this,"RRNodeType",pe.Text),U(this,"data"),this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}toString(){return`RRText text=${JSON.stringify(this.data)}`}},zi=class extends wr{constructor(t){super(),U(this,"nodeType",8),U(this,"nodeName","#comment"),U(this,"RRNodeType",pe.Comment),U(this,"data"),this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}toString(){return`RRComment text=${JSON.stringify(this.data)}`}},Ui=class extends wr{constructor(t){super(),U(this,"nodeName","#cdata-section"),U(this,"nodeType",4),U(this,"RRNodeType",pe.CDATA),U(this,"data"),this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}toString(){return`RRCDATASection data=${JSON.stringify(this.data)}`}},cp=class{constructor(t,r){if(U(this,"onChange"),U(this,"classes",[]),U(this,"add",(...n)=>{for(let a of n){let o=String(a);this.classes.indexOf(o)>=0||this.classes.push(o)}this.onChange&&this.onChange(this.classes.join(" "))}),U(this,"remove",(...n)=>{this.classes=this.classes.filter(a=>n.indexOf(a)===-1),this.onChange&&this.onChange(this.classes.join(" "))}),t){let n=t.trim().split(/\s+/);this.classes.push(...n)}this.onChange=r}};function Xp(e,t){return t.parentNode&&t.parentNode.removeChild(t),e.lastChild?(e.lastChild.nextSibling=t,t.previousSibling=e.lastChild):(e.firstChild=t,t.previousSibling=null),e.lastChild=t,t.nextSibling=null,t.parentNode=e,t.parentElement=e,t.ownerDocument=e.ownerDocument,t}function ww(e,t,r){if(!r)return Xp(e,t);if(r.parentNode!==e)throw new Error("Failed to execute 'insertBefore' on 'RRNode': The RRNode before which the new node is to be inserted is not a child of this RRNode.");return t===r||(t.parentNode&&t.parentNode.removeChild(t),t.previousSibling=r.previousSibling,r.previousSibling=t,t.nextSibling=r,t.previousSibling?t.previousSibling.nextSibling=t:e.firstChild=t,t.parentElement=e,t.parentNode=e,t.ownerDocument=e.ownerDocument),t}function bw(e,t){if(t.parentNode!==e)throw new Error("Failed to execute 'removeChild' on 'RRNode': The RRNode to be removed is not a child of this RRNode.");return t.previousSibling?t.previousSibling.nextSibling=t.nextSibling:e.firstChild=t.nextSibling,t.nextSibling?t.nextSibling.previousSibling=t.previousSibling:e.lastChild=t.previousSibling,t.previousSibling=null,t.nextSibling=null,t.parentElement=null,t.parentNode=null,t}var Ht=(e=>(e[e.PLACEHOLDER=0]="PLACEHOLDER",e[e.ELEMENT_NODE=1]="ELEMENT_NODE",e[e.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",e[e.TEXT_NODE=3]="TEXT_NODE",e[e.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",e[e.ENTITY_REFERENCE_NODE=5]="ENTITY_REFERENCE_NODE",e[e.ENTITY_NODE=6]="ENTITY_NODE",e[e.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",e[e.COMMENT_NODE=8]="COMMENT_NODE",e[e.DOCUMENT_NODE=9]="DOCUMENT_NODE",e[e.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",e[e.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE",e))(Ht||{}),fp={svg:"http://www.w3.org/2000/svg","xlink:href":"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/2000/xmlns/"},LL={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient"},Er=null;function qi(e,t,r,n=t.mirror||t.ownerDocument.mirror){e=kL(e,t,r,n),Sw(e,t,r,n),IL(e,t,r)}function kL(e,t,r,n){var a;if(r.afterAppend&&!Er&&(Er=new WeakSet,setTimeout(()=>{Er=null},0)),!Kp(e,t)){let o=$i(t,r.mirror,n);(a=e.parentNode)==null||a.replaceChild(o,e),e=o}switch(t.RRNodeType){case pe.Document:{if(!Ga(e,t,r.mirror,n)){let o=n.getMeta(t);o&&(r.mirror.removeNodeFromMap(e),e.close(),e.open(),r.mirror.add(e,o),Er?.add(e))}break}case pe.Element:{let o=e,s=t;switch(s.tagName){case"IFRAME":{let l=e.contentDocument;if(!l)break;qi(l,t.contentDocument,r,n);break}}s.shadowRoot&&(o.shadowRoot||o.attachShadow({mode:"open"}),Sw(o.shadowRoot,s.shadowRoot,r,n)),_L(o,s,n);break}}return e}function IL(e,t,r){var n;switch(t.RRNodeType){case pe.Document:{let a=t.scrollData;a&&r.applyScroll(a,!0);break}case pe.Element:{let a=e,o=t;switch(o.scrollData&&r.applyScroll(o.scrollData,!0),o.inputData&&r.applyInput(o.inputData),o.tagName){case"AUDIO":case"VIDEO":{let s=e,l=o;l.paused!==void 0&&(l.paused?s.pause():s.play()),l.muted!==void 0&&(s.muted=l.muted),l.volume!==void 0&&(s.volume=l.volume),l.currentTime!==void 0&&(s.currentTime=l.currentTime),l.playbackRate!==void 0&&(s.playbackRate=l.playbackRate),l.loop!==void 0&&(s.loop=l.loop);break}case"CANVAS":{let s=t;if(s.rr_dataURL!==null){let l=document.createElement("img");l.onload=()=>{let i=a.getContext("2d");i&&i.drawImage(l,0,0,l.width,l.height)},l.src=s.rr_dataURL}s.canvasMutations.forEach(l=>r.applyCanvas(l.event,l.mutation,e));break}case"STYLE":{let s=a.sheet;s&&t.rules.forEach(l=>r.applyStyleSheetMutation(l,s));break}case"DIALOG":{let s=a,l=o,i=s.open,d=s.matches("dialog:modal"),u=l.open,p=l.isModal,c=d!==p,f=i!==u;if((c||i&&f)&&s.close(),u&&(f||c))try{p?s.showModal():s.show()}catch(h){console.warn(h)}break}}break}case pe.Text:case pe.Comment:case pe.CDATA:{e.textContent!==t.data&&(e.textContent=t.data);break}}Er?.has(e)&&(Er.delete(e),(n=r.afterAppend)==null||n.call(r,e,r.mirror.getId(e)))}function _L(e,t,r){let n=e.attributes,a=t.attributes;for(let o in a){let s=a[o],l=r.getMeta(t);if(l?.isSVG&&fp[o])e.setAttributeNS(fp[o],o,s);else if(t.tagName==="CANVAS"&&o==="rr_dataURL"){let i=document.createElement("img");i.src=s,i.onload=()=>{let d=e.getContext("2d");d&&d.drawImage(i,0,0,i.width,i.height)}}else{if(t.tagName==="IFRAME"&&o==="srcdoc")continue;try{e.setAttribute(o,s)}catch(i){console.warn(i)}}}for(let{name:o}of Array.from(n))o in a||e.removeAttribute(o);t.scrollLeft&&(e.scrollLeft=t.scrollLeft),t.scrollTop&&(e.scrollTop=t.scrollTop)}function Sw(e,t,r,n){let a=Array.from(e.childNodes),o=t.childNodes;if(a.length===0&&o.length===0)return;let s=0,l=a.length-1,i=0,d=o.length-1,u=a[s],p=a[l],c=o[i],f=o[d],h,m;for(;s<=l&&i<=d;)if(u===void 0)u=a[++s];else if(p===void 0)p=a[--l];else if(Ga(u,c,r.mirror,n))u=a[++s],c=o[++i];else if(Ga(p,f,r.mirror,n))p=a[--l],f=o[--d];else if(Ga(u,f,r.mirror,n)){try{e.insertBefore(u,p.nextSibling)}catch(x){console.warn(x)}u=a[++s],f=o[--d]}else if(Ga(p,c,r.mirror,n)){try{e.insertBefore(p,u)}catch(x){console.warn(x)}p=a[--l],c=o[++i]}else{if(!h){h={};for(let v=s;v<=l;v++){let S=a[v];S&&r.mirror.hasNode(S)&&(h[r.mirror.getId(S)]=v)}}m=h[n.getId(c)];let x=a[m];if(m!==void 0&&x&&Ga(x,c,r.mirror,n)){try{e.insertBefore(x,u)}catch(v){console.warn(v)}a[m]=void 0}else{let v=$i(c,r.mirror,n);e.nodeName==="#document"&&u&&(v.nodeType===v.DOCUMENT_TYPE_NODE&&u.nodeType===u.DOCUMENT_TYPE_NODE||v.nodeType===v.ELEMENT_NODE&&u.nodeType===u.ELEMENT_NODE)&&(e.removeChild(u),r.mirror.removeNodeFromMap(u),u=a[++s]);try{e.insertBefore(v,u||null)}catch(S){console.warn(S)}}c=o[++i]}if(s>l){let x=o[d+1],v=null;for(x&&(v=r.mirror.getNode(n.getId(x)));i<=d;++i){let S=$i(o[i],r.mirror,n);try{e.insertBefore(S,v)}catch(b){console.warn(b)}}}else if(i>d)for(;s<=l;s++){let x=a[s];if(!(!x||x.parentNode!==e))try{e.removeChild(x),r.mirror.removeNodeFromMap(x)}catch(v){console.warn(v)}}let y=e.firstChild,g=t.firstChild;for(;y!==null&&g!==null;)qi(y,g,r,n),y=y.nextSibling,g=g.nextSibling}function $i(e,t,r){let n=r.getId(e),a=r.getMeta(e),o=null;if(n>-1&&(o=t.getNode(n)),o!==null&&Kp(o,e))return o;switch(e.RRNodeType){case pe.Document:o=new Document;break;case pe.DocumentType:o=document.implementation.createDocumentType(e.name,e.publicId,e.systemId);break;case pe.Element:{let s=e.tagName.toLowerCase();s=LL[s]||s,a&&"isSVG"in a&&a?.isSVG?o=document.createElementNS(fp.svg,s):o=document.createElement(e.tagName);break}case pe.Text:o=document.createTextNode(e.data);break;case pe.Comment:o=document.createComment(e.data);break;case pe.CDATA:o=document.createCDATASection(e.data);break}a&&t.add(o,{...a});try{Er?.add(o)}catch{}return o}function Kp(e,t){return e.nodeType!==t.nodeType?!1:e.nodeType!==e.ELEMENT_NODE||e.tagName.toUpperCase()===t.tagName}function Ga(e,t,r,n){let a=r.getId(e),o=n.getId(t);return a===-1||a!==o?!1:Kp(e,t)}var to=class e extends ip{constructor(t){super(),U(this,"UNSERIALIZED_STARTING_ID",-2),U(this,"_unserializedId",this.UNSERIALIZED_STARTING_ID),U(this,"mirror",AL()),U(this,"scrollData",null),t&&(this.mirror=t)}get unserializedId(){return this._unserializedId--}createDocument(t,r,n){return new e}createDocumentType(t,r,n){let a=new ML(t,r,n);return a.ownerDocument=this,a}createElement(t){let r=t.toUpperCase(),n;switch(r){case"AUDIO":case"VIDEO":n=new pp(r);break;case"IFRAME":n=new xp(r,this.mirror);break;case"CANVAS":n=new hp(r);break;case"STYLE":n=new gp(r);break;case"DIALOG":n=new mp(r);break;default:n=new ro(r);break}return n.ownerDocument=this,n}createComment(t){let r=new EL(t);return r.ownerDocument=this,r}createCDATASection(t){let r=new NL(t);return r.ownerDocument=this,r}createTextNode(t){let r=new RL(t);return r.ownerDocument=this,r}destroyTree(){this.firstChild=null,this.lastChild=null,this.mirror.reset()}open(){super.open(),this._unserializedId=this.UNSERIALIZED_STARTING_ID}},ML=Fi,ro=class extends eo{constructor(){super(...arguments),U(this,"inputData",null),U(this,"scrollData",null)}},pp=class extends up{},mp=class extends dp{},hp=class extends ro{constructor(){super(...arguments),U(this,"rr_dataURL",null),U(this,"canvasMutations",[])}getContext(){return null}},gp=class extends ro{constructor(){super(...arguments),U(this,"rules",[])}},xp=class extends ro{constructor(t,r){super(t),U(this,"contentDocument",new to),this.contentDocument.mirror=r}},RL=Bi,EL=zi,NL=Ui;function PL(e){return e instanceof HTMLFormElement?"FORM":e.tagName.toUpperCase()}function Cw(e,t,r,n){let a;switch(e.nodeType){case Ht.DOCUMENT_NODE:n&&n.nodeName==="IFRAME"?a=n.contentDocument:(a=t,a.compatMode=e.compatMode);break;case Ht.DOCUMENT_TYPE_NODE:{let s=e;a=t.createDocumentType(s.name,s.publicId,s.systemId);break}case Ht.ELEMENT_NODE:{let s=e,l=PL(s);a=t.createElement(l);let i=a;for(let{name:d,value:u}of Array.from(s.attributes))i.attributes[d]=u;s.scrollLeft&&(i.scrollLeft=s.scrollLeft),s.scrollTop&&(i.scrollTop=s.scrollTop);break}case Ht.TEXT_NODE:a=t.createTextNode(e.textContent||"");break;case Ht.CDATA_SECTION_NODE:a=t.createCDATASection(e.data);break;case Ht.COMMENT_NODE:a=t.createComment(e.textContent||"");break;case Ht.DOCUMENT_FRAGMENT_NODE:a=n.attachShadow({mode:"open"});break;default:return null}let o=r.getMeta(e);return t instanceof to&&(o||(o=Lw(a,t.unserializedId),r.add(e,o)),t.mirror.add(a,{...o})),a}function TL(e,t=oL(),r=new to){function n(a,o){let s=Cw(a,r,t,o);if(s!==null)if(o?.nodeName!=="IFRAME"&&a.nodeType!==Ht.DOCUMENT_FRAGMENT_NODE&&(o?.appendChild(s),s.parentNode=o,s.parentElement=o),a.nodeName==="IFRAME"){let l=a.contentDocument;l&&n(l,s)}else(a.nodeType===Ht.DOCUMENT_NODE||a.nodeType===Ht.ELEMENT_NODE||a.nodeType===Ht.DOCUMENT_FRAGMENT_NODE)&&(a.nodeType===Ht.ELEMENT_NODE&&a.shadowRoot&&n(a.shadowRoot,s),a.childNodes.forEach(l=>n(l,s)))}return n(e,null),r}function AL(){return new vp}var vp=class{constructor(){U(this,"idNodeMap",new Map),U(this,"nodeMetaMap",new WeakMap)}getId(t){var r;return t?((r=this.getMeta(t))==null?void 0:r.id)??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){let r=this.getId(t);this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(n=>this.removeNodeFromMap(n))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){let n=r.id;this.idNodeMap.set(n,t),this.nodeMetaMap.set(t,r)}replace(t,r){let n=this.getNode(t);if(n){let a=this.nodeMetaMap.get(n);a&&this.nodeMetaMap.set(r,a)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function Lw(e,t){switch(e.RRNodeType){case pe.Document:return{id:t,type:e.RRNodeType,childNodes:[]};case pe.DocumentType:{let r=e;return{id:t,type:e.RRNodeType,name:r.name,publicId:r.publicId,systemId:r.systemId}}case pe.Element:return{id:t,type:e.RRNodeType,tagName:e.tagName.toLowerCase(),attributes:{},childNodes:[]};case pe.Text:return{id:t,type:e.RRNodeType,textContent:e.textContent||""};case pe.Comment:return{id:t,type:e.RRNodeType,textContent:e.textContent||""};case pe.CDATA:return{id:t,type:e.RRNodeType,textContent:""}}}var Iy={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},_y={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},_i={},kw={},DL=()=>!!globalThis.Zone;function Qp(e){if(_i[e])return _i[e];let t=globalThis[e],r=t.prototype,n=e in Iy?Iy[e]:void 0,a=!!(n&&n.every(l=>{var i,d;return!!((d=(i=Object.getOwnPropertyDescriptor(r,l))==null?void 0:i.get)!=null&&d.toString().includes("[native code]"))})),o=e in _y?_y[e]:void 0,s=!!(o&&o.every(l=>{var i;return typeof r[l]=="function"&&((i=r[l])==null?void 0:i.toString().includes("[native code]"))}));if(a&&s&&!DL())return _i[e]=t.prototype,t.prototype;try{let l=document.createElement("iframe");l.style.display="none",document.body.appendChild(l);let i=l.contentWindow;if(!i)return t.prototype;let d=i[e].prototype;if(!d)return l.remove(),r;let u=navigator.userAgent;return u.includes("Safari")&&!u.includes("Chrome")?(l.classList.add("rr-block"),l.setAttribute("__rrwebUntaintedMutationObserver",""),kw[e]=()=>l.remove()):l.remove(),_i[e]=d}catch{return r}}var ep={};function Xr(e,t,r){var n;let a=`${e}.${String(r)}`;if(ep[a])return ep[a].call(t);let o=Qp(e),s=(n=Object.getOwnPropertyDescriptor(o,r))==null?void 0:n.get;return s?(ep[a]=s,s.call(t)):t[r]}var tp={};function Iw(e,t,r){let n=`${e}.${String(r)}`;if(tp[n])return tp[n].bind(t);let o=Qp(e)[r];return typeof o!="function"?t[r]:(tp[n]=o,o.bind(t))}function OL(e){return Xr("Node",e,"ownerDocument")}function FL(e){return Xr("Node",e,"childNodes")}function BL(e){return Xr("Node",e,"parentNode")}function zL(e){return Xr("Node",e,"parentElement")}function UL(e){return Xr("Node",e,"textContent")}function qL(e,t){return Iw("Node",e,"contains")(t)}function $L(e){return Iw("Node",e,"getRootNode")()}function HL(e){return!e||!("host"in e)?null:Xr("ShadowRoot",e,"host")}function jL(e){return e.styleSheets}function WL(e){return!e||!("shadowRoot"in e)?null:Xr("Element",e,"shadowRoot")}function VL(e,t){return Xr("Element",e,"querySelector")(t)}function GL(e,t){return Xr("Element",e,"querySelectorAll")(t)}function _w(){return[Qp("MutationObserver").constructor,kw.MutationObserver??(()=>{})]}var ms=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(ms=()=>new Date().getTime());function Yn(e,t,r){try{if(!(t in e))return()=>{};let n=e[t],a=r(n);return typeof a=="function"&&(a.prototype=a.prototype||{},Object.defineProperties(a,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=a,()=>{e[t]=n}}catch{return()=>{}}}var le={ownerDocument:OL,childNodes:FL,parentNode:BL,parentElement:zL,textContent:UL,contains:qL,getRootNode:$L,host:HL,styleSheets:jL,shadowRoot:WL,querySelector:VL,querySelectorAll:GL,nowTimestamp:ms,mutationObserverCtor:_w,patch:Yn};function kt(e,t,r=document){let n={capture:!0,passive:!0};return r.addEventListener(e,t,n),()=>r.removeEventListener(e,t,n)}var Xa=`Please stop import mirror directly. Instead of that,\r
|
|
60
60
|
now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
|
|
61
|
-
or you can use record.mirror to access the mirror instance during recording.`,Cy={map:{},getId(){return console.error(Wa),-1},getNode(){return console.error(Wa),null},removeNodeFromMap(){console.error(Wa)},has(){return console.error(Wa),!1},reset(){console.error(Wa)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(Cy=new Proxy(Cy,{get(e,t,r){return t==="map"&&console.error(Wa),Reflect.get(e,t,r)}}));function cs(e,t,r={}){let n=null,a=0;return function(...o){let s=Date.now();!a&&r.leading===!1&&(a=s);let i=t-(s-a),l=this;i<=0||i>t?(n&&(clearTimeout(n),n=null),a=s,e.apply(l,o)):!n&&r.trailing!==!1&&(n=setTimeout(()=>{a=r.leading===!1?0:Date.now(),n=null,e.apply(l,o)},i))}}function nu(e,t,r,n,a=window){let o=a.Object.getOwnPropertyDescriptor(e,t);return a.Object.defineProperty(e,t,n?r:{set(s){setTimeout(()=>{r.set.call(this,s)},0),o&&o.set&&o.set.call(this,s)}}),()=>nu(e,t,o||{},!0)}function Cw(e){var t,r,n,a;let o=e.document;return{left:o.scrollingElement?o.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:o.documentElement.scrollLeft||o?.body&&((t=ne.parentElement(o.body))==null?void 0:t.scrollLeft)||((r=o?.body)==null?void 0:r.scrollLeft)||0,top:o.scrollingElement?o.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:o?.documentElement.scrollTop||o?.body&&((n=ne.parentElement(o.body))==null?void 0:n.scrollTop)||((a=o?.body)==null?void 0:a.scrollTop)||0}}function Lw(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function kw(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Iw(e){return e?e.nodeType===e.ELEMENT_NODE?e:ne.parentElement(e):null}function kt(e,t,r,n){if(!e)return!1;let a=Iw(e);if(!a)return!1;try{if(typeof t=="string"){if(a.classList.contains(t)||n&&a.closest("."+t)!==null)return!0}else if(Tl(a,t,n))return!0}catch{}return!!(r&&(a.matches(r)||n&&a.closest(r)!==null))}function qL(e,t){return t.getId(e)!==-1}function Zf(e,t,r){return e.tagName==="TITLE"&&r.headTitleMutations?!0:t.getId(e)===us}function _w(e,t){if(ns(e))return!1;let r=t.getId(e);if(!t.has(r))return!0;let n=ne.parentNode(e);return n&&n.nodeType===e.DOCUMENT_NODE?!1:n?_w(n,t):!0}function gp(e){return!!e.changedTouches}function Mw(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function $L(e){let t={},r=(a,o)=>{let s={value:a,parent:o,children:[]};return t[a.node.id]=s,s},n=[];for(let a of e){let{nextId:o,parentId:s}=a;if(o&&o in t){let i=t[o];if(i.parent){let l=i.parent.children.indexOf(i);i.parent.children.splice(l,0,r(a,i.parent))}else{let l=n.indexOf(i);n.splice(l,0,r(a,null))}continue}if(s in t){let i=t[s];i.children.push(r(a,i));continue}n.push(r(a,null))}return n}function Rw(e,t){t(e.value);for(let r=e.children.length-1;r>=0;r--)Rw(e.children[r],t)}function ss(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function Ew(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function Pw(e,t){var r,n;let a=(n=(r=e.ownerDocument)==null?void 0:r.defaultView)==null?void 0:n.frameElement;if(!a||a===t)return{x:0,y:0,relativeScale:1,absoluteScale:1};let o=a.getBoundingClientRect(),s=Pw(a,t),i=o.height/a.clientHeight;return{x:o.x*s.relativeScale+s.x,y:o.y*s.relativeScale+s.y,relativeScale:i,absoluteScale:s.absoluteScale*i}}function jn(e){return e?e instanceof vr&&"shadowRoot"in e?!!e.shadowRoot:!!ne.shadowRoot(e):!1}function ts(e,t){let r=e?.[t[0]];return r?t.length===1?r:ts(r.cssRules,t.slice(1)):null}function Ly(e){let t=[...e],r=t.pop();return{positions:t,index:r}}function HL(e){let t=new Set,r=[];for(let n=e.length;n--;){let a=e[n];t.has(a.id)||(r.push(a),t.add(a.id))}return r}var Ul=class{constructor(){R(this,"id",1),R(this,"styleIDMap",new WeakMap),R(this,"idStyleMap",new Map)}getId(t){return this.styleIDMap.get(t)??-1}has(t){return this.styleIDMap.has(t)}add(t,r){if(this.has(t))return this.getId(t);let n;return r===void 0?n=this.id++:n=r,this.styleIDMap.set(t,n),this.idStyleMap.set(n,t),n}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}};function Nw(e){var t;let r=null;return"getRootNode"in e&&((t=ne.getRootNode(e))==null?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&ne.host(ne.getRootNode(e))&&(r=ne.host(ne.getRootNode(e))),r}function WL(e){let t=e,r;for(;r=Nw(t);)t=r;return t}function jL(e){let t=ne.ownerDocument(e);if(!t)return!1;let r=WL(e);return ne.contains(t,r)}function Tw(e){let t=ne.ownerDocument(e);return t?ne.contains(t,e)||jL(e):!1}var W=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e[e.Asset=7]="Asset",e))(W||{}),q=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(q||{}),ye=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(ye||{}),Hr=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Hr||{}),jr=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(jr||{}),wn=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(wn||{}),ve=(e=>(e.Start="start",e.Pause="pause",e.Resume="resume",e.Resize="resize",e.Finish="finish",e.FullsnapshotRebuilded="fullsnapshot-rebuilded",e.LoadStylesheetStart="load-stylesheet-start",e.LoadStylesheetEnd="load-stylesheet-end",e.SkipStart="skip-start",e.SkipEnd="skip-end",e.MouseInteraction="mouse-interaction",e.EventCast="event-cast",e.CustomEvent="custom-event",e.Flush="flush",e.StateChange="state-change",e.PlayBack="play-back",e.Destroy="destroy",e))(ve||{}),Wr=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(Wr||{});function ky(e){return"__ln"in e}var xp=class{constructor(){R(this,"length",0),R(this,"head",null),R(this,"tail",null)}get(t){if(t>=this.length)throw new Error("Position outside of list range");let r=this.head;for(let n=0;n<t;n++)r=r?.next||null;return r}addNode(t){let r={value:t,previous:null,next:null};if(t.__ln=r,t.previousSibling&&ky(t.previousSibling)){let n=t.previousSibling.__ln.next;r.next=n,r.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=r,n&&(n.previous=r)}else if(t.nextSibling&&ky(t.nextSibling)&&t.nextSibling.__ln.previous){let n=t.nextSibling.__ln.previous;r.previous=n,r.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=r,n&&(n.next=r)}else this.head&&(this.head.previous=r),r.next=this.head,this.head=r;r.next===null&&(this.tail=r),this.length++}removeNode(t){let r=t.__ln;this.head&&(r.previous?(r.previous.next=r.next,r.next?r.next.previous=r.previous:this.tail=r.previous):(this.head=r.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}},Iy=(e,t)=>`${e}@${t}`,vp=class{constructor(){R(this,"frozen",!1),R(this,"locked",!1),R(this,"texts",[]),R(this,"attributes",[]),R(this,"attributeMap",new WeakMap),R(this,"removes",[]),R(this,"mapRemoves",[]),R(this,"movedMap",{}),R(this,"addedSet",new Set),R(this,"movedSet",new Set),R(this,"droppedSet",new Set),R(this,"removesSubTreeCache",new Set),R(this,"mutationCb"),R(this,"blockClass"),R(this,"blockSelector"),R(this,"maskTextClass"),R(this,"maskTextSelector"),R(this,"inlineStylesheet"),R(this,"maskInputOptions"),R(this,"maskTextFn"),R(this,"maskInputFn"),R(this,"keepIframeSrcFn"),R(this,"recordCanvas"),R(this,"inlineImages"),R(this,"slimDOMOptions"),R(this,"dataURLOptions"),R(this,"doc"),R(this,"mirror"),R(this,"iframeManager"),R(this,"stylesheetManager"),R(this,"shadowDomManager"),R(this,"canvasManager"),R(this,"processedNodeManager"),R(this,"unattachedDoc"),R(this,"processMutations",t=>{t.forEach(this.processMutation),this.emit()}),R(this,"emit",()=>{if(this.frozen||this.locked)return;let t=[],r=new Set,n=new xp,a=l=>{let d=l,u=us;for(;u===us;)d=d&&d.nextSibling,u=d&&this.mirror.getId(d);return u},o=l=>{let d=ne.parentNode(l);if(!d||!Tw(l))return;let u=!1;if(l.nodeType===Node.TEXT_NODE){let h=d.tagName;if(h==="TEXTAREA")return;h==="STYLE"&&this.addedSet.has(d)&&(u=!0)}let p=ns(d)?this.mirror.getId(Nw(l)):this.mirror.getId(d),c=a(l);if(p===-1||c===-1)return n.addNode(l);let f=Ga(l,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:h=>{ss(h,this.mirror)&&this.iframeManager.addIframe(h),Ew(h,this.mirror)&&this.stylesheetManager.trackLinkElement(h),jn(l)&&this.shadowDomManager.addShadowRoot(ne.shadowRoot(l),this.doc)},onIframeLoad:(h,m)=>{this.iframeManager.attachIframe(h,m),this.shadowDomManager.observeAttachShadow(h)},onStylesheetLoad:(h,m)=>{this.stylesheetManager.attachLinkElement(h,m)},cssCaptured:u});f&&(t.push({parentId:p,nextId:c,node:f}),r.add(f.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let l of this.movedSet)_y(this.removesSubTreeCache,l,this.mirror)&&!this.movedSet.has(ne.parentNode(l))||o(l);for(let l of this.addedSet)!My(this.droppedSet,l)&&!_y(this.removesSubTreeCache,l,this.mirror)||My(this.movedSet,l)?o(l):this.droppedSet.add(l);let s=null;for(;n.length;){let l=null;if(s){let d=this.mirror.getId(ne.parentNode(s.value)),u=a(s.value);d!==-1&&u!==-1&&(l=s)}if(!l){let d=n.tail;for(;d;){let u=d;if(d=d.previous,u){let p=this.mirror.getId(ne.parentNode(u.value));if(a(u.value)===-1)continue;if(p!==-1){l=u;break}else{let f=u.value,h=ne.parentNode(f);if(h&&h.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let m=ne.host(h);if(this.mirror.getId(m)!==-1){l=u;break}}}}}}if(!l){for(;n.head;)n.removeNode(n.head.value);break}s=l.previous,n.removeNode(l.value),o(l.value)}let i={texts:this.texts.map(l=>{let d=l.node,u=ne.parentNode(d);return u&&u.tagName==="TEXTAREA"&&this.genTextAreaValueMutation(u),{id:this.mirror.getId(d),value:l.value}}).filter(l=>!r.has(l.id)).filter(l=>this.mirror.has(l.id)),attributes:this.attributes.map(l=>{let{attributes:d}=l;if(typeof d.style=="string"){let u=JSON.stringify(l.styleDiff),p=JSON.stringify(l._unchangedStyles);u.length<d.style.length&&(u+p).split("var(").length===d.style.split("var(").length&&(d.style=l.styleDiff)}return{id:this.mirror.getId(l.node),attributes:d}}).filter(l=>!r.has(l.id)).filter(l=>this.mirror.has(l.id)),removes:this.removes,adds:t};!i.texts.length&&!i.attributes.length&&!i.removes.length&&!i.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.removesSubTreeCache=new Set,this.movedMap={},this.mutationCb(i))}),R(this,"genTextAreaValueMutation",t=>{let r=this.attributeMap.get(t);r||(r={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(r),this.attributeMap.set(t,r));let n=Array.from(ne.childNodes(t),a=>ne.textContent(a)||"").join("");r.attributes.value=El({element:t,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:Pl(t),value:n,maskInputFn:this.maskInputFn})}),R(this,"processMutation",t=>{if(!Zf(t.target,this.mirror,this.slimDOMOptions))switch(t.type){case"characterData":{let r=ne.textContent(t.target);!kt(t.target,this.blockClass,this.blockSelector,!1)&&r!==t.oldValue&&this.texts.push({value:Jy(t.target,this.maskTextClass,this.maskTextSelector,!0)&&r?this.maskTextFn?this.maskTextFn(r,Iw(t.target)):r.replace(/[\S]/g,"*"):r,node:t.target});break}case"attributes":{let r=t.target,n=t.attributeName,a=t.target.getAttribute(n);if(n==="value"){let s=Pl(r);a=El({element:r,maskInputOptions:this.maskInputOptions,tagName:r.tagName,type:s,value:a,maskInputFn:this.maskInputFn})}if(kt(t.target,this.blockClass,this.blockSelector,!1)||a===t.oldValue)return;let o=this.attributeMap.get(t.target);if(r.tagName==="IFRAME"&&n==="src"&&!this.keepIframeSrcFn(a))if(!r.contentDocument)n="rr_src";else return;if(o||(o={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(o),this.attributeMap.set(t.target,o)),n==="type"&&r.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&r.setAttribute("data-rr-is-password","true"),!Yy(r.tagName,n))if(o.attributes[n]=Qy(this.doc,Sn(r.tagName),Sn(n),a),n==="style"){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}let s=this.unattachedDoc.createElement("span");t.oldValue&&s.setAttribute("style",t.oldValue);for(let i of Array.from(r.style)){let l=r.style.getPropertyValue(i),d=r.style.getPropertyPriority(i);l!==s.style.getPropertyValue(i)||d!==s.style.getPropertyPriority(i)?d===""?o.styleDiff[i]=l:o.styleDiff[i]=[l,d]:o._unchangedStyles[i]=[l,d]}for(let i of Array.from(s.style))r.style.getPropertyValue(i)===""&&(o.styleDiff[i]=!1)}else n==="open"&&r.tagName==="DIALOG"&&(r.matches("dialog:modal")?o.attributes.rr_open_mode="modal":o.attributes.rr_open_mode="non-modal");break}case"childList":{if(kt(t.target,this.blockClass,this.blockSelector,!0))return;if(t.target.tagName==="TEXTAREA"){this.genTextAreaValueMutation(t.target);return}t.addedNodes.forEach(r=>this.genAdds(r,t.target)),t.removedNodes.forEach(r=>{let n=this.mirror.getId(r),a=ns(t.target)?this.mirror.getId(ne.host(t.target)):this.mirror.getId(t.target);kt(t.target,this.blockClass,this.blockSelector,!1)||Zf(r,this.mirror,this.slimDOMOptions)||!qL(r,this.mirror)||(this.addedSet.has(r)?(yp(this.addedSet,r),this.droppedSet.add(r)):this.addedSet.has(t.target)&&n===-1||_w(t.target,this.mirror)||(this.movedSet.has(r)&&this.movedMap[Iy(n,a)]?yp(this.movedSet,r):(this.removes.push({parentId:a,id:n,isShadow:ns(t.target)&&as(t.target)?!0:void 0}),VL(r,this.removesSubTreeCache))),this.mapRemoves.push(r))});break}}}),R(this,"genAdds",(t,r)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(Zf(t,this.mirror,this.slimDOMOptions))return;this.movedSet.add(t);let n=null;r&&this.mirror.hasNode(r)&&(n=this.mirror.getId(r)),n&&n!==-1&&(this.movedMap[Iy(this.mirror.getId(t),n)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);kt(t,this.blockClass,this.blockSelector,!1)||(ne.childNodes(t).forEach(n=>this.genAdds(n)),jn(t)&&ne.childNodes(ne.shadowRoot(t)).forEach(n=>{this.processedNodeManager.add(n,this),this.genAdds(n,t)}))}})}init(t){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(r=>{this[r]=t[r]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}};function yp(e,t){e.delete(t),ne.childNodes(t).forEach(r=>yp(e,r))}function VL(e,t){let r=[e];for(;r.length;){let n=r.pop();t.has(n)||(t.add(n),ne.childNodes(n).forEach(a=>r.push(a)))}}function _y(e,t,r){return e.size===0?!1:GL(e,t)}function GL(e,t,r){let n=ne.parentNode(t);return n?e.has(n):!1}function My(e,t){return e.size===0?!1:Aw(e,t)}function Aw(e,t){let r=ne.parentNode(t);return r?e.has(r)?!0:Aw(e,r):!1}var is;function XL(e){is=e}function KL(){is=void 0}var pe=e=>is?(...r)=>{try{return e(...r)}catch(n){if(is&&is(n)===!0)return;throw n}}:e,Vn=[];function ms(e){try{if("composedPath"in e){let t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function Dw(e,t){let r=new vp;Vn.push(r),r.init(e);let[n,a]=Sw(),o=new n(pe(r.processMutations.bind(r)));return o.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),[o,a]}function QL({mousemoveCb:e,sampling:t,doc:r,mirror:n}){if(t.mousemove===!1)return()=>{};let a=typeof t.mousemove=="number"?t.mousemove:50,o=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500,s=[],i,l=cs(pe(p=>{let c=Date.now()-i;e(s.map(f=>(f.timeOffset-=c,f)),p),s=[],i=null}),o),d=pe(cs(pe(p=>{let c=ms(p),{clientX:f,clientY:h}=gp(p)?p.changedTouches[0]:p;i||(i=ds()),s.push({x:f,y:h,id:n.getId(c),timeOffset:ds()-i}),l(typeof DragEvent<"u"&&p instanceof DragEvent?q.Drag:p instanceof MouseEvent?q.MouseMove:q.TouchMove)}),a,{trailing:!1})),u=[Lt("mousemove",d,r),Lt("touchmove",d,r),Lt("drag",d,r)];return pe(()=>{u.forEach(p=>p())})}function YL({mouseInteractionCb:e,doc:t,mirror:r,blockClass:n,blockSelector:a,sampling:o}){if(o.mouseInteraction===!1)return()=>{};let s=o.mouseInteraction===!0||o.mouseInteraction===void 0?{}:o.mouseInteraction,i=[],l=null,d=u=>p=>{let c=ms(p);if(kt(c,n,a,!0))return;let f=null,h=u;if("pointerType"in p){switch(p.pointerType){case"mouse":f=Hr.Mouse;break;case"touch":f=Hr.Touch;break;case"pen":f=Hr.Pen;break}f===Hr.Touch?ye[u]===ye.MouseDown?h="TouchStart":ye[u]===ye.MouseUp&&(h="TouchEnd"):Hr.Pen}else gp(p)&&(f=Hr.Touch);f!==null?(l=f,(h.startsWith("Touch")&&f===Hr.Touch||h.startsWith("Mouse")&&f===Hr.Mouse)&&(f=null)):ye[u]===ye.Click&&(f=l,l=null);let m=gp(p)?p.changedTouches[0]:p;if(!m)return;let b=r.getId(c),{clientX:g,clientY:x}=m;pe(e)({type:ye[h],id:b,x:g,y:x,...f!==null&&{pointerType:f}})};return Object.keys(ye).filter(u=>Number.isNaN(Number(u))&&!u.endsWith("_Departed")&&s[u]!==!1).forEach(u=>{let p=Sn(u),c=d(u);if(window.PointerEvent)switch(ye[u]){case ye.MouseDown:case ye.MouseUp:p=p.replace("mouse","pointer");break;case ye.TouchStart:case ye.TouchEnd:return}i.push(Lt(p,c,t))}),pe(()=>{i.forEach(u=>u())})}function Ow({scrollCb:e,doc:t,mirror:r,blockClass:n,blockSelector:a,sampling:o}){let s=pe(cs(pe(i=>{let l=ms(i);if(!l||kt(l,n,a,!0))return;let d=r.getId(l);if(l===t&&t.defaultView){let u=Cw(t.defaultView);e({id:d,x:u.left,y:u.top})}else e({id:d,x:l.scrollLeft,y:l.scrollTop})}),o.scroll||100));return Lt("scroll",s,t)}function JL({viewportResizeCb:e},{win:t}){let r=-1,n=-1,a=pe(cs(pe(()=>{let o=Lw(),s=kw();(r!==o||n!==s)&&(e({width:Number(s),height:Number(o)}),r=o,n=s)}),200));return Lt("resize",a,t)}var ZL=["INPUT","TEXTAREA","SELECT"],Ry=new WeakMap;function ek({inputCb:e,doc:t,mirror:r,blockClass:n,blockSelector:a,ignoreClass:o,ignoreSelector:s,maskInputOptions:i,maskInputFn:l,sampling:d,userTriggeredOnInput:u}){function p(x){let v=ms(x),S=x.isTrusted,y=v&&v.tagName;if(v&&y==="OPTION"&&(v=ne.parentElement(v)),!v||!y||ZL.indexOf(y)<0||kt(v,n,a,!0)||v.classList.contains(o)||s&&v.matches(s))return;let w=v.value,L=!1,C=Pl(v)||"";C==="radio"||C==="checkbox"?L=v.checked:(i[y.toLowerCase()]||i[C])&&(w=El({element:v,maskInputOptions:i,tagName:y,type:C,value:w,maskInputFn:l})),c(v,u?{text:w,isChecked:L,userTriggered:S}:{text:w,isChecked:L});let _=v.name;C==="radio"&&_&&L&&t.querySelectorAll(`input[type="radio"][name="${_}"]`).forEach(I=>{if(I!==v){let D=I.value;c(I,u?{text:D,isChecked:!L,userTriggered:!1}:{text:D,isChecked:!L})}})}function c(x,v){let S=Ry.get(x);if(!S||S.text!==v.text||S.isChecked!==v.isChecked){Ry.set(x,v);let y=r.getId(x);pe(e)({...v,id:y})}}let h=(d.input==="last"?["change"]:["input","change"]).map(x=>Lt(x,pe(p),t)),m=t.defaultView;if(!m)return()=>{h.forEach(x=>x())};let b=m.Object.getOwnPropertyDescriptor(m.HTMLInputElement.prototype,"value"),g=[[m.HTMLInputElement.prototype,"value"],[m.HTMLInputElement.prototype,"checked"],[m.HTMLSelectElement.prototype,"value"],[m.HTMLTextAreaElement.prototype,"value"],[m.HTMLSelectElement.prototype,"selectedIndex"],[m.HTMLOptionElement.prototype,"selected"]];return b&&b.set&&h.push(...g.map(x=>nu(x[0],x[1],{set(){pe(p)({target:this,isTrusted:!1})}},!1,m))),pe(()=>{h.forEach(x=>x())})}function ql(e){let t=[];function r(n,a){if(kl("CSSGroupingRule")&&n.parentRule instanceof CSSGroupingRule||kl("CSSMediaRule")&&n.parentRule instanceof CSSMediaRule||kl("CSSSupportsRule")&&n.parentRule instanceof CSSSupportsRule||kl("CSSConditionRule")&&n.parentRule instanceof CSSConditionRule){let s=Array.from(n.parentRule.cssRules).indexOf(n);return a.unshift(s),r(n.parentRule,a)}else if(n.parentStyleSheet){let s=Array.from(n.parentStyleSheet.cssRules).indexOf(n);a.unshift(s)}return a}return r(e,t)}function yn(e,t,r){let n,a;return e?(e.ownerNode?n=t.getId(e.ownerNode):a=r.getId(e),{styleId:a,id:n}):{}}function tk({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:n}){if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};let a=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(a,{apply:pe((u,p,c)=>{let[f,h]=c,{id:m,styleId:b}=yn(p,t,r.styleMirror);return(m&&m!==-1||b&&b!==-1)&&e({id:m,styleId:b,adds:[{rule:f,index:h}]}),u.apply(p,c)})}),n.CSSStyleSheet.prototype.addRule=function(u,p,c=this.cssRules.length){let f=`${u} { ${p} }`;return n.CSSStyleSheet.prototype.insertRule.apply(this,[f,c])};let o=n.CSSStyleSheet.prototype.deleteRule;n.CSSStyleSheet.prototype.deleteRule=new Proxy(o,{apply:pe((u,p,c)=>{let[f]=c,{id:h,styleId:m}=yn(p,t,r.styleMirror);return(h&&h!==-1||m&&m!==-1)&&e({id:h,styleId:m,removes:[{index:f}]}),u.apply(p,c)})}),n.CSSStyleSheet.prototype.removeRule=function(u){return n.CSSStyleSheet.prototype.deleteRule.apply(this,[u])};let s;n.CSSStyleSheet.prototype.replace&&(s=n.CSSStyleSheet.prototype.replace,n.CSSStyleSheet.prototype.replace=new Proxy(s,{apply:pe((u,p,c)=>{let[f]=c,{id:h,styleId:m}=yn(p,t,r.styleMirror);return(h&&h!==-1||m&&m!==-1)&&e({id:h,styleId:m,replace:f}),u.apply(p,c)})}));let i;n.CSSStyleSheet.prototype.replaceSync&&(i=n.CSSStyleSheet.prototype.replaceSync,n.CSSStyleSheet.prototype.replaceSync=new Proxy(i,{apply:pe((u,p,c)=>{let[f]=c,{id:h,styleId:m}=yn(p,t,r.styleMirror);return(h&&h!==-1||m&&m!==-1)&&e({id:h,styleId:m,replaceSync:f}),u.apply(p,c)})}));let l={};Il("CSSGroupingRule")?l.CSSGroupingRule=n.CSSGroupingRule:(Il("CSSMediaRule")&&(l.CSSMediaRule=n.CSSMediaRule),Il("CSSConditionRule")&&(l.CSSConditionRule=n.CSSConditionRule),Il("CSSSupportsRule")&&(l.CSSSupportsRule=n.CSSSupportsRule));let d={};return Object.entries(l).forEach(([u,p])=>{d[u]={insertRule:p.prototype.insertRule,deleteRule:p.prototype.deleteRule},p.prototype.insertRule=new Proxy(d[u].insertRule,{apply:pe((c,f,h)=>{let[m,b]=h,{id:g,styleId:x}=yn(f.parentStyleSheet,t,r.styleMirror);return(g&&g!==-1||x&&x!==-1)&&e({id:g,styleId:x,adds:[{rule:m,index:[...ql(f),b||0]}]}),c.apply(f,h)})}),p.prototype.deleteRule=new Proxy(d[u].deleteRule,{apply:pe((c,f,h)=>{let[m]=h,{id:b,styleId:g}=yn(f.parentStyleSheet,t,r.styleMirror);return(b&&b!==-1||g&&g!==-1)&&e({id:b,styleId:g,removes:[{index:[...ql(f),m]}]}),c.apply(f,h)})})}),pe(()=>{n.CSSStyleSheet.prototype.insertRule=a,n.CSSStyleSheet.prototype.deleteRule=o,s&&(n.CSSStyleSheet.prototype.replace=s),i&&(n.CSSStyleSheet.prototype.replaceSync=i),Object.entries(l).forEach(([u,p])=>{p.prototype.insertRule=d[u].insertRule,p.prototype.deleteRule=d[u].deleteRule})})}function Fw({mirror:e,stylesheetManager:t},r){var n,a,o;let s=null;r.nodeName==="#document"?s=e.getId(r):s=e.getId(ne.host(r));let i=r.nodeName==="#document"?(n=r.defaultView)==null?void 0:n.Document:(o=(a=r.ownerDocument)==null?void 0:a.defaultView)==null?void 0:o.ShadowRoot,l=i?.prototype?Object.getOwnPropertyDescriptor(i?.prototype,"adoptedStyleSheets"):void 0;return s===null||s===-1||!i||!l?()=>{}:(Object.defineProperty(r,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get(){var d;return(d=l.get)==null?void 0:d.call(this)},set(d){var u;let p=(u=l.set)==null?void 0:u.call(this,d);if(s!==null&&s!==-1)try{t.adoptStyleSheets(d,s)}catch{}return p}}),pe(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:l.get,set:l.set})}))}function rk({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:n},{win:a}){let o=a.CSSStyleDeclaration.prototype.setProperty;a.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:pe((i,l,d)=>{var u;let[p,c,f]=d;if(r.has(p))return o.apply(l,[p,c,f]);let{id:h,styleId:m}=yn((u=l.parentRule)==null?void 0:u.parentStyleSheet,t,n.styleMirror);return(h&&h!==-1||m&&m!==-1)&&e({id:h,styleId:m,set:{property:p,value:c,priority:f},index:ql(l.parentRule)}),i.apply(l,d)})});let s=a.CSSStyleDeclaration.prototype.removeProperty;return a.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:pe((i,l,d)=>{var u;let[p]=d;if(r.has(p))return s.apply(l,[p]);let{id:c,styleId:f}=yn((u=l.parentRule)==null?void 0:u.parentStyleSheet,t,n.styleMirror);return(c&&c!==-1||f&&f!==-1)&&e({id:c,styleId:f,remove:{property:p},index:ql(l.parentRule)}),i.apply(l,d)})}),pe(()=>{a.CSSStyleDeclaration.prototype.setProperty=o,a.CSSStyleDeclaration.prototype.removeProperty=s})}function nk({mediaInteractionCb:e,blockClass:t,blockSelector:r,mirror:n,sampling:a,doc:o}){let s=pe(l=>cs(pe(d=>{let u=ms(d);if(!u||kt(u,t,r,!0))return;let{currentTime:p,volume:c,muted:f,playbackRate:h,loop:m}=u;e({type:l,id:n.getId(u),currentTime:p,volume:c,muted:f,playbackRate:h,loop:m})}),a.media||500)),i=[Lt("play",s(wn.Play),o),Lt("pause",s(wn.Pause),o),Lt("seeked",s(wn.Seeked),o),Lt("volumechange",s(wn.VolumeChange),o),Lt("ratechange",s(wn.RateChange),o)];return pe(()=>{i.forEach(l=>l())})}function ak({fontCb:e,doc:t}){let r=t.defaultView;if(!r)return()=>{};let n=[],a=new WeakMap,o=r.FontFace;r.FontFace=function(l,d,u){let p=new o(l,d,u);return a.set(p,{family:l,buffer:typeof d!="string",descriptors:u,fontSource:typeof d=="string"?d:JSON.stringify(Array.from(new Uint8Array(d)))}),p};let s=Kn(t.fonts,"add",function(i){return function(l){return setTimeout(pe(()=>{let d=a.get(l);d&&(e(d),a.delete(l))}),0),i.apply(this,[l])}});return n.push(()=>{r.FontFace=o}),n.push(s),pe(()=>{n.forEach(i=>i())})}function ok(e){let{doc:t,mirror:r,blockClass:n,blockSelector:a,selectionCb:o}=e,s=!0,i=pe(()=>{let l=t.getSelection();if(!l||s&&l?.isCollapsed)return;s=l.isCollapsed||!1;let d=[],u=l.rangeCount||0;for(let p=0;p<u;p++){let c=l.getRangeAt(p),{startContainer:f,startOffset:h,endContainer:m,endOffset:b}=c;kt(f,n,a,!0)||kt(m,n,a,!0)||d.push({start:r.getId(f),startOffset:h,end:r.getId(m),endOffset:b})}o({ranges:d})});return i(),Lt("selectionchange",i)}function sk({doc:e,customElementCb:t}){let r=e.defaultView;return!r||!r.customElements?()=>{}:Kn(r.customElements,"define",function(a){return function(o,s,i){try{t({define:{name:o}})}catch{console.warn(`Custom element callback failed for ${o}`)}return a.apply(this,[o,s,i])}})}function ik(e,t){let{mutationCb:r,mousemoveCb:n,mouseInteractionCb:a,scrollCb:o,viewportResizeCb:s,inputCb:i,mediaInteractionCb:l,styleSheetRuleCb:d,styleDeclarationCb:u,canvasMutationCb:p,fontCb:c,selectionCb:f,customElementCb:h}=e;e.mutationCb=(...m)=>{t.mutation&&t.mutation(...m),r(...m)},e.mousemoveCb=(...m)=>{t.mousemove&&t.mousemove(...m),n(...m)},e.mouseInteractionCb=(...m)=>{t.mouseInteraction&&t.mouseInteraction(...m),a(...m)},e.scrollCb=(...m)=>{t.scroll&&t.scroll(...m),o(...m)},e.viewportResizeCb=(...m)=>{t.viewportResize&&t.viewportResize(...m),s(...m)},e.inputCb=(...m)=>{t.input&&t.input(...m),i(...m)},e.mediaInteractionCb=(...m)=>{t.mediaInteaction&&t.mediaInteaction(...m),l(...m)},e.styleSheetRuleCb=(...m)=>{t.styleSheetRule&&t.styleSheetRule(...m),d(...m)},e.styleDeclarationCb=(...m)=>{t.styleDeclaration&&t.styleDeclaration(...m),u(...m)},e.canvasMutationCb=(...m)=>{t.canvasMutation&&t.canvasMutation(...m),p(...m)},e.fontCb=(...m)=>{t.font&&t.font(...m),c(...m)},e.selectionCb=(...m)=>{t.selection&&t.selection(...m),f(...m)},e.customElementCb=(...m)=>{t.customElement&&t.customElement(...m),h(...m)}}function lk(e,t={}){let r=e.doc.defaultView;if(!r)return()=>{};ik(e,t);let n,a=()=>{};e.recordDOM&&([n,a]=Dw(e,e.doc));let o=QL(e),s=YL(e),i=Ow(e),l=JL(e,{win:r}),d=ek(e),u=nk(e),p=()=>{},c=()=>{},f=()=>{},h=()=>{};e.recordDOM&&(p=tk(e,{win:r}),c=Fw(e,e.doc),f=rk(e,{win:r}),e.collectFonts&&(h=ak(e)));let m=ok(e),b=sk(e),g=[];for(let x of e.plugins)g.push(x.observer(x.callback,r,x.options));return pe(()=>{Vn.forEach(x=>x.reset()),n?.disconnect(),a(),o(),s(),i(),l(),d(),u(),p(),c(),f(),h(),m(),b(),g.forEach(x=>x())})}function kl(e){return typeof window[e]<"u"}function Il(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}var $l=class{constructor(t){R(this,"iframeIdToRemoteIdMap",new WeakMap),R(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=t}getId(t,r,n,a){let o=n||this.getIdToRemoteIdMap(t),s=a||this.getRemoteIdToIdMap(t),i=o.get(r);return i||(i=this.generateIdFn(),o.set(r,i),s.set(i,r)),i}getIds(t,r){let n=this.getIdToRemoteIdMap(t),a=this.getRemoteIdToIdMap(t);return r.map(o=>this.getId(t,o,n,a))}getRemoteId(t,r,n){let a=n||this.getRemoteIdToIdMap(t);if(typeof r!="number")return r;let o=a.get(r);return o||-1}getRemoteIds(t,r){let n=this.getRemoteIdToIdMap(t);return r.map(a=>this.getRemoteId(t,a,n))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let r=this.iframeIdToRemoteIdMap.get(t);return r||(r=new Map,this.iframeIdToRemoteIdMap.set(t,r)),r}getRemoteIdToIdMap(t){let r=this.iframeRemoteIdToIdMap.get(t);return r||(r=new Map,this.iframeRemoteIdToIdMap.set(t,r)),r}},wp=class{constructor(t){R(this,"iframes",new WeakMap),R(this,"crossOriginIframeMap",new WeakMap),R(this,"crossOriginIframeMirror",new $l(Ky)),R(this,"crossOriginIframeStyleMirror"),R(this,"crossOriginIframeRootIdMap",new WeakMap),R(this,"mirror"),R(this,"mutationCb"),R(this,"wrappedEmit"),R(this,"loadListener"),R(this,"stylesheetManager"),R(this,"recordCrossOriginIframes"),this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new $l(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,r){var n,a;this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:r}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((n=t.contentWindow)==null||n.addEventListener("message",this.handleMessage.bind(this))),(a=this.loadListener)==null||a.call(this,t),t.contentDocument&&t.contentDocument.adoptedStyleSheets&&t.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.contentDocument))}handleMessage(t){let r=t;if(r.data.type!=="rrweb"||r.origin!==r.data.origin||!t.source)return;let a=this.crossOriginIframeMap.get(t.source);if(!a)return;let o=this.transformCrossOriginEvent(a,r.data.event);o&&this.wrappedEmit(o,r.data.isCheckout)}transformCrossOriginEvent(t,r){var n;switch(r.type){case W.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(r.data.node,t);let a=r.data.node.id;return this.crossOriginIframeRootIdMap.set(t,a),this.patchRootIdOnNode(r.data.node,a),{timestamp:r.timestamp,type:W.IncrementalSnapshot,data:{source:q.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:r.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case W.Meta:case W.Load:case W.DomContentLoaded:return!1;case W.Plugin:return r;case W.Custom:return this.replaceIds(r.data.payload,t,["id","parentId","previousId","nextId"]),r;case W.IncrementalSnapshot:switch(r.data.source){case q.Mutation:return r.data.adds.forEach(a=>{this.replaceIds(a,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(a.node,t);let o=this.crossOriginIframeRootIdMap.get(t);o&&this.patchRootIdOnNode(a.node,o)}),r.data.removes.forEach(a=>{this.replaceIds(a,t,["parentId","id"])}),r.data.attributes.forEach(a=>{this.replaceIds(a,t,["id"])}),r.data.texts.forEach(a=>{this.replaceIds(a,t,["id"])}),r;case q.Drag:case q.TouchMove:case q.MouseMove:return r.data.positions.forEach(a=>{this.replaceIds(a,t,["id"])}),r;case q.ViewportResize:return!1;case q.MediaInteraction:case q.MouseInteraction:case q.Scroll:case q.CanvasMutation:case q.Input:return this.replaceIds(r.data,t,["id"]),r;case q.StyleSheetRule:case q.StyleDeclaration:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleId"]),r;case q.Font:return r;case q.Selection:return r.data.ranges.forEach(a=>{this.replaceIds(a,t,["start","end"])}),r;case q.AdoptedStyleSheet:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleIds"]),(n=r.data.styles)==null||n.forEach(a=>{this.replaceStyleIds(a,t,["styleId"])}),r}}return!1}replace(t,r,n,a){for(let o of a)!Array.isArray(r[o])&&typeof r[o]!="number"||(Array.isArray(r[o])?r[o]=t.getIds(n,r[o]):r[o]=t.getId(n,r[o]));return r}replaceIds(t,r,n){return this.replace(this.crossOriginIframeMirror,t,r,n)}replaceStyleIds(t,r,n){return this.replace(this.crossOriginIframeStyleMirror,t,r,n)}replaceIdOnNode(t,r){this.replaceIds(t,r,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(n=>{this.replaceIdOnNode(n,r)})}patchRootIdOnNode(t,r){t.type!==Wr.Document&&!t.rootId&&(t.rootId=r),"childNodes"in t&&t.childNodes.forEach(n=>{this.patchRootIdOnNode(n,r)})}},bp=class{constructor(t){R(this,"shadowDoms",new WeakSet),R(this,"mutationCb"),R(this,"scrollCb"),R(this,"bypassOptions"),R(this,"mirror"),R(this,"restoreHandlers",[]),this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,r){if(!as(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t);let[n]=Dw({...this.bypassOptions,doc:r,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(Ow({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),setTimeout(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(ne.host(t))),this.restoreHandlers.push(Fw({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){!t.contentWindow||!t.contentDocument||this.patchAttachShadow(t.contentWindow.Element,t.contentDocument)}patchAttachShadow(t,r){let n=this;this.restoreHandlers.push(Kn(t.prototype,"attachShadow",function(a){return function(o){let s=a.call(this,o),i=ne.shadowRoot(this);return i&&Tw(this)&&n.addShadowRoot(i,r),s}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}},Xa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",rs=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(es=0;es<Xa.length;es++)rs[Xa.charCodeAt(es)]=es;var es,uk=function(e){var t=new Uint8Array(e),r,n=t.length,a="";for(r=0;r<n;r+=3)a+=Xa[t[r]>>2],a+=Xa[(t[r]&3)<<4|t[r+1]>>4],a+=Xa[(t[r+1]&15)<<2|t[r+2]>>6],a+=Xa[t[r+2]&63];return n%3===2?a=a.substring(0,a.length-1)+"=":n%3===1&&(a=a.substring(0,a.length-2)+"=="),a},dk=function(e){var t=e.length*.75,r=e.length,n,a=0,o,s,i,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);var d=new ArrayBuffer(t),u=new Uint8Array(d);for(n=0;n<r;n+=4)o=rs[e.charCodeAt(n)],s=rs[e.charCodeAt(n+1)],i=rs[e.charCodeAt(n+2)],l=rs[e.charCodeAt(n+3)],u[a++]=o<<2|s>>4,u[a++]=(s&15)<<4|i>>2,u[a++]=(i&3)<<6|l&63;return d},Ey=new Map;function ck(e,t){let r=Ey.get(e);return r||(r=new Map,Ey.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}var Bw=(e,t,r)=>{if(!e||!(Uw(e,t)||typeof e=="object"))return;let n=e.constructor.name,a=ck(r,n),o=a.indexOf(e);return o===-1&&(o=a.length,a.push(e)),o};function Ml(e,t,r){if(e instanceof Array)return e.map(n=>Ml(n,t,r));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){let n=e.constructor.name,a=uk(e);return{rr_type:n,base64:a}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[Ml(e.buffer,t,r),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){let n=e.constructor.name,{src:a}=e;return{rr_type:n,src:a}}else if(e instanceof HTMLCanvasElement){let n="HTMLImageElement",a=e.toDataURL();return{rr_type:n,src:a}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[Ml(e.data,t,r),e.width,e.height]};if(Uw(e,t)||typeof e=="object"){let n=e.constructor.name,a=Bw(e,t,r);return{rr_type:n,index:a}}}}return e}var zw=(e,t,r)=>e.map(n=>Ml(n,t,r)),Uw=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(a=>typeof t[a]=="function").find(a=>e instanceof t[a]);function fk(e,t,r,n){let a=[],o=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(let s of o)try{if(typeof t.CanvasRenderingContext2D.prototype[s]!="function")continue;let i=Kn(t.CanvasRenderingContext2D.prototype,s,function(l){return function(...d){return kt(this.canvas,r,n,!0)||setTimeout(()=>{let u=zw(d,t,this);e(this.canvas,{type:jr["2D"],property:s,args:u})},0),l.apply(this,d)}});a.push(i)}catch{let i=nu(t.CanvasRenderingContext2D.prototype,s,{set(l){e(this.canvas,{type:jr["2D"],property:s,args:[l],setter:!0})}});a.push(i)}return()=>{a.forEach(s=>s())}}function pk(e){return e==="experimental-webgl"?"webgl":e}function Py(e,t,r,n){let a=[];try{let o=Kn(e.HTMLCanvasElement.prototype,"getContext",function(s){return function(i,...l){if(!kt(this,t,r,!0)){let d=pk(i);if("__context"in this||(this.__context=d),n&&["webgl","webgl2"].includes(d))if(l[0]&&typeof l[0]=="object"){let u=l[0];u.preserveDrawingBuffer||(u.preserveDrawingBuffer=!0)}else l.splice(0,1,{preserveDrawingBuffer:!0})}return s.apply(this,[i,...l])}});a.push(o)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{a.forEach(o=>o())}}function Ny(e,t,r,n,a,o){let s=[],i=Object.getOwnPropertyNames(e);for(let l of i)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(l))try{if(typeof e[l]!="function")continue;let d=Kn(e,l,function(u){return function(...p){let c=u.apply(this,p);if(Bw(c,o,this),"tagName"in this.canvas&&!kt(this.canvas,n,a,!0)){let f=zw(p,o,this),h={type:t,property:l,args:f};r(this.canvas,h)}return c}});s.push(d)}catch{let d=nu(e,l,{set(u){r(this.canvas,{type:t,property:l,args:[u],setter:!0})}});s.push(d)}return s}function mk(e,t,r,n){let a=[];return typeof t.WebGLRenderingContext<"u"&&a.push(...Ny(t.WebGLRenderingContext.prototype,jr.WebGL,e,r,n,t)),typeof t.WebGL2RenderingContext<"u"&&a.push(...Ny(t.WebGL2RenderingContext.prototype,jr.WebGL2,e,r,n,t)),()=>{a.forEach(o=>o())}}var qw=`(function() {
|
|
61
|
+
or you can use record.mirror to access the mirror instance during recording.`,My={map:{},getId(){return console.error(Xa),-1},getNode(){return console.error(Xa),null},removeNodeFromMap(){console.error(Xa)},has(){return console.error(Xa),!1},reset(){console.error(Xa)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(My=new Proxy(My,{get(e,t,r){return t==="map"&&console.error(Xa),Reflect.get(e,t,r)}}));function hs(e,t,r={}){let n=null,a=0;return function(...o){let s=Date.now();!a&&r.leading===!1&&(a=s);let l=t-(s-a),i=this;l<=0||l>t?(n&&(clearTimeout(n),n=null),a=s,e.apply(i,o)):!n&&r.trailing!==!1&&(n=setTimeout(()=>{a=r.leading===!1?0:Date.now(),n=null,e.apply(i,o)},l))}}function su(e,t,r,n,a=window){let o=a.Object.getOwnPropertyDescriptor(e,t);return a.Object.defineProperty(e,t,n?r:{set(s){setTimeout(()=>{r.set.call(this,s)},0),o&&o.set&&o.set.call(this,s)}}),()=>su(e,t,o||{},!0)}function Mw(e){var t,r,n,a;let o=e.document;return{left:o.scrollingElement?o.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:o.documentElement.scrollLeft||o?.body&&((t=le.parentElement(o.body))==null?void 0:t.scrollLeft)||((r=o?.body)==null?void 0:r.scrollLeft)||0,top:o.scrollingElement?o.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:o?.documentElement.scrollTop||o?.body&&((n=le.parentElement(o.body))==null?void 0:n.scrollTop)||((a=o?.body)==null?void 0:a.scrollTop)||0}}function Rw(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Ew(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Nw(e){return e?e.nodeType===e.ELEMENT_NODE?e:le.parentElement(e):null}function It(e,t,r,n){if(!e)return!1;let a=Nw(e);if(!a)return!1;try{if(typeof t=="string"){if(a.classList.contains(t)||n&&a.closest("."+t)!==null)return!0}else if(Oi(a,t,n))return!0}catch{}return!!(r&&(a.matches(r)||n&&a.closest(r)!==null))}function XL(e,t){return t.getId(e)!==-1}function rp(e,t,r){return e.tagName==="TITLE"&&r.headTitleMutations?!0:t.getId(e)===ps}function Pw(e,t){if(ls(e))return!1;let r=t.getId(e);if(!t.has(r))return!0;let n=le.parentNode(e);return n&&n.nodeType===e.DOCUMENT_NODE?!1:n?Pw(n,t):!0}function yp(e){return!!e.changedTouches}function Tw(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function KL(e){let t={},r=(a,o)=>{let s={value:a,parent:o,children:[]};return t[a.node.id]=s,s},n=[];for(let a of e){let{nextId:o,parentId:s}=a;if(o&&o in t){let l=t[o];if(l.parent){let i=l.parent.children.indexOf(l);l.parent.children.splice(i,0,r(a,l.parent))}else{let i=n.indexOf(l);n.splice(i,0,r(a,null))}continue}if(s in t){let l=t[s];l.children.push(r(a,l));continue}n.push(r(a,null))}return n}function Aw(e,t){t(e.value);for(let r=e.children.length-1;r>=0;r--)Aw(e.children[r],t)}function ds(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function Dw(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function Ow(e,t){var r,n;let a=(n=(r=e.ownerDocument)==null?void 0:r.defaultView)==null?void 0:n.frameElement;if(!a||a===t)return{x:0,y:0,relativeScale:1,absoluteScale:1};let o=a.getBoundingClientRect(),s=Ow(a,t),l=o.height/a.clientHeight;return{x:o.x*s.relativeScale+s.x,y:o.y*s.relativeScale+s.y,relativeScale:l,absoluteScale:s.absoluteScale*l}}function Gn(e){return e?e instanceof wr&&"shadowRoot"in e?!!e.shadowRoot:!!le.shadowRoot(e):!1}function os(e,t){let r=e?.[t[0]];return r?t.length===1?r:os(r.cssRules,t.slice(1)):null}function Ry(e){let t=[...e],r=t.pop();return{positions:t,index:r}}function QL(e){let t=new Set,r=[];for(let n=e.length;n--;){let a=e[n];t.has(a.id)||(r.push(a),t.add(a.id))}return r}var Hi=class{constructor(){R(this,"id",1),R(this,"styleIDMap",new WeakMap),R(this,"idStyleMap",new Map)}getId(t){return this.styleIDMap.get(t)??-1}has(t){return this.styleIDMap.has(t)}add(t,r){if(this.has(t))return this.getId(t);let n;return r===void 0?n=this.id++:n=r,this.styleIDMap.set(t,n),this.idStyleMap.set(n,t),n}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}};function Fw(e){var t;let r=null;return"getRootNode"in e&&((t=le.getRootNode(e))==null?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&le.host(le.getRootNode(e))&&(r=le.host(le.getRootNode(e))),r}function YL(e){let t=e,r;for(;r=Fw(t);)t=r;return t}function JL(e){let t=le.ownerDocument(e);if(!t)return!1;let r=YL(e);return le.contains(t,r)}function Bw(e){let t=le.ownerDocument(e);return t?le.contains(t,e)||JL(e):!1}var V=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e[e.Asset=7]="Asset",e))(V||{}),$=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))($||{}),Se=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(Se||{}),jr=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(jr||{}),Vr=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(Vr||{}),Sn=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(Sn||{}),be=(e=>(e.Start="start",e.Pause="pause",e.Resume="resume",e.Resize="resize",e.Finish="finish",e.FullsnapshotRebuilded="fullsnapshot-rebuilded",e.LoadStylesheetStart="load-stylesheet-start",e.LoadStylesheetEnd="load-stylesheet-end",e.SkipStart="skip-start",e.SkipEnd="skip-end",e.MouseInteraction="mouse-interaction",e.EventCast="event-cast",e.CustomEvent="custom-event",e.Flush="flush",e.StateChange="state-change",e.PlayBack="play-back",e.Destroy="destroy",e))(be||{}),Wr=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(Wr||{});function Ey(e){return"__ln"in e}var wp=class{constructor(){R(this,"length",0),R(this,"head",null),R(this,"tail",null)}get(t){if(t>=this.length)throw new Error("Position outside of list range");let r=this.head;for(let n=0;n<t;n++)r=r?.next||null;return r}addNode(t){let r={value:t,previous:null,next:null};if(t.__ln=r,t.previousSibling&&Ey(t.previousSibling)){let n=t.previousSibling.__ln.next;r.next=n,r.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=r,n&&(n.previous=r)}else if(t.nextSibling&&Ey(t.nextSibling)&&t.nextSibling.__ln.previous){let n=t.nextSibling.__ln.previous;r.previous=n,r.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=r,n&&(n.next=r)}else this.head&&(this.head.previous=r),r.next=this.head,this.head=r;r.next===null&&(this.tail=r),this.length++}removeNode(t){let r=t.__ln;this.head&&(r.previous?(r.previous.next=r.next,r.next?r.next.previous=r.previous:this.tail=r.previous):(this.head=r.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}},Ny=(e,t)=>`${e}@${t}`,bp=class{constructor(){R(this,"frozen",!1),R(this,"locked",!1),R(this,"texts",[]),R(this,"attributes",[]),R(this,"attributeMap",new WeakMap),R(this,"removes",[]),R(this,"mapRemoves",[]),R(this,"movedMap",{}),R(this,"addedSet",new Set),R(this,"movedSet",new Set),R(this,"droppedSet",new Set),R(this,"removesSubTreeCache",new Set),R(this,"mutationCb"),R(this,"blockClass"),R(this,"blockSelector"),R(this,"maskTextClass"),R(this,"maskTextSelector"),R(this,"inlineStylesheet"),R(this,"maskInputOptions"),R(this,"maskTextFn"),R(this,"maskInputFn"),R(this,"keepIframeSrcFn"),R(this,"recordCanvas"),R(this,"inlineImages"),R(this,"slimDOMOptions"),R(this,"dataURLOptions"),R(this,"doc"),R(this,"mirror"),R(this,"iframeManager"),R(this,"stylesheetManager"),R(this,"shadowDomManager"),R(this,"canvasManager"),R(this,"processedNodeManager"),R(this,"unattachedDoc"),R(this,"processMutations",t=>{t.forEach(this.processMutation),this.emit()}),R(this,"emit",()=>{if(this.frozen||this.locked)return;let t=[],r=new Set,n=new wp,a=i=>{let d=i,u=ps;for(;u===ps;)d=d&&d.nextSibling,u=d&&this.mirror.getId(d);return u},o=i=>{let d=le.parentNode(i);if(!d||!Bw(i))return;let u=!1;if(i.nodeType===Node.TEXT_NODE){let h=d.tagName;if(h==="TEXTAREA")return;h==="STYLE"&&this.addedSet.has(d)&&(u=!0)}let p=ls(d)?this.mirror.getId(Fw(i)):this.mirror.getId(d),c=a(i);if(p===-1||c===-1)return n.addNode(i);let f=Ya(i,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:h=>{ds(h,this.mirror)&&this.iframeManager.addIframe(h),Dw(h,this.mirror)&&this.stylesheetManager.trackLinkElement(h),Gn(i)&&this.shadowDomManager.addShadowRoot(le.shadowRoot(i),this.doc)},onIframeLoad:(h,m)=>{this.iframeManager.attachIframe(h,m),this.shadowDomManager.observeAttachShadow(h)},onStylesheetLoad:(h,m)=>{this.stylesheetManager.attachLinkElement(h,m)},cssCaptured:u});f&&(t.push({parentId:p,nextId:c,node:f}),r.add(f.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let i of this.movedSet)Py(this.removesSubTreeCache,i,this.mirror)&&!this.movedSet.has(le.parentNode(i))||o(i);for(let i of this.addedSet)!Ty(this.droppedSet,i)&&!Py(this.removesSubTreeCache,i,this.mirror)||Ty(this.movedSet,i)?o(i):this.droppedSet.add(i);let s=null;for(;n.length;){let i=null;if(s){let d=this.mirror.getId(le.parentNode(s.value)),u=a(s.value);d!==-1&&u!==-1&&(i=s)}if(!i){let d=n.tail;for(;d;){let u=d;if(d=d.previous,u){let p=this.mirror.getId(le.parentNode(u.value));if(a(u.value)===-1)continue;if(p!==-1){i=u;break}else{let f=u.value,h=le.parentNode(f);if(h&&h.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let m=le.host(h);if(this.mirror.getId(m)!==-1){i=u;break}}}}}}if(!i){for(;n.head;)n.removeNode(n.head.value);break}s=i.previous,n.removeNode(i.value),o(i.value)}let l={texts:this.texts.map(i=>{let d=i.node,u=le.parentNode(d);return u&&u.tagName==="TEXTAREA"&&this.genTextAreaValueMutation(u),{id:this.mirror.getId(d),value:i.value}}).filter(i=>!r.has(i.id)).filter(i=>this.mirror.has(i.id)),attributes:this.attributes.map(i=>{let{attributes:d}=i;if(typeof d.style=="string"){let u=JSON.stringify(i.styleDiff),p=JSON.stringify(i._unchangedStyles);u.length<d.style.length&&(u+p).split("var(").length===d.style.split("var(").length&&(d.style=i.styleDiff)}return{id:this.mirror.getId(i.node),attributes:d}}).filter(i=>!r.has(i.id)).filter(i=>this.mirror.has(i.id)),removes:this.removes,adds:t};!l.texts.length&&!l.attributes.length&&!l.removes.length&&!l.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.removesSubTreeCache=new Set,this.movedMap={},this.mutationCb(l))}),R(this,"genTextAreaValueMutation",t=>{let r=this.attributeMap.get(t);r||(r={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(r),this.attributeMap.set(t,r));let n=Array.from(le.childNodes(t),a=>le.textContent(a)||"").join("");r.attributes.value=Ti({element:t,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:Ai(t),value:n,maskInputFn:this.maskInputFn})}),R(this,"processMutation",t=>{if(!rp(t.target,this.mirror,this.slimDOMOptions))switch(t.type){case"characterData":{let r=le.textContent(t.target);!It(t.target,this.blockClass,this.blockSelector,!1)&&r!==t.oldValue&&this.texts.push({value:nw(t.target,this.maskTextClass,this.maskTextSelector,!0)&&r?this.maskTextFn?this.maskTextFn(r,Nw(t.target)):r.replace(/[\S]/g,"*"):r,node:t.target});break}case"attributes":{let r=t.target,n=t.attributeName,a=t.target.getAttribute(n);if(n==="value"){let s=Ai(r);a=Ti({element:r,maskInputOptions:this.maskInputOptions,tagName:r.tagName,type:s,value:a,maskInputFn:this.maskInputFn})}if(It(t.target,this.blockClass,this.blockSelector,!1)||a===t.oldValue)return;let o=this.attributeMap.get(t.target);if(r.tagName==="IFRAME"&&n==="src"&&!this.keepIframeSrcFn(a))if(!r.contentDocument)n="rr_src";else return;if(o||(o={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(o),this.attributeMap.set(t.target,o)),n==="type"&&r.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&r.setAttribute("data-rr-is-password","true"),!rw(r.tagName,n))if(o.attributes[n]=tw(this.doc,Ln(r.tagName),Ln(n),a),n==="style"){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}let s=this.unattachedDoc.createElement("span");t.oldValue&&s.setAttribute("style",t.oldValue);for(let l of Array.from(r.style)){let i=r.style.getPropertyValue(l),d=r.style.getPropertyPriority(l);i!==s.style.getPropertyValue(l)||d!==s.style.getPropertyPriority(l)?d===""?o.styleDiff[l]=i:o.styleDiff[l]=[i,d]:o._unchangedStyles[l]=[i,d]}for(let l of Array.from(s.style))r.style.getPropertyValue(l)===""&&(o.styleDiff[l]=!1)}else n==="open"&&r.tagName==="DIALOG"&&(r.matches("dialog:modal")?o.attributes.rr_open_mode="modal":o.attributes.rr_open_mode="non-modal");break}case"childList":{if(It(t.target,this.blockClass,this.blockSelector,!0))return;if(t.target.tagName==="TEXTAREA"){this.genTextAreaValueMutation(t.target);return}t.addedNodes.forEach(r=>this.genAdds(r,t.target)),t.removedNodes.forEach(r=>{let n=this.mirror.getId(r),a=ls(t.target)?this.mirror.getId(le.host(t.target)):this.mirror.getId(t.target);It(t.target,this.blockClass,this.blockSelector,!1)||rp(r,this.mirror,this.slimDOMOptions)||!XL(r,this.mirror)||(this.addedSet.has(r)?(Sp(this.addedSet,r),this.droppedSet.add(r)):this.addedSet.has(t.target)&&n===-1||Pw(t.target,this.mirror)||(this.movedSet.has(r)&&this.movedMap[Ny(n,a)]?Sp(this.movedSet,r):(this.removes.push({parentId:a,id:n,isShadow:ls(t.target)&&is(t.target)?!0:void 0}),ZL(r,this.removesSubTreeCache))),this.mapRemoves.push(r))});break}}}),R(this,"genAdds",(t,r)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(rp(t,this.mirror,this.slimDOMOptions))return;this.movedSet.add(t);let n=null;r&&this.mirror.hasNode(r)&&(n=this.mirror.getId(r)),n&&n!==-1&&(this.movedMap[Ny(this.mirror.getId(t),n)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);It(t,this.blockClass,this.blockSelector,!1)||(le.childNodes(t).forEach(n=>this.genAdds(n)),Gn(t)&&le.childNodes(le.shadowRoot(t)).forEach(n=>{this.processedNodeManager.add(n,this),this.genAdds(n,t)}))}})}init(t){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(r=>{this[r]=t[r]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}};function Sp(e,t){e.delete(t),le.childNodes(t).forEach(r=>Sp(e,r))}function ZL(e,t){let r=[e];for(;r.length;){let n=r.pop();t.has(n)||(t.add(n),le.childNodes(n).forEach(a=>r.push(a)))}}function Py(e,t,r){return e.size===0?!1:ek(e,t)}function ek(e,t,r){let n=le.parentNode(t);return n?e.has(n):!1}function Ty(e,t){return e.size===0?!1:zw(e,t)}function zw(e,t){let r=le.parentNode(t);return r?e.has(r)?!0:zw(e,r):!1}var cs;function tk(e){cs=e}function rk(){cs=void 0}var he=e=>cs?(...r)=>{try{return e(...r)}catch(n){if(cs&&cs(n)===!0)return;throw n}}:e,Xn=[];function vs(e){try{if("composedPath"in e){let t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function Uw(e,t){let r=new bp;Xn.push(r),r.init(e);let[n,a]=_w(),o=new n(he(r.processMutations.bind(r)));return o.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),[o,a]}function nk({mousemoveCb:e,sampling:t,doc:r,mirror:n}){if(t.mousemove===!1)return()=>{};let a=typeof t.mousemove=="number"?t.mousemove:50,o=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500,s=[],l,i=hs(he(p=>{let c=Date.now()-l;e(s.map(f=>(f.timeOffset-=c,f)),p),s=[],l=null}),o),d=he(hs(he(p=>{let c=vs(p),{clientX:f,clientY:h}=yp(p)?p.changedTouches[0]:p;l||(l=ms()),s.push({x:f,y:h,id:n.getId(c),timeOffset:ms()-l}),i(typeof DragEvent<"u"&&p instanceof DragEvent?$.Drag:p instanceof MouseEvent?$.MouseMove:$.TouchMove)}),a,{trailing:!1})),u=[kt("mousemove",d,r),kt("touchmove",d,r),kt("drag",d,r)];return he(()=>{u.forEach(p=>p())})}function ak({mouseInteractionCb:e,doc:t,mirror:r,blockClass:n,blockSelector:a,sampling:o}){if(o.mouseInteraction===!1)return()=>{};let s=o.mouseInteraction===!0||o.mouseInteraction===void 0?{}:o.mouseInteraction,l=[],i=null,d=u=>p=>{let c=vs(p);if(It(c,n,a,!0))return;let f=null,h=u;if("pointerType"in p){switch(p.pointerType){case"mouse":f=jr.Mouse;break;case"touch":f=jr.Touch;break;case"pen":f=jr.Pen;break}f===jr.Touch?Se[u]===Se.MouseDown?h="TouchStart":Se[u]===Se.MouseUp&&(h="TouchEnd"):jr.Pen}else yp(p)&&(f=jr.Touch);f!==null?(i=f,(h.startsWith("Touch")&&f===jr.Touch||h.startsWith("Mouse")&&f===jr.Mouse)&&(f=null)):Se[u]===Se.Click&&(f=i,i=null);let m=yp(p)?p.changedTouches[0]:p;if(!m)return;let y=r.getId(c),{clientX:g,clientY:x}=m;he(e)({type:Se[h],id:y,x:g,y:x,...f!==null&&{pointerType:f}})};return Object.keys(Se).filter(u=>Number.isNaN(Number(u))&&!u.endsWith("_Departed")&&s[u]!==!1).forEach(u=>{let p=Ln(u),c=d(u);if(window.PointerEvent)switch(Se[u]){case Se.MouseDown:case Se.MouseUp:p=p.replace("mouse","pointer");break;case Se.TouchStart:case Se.TouchEnd:return}l.push(kt(p,c,t))}),he(()=>{l.forEach(u=>u())})}function qw({scrollCb:e,doc:t,mirror:r,blockClass:n,blockSelector:a,sampling:o}){let s=he(hs(he(l=>{let i=vs(l);if(!i||It(i,n,a,!0))return;let d=r.getId(i);if(i===t&&t.defaultView){let u=Mw(t.defaultView);e({id:d,x:u.left,y:u.top})}else e({id:d,x:i.scrollLeft,y:i.scrollTop})}),o.scroll||100));return kt("scroll",s,t)}function ok({viewportResizeCb:e},{win:t}){let r=-1,n=-1,a=he(hs(he(()=>{let o=Rw(),s=Ew();(r!==o||n!==s)&&(e({width:Number(s),height:Number(o)}),r=o,n=s)}),200));return kt("resize",a,t)}var sk=["INPUT","TEXTAREA","SELECT"],Ay=new WeakMap;function lk({inputCb:e,doc:t,mirror:r,blockClass:n,blockSelector:a,ignoreClass:o,ignoreSelector:s,maskInputOptions:l,maskInputFn:i,sampling:d,userTriggeredOnInput:u}){function p(x){let v=vs(x),S=x.isTrusted,b=v&&v.tagName;if(v&&b==="OPTION"&&(v=le.parentElement(v)),!v||!b||sk.indexOf(b)<0||It(v,n,a,!0)||v.classList.contains(o)||s&&v.matches(s))return;let w=v.value,C=!1,L=Ai(v)||"";L==="radio"||L==="checkbox"?C=v.checked:(l[b.toLowerCase()]||l[L])&&(w=Ti({element:v,maskInputOptions:l,tagName:b,type:L,value:w,maskInputFn:i})),c(v,u?{text:w,isChecked:C,userTriggered:S}:{text:w,isChecked:C});let k=v.name;L==="radio"&&k&&C&&t.querySelectorAll(`input[type="radio"][name="${k}"]`).forEach(_=>{if(_!==v){let N=_.value;c(_,u?{text:N,isChecked:!C,userTriggered:!1}:{text:N,isChecked:!C})}})}function c(x,v){let S=Ay.get(x);if(!S||S.text!==v.text||S.isChecked!==v.isChecked){Ay.set(x,v);let b=r.getId(x);he(e)({...v,id:b})}}let h=(d.input==="last"?["change"]:["input","change"]).map(x=>kt(x,he(p),t)),m=t.defaultView;if(!m)return()=>{h.forEach(x=>x())};let y=m.Object.getOwnPropertyDescriptor(m.HTMLInputElement.prototype,"value"),g=[[m.HTMLInputElement.prototype,"value"],[m.HTMLInputElement.prototype,"checked"],[m.HTMLSelectElement.prototype,"value"],[m.HTMLTextAreaElement.prototype,"value"],[m.HTMLSelectElement.prototype,"selectedIndex"],[m.HTMLOptionElement.prototype,"selected"]];return y&&y.set&&h.push(...g.map(x=>su(x[0],x[1],{set(){he(p)({target:this,isTrusted:!1})}},!1,m))),he(()=>{h.forEach(x=>x())})}function ji(e){let t=[];function r(n,a){if(Mi("CSSGroupingRule")&&n.parentRule instanceof CSSGroupingRule||Mi("CSSMediaRule")&&n.parentRule instanceof CSSMediaRule||Mi("CSSSupportsRule")&&n.parentRule instanceof CSSSupportsRule||Mi("CSSConditionRule")&&n.parentRule instanceof CSSConditionRule){let s=Array.from(n.parentRule.cssRules).indexOf(n);return a.unshift(s),r(n.parentRule,a)}else if(n.parentStyleSheet){let s=Array.from(n.parentStyleSheet.cssRules).indexOf(n);a.unshift(s)}return a}return r(e,t)}function bn(e,t,r){let n,a;return e?(e.ownerNode?n=t.getId(e.ownerNode):a=r.getId(e),{styleId:a,id:n}):{}}function ik({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:n}){if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};let a=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(a,{apply:he((u,p,c)=>{let[f,h]=c,{id:m,styleId:y}=bn(p,t,r.styleMirror);return(m&&m!==-1||y&&y!==-1)&&e({id:m,styleId:y,adds:[{rule:f,index:h}]}),u.apply(p,c)})}),n.CSSStyleSheet.prototype.addRule=function(u,p,c=this.cssRules.length){let f=`${u} { ${p} }`;return n.CSSStyleSheet.prototype.insertRule.apply(this,[f,c])};let o=n.CSSStyleSheet.prototype.deleteRule;n.CSSStyleSheet.prototype.deleteRule=new Proxy(o,{apply:he((u,p,c)=>{let[f]=c,{id:h,styleId:m}=bn(p,t,r.styleMirror);return(h&&h!==-1||m&&m!==-1)&&e({id:h,styleId:m,removes:[{index:f}]}),u.apply(p,c)})}),n.CSSStyleSheet.prototype.removeRule=function(u){return n.CSSStyleSheet.prototype.deleteRule.apply(this,[u])};let s;n.CSSStyleSheet.prototype.replace&&(s=n.CSSStyleSheet.prototype.replace,n.CSSStyleSheet.prototype.replace=new Proxy(s,{apply:he((u,p,c)=>{let[f]=c,{id:h,styleId:m}=bn(p,t,r.styleMirror);return(h&&h!==-1||m&&m!==-1)&&e({id:h,styleId:m,replace:f}),u.apply(p,c)})}));let l;n.CSSStyleSheet.prototype.replaceSync&&(l=n.CSSStyleSheet.prototype.replaceSync,n.CSSStyleSheet.prototype.replaceSync=new Proxy(l,{apply:he((u,p,c)=>{let[f]=c,{id:h,styleId:m}=bn(p,t,r.styleMirror);return(h&&h!==-1||m&&m!==-1)&&e({id:h,styleId:m,replaceSync:f}),u.apply(p,c)})}));let i={};Ri("CSSGroupingRule")?i.CSSGroupingRule=n.CSSGroupingRule:(Ri("CSSMediaRule")&&(i.CSSMediaRule=n.CSSMediaRule),Ri("CSSConditionRule")&&(i.CSSConditionRule=n.CSSConditionRule),Ri("CSSSupportsRule")&&(i.CSSSupportsRule=n.CSSSupportsRule));let d={};return Object.entries(i).forEach(([u,p])=>{d[u]={insertRule:p.prototype.insertRule,deleteRule:p.prototype.deleteRule},p.prototype.insertRule=new Proxy(d[u].insertRule,{apply:he((c,f,h)=>{let[m,y]=h,{id:g,styleId:x}=bn(f.parentStyleSheet,t,r.styleMirror);return(g&&g!==-1||x&&x!==-1)&&e({id:g,styleId:x,adds:[{rule:m,index:[...ji(f),y||0]}]}),c.apply(f,h)})}),p.prototype.deleteRule=new Proxy(d[u].deleteRule,{apply:he((c,f,h)=>{let[m]=h,{id:y,styleId:g}=bn(f.parentStyleSheet,t,r.styleMirror);return(y&&y!==-1||g&&g!==-1)&&e({id:y,styleId:g,removes:[{index:[...ji(f),m]}]}),c.apply(f,h)})})}),he(()=>{n.CSSStyleSheet.prototype.insertRule=a,n.CSSStyleSheet.prototype.deleteRule=o,s&&(n.CSSStyleSheet.prototype.replace=s),l&&(n.CSSStyleSheet.prototype.replaceSync=l),Object.entries(i).forEach(([u,p])=>{p.prototype.insertRule=d[u].insertRule,p.prototype.deleteRule=d[u].deleteRule})})}function $w({mirror:e,stylesheetManager:t},r){var n,a,o;let s=null;r.nodeName==="#document"?s=e.getId(r):s=e.getId(le.host(r));let l=r.nodeName==="#document"?(n=r.defaultView)==null?void 0:n.Document:(o=(a=r.ownerDocument)==null?void 0:a.defaultView)==null?void 0:o.ShadowRoot,i=l?.prototype?Object.getOwnPropertyDescriptor(l?.prototype,"adoptedStyleSheets"):void 0;return s===null||s===-1||!l||!i?()=>{}:(Object.defineProperty(r,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get(){var d;return(d=i.get)==null?void 0:d.call(this)},set(d){var u;let p=(u=i.set)==null?void 0:u.call(this,d);if(s!==null&&s!==-1)try{t.adoptStyleSheets(d,s)}catch{}return p}}),he(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:i.configurable,enumerable:i.enumerable,get:i.get,set:i.set})}))}function uk({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:n},{win:a}){let o=a.CSSStyleDeclaration.prototype.setProperty;a.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:he((l,i,d)=>{var u;let[p,c,f]=d;if(r.has(p))return o.apply(i,[p,c,f]);let{id:h,styleId:m}=bn((u=i.parentRule)==null?void 0:u.parentStyleSheet,t,n.styleMirror);return(h&&h!==-1||m&&m!==-1)&&e({id:h,styleId:m,set:{property:p,value:c,priority:f},index:ji(i.parentRule)}),l.apply(i,d)})});let s=a.CSSStyleDeclaration.prototype.removeProperty;return a.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:he((l,i,d)=>{var u;let[p]=d;if(r.has(p))return s.apply(i,[p]);let{id:c,styleId:f}=bn((u=i.parentRule)==null?void 0:u.parentStyleSheet,t,n.styleMirror);return(c&&c!==-1||f&&f!==-1)&&e({id:c,styleId:f,remove:{property:p},index:ji(i.parentRule)}),l.apply(i,d)})}),he(()=>{a.CSSStyleDeclaration.prototype.setProperty=o,a.CSSStyleDeclaration.prototype.removeProperty=s})}function dk({mediaInteractionCb:e,blockClass:t,blockSelector:r,mirror:n,sampling:a,doc:o}){let s=he(i=>hs(he(d=>{let u=vs(d);if(!u||It(u,t,r,!0))return;let{currentTime:p,volume:c,muted:f,playbackRate:h,loop:m}=u;e({type:i,id:n.getId(u),currentTime:p,volume:c,muted:f,playbackRate:h,loop:m})}),a.media||500)),l=[kt("play",s(Sn.Play),o),kt("pause",s(Sn.Pause),o),kt("seeked",s(Sn.Seeked),o),kt("volumechange",s(Sn.VolumeChange),o),kt("ratechange",s(Sn.RateChange),o)];return he(()=>{l.forEach(i=>i())})}function ck({fontCb:e,doc:t}){let r=t.defaultView;if(!r)return()=>{};let n=[],a=new WeakMap,o=r.FontFace;r.FontFace=function(i,d,u){let p=new o(i,d,u);return a.set(p,{family:i,buffer:typeof d!="string",descriptors:u,fontSource:typeof d=="string"?d:JSON.stringify(Array.from(new Uint8Array(d)))}),p};let s=Yn(t.fonts,"add",function(l){return function(i){return setTimeout(he(()=>{let d=a.get(i);d&&(e(d),a.delete(i))}),0),l.apply(this,[i])}});return n.push(()=>{r.FontFace=o}),n.push(s),he(()=>{n.forEach(l=>l())})}function fk(e){let{doc:t,mirror:r,blockClass:n,blockSelector:a,selectionCb:o}=e,s=!0,l=he(()=>{let i=t.getSelection();if(!i||s&&i?.isCollapsed)return;s=i.isCollapsed||!1;let d=[],u=i.rangeCount||0;for(let p=0;p<u;p++){let c=i.getRangeAt(p),{startContainer:f,startOffset:h,endContainer:m,endOffset:y}=c;It(f,n,a,!0)||It(m,n,a,!0)||d.push({start:r.getId(f),startOffset:h,end:r.getId(m),endOffset:y})}o({ranges:d})});return l(),kt("selectionchange",l)}function pk({doc:e,customElementCb:t}){let r=e.defaultView;return!r||!r.customElements?()=>{}:Yn(r.customElements,"define",function(a){return function(o,s,l){try{t({define:{name:o}})}catch{console.warn(`Custom element callback failed for ${o}`)}return a.apply(this,[o,s,l])}})}function mk(e,t){let{mutationCb:r,mousemoveCb:n,mouseInteractionCb:a,scrollCb:o,viewportResizeCb:s,inputCb:l,mediaInteractionCb:i,styleSheetRuleCb:d,styleDeclarationCb:u,canvasMutationCb:p,fontCb:c,selectionCb:f,customElementCb:h}=e;e.mutationCb=(...m)=>{t.mutation&&t.mutation(...m),r(...m)},e.mousemoveCb=(...m)=>{t.mousemove&&t.mousemove(...m),n(...m)},e.mouseInteractionCb=(...m)=>{t.mouseInteraction&&t.mouseInteraction(...m),a(...m)},e.scrollCb=(...m)=>{t.scroll&&t.scroll(...m),o(...m)},e.viewportResizeCb=(...m)=>{t.viewportResize&&t.viewportResize(...m),s(...m)},e.inputCb=(...m)=>{t.input&&t.input(...m),l(...m)},e.mediaInteractionCb=(...m)=>{t.mediaInteaction&&t.mediaInteaction(...m),i(...m)},e.styleSheetRuleCb=(...m)=>{t.styleSheetRule&&t.styleSheetRule(...m),d(...m)},e.styleDeclarationCb=(...m)=>{t.styleDeclaration&&t.styleDeclaration(...m),u(...m)},e.canvasMutationCb=(...m)=>{t.canvasMutation&&t.canvasMutation(...m),p(...m)},e.fontCb=(...m)=>{t.font&&t.font(...m),c(...m)},e.selectionCb=(...m)=>{t.selection&&t.selection(...m),f(...m)},e.customElementCb=(...m)=>{t.customElement&&t.customElement(...m),h(...m)}}function hk(e,t={}){let r=e.doc.defaultView;if(!r)return()=>{};mk(e,t);let n,a=()=>{};e.recordDOM&&([n,a]=Uw(e,e.doc));let o=nk(e),s=ak(e),l=qw(e),i=ok(e,{win:r}),d=lk(e),u=dk(e),p=()=>{},c=()=>{},f=()=>{},h=()=>{};e.recordDOM&&(p=ik(e,{win:r}),c=$w(e,e.doc),f=uk(e,{win:r}),e.collectFonts&&(h=ck(e)));let m=fk(e),y=pk(e),g=[];for(let x of e.plugins)g.push(x.observer(x.callback,r,x.options));return he(()=>{Xn.forEach(x=>x.reset()),n?.disconnect(),a(),o(),s(),l(),i(),d(),u(),p(),c(),f(),h(),m(),y(),g.forEach(x=>x())})}function Mi(e){return typeof window[e]<"u"}function Ri(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}var Wi=class{constructor(t){R(this,"iframeIdToRemoteIdMap",new WeakMap),R(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=t}getId(t,r,n,a){let o=n||this.getIdToRemoteIdMap(t),s=a||this.getRemoteIdToIdMap(t),l=o.get(r);return l||(l=this.generateIdFn(),o.set(r,l),s.set(l,r)),l}getIds(t,r){let n=this.getIdToRemoteIdMap(t),a=this.getRemoteIdToIdMap(t);return r.map(o=>this.getId(t,o,n,a))}getRemoteId(t,r,n){let a=n||this.getRemoteIdToIdMap(t);if(typeof r!="number")return r;let o=a.get(r);return o||-1}getRemoteIds(t,r){let n=this.getRemoteIdToIdMap(t);return r.map(a=>this.getRemoteId(t,a,n))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let r=this.iframeIdToRemoteIdMap.get(t);return r||(r=new Map,this.iframeIdToRemoteIdMap.set(t,r)),r}getRemoteIdToIdMap(t){let r=this.iframeRemoteIdToIdMap.get(t);return r||(r=new Map,this.iframeRemoteIdToIdMap.set(t,r)),r}},Cp=class{constructor(t){R(this,"iframes",new WeakMap),R(this,"crossOriginIframeMap",new WeakMap),R(this,"crossOriginIframeMirror",new Wi(ew)),R(this,"crossOriginIframeStyleMirror"),R(this,"crossOriginIframeRootIdMap",new WeakMap),R(this,"mirror"),R(this,"mutationCb"),R(this,"wrappedEmit"),R(this,"loadListener"),R(this,"stylesheetManager"),R(this,"recordCrossOriginIframes"),this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new Wi(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,r){var n,a;this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:r}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((n=t.contentWindow)==null||n.addEventListener("message",this.handleMessage.bind(this))),(a=this.loadListener)==null||a.call(this,t),t.contentDocument&&t.contentDocument.adoptedStyleSheets&&t.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.contentDocument))}handleMessage(t){let r=t;if(r.data.type!=="rrweb"||r.origin!==r.data.origin||!t.source)return;let a=this.crossOriginIframeMap.get(t.source);if(!a)return;let o=this.transformCrossOriginEvent(a,r.data.event);o&&this.wrappedEmit(o,r.data.isCheckout)}transformCrossOriginEvent(t,r){var n;switch(r.type){case V.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(r.data.node,t);let a=r.data.node.id;return this.crossOriginIframeRootIdMap.set(t,a),this.patchRootIdOnNode(r.data.node,a),{timestamp:r.timestamp,type:V.IncrementalSnapshot,data:{source:$.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:r.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case V.Meta:case V.Load:case V.DomContentLoaded:return!1;case V.Plugin:return r;case V.Custom:return this.replaceIds(r.data.payload,t,["id","parentId","previousId","nextId"]),r;case V.IncrementalSnapshot:switch(r.data.source){case $.Mutation:return r.data.adds.forEach(a=>{this.replaceIds(a,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(a.node,t);let o=this.crossOriginIframeRootIdMap.get(t);o&&this.patchRootIdOnNode(a.node,o)}),r.data.removes.forEach(a=>{this.replaceIds(a,t,["parentId","id"])}),r.data.attributes.forEach(a=>{this.replaceIds(a,t,["id"])}),r.data.texts.forEach(a=>{this.replaceIds(a,t,["id"])}),r;case $.Drag:case $.TouchMove:case $.MouseMove:return r.data.positions.forEach(a=>{this.replaceIds(a,t,["id"])}),r;case $.ViewportResize:return!1;case $.MediaInteraction:case $.MouseInteraction:case $.Scroll:case $.CanvasMutation:case $.Input:return this.replaceIds(r.data,t,["id"]),r;case $.StyleSheetRule:case $.StyleDeclaration:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleId"]),r;case $.Font:return r;case $.Selection:return r.data.ranges.forEach(a=>{this.replaceIds(a,t,["start","end"])}),r;case $.AdoptedStyleSheet:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleIds"]),(n=r.data.styles)==null||n.forEach(a=>{this.replaceStyleIds(a,t,["styleId"])}),r}}return!1}replace(t,r,n,a){for(let o of a)!Array.isArray(r[o])&&typeof r[o]!="number"||(Array.isArray(r[o])?r[o]=t.getIds(n,r[o]):r[o]=t.getId(n,r[o]));return r}replaceIds(t,r,n){return this.replace(this.crossOriginIframeMirror,t,r,n)}replaceStyleIds(t,r,n){return this.replace(this.crossOriginIframeStyleMirror,t,r,n)}replaceIdOnNode(t,r){this.replaceIds(t,r,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(n=>{this.replaceIdOnNode(n,r)})}patchRootIdOnNode(t,r){t.type!==Wr.Document&&!t.rootId&&(t.rootId=r),"childNodes"in t&&t.childNodes.forEach(n=>{this.patchRootIdOnNode(n,r)})}},Lp=class{constructor(t){R(this,"shadowDoms",new WeakSet),R(this,"mutationCb"),R(this,"scrollCb"),R(this,"bypassOptions"),R(this,"mirror"),R(this,"restoreHandlers",[]),this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,r){if(!is(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t);let[n]=Uw({...this.bypassOptions,doc:r,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(qw({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),setTimeout(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(le.host(t))),this.restoreHandlers.push($w({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){!t.contentWindow||!t.contentDocument||this.patchAttachShadow(t.contentWindow.Element,t.contentDocument)}patchAttachShadow(t,r){let n=this;this.restoreHandlers.push(Yn(t.prototype,"attachShadow",function(a){return function(o){let s=a.call(this,o),l=le.shadowRoot(this);return l&&Bw(this)&&n.addShadowRoot(l,r),s}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}},Ja="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ss=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(as=0;as<Ja.length;as++)ss[Ja.charCodeAt(as)]=as;var as,gk=function(e){var t=new Uint8Array(e),r,n=t.length,a="";for(r=0;r<n;r+=3)a+=Ja[t[r]>>2],a+=Ja[(t[r]&3)<<4|t[r+1]>>4],a+=Ja[(t[r+1]&15)<<2|t[r+2]>>6],a+=Ja[t[r+2]&63];return n%3===2?a=a.substring(0,a.length-1)+"=":n%3===1&&(a=a.substring(0,a.length-2)+"=="),a},xk=function(e){var t=e.length*.75,r=e.length,n,a=0,o,s,l,i;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);var d=new ArrayBuffer(t),u=new Uint8Array(d);for(n=0;n<r;n+=4)o=ss[e.charCodeAt(n)],s=ss[e.charCodeAt(n+1)],l=ss[e.charCodeAt(n+2)],i=ss[e.charCodeAt(n+3)],u[a++]=o<<2|s>>4,u[a++]=(s&15)<<4|l>>2,u[a++]=(l&3)<<6|i&63;return d},Dy=new Map;function vk(e,t){let r=Dy.get(e);return r||(r=new Map,Dy.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}var Hw=(e,t,r)=>{if(!e||!(Ww(e,t)||typeof e=="object"))return;let n=e.constructor.name,a=vk(r,n),o=a.indexOf(e);return o===-1&&(o=a.length,a.push(e)),o};function Ni(e,t,r){if(e instanceof Array)return e.map(n=>Ni(n,t,r));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){let n=e.constructor.name,a=gk(e);return{rr_type:n,base64:a}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[Ni(e.buffer,t,r),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){let n=e.constructor.name,{src:a}=e;return{rr_type:n,src:a}}else if(e instanceof HTMLCanvasElement){let n="HTMLImageElement",a=e.toDataURL();return{rr_type:n,src:a}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[Ni(e.data,t,r),e.width,e.height]};if(Ww(e,t)||typeof e=="object"){let n=e.constructor.name,a=Hw(e,t,r);return{rr_type:n,index:a}}}}return e}var jw=(e,t,r)=>e.map(n=>Ni(n,t,r)),Ww=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(a=>typeof t[a]=="function").find(a=>e instanceof t[a]);function yk(e,t,r,n){let a=[],o=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(let s of o)try{if(typeof t.CanvasRenderingContext2D.prototype[s]!="function")continue;let l=Yn(t.CanvasRenderingContext2D.prototype,s,function(i){return function(...d){return It(this.canvas,r,n,!0)||setTimeout(()=>{let u=jw(d,t,this);e(this.canvas,{type:Vr["2D"],property:s,args:u})},0),i.apply(this,d)}});a.push(l)}catch{let l=su(t.CanvasRenderingContext2D.prototype,s,{set(i){e(this.canvas,{type:Vr["2D"],property:s,args:[i],setter:!0})}});a.push(l)}return()=>{a.forEach(s=>s())}}function wk(e){return e==="experimental-webgl"?"webgl":e}function Oy(e,t,r,n){let a=[];try{let o=Yn(e.HTMLCanvasElement.prototype,"getContext",function(s){return function(l,...i){if(!It(this,t,r,!0)){let d=wk(l);if("__context"in this||(this.__context=d),n&&["webgl","webgl2"].includes(d))if(i[0]&&typeof i[0]=="object"){let u=i[0];u.preserveDrawingBuffer||(u.preserveDrawingBuffer=!0)}else i.splice(0,1,{preserveDrawingBuffer:!0})}return s.apply(this,[l,...i])}});a.push(o)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{a.forEach(o=>o())}}function Fy(e,t,r,n,a,o){let s=[],l=Object.getOwnPropertyNames(e);for(let i of l)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(i))try{if(typeof e[i]!="function")continue;let d=Yn(e,i,function(u){return function(...p){let c=u.apply(this,p);if(Hw(c,o,this),"tagName"in this.canvas&&!It(this.canvas,n,a,!0)){let f=jw(p,o,this),h={type:t,property:i,args:f};r(this.canvas,h)}return c}});s.push(d)}catch{let d=su(e,i,{set(u){r(this.canvas,{type:t,property:i,args:[u],setter:!0})}});s.push(d)}return s}function bk(e,t,r,n){let a=[];return typeof t.WebGLRenderingContext<"u"&&a.push(...Fy(t.WebGLRenderingContext.prototype,Vr.WebGL,e,r,n,t)),typeof t.WebGL2RenderingContext<"u"&&a.push(...Fy(t.WebGL2RenderingContext.prototype,Vr.WebGL2,e,r,n,t)),()=>{a.forEach(o=>o())}}var Vw=`(function() {
|
|
62
62
|
"use strict";
|
|
63
63
|
var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
64
64
|
var lookup = typeof Uint8Array === "undefined" ? [] : new Uint8Array(256);
|
|
@@ -133,11 +133,12 @@ or you can use record.mirror to access the mirror instance during recording.`,Cy
|
|
|
133
133
|
};
|
|
134
134
|
})();
|
|
135
135
|
//# sourceMappingURL=image-bitmap-data-url-worker-IJpC7g_b.js.map
|
|
136
|
-
`,Ty=typeof self<"u"&&self.Blob&&new Blob([qw],{type:"text/javascript;charset=utf-8"});function hk(e){let t;try{if(t=Ty&&(self.URL||self.webkitURL).createObjectURL(Ty),!t)throw"";let r=new Worker(t,{name:e?.name});return r.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(t)}),r}catch{return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(qw),{name:e?.name})}finally{t&&(self.URL||self.webkitURL).revokeObjectURL(t)}}var Sp=class{constructor(t){R(this,"pendingCanvasMutations",new Map),R(this,"rafStamps",{latestId:0,invokeId:null}),R(this,"mirror"),R(this,"mutationCb"),R(this,"resetObservers"),R(this,"frozen",!1),R(this,"locked",!1),R(this,"processMutation",(l,d)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(l)||this.pendingCanvasMutations.set(l,[]),this.pendingCanvasMutations.get(l).push(d)});let{sampling:r="all",win:n,blockClass:a,blockSelector:o,recordCanvas:s,dataURLOptions:i}=t;this.mutationCb=t.mutationCb,this.mirror=t.mirror,s&&r==="all"&&this.initCanvasMutationObserver(n,a,o),s&&typeof r=="number"&&this.initCanvasFPSObserver(r,n,a,o,{dataURLOptions:i})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(t,r,n,a,o){let s=Py(r,n,a,!0),i=new Map,l=new hk;l.onmessage=h=>{let{id:m}=h.data;if(i.set(m,!1),!("base64"in h.data))return;let{base64:b,type:g,width:x,height:v}=h.data;this.mutationCb({id:m,type:jr["2D"],commands:[{property:"clearRect",args:[0,0,x,v]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:b}],type:g}]},0,0]}]})};let d=1e3/t,u=0,p,c=()=>{let h=[];return r.document.querySelectorAll("canvas").forEach(m=>{kt(m,n,a,!0)||h.push(m)}),h},f=h=>{if(u&&h-u<d){p=requestAnimationFrame(f);return}u=h,c().forEach(async m=>{var b;let g=this.mirror.getId(m);if(i.get(g)||m.width===0||m.height===0)return;if(i.set(g,!0),["webgl","webgl2"].includes(m.__context)){let v=m.getContext(m.__context);((b=v?.getContextAttributes())==null?void 0:b.preserveDrawingBuffer)===!1&&v.clear(v.COLOR_BUFFER_BIT)}let x=await createImageBitmap(m);l.postMessage({id:g,bitmap:x,width:m.width,height:m.height,dataURLOptions:o.dataURLOptions},[x])}),p=requestAnimationFrame(f)};p=requestAnimationFrame(f),this.resetObservers=()=>{s(),cancelAnimationFrame(p)}}initCanvasMutationObserver(t,r,n){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();let a=Py(t,r,n,!1),o=fk(this.processMutation.bind(this),t,r,n),s=mk(this.processMutation.bind(this),t,r,n);this.resetObservers=()=>{a(),o(),s()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let t=r=>{this.rafStamps.latestId=r,requestAnimationFrame(t)};requestAnimationFrame(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,r)=>{let n=this.mirror.getId(r);this.flushPendingCanvasMutationFor(r,n)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,r){if(this.frozen||this.locked)return;let n=this.pendingCanvasMutations.get(t);if(!n||r===-1)return;let a=n.map(s=>{let{type:i,...l}=s;return l}),{type:o}=n[0];this.mutationCb({id:r,type:o,commands:a}),this.pendingCanvasMutations.delete(t)}},Cp=class{constructor(t){R(this,"trackedLinkElements",new WeakSet),R(this,"mutationCb"),R(this,"adoptedStyleSheetCb"),R(this,"styleMirror",new Ul),this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,r){"_cssText"in r.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:r.id,attributes:r.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,r){if(t.length===0)return;let n={id:r,styleIds:[]},a=[];for(let o of t){let s;this.styleMirror.has(o)?s=this.styleMirror.getId(o):(s=this.styleMirror.add(o),a.push({styleId:s,rules:Array.from(o.rules||CSSRule,(i,l)=>({rule:Gy(i,o.href),index:l}))})),n.styleIds.push(s)}a.length>0&&(n.styles=a),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}},Lp=class{constructor(){R(this,"nodeMap",new WeakMap),R(this,"active",!1)}inOtherBuffer(t,r){let n=this.nodeMap.get(t);return n&&Array.from(n).some(a=>a!==r)}add(t,r){this.active||(this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(r))}destroy(){}},We,Rl,ep,Hl=!1;try{if(Array.from([1],e=>e*2)[0]!==2){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=((av=e.contentWindow)==null?void 0:av.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}var hr=Xy();function Qn(e={}){let{emit:t,checkoutEveryNms:r,checkoutEveryNth:n,blockClass:a="rr-block",blockSelector:o=null,ignoreClass:s="rr-ignore",ignoreSelector:i=null,maskTextClass:l="rr-mask",maskTextSelector:d=null,inlineStylesheet:u=!0,maskAllInputs:p,maskInputOptions:c,slimDOMOptions:f,maskInputFn:h,maskTextFn:m,hooks:b,packFn:g,sampling:x={},dataURLOptions:v={},mousemoveWait:S,recordDOM:y=!0,recordCanvas:w=!1,recordCrossOriginIframes:L=!1,recordAfter:C=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:_=!1,collectFonts:I=!1,inlineImages:D=!1,plugins:A,keepIframeSrcFn:k=()=>!1,ignoreCSSAttributes:ke=new Set([]),errorHandler:Ie}=e;XL(Ie);let ue=L?window.parent===window:!0,j=!1;if(!ue)try{window.parent.document&&(j=!1)}catch{j=!0}if(ue&&!t)throw new Error("emit function is required");if(!ue&&!j)return()=>{};S!==void 0&&x.mousemove===void 0&&(x.mousemove=S),hr.reset();let be=p===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:c!==void 0?c:{password:!0},ze=Zy(f);Mw();let Se,we=0,wr=X=>{for(let Me of A||[])Me.eventProcessor&&(X=Me.eventProcessor(X));return g&&!j&&(X=g(X)),X};We=(X,Me)=>{var se;let Re=X;if(Re.timestamp=ds(),(se=Vn[0])!=null&&se.isFrozen()&&Re.type!==W.FullSnapshot&&!(Re.type===W.IncrementalSnapshot&&Re.data.source===q.Mutation)&&Vn.forEach(lt=>lt.unfreeze()),ue)t?.(wr(Re),Me);else if(j){let lt={type:"rrweb",event:wr(Re),origin:window.location.origin,isCheckout:Me};window.parent.postMessage(lt,"*")}if(Re.type===W.FullSnapshot)Se=Re,we=0;else if(Re.type===W.IncrementalSnapshot){if(Re.data.source===q.Mutation&&Re.data.isAttachIframe)return;we++;let lt=n&&we>=n,me=r&&Re.timestamp-Se.timestamp>r;(lt||me)&&Rl(!0)}};let E=X=>{We({type:W.IncrementalSnapshot,data:{source:q.Mutation,...X}})},vt=X=>We({type:W.IncrementalSnapshot,data:{source:q.Scroll,...X}}),yt=X=>We({type:W.IncrementalSnapshot,data:{source:q.CanvasMutation,...X}}),_n=X=>We({type:W.IncrementalSnapshot,data:{source:q.AdoptedStyleSheet,...X}}),Qe=new Cp({mutationCb:E,adoptedStyleSheetCb:_n}),it=new wp({mirror:hr,mutationCb:E,stylesheetManager:Qe,recordCrossOriginIframes:L,wrappedEmit:We});for(let X of A||[])X.getMirror&&X.getMirror({nodeMirror:hr,crossOriginIframeMirror:it.crossOriginIframeMirror,crossOriginIframeStyleMirror:it.crossOriginIframeStyleMirror});let br=new Lp;ep=new Sp({recordCanvas:w,mutationCb:yt,win:window,blockClass:a,blockSelector:o,mirror:hr,sampling:x.canvas,dataURLOptions:v});let Sr=new bp({mutationCb:E,scrollCb:vt,bypassOptions:{blockClass:a,blockSelector:o,maskTextClass:l,maskTextSelector:d,inlineStylesheet:u,maskInputOptions:be,dataURLOptions:v,maskTextFn:m,maskInputFn:h,recordCanvas:w,inlineImages:D,sampling:x,slimDOMOptions:ze,iframeManager:it,stylesheetManager:Qe,canvasManager:ep,keepIframeSrcFn:k,processedNodeManager:br},mirror:hr});Rl=(X=!1)=>{if(!y)return;We({type:W.Meta,data:{href:window.location.href,width:kw(),height:Lw()}},X),Qe.reset(),Sr.init(),Vn.forEach(se=>se.lock());let Me=yC(document,{mirror:hr,blockClass:a,blockSelector:o,maskTextClass:l,maskTextSelector:d,inlineStylesheet:u,maskAllInputs:be,maskTextFn:m,maskInputFn:h,slimDOM:ze,dataURLOptions:v,recordCanvas:w,inlineImages:D,onSerialize:se=>{ss(se,hr)&&it.addIframe(se),Ew(se,hr)&&Qe.trackLinkElement(se),jn(se)&&Sr.addShadowRoot(ne.shadowRoot(se),document)},onIframeLoad:(se,Re)=>{it.attachIframe(se,Re),Sr.observeAttachShadow(se)},onStylesheetLoad:(se,Re)=>{Qe.attachLinkElement(se,Re)},keepIframeSrcFn:k});if(!Me)return console.warn("Failed to snapshot the document");We({type:W.FullSnapshot,data:{node:Me,initialOffset:Cw(window)}},X),Vn.forEach(se=>se.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Qe.adoptStyleSheets(document.adoptedStyleSheets,hr.getId(document))};try{let X=[],Me=Re=>{var lt;return pe(lk)({mutationCb:E,mousemoveCb:(me,la)=>We({type:W.IncrementalSnapshot,data:{source:la,positions:me}}),mouseInteractionCb:me=>We({type:W.IncrementalSnapshot,data:{source:q.MouseInteraction,...me}}),scrollCb:vt,viewportResizeCb:me=>We({type:W.IncrementalSnapshot,data:{source:q.ViewportResize,...me}}),inputCb:me=>We({type:W.IncrementalSnapshot,data:{source:q.Input,...me}}),mediaInteractionCb:me=>We({type:W.IncrementalSnapshot,data:{source:q.MediaInteraction,...me}}),styleSheetRuleCb:me=>We({type:W.IncrementalSnapshot,data:{source:q.StyleSheetRule,...me}}),styleDeclarationCb:me=>We({type:W.IncrementalSnapshot,data:{source:q.StyleDeclaration,...me}}),canvasMutationCb:yt,fontCb:me=>We({type:W.IncrementalSnapshot,data:{source:q.Font,...me}}),selectionCb:me=>{We({type:W.IncrementalSnapshot,data:{source:q.Selection,...me}})},customElementCb:me=>{We({type:W.IncrementalSnapshot,data:{source:q.CustomElement,...me}})},blockClass:a,ignoreClass:s,ignoreSelector:i,maskTextClass:l,maskTextSelector:d,maskInputOptions:be,inlineStylesheet:u,sampling:x,recordDOM:y,recordCanvas:w,inlineImages:D,userTriggeredOnInput:_,collectFonts:I,doc:Re,maskInputFn:h,maskTextFn:m,keepIframeSrcFn:k,blockSelector:o,slimDOMOptions:ze,dataURLOptions:v,mirror:hr,iframeManager:it,stylesheetManager:Qe,shadowDomManager:Sr,processedNodeManager:br,canvasManager:ep,ignoreCSSAttributes:ke,plugins:((lt=A?.filter(me=>me.observer))==null?void 0:lt.map(me=>({observer:me.observer,options:me.options,callback:la=>We({type:W.Plugin,data:{plugin:me.name,payload:la}})})))||[]},b)};it.addLoadListener(Re=>{try{X.push(Me(Re.contentDocument))}catch(lt){console.warn(lt)}});let se=()=>{Rl(),X.push(Me(document)),Hl=!0};return["interactive","complete"].includes(document.readyState)?se():(X.push(Lt("DOMContentLoaded",()=>{We({type:W.DomContentLoaded,data:{}}),C==="DOMContentLoaded"&&se()})),X.push(Lt("load",()=>{We({type:W.Load,data:{}}),C==="load"&&se()},window))),()=>{X.forEach(Re=>{try{Re()}catch(lt){String(lt).toLowerCase().includes("cross-origin")||console.warn(lt)}}),br.destroy(),Hl=!1,KL()}}catch(X){console.warn(X)}}Qn.addCustomEvent=(e,t)=>{if(!Hl)throw new Error("please add custom event after start recording");We({type:W.Custom,data:{tag:e,payload:t}})};Qn.freezePage=()=>{Vn.forEach(e=>e.freeze())};Qn.takeFullSnapshot=e=>{if(!Hl)throw new Error("please take full snapshot after start recording");Rl(e)};Qn.mirror=hr;function gk(e){return{all:e=e||new Map,on:function(t,r){var n=e.get(t);n?n.push(r):e.set(t,[r])},off:function(t,r){var n=e.get(t);n&&(r?n.splice(n.indexOf(r)>>>0,1):e.set(t,[]))},emit:function(t,r){var n=e.get(t);n&&n.slice().map(function(a){a(r)}),(n=e.get("*"))&&n.slice().map(function(a){a(t,r)})}}}function xk(e=window,t=document){if("scrollBehavior"in t.documentElement.style&&e.__forceSmoothScrollPolyfill__!==!0)return;let r=e.HTMLElement||e.Element,n=468,a={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:r.prototype.scroll||l,scrollIntoView:r.prototype.scrollIntoView},o=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now;function s(g){let x=["MSIE ","Trident/","Edge/"];return new RegExp(x.join("|")).test(g)}let i=s(e.navigator.userAgent)?1:0;function l(g,x){this.scrollLeft=g,this.scrollTop=x}function d(g){return .5*(1-Math.cos(Math.PI*g))}function u(g){if(g===null||typeof g!="object"||g.behavior===void 0||g.behavior==="auto"||g.behavior==="instant")return!0;if(typeof g=="object"&&g.behavior==="smooth")return!1;throw new TypeError("behavior member of ScrollOptions "+g.behavior+" is not a valid value for enumeration ScrollBehavior.")}function p(g,x){if(x==="Y")return g.clientHeight+i<g.scrollHeight;if(x==="X")return g.clientWidth+i<g.scrollWidth}function c(g,x){let v=e.getComputedStyle(g,null)["overflow"+x];return v==="auto"||v==="scroll"}function f(g){let x=p(g,"Y")&&c(g,"Y"),v=p(g,"X")&&c(g,"X");return x||v}function h(g){for(;g!==t.body&&f(g)===!1;)g=g.parentNode||g.host;return g}function m(g){let x=o(),v,S,y,w=(x-g.startTime)/n;w=w>1?1:w,v=d(w),S=g.startX+(g.x-g.startX)*v,y=g.startY+(g.y-g.startY)*v,g.method.call(g.scrollable,S,y),(S!==g.x||y!==g.y)&&e.requestAnimationFrame(m.bind(e,g))}function b(g,x,v){let S,y,w,L,C=o();g===t.body?(S=e,y=e.scrollX||e.pageXOffset,w=e.scrollY||e.pageYOffset,L=a.scroll):(S=g,y=g.scrollLeft,w=g.scrollTop,L=l),m({scrollable:S,method:L,startTime:C,startX:y,startY:w,x,y:v})}e.scroll=e.scrollTo=function(){if(arguments[0]!==void 0){if(u(arguments[0])===!0){a.scroll.call(e,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:e.scrollX||e.pageXOffset,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:e.scrollY||e.pageYOffset);return}b.call(e,t.body,arguments[0].left!==void 0?~~arguments[0].left:e.scrollX||e.pageXOffset,arguments[0].top!==void 0?~~arguments[0].top:e.scrollY||e.pageYOffset)}},e.scrollBy=function(){if(arguments[0]!==void 0){if(u(arguments[0])){a.scrollBy.call(e,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:0,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:0);return}b.call(e,t.body,~~arguments[0].left+(e.scrollX||e.pageXOffset),~~arguments[0].top+(e.scrollY||e.pageYOffset))}},r.prototype.scroll=r.prototype.scrollTo=function(){if(arguments[0]===void 0)return;if(u(arguments[0])===!0){if(typeof arguments[0]=="number"&&arguments[1]===void 0)throw new SyntaxError("Value could not be converted");a.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left:typeof arguments[0]!="object"?~~arguments[0]:this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top:arguments[1]!==void 0?~~arguments[1]:this.scrollTop);return}let g=arguments[0].left,x=arguments[0].top;b.call(this,this,typeof g>"u"?this.scrollLeft:~~g,typeof x>"u"?this.scrollTop:~~x)},r.prototype.scrollBy=function(){if(arguments[0]!==void 0){if(u(arguments[0])===!0){a.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop);return}this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior})}},r.prototype.scrollIntoView=function(){if(u(arguments[0])===!0){a.scrollIntoView.call(this,arguments[0]===void 0?!0:arguments[0]);return}let g=h(this),x=g.getBoundingClientRect(),v=this.getBoundingClientRect();g!==t.body?(b.call(this,g,g.scrollLeft+v.left-x.left,g.scrollTop+v.top-x.top),e.getComputedStyle(g).position!=="fixed"&&e.scrollBy({left:x.left,top:x.top,behavior:"smooth"})):e.scrollBy({left:v.left,top:v.top,behavior:"smooth"})}}var kp=class{constructor(t=[],r){R(this,"timeOffset",0),R(this,"speed"),R(this,"actions"),R(this,"raf",null),R(this,"lastTimestamp"),this.actions=t,this.speed=r.speed}addAction(t){let r=this.raf===!0;if(!this.actions.length||this.actions[this.actions.length-1].delay<=t.delay)this.actions.push(t);else{let n=this.findActionIndex(t);this.actions.splice(n,0,t)}r&&(this.raf=requestAnimationFrame(this.rafCheck.bind(this)))}start(){this.timeOffset=0,this.lastTimestamp=performance.now(),this.raf=requestAnimationFrame(this.rafCheck.bind(this))}rafCheck(){let t=performance.now();for(this.timeOffset+=(t-this.lastTimestamp)*this.speed,this.lastTimestamp=t;this.actions.length;){let r=this.actions[0];if(this.timeOffset>=r.delay)this.actions.shift(),r.doAction();else break}this.actions.length>0?this.raf=requestAnimationFrame(this.rafCheck.bind(this)):this.raf=!0}clear(){this.raf&&(this.raf!==!0&&cancelAnimationFrame(this.raf),this.raf=null),this.actions.length=0}setSpeed(t){this.speed=t}isActive(){return this.raf!==null}findActionIndex(t){let r=0,n=this.actions.length-1;for(;r<=n;){let a=Math.floor((r+n)/2);if(this.actions[a].delay<t.delay)r=a+1;else if(this.actions[a].delay>t.delay)n=a-1;else return a+1}return r}};function Ay(e,t){if(e.type===W.IncrementalSnapshot&&e.data.source===q.MouseMove&&e.data.positions&&e.data.positions.length){let r=e.data.positions[0].timeOffset,n=e.timestamp+r;return e.delay=n-t,n-t}return e.delay=e.timestamp-t,e.delay}function Dy(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),s=[];try{for(;(t===void 0||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(i){a={error:i}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return s}var Ka;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(Ka||(Ka={}));var $w={type:"xstate.init"};function tp(e){return e===void 0?[]:[].concat(e)}function ja(e){return{type:"xstate.assign",assignment:e}}function Oy(e,t){return typeof(e=typeof e=="string"&&t&&t[e]?t[e]:e)=="string"?{type:e}:typeof e=="function"?{type:e.name,exec:e}:e}function Wl(e){return function(t){return e===t}}function Hw(e){return typeof e=="string"?{type:e}:e}function Fy(e,t){return{value:e,context:t,actions:[],changed:!1,matches:Wl(e)}}function By(e,t,r){var n=t,a=!1;return[e.filter(function(o){if(o.type==="xstate.assign"){a=!0;var s=Object.assign({},n);return typeof o.assignment=="function"?s=o.assignment(n,r):Object.keys(o.assignment).forEach(function(i){s[i]=typeof o.assignment[i]=="function"?o.assignment[i](n,r):o.assignment[i]}),n=s,!1}return!0}),n,a]}function Ww(e,t){t===void 0&&(t={});var r=Dy(By(tp(e.states[e.initial].entry).map(function(s){return Oy(s,t.actions)}),e.context,$w),2),n=r[0],a=r[1],o={config:e,_options:t,initialState:{value:e.initial,actions:n,context:a,matches:Wl(e.initial)},transition:function(s,i){var l,d,u=typeof s=="string"?{value:s,context:e.context}:s,p=u.value,c=u.context,f=Hw(i),h=e.states[p];if(h.on){var m=tp(h.on[f.type]);try{for(var b=(function(j){var be=typeof Symbol=="function"&&Symbol.iterator,ze=be&&j[be],Se=0;if(ze)return ze.call(j);if(j&&typeof j.length=="number")return{next:function(){return j&&Se>=j.length&&(j=void 0),{value:j&&j[Se++],done:!j}}};throw new TypeError(be?"Object is not iterable.":"Symbol.iterator is not defined.")})(m),g=b.next();!g.done;g=b.next()){var x=g.value;if(x===void 0)return Fy(p,c);var v=typeof x=="string"?{target:x}:x,S=v.target,y=v.actions,w=y===void 0?[]:y,L=v.cond,C=L===void 0?function(){return!0}:L,_=S===void 0,I=S??p,D=e.states[I];if(C(c,f)){var A=Dy(By((_?tp(w):[].concat(h.exit,w,D.entry).filter(function(j){return j})).map(function(j){return Oy(j,o._options.actions)}),c,f),3),k=A[0],ke=A[1],Ie=A[2],ue=S??p;return{value:ue,context:ke,actions:k,changed:S!==p||k.length>0||Ie,matches:Wl(ue)}}}}catch(j){l={error:j}}finally{try{g&&!g.done&&(d=b.return)&&d.call(b)}finally{if(l)throw l.error}}}return Fy(p,c)}};return o}var zy=function(e,t){return e.actions.forEach(function(r){var n=r.exec;return n&&n(e.context,t)})};function jw(e){var t=e.initialState,r=Ka.NotStarted,n=new Set,a={_machine:e,send:function(o){r===Ka.Running&&(t=e.transition(t,o),zy(t,Hw(o)),n.forEach(function(s){return s(t)}))},subscribe:function(o){return n.add(o),o(t),{unsubscribe:function(){return n.delete(o)}}},start:function(o){if(o){var s=typeof o=="object"?o:{context:e.config.context,value:o};t={value:s.value,actions:[],context:s.context,matches:Wl(s.value)}}return r=Ka.Running,zy(t,$w),a},stop:function(){return r=Ka.Stopped,n.clear(),a},get state(){return t},get status(){return r}};return a}function vk(e,t){for(let r=e.length-1;r>=0;r--){let n=e[r];if(n.type===W.Meta&&n.timestamp<=t)return e.slice(r)}return e}function yk(e,{getCastFn:t,applyEventsSynchronously:r,emitter:n}){let a=Ww({id:"player",context:e,initial:"paused",states:{playing:{on:{PAUSE:{target:"paused",actions:["pause"]},CAST_EVENT:{target:"playing",actions:"castEvent"},END:{target:"paused",actions:["resetLastPlayedEvent","pause"]},ADD_EVENT:{target:"playing",actions:["addEvent"]}}},paused:{on:{PLAY:{target:"playing",actions:["recordTimeOffset","play"]},CAST_EVENT:{target:"paused",actions:"castEvent"},TO_LIVE:{target:"live",actions:["startLive"]},ADD_EVENT:{target:"paused",actions:["addEvent"]}}},live:{on:{ADD_EVENT:{target:"live",actions:["addEvent"]},CAST_EVENT:{target:"live",actions:["castEvent"]}}}}},{actions:{castEvent:ja({lastPlayedEvent:(o,s)=>s.type==="CAST_EVENT"?s.payload.event:o.lastPlayedEvent}),recordTimeOffset:ja((o,s)=>{let i=o.timeOffset;return"payload"in s&&"timeOffset"in s.payload&&(i=s.payload.timeOffset),{...o,timeOffset:i,baselineTime:o.events[0].timestamp+i}}),play(o){var s;let{timer:i,events:l,baselineTime:d,lastPlayedEvent:u}=o;i.clear();for(let h of l)Ay(h,d);let p=vk(l,d),c=u?.timestamp;u?.type===W.IncrementalSnapshot&&u.data.source===q.MouseMove&&(c=u.timestamp+((s=u.data.positions[0])==null?void 0:s.timeOffset)),d<(c||0)&&n.emit(ve.PlayBack);let f=new Array;for(let h of p)if(!(c&&c<d&&(h.timestamp<=c||h===u)))if(h.timestamp<d)f.push(h);else{let m=t(h,!1);i.addAction({doAction:()=>{m()},delay:h.delay})}r(f),n.emit(ve.Flush),i.start()},pause(o){o.timer.clear()},resetLastPlayedEvent:ja(o=>({...o,lastPlayedEvent:null})),startLive:ja({baselineTime:(o,s)=>(o.timer.start(),s.type==="TO_LIVE"&&s.payload.baselineTime?s.payload.baselineTime:Date.now())}),addEvent:ja((o,s)=>{let{baselineTime:i,timer:l,events:d}=o;if(s.type==="ADD_EVENT"){let{event:u}=s.payload;Ay(u,i);let p=d.length-1;if(!d[p]||d[p].timestamp<=u.timestamp)d.push(u);else{let h=-1,m=0;for(;m<=p;){let b=Math.floor((m+p)/2);d[b].timestamp<=u.timestamp?m=b+1:p=b-1}h===-1&&(h=m),d.splice(h,0,u)}let c=u.timestamp<i,f=t(u,c);c?f():l.isActive()&&l.addAction({doAction:()=>{f()},delay:u.delay})}return{...o,events:d}})}});return jw(a)}function wk(e){let t=Ww({id:"speed",context:e,initial:"normal",states:{normal:{on:{FAST_FORWARD:{target:"skipping",actions:["recordSpeed","setSpeed"]},SET_SPEED:{target:"normal",actions:["setSpeed"]}}},skipping:{on:{BACK_TO_NORMAL:{target:"normal",actions:["restoreSpeed"]},SET_SPEED:{target:"normal",actions:["setSpeed"]}}}}},{actions:{setSpeed:(r,n)=>{"payload"in n&&r.timer.setSpeed(n.payload.speed)},recordSpeed:ja({normalSpeed:r=>r.timer.speed}),restoreSpeed:r=>{r.timer.setSpeed(r.normalSpeed)}}});return jw(t)}var bk=e=>[`.${e} { background: currentColor }`,"noscript { display: none !important; }"],Uy=new Map;function Vw(e,t){let r=Uy.get(e);return r||(r=new Map,Uy.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}function bn(e,t,r){return async n=>{if(n&&typeof n=="object"&&"rr_type"in n)if(r&&(r.isUnchanged=!1),n.rr_type==="ImageBitmap"&&"args"in n){let a=await bn(e,t,r)(n.args);return await createImageBitmap.apply(null,a)}else if("index"in n){if(r||t===null)return n;let{rr_type:a,index:o}=n;return Vw(t,a)[o]}else if("args"in n){let{rr_type:a,args:o}=n,s=window[a];return new s(...await Promise.all(o.map(bn(e,t,r))))}else{if("base64"in n)return dk(n.base64);if("src"in n){let a=e.get(n.src);if(a)return a;{let o=new Image;return o.src=n.src,e.set(n.src,o),o}}else if("data"in n&&n.rr_type==="Blob"){let a=await Promise.all(n.data.map(bn(e,t,r)));return new Blob(a,{type:n.type})}}else if(Array.isArray(n))return await Promise.all(n.map(bn(e,t,r)));return n}}function Sk(e,t){try{return t===jr.WebGL?e.getContext("webgl")||e.getContext("experimental-webgl"):e.getContext("webgl2")}catch{return null}}var Ck=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject"];function Lk(e,t){if(!t?.constructor)return;let{name:r}=t.constructor;if(!Ck.includes(r))return;let n=Vw(e,r);n.includes(t)||n.push(t)}async function kk({mutation:e,target:t,type:r,imageMap:n,errorHandler:a}){try{let o=Sk(t,r);if(!o)return;if(e.setter){o[e.property]=e.args[0];return}let s=o[e.property],i=await Promise.all(e.args.map(bn(n,o))),l=s.apply(o,i);Lk(o,l);let d=!1}catch(o){a(e,o)}}async function Ik({event:e,mutations:t,target:r,imageMap:n,errorHandler:a}){let o=r.getContext("2d");if(!o){a(t[0],new Error("Canvas context is null"));return}let s=t.map(async l=>Promise.all(l.args.map(bn(n,o))));(await Promise.all(s)).forEach((l,d)=>{let u=t[d];try{if(u.setter){o[u.property]=u.args[0];return}let p=o[u.property];u.property==="drawImage"&&typeof u.args[0]=="string"?(n.get(e),p.apply(o,u.args)):p.apply(o,l)}catch(p){a(u,p)}})}async function qy({event:e,mutation:t,target:r,imageMap:n,canvasEventMap:a,errorHandler:o}){try{let s=a.get(e)||t,i="commands"in s?s.commands:[s];if([jr.WebGL,jr.WebGL2].includes(t.type)){for(let l=0;l<i.length;l++){let d=i[l];await kk({mutation:d,type:t.type,target:r,imageMap:n,errorHandler:o})}return}await Ik({event:e,mutations:i,target:r,imageMap:n,errorHandler:o})}catch(s){o(t,s)}}var Ip=class{constructor(t){R(this,"mediaMap",new Map),R(this,"warn"),R(this,"service"),R(this,"speedService"),R(this,"emitter"),R(this,"getCurrentTime"),R(this,"metadataCallbackMap",new Map),this.warn=t.warn,this.service=t.service,this.speedService=t.speedService,this.emitter=t.emitter,this.getCurrentTime=t.getCurrentTime,this.emitter.on(ve.Start,this.start.bind(this)),this.emitter.on(ve.SkipStart,this.start.bind(this)),this.emitter.on(ve.Pause,this.pause.bind(this)),this.emitter.on(ve.Finish,this.pause.bind(this)),this.speedService.subscribe(()=>{this.syncAllMediaElements()})}syncAllMediaElements(t={pause:!1}){this.mediaMap.forEach((r,n)=>{this.syncTargetWithState(n),t.pause&&n.pause()})}start(){this.syncAllMediaElements()}pause(){this.syncAllMediaElements({pause:!0})}seekTo({time:t,target:r,mediaState:n}){if(n.isPlaying){let o=(t-n.lastInteractionTimeOffset)/1e3*n.playbackRate,s="duration"in r&&r.duration;if(Number.isNaN(s)){this.waitForMetadata(r);return}let i=n.currentTimeAtLastInteraction+o;r.loop&&s!==!1&&(i=i%s),r.currentTime=i}else r.pause(),r.currentTime=n.currentTimeAtLastInteraction}waitForMetadata(t){if(this.metadataCallbackMap.has(t)||!("addEventListener"in t))return;let r=()=>{this.metadataCallbackMap.delete(t);let n=this.mediaMap.get(t);n&&this.seekTo({time:this.getCurrentTime(),target:t,mediaState:n})};this.metadataCallbackMap.set(t,r),t.addEventListener("loadedmetadata",r,{once:!0})}getMediaStateFromMutation({target:t,timeOffset:r,mutation:n}){let a=this.mediaMap.get(t),{type:o,playbackRate:s,currentTime:i,muted:l,volume:d,loop:u}=n;return{isPlaying:o===wn.Play||o!==wn.Pause&&(a?.isPlaying||t.getAttribute("autoplay")!==null),currentTimeAtLastInteraction:i??a?.currentTimeAtLastInteraction??0,lastInteractionTimeOffset:r,playbackRate:s??a?.playbackRate??1,volume:d??a?.volume??1,muted:l??a?.muted??t.getAttribute("muted")===null,loop:u??a?.loop??t.getAttribute("loop")===null}}syncTargetWithState(t){let r=this.mediaMap.get(t);if(!r)return;let{muted:n,loop:a,volume:o,isPlaying:s}=r,i=this.service.state.matches("paused"),l=r.playbackRate*this.speedService.state.context.timer.speed;try{this.seekTo({time:this.getCurrentTime(),target:t,mediaState:r}),t.volume!==o&&(t.volume=o),t.muted=n,t.loop=a,t.playbackRate!==l&&(t.playbackRate=l),s&&!i?t.play():t.pause()}catch(d){this.warn(`Failed to replay media interactions: ${d.message||d}`)}}addMediaElements(t,r,n){if(!["AUDIO","VIDEO"].includes(t.nodeName))return;let a=t,o=n.getMeta(a);if(!o||!("attributes"in o))return;let s=this.service.state.matches("paused"),i=o.attributes,l=!1;i.rr_mediaState?l=i.rr_mediaState==="played":l=a.getAttribute("autoplay")!==null,l&&s&&a.pause();let d=1;typeof i.rr_mediaPlaybackRate=="number"&&(d=i.rr_mediaPlaybackRate);let u=!1;typeof i.rr_mediaMuted=="boolean"?u=i.rr_mediaMuted:u=a.getAttribute("muted")!==null;let p=!1;typeof i.rr_mediaLoop=="boolean"?p=i.rr_mediaLoop:p=a.getAttribute("loop")!==null;let c=1;typeof i.rr_mediaVolume=="number"&&(c=i.rr_mediaVolume);let f=0;typeof i.rr_mediaCurrentTime=="number"&&(f=i.rr_mediaCurrentTime),this.mediaMap.set(a,{isPlaying:l,currentTimeAtLastInteraction:f,lastInteractionTimeOffset:r,playbackRate:d,volume:c,muted:u,loop:p}),this.syncTargetWithState(a)}mediaMutation({target:t,timeOffset:r,mutation:n}){this.mediaMap.set(t,this.getMediaStateFromMutation({target:t,timeOffset:r,mutation:n})),this.syncTargetWithState(t)}isSupportedMediaElement(t){return["AUDIO","VIDEO"].includes(t.nodeName)}reset(){this.mediaMap.clear()}};function _l(e,t){if(e.nodeName!=="DIALOG"||e instanceof vr)return;let r=e,n=r.open,a=n&&r.matches("dialog:modal"),o=r.getAttribute("rr_open_mode"),s=typeof t?.attributes.open=="string"||typeof r.getAttribute("open")=="string",i=o==="modal";if(!(n&&!(a&&o==="non-modal"||!a&&i))){if(!r.isConnected){console.warn("dialog is not attached to the dom",r);return}n&&r.close(),s&&(i?r.showModal():r.show())}}function _k(e,t){if(e.nodeName!=="DIALOG"||e instanceof vr)return;let r=e;if(!r.isConnected){console.warn("dialog is not attached to the dom",r);return}t.attributes.open===null&&(r.removeAttribute("open"),r.removeAttribute("rr_open_mode"))}var Mk=5*1e3,Rk=gk,$y="[replayer]",rp={duration:500,lineCap:"round",lineWidth:3,strokeStyle:"red"};function Hy(e){return e.type==W.IncrementalSnapshot&&(e.data.source==q.TouchMove||e.data.source==q.MouseInteraction&&e.data.type==ye.TouchStart)}var jl=class{constructor(t,r){if(R(this,"wrapper"),R(this,"iframe"),R(this,"UNSAFE_replayCanvas",!1),R(this,"service"),R(this,"speedService"),R(this,"config"),R(this,"usingVirtualDom",!1),R(this,"virtualDom",new Ya),R(this,"mouse"),R(this,"mouseTail",null),R(this,"tailPositions",[]),R(this,"emitter",Rk()),R(this,"nextUserInteractionEvent"),R(this,"legacy_missingNodeRetryMap",{}),R(this,"cache",$v()),R(this,"imageMap",new Map),R(this,"canvasEventMap",new Map),R(this,"mirror",Xy()),R(this,"styleMirror",new Ul),R(this,"mediaManager"),R(this,"firstFullSnapshot",null),R(this,"newDocumentQueue",[]),R(this,"mousePos",null),R(this,"touchActive",null),R(this,"lastMouseDownEvent",null),R(this,"lastHoveredRootNode"),R(this,"lastSelectionData",null),R(this,"constructedStyleMutations",[]),R(this,"adoptedStyleSheets",[]),R(this,"handleResize",i=>{this.iframe.style.display="inherit";for(let l of[this.mouseTail,this.iframe])l&&(l.setAttribute("width",String(i.width)),l.setAttribute("height",String(i.height)))}),R(this,"applyEventsSynchronously",i=>{for(let l of i){switch(l.type){case W.DomContentLoaded:case W.Load:case W.Custom:continue;case W.FullSnapshot:case W.Meta:case W.Plugin:case W.IncrementalSnapshot:break}this.getCastFn(l,!0)()}}),R(this,"getCastFn",(i,l=!1)=>{let d;switch(i.type){case W.DomContentLoaded:case W.Load:break;case W.Custom:d=()=>{this.emitter.emit(ve.CustomEvent,i)};break;case W.Meta:d=()=>this.emitter.emit(ve.Resize,{width:i.data.width,height:i.data.height});break;case W.FullSnapshot:d=()=>{var p;if(this.firstFullSnapshot){if(this.firstFullSnapshot===i){this.firstFullSnapshot=!0;return}}else this.firstFullSnapshot=!0;this.mediaManager.reset(),this.styleMirror.reset(),this.rebuildFullSnapshot(i,l),(p=this.iframe.contentWindow)==null||p.scrollTo(i.data.initialOffset)};break;case W.IncrementalSnapshot:d=()=>{if(this.applyIncremental(i,l),!l&&(i===this.nextUserInteractionEvent&&(this.nextUserInteractionEvent=null,this.backToNormal()),this.config.skipInactive&&!this.nextUserInteractionEvent)){for(let p of this.service.state.context.events)if(!(p.timestamp<=i.timestamp)&&this.isUserInteraction(p)){p.delay-i.delay>this.config.inactivePeriodThreshold*this.speedService.state.context.timer.speed&&(this.nextUserInteractionEvent=p);break}if(this.nextUserInteractionEvent){let p=this.nextUserInteractionEvent.delay-i.delay,c={speed:Math.min(Math.round(p/Mk),this.config.maxSpeed)};this.speedService.send({type:"FAST_FORWARD",payload:c}),this.emitter.emit(ve.SkipStart,c)}}};break}return()=>{d&&d();for(let c of this.config.plugins||[])c.handler&&c.handler(i,l,{replayer:this});this.service.send({type:"CAST_EVENT",payload:{event:i}});let p=this.service.state.context.events.length-1;if(!this.config.liveMode&&i===this.service.state.context.events[p]){let c=()=>{p<this.service.state.context.events.length-1||(this.backToNormal(),this.service.send("END"),this.emitter.emit(ve.Finish))},f=50;i.type===W.IncrementalSnapshot&&i.data.source===q.MouseMove&&i.data.positions.length&&(f+=Math.max(0,-i.data.positions[0].timeOffset)),setTimeout(c,f)}this.emitter.emit(ve.EventCast,i)}}),!r?.liveMode&&t.length<2)throw new Error("Replayer need at least 2 events.");let n={speed:1,maxSpeed:360,root:document.body,loadTimeout:0,skipInactive:!1,inactivePeriodThreshold:10*1e3,showWarning:!0,showDebug:!1,blockClass:"rr-block",liveMode:!1,insertStyleRules:[],triggerFocus:!0,UNSAFE_replayCanvas:!1,pauseAnimation:!0,mouseTail:rp,useVirtualDom:!0,logger:console};this.config=Object.assign({},n,r),this.handleResize=this.handleResize.bind(this),this.getCastFn=this.getCastFn.bind(this),this.applyEventsSynchronously=this.applyEventsSynchronously.bind(this),this.emitter.on(ve.Resize,this.handleResize),this.setupDom();for(let i of this.config.plugins||[])i.getMirror&&i.getMirror({nodeMirror:this.mirror});this.emitter.on(ve.Flush,()=>{if(this.usingVirtualDom){let i={mirror:this.mirror,applyCanvas:(l,d,u)=>{qy({event:l,mutation:d,target:u,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})},applyInput:this.applyInput.bind(this),applyScroll:this.applyScroll.bind(this),applyStyleSheetMutation:(l,d)=>{l.source===q.StyleSheetRule?this.applyStyleSheetRule(l,d):l.source===q.StyleDeclaration&&this.applyStyleDeclaration(l,d)},afterAppend:(l,d)=>{for(let u of this.config.plugins||[])u.onBuild&&u.onBuild(l,{id:d,replayer:this})}};if(this.iframe.contentDocument)try{Bl(this.iframe.contentDocument,this.virtualDom,i,this.virtualDom.mirror)}catch(l){console.warn(l)}if(this.virtualDom.destroyTree(),this.usingVirtualDom=!1,Object.keys(this.legacy_missingNodeRetryMap).length)for(let l in this.legacy_missingNodeRetryMap)try{let d=this.legacy_missingNodeRetryMap[l],u=zl(d.node,this.mirror,this.virtualDom.mirror);Bl(u,d.node,i,this.virtualDom.mirror),d.node=u}catch(d){this.warn(d)}this.constructedStyleMutations.forEach(l=>{this.applyStyleSheetMutation(l)}),this.constructedStyleMutations=[],this.adoptedStyleSheets.forEach(l=>{this.applyAdoptedStyleSheet(l)}),this.adoptedStyleSheets=[]}if(this.mousePos&&(this.moveAndHover(this.mousePos.x,this.mousePos.y,this.mousePos.id,!0,this.mousePos.debugData),this.mousePos=null),this.touchActive===!0?this.mouse.classList.add("touch-active"):this.touchActive===!1&&this.mouse.classList.remove("touch-active"),this.touchActive=null,this.lastMouseDownEvent){let[i,l]=this.lastMouseDownEvent;i.dispatchEvent(l)}this.lastMouseDownEvent=null,this.lastSelectionData&&(this.applySelection(this.lastSelectionData),this.lastSelectionData=null)}),this.emitter.on(ve.PlayBack,()=>{this.firstFullSnapshot=null,this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset()});let a=new kp([],{speed:this.config.speed});this.service=yk({events:t.map(i=>r&&r.unpackFn?r.unpackFn(i):i).sort((i,l)=>i.timestamp-l.timestamp),timer:a,timeOffset:0,baselineTime:0,lastPlayedEvent:null},{getCastFn:this.getCastFn,applyEventsSynchronously:this.applyEventsSynchronously,emitter:this.emitter}),this.service.start(),this.service.subscribe(i=>{this.emitter.emit(ve.StateChange,{player:i})}),this.speedService=wk({normalSpeed:-1,timer:a}),this.speedService.start(),this.speedService.subscribe(i=>{this.emitter.emit(ve.StateChange,{speed:i})}),this.mediaManager=new Ip({warn:this.warn.bind(this),service:this.service,speedService:this.speedService,emitter:this.emitter,getCurrentTime:this.getCurrentTime.bind(this)});let o=this.service.state.context.events.find(i=>i.type===W.Meta),s=this.service.state.context.events.find(i=>i.type===W.FullSnapshot);if(o){let{width:i,height:l}=o.data;setTimeout(()=>{this.emitter.emit(ve.Resize,{width:i,height:l})},0)}s&&setTimeout(()=>{var i;this.firstFullSnapshot||(this.firstFullSnapshot=s,this.rebuildFullSnapshot(s),(i=this.iframe.contentWindow)==null||i.scrollTo(s.data.initialOffset))},1),this.service.state.context.events.find(Hy)&&this.mouse.classList.add("touch-device")}get timer(){return this.service.state.context.timer}on(t,r){return this.emitter.on(t,r),this}off(t,r){return this.emitter.off(t,r),this}setConfig(t){Object.keys(t).forEach(r=>{t[r],this.config[r]=t[r]}),this.config.skipInactive||this.backToNormal(),typeof t.speed<"u"&&this.speedService.send({type:"SET_SPEED",payload:{speed:t.speed}}),typeof t.mouseTail<"u"&&(t.mouseTail===!1?this.mouseTail&&(this.mouseTail.style.display="none"):(this.mouseTail||(this.mouseTail=document.createElement("canvas"),this.mouseTail.width=Number.parseFloat(this.iframe.width),this.mouseTail.height=Number.parseFloat(this.iframe.height),this.mouseTail.classList.add("replayer-mouse-tail"),this.wrapper.insertBefore(this.mouseTail,this.iframe)),this.mouseTail.style.display="inherit"))}getMetaData(){let t=this.service.state.context.events[0],r=this.service.state.context.events[this.service.state.context.events.length-1];return{startTime:t.timestamp,endTime:r.timestamp,totalTime:r.timestamp-t.timestamp}}getCurrentTime(){return this.timer.timeOffset+this.getTimeOffset()}getTimeOffset(){let{baselineTime:t,events:r}=this.service.state.context;return t-r[0].timestamp}getMirror(){return this.mirror}play(t=0){var r,n;this.service.state.matches("paused")?this.service.send({type:"PLAY",payload:{timeOffset:t}}):(this.service.send({type:"PAUSE"}),this.service.send({type:"PLAY",payload:{timeOffset:t}})),(n=(r=this.iframe.contentDocument)==null?void 0:r.getElementsByTagName("html")[0])==null||n.classList.remove("rrweb-paused"),this.emitter.emit(ve.Start)}pause(t){var r,n;t===void 0&&this.service.state.matches("playing")&&this.service.send({type:"PAUSE"}),typeof t=="number"&&(this.play(t),this.service.send({type:"PAUSE"})),(n=(r=this.iframe.contentDocument)==null?void 0:r.getElementsByTagName("html")[0])==null||n.classList.add("rrweb-paused"),this.emitter.emit(ve.Pause)}resume(t=0){this.warn("The 'resume' was deprecated in 1.0. Please use 'play' method which has the same interface."),this.play(t),this.emitter.emit(ve.Resume)}destroy(){this.pause(),this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset(),this.config.root.removeChild(this.wrapper),this.emitter.emit(ve.Destroy)}startLive(t){this.service.send({type:"TO_LIVE",payload:{baselineTime:t}})}addEvent(t){let r=this.config.unpackFn?this.config.unpackFn(t):t;Hy(r)&&this.mouse.classList.add("touch-device"),Promise.resolve().then(()=>this.service.send({type:"ADD_EVENT",payload:{event:r}}))}enableInteract(){this.iframe.setAttribute("scrolling","auto"),this.iframe.style.pointerEvents="auto"}disableInteract(){this.iframe.setAttribute("scrolling","no"),this.iframe.style.pointerEvents="none"}resetCache(){this.cache=$v()}setupDom(){this.wrapper=document.createElement("div"),this.wrapper.classList.add("replayer-wrapper"),this.config.root.appendChild(this.wrapper),this.mouse=document.createElement("div"),this.mouse.classList.add("replayer-mouse"),this.wrapper.appendChild(this.mouse),this.config.mouseTail!==!1&&(this.mouseTail=document.createElement("canvas"),this.mouseTail.classList.add("replayer-mouse-tail"),this.mouseTail.style.display="inherit",this.wrapper.appendChild(this.mouseTail)),this.config.UNSAFE_replayCanvas?(this.iframe=document.createElement("iframe"),this.iframe.setAttribute("sandbox","allow-same-origin allow-scripts"),this.wrapper.appendChild(this.iframe),this.UNSAFE_replayCanvas=!0):(this.iframe=VC({root:this.wrapper}),this.UNSAFE_replayCanvas=!1),this.iframe.style.display="none",this.disableInteract(),this.iframe.contentWindow&&this.iframe.contentDocument&&(xk(this.iframe.contentWindow,this.iframe.contentDocument),Mw(this.iframe.contentWindow))}rebuildFullSnapshot(t,r=!1){if(!this.iframe.contentDocument)return this.warn("Looks like your replayer has been destroyed.");Object.keys(this.legacy_missingNodeRetryMap).length&&this.warn("Found unresolved missing node map",this.legacy_missingNodeRetryMap),this.legacy_missingNodeRetryMap={};let n=[],a=new Set,o=(l,d)=>{if(l.nodeName==="DIALOG"&&a.add(l),this.collectIframeAndAttachDocument(n,l),this.mediaManager.isSupportedMediaElement(l)){let{events:u}=this.service.state.context;this.mediaManager.addMediaElements(l,t.timestamp-u[0].timestamp,this.mirror)}for(let u of this.config.plugins||[])u.onBuild&&u.onBuild(l,{id:d,replayer:this})};this.usingVirtualDom&&(this.virtualDom.destroyTree(),this.usingVirtualDom=!1),this.mirror.reset(),jC(t.data.node,{doc:this.iframe.contentDocument,afterAppend:o,cache:this.cache,mirror:this.mirror,UNSAFE_allowUnprotectedRebuild:this.UNSAFE_replayCanvas}),o(this.iframe.contentDocument,t.data.node.id);for(let{mutationInQueue:l,builtNode:d}of n)this.attachDocumentToIframe(l,d),this.newDocumentQueue=this.newDocumentQueue.filter(u=>u!==l);let{documentElement:s,head:i}=this.iframe.contentDocument;this.insertStyleRules(s,i),a.forEach(l=>_l(l)),this.service.state.matches("playing")||this.iframe.contentDocument.getElementsByTagName("html")[0].classList.add("rrweb-paused"),this.emitter.emit(ve.FullsnapshotRebuilded,t),r||this.waitForStylesheetLoad(),this.config.UNSAFE_replayCanvas&&this.preloadAllImages()}insertStyleRules(t,r){var n;let a=bk(this.config.blockClass).concat(this.config.insertStyleRules);if(this.config.pauseAnimation&&a.push("html.rrweb-paused *, html.rrweb-paused *:before, html.rrweb-paused *:after { animation-play-state: paused !important; }"),!!a.length)if(this.usingVirtualDom){let o=this.virtualDom.createElement("style");this.virtualDom.mirror.add(o,yw(o,this.virtualDom.unserializedId)),t.insertBefore(o,r),o.rules.push({source:q.StyleSheetRule,adds:a.map((s,i)=>({rule:s,index:i}))})}else{let o=document.createElement("style");t.insertBefore(o,r);for(let s=0;s<a.length;s++)(n=o.sheet)==null||n.insertRule(a[s],s)}}attachDocumentToIframe(t,r){let n=this.usingVirtualDom?this.virtualDom.mirror:this.mirror,a=[],o=new Set,s=(i,l)=>{i.nodeName==="DIALOG"&&o.add(i),this.collectIframeAndAttachDocument(a,i);let d=n.getMeta(i);if(d?.type===Wr.Element&&d?.tagName.toUpperCase()==="HTML"){let{documentElement:u,head:p}=r.contentDocument;this.insertStyleRules(u,p)}if(!this.usingVirtualDom)for(let u of this.config.plugins||[])u.onBuild&&u.onBuild(i,{id:l,replayer:this})};os(t.node,{doc:r.contentDocument,mirror:n,hackCss:!0,skipChild:!1,afterAppend:s,cache:this.cache}),s(r.contentDocument,t.node.id);for(let{mutationInQueue:i,builtNode:l}of a)this.attachDocumentToIframe(i,l),this.newDocumentQueue=this.newDocumentQueue.filter(d=>d!==i);o.forEach(i=>_l(i))}collectIframeAndAttachDocument(t,r){if(ss(r,this.mirror)){let n=this.newDocumentQueue.find(a=>a.parentId===this.mirror.getId(r));n&&t.push({mutationInQueue:n,builtNode:r})}}waitForStylesheetLoad(){var t;let r=(t=this.iframe.contentDocument)==null?void 0:t.head;if(r){let n=new Set,a,o=this.service.state,s=()=>{o=this.service.state};this.emitter.on(ve.Start,s),this.emitter.on(ve.Pause,s);let i=()=>{this.emitter.off(ve.Start,s),this.emitter.off(ve.Pause,s)};r.querySelectorAll('link[rel="stylesheet"]').forEach(l=>{l.sheet||(n.add(l),l.addEventListener("load",()=>{n.delete(l),n.size===0&&a!==-1&&(o.matches("playing")&&this.play(this.getCurrentTime()),this.emitter.emit(ve.LoadStylesheetEnd),a&&clearTimeout(a),i())}))}),n.size>0&&(this.service.send({type:"PAUSE"}),this.emitter.emit(ve.LoadStylesheetStart),a=setTimeout(()=>{o.matches("playing")&&this.play(this.getCurrentTime()),a=-1,i()},this.config.loadTimeout))}}async preloadAllImages(){let t=[];for(let r of this.service.state.context.events)r.type===W.IncrementalSnapshot&&r.data.source===q.CanvasMutation&&(t.push(this.deserializeAndPreloadCanvasEvents(r.data,r)),("commands"in r.data?r.data.commands:[r.data]).forEach(a=>{this.preloadImages(a,r)}));return Promise.all(t)}preloadImages(t,r){if(t.property==="drawImage"&&typeof t.args[0]=="string"&&!this.imageMap.has(r)){let n=document.createElement("canvas"),a=n.getContext("2d"),o=a?.createImageData(n.width,n.height);a?.putImageData(o,0,0)}}async deserializeAndPreloadCanvasEvents(t,r){if(!this.canvasEventMap.has(r)){let n={isUnchanged:!0};if("commands"in t){let a=await Promise.all(t.commands.map(async o=>{let s=await Promise.all(o.args.map(bn(this.imageMap,null,n)));return{...o,args:s}}));n.isUnchanged===!1&&this.canvasEventMap.set(r,{...t,commands:a})}else{let a=await Promise.all(t.args.map(bn(this.imageMap,null,n)));n.isUnchanged===!1&&this.canvasEventMap.set(r,{...t,args:a})}}}applyIncremental(t,r){var n,a,o;let{data:s}=t;switch(s.source){case q.Mutation:{try{this.applyMutation(s,r)}catch(i){this.warn(`Exception in mutation ${i.message||i}`,s)}break}case q.Drag:case q.TouchMove:case q.MouseMove:if(r){let i=s.positions[s.positions.length-1];this.mousePos={x:i.x,y:i.y,id:i.id,debugData:s}}else s.positions.forEach(i=>{let l={doAction:()=>{this.moveAndHover(i.x,i.y,i.id,r,s)},delay:i.timeOffset+t.timestamp-this.service.state.context.baselineTime};this.timer.addAction(l)}),this.timer.addAction({doAction(){},delay:t.delay-((n=s.positions[0])==null?void 0:n.timeOffset)});break;case q.MouseInteraction:{if(s.id===-1)break;let i=new Event(Sn(ye[s.type])),l=this.mirror.getNode(s.id);if(!l)return this.debugNodeNotFound(s,s.id);this.emitter.emit(ve.MouseInteraction,{type:s.type,target:l});let{triggerFocus:d}=this.config;switch(s.type){case ye.Blur:"blur"in l&&l.blur();break;case ye.Focus:d&&l.focus&&l.focus({preventScroll:!0});break;case ye.Click:case ye.TouchStart:case ye.TouchEnd:case ye.MouseDown:case ye.MouseUp:r?(s.type===ye.TouchStart?this.touchActive=!0:s.type===ye.TouchEnd&&(this.touchActive=!1),s.type===ye.MouseDown?this.lastMouseDownEvent=[l,i]:s.type===ye.MouseUp&&(this.lastMouseDownEvent=null),this.mousePos={x:s.x||0,y:s.y||0,id:s.id,debugData:s}):(s.type===ye.TouchStart&&(this.tailPositions.length=0),this.moveAndHover(s.x||0,s.y||0,s.id,r,s),s.type===ye.Click?(this.mouse.classList.remove("active"),this.mouse.offsetWidth,this.mouse.classList.add("active")):s.type===ye.TouchStart?(this.mouse.offsetWidth,this.mouse.classList.add("touch-active")):s.type===ye.TouchEnd?this.mouse.classList.remove("touch-active"):l.dispatchEvent(i));break;case ye.TouchCancel:r?this.touchActive=!1:this.mouse.classList.remove("touch-active");break;default:l.dispatchEvent(i)}break}case q.Scroll:{if(s.id===-1)break;if(this.usingVirtualDom){let i=this.virtualDom.mirror.getNode(s.id);if(!i)return this.debugNodeNotFound(s,s.id);i.scrollData=s;break}this.applyScroll(s,r);break}case q.ViewportResize:this.emitter.emit(ve.Resize,{width:s.width,height:s.height});break;case q.Input:{if(s.id===-1)break;if(this.usingVirtualDom){let i=this.virtualDom.mirror.getNode(s.id);if(!i)return this.debugNodeNotFound(s,s.id);i.inputData=s;break}this.applyInput(s);break}case q.MediaInteraction:{let i=this.usingVirtualDom?this.virtualDom.mirror.getNode(s.id):this.mirror.getNode(s.id);if(!i)return this.debugNodeNotFound(s,s.id);let l=i,{events:d}=this.service.state.context;this.mediaManager.mediaMutation({target:l,timeOffset:t.timestamp-d[0].timestamp,mutation:s});break}case q.StyleSheetRule:case q.StyleDeclaration:{this.usingVirtualDom?s.styleId?this.constructedStyleMutations.push(s):s.id&&((a=this.virtualDom.mirror.getNode(s.id))==null||a.rules.push(s)):this.applyStyleSheetMutation(s);break}case q.CanvasMutation:{if(!this.config.UNSAFE_replayCanvas)return;if(this.usingVirtualDom){let i=this.virtualDom.mirror.getNode(s.id);if(!i)return this.debugNodeNotFound(s,s.id);i.canvasMutations.push({event:t,mutation:s})}else{let i=this.mirror.getNode(s.id);if(!i)return this.debugNodeNotFound(s,s.id);qy({event:t,mutation:s,target:i,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})}break}case q.Font:{try{let i=new FontFace(s.family,s.buffer?new Uint8Array(JSON.parse(s.fontSource)):s.fontSource,s.descriptors);(o=this.iframe.contentDocument)==null||o.fonts.add(i)}catch(i){this.warn(i)}break}case q.Selection:{if(r){this.lastSelectionData=s;break}this.applySelection(s);break}case q.AdoptedStyleSheet:{this.usingVirtualDom?this.adoptedStyleSheets.push(s):this.applyAdoptedStyleSheet(s);break}}}applyMutation(t,r){if(this.config.useVirtualDom&&!this.usingVirtualDom&&r&&(this.usingVirtualDom=!0,IL(this.iframe.contentDocument,this.mirror,this.virtualDom),Object.keys(this.legacy_missingNodeRetryMap).length))for(let d in this.legacy_missingNodeRetryMap)try{let u=this.legacy_missingNodeRetryMap[d],p=vw(u.node,this.virtualDom,this.mirror);p&&(u.node=p)}catch(u){this.warn(u)}let n=this.usingVirtualDom?this.virtualDom.mirror:this.mirror;t.removes=t.removes.filter(d=>n.getNode(d.id)?!0:(this.warnNodeNotFound(t,d.id),!1)),t.removes.forEach(d=>{var u;let p=n.getNode(d.id);if(!p)return;let c=n.getNode(d.parentId);if(!c)return this.warnNodeNotFound(t,d.parentId);if(d.isShadow&&jn(c)&&(c=c.shadowRoot),n.removeNodeFromMap(p),c)try{c.removeChild(p),this.usingVirtualDom&&p.nodeName==="#text"&&c.nodeName==="STYLE"&&((u=c.rules)==null?void 0:u.length)>0&&(c.rules=[])}catch(f){if(f instanceof DOMException)this.warn("parent could not remove child in mutation",c,p,t);else throw f}});let a={...this.legacy_missingNodeRetryMap},o=[],s=d=>{let u=null;return d.nextId&&(u=n.getNode(d.nextId)),d.nextId!==null&&d.nextId!==void 0&&d.nextId!==-1&&!u},i=d=>{var u,p;if(!this.iframe.contentDocument)return this.warn("Looks like your replayer has been destroyed.");let c=n.getNode(d.parentId);if(!c)return d.node.type===Wr.Document?this.newDocumentQueue.push(d):o.push(d);d.node.isShadow&&(jn(c)||c.attachShadow({mode:"open"}),c=c.shadowRoot);let f=null,h=null;if(d.previousId&&(f=n.getNode(d.previousId)),d.nextId&&(h=n.getNode(d.nextId)),s(d))return o.push(d);if(d.node.rootId&&!n.getNode(d.node.rootId))return;let m=d.node.rootId?n.getNode(d.node.rootId):this.usingVirtualDom?this.virtualDom:this.iframe.contentDocument;if(ss(c,n)){this.attachDocumentToIframe(d,c);return}let b=(v,S)=>{if(!this.usingVirtualDom){_l(v);for(let y of this.config.plugins||[])y.onBuild&&y.onBuild(v,{id:S,replayer:this})}},g=os(d.node,{doc:m,mirror:n,skipChild:!0,hackCss:!0,cache:this.cache,afterAppend:b});if(d.previousId===-1||d.nextId===-1){a[d.node.id]={node:g,mutation:d};return}let x=n.getMeta(c);if(x&&x.type===Wr.Element&&d.node.type===Wr.Text){let v=Array.isArray(c.childNodes)?c.childNodes:Array.from(c.childNodes);if(x.tagName==="textarea")for(let S of v)S.nodeType===c.TEXT_NODE&&c.removeChild(S);else if(x.tagName==="style"&&v.length===1)for(let S of v)S.nodeType===c.TEXT_NODE&&!n.hasNode(S)&&(g.textContent=S.textContent,c.removeChild(S))}else if(x?.type===Wr.Document){let v=c;d.node.type===Wr.DocumentType&&((u=v.childNodes[0])==null?void 0:u.nodeType)===Node.DOCUMENT_TYPE_NODE&&v.removeChild(v.childNodes[0]),g.nodeName==="HTML"&&v.documentElement&&v.removeChild(v.documentElement)}if(f&&f.nextSibling&&f.nextSibling.parentNode?c.insertBefore(g,f.nextSibling):h&&h.parentNode?c.contains(h)?c.insertBefore(g,h):c.insertBefore(g,null):c.appendChild(g),b(g,d.node.id),this.usingVirtualDom&&g.nodeName==="#text"&&c.nodeName==="STYLE"&&((p=c.rules)==null?void 0:p.length)>0&&(c.rules=[]),ss(g,this.mirror)){let v=this.mirror.getId(g),S=this.newDocumentQueue.find(y=>y.parentId===v);S&&(this.attachDocumentToIframe(S,g),this.newDocumentQueue=this.newDocumentQueue.filter(y=>y!==S))}(d.previousId||d.nextId)&&this.legacy_resolveMissingNode(a,c,g,d)};t.adds.forEach(d=>{i(d)});let l=Date.now();for(;o.length;){let d=$L(o);if(o.length=0,Date.now()-l>500){this.warn("Timeout in the loop, please check the resolve tree data:",d);break}for(let u of d)n.getNode(u.value.parentId)?Rw(u,c=>{i(c)}):this.debug("Drop resolve tree since there is no parent for the root node.",u)}Object.keys(a).length&&Object.assign(this.legacy_missingNodeRetryMap,a),HL(t.texts).forEach(d=>{var u;let p=n.getNode(d.id);if(!p)return t.removes.find(f=>f.id===d.id)?void 0:this.warnNodeNotFound(t,d.id);let c=p.parentElement;if(d.value&&c&&c.tagName==="STYLE"?p.textContent=Yl(d.value,this.cache):p.textContent=d.value,this.usingVirtualDom){let f=p.parentNode;((u=f?.rules)==null?void 0:u.length)>0&&(f.rules=[])}}),t.attributes.forEach(d=>{var u;let p=n.getNode(d.id);if(!p)return t.removes.find(c=>c.id===d.id)?void 0:this.warnNodeNotFound(t,d.id);for(let c in d.attributes)if(typeof c=="string"){let f=d.attributes[c];if(f===null)p.removeAttribute(c),c==="open"&&_k(p,d);else if(typeof f=="string")try{if(c==="_cssText"&&(p.nodeName==="LINK"||p.nodeName==="STYLE"))try{let h=n.getMeta(p),m=os({...h,attributes:{...h.attributes,...d.attributes}},{doc:p.ownerDocument,mirror:n,skipChild:!0,hackCss:!0,cache:this.cache});Object.assign(h.attributes,d.attributes);let b=p.nextSibling,g=p.parentNode;if(m&&g){g.removeChild(p),g.insertBefore(m,b),n.replace(d.id,m);break}}catch{}if(c==="value"&&p.nodeName==="TEXTAREA"){let h=p;h.childNodes.forEach(b=>h.removeChild(b));let m=(u=p.ownerDocument)==null?void 0:u.createTextNode(f);m&&h.appendChild(m)}else p.setAttribute(c,f);c==="rr_open_mode"&&p.nodeName==="DIALOG"&&_l(p,d)}catch(h){this.warn("An error occurred may due to the checkout feature.",h)}else if(c==="style"){let h=f,m=p;for(let b in h)if(h[b]===!1)m.style.removeProperty(b);else if(h[b]instanceof Array){let g=h[b];m.style.setProperty(b,g[0],g[1])}else{let g=h[b];m.style.setProperty(b,g)}}}})}applyScroll(t,r){var n,a;let o=this.mirror.getNode(t.id);if(!o)return this.debugNodeNotFound(t,t.id);let s=this.mirror.getMeta(o);if(o===this.iframe.contentDocument)(n=this.iframe.contentWindow)==null||n.scrollTo({top:t.y,left:t.x,behavior:r?"auto":"smooth"});else if(s?.type===Wr.Document)(a=o.defaultView)==null||a.scrollTo({top:t.y,left:t.x,behavior:r?"auto":"smooth"});else try{o.scrollTo({top:t.y,left:t.x,behavior:r?"auto":"smooth"})}catch{}}applyInput(t){let r=this.mirror.getNode(t.id);if(!r)return this.debugNodeNotFound(t,t.id);try{r.checked=t.isChecked,r.value=t.text}catch{}}applySelection(t){try{let r=new Set,n=t.ranges.map(({start:a,startOffset:o,end:s,endOffset:i})=>{let l=this.mirror.getNode(a),d=this.mirror.getNode(s);if(!l||!d)return;let u=new Range;u.setStart(l,o),u.setEnd(d,i);let p=l.ownerDocument,c=p?.getSelection();return c&&r.add(c),{range:u,selection:c}});r.forEach(a=>a.removeAllRanges()),n.forEach(a=>{var o;return a&&((o=a.selection)==null?void 0:o.addRange(a.range))})}catch{}}applyStyleSheetMutation(t){var r;let n=null;t.styleId?n=this.styleMirror.getStyle(t.styleId):t.id&&(n=((r=this.mirror.getNode(t.id))==null?void 0:r.sheet)||null),n&&(t.source===q.StyleSheetRule?this.applyStyleSheetRule(t,n):t.source===q.StyleDeclaration&&this.applyStyleDeclaration(t,n))}applyStyleSheetRule(t,r){var n,a,o,s;if((n=t.adds)==null||n.forEach(({rule:i,index:l})=>{try{if(Array.isArray(l)){let{positions:d,index:u}=Ly(l),p=ts(r.cssRules,d);p?.insertRule(i,u)}else{let d=l===void 0?void 0:Math.min(l,r.cssRules.length);r?.insertRule(i,d)}}catch{}}),(a=t.removes)==null||a.forEach(({index:i})=>{try{if(Array.isArray(i)){let{positions:l,index:d}=Ly(i),u=ts(r.cssRules,l);u?.deleteRule(d||0)}else r?.deleteRule(i)}catch{}}),typeof t.replace=="string")try{(o=r.replace)==null||o.call(r,t.replace)}catch{}if(typeof t.replaceSync=="string")try{(s=r.replaceSync)==null||s.call(r,t.replaceSync)}catch{}}applyStyleDeclaration(t,r){if(t.set){let n=ts(r.rules,t.index);n?.style&&n.style.setProperty(t.set.property,t.set.value,t.set.priority)}if(t.remove){let n=ts(r.rules,t.index);n?.style&&n.style.removeProperty(t.remove.property)}}applyAdoptedStyleSheet(t){var r;let n=this.mirror.getNode(t.id);if(!n)return;(r=t.styles)==null||r.forEach(i=>{var l;let d=null,u=null;if(jn(n)?u=((l=n.ownerDocument)==null?void 0:l.defaultView)||null:n.nodeName==="#document"&&(u=n.defaultView),!!u)try{d=new u.CSSStyleSheet,this.styleMirror.add(d,i.styleId),this.applyStyleSheetRule({source:q.StyleSheetRule,adds:i.rules},d)}catch{}});let a=10,o=0,s=(i,l)=>{let d=l.map(u=>this.styleMirror.getStyle(u)).filter(u=>u!==null);jn(i)?i.shadowRoot.adoptedStyleSheets=d:i.nodeName==="#document"&&(i.adoptedStyleSheets=d),d.length!==l.length&&o<a&&(setTimeout(()=>s(i,l),0+100*o),o++)};s(n,t.styleIds)}legacy_resolveMissingNode(t,r,n,a){let{previousId:o,nextId:s}=a,i=o&&t[o],l=s&&t[s];if(i){let{node:d,mutation:u}=i;r.insertBefore(d,n),delete t[u.node.id],delete this.legacy_missingNodeRetryMap[u.node.id],(u.previousId||u.nextId)&&this.legacy_resolveMissingNode(t,r,d,u)}if(l){let{node:d,mutation:u}=l;r.insertBefore(d,n.nextSibling),delete t[u.node.id],delete this.legacy_missingNodeRetryMap[u.node.id],(u.previousId||u.nextId)&&this.legacy_resolveMissingNode(t,r,d,u)}}moveAndHover(t,r,n,a,o){let s=this.mirror.getNode(n);if(!s)return this.debugNodeNotFound(o,n);let i=Pw(s,this.iframe),l=t*i.absoluteScale+i.x,d=r*i.absoluteScale+i.y;this.mouse.style.left=`${l}px`,this.mouse.style.top=`${d}px`,a||this.drawMouseTail({x:l,y:d}),this.hoverElements(s)}drawMouseTail(t){if(!this.mouseTail)return;let{lineCap:r,lineWidth:n,strokeStyle:a,duration:o}=this.config.mouseTail===!0?rp:Object.assign({},rp,this.config.mouseTail),s=()=>{if(!this.mouseTail)return;let i=this.mouseTail.getContext("2d");!i||!this.tailPositions.length||(i.clearRect(0,0,this.mouseTail.width,this.mouseTail.height),i.beginPath(),i.lineWidth=n,i.lineCap=r,i.strokeStyle=a,i.moveTo(this.tailPositions[0].x,this.tailPositions[0].y),this.tailPositions.forEach(l=>i.lineTo(l.x,l.y)),i.stroke())};this.tailPositions.push(t),s(),setTimeout(()=>{this.tailPositions=this.tailPositions.filter(i=>i!==t),s()},o/this.speedService.state.context.timer.speed)}hoverElements(t){var r;(r=this.lastHoveredRootNode||this.iframe.contentDocument)==null||r.querySelectorAll(".\\:hover").forEach(a=>{a.classList.remove(":hover")}),this.lastHoveredRootNode=t.getRootNode();let n=t;for(;n;)n.classList&&n.classList.add(":hover"),n=n.parentElement}isUserInteraction(t){return t.type!==W.IncrementalSnapshot?!1:t.data.source>q.Mutation&&t.data.source<=q.Input}backToNormal(){this.nextUserInteractionEvent=null,!this.speedService.state.matches("normal")&&(this.speedService.send({type:"BACK_TO_NORMAL"}),this.emitter.emit(ve.SkipEnd,{speed:this.speedService.state.context.normalSpeed}))}warnNodeNotFound(t,r){this.warn(`Node with id '${r}' not found. `,t)}warnCanvasMutationFailed(t,r){this.warn("Has error on canvas update",r,"canvas mutation:",t)}debugNodeNotFound(t,r){this.debug(`Node with id '${r}' not found. `,t)}warn(...t){this.config.showWarning&&this.config.logger.warn($y,...t)}debug(...t){this.config.showDebug&&this.config.logger.log($y,...t)}},{addCustomEvent:W_}=Qn,{freezePage:j_}=Qn,{takeFullSnapshot:V_}=Qn;var It=F(fe(),1);var ou=F(fe());var Gw=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),au=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim();var hs=F(fe());var Xw={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var Kw=(0,hs.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:a="",children:o,iconNode:s,...i},l)=>(0,hs.createElement)("svg",{ref:l,...Xw,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:au("lucide",a),...i},[...s.map(([d,u])=>(0,hs.createElement)(d,u)),...Array.isArray(o)?o:[o]]));var U=(e,t)=>{let r=(0,ou.forwardRef)(({className:n,...a},o)=>(0,ou.createElement)(Kw,{ref:o,iconNode:t,className:au(`lucide-${Gw(e)}`,n),...a}));return r.displayName=`${e}`,r};var Za=U("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);var Yn=U("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);var Jn=U("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);var Zn=U("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);var gs=U("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);var xs=U("Command",[["path",{d:"M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3",key:"11bfej"}]]);var vs=U("Disc",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);var ea=U("FastForward",[["polygon",{points:"13 19 22 12 13 5 13 19",key:"587y9g"}],["polygon",{points:"2 19 11 12 2 5 2 19",key:"3pweh0"}]]);var ys=U("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);var ws=U("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);var bs=U("Keyboard",[["path",{d:"M10 8h.01",key:"1r9ogq"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M14 8h.01",key:"1primd"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"M18 8h.01",key:"emo2bl"}],["path",{d:"M6 8h.01",key:"x9i8wu"}],["path",{d:"M7 16h10",key:"wp8him"}],["path",{d:"M8 12h.01",key:"czm47f"}],["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}]]);var Cn=U("Link2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]);var Ss=U("Magnet",[["path",{d:"m6 15-4-4 6.75-6.77a7.79 7.79 0 0 1 11 11L13 22l-4-4 6.39-6.36a2.14 2.14 0 0 0-3-3L6 15",key:"1i3lhw"}],["path",{d:"m5 8 4 4",key:"j6kj7e"}],["path",{d:"m12 15 4 4",key:"lnac28"}]]);var ta=U("Maximize",[["path",{d:"M8 3H5a2 2 0 0 0-2 2v3",key:"1dcmit"}],["path",{d:"M21 8V5a2 2 0 0 0-2-2h-3",key:"1e4gt3"}],["path",{d:"M3 16v3a2 2 0 0 0 2 2h3",key:"wsl5sc"}],["path",{d:"M16 21h3a2 2 0 0 0 2-2v-3",key:"18trek"}]]);var ra=U("Minimize",[["path",{d:"M8 3v3a2 2 0 0 1-2 2H3",key:"hohbtr"}],["path",{d:"M21 8h-3a2 2 0 0 1-2-2V3",key:"5jw1f3"}],["path",{d:"M3 16h3a2 2 0 0 1 2 2v3",key:"198tvr"}],["path",{d:"M16 21v-3a2 2 0 0 1 2-2h3",key:"ph8mxp"}]]);var Cs=U("MonitorPlay",[["path",{d:"M10 7.75a.75.75 0 0 1 1.142-.638l3.664 2.249a.75.75 0 0 1 0 1.278l-3.664 2.25a.75.75 0 0 1-1.142-.64z",key:"1pctta"}],["path",{d:"M12 17v4",key:"1riwvh"}],["path",{d:"M8 21h8",key:"1ev6f3"}],["rect",{x:"2",y:"3",width:"20",height:"14",rx:"2",key:"x3v2xh"}]]);var Ls=U("MousePointer2",[["path",{d:"M4.037 4.688a.495.495 0 0 1 .651-.651l16 6.5a.5.5 0 0 1-.063.947l-6.124 1.58a2 2 0 0 0-1.438 1.435l-1.579 6.126a.5.5 0 0 1-.947.063z",key:"edeuup"}]]);var ks=U("Pause",[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]]);var na=U("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);var Is=U("Repeat",[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]]);var _s=U("Rewind",[["polygon",{points:"11 19 2 12 11 5 11 19",key:"14yba5"}],["polygon",{points:"22 19 13 12 22 5 22 19",key:"1pi1cj"}]]);var Ms=U("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);var Rs=U("Scissors",[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M8.12 8.12 12 12",key:"1alkpv"}],["path",{d:"M20 4 8.12 15.88",key:"xgtan2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M14.8 14.8 20 20",key:"ptml3r"}]]);var Es=U("SkipBack",[["polygon",{points:"19 20 9 12 19 4 19 20",key:"o2sva"}],["line",{x1:"5",x2:"5",y1:"19",y2:"5",key:"1ocqjk"}]]);var Ps=U("SkipForward",[["polygon",{points:"5 4 15 12 5 20 5 4",key:"16p6eg"}],["line",{x1:"19",x2:"19",y1:"5",y2:"19",key:"futhcm"}]]);var Zt=U("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);var Ns=U("StepBack",[["line",{x1:"18",x2:"18",y1:"20",y2:"4",key:"cun8e5"}],["polygon",{points:"14,20 4,12 14,4",key:"ypakod"}]]);var Ts=U("StepForward",[["line",{x1:"6",x2:"6",y1:"4",y2:"20",key:"fy8qot"}],["polygon",{points:"10,4 20,12 10,20",key:"1mc1pf"}]]);var As=U("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);var Ds=U("Volume2",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]]);var Os=U("VolumeX",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["line",{x1:"22",x2:"16",y1:"9",y2:"15",key:"1ewh16"}],["line",{x1:"16",x2:"22",y1:"9",y2:"15",key:"5ykzw1"}]]);var aa=U("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var oa=U("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);var zs=F(le(),1),$=F(le(),1),xu=F(fe(),1);var Dt=F(le(),1),y0=F(fe(),1);var Te=F(le(),1),w0=F(fe(),1),uu=F(le(),1),nr=F(fe(),1);var b0=F(fe(),1);var vu=F(fe(),1),Y=F(le(),1),L0=F(fe(),1);var et=F(le(),1);var k0=F(fe(),1);var Xe=F(le(),1),Ln=F(le(),1),yu=F(fe(),1);var Bs=F(le(),1),Jp=F(le(),1),Zp=F(le(),1),du=F(fe(),1);var Ke=F(fe(),1);var In=F(fe(),1),_e=F(le(),1),Us=F(fe(),1);var xt=F(le(),1),Tt=F(le(),1),Z=F(le(),1),E0=F(fe(),1),no=F(fe(),1),yr=F(le(),1),ro=F(fe(),1),kn=F(le(),1);var Q=F(le(),1),tm=F(fe(),1),Ht=F(le(),1);var At=F(le(),1),mu=F(le(),1),qs=F(fe(),1),to=F(le(),1),Ze=F(le(),1),rr=F(fe(),1),tr=F(le(),1),er=F(le(),1),wu=F(fe(),1);var je=F(le(),1),$s=F(fe(),1);var sm=F(le(),1);var c0=[.5,1,1.5,2,4,8],lu=["stage","balanced","debug"];function rm(e){if(!e||!e.length)return[...lu];let t=new Set;for(let r of e)lu.includes(r)&&t.add(r);return t.size?[...t]:[...lu]}var cu=["chapters","interaction","console","network","error","task","vitals"],st={speed:"obsrviq.player.speed",autoSkip:"obsrviq.player.autoSkip",autoSkim:"obsrviq.player.autoSkim",showCursor:"obsrviq.player.showCursor",mode:"obsrviq.player.mode",laneState:"obsrviq.player.laneState",snap:"obsrviq.player.snap"};function sa(e,t,r){try{let n=localStorage.getItem(e);return n==null?t:r(n)}catch{return t}}function Xr(e,t){try{localStorage.setItem(e,t)}catch{}}function Ek(){let e={};for(let t of cu)e[t]={collapsed:t==="console"||t==="vitals",solo:!1,mute:!1};return e}function Pk(){let e=Ek();try{let t=localStorage.getItem(st.laneState);if(!t)return e;let r=JSON.parse(t);for(let n of cu){let a=r[n];a&&(e[n]={collapsed:!!a.collapsed,solo:!!a.solo,mute:!!a.mute})}return e}catch{return e}}function Nk(){let e=null,t=null;return rv((r,n)=>{let a=()=>{e&&(clearInterval(e),e=null)},o=()=>{a();let i=performance.now();e=setInterval(()=>{let l=performance.now(),d=(l-i)*n().speed;i=l;let u=n().currentTime+d;u>=n().durationMs?(r({currentTime:n().durationMs}),n()._onFinish()):n()._onTime(u)},33.333333333333336)},s=i=>{let l=n(),d=l.events.find(p=>p.id===i);if(d)return d.t;let u=l.markers.find(p=>p.ref===i);return u?u.t:null};return{status:"idle",durationMs:0,currentTime:0,bufferedMs:0,speed:sa(st.speed,1,i=>Number(i)),autoSkip:sa(st.autoSkip,!1,i=>i==="true"),autoSkim:sa(st.autoSkip,!1,i=>i==="true")?!1:sa(st.autoSkim,!0,i=>i==="true"),isSkimming:!1,isSkipping:!1,lastSkipMs:0,loop:!1,clipStart:null,clipEnd:null,clipLoop:!1,autoplayNext:!1,showCursor:sa(st.showCursor,!0,i=>i==="true"),activePanel:"console",events:[],markers:[],summary:null,offset:0,hasReplay:!1,error:null,errorNotFound:!1,loadProgress:0,live:!1,following:!1,pendingSeek:null,controller:null,_covers:null,_moreForward:null,focusMode:sa(st.mode,"balanced",i=>i==="stage"||i==="debug"?i:"balanced"),allowedModes:[...lu],selectedEventId:null,selectionRange:null,zoomStack:[],laneState:Pk(),hover:null,snap:sa(st.snap,!0,i=>i==="true"),feedFilter:"all",paletteOpen:!1,toRelative:i=>{let l=i-n().offset;return Math.max(0,Math.min(n().durationMs,l))},play:()=>{let i=n();if(i.status==="error")return;i.clipEnd!=null&&i.currentTime>=i.clipEnd&&r({clipStart:null,clipEnd:null,clipLoop:!1});let l=i.clipEnd==null&&i.currentTime>=i.durationMs-20?0:i.currentTime;i.controller?i.controller.play(l):(l===0&&r({currentTime:0}),o()),r({status:"playing"})},pause:()=>{let i=n();i.controller?i.controller.pause():a(),r({status:"paused"})},toggle:()=>n().status==="playing"?n().pause():n().play(),restart:()=>{n().seek(0),n().play()},seek:i=>{let l=n(),d=Math.max(0,Math.min(l.durationMs,i)),u=l._covers?l._covers(d):d<=l.bufferedMs+1;!l.controller||u?(l.controller&&l.controller.seek(d),r({currentTime:d,pendingSeek:null,status:l.status==="ended"||l.status==="buffering"?"paused":l.status,following:!1})):r({currentTime:d,pendingSeek:d,status:"buffering",following:!1})},step:i=>{let l=n(),d=l.controller?.mutationTimes??[];if(!d.length){n().seek(l.currentTime+i*200);return}let u=l.currentTime,p=i>0?d.find(c=>c>u+1):[...d].reverse().find(c=>c<u-1);p!=null&&n().seek(p)},jumpEvent:i=>{let l=n(),d=l.markers.map(c=>l.toRelative(c.t)).sort((c,f)=>c-f);if(!d.length)return;let u=l.currentTime,p=i>0?d.find(c=>c>u+1):[...d].reverse().find(c=>c<u-1);p!=null&&n().seek(p)},setSpeed:i=>{n().controller?.setSpeed(i),Xr(st.speed,String(i)),r({speed:i})},setPanel:i=>r({activePanel:i}),setAutoSkip:i=>{n().controller?.setAutoSkip(i),Xr(st.autoSkip,String(i)),i&&n().autoSkim&&(n().controller?.setAutoSkim(!1),Xr(st.autoSkim,"false"),r({autoSkim:!1,isSkimming:!1})),r({autoSkip:i,isSkipping:i?n().isSkipping:!1})},setAutoSkim:i=>{n().controller?.setAutoSkim(i),Xr(st.autoSkim,String(i)),i&&n().autoSkip&&(n().controller?.setAutoSkip(!1),Xr(st.autoSkip,"false"),r({autoSkip:!1,isSkipping:!1})),r({autoSkim:i,isSkimming:i?n().isSkimming:!1})},setLoop:i=>r({loop:i}),setClip:(i,l,d=!1)=>r({clipStart:i,clipEnd:l,clipLoop:d}),setAutoplayNext:i=>r({autoplayNext:i}),setShowCursor:i=>{n().controller?.setShowCursor(i),Xr(st.showCursor,String(i)),r({showCursor:i})},setFollowing:i=>{let l=n();i&&l.controller&&(l.controller.seek(l.durationMs),r({currentTime:l.durationMs})),r({following:i})},setFocusMode:i=>{n().allowedModes.includes(i)&&(Xr(st.mode,i),r({focusMode:i}))},setAllowedModes:i=>{let l=rm(i),d=l.includes(n().focusMode)?n().focusMode:l[0];r({allowedModes:l,focusMode:d})},select:i=>{if(r({selectedEventId:i}),i!=null){let l=s(i);l!=null&&n().seek(n().toRelative(l))}},selectAndSeek:i=>{let l=s(i);r({selectedEventId:i}),l!=null&&n().seek(n().toRelative(l))},brush:(i,l)=>{if(l==null){r({selectionRange:null});return}let d=Math.min(i,l),u=Math.max(i,l);r({selectionRange:[d,u]})},zoomTo:(i,l)=>{let d=n(),u=Math.max(0,Math.min(i,l)),p=Math.min(d.offset+d.durationMs,Math.max(i,l));p-u<50||r({zoomStack:[...d.zoomStack,[u,p]]})},zoomOutTo:i=>{let l=n();r({zoomStack:l.zoomStack.slice(0,Math.max(0,i))})},setHover:i=>r({hover:i==null?null:{t:i}}),toggleSnap:()=>{let i=!n().snap;Xr(st.snap,String(i)),r({snap:i})},toggleLane:(i,l)=>{let d=n(),u=d.laneState[i],p={...d.laneState,[i]:{...u,[l]:!u[l]}};Xr(st.laneState,JSON.stringify(p)),r({laneState:p})},setFeedFilter:i=>r({feedFilter:i}),nextProblem:i=>{let l=n(),d={error:5,network:4,rage:3,dead:2,nav:1,conversion:1,ai:0},u=l.markers.filter(f=>(d[f.kind]??0)>=2).map(f=>({rel:l.toRelative(f.t),m:f})).sort((f,h)=>f.rel-h.rel);if(!u.length)return;let p=l.currentTime,c=i>0?u.find(f=>f.rel>p+1):[...u].reverse().find(f=>f.rel<p-1);c&&(r({selectedEventId:c.m.ref}),n().seek(c.rel))},walkLane:(i,l)=>{let d=n(),u=d.events.filter(f=>Tk(i,f)).map(f=>({rel:d.toRelative(f.t),id:f.id})).sort((f,h)=>f.rel-h.rel);if(!u.length)return;let p=d.currentTime,c=l>0?u.find(f=>f.rel>p+1):[...u].reverse().find(f=>f.rel<p-1);c&&(r({selectedEventId:c.id}),n().seek(c.rel))},openPalette:i=>r({paletteOpen:i}),rewindToCause:i=>{let l=n(),d=s(i);if(d==null)return;let u=l.toRelative(d);n().seek(Math.max(0,u-5e3))},_attachController:i=>{let l=n().durationMs;r({controller:i,durationMs:Math.max(l,i.meta.totalTime),bufferedMs:i.meta.totalTime,status:"paused"})},_detachController:()=>{a();let i=n().controller;i&&i.destroy(),r({controller:null})},_setLoaderProbes:(i,l)=>r({_covers:i,_moreForward:l}),_onTime:i=>{let l=n();if(l.clipEnd!=null&&i>=l.clipEnd&&l.status==="playing"){l.clipLoop?n().seek(l.clipStart??0):(l.controller?l.controller.pause(l.clipEnd):a(),r({currentTime:l.clipEnd,status:"paused"}));return}r({currentTime:i})},_onSkip:i=>{r({isSkipping:!0,lastSkipMs:i}),t&&clearTimeout(t),t=setTimeout(()=>r({isSkipping:!1}),1100)},_onFinish:()=>{let i=n();i.live&&i.following?r({status:"paused",currentTime:i.durationMs}):i.clipEnd!=null&&i.currentTime>=i.clipEnd-1?i.clipLoop?(n().seek(i.clipStart??0),n().play()):(a(),r({currentTime:i.clipEnd,status:"paused"})):i.controller&&(i._moreForward?i._moreForward(i.currentTime):i.currentTime<i.durationMs-1)?r({status:"buffering"}):i.loop?n().restart():(a(),r({status:"ended"}))},_setData:i=>r(i)}})}function Tk(e,t){switch(e){case"network":return t.type==="network";case"error":return t.type==="error"||t.type==="console"&&t.level==="error";case"console":return t.type==="console";case"vitals":return t.type==="perf";case"task":return t.type==="custom"&&/^(.+):(started|ended)$/.test(t.name??"");case"interaction":return t.type==="custom"&&!/^(.+):(started|ended)$/.test(t.name??"")&&!["_tag","identify","metadata","_click","_scroll"].includes(t.name??"");case"chapters":return t.type==="custom"&&["navigation","pageview"].includes(t.name??"");default:return!1}}var p0=(0,hu.createContext)(null);function Ak({store:e,children:t}){return(0,f0.jsx)(p0.Provider,{value:e,children:t})}function nm(){let e=(0,hu.useContext)(p0);if(!e)throw new Error("usePlayer must be used within <ReplayPlayer>");return e}function M(e){return nv(nm(),e)}var h0=(0,gu.createContext)(null);function Dk({value:e,children:t}){return(0,m0.jsx)(h0.Provider,{value:e,children:t})}function Ok(){return(0,gu.useContext)(h0)}async function*Fk(e,t,r,n){let a={"content-type":"application/json"};t.token?a.authorization=`Bearer ${t.token}`:t.apiKey&&(a.authorization=`Bearer ${t.apiKey}`,a["x-obsrviq-key"]=t.apiKey);let o=await fetch(e,{method:"POST",headers:a,body:JSON.stringify(r),signal:n});if(!o.ok||!o.body)throw new Error(`${o.status} ${o.statusText}`);let s=o.body.getReader(),i=new TextDecoder,l="";for(;;){let{done:d,value:u}=await s.read();if(d)break;l+=i.decode(u,{stream:!0});let p=l.split(`
|
|
136
|
+
`,By=typeof self<"u"&&self.Blob&&new Blob([Vw],{type:"text/javascript;charset=utf-8"});function Sk(e){let t;try{if(t=By&&(self.URL||self.webkitURL).createObjectURL(By),!t)throw"";let r=new Worker(t,{name:e?.name});return r.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(t)}),r}catch{return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(Vw),{name:e?.name})}finally{t&&(self.URL||self.webkitURL).revokeObjectURL(t)}}var kp=class{constructor(t){R(this,"pendingCanvasMutations",new Map),R(this,"rafStamps",{latestId:0,invokeId:null}),R(this,"mirror"),R(this,"mutationCb"),R(this,"resetObservers"),R(this,"frozen",!1),R(this,"locked",!1),R(this,"processMutation",(i,d)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(i)||this.pendingCanvasMutations.set(i,[]),this.pendingCanvasMutations.get(i).push(d)});let{sampling:r="all",win:n,blockClass:a,blockSelector:o,recordCanvas:s,dataURLOptions:l}=t;this.mutationCb=t.mutationCb,this.mirror=t.mirror,s&&r==="all"&&this.initCanvasMutationObserver(n,a,o),s&&typeof r=="number"&&this.initCanvasFPSObserver(r,n,a,o,{dataURLOptions:l})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(t,r,n,a,o){let s=Oy(r,n,a,!0),l=new Map,i=new Sk;i.onmessage=h=>{let{id:m}=h.data;if(l.set(m,!1),!("base64"in h.data))return;let{base64:y,type:g,width:x,height:v}=h.data;this.mutationCb({id:m,type:Vr["2D"],commands:[{property:"clearRect",args:[0,0,x,v]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:y}],type:g}]},0,0]}]})};let d=1e3/t,u=0,p,c=()=>{let h=[];return r.document.querySelectorAll("canvas").forEach(m=>{It(m,n,a,!0)||h.push(m)}),h},f=h=>{if(u&&h-u<d){p=requestAnimationFrame(f);return}u=h,c().forEach(async m=>{var y;let g=this.mirror.getId(m);if(l.get(g)||m.width===0||m.height===0)return;if(l.set(g,!0),["webgl","webgl2"].includes(m.__context)){let v=m.getContext(m.__context);((y=v?.getContextAttributes())==null?void 0:y.preserveDrawingBuffer)===!1&&v.clear(v.COLOR_BUFFER_BIT)}let x=await createImageBitmap(m);i.postMessage({id:g,bitmap:x,width:m.width,height:m.height,dataURLOptions:o.dataURLOptions},[x])}),p=requestAnimationFrame(f)};p=requestAnimationFrame(f),this.resetObservers=()=>{s(),cancelAnimationFrame(p)}}initCanvasMutationObserver(t,r,n){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();let a=Oy(t,r,n,!1),o=yk(this.processMutation.bind(this),t,r,n),s=bk(this.processMutation.bind(this),t,r,n);this.resetObservers=()=>{a(),o(),s()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let t=r=>{this.rafStamps.latestId=r,requestAnimationFrame(t)};requestAnimationFrame(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,r)=>{let n=this.mirror.getId(r);this.flushPendingCanvasMutationFor(r,n)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,r){if(this.frozen||this.locked)return;let n=this.pendingCanvasMutations.get(t);if(!n||r===-1)return;let a=n.map(s=>{let{type:l,...i}=s;return i}),{type:o}=n[0];this.mutationCb({id:r,type:o,commands:a}),this.pendingCanvasMutations.delete(t)}},Ip=class{constructor(t){R(this,"trackedLinkElements",new WeakSet),R(this,"mutationCb"),R(this,"adoptedStyleSheetCb"),R(this,"styleMirror",new Hi),this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,r){"_cssText"in r.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:r.id,attributes:r.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,r){if(t.length===0)return;let n={id:r,styleIds:[]},a=[];for(let o of t){let s;this.styleMirror.has(o)?s=this.styleMirror.getId(o):(s=this.styleMirror.add(o),a.push({styleId:s,rules:Array.from(o.rules||CSSRule,(l,i)=>({rule:Jy(l,o.href),index:i}))})),n.styleIds.push(s)}a.length>0&&(n.styles=a),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}},_p=class{constructor(){R(this,"nodeMap",new WeakMap),R(this,"active",!1)}inOtherBuffer(t,r){let n=this.nodeMap.get(t);return n&&Array.from(n).some(a=>a!==r)}add(t,r){this.active||(this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(r))}destroy(){}},We,Pi,np,Vi=!1;try{if(Array.from([1],e=>e*2)[0]!==2){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=((uv=e.contentWindow)==null?void 0:uv.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}var xr=Zy();function Jn(e={}){let{emit:t,checkoutEveryNms:r,checkoutEveryNth:n,blockClass:a="rr-block",blockSelector:o=null,ignoreClass:s="rr-ignore",ignoreSelector:l=null,maskTextClass:i="rr-mask",maskTextSelector:d=null,inlineStylesheet:u=!0,maskAllInputs:p,maskInputOptions:c,slimDOMOptions:f,maskInputFn:h,maskTextFn:m,hooks:y,packFn:g,sampling:x={},dataURLOptions:v={},mousemoveWait:S,recordDOM:b=!0,recordCanvas:w=!1,recordCrossOriginIframes:C=!1,recordAfter:L=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:k=!1,collectFonts:_=!1,inlineImages:N=!1,plugins:P,keepIframeSrcFn:I=()=>!1,ignoreCSSAttributes:re=new Set([]),errorHandler:_e}=e;tk(_e);let se=C?window.parent===window:!0,j=!1;if(!se)try{window.parent.document&&(j=!1)}catch{j=!0}if(se&&!t)throw new Error("emit function is required");if(!se&&!j)return()=>{};S!==void 0&&x.mousemove===void 0&&(x.mousemove=S),xr.reset();let ve=p===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:c!==void 0?c:{password:!0},Me=aw(f);Tw();let Le,Ce=0,br=K=>{for(let Re of P||[])Re.eventProcessor&&(K=Re.eventProcessor(K));return g&&!j&&(K=g(K)),K};We=(K,Re)=>{var ue;let Ee=K;if(Ee.timestamp=ms(),(ue=Xn[0])!=null&&ue.isFrozen()&&Ee.type!==V.FullSnapshot&&!(Ee.type===V.IncrementalSnapshot&&Ee.data.source===$.Mutation)&&Xn.forEach(ut=>ut.unfreeze()),se)t?.(br(Ee),Re);else if(j){let ut={type:"rrweb",event:br(Ee),origin:window.location.origin,isCheckout:Re};window.parent.postMessage(ut,"*")}if(Ee.type===V.FullSnapshot)Le=Ee,Ce=0;else if(Ee.type===V.IncrementalSnapshot){if(Ee.data.source===$.Mutation&&Ee.data.isAttachIframe)return;Ce++;let ut=n&&Ce>=n,ge=r&&Ee.timestamp-Le.timestamp>r;(ut||ge)&&Pi(!0)}};let T=K=>{We({type:V.IncrementalSnapshot,data:{source:$.Mutation,...K}})},yt=K=>We({type:V.IncrementalSnapshot,data:{source:$.Scroll,...K}}),wt=K=>We({type:V.IncrementalSnapshot,data:{source:$.CanvasMutation,...K}}),En=K=>We({type:V.IncrementalSnapshot,data:{source:$.AdoptedStyleSheet,...K}}),Ye=new Ip({mutationCb:T,adoptedStyleSheetCb:En}),it=new Cp({mirror:xr,mutationCb:T,stylesheetManager:Ye,recordCrossOriginIframes:C,wrappedEmit:We});for(let K of P||[])K.getMirror&&K.getMirror({nodeMirror:xr,crossOriginIframeMirror:it.crossOriginIframeMirror,crossOriginIframeStyleMirror:it.crossOriginIframeStyleMirror});let Sr=new _p;np=new kp({recordCanvas:w,mutationCb:wt,win:window,blockClass:a,blockSelector:o,mirror:xr,sampling:x.canvas,dataURLOptions:v});let Cr=new Lp({mutationCb:T,scrollCb:yt,bypassOptions:{blockClass:a,blockSelector:o,maskTextClass:i,maskTextSelector:d,inlineStylesheet:u,maskInputOptions:ve,dataURLOptions:v,maskTextFn:m,maskInputFn:h,recordCanvas:w,inlineImages:N,sampling:x,slimDOMOptions:Me,iframeManager:it,stylesheetManager:Ye,canvasManager:np,keepIframeSrcFn:I,processedNodeManager:Sr},mirror:xr});Pi=(K=!1)=>{if(!b)return;We({type:V.Meta,data:{href:window.location.href,width:Ew(),height:Rw()}},K),Ye.reset(),Cr.init(),Xn.forEach(ue=>ue.lock());let Re=IC(document,{mirror:xr,blockClass:a,blockSelector:o,maskTextClass:i,maskTextSelector:d,inlineStylesheet:u,maskAllInputs:ve,maskTextFn:m,maskInputFn:h,slimDOM:Me,dataURLOptions:v,recordCanvas:w,inlineImages:N,onSerialize:ue=>{ds(ue,xr)&&it.addIframe(ue),Dw(ue,xr)&&Ye.trackLinkElement(ue),Gn(ue)&&Cr.addShadowRoot(le.shadowRoot(ue),document)},onIframeLoad:(ue,Ee)=>{it.attachIframe(ue,Ee),Cr.observeAttachShadow(ue)},onStylesheetLoad:(ue,Ee)=>{Ye.attachLinkElement(ue,Ee)},keepIframeSrcFn:I});if(!Re)return console.warn("Failed to snapshot the document");We({type:V.FullSnapshot,data:{node:Re,initialOffset:Mw(window)}},K),Xn.forEach(ue=>ue.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Ye.adoptStyleSheets(document.adoptedStyleSheets,xr.getId(document))};try{let K=[],Re=Ee=>{var ut;return he(hk)({mutationCb:T,mousemoveCb:(ge,fa)=>We({type:V.IncrementalSnapshot,data:{source:fa,positions:ge}}),mouseInteractionCb:ge=>We({type:V.IncrementalSnapshot,data:{source:$.MouseInteraction,...ge}}),scrollCb:yt,viewportResizeCb:ge=>We({type:V.IncrementalSnapshot,data:{source:$.ViewportResize,...ge}}),inputCb:ge=>We({type:V.IncrementalSnapshot,data:{source:$.Input,...ge}}),mediaInteractionCb:ge=>We({type:V.IncrementalSnapshot,data:{source:$.MediaInteraction,...ge}}),styleSheetRuleCb:ge=>We({type:V.IncrementalSnapshot,data:{source:$.StyleSheetRule,...ge}}),styleDeclarationCb:ge=>We({type:V.IncrementalSnapshot,data:{source:$.StyleDeclaration,...ge}}),canvasMutationCb:wt,fontCb:ge=>We({type:V.IncrementalSnapshot,data:{source:$.Font,...ge}}),selectionCb:ge=>{We({type:V.IncrementalSnapshot,data:{source:$.Selection,...ge}})},customElementCb:ge=>{We({type:V.IncrementalSnapshot,data:{source:$.CustomElement,...ge}})},blockClass:a,ignoreClass:s,ignoreSelector:l,maskTextClass:i,maskTextSelector:d,maskInputOptions:ve,inlineStylesheet:u,sampling:x,recordDOM:b,recordCanvas:w,inlineImages:N,userTriggeredOnInput:k,collectFonts:_,doc:Ee,maskInputFn:h,maskTextFn:m,keepIframeSrcFn:I,blockSelector:o,slimDOMOptions:Me,dataURLOptions:v,mirror:xr,iframeManager:it,stylesheetManager:Ye,shadowDomManager:Cr,processedNodeManager:Sr,canvasManager:np,ignoreCSSAttributes:re,plugins:((ut=P?.filter(ge=>ge.observer))==null?void 0:ut.map(ge=>({observer:ge.observer,options:ge.options,callback:fa=>We({type:V.Plugin,data:{plugin:ge.name,payload:fa}})})))||[]},y)};it.addLoadListener(Ee=>{try{K.push(Re(Ee.contentDocument))}catch(ut){console.warn(ut)}});let ue=()=>{Pi(),K.push(Re(document)),Vi=!0};return["interactive","complete"].includes(document.readyState)?ue():(K.push(kt("DOMContentLoaded",()=>{We({type:V.DomContentLoaded,data:{}}),L==="DOMContentLoaded"&&ue()})),K.push(kt("load",()=>{We({type:V.Load,data:{}}),L==="load"&&ue()},window))),()=>{K.forEach(Ee=>{try{Ee()}catch(ut){String(ut).toLowerCase().includes("cross-origin")||console.warn(ut)}}),Sr.destroy(),Vi=!1,rk()}}catch(K){console.warn(K)}}Jn.addCustomEvent=(e,t)=>{if(!Vi)throw new Error("please add custom event after start recording");We({type:V.Custom,data:{tag:e,payload:t}})};Jn.freezePage=()=>{Xn.forEach(e=>e.freeze())};Jn.takeFullSnapshot=e=>{if(!Vi)throw new Error("please take full snapshot after start recording");Pi(e)};Jn.mirror=xr;function Ck(e){return{all:e=e||new Map,on:function(t,r){var n=e.get(t);n?n.push(r):e.set(t,[r])},off:function(t,r){var n=e.get(t);n&&(r?n.splice(n.indexOf(r)>>>0,1):e.set(t,[]))},emit:function(t,r){var n=e.get(t);n&&n.slice().map(function(a){a(r)}),(n=e.get("*"))&&n.slice().map(function(a){a(t,r)})}}}function Lk(e=window,t=document){if("scrollBehavior"in t.documentElement.style&&e.__forceSmoothScrollPolyfill__!==!0)return;let r=e.HTMLElement||e.Element,n=468,a={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:r.prototype.scroll||i,scrollIntoView:r.prototype.scrollIntoView},o=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now;function s(g){let x=["MSIE ","Trident/","Edge/"];return new RegExp(x.join("|")).test(g)}let l=s(e.navigator.userAgent)?1:0;function i(g,x){this.scrollLeft=g,this.scrollTop=x}function d(g){return .5*(1-Math.cos(Math.PI*g))}function u(g){if(g===null||typeof g!="object"||g.behavior===void 0||g.behavior==="auto"||g.behavior==="instant")return!0;if(typeof g=="object"&&g.behavior==="smooth")return!1;throw new TypeError("behavior member of ScrollOptions "+g.behavior+" is not a valid value for enumeration ScrollBehavior.")}function p(g,x){if(x==="Y")return g.clientHeight+l<g.scrollHeight;if(x==="X")return g.clientWidth+l<g.scrollWidth}function c(g,x){let v=e.getComputedStyle(g,null)["overflow"+x];return v==="auto"||v==="scroll"}function f(g){let x=p(g,"Y")&&c(g,"Y"),v=p(g,"X")&&c(g,"X");return x||v}function h(g){for(;g!==t.body&&f(g)===!1;)g=g.parentNode||g.host;return g}function m(g){let x=o(),v,S,b,w=(x-g.startTime)/n;w=w>1?1:w,v=d(w),S=g.startX+(g.x-g.startX)*v,b=g.startY+(g.y-g.startY)*v,g.method.call(g.scrollable,S,b),(S!==g.x||b!==g.y)&&e.requestAnimationFrame(m.bind(e,g))}function y(g,x,v){let S,b,w,C,L=o();g===t.body?(S=e,b=e.scrollX||e.pageXOffset,w=e.scrollY||e.pageYOffset,C=a.scroll):(S=g,b=g.scrollLeft,w=g.scrollTop,C=i),m({scrollable:S,method:C,startTime:L,startX:b,startY:w,x,y:v})}e.scroll=e.scrollTo=function(){if(arguments[0]!==void 0){if(u(arguments[0])===!0){a.scroll.call(e,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:e.scrollX||e.pageXOffset,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:e.scrollY||e.pageYOffset);return}y.call(e,t.body,arguments[0].left!==void 0?~~arguments[0].left:e.scrollX||e.pageXOffset,arguments[0].top!==void 0?~~arguments[0].top:e.scrollY||e.pageYOffset)}},e.scrollBy=function(){if(arguments[0]!==void 0){if(u(arguments[0])){a.scrollBy.call(e,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:0,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:0);return}y.call(e,t.body,~~arguments[0].left+(e.scrollX||e.pageXOffset),~~arguments[0].top+(e.scrollY||e.pageYOffset))}},r.prototype.scroll=r.prototype.scrollTo=function(){if(arguments[0]===void 0)return;if(u(arguments[0])===!0){if(typeof arguments[0]=="number"&&arguments[1]===void 0)throw new SyntaxError("Value could not be converted");a.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left:typeof arguments[0]!="object"?~~arguments[0]:this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top:arguments[1]!==void 0?~~arguments[1]:this.scrollTop);return}let g=arguments[0].left,x=arguments[0].top;y.call(this,this,typeof g>"u"?this.scrollLeft:~~g,typeof x>"u"?this.scrollTop:~~x)},r.prototype.scrollBy=function(){if(arguments[0]!==void 0){if(u(arguments[0])===!0){a.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop);return}this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior})}},r.prototype.scrollIntoView=function(){if(u(arguments[0])===!0){a.scrollIntoView.call(this,arguments[0]===void 0?!0:arguments[0]);return}let g=h(this),x=g.getBoundingClientRect(),v=this.getBoundingClientRect();g!==t.body?(y.call(this,g,g.scrollLeft+v.left-x.left,g.scrollTop+v.top-x.top),e.getComputedStyle(g).position!=="fixed"&&e.scrollBy({left:x.left,top:x.top,behavior:"smooth"})):e.scrollBy({left:v.left,top:v.top,behavior:"smooth"})}}var Mp=class{constructor(t=[],r){R(this,"timeOffset",0),R(this,"speed"),R(this,"actions"),R(this,"raf",null),R(this,"lastTimestamp"),this.actions=t,this.speed=r.speed}addAction(t){let r=this.raf===!0;if(!this.actions.length||this.actions[this.actions.length-1].delay<=t.delay)this.actions.push(t);else{let n=this.findActionIndex(t);this.actions.splice(n,0,t)}r&&(this.raf=requestAnimationFrame(this.rafCheck.bind(this)))}start(){this.timeOffset=0,this.lastTimestamp=performance.now(),this.raf=requestAnimationFrame(this.rafCheck.bind(this))}rafCheck(){let t=performance.now();for(this.timeOffset+=(t-this.lastTimestamp)*this.speed,this.lastTimestamp=t;this.actions.length;){let r=this.actions[0];if(this.timeOffset>=r.delay)this.actions.shift(),r.doAction();else break}this.actions.length>0?this.raf=requestAnimationFrame(this.rafCheck.bind(this)):this.raf=!0}clear(){this.raf&&(this.raf!==!0&&cancelAnimationFrame(this.raf),this.raf=null),this.actions.length=0}setSpeed(t){this.speed=t}isActive(){return this.raf!==null}findActionIndex(t){let r=0,n=this.actions.length-1;for(;r<=n;){let a=Math.floor((r+n)/2);if(this.actions[a].delay<t.delay)r=a+1;else if(this.actions[a].delay>t.delay)n=a-1;else return a+1}return r}};function zy(e,t){if(e.type===V.IncrementalSnapshot&&e.data.source===$.MouseMove&&e.data.positions&&e.data.positions.length){let r=e.data.positions[0].timeOffset,n=e.timestamp+r;return e.delay=n-t,n-t}return e.delay=e.timestamp-t,e.delay}function Uy(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),s=[];try{for(;(t===void 0||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(l){a={error:l}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return s}var Za;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(Za||(Za={}));var Gw={type:"xstate.init"};function ap(e){return e===void 0?[]:[].concat(e)}function Ka(e){return{type:"xstate.assign",assignment:e}}function qy(e,t){return typeof(e=typeof e=="string"&&t&&t[e]?t[e]:e)=="string"?{type:e}:typeof e=="function"?{type:e.name,exec:e}:e}function Gi(e){return function(t){return e===t}}function Xw(e){return typeof e=="string"?{type:e}:e}function $y(e,t){return{value:e,context:t,actions:[],changed:!1,matches:Gi(e)}}function Hy(e,t,r){var n=t,a=!1;return[e.filter(function(o){if(o.type==="xstate.assign"){a=!0;var s=Object.assign({},n);return typeof o.assignment=="function"?s=o.assignment(n,r):Object.keys(o.assignment).forEach(function(l){s[l]=typeof o.assignment[l]=="function"?o.assignment[l](n,r):o.assignment[l]}),n=s,!1}return!0}),n,a]}function Kw(e,t){t===void 0&&(t={});var r=Uy(Hy(ap(e.states[e.initial].entry).map(function(s){return qy(s,t.actions)}),e.context,Gw),2),n=r[0],a=r[1],o={config:e,_options:t,initialState:{value:e.initial,actions:n,context:a,matches:Gi(e.initial)},transition:function(s,l){var i,d,u=typeof s=="string"?{value:s,context:e.context}:s,p=u.value,c=u.context,f=Xw(l),h=e.states[p];if(h.on){var m=ap(h.on[f.type]);try{for(var y=(function(j){var ve=typeof Symbol=="function"&&Symbol.iterator,Me=ve&&j[ve],Le=0;if(Me)return Me.call(j);if(j&&typeof j.length=="number")return{next:function(){return j&&Le>=j.length&&(j=void 0),{value:j&&j[Le++],done:!j}}};throw new TypeError(ve?"Object is not iterable.":"Symbol.iterator is not defined.")})(m),g=y.next();!g.done;g=y.next()){var x=g.value;if(x===void 0)return $y(p,c);var v=typeof x=="string"?{target:x}:x,S=v.target,b=v.actions,w=b===void 0?[]:b,C=v.cond,L=C===void 0?function(){return!0}:C,k=S===void 0,_=S??p,N=e.states[_];if(L(c,f)){var P=Uy(Hy((k?ap(w):[].concat(h.exit,w,N.entry).filter(function(j){return j})).map(function(j){return qy(j,o._options.actions)}),c,f),3),I=P[0],re=P[1],_e=P[2],se=S??p;return{value:se,context:re,actions:I,changed:S!==p||I.length>0||_e,matches:Gi(se)}}}}catch(j){i={error:j}}finally{try{g&&!g.done&&(d=y.return)&&d.call(y)}finally{if(i)throw i.error}}}return $y(p,c)}};return o}var jy=function(e,t){return e.actions.forEach(function(r){var n=r.exec;return n&&n(e.context,t)})};function Qw(e){var t=e.initialState,r=Za.NotStarted,n=new Set,a={_machine:e,send:function(o){r===Za.Running&&(t=e.transition(t,o),jy(t,Xw(o)),n.forEach(function(s){return s(t)}))},subscribe:function(o){return n.add(o),o(t),{unsubscribe:function(){return n.delete(o)}}},start:function(o){if(o){var s=typeof o=="object"?o:{context:e.config.context,value:o};t={value:s.value,actions:[],context:s.context,matches:Gi(s.value)}}return r=Za.Running,jy(t,Gw),a},stop:function(){return r=Za.Stopped,n.clear(),a},get state(){return t},get status(){return r}};return a}function kk(e,t){for(let r=e.length-1;r>=0;r--){let n=e[r];if(n.type===V.Meta&&n.timestamp<=t)return e.slice(r)}return e}function Ik(e,{getCastFn:t,applyEventsSynchronously:r,emitter:n}){let a=Kw({id:"player",context:e,initial:"paused",states:{playing:{on:{PAUSE:{target:"paused",actions:["pause"]},CAST_EVENT:{target:"playing",actions:"castEvent"},END:{target:"paused",actions:["resetLastPlayedEvent","pause"]},ADD_EVENT:{target:"playing",actions:["addEvent"]}}},paused:{on:{PLAY:{target:"playing",actions:["recordTimeOffset","play"]},CAST_EVENT:{target:"paused",actions:"castEvent"},TO_LIVE:{target:"live",actions:["startLive"]},ADD_EVENT:{target:"paused",actions:["addEvent"]}}},live:{on:{ADD_EVENT:{target:"live",actions:["addEvent"]},CAST_EVENT:{target:"live",actions:["castEvent"]}}}}},{actions:{castEvent:Ka({lastPlayedEvent:(o,s)=>s.type==="CAST_EVENT"?s.payload.event:o.lastPlayedEvent}),recordTimeOffset:Ka((o,s)=>{let l=o.timeOffset;return"payload"in s&&"timeOffset"in s.payload&&(l=s.payload.timeOffset),{...o,timeOffset:l,baselineTime:o.events[0].timestamp+l}}),play(o){var s;let{timer:l,events:i,baselineTime:d,lastPlayedEvent:u}=o;l.clear();for(let h of i)zy(h,d);let p=kk(i,d),c=u?.timestamp;u?.type===V.IncrementalSnapshot&&u.data.source===$.MouseMove&&(c=u.timestamp+((s=u.data.positions[0])==null?void 0:s.timeOffset)),d<(c||0)&&n.emit(be.PlayBack);let f=new Array;for(let h of p)if(!(c&&c<d&&(h.timestamp<=c||h===u)))if(h.timestamp<d)f.push(h);else{let m=t(h,!1);l.addAction({doAction:()=>{m()},delay:h.delay})}r(f),n.emit(be.Flush),l.start()},pause(o){o.timer.clear()},resetLastPlayedEvent:Ka(o=>({...o,lastPlayedEvent:null})),startLive:Ka({baselineTime:(o,s)=>(o.timer.start(),s.type==="TO_LIVE"&&s.payload.baselineTime?s.payload.baselineTime:Date.now())}),addEvent:Ka((o,s)=>{let{baselineTime:l,timer:i,events:d}=o;if(s.type==="ADD_EVENT"){let{event:u}=s.payload;zy(u,l);let p=d.length-1;if(!d[p]||d[p].timestamp<=u.timestamp)d.push(u);else{let h=-1,m=0;for(;m<=p;){let y=Math.floor((m+p)/2);d[y].timestamp<=u.timestamp?m=y+1:p=y-1}h===-1&&(h=m),d.splice(h,0,u)}let c=u.timestamp<l,f=t(u,c);c?f():i.isActive()&&i.addAction({doAction:()=>{f()},delay:u.delay})}return{...o,events:d}})}});return Qw(a)}function _k(e){let t=Kw({id:"speed",context:e,initial:"normal",states:{normal:{on:{FAST_FORWARD:{target:"skipping",actions:["recordSpeed","setSpeed"]},SET_SPEED:{target:"normal",actions:["setSpeed"]}}},skipping:{on:{BACK_TO_NORMAL:{target:"normal",actions:["restoreSpeed"]},SET_SPEED:{target:"normal",actions:["setSpeed"]}}}}},{actions:{setSpeed:(r,n)=>{"payload"in n&&r.timer.setSpeed(n.payload.speed)},recordSpeed:Ka({normalSpeed:r=>r.timer.speed}),restoreSpeed:r=>{r.timer.setSpeed(r.normalSpeed)}}});return Qw(t)}var Mk=e=>[`.${e} { background: currentColor }`,"noscript { display: none !important; }"],Wy=new Map;function Yw(e,t){let r=Wy.get(e);return r||(r=new Map,Wy.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}function Cn(e,t,r){return async n=>{if(n&&typeof n=="object"&&"rr_type"in n)if(r&&(r.isUnchanged=!1),n.rr_type==="ImageBitmap"&&"args"in n){let a=await Cn(e,t,r)(n.args);return await createImageBitmap.apply(null,a)}else if("index"in n){if(r||t===null)return n;let{rr_type:a,index:o}=n;return Yw(t,a)[o]}else if("args"in n){let{rr_type:a,args:o}=n,s=window[a];return new s(...await Promise.all(o.map(Cn(e,t,r))))}else{if("base64"in n)return xk(n.base64);if("src"in n){let a=e.get(n.src);if(a)return a;{let o=new Image;return o.src=n.src,e.set(n.src,o),o}}else if("data"in n&&n.rr_type==="Blob"){let a=await Promise.all(n.data.map(Cn(e,t,r)));return new Blob(a,{type:n.type})}}else if(Array.isArray(n))return await Promise.all(n.map(Cn(e,t,r)));return n}}function Rk(e,t){try{return t===Vr.WebGL?e.getContext("webgl")||e.getContext("experimental-webgl"):e.getContext("webgl2")}catch{return null}}var Ek=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject"];function Nk(e,t){if(!t?.constructor)return;let{name:r}=t.constructor;if(!Ek.includes(r))return;let n=Yw(e,r);n.includes(t)||n.push(t)}async function Pk({mutation:e,target:t,type:r,imageMap:n,errorHandler:a}){try{let o=Rk(t,r);if(!o)return;if(e.setter){o[e.property]=e.args[0];return}let s=o[e.property],l=await Promise.all(e.args.map(Cn(n,o))),i=s.apply(o,l);Nk(o,i);let d=!1}catch(o){a(e,o)}}async function Tk({event:e,mutations:t,target:r,imageMap:n,errorHandler:a}){let o=r.getContext("2d");if(!o){a(t[0],new Error("Canvas context is null"));return}let s=t.map(async i=>Promise.all(i.args.map(Cn(n,o))));(await Promise.all(s)).forEach((i,d)=>{let u=t[d];try{if(u.setter){o[u.property]=u.args[0];return}let p=o[u.property];u.property==="drawImage"&&typeof u.args[0]=="string"?(n.get(e),p.apply(o,u.args)):p.apply(o,i)}catch(p){a(u,p)}})}async function Vy({event:e,mutation:t,target:r,imageMap:n,canvasEventMap:a,errorHandler:o}){try{let s=a.get(e)||t,l="commands"in s?s.commands:[s];if([Vr.WebGL,Vr.WebGL2].includes(t.type)){for(let i=0;i<l.length;i++){let d=l[i];await Pk({mutation:d,type:t.type,target:r,imageMap:n,errorHandler:o})}return}await Tk({event:e,mutations:l,target:r,imageMap:n,errorHandler:o})}catch(s){o(t,s)}}var Rp=class{constructor(t){R(this,"mediaMap",new Map),R(this,"warn"),R(this,"service"),R(this,"speedService"),R(this,"emitter"),R(this,"getCurrentTime"),R(this,"metadataCallbackMap",new Map),this.warn=t.warn,this.service=t.service,this.speedService=t.speedService,this.emitter=t.emitter,this.getCurrentTime=t.getCurrentTime,this.emitter.on(be.Start,this.start.bind(this)),this.emitter.on(be.SkipStart,this.start.bind(this)),this.emitter.on(be.Pause,this.pause.bind(this)),this.emitter.on(be.Finish,this.pause.bind(this)),this.speedService.subscribe(()=>{this.syncAllMediaElements()})}syncAllMediaElements(t={pause:!1}){this.mediaMap.forEach((r,n)=>{this.syncTargetWithState(n),t.pause&&n.pause()})}start(){this.syncAllMediaElements()}pause(){this.syncAllMediaElements({pause:!0})}seekTo({time:t,target:r,mediaState:n}){if(n.isPlaying){let o=(t-n.lastInteractionTimeOffset)/1e3*n.playbackRate,s="duration"in r&&r.duration;if(Number.isNaN(s)){this.waitForMetadata(r);return}let l=n.currentTimeAtLastInteraction+o;r.loop&&s!==!1&&(l=l%s),r.currentTime=l}else r.pause(),r.currentTime=n.currentTimeAtLastInteraction}waitForMetadata(t){if(this.metadataCallbackMap.has(t)||!("addEventListener"in t))return;let r=()=>{this.metadataCallbackMap.delete(t);let n=this.mediaMap.get(t);n&&this.seekTo({time:this.getCurrentTime(),target:t,mediaState:n})};this.metadataCallbackMap.set(t,r),t.addEventListener("loadedmetadata",r,{once:!0})}getMediaStateFromMutation({target:t,timeOffset:r,mutation:n}){let a=this.mediaMap.get(t),{type:o,playbackRate:s,currentTime:l,muted:i,volume:d,loop:u}=n;return{isPlaying:o===Sn.Play||o!==Sn.Pause&&(a?.isPlaying||t.getAttribute("autoplay")!==null),currentTimeAtLastInteraction:l??a?.currentTimeAtLastInteraction??0,lastInteractionTimeOffset:r,playbackRate:s??a?.playbackRate??1,volume:d??a?.volume??1,muted:i??a?.muted??t.getAttribute("muted")===null,loop:u??a?.loop??t.getAttribute("loop")===null}}syncTargetWithState(t){let r=this.mediaMap.get(t);if(!r)return;let{muted:n,loop:a,volume:o,isPlaying:s}=r,l=this.service.state.matches("paused"),i=r.playbackRate*this.speedService.state.context.timer.speed;try{this.seekTo({time:this.getCurrentTime(),target:t,mediaState:r}),t.volume!==o&&(t.volume=o),t.muted=n,t.loop=a,t.playbackRate!==i&&(t.playbackRate=i),s&&!l?t.play():t.pause()}catch(d){this.warn(`Failed to replay media interactions: ${d.message||d}`)}}addMediaElements(t,r,n){if(!["AUDIO","VIDEO"].includes(t.nodeName))return;let a=t,o=n.getMeta(a);if(!o||!("attributes"in o))return;let s=this.service.state.matches("paused"),l=o.attributes,i=!1;l.rr_mediaState?i=l.rr_mediaState==="played":i=a.getAttribute("autoplay")!==null,i&&s&&a.pause();let d=1;typeof l.rr_mediaPlaybackRate=="number"&&(d=l.rr_mediaPlaybackRate);let u=!1;typeof l.rr_mediaMuted=="boolean"?u=l.rr_mediaMuted:u=a.getAttribute("muted")!==null;let p=!1;typeof l.rr_mediaLoop=="boolean"?p=l.rr_mediaLoop:p=a.getAttribute("loop")!==null;let c=1;typeof l.rr_mediaVolume=="number"&&(c=l.rr_mediaVolume);let f=0;typeof l.rr_mediaCurrentTime=="number"&&(f=l.rr_mediaCurrentTime),this.mediaMap.set(a,{isPlaying:i,currentTimeAtLastInteraction:f,lastInteractionTimeOffset:r,playbackRate:d,volume:c,muted:u,loop:p}),this.syncTargetWithState(a)}mediaMutation({target:t,timeOffset:r,mutation:n}){this.mediaMap.set(t,this.getMediaStateFromMutation({target:t,timeOffset:r,mutation:n})),this.syncTargetWithState(t)}isSupportedMediaElement(t){return["AUDIO","VIDEO"].includes(t.nodeName)}reset(){this.mediaMap.clear()}};function Ei(e,t){if(e.nodeName!=="DIALOG"||e instanceof wr)return;let r=e,n=r.open,a=n&&r.matches("dialog:modal"),o=r.getAttribute("rr_open_mode"),s=typeof t?.attributes.open=="string"||typeof r.getAttribute("open")=="string",l=o==="modal";if(!(n&&!(a&&o==="non-modal"||!a&&l))){if(!r.isConnected){console.warn("dialog is not attached to the dom",r);return}n&&r.close(),s&&(l?r.showModal():r.show())}}function Ak(e,t){if(e.nodeName!=="DIALOG"||e instanceof wr)return;let r=e;if(!r.isConnected){console.warn("dialog is not attached to the dom",r);return}t.attributes.open===null&&(r.removeAttribute("open"),r.removeAttribute("rr_open_mode"))}var Dk=5*1e3,Ok=Ck,Gy="[replayer]",op={duration:500,lineCap:"round",lineWidth:3,strokeStyle:"red"};function Xy(e){return e.type==V.IncrementalSnapshot&&(e.data.source==$.TouchMove||e.data.source==$.MouseInteraction&&e.data.type==Se.TouchStart)}var Xi=class{constructor(t,r){if(R(this,"wrapper"),R(this,"iframe"),R(this,"UNSAFE_replayCanvas",!1),R(this,"service"),R(this,"speedService"),R(this,"config"),R(this,"usingVirtualDom",!1),R(this,"virtualDom",new to),R(this,"mouse"),R(this,"mouseTail",null),R(this,"tailPositions",[]),R(this,"emitter",Ok()),R(this,"nextUserInteractionEvent"),R(this,"legacy_missingNodeRetryMap",{}),R(this,"cache",Gv()),R(this,"imageMap",new Map),R(this,"canvasEventMap",new Map),R(this,"mirror",Zy()),R(this,"styleMirror",new Hi),R(this,"mediaManager"),R(this,"firstFullSnapshot",null),R(this,"newDocumentQueue",[]),R(this,"mousePos",null),R(this,"touchActive",null),R(this,"lastMouseDownEvent",null),R(this,"lastHoveredRootNode"),R(this,"lastSelectionData",null),R(this,"constructedStyleMutations",[]),R(this,"adoptedStyleSheets",[]),R(this,"handleResize",l=>{this.iframe.style.display="inherit";for(let i of[this.mouseTail,this.iframe])i&&(i.setAttribute("width",String(l.width)),i.setAttribute("height",String(l.height)))}),R(this,"applyEventsSynchronously",l=>{for(let i of l){switch(i.type){case V.DomContentLoaded:case V.Load:case V.Custom:continue;case V.FullSnapshot:case V.Meta:case V.Plugin:case V.IncrementalSnapshot:break}this.getCastFn(i,!0)()}}),R(this,"getCastFn",(l,i=!1)=>{let d;switch(l.type){case V.DomContentLoaded:case V.Load:break;case V.Custom:d=()=>{this.emitter.emit(be.CustomEvent,l)};break;case V.Meta:d=()=>this.emitter.emit(be.Resize,{width:l.data.width,height:l.data.height});break;case V.FullSnapshot:d=()=>{var p;if(this.firstFullSnapshot){if(this.firstFullSnapshot===l){this.firstFullSnapshot=!0;return}}else this.firstFullSnapshot=!0;this.mediaManager.reset(),this.styleMirror.reset(),this.rebuildFullSnapshot(l,i),(p=this.iframe.contentWindow)==null||p.scrollTo(l.data.initialOffset)};break;case V.IncrementalSnapshot:d=()=>{if(this.applyIncremental(l,i),!i&&(l===this.nextUserInteractionEvent&&(this.nextUserInteractionEvent=null,this.backToNormal()),this.config.skipInactive&&!this.nextUserInteractionEvent)){for(let p of this.service.state.context.events)if(!(p.timestamp<=l.timestamp)&&this.isUserInteraction(p)){p.delay-l.delay>this.config.inactivePeriodThreshold*this.speedService.state.context.timer.speed&&(this.nextUserInteractionEvent=p);break}if(this.nextUserInteractionEvent){let p=this.nextUserInteractionEvent.delay-l.delay,c={speed:Math.min(Math.round(p/Dk),this.config.maxSpeed)};this.speedService.send({type:"FAST_FORWARD",payload:c}),this.emitter.emit(be.SkipStart,c)}}};break}return()=>{d&&d();for(let c of this.config.plugins||[])c.handler&&c.handler(l,i,{replayer:this});this.service.send({type:"CAST_EVENT",payload:{event:l}});let p=this.service.state.context.events.length-1;if(!this.config.liveMode&&l===this.service.state.context.events[p]){let c=()=>{p<this.service.state.context.events.length-1||(this.backToNormal(),this.service.send("END"),this.emitter.emit(be.Finish))},f=50;l.type===V.IncrementalSnapshot&&l.data.source===$.MouseMove&&l.data.positions.length&&(f+=Math.max(0,-l.data.positions[0].timeOffset)),setTimeout(c,f)}this.emitter.emit(be.EventCast,l)}}),!r?.liveMode&&t.length<2)throw new Error("Replayer need at least 2 events.");let n={speed:1,maxSpeed:360,root:document.body,loadTimeout:0,skipInactive:!1,inactivePeriodThreshold:10*1e3,showWarning:!0,showDebug:!1,blockClass:"rr-block",liveMode:!1,insertStyleRules:[],triggerFocus:!0,UNSAFE_replayCanvas:!1,pauseAnimation:!0,mouseTail:op,useVirtualDom:!0,logger:console};this.config=Object.assign({},n,r),this.handleResize=this.handleResize.bind(this),this.getCastFn=this.getCastFn.bind(this),this.applyEventsSynchronously=this.applyEventsSynchronously.bind(this),this.emitter.on(be.Resize,this.handleResize),this.setupDom();for(let l of this.config.plugins||[])l.getMirror&&l.getMirror({nodeMirror:this.mirror});this.emitter.on(be.Flush,()=>{if(this.usingVirtualDom){let l={mirror:this.mirror,applyCanvas:(i,d,u)=>{Vy({event:i,mutation:d,target:u,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})},applyInput:this.applyInput.bind(this),applyScroll:this.applyScroll.bind(this),applyStyleSheetMutation:(i,d)=>{i.source===$.StyleSheetRule?this.applyStyleSheetRule(i,d):i.source===$.StyleDeclaration&&this.applyStyleDeclaration(i,d)},afterAppend:(i,d)=>{for(let u of this.config.plugins||[])u.onBuild&&u.onBuild(i,{id:d,replayer:this})}};if(this.iframe.contentDocument)try{qi(this.iframe.contentDocument,this.virtualDom,l,this.virtualDom.mirror)}catch(i){console.warn(i)}if(this.virtualDom.destroyTree(),this.usingVirtualDom=!1,Object.keys(this.legacy_missingNodeRetryMap).length)for(let i in this.legacy_missingNodeRetryMap)try{let d=this.legacy_missingNodeRetryMap[i],u=$i(d.node,this.mirror,this.virtualDom.mirror);qi(u,d.node,l,this.virtualDom.mirror),d.node=u}catch(d){this.warn(d)}this.constructedStyleMutations.forEach(i=>{this.applyStyleSheetMutation(i)}),this.constructedStyleMutations=[],this.adoptedStyleSheets.forEach(i=>{this.applyAdoptedStyleSheet(i)}),this.adoptedStyleSheets=[]}if(this.mousePos&&(this.moveAndHover(this.mousePos.x,this.mousePos.y,this.mousePos.id,!0,this.mousePos.debugData),this.mousePos=null),this.touchActive===!0?this.mouse.classList.add("touch-active"):this.touchActive===!1&&this.mouse.classList.remove("touch-active"),this.touchActive=null,this.lastMouseDownEvent){let[l,i]=this.lastMouseDownEvent;l.dispatchEvent(i)}this.lastMouseDownEvent=null,this.lastSelectionData&&(this.applySelection(this.lastSelectionData),this.lastSelectionData=null)}),this.emitter.on(be.PlayBack,()=>{this.firstFullSnapshot=null,this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset()});let a=new Mp([],{speed:this.config.speed});this.service=Ik({events:t.map(l=>r&&r.unpackFn?r.unpackFn(l):l).sort((l,i)=>l.timestamp-i.timestamp),timer:a,timeOffset:0,baselineTime:0,lastPlayedEvent:null},{getCastFn:this.getCastFn,applyEventsSynchronously:this.applyEventsSynchronously,emitter:this.emitter}),this.service.start(),this.service.subscribe(l=>{this.emitter.emit(be.StateChange,{player:l})}),this.speedService=_k({normalSpeed:-1,timer:a}),this.speedService.start(),this.speedService.subscribe(l=>{this.emitter.emit(be.StateChange,{speed:l})}),this.mediaManager=new Rp({warn:this.warn.bind(this),service:this.service,speedService:this.speedService,emitter:this.emitter,getCurrentTime:this.getCurrentTime.bind(this)});let o=this.service.state.context.events.find(l=>l.type===V.Meta),s=this.service.state.context.events.find(l=>l.type===V.FullSnapshot);if(o){let{width:l,height:i}=o.data;setTimeout(()=>{this.emitter.emit(be.Resize,{width:l,height:i})},0)}s&&setTimeout(()=>{var l;this.firstFullSnapshot||(this.firstFullSnapshot=s,this.rebuildFullSnapshot(s),(l=this.iframe.contentWindow)==null||l.scrollTo(s.data.initialOffset))},1),this.service.state.context.events.find(Xy)&&this.mouse.classList.add("touch-device")}get timer(){return this.service.state.context.timer}on(t,r){return this.emitter.on(t,r),this}off(t,r){return this.emitter.off(t,r),this}setConfig(t){Object.keys(t).forEach(r=>{t[r],this.config[r]=t[r]}),this.config.skipInactive||this.backToNormal(),typeof t.speed<"u"&&this.speedService.send({type:"SET_SPEED",payload:{speed:t.speed}}),typeof t.mouseTail<"u"&&(t.mouseTail===!1?this.mouseTail&&(this.mouseTail.style.display="none"):(this.mouseTail||(this.mouseTail=document.createElement("canvas"),this.mouseTail.width=Number.parseFloat(this.iframe.width),this.mouseTail.height=Number.parseFloat(this.iframe.height),this.mouseTail.classList.add("replayer-mouse-tail"),this.wrapper.insertBefore(this.mouseTail,this.iframe)),this.mouseTail.style.display="inherit"))}getMetaData(){let t=this.service.state.context.events[0],r=this.service.state.context.events[this.service.state.context.events.length-1];return{startTime:t.timestamp,endTime:r.timestamp,totalTime:r.timestamp-t.timestamp}}getCurrentTime(){return this.timer.timeOffset+this.getTimeOffset()}getTimeOffset(){let{baselineTime:t,events:r}=this.service.state.context;return t-r[0].timestamp}getMirror(){return this.mirror}play(t=0){var r,n;this.service.state.matches("paused")?this.service.send({type:"PLAY",payload:{timeOffset:t}}):(this.service.send({type:"PAUSE"}),this.service.send({type:"PLAY",payload:{timeOffset:t}})),(n=(r=this.iframe.contentDocument)==null?void 0:r.getElementsByTagName("html")[0])==null||n.classList.remove("rrweb-paused"),this.emitter.emit(be.Start)}pause(t){var r,n;t===void 0&&this.service.state.matches("playing")&&this.service.send({type:"PAUSE"}),typeof t=="number"&&(this.play(t),this.service.send({type:"PAUSE"})),(n=(r=this.iframe.contentDocument)==null?void 0:r.getElementsByTagName("html")[0])==null||n.classList.add("rrweb-paused"),this.emitter.emit(be.Pause)}resume(t=0){this.warn("The 'resume' was deprecated in 1.0. Please use 'play' method which has the same interface."),this.play(t),this.emitter.emit(be.Resume)}destroy(){this.pause(),this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset(),this.config.root.removeChild(this.wrapper),this.emitter.emit(be.Destroy)}startLive(t){this.service.send({type:"TO_LIVE",payload:{baselineTime:t}})}addEvent(t){let r=this.config.unpackFn?this.config.unpackFn(t):t;Xy(r)&&this.mouse.classList.add("touch-device"),Promise.resolve().then(()=>this.service.send({type:"ADD_EVENT",payload:{event:r}}))}enableInteract(){this.iframe.setAttribute("scrolling","auto"),this.iframe.style.pointerEvents="auto"}disableInteract(){this.iframe.setAttribute("scrolling","no"),this.iframe.style.pointerEvents="none"}resetCache(){this.cache=Gv()}setupDom(){this.wrapper=document.createElement("div"),this.wrapper.classList.add("replayer-wrapper"),this.config.root.appendChild(this.wrapper),this.mouse=document.createElement("div"),this.mouse.classList.add("replayer-mouse"),this.wrapper.appendChild(this.mouse),this.config.mouseTail!==!1&&(this.mouseTail=document.createElement("canvas"),this.mouseTail.classList.add("replayer-mouse-tail"),this.mouseTail.style.display="inherit",this.wrapper.appendChild(this.mouseTail)),this.config.UNSAFE_replayCanvas?(this.iframe=document.createElement("iframe"),this.iframe.setAttribute("sandbox","allow-same-origin allow-scripts"),this.wrapper.appendChild(this.iframe),this.UNSAFE_replayCanvas=!0):(this.iframe=ZC({root:this.wrapper}),this.UNSAFE_replayCanvas=!1),this.iframe.style.display="none",this.disableInteract(),this.iframe.contentWindow&&this.iframe.contentDocument&&(Lk(this.iframe.contentWindow,this.iframe.contentDocument),Tw(this.iframe.contentWindow))}rebuildFullSnapshot(t,r=!1){if(!this.iframe.contentDocument)return this.warn("Looks like your replayer has been destroyed.");Object.keys(this.legacy_missingNodeRetryMap).length&&this.warn("Found unresolved missing node map",this.legacy_missingNodeRetryMap),this.legacy_missingNodeRetryMap={};let n=[],a=new Set,o=(i,d)=>{if(i.nodeName==="DIALOG"&&a.add(i),this.collectIframeAndAttachDocument(n,i),this.mediaManager.isSupportedMediaElement(i)){let{events:u}=this.service.state.context;this.mediaManager.addMediaElements(i,t.timestamp-u[0].timestamp,this.mirror)}for(let u of this.config.plugins||[])u.onBuild&&u.onBuild(i,{id:d,replayer:this})};this.usingVirtualDom&&(this.virtualDom.destroyTree(),this.usingVirtualDom=!1),this.mirror.reset(),JC(t.data.node,{doc:this.iframe.contentDocument,afterAppend:o,cache:this.cache,mirror:this.mirror,UNSAFE_allowUnprotectedRebuild:this.UNSAFE_replayCanvas}),o(this.iframe.contentDocument,t.data.node.id);for(let{mutationInQueue:i,builtNode:d}of n)this.attachDocumentToIframe(i,d),this.newDocumentQueue=this.newDocumentQueue.filter(u=>u!==i);let{documentElement:s,head:l}=this.iframe.contentDocument;this.insertStyleRules(s,l),a.forEach(i=>Ei(i)),this.service.state.matches("playing")||this.iframe.contentDocument.getElementsByTagName("html")[0].classList.add("rrweb-paused"),this.emitter.emit(be.FullsnapshotRebuilded,t),r||this.waitForStylesheetLoad(),this.config.UNSAFE_replayCanvas&&this.preloadAllImages()}insertStyleRules(t,r){var n;let a=Mk(this.config.blockClass).concat(this.config.insertStyleRules);if(this.config.pauseAnimation&&a.push("html.rrweb-paused *, html.rrweb-paused *:before, html.rrweb-paused *:after { animation-play-state: paused !important; }"),!!a.length)if(this.usingVirtualDom){let o=this.virtualDom.createElement("style");this.virtualDom.mirror.add(o,Lw(o,this.virtualDom.unserializedId)),t.insertBefore(o,r),o.rules.push({source:$.StyleSheetRule,adds:a.map((s,l)=>({rule:s,index:l}))})}else{let o=document.createElement("style");t.insertBefore(o,r);for(let s=0;s<a.length;s++)(n=o.sheet)==null||n.insertRule(a[s],s)}}attachDocumentToIframe(t,r){let n=this.usingVirtualDom?this.virtualDom.mirror:this.mirror,a=[],o=new Set,s=(l,i)=>{l.nodeName==="DIALOG"&&o.add(l),this.collectIframeAndAttachDocument(a,l);let d=n.getMeta(l);if(d?.type===Wr.Element&&d?.tagName.toUpperCase()==="HTML"){let{documentElement:u,head:p}=r.contentDocument;this.insertStyleRules(u,p)}if(!this.usingVirtualDom)for(let u of this.config.plugins||[])u.onBuild&&u.onBuild(l,{id:i,replayer:this})};us(t.node,{doc:r.contentDocument,mirror:n,hackCss:!0,skipChild:!1,afterAppend:s,cache:this.cache}),s(r.contentDocument,t.node.id);for(let{mutationInQueue:l,builtNode:i}of a)this.attachDocumentToIframe(l,i),this.newDocumentQueue=this.newDocumentQueue.filter(d=>d!==l);o.forEach(l=>Ei(l))}collectIframeAndAttachDocument(t,r){if(ds(r,this.mirror)){let n=this.newDocumentQueue.find(a=>a.parentId===this.mirror.getId(r));n&&t.push({mutationInQueue:n,builtNode:r})}}waitForStylesheetLoad(){var t;let r=(t=this.iframe.contentDocument)==null?void 0:t.head;if(r){let n=new Set,a,o=this.service.state,s=()=>{o=this.service.state};this.emitter.on(be.Start,s),this.emitter.on(be.Pause,s);let l=()=>{this.emitter.off(be.Start,s),this.emitter.off(be.Pause,s)};r.querySelectorAll('link[rel="stylesheet"]').forEach(i=>{i.sheet||(n.add(i),i.addEventListener("load",()=>{n.delete(i),n.size===0&&a!==-1&&(o.matches("playing")&&this.play(this.getCurrentTime()),this.emitter.emit(be.LoadStylesheetEnd),a&&clearTimeout(a),l())}))}),n.size>0&&(this.service.send({type:"PAUSE"}),this.emitter.emit(be.LoadStylesheetStart),a=setTimeout(()=>{o.matches("playing")&&this.play(this.getCurrentTime()),a=-1,l()},this.config.loadTimeout))}}async preloadAllImages(){let t=[];for(let r of this.service.state.context.events)r.type===V.IncrementalSnapshot&&r.data.source===$.CanvasMutation&&(t.push(this.deserializeAndPreloadCanvasEvents(r.data,r)),("commands"in r.data?r.data.commands:[r.data]).forEach(a=>{this.preloadImages(a,r)}));return Promise.all(t)}preloadImages(t,r){if(t.property==="drawImage"&&typeof t.args[0]=="string"&&!this.imageMap.has(r)){let n=document.createElement("canvas"),a=n.getContext("2d"),o=a?.createImageData(n.width,n.height);a?.putImageData(o,0,0)}}async deserializeAndPreloadCanvasEvents(t,r){if(!this.canvasEventMap.has(r)){let n={isUnchanged:!0};if("commands"in t){let a=await Promise.all(t.commands.map(async o=>{let s=await Promise.all(o.args.map(Cn(this.imageMap,null,n)));return{...o,args:s}}));n.isUnchanged===!1&&this.canvasEventMap.set(r,{...t,commands:a})}else{let a=await Promise.all(t.args.map(Cn(this.imageMap,null,n)));n.isUnchanged===!1&&this.canvasEventMap.set(r,{...t,args:a})}}}applyIncremental(t,r){var n,a,o;let{data:s}=t;switch(s.source){case $.Mutation:{try{this.applyMutation(s,r)}catch(l){this.warn(`Exception in mutation ${l.message||l}`,s)}break}case $.Drag:case $.TouchMove:case $.MouseMove:if(r){let l=s.positions[s.positions.length-1];this.mousePos={x:l.x,y:l.y,id:l.id,debugData:s}}else s.positions.forEach(l=>{let i={doAction:()=>{this.moveAndHover(l.x,l.y,l.id,r,s)},delay:l.timeOffset+t.timestamp-this.service.state.context.baselineTime};this.timer.addAction(i)}),this.timer.addAction({doAction(){},delay:t.delay-((n=s.positions[0])==null?void 0:n.timeOffset)});break;case $.MouseInteraction:{if(s.id===-1)break;let l=new Event(Ln(Se[s.type])),i=this.mirror.getNode(s.id);if(!i)return this.debugNodeNotFound(s,s.id);this.emitter.emit(be.MouseInteraction,{type:s.type,target:i});let{triggerFocus:d}=this.config;switch(s.type){case Se.Blur:"blur"in i&&i.blur();break;case Se.Focus:d&&i.focus&&i.focus({preventScroll:!0});break;case Se.Click:case Se.TouchStart:case Se.TouchEnd:case Se.MouseDown:case Se.MouseUp:r?(s.type===Se.TouchStart?this.touchActive=!0:s.type===Se.TouchEnd&&(this.touchActive=!1),s.type===Se.MouseDown?this.lastMouseDownEvent=[i,l]:s.type===Se.MouseUp&&(this.lastMouseDownEvent=null),this.mousePos={x:s.x||0,y:s.y||0,id:s.id,debugData:s}):(s.type===Se.TouchStart&&(this.tailPositions.length=0),this.moveAndHover(s.x||0,s.y||0,s.id,r,s),s.type===Se.Click?(this.mouse.classList.remove("active"),this.mouse.offsetWidth,this.mouse.classList.add("active")):s.type===Se.TouchStart?(this.mouse.offsetWidth,this.mouse.classList.add("touch-active")):s.type===Se.TouchEnd?this.mouse.classList.remove("touch-active"):i.dispatchEvent(l));break;case Se.TouchCancel:r?this.touchActive=!1:this.mouse.classList.remove("touch-active");break;default:i.dispatchEvent(l)}break}case $.Scroll:{if(s.id===-1)break;if(this.usingVirtualDom){let l=this.virtualDom.mirror.getNode(s.id);if(!l)return this.debugNodeNotFound(s,s.id);l.scrollData=s;break}this.applyScroll(s,r);break}case $.ViewportResize:this.emitter.emit(be.Resize,{width:s.width,height:s.height});break;case $.Input:{if(s.id===-1)break;if(this.usingVirtualDom){let l=this.virtualDom.mirror.getNode(s.id);if(!l)return this.debugNodeNotFound(s,s.id);l.inputData=s;break}this.applyInput(s);break}case $.MediaInteraction:{let l=this.usingVirtualDom?this.virtualDom.mirror.getNode(s.id):this.mirror.getNode(s.id);if(!l)return this.debugNodeNotFound(s,s.id);let i=l,{events:d}=this.service.state.context;this.mediaManager.mediaMutation({target:i,timeOffset:t.timestamp-d[0].timestamp,mutation:s});break}case $.StyleSheetRule:case $.StyleDeclaration:{this.usingVirtualDom?s.styleId?this.constructedStyleMutations.push(s):s.id&&((a=this.virtualDom.mirror.getNode(s.id))==null||a.rules.push(s)):this.applyStyleSheetMutation(s);break}case $.CanvasMutation:{if(!this.config.UNSAFE_replayCanvas)return;if(this.usingVirtualDom){let l=this.virtualDom.mirror.getNode(s.id);if(!l)return this.debugNodeNotFound(s,s.id);l.canvasMutations.push({event:t,mutation:s})}else{let l=this.mirror.getNode(s.id);if(!l)return this.debugNodeNotFound(s,s.id);Vy({event:t,mutation:s,target:l,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})}break}case $.Font:{try{let l=new FontFace(s.family,s.buffer?new Uint8Array(JSON.parse(s.fontSource)):s.fontSource,s.descriptors);(o=this.iframe.contentDocument)==null||o.fonts.add(l)}catch(l){this.warn(l)}break}case $.Selection:{if(r){this.lastSelectionData=s;break}this.applySelection(s);break}case $.AdoptedStyleSheet:{this.usingVirtualDom?this.adoptedStyleSheets.push(s):this.applyAdoptedStyleSheet(s);break}}}applyMutation(t,r){if(this.config.useVirtualDom&&!this.usingVirtualDom&&r&&(this.usingVirtualDom=!0,TL(this.iframe.contentDocument,this.mirror,this.virtualDom),Object.keys(this.legacy_missingNodeRetryMap).length))for(let d in this.legacy_missingNodeRetryMap)try{let u=this.legacy_missingNodeRetryMap[d],p=Cw(u.node,this.virtualDom,this.mirror);p&&(u.node=p)}catch(u){this.warn(u)}let n=this.usingVirtualDom?this.virtualDom.mirror:this.mirror;t.removes=t.removes.filter(d=>n.getNode(d.id)?!0:(this.warnNodeNotFound(t,d.id),!1)),t.removes.forEach(d=>{var u;let p=n.getNode(d.id);if(!p)return;let c=n.getNode(d.parentId);if(!c)return this.warnNodeNotFound(t,d.parentId);if(d.isShadow&&Gn(c)&&(c=c.shadowRoot),n.removeNodeFromMap(p),c)try{c.removeChild(p),this.usingVirtualDom&&p.nodeName==="#text"&&c.nodeName==="STYLE"&&((u=c.rules)==null?void 0:u.length)>0&&(c.rules=[])}catch(f){if(f instanceof DOMException)this.warn("parent could not remove child in mutation",c,p,t);else throw f}});let a={...this.legacy_missingNodeRetryMap},o=[],s=d=>{let u=null;return d.nextId&&(u=n.getNode(d.nextId)),d.nextId!==null&&d.nextId!==void 0&&d.nextId!==-1&&!u},l=d=>{var u,p;if(!this.iframe.contentDocument)return this.warn("Looks like your replayer has been destroyed.");let c=n.getNode(d.parentId);if(!c)return d.node.type===Wr.Document?this.newDocumentQueue.push(d):o.push(d);d.node.isShadow&&(Gn(c)||c.attachShadow({mode:"open"}),c=c.shadowRoot);let f=null,h=null;if(d.previousId&&(f=n.getNode(d.previousId)),d.nextId&&(h=n.getNode(d.nextId)),s(d))return o.push(d);if(d.node.rootId&&!n.getNode(d.node.rootId))return;let m=d.node.rootId?n.getNode(d.node.rootId):this.usingVirtualDom?this.virtualDom:this.iframe.contentDocument;if(ds(c,n)){this.attachDocumentToIframe(d,c);return}let y=(v,S)=>{if(!this.usingVirtualDom){Ei(v);for(let b of this.config.plugins||[])b.onBuild&&b.onBuild(v,{id:S,replayer:this})}},g=us(d.node,{doc:m,mirror:n,skipChild:!0,hackCss:!0,cache:this.cache,afterAppend:y});if(d.previousId===-1||d.nextId===-1){a[d.node.id]={node:g,mutation:d};return}let x=n.getMeta(c);if(x&&x.type===Wr.Element&&d.node.type===Wr.Text){let v=Array.isArray(c.childNodes)?c.childNodes:Array.from(c.childNodes);if(x.tagName==="textarea")for(let S of v)S.nodeType===c.TEXT_NODE&&c.removeChild(S);else if(x.tagName==="style"&&v.length===1)for(let S of v)S.nodeType===c.TEXT_NODE&&!n.hasNode(S)&&(g.textContent=S.textContent,c.removeChild(S))}else if(x?.type===Wr.Document){let v=c;d.node.type===Wr.DocumentType&&((u=v.childNodes[0])==null?void 0:u.nodeType)===Node.DOCUMENT_TYPE_NODE&&v.removeChild(v.childNodes[0]),g.nodeName==="HTML"&&v.documentElement&&v.removeChild(v.documentElement)}if(f&&f.nextSibling&&f.nextSibling.parentNode?c.insertBefore(g,f.nextSibling):h&&h.parentNode?c.contains(h)?c.insertBefore(g,h):c.insertBefore(g,null):c.appendChild(g),y(g,d.node.id),this.usingVirtualDom&&g.nodeName==="#text"&&c.nodeName==="STYLE"&&((p=c.rules)==null?void 0:p.length)>0&&(c.rules=[]),ds(g,this.mirror)){let v=this.mirror.getId(g),S=this.newDocumentQueue.find(b=>b.parentId===v);S&&(this.attachDocumentToIframe(S,g),this.newDocumentQueue=this.newDocumentQueue.filter(b=>b!==S))}(d.previousId||d.nextId)&&this.legacy_resolveMissingNode(a,c,g,d)};t.adds.forEach(d=>{l(d)});let i=Date.now();for(;o.length;){let d=KL(o);if(o.length=0,Date.now()-i>500){this.warn("Timeout in the loop, please check the resolve tree data:",d);break}for(let u of d)n.getNode(u.value.parentId)?Aw(u,c=>{l(c)}):this.debug("Drop resolve tree since there is no parent for the root node.",u)}Object.keys(a).length&&Object.assign(this.legacy_missingNodeRetryMap,a),QL(t.texts).forEach(d=>{var u;let p=n.getNode(d.id);if(!p)return t.removes.find(f=>f.id===d.id)?void 0:this.warnNodeNotFound(t,d.id);let c=p.parentElement;if(d.value&&c&&c.tagName==="STYLE"?p.textContent=eu(d.value,this.cache):p.textContent=d.value,this.usingVirtualDom){let f=p.parentNode;((u=f?.rules)==null?void 0:u.length)>0&&(f.rules=[])}}),t.attributes.forEach(d=>{var u;let p=n.getNode(d.id);if(!p)return t.removes.find(c=>c.id===d.id)?void 0:this.warnNodeNotFound(t,d.id);for(let c in d.attributes)if(typeof c=="string"){let f=d.attributes[c];if(f===null)p.removeAttribute(c),c==="open"&&Ak(p,d);else if(typeof f=="string")try{if(c==="_cssText"&&(p.nodeName==="LINK"||p.nodeName==="STYLE"))try{let h=n.getMeta(p),m=us({...h,attributes:{...h.attributes,...d.attributes}},{doc:p.ownerDocument,mirror:n,skipChild:!0,hackCss:!0,cache:this.cache});Object.assign(h.attributes,d.attributes);let y=p.nextSibling,g=p.parentNode;if(m&&g){g.removeChild(p),g.insertBefore(m,y),n.replace(d.id,m);break}}catch{}if(c==="value"&&p.nodeName==="TEXTAREA"){let h=p;h.childNodes.forEach(y=>h.removeChild(y));let m=(u=p.ownerDocument)==null?void 0:u.createTextNode(f);m&&h.appendChild(m)}else p.setAttribute(c,f);c==="rr_open_mode"&&p.nodeName==="DIALOG"&&Ei(p,d)}catch(h){this.warn("An error occurred may due to the checkout feature.",h)}else if(c==="style"){let h=f,m=p;for(let y in h)if(h[y]===!1)m.style.removeProperty(y);else if(h[y]instanceof Array){let g=h[y];m.style.setProperty(y,g[0],g[1])}else{let g=h[y];m.style.setProperty(y,g)}}}})}applyScroll(t,r){var n,a;let o=this.mirror.getNode(t.id);if(!o)return this.debugNodeNotFound(t,t.id);let s=this.mirror.getMeta(o);if(o===this.iframe.contentDocument)(n=this.iframe.contentWindow)==null||n.scrollTo({top:t.y,left:t.x,behavior:r?"auto":"smooth"});else if(s?.type===Wr.Document)(a=o.defaultView)==null||a.scrollTo({top:t.y,left:t.x,behavior:r?"auto":"smooth"});else try{o.scrollTo({top:t.y,left:t.x,behavior:r?"auto":"smooth"})}catch{}}applyInput(t){let r=this.mirror.getNode(t.id);if(!r)return this.debugNodeNotFound(t,t.id);try{r.checked=t.isChecked,r.value=t.text}catch{}}applySelection(t){try{let r=new Set,n=t.ranges.map(({start:a,startOffset:o,end:s,endOffset:l})=>{let i=this.mirror.getNode(a),d=this.mirror.getNode(s);if(!i||!d)return;let u=new Range;u.setStart(i,o),u.setEnd(d,l);let p=i.ownerDocument,c=p?.getSelection();return c&&r.add(c),{range:u,selection:c}});r.forEach(a=>a.removeAllRanges()),n.forEach(a=>{var o;return a&&((o=a.selection)==null?void 0:o.addRange(a.range))})}catch{}}applyStyleSheetMutation(t){var r;let n=null;t.styleId?n=this.styleMirror.getStyle(t.styleId):t.id&&(n=((r=this.mirror.getNode(t.id))==null?void 0:r.sheet)||null),n&&(t.source===$.StyleSheetRule?this.applyStyleSheetRule(t,n):t.source===$.StyleDeclaration&&this.applyStyleDeclaration(t,n))}applyStyleSheetRule(t,r){var n,a,o,s;if((n=t.adds)==null||n.forEach(({rule:l,index:i})=>{try{if(Array.isArray(i)){let{positions:d,index:u}=Ry(i),p=os(r.cssRules,d);p?.insertRule(l,u)}else{let d=i===void 0?void 0:Math.min(i,r.cssRules.length);r?.insertRule(l,d)}}catch{}}),(a=t.removes)==null||a.forEach(({index:l})=>{try{if(Array.isArray(l)){let{positions:i,index:d}=Ry(l),u=os(r.cssRules,i);u?.deleteRule(d||0)}else r?.deleteRule(l)}catch{}}),typeof t.replace=="string")try{(o=r.replace)==null||o.call(r,t.replace)}catch{}if(typeof t.replaceSync=="string")try{(s=r.replaceSync)==null||s.call(r,t.replaceSync)}catch{}}applyStyleDeclaration(t,r){if(t.set){let n=os(r.rules,t.index);n?.style&&n.style.setProperty(t.set.property,t.set.value,t.set.priority)}if(t.remove){let n=os(r.rules,t.index);n?.style&&n.style.removeProperty(t.remove.property)}}applyAdoptedStyleSheet(t){var r;let n=this.mirror.getNode(t.id);if(!n)return;(r=t.styles)==null||r.forEach(l=>{var i;let d=null,u=null;if(Gn(n)?u=((i=n.ownerDocument)==null?void 0:i.defaultView)||null:n.nodeName==="#document"&&(u=n.defaultView),!!u)try{d=new u.CSSStyleSheet,this.styleMirror.add(d,l.styleId),this.applyStyleSheetRule({source:$.StyleSheetRule,adds:l.rules},d)}catch{}});let a=10,o=0,s=(l,i)=>{let d=i.map(u=>this.styleMirror.getStyle(u)).filter(u=>u!==null);Gn(l)?l.shadowRoot.adoptedStyleSheets=d:l.nodeName==="#document"&&(l.adoptedStyleSheets=d),d.length!==i.length&&o<a&&(setTimeout(()=>s(l,i),0+100*o),o++)};s(n,t.styleIds)}legacy_resolveMissingNode(t,r,n,a){let{previousId:o,nextId:s}=a,l=o&&t[o],i=s&&t[s];if(l){let{node:d,mutation:u}=l;r.insertBefore(d,n),delete t[u.node.id],delete this.legacy_missingNodeRetryMap[u.node.id],(u.previousId||u.nextId)&&this.legacy_resolveMissingNode(t,r,d,u)}if(i){let{node:d,mutation:u}=i;r.insertBefore(d,n.nextSibling),delete t[u.node.id],delete this.legacy_missingNodeRetryMap[u.node.id],(u.previousId||u.nextId)&&this.legacy_resolveMissingNode(t,r,d,u)}}moveAndHover(t,r,n,a,o){let s=this.mirror.getNode(n);if(!s)return this.debugNodeNotFound(o,n);let l=Ow(s,this.iframe),i=t*l.absoluteScale+l.x,d=r*l.absoluteScale+l.y;this.mouse.style.left=`${i}px`,this.mouse.style.top=`${d}px`,a||this.drawMouseTail({x:i,y:d}),this.hoverElements(s)}drawMouseTail(t){if(!this.mouseTail)return;let{lineCap:r,lineWidth:n,strokeStyle:a,duration:o}=this.config.mouseTail===!0?op:Object.assign({},op,this.config.mouseTail),s=()=>{if(!this.mouseTail)return;let l=this.mouseTail.getContext("2d");!l||!this.tailPositions.length||(l.clearRect(0,0,this.mouseTail.width,this.mouseTail.height),l.beginPath(),l.lineWidth=n,l.lineCap=r,l.strokeStyle=a,l.moveTo(this.tailPositions[0].x,this.tailPositions[0].y),this.tailPositions.forEach(i=>l.lineTo(i.x,i.y)),l.stroke())};this.tailPositions.push(t),s(),setTimeout(()=>{this.tailPositions=this.tailPositions.filter(l=>l!==t),s()},o/this.speedService.state.context.timer.speed)}hoverElements(t){var r;(r=this.lastHoveredRootNode||this.iframe.contentDocument)==null||r.querySelectorAll(".\\:hover").forEach(a=>{a.classList.remove(":hover")}),this.lastHoveredRootNode=t.getRootNode();let n=t;for(;n;)n.classList&&n.classList.add(":hover"),n=n.parentElement}isUserInteraction(t){return t.type!==V.IncrementalSnapshot?!1:t.data.source>$.Mutation&&t.data.source<=$.Input}backToNormal(){this.nextUserInteractionEvent=null,!this.speedService.state.matches("normal")&&(this.speedService.send({type:"BACK_TO_NORMAL"}),this.emitter.emit(be.SkipEnd,{speed:this.speedService.state.context.normalSpeed}))}warnNodeNotFound(t,r){this.warn(`Node with id '${r}' not found. `,t)}warnCanvasMutationFailed(t,r){this.warn("Has error on canvas update",r,"canvas mutation:",t)}debugNodeNotFound(t,r){this.debug(`Node with id '${r}' not found. `,t)}warn(...t){this.config.showWarning&&this.config.logger.warn(Gy,...t)}debug(...t){this.config.showDebug&&this.config.logger.log(Gy,...t)}},{addCustomEvent:rM}=Jn,{freezePage:nM}=Jn,{takeFullSnapshot:aM}=Jn;var _t=B(me(),1);var iu=B(me());var Jw=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),lu=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim();var ys=B(me());var Zw={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var eb=(0,ys.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:a="",children:o,iconNode:s,...l},i)=>(0,ys.createElement)("svg",{ref:i,...Zw,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:lu("lucide",a),...l},[...s.map(([d,u])=>(0,ys.createElement)(d,u)),...Array.isArray(o)?o:[o]]));var q=(e,t)=>{let r=(0,iu.forwardRef)(({className:n,...a},o)=>(0,iu.createElement)(eb,{ref:o,iconNode:t,className:lu(`lucide-${Jw(e)}`,n),...a}));return r.displayName=`${e}`,r};var no=q("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);var Zn=q("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);var ea=q("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);var ta=q("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);var ws=q("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);var bs=q("Command",[["path",{d:"M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3",key:"11bfej"}]]);var Ss=q("Disc",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);var ra=q("FastForward",[["polygon",{points:"13 19 22 12 13 5 13 19",key:"587y9g"}],["polygon",{points:"2 19 11 12 2 5 2 19",key:"3pweh0"}]]);var Cs=q("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);var na=q("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);var Ls=q("Keyboard",[["path",{d:"M10 8h.01",key:"1r9ogq"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M14 8h.01",key:"1primd"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"M18 8h.01",key:"emo2bl"}],["path",{d:"M6 8h.01",key:"x9i8wu"}],["path",{d:"M7 16h10",key:"wp8him"}],["path",{d:"M8 12h.01",key:"czm47f"}],["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}]]);var kn=q("Link2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]);var ks=q("Magnet",[["path",{d:"m6 15-4-4 6.75-6.77a7.79 7.79 0 0 1 11 11L13 22l-4-4 6.39-6.36a2.14 2.14 0 0 0-3-3L6 15",key:"1i3lhw"}],["path",{d:"m5 8 4 4",key:"j6kj7e"}],["path",{d:"m12 15 4 4",key:"lnac28"}]]);var aa=q("Maximize",[["path",{d:"M8 3H5a2 2 0 0 0-2 2v3",key:"1dcmit"}],["path",{d:"M21 8V5a2 2 0 0 0-2-2h-3",key:"1e4gt3"}],["path",{d:"M3 16v3a2 2 0 0 0 2 2h3",key:"wsl5sc"}],["path",{d:"M16 21h3a2 2 0 0 0 2-2v-3",key:"18trek"}]]);var oa=q("Minimize",[["path",{d:"M8 3v3a2 2 0 0 1-2 2H3",key:"hohbtr"}],["path",{d:"M21 8h-3a2 2 0 0 1-2-2V3",key:"5jw1f3"}],["path",{d:"M3 16h3a2 2 0 0 1 2 2v3",key:"198tvr"}],["path",{d:"M16 21v-3a2 2 0 0 1 2-2h3",key:"ph8mxp"}]]);var Is=q("MonitorPlay",[["path",{d:"M10 7.75a.75.75 0 0 1 1.142-.638l3.664 2.249a.75.75 0 0 1 0 1.278l-3.664 2.25a.75.75 0 0 1-1.142-.64z",key:"1pctta"}],["path",{d:"M12 17v4",key:"1riwvh"}],["path",{d:"M8 21h8",key:"1ev6f3"}],["rect",{x:"2",y:"3",width:"20",height:"14",rx:"2",key:"x3v2xh"}]]);var _s=q("MousePointer2",[["path",{d:"M4.037 4.688a.495.495 0 0 1 .651-.651l16 6.5a.5.5 0 0 1-.063.947l-6.124 1.58a2 2 0 0 0-1.438 1.435l-1.579 6.126a.5.5 0 0 1-.947.063z",key:"edeuup"}]]);var Ms=q("Pause",[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]]);var sa=q("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);var Rs=q("Repeat",[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]]);var Es=q("Rewind",[["polygon",{points:"11 19 2 12 11 5 11 19",key:"14yba5"}],["polygon",{points:"22 19 13 12 22 5 22 19",key:"1pi1cj"}]]);var Ns=q("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);var Ps=q("Scissors",[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M8.12 8.12 12 12",key:"1alkpv"}],["path",{d:"M20 4 8.12 15.88",key:"xgtan2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M14.8 14.8 20 20",key:"ptml3r"}]]);var Ts=q("SkipBack",[["polygon",{points:"19 20 9 12 19 4 19 20",key:"o2sva"}],["line",{x1:"5",x2:"5",y1:"19",y2:"5",key:"1ocqjk"}]]);var As=q("SkipForward",[["polygon",{points:"5 4 15 12 5 20 5 4",key:"16p6eg"}],["line",{x1:"19",x2:"19",y1:"5",y2:"19",key:"futhcm"}]]);var tr=q("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);var Ds=q("StepBack",[["line",{x1:"18",x2:"18",y1:"20",y2:"4",key:"cun8e5"}],["polygon",{points:"14,20 4,12 14,4",key:"ypakod"}]]);var Os=q("StepForward",[["line",{x1:"6",x2:"6",y1:"4",y2:"20",key:"fy8qot"}],["polygon",{points:"10,4 20,12 10,20",key:"1mc1pf"}]]);var Fs=q("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);var Bs=q("Volume2",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]]);var zs=q("VolumeX",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["line",{x1:"22",x2:"16",y1:"9",y2:"15",key:"1ewh16"}],["line",{x1:"16",x2:"22",y1:"9",y2:"15",key:"5ykzw1"}]]);var la=q("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var ia=q("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);var $s=B(ce(),1),H=B(ce(),1),wu=B(me(),1);var Ot=B(ce(),1),Ib=B(me(),1);var Ae=B(ce(),1),_b=B(me(),1),du=B(ce(),1),or=B(me(),1);var lo=B(me(),1);var bu=B(me(),1),E=B(ce(),1),Nb=B(me(),1);var tt=B(ce(),1);var Pb=B(me(),1);var Qe=B(ce(),1),In=B(ce(),1),Su=B(me(),1);var qs=B(ce(),1),rm=B(ce(),1),nm=B(ce(),1),cu=B(me(),1);var Xe=B(me(),1);var Rn=B(me(),1),oe=B(ce(),1),Hs=B(me(),1);var vt=B(ce(),1),At=B(ce(),1),Y=B(ce(),1),Fb=B(me(),1),_n=B(me(),1);var De=B(ce(),1),so=B(me(),1),Mn=B(ce(),1);var J=B(ce(),1),om=B(me(),1),Wt=B(ce(),1);var Dt=B(ce(),1),xu=B(ce(),1),js=B(me(),1),oo=B(ce(),1),et=B(ce(),1),ar=B(me(),1),nr=B(ce(),1),rr=B(ce(),1),Cu=B(me(),1);var Ve=B(ce(),1),Ws=B(me(),1);var cm=B(ce(),1);var vb=[.5,1,1.5,2,4,8],uu=["stage","balanced","debug"];function sm(e){if(!e||!e.length)return[...uu];let t=new Set;for(let r of e)uu.includes(r)&&t.add(r);return t.size?[...t]:[...uu]}var fu=["chapters","interaction","console","network","error","task","vitals"],lt={speed:"obsrviq.player.speed",autoSkip:"obsrviq.player.autoSkip",autoSkim:"obsrviq.player.autoSkim",showCursor:"obsrviq.player.showCursor",mode:"obsrviq.player.mode",laneState:"obsrviq.player.laneState",snap:"obsrviq.player.snap"};function ua(e,t,r){try{let n=localStorage.getItem(e);return n==null?t:r(n)}catch{return t}}function Kr(e,t){try{localStorage.setItem(e,t)}catch{}}function Fk(){let e={};for(let t of fu)e[t]={collapsed:t==="console"||t==="vitals",solo:!1,mute:!1};return e}function Bk(){let e=Fk();try{let t=localStorage.getItem(lt.laneState);if(!t)return e;let r=JSON.parse(t);for(let n of fu){let a=r[n];a&&(e[n]={collapsed:!!a.collapsed,solo:!!a.solo,mute:!!a.mute})}return e}catch{return e}}function zk(){let e=null,t=null;return lv((r,n)=>{let a=()=>{e&&(clearInterval(e),e=null)},o=()=>{a();let l=performance.now();e=setInterval(()=>{let i=performance.now(),d=(i-l)*n().speed;l=i;let u=n().currentTime+d;u>=n().durationMs?(r({currentTime:n().durationMs}),n()._onFinish()):n()._onTime(u)},33.333333333333336)},s=l=>{let i=n(),d=i.events.find(p=>p.id===l);if(d)return d.t;let u=i.markers.find(p=>p.ref===l);return u?u.t:null};return{status:"idle",durationMs:0,currentTime:0,bufferedMs:0,speed:ua(lt.speed,1,l=>Number(l)),autoSkip:ua(lt.autoSkip,!1,l=>l==="true"),autoSkim:ua(lt.autoSkip,!1,l=>l==="true")?!1:ua(lt.autoSkim,!0,l=>l==="true"),isSkimming:!1,isSkipping:!1,lastSkipMs:0,loop:!1,clipStart:null,clipEnd:null,clipLoop:!1,autoplayNext:!1,showCursor:ua(lt.showCursor,!0,l=>l==="true"),activePanel:"console",events:[],markers:[],summary:null,offset:0,hasReplay:!1,error:null,errorNotFound:!1,loadProgress:0,live:!1,following:!1,pendingSeek:null,controller:null,_covers:null,_moreForward:null,focusMode:ua(lt.mode,"balanced",l=>l==="stage"||l==="debug"?l:"balanced"),allowedModes:[...uu],selectedEventId:null,selectionRange:null,zoomStack:[],laneState:Bk(),hover:null,snap:ua(lt.snap,!0,l=>l==="true"),feedFilter:"all",paletteOpen:!1,toRelative:l=>{let i=l-n().offset;return Math.max(0,Math.min(n().durationMs,i))},play:()=>{let l=n();if(l.status==="error")return;l.clipEnd!=null&&l.currentTime>=l.clipEnd&&r({clipStart:null,clipEnd:null,clipLoop:!1});let i=l.clipEnd==null&&l.currentTime>=l.durationMs-20?0:l.currentTime;l.controller?l.controller.play(i):(i===0&&r({currentTime:0}),o()),r({status:"playing"})},pause:()=>{let l=n();l.controller?l.controller.pause():a(),r({status:"paused"})},toggle:()=>n().status==="playing"?n().pause():n().play(),restart:()=>{n().seek(0),n().play()},seek:l=>{let i=n(),d=Math.max(0,Math.min(i.durationMs,l)),u=i._covers?i._covers(d):d<=i.bufferedMs+1;!i.controller||u?(i.controller&&i.controller.seek(d),r({currentTime:d,pendingSeek:null,status:i.status==="ended"||i.status==="buffering"?"paused":i.status,following:!1})):r({currentTime:d,pendingSeek:d,status:"buffering",following:!1})},step:l=>{let i=n(),d=i.controller?.mutationTimes??[];if(!d.length){n().seek(i.currentTime+l*200);return}let u=i.currentTime,p=l>0?d.find(c=>c>u+1):[...d].reverse().find(c=>c<u-1);p!=null&&n().seek(p)},jumpEvent:l=>{let i=n(),d=i.markers.map(c=>i.toRelative(c.t)).sort((c,f)=>c-f);if(!d.length)return;let u=i.currentTime,p=l>0?d.find(c=>c>u+1):[...d].reverse().find(c=>c<u-1);p!=null&&n().seek(p)},setSpeed:l=>{n().controller?.setSpeed(l),Kr(lt.speed,String(l)),r({speed:l})},setPanel:l=>r({activePanel:l}),setAutoSkip:l=>{n().controller?.setAutoSkip(l),Kr(lt.autoSkip,String(l)),l&&n().autoSkim&&(n().controller?.setAutoSkim(!1),Kr(lt.autoSkim,"false"),r({autoSkim:!1,isSkimming:!1})),r({autoSkip:l,isSkipping:l?n().isSkipping:!1})},setAutoSkim:l=>{n().controller?.setAutoSkim(l),Kr(lt.autoSkim,String(l)),l&&n().autoSkip&&(n().controller?.setAutoSkip(!1),Kr(lt.autoSkip,"false"),r({autoSkip:!1,isSkipping:!1})),r({autoSkim:l,isSkimming:l?n().isSkimming:!1})},setLoop:l=>r({loop:l}),setClip:(l,i,d=!1)=>r({clipStart:l,clipEnd:i,clipLoop:d}),setAutoplayNext:l=>r({autoplayNext:l}),setShowCursor:l=>{n().controller?.setShowCursor(l),Kr(lt.showCursor,String(l)),r({showCursor:l})},setFollowing:l=>{let i=n();l&&i.controller&&(i.controller.seek(i.durationMs),r({currentTime:i.durationMs})),r({following:l})},setFocusMode:l=>{n().allowedModes.includes(l)&&(Kr(lt.mode,l),r({focusMode:l}))},setAllowedModes:l=>{let i=sm(l),d=i.includes(n().focusMode)?n().focusMode:i[0];r({allowedModes:i,focusMode:d})},select:l=>{if(r({selectedEventId:l}),l!=null){let i=s(l);i!=null&&n().seek(n().toRelative(i))}},selectAndSeek:l=>{let i=s(l);r({selectedEventId:l}),i!=null&&n().seek(n().toRelative(i))},brush:(l,i)=>{if(i==null){r({selectionRange:null});return}let d=Math.min(l,i),u=Math.max(l,i);r({selectionRange:[d,u]})},zoomTo:(l,i)=>{let d=n(),u=Math.max(0,Math.min(l,i)),p=Math.min(d.offset+d.durationMs,Math.max(l,i));p-u<50||r({zoomStack:[...d.zoomStack,[u,p]]})},zoomOutTo:l=>{let i=n();r({zoomStack:i.zoomStack.slice(0,Math.max(0,l))})},setHover:l=>r({hover:l==null?null:{t:l}}),toggleSnap:()=>{let l=!n().snap;Kr(lt.snap,String(l)),r({snap:l})},toggleLane:(l,i)=>{let d=n(),u=d.laneState[l],p={...d.laneState,[l]:{...u,[i]:!u[i]}};Kr(lt.laneState,JSON.stringify(p)),r({laneState:p})},setFeedFilter:l=>r({feedFilter:l}),nextProblem:l=>{let i=n(),d={error:5,network:4,rage:3,dead:2,nav:1,conversion:1,ai:0},u=i.markers.filter(f=>(d[f.kind]??0)>=2).map(f=>({rel:i.toRelative(f.t),m:f})).sort((f,h)=>f.rel-h.rel);if(!u.length)return;let p=i.currentTime,c=l>0?u.find(f=>f.rel>p+1):[...u].reverse().find(f=>f.rel<p-1);c&&(r({selectedEventId:c.m.ref}),n().seek(c.rel))},walkLane:(l,i)=>{let d=n(),u=d.events.filter(f=>Uk(l,f)).map(f=>({rel:d.toRelative(f.t),id:f.id})).sort((f,h)=>f.rel-h.rel);if(!u.length)return;let p=d.currentTime,c=i>0?u.find(f=>f.rel>p+1):[...u].reverse().find(f=>f.rel<p-1);c&&(r({selectedEventId:c.id}),n().seek(c.rel))},openPalette:l=>r({paletteOpen:l}),rewindToCause:l=>{let i=n(),d=s(l);if(d==null)return;let u=i.toRelative(d);n().seek(Math.max(0,u-5e3))},_attachController:l=>{let i=n().durationMs;r({controller:l,durationMs:Math.max(i,l.meta.totalTime),bufferedMs:l.meta.totalTime,status:"paused"})},_detachController:()=>{a();let l=n().controller;l&&l.destroy(),r({controller:null})},_setLoaderProbes:(l,i)=>r({_covers:l,_moreForward:i}),_onTime:l=>{let i=n();if(i.clipEnd!=null&&l>=i.clipEnd&&i.status==="playing"){i.clipLoop?n().seek(i.clipStart??0):(i.controller?i.controller.pause(i.clipEnd):a(),r({currentTime:i.clipEnd,status:"paused"}));return}r({currentTime:l})},_onSkip:l=>{r({isSkipping:!0,lastSkipMs:l}),t&&clearTimeout(t),t=setTimeout(()=>r({isSkipping:!1}),1100)},_onFinish:()=>{let l=n();l.live&&l.following?r({status:"paused",currentTime:l.durationMs}):l.clipEnd!=null&&l.currentTime>=l.clipEnd-1?l.clipLoop?(n().seek(l.clipStart??0),n().play()):(a(),r({currentTime:l.clipEnd,status:"paused"})):l.controller&&(l._moreForward?l._moreForward(l.currentTime):l.currentTime<l.durationMs-1)?r({status:"buffering"}):l.loop?n().restart():(a(),r({status:"ended"}))},_setData:l=>r(l)}})}function Uk(e,t){switch(e){case"network":return t.type==="network";case"error":return t.type==="error"||t.type==="console"&&t.level==="error";case"console":return t.type==="console";case"vitals":return t.type==="perf";case"task":return t.type==="custom"&&/^(.+):(started|ended)$/.test(t.name??"");case"interaction":return t.type==="custom"&&!/^(.+):(started|ended)$/.test(t.name??"")&&!["_tag","identify","metadata","_click","_scroll"].includes(t.name??"");case"chapters":return t.type==="custom"&&["navigation","pageview"].includes(t.name??"");default:return!1}}var wb=(0,vu.createContext)(null);function qk({store:e,children:t}){return(0,yb.jsx)(wb.Provider,{value:e,children:t})}function lm(){let e=(0,vu.useContext)(wb);if(!e)throw new Error("usePlayer must be used within <ReplayPlayer>");return e}function M(e){return iv(lm(),e)}var Sb=(0,yu.createContext)(null);function $k({value:e,children:t}){return(0,bb.jsx)(Sb.Provider,{value:e,children:t})}function Hk(){return(0,yu.useContext)(Sb)}async function*jk(e,t,r,n){let a={"content-type":"application/json"};t.token?a.authorization=`Bearer ${t.token}`:t.apiKey&&(a.authorization=`Bearer ${t.apiKey}`,a["x-obsrviq-key"]=t.apiKey);let o=await fetch(e,{method:"POST",headers:a,body:JSON.stringify(r),signal:n});if(!o.ok||!o.body)throw new Error(`${o.status} ${o.statusText}`);let s=o.body.getReader(),l=new TextDecoder,i="";for(;;){let{done:d,value:u}=await s.read();if(d)break;i+=l.decode(u,{stream:!0});let p=i.split(`
|
|
137
137
|
|
|
138
|
-
`);l=p.pop()??"";for(let c of p){let f=c.trim();if(!f.startsWith("data:"))continue;let h=f.slice(5).trim();if(h==="[DONE]")return;try{yield JSON.parse(h)}catch{}}}}async function Bk(e,t){let r=t.apiBaseUrl.replace(/\/$/,""),n=await Kr(`${r}/v1/sessions/${e}`,t),a=await Kr(`${r}/v1/sessions/${e}/events`,t);return{detail:n,events:a.items}}async function Xp(e,t){return(await Kr(e,t)).slice().sort((n,a)=>n.timestamp-a.timestamp)}function zk(e){return e.token?{authorization:`Bearer ${e.token}`}:e.apiKey?{authorization:`Bearer ${e.apiKey}`,"x-obsrviq-key":e.apiKey}:{}}async function Kr(e,t){let r=await fetch(e,{headers:zk(t)});if(!r.ok)throw Object.assign(new Error(`${r.status} ${r.statusText} (${e})`),{notFound:r.status===404});return await r.json()}async function Uk(e,t,r){let n=t.apiBaseUrl.replace(/\/$/,""),a=await Kr(`${n}/v1/sessions/${e}`,t),o=await Kr(`${n}/v1/sessions/${e}/events`,t),s=[...a.replayChunks].sort((u,p)=>u.seq-p.seq),i=0,d=(await Promise.allSettled(s.map(async u=>{let p=await Kr(u.url,t);return r?.(++i,s.length),p}))).filter(u=>u.status==="fulfilled").flatMap(u=>u.value).sort((u,p)=>u.timestamp-p.timestamp);return{detail:a,events:o.items,rrwebEvents:d}}async function qk(e,t,r,n){let a=t.apiBaseUrl.replace(/\/$/,""),o=await Kr(`${a}/v1/sessions/${e}`,t),s=o.replayChunks.filter(c=>c.seq>r).sort((c,f)=>c.seq-f.seq),i=r,d=(await Promise.allSettled(s.map(async c=>{let f=await Kr(c.url,t);return c.seq>i&&(i=c.seq),f}))).filter(c=>c.status==="fulfilled").flatMap(c=>c.value).sort((c,f)=>c.timestamp-f.timestamp),p=(await Kr(`${a}/v1/sessions/${e}/events`,t)).items.filter(c=>c.t>n);return{summary:o.summary,newRrwebEvents:d,newEvents:p,maxSeq:i}}var $k=2e3;function Fs(e){let t=[];for(let r of e){let n=null,a="";switch(r.type){case"error":{n="error",a=`${r.name??"Error"}: ${r.message??""}`.slice(0,120);break}case"console":{let o=r;o.level==="error"&&(n="error",a=Hk(o));break}case"network":{let o=r;(o.status===0||o.status>=400||o.timing&&o.timing.duration>$k)&&(n="network",a=`${o.method} ${o.url} \u2014 ${o.status||"failed"}`.slice(0,120));break}case"custom":{let o=r;if(o.name==="rage_click")n="rage",a=`Rage click ${Qw(o)}`;else if(o.name==="dead_click")n="dead",a=`Dead click ${Qw(o)}`;else if(o.props&&o.props.conversion===!0)n="conversion",a=`Conversion: ${o.name}`;else if(o.name==="navigation"||o.name==="pageview")n="nav",a="Page change";else{let s=/^(.+):started$/.exec(o.name??""),i=/^(.+):ended$/.exec(o.name??"");s?(n="task",a=`Task: ${o.props?.task??s[1]}`):i&&(n="task",a=`Task ended: ${o.props?.task??i[1]}`)}break}case"ai":{n="ai",a="AI step";break}}n&&t.push({kind:n,t:r.t,label:a,ref:r.id})}return t.sort((r,n)=>r.t-n.t)}function Hk(e){let t=e.args[0];return t?t.kind==="string"?t.value.slice(0,120):t.kind==="error"?`${t.name}: ${t.message}`.slice(0,120):t.kind==="object"?t.preview.slice(0,120):t.kind==="primitive"?String(t.value):"console.error":"console.error"}function Qw(e){return e.props?.selector??""}var Yw="#6e76f1",Wk=8,jk=2500,Vk=1200,Gk=600,Xk=400,Jw=250,Kk=class{constructor(e,t,r,n){this.root=e,this.cb=n,this.playing=!1,this.raf=0,this.destroyed=!1,this.activityTimes=[],this.extraActivity=[],this.idleGaps=[],this.autoSkim=!1,this.autoSkip=!1,this.skimming=!1,this.replayer=new jl(t,{root:e,speed:r.speed,skipInactive:!1,showWarning:!1,showDebug:!1,mouseTail:r.showCursor?{strokeStyle:Yw}:!1,UNSAFE_replayCanvas:!1});let a=this.replayer.getMetaData();this.meta={startTime:a.startTime,endTime:a.endTime,totalTime:a.totalTime},this.mutationTimes=t.filter(o=>o.type===3).map(o=>o.timestamp-a.startTime).filter(o=>o>=0).sort((o,s)=>o-s),this.userSpeed=r.speed,this.autoSkim=!!r.autoSkim,this.autoSkip=!!r.autoSkip,this.rebuildActivity(),this.replayer.on("finish",()=>{this.playing=!1,this.stopLoop(),this.cb.onFinish()}),this.replayer.on("resize",()=>this.fit()),requestAnimationFrame(()=>this.fit())}appendEvents(e){let t=!1;for(let r of e){try{this.replayer.addEvent(r)}catch{}if(r.timestamp>this.meta.endTime&&(this.meta.endTime=r.timestamp),r.type===3){let n=r.timestamp-this.meta.startTime;n>=0&&(this.mutationTimes.push(n),t=!0)}}return t&&(this.mutationTimes.sort((r,n)=>r-n),this.rebuildActivity()),this.meta.totalTime=Math.max(this.meta.totalTime,this.meta.endTime-this.meta.startTime),this.meta.totalTime}setActivityTimes(e){this.extraActivity=e.filter(t=>t>=0),this.rebuildActivity()}setAutoSkim(e){this.autoSkim=e,e||this.exitSkim()}setAutoSkip(e){this.autoSkip=e}rebuildActivity(){let e=new Set(this.mutationTimes);for(let t of this.extraActivity)e.add(t);this.activityTimes=Array.from(e).sort((t,r)=>t-r),this.recomputeGaps()}recomputeGaps(){let e=this.activityTimes,t=[];for(let r=0;r<e.length-1;r++){let n=e[r],a=e[r+1];a-n>=jk&&t.push({start:n,end:a})}this.idleGaps=t}idleGapAt(e){for(let t of this.idleGaps)if(e>=t.start&&e<t.end)return t;return null}evaluateSkim(e){if(!this.autoSkim||!this.playing){this.skimming&&this.exitSkim();return}let t=this.idleGapAt(e),r=t!=null&&e-t.start>=Vk&&t.end-e>Gk;r&&!this.skimming?this.enterSkim():!r&&this.skimming&&this.exitSkim()}evaluateSkip(e){if(!this.autoSkip||!this.playing)return;let t=this.idleGapAt(e);if(t==null||e-t.start<Xk||t.end-e<=Jw+50||t.end>this.meta.totalTime)return;let r=t.end-Jw,n=Math.max(0,r-e);this.seek(r),this.cb.onSkip?.(n)}enterSkim(){this.skimming=!0,this.replayer.setConfig({speed:Wk}),this.cb.onSkim?.(!0)}exitSkim(){this.skimming&&(this.skimming=!1,this.replayer.setConfig({speed:this.userSpeed}),this.cb.onSkim?.(!1))}fit(){try{let e=this.replayer.iframe,t=this.replayer.wrapper;if(!e||!t)return;let r=Number(e.getAttribute("width"))||e.offsetWidth,n=Number(e.getAttribute("height"))||e.offsetHeight,a=this.root.clientWidth,o=this.root.clientHeight;if(!r||!n||!a||!o)return;let s=Math.min(a/r,o/n,1);t.style.position="absolute",t.style.transformOrigin="top left",t.style.transform=`scale(${s})`,t.style.left=`${Math.max(0,(a-r*s)/2)}px`,t.style.top=`${Math.max(0,(o-n*s)/2)}px`}catch{}}play(e){this.destroyed||(this.replayer.play(e),this.playing=!0,this.cb.onState("playing"),this.startLoop())}pause(e){this.destroyed||(this.exitSkim(),this.replayer.pause(e),this.playing=!1,this.stopLoop(),this.cb.onState("paused"),this.cb.onTime(e??this.currentTime()))}seek(e){this.exitSkim();let t=Math.max(0,Math.min(this.meta.totalTime,e));this.playing?this.replayer.play(t):this.replayer.pause(t),this.cb.onTime(t)}currentTime(){try{return this.replayer.getCurrentTime()}catch{return 0}}setSpeed(e){this.userSpeed=e,this.skimming||this.replayer.setConfig({speed:e})}setShowCursor(e){this.replayer.setConfig({mouseTail:e?{strokeStyle:Yw}:!1})}isPlaying(){return this.playing}startLoop(){this.stopLoop();let e=()=>{if(!this.playing||this.destroyed)return;let t=this.currentTime();this.evaluateSkim(t),this.evaluateSkip(t),this.cb.onTime(this.currentTime()),this.raf=requestAnimationFrame(e)};this.raf=requestAnimationFrame(e)}stopLoop(){this.raf&&cancelAnimationFrame(this.raf),this.raf=0}destroy(){this.destroyed=!0,this.exitSkim(),this.stopLoop();try{this.replayer.pause()}catch{}try{let e=this.replayer.wrapper;e?.parentElement?.removeChild(e)}catch{}}};function ae(e){let t=Math.max(0,Math.floor(e/1e3)),r=t%60,n=Math.floor(t/60)%60,a=Math.floor(t/3600),o=s=>String(s).padStart(2,"0");return a>0?`${a}:${o(n)}:${o(r)}`:`${n}:${o(r)}`}function Qk(e){return e==null?"\u2014":e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function fu(e){return e==null?"\u2014":e<1e3?`${Math.round(e)} ms`:`${(e/1e3).toFixed(2)} s`}function Yk(e){let t=Math.max(0,e);if(t<1e3)return`${(t/1e3).toFixed(1)}s`;let r=Math.round(t/1e3);if(r<60)return`${r}s`;let n=Math.floor(r/60),a=r%60;return a?`${n}m ${a}s`:`${n}m`}var Jk=[{id:"stage",label:"Watch",key:"T",hint:"Just play and watch \u2014 full-screen replay, slim scrubber"},{id:"balanced",label:"Balanced",key:"",hint:"Replay + timeline + inspector together"},{id:"debug",label:"Debug",key:"D",hint:"Maximize the timeline + inspector for deep debugging"}];function Zk(){let e=M(a=>a.focusMode),t=M(a=>a.setFocusMode),r=M(a=>a.allowedModes),n=Jk.filter(a=>r.includes(a.id));return n.length<=1?null:(0,zs.jsx)("div",{className:"lum-st-focus",role:"group","aria-label":"Focus mode",children:n.map(a=>(0,zs.jsxs)("button",{className:`lum-st-focus__pill ${e===a.id?"is-active":""}`,"aria-pressed":e===a.id,title:a.key?`${a.hint} (${a.key})`:a.hint,onClick:()=>t(a.id),children:[a.label,a.key&&(0,zs.jsx)("kbd",{className:"lum-st-focus__key",children:a.key})]},a.id))})}async function g0(e){try{if(navigator.clipboard?.writeText)return await navigator.clipboard.writeText(e),!0}catch{}try{let t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.top="-1000px",t.style.opacity="0",document.body.appendChild(t),t.focus(),t.select();let r=document.execCommand("copy");return document.body.removeChild(t),r}catch{return!1}}var x0=["clipFrom","clipTo","clipFromMs","clipToMs","clipFromUtc","clipToUtc","clipLoop"];function v0(e){let{sessionId:t,shareUrl:r,apiBaseUrl:n}=e,a=typeof window<"u"?window.location.href:void 0;if(r)try{if(r.includes(":id"))return new URL(r.replace(":id",encodeURIComponent(t)),a);let s=new URL(r,a);return s.pathname=`${s.pathname.replace(/\/+$/,"")}/sessions/${t}`,s}catch{}try{let s=new URL(window.location.href);if(t&&s.pathname.includes(t))return s}catch{}let o;try{o=new URL(n,window.location.href).origin}catch{o=window.location.origin}return new URL(`/sessions/${t}`,o)}function eI({sessionId:e,shareUrl:t,apiBaseUrl:r}){let n=nm(),a=M(d=>d.status),[o,s]=(0,It.useState)(null),i=(0,It.useRef)(void 0);(0,It.useEffect)(()=>()=>clearTimeout(i.current),[]);async function l(){let d=n.getState(),u=Math.max(0,Math.round(d.currentTime+d.offset)),p;try{let c=v0({sessionId:e,shareUrl:t,apiBaseUrl:r});c.searchParams.set("t",String(u)),d.selectedEventId?c.searchParams.set("event",d.selectedEventId):c.searchParams.delete("event");for(let f of["focus","sel","live",...x0])c.searchParams.delete(f);p=c.toString()}catch{return}await g0(p)&&(s(ae(u)),clearTimeout(i.current),i.current=setTimeout(()=>s(null),2e3))}return(0,$.jsxs)("button",{className:`lum-st-share ${o?"is-copied":""}`,onClick:l,disabled:a==="loading","aria-label":"Copy a link to this exact moment",title:"Copy a link to this exact moment",children:[o?(0,$.jsx)(Za,{size:13,"aria-hidden":!0}):(0,$.jsx)(Cn,{size:13,"aria-hidden":!0}),(0,$.jsx)("span",{children:o?`Copied @ ${o}`:"Copy link"})]})}function tI({sessionId:e,shareUrl:t,apiBaseUrl:r}){let n=nm(),a=M(y=>y.status),[o,s]=(0,It.useState)(!1),[i,l]=(0,It.useState)(null),[d,u]=(0,It.useState)(null),[p,c]=(0,It.useState)(!1),[f,h]=(0,It.useState)(!1),m=(0,It.useRef)(void 0);(0,It.useEffect)(()=>()=>clearTimeout(m.current),[]);let b=()=>{let y=n.getState();return Math.max(0,Math.round(y.currentTime+y.offset))},g=i!=null&&d!=null&&d>i;function x(){let y=i,w=d;if(y==null||w==null||w<=y)return;let L=n.getState(),C=L.toRelative(y),_=L.toRelative(w);_<=C||(L.setClip(C,_,p),L.seek(C),L.play())}async function v(){let y=i,w=d;if(y==null||w==null||w<=y)return;let L;try{let C=v0({sessionId:e,shareUrl:t,apiBaseUrl:r});for(let _ of["event","t","focus","sel","live",...x0])C.searchParams.delete(_);C.searchParams.set("clipFromMs",String(y)),C.searchParams.set("clipToMs",String(w)),p&&C.searchParams.set("clipLoop","1"),L=C.toString()}catch{return}await g0(L)&&(h(!0),clearTimeout(m.current),m.current=setTimeout(()=>h(!1),2e3))}function S(){l(null),u(null),n.getState().setClip(null,null)}return(0,$.jsxs)("div",{className:"lum-st-clipwrap",children:[(0,$.jsxs)("button",{className:`lum-st-clip ${o?"is-open":""}`,onClick:()=>s(y=>!y),disabled:a==="loading","aria-label":"Clip a segment","aria-expanded":o,title:"Clip a segment to play or share",children:[(0,$.jsx)(Rs,{size:13,"aria-hidden":!0}),(0,$.jsx)("span",{children:"Clip"})]}),o&&(0,$.jsxs)("div",{className:"lum-st-clippop",role:"dialog","aria-label":"Clip a segment",children:[(0,$.jsxs)("div",{className:"lum-st-clippop__row",children:[(0,$.jsx)("span",{className:"lum-st-clippop__lbl",children:"Start"}),(0,$.jsx)("span",{className:"lum-st-clippop__val",children:i!=null?ae(i):"\u2014"}),(0,$.jsx)("button",{className:"lum-st-clippop__set",onClick:()=>l(b()),children:"Set to playhead"})]}),(0,$.jsxs)("div",{className:"lum-st-clippop__row",children:[(0,$.jsx)("span",{className:"lum-st-clippop__lbl",children:"End"}),(0,$.jsx)("span",{className:"lum-st-clippop__val",children:d!=null?ae(d):"\u2014"}),(0,$.jsx)("button",{className:"lum-st-clippop__set",onClick:()=>u(b()),children:"Set to playhead"})]}),(0,$.jsxs)("label",{className:"lum-st-clippop__loop",children:[(0,$.jsx)("input",{type:"checkbox",checked:p,onChange:y=>c(y.target.checked)}),"Loop the clip"]}),(0,$.jsx)("p",{className:"lum-st-clippop__hint",children:"Click a marker (or scrub) to a moment, then capture it."}),(0,$.jsxs)("div",{className:"lum-st-clippop__actions",children:[(0,$.jsxs)("button",{className:"lum-st-clippop__play",disabled:!g,onClick:x,children:[(0,$.jsx)(na,{size:12,"aria-hidden":!0})," Play clip"]}),(0,$.jsxs)("button",{className:"lum-st-clippop__copy",disabled:!g,onClick:v,children:[f?(0,$.jsx)(Za,{size:12,"aria-hidden":!0}):(0,$.jsx)(Cn,{size:12,"aria-hidden":!0}),f?"Copied":"Copy clip link"]}),(0,$.jsx)("button",{className:"lum-st-clippop__clear",onClick:S,"aria-label":"Clear clip",children:(0,$.jsx)(aa,{size:12,"aria-hidden":!0})})]})]})]})}function rI({isFullscreen:e,onFullscreen:t,allowFullscreen:r=!0,sessionId:n,shareUrl:a,apiBaseUrl:o,onHelp:s,onBack:i,backLabel:l,topbarActions:d}){let u=M(_=>_.summary),p=M(_=>_.durationMs),c=M(_=>_.events),f=M(_=>_.openPalette),h=M(_=>_.status),m=M(_=>_.live),b=M(_=>_.following),g=M(_=>_.setFollowing),x=(0,It.useMemo)(()=>{let _=0,I=0,D=0,A=0;for(let k of c)if(k.type==="error")_++;else if(k.type==="console"&&k.level==="error")_++;else if(k.type==="network"){let ke=k;(ke.status>=400||ke.status===0)&&I++}else if(k.type==="custom"){let ke=k;ke.name==="rage_click"&&D++,ke.props&&ke.props.conversion===!0&&A++}return{errors:_,netFail:I,rage:D,conversions:A}},[c]),v=u?.conversionNames??[],S=v.length?`Conversions: ${v.join(", ")}`:`${x.conversions} conversions`,y=u?.customSignals??[],w=u?.device,L=u?.id??"\u2014",C=h==="loading";return(0,$.jsxs)("header",{className:"lum-st-topbar",children:[(0,$.jsxs)("div",{className:"lum-st-topbar__left",children:[i&&(0,$.jsx)("button",{className:"lum-st-topbar__back lum-iconbtn",onClick:i,"aria-label":l??"Back",title:l??"Back",children:(0,$.jsx)(Jn,{size:17})}),(0,$.jsx)("span",{className:"lum-st-logo","aria-hidden":!0,children:"\u25C6"}),(0,$.jsx)("strong",{className:"lum-st-topbar__title",children:"Strata"}),(0,$.jsx)("span",{className:"lum-st-topbar__sep",children:"\xB7"}),(0,$.jsx)("span",{className:"lum-st-topbar__sid lum-mono",title:String(L),children:String(L).slice(0,8)}),w&&(0,$.jsxs)("span",{className:"lum-st-topbar__device lum-muted",children:[w.type,w.browser?` \xB7 ${w.browser}`:""]}),u?.userId&&(0,$.jsxs)("span",{className:"lum-st-topbar__user lum-mono",title:`User: ${u.userId}`,children:[(0,$.jsx)(As,{size:12,"aria-hidden":!0})," ",u.userId]}),(0,$.jsx)("span",{className:"lum-st-topbar__clock lum-mono",children:C?"\u2014":ae(p)}),m&&(b?(0,$.jsxs)("span",{className:"lum-st-livebadge",title:"Watching live",children:[(0,$.jsx)("span",{className:"lum-st-livebadge__dot","aria-hidden":!0})," LIVE"]}):(0,$.jsxs)("button",{className:"lum-st-livebadge lum-st-livebadge--paused",onClick:()=>g(!0),title:"Jump back to the live edge",children:[(0,$.jsx)("span",{className:"lum-st-livebadge__dot","aria-hidden":!0})," GO LIVE"]}))]}),(0,$.jsxs)("div",{className:"lum-st-topbar__badges","aria-label":"Session triage badges",children:[(0,$.jsxs)("span",{className:`lum-st-badge lum-st-badge--error ${x.errors?"":"is-zero"}`,title:`${x.errors} errors`,children:["\u26A0 ",C?"\u2014":x.errors]}),(0,$.jsxs)("span",{className:`lum-st-badge lum-st-badge--net ${x.netFail?"":"is-zero"}`,title:`${x.netFail} failed requests`,children:["\u25C6 ",C?"\u2014":x.netFail]}),(0,$.jsxs)("span",{className:`lum-st-badge lum-st-badge--rage ${x.rage?"":"is-zero"}`,title:`${x.rage} rage clicks`,children:["\u21AF ",C?"\u2014":x.rage]}),!C&&x.conversions>0&&(0,$.jsxs)("span",{className:"lum-st-badge lum-st-badge--conv",title:S,children:["\u2726 ",v.length===1?v[0]:x.conversions]}),!C&&y.map(_=>(0,$.jsxs)("span",{className:"lum-st-badge lum-st-badge--signal",title:`Custom signal: ${_}`,children:["\u2756 ",_]},_))]}),(0,$.jsxs)("div",{className:"lum-st-topbar__right",children:[d,!m&&(0,$.jsx)(tI,{sessionId:n,shareUrl:a,apiBaseUrl:o}),!m&&(0,$.jsx)(eI,{sessionId:n,shareUrl:a,apiBaseUrl:o}),(0,$.jsxs)("button",{className:"lum-st-cmdk",onClick:()=>f(!0),title:"Command palette (\u2318K)",children:[(0,$.jsx)(xs,{size:13}),(0,$.jsx)("span",{children:"K"})]}),(0,$.jsx)(Zk,{}),(0,$.jsx)("button",{className:"lum-iconbtn","aria-label":"Keyboard shortcuts (?)",onClick:s,title:"Shortcuts (?)",children:(0,$.jsx)(bs,{size:16})}),r&&(0,$.jsx)("button",{className:"lum-iconbtn","aria-label":e?"Exit fullscreen":"Fullscreen",onClick:t,title:"Fullscreen (F)",children:e?(0,$.jsx)(ra,{size:16}):(0,$.jsx)(ta,{size:16})})]})]})}var nI=8e3,aI=2e3;function oI(e){if(!e)return"";try{return new URL(e).pathname||"/"}catch{return e.split("?")[0]??e}}function sI(e){if(e.type==="error"||e.type==="console"&&e.level==="error")return!0;if(e.type==="network"){let t=e;return t.status===0||t.status>=400}if(e.type==="custom"){let t=e;if(t.name==="rage_click"||t.name==="dead_click"||t.props&&t.props.conversion===!0)return!0}return!1}function am(e,t){if(!e.length)return[];let r=[...e].sort((d,u)=>d.t-u.t),n=new Set([0]),a=0;for(let d of r)d.t-a>nI&&n.add(d.t),(d.type==="custom"&&["navigation","pageview"].includes(d.name)||d.type==="perf"&&d.metric==="navigation")&&n.add(d.t),a=d.t;let o=[...n].sort((d,u)=>d-u),s=[...o.slice(1),Math.max(t,a)+1];for(let d=0;d<o.length;d++){let u=o[d],p=s[d],c=r.find(f=>f.t>=u&&f.t<p&&sI(f));c&&c.t-u>aI&&n.add(c.t)}let i=[...n].sort((d,u)=>d-u);i.push(Math.max(t,a)+1);let l=[];for(let d=0;d<i.length-1;d++){let u=i[d],p=i[d+1],c=r.filter(S=>S.t>=u&&S.t<p),f={errors:0,network:0,rage:0,dead:0,conversion:0},h="",m=c.length===0;for(let S of c)if(S.type==="error")f.errors++;else if(S.type==="console"&&S.level==="error")f.errors++;else if(S.type==="network"){f.network++;let y=S;(y.status===0||y.status>=400)&&f.errors++,y.url&&(h=y.url)}else if(S.type==="custom"){let y=S;y.name==="rage_click"?f.rage++:y.name==="dead_click"&&f.dead++,y.props&&y.props.conversion===!0&&f.conversion++}let b,g;d===0?(b="start",g="Session start"):f.conversion>0?(b="conversion",g="Converted"):f.errors>0?(b="error",g="Hit an error"):f.rage>0||f.dead>0?(b="frustration",g="Got stuck"):m?(b="idle",g="Paused"):f.network>3?(b="load",g="Loaded data"):(b="browse",g=h?`Browsed ${oI(h)}`:"Browsing");let x=[];f.errors&&x.push(`${f.errors} error${f.errors>1?"s":""}`),f.rage&&x.push(`${f.rage} rage`),f.network&&x.push(`${f.network} request${f.network>1?"s":""}`);let v=x.join(" \xB7 ")||`${Math.round((p-u)/1e3)}s`;l.push({id:`ch_${d}`,startT:u,endT:p,kind:b,title:g,subtitle:v,counts:f})}return l}function iI(){let e=M(h=>h.events),t=M(h=>h.markers),r=M(h=>h.durationMs),n=M(h=>h.offset),a=M(h=>h.summary),o=M(h=>h.seek),s=M(h=>h.select),i=M(h=>h.toRelative),[l,d]=(0,xu.useState)(!1),{text:u,clauses:p}=(0,xu.useMemo)(()=>{let h=a?.aiStory;if(h&&h.summary)return{text:h.summary,clauses:h.clauses.map(L=>({text:L.text,t:L.t,ref:L.ref}))};if(!e.length)return{text:"",clauses:[]};let m=am(e,r+n),b=[],g=t.find(L=>L.kind==="rage"),x=t.find(L=>L.kind==="error"),v=t.find(L=>L.kind==="network"),S=t.find(L=>L.kind==="conversion"),y=[];x&&(y.push("Hit an error"),b.push({text:`error @ ${ae(i(x.t))}`,t:i(x.t),ref:x.ref})),v&&(y.push("a failed request"),b.push({text:`request @ ${ae(i(v.t))}`,t:i(v.t),ref:v.ref})),g&&(y.push("rage-clicked while stuck"),b.push({text:`rage @ ${ae(i(g.t))}`,t:i(g.t),ref:g.ref})),S&&(y.push("then converted"),b.push({text:`conversion @ ${ae(i(S.t))}`,t:i(S.t),ref:S.ref}));let w;if(y.length?w=`This visitor ${y.join(", ")}.`:m.length>1?w=`Calm session: ${m.slice(0,3).map(C=>C.title.toLowerCase()).join(" \u2192 ")}.`:w="",b.length<2)for(let L of m.slice(1,4))b.push({text:`${L.title} ${ae(i(L.startT))}`,t:i(L.startT)});return{text:w,clauses:b}},[e,t,r,n,i,a]);if(!u&&!a)return(0,Dt.jsxs)("div",{className:"lum-st-synopsis lum-st-synopsis--empty",children:[(0,Dt.jsx)(Zt,{size:13,"aria-hidden":!0})," ",(0,Dt.jsx)("span",{className:"lum-muted",children:"No AI summary for this session."})]});let c=u||"A quiet, uneventful session.",f=c.length>90;return(0,Dt.jsxs)("div",{className:`lum-st-synopsis ${l?"is-expanded":""}`,role:"note","aria-label":"Session synopsis",children:[(0,Dt.jsx)("span",{className:"lum-st-synopsis__icon","aria-hidden":!0,children:(0,Dt.jsx)(Zt,{size:13})}),(0,Dt.jsx)("button",{type:"button",className:"lum-st-synopsis__text",title:f?c:void 0,onClick:f?()=>d(h=>!h):void 0,"aria-expanded":f?l:void 0,children:c}),f&&(0,Dt.jsx)("button",{type:"button",className:"lum-st-synopsis__more",onClick:()=>d(h=>!h),"aria-label":l?"Collapse summary":"Read full summary",title:l?"Collapse":"Read full summary",children:l?(0,Dt.jsx)(gs,{size:14}):(0,Dt.jsx)(Yn,{size:14})}),(0,Dt.jsx)("span",{className:"lum-st-synopsis__chips",children:p.map((h,m)=>(0,Dt.jsxs)("button",{className:"lum-st-chip",onClick:()=>{h.ref?s(h.ref):o(h.t)},children:["\u27F6 ",h.text]},m))})]})}var lI=(0,y0.forwardRef)(function({onRetry:t,overlay:r},n){let a=M(c=>c.status),o=M(c=>c.hasReplay),s=M(c=>c.error),i=M(c=>c.loadProgress),l=M(c=>!!c.controller),d=M(c=>c.isSkimming),u=M(c=>c.isSkipping),p=M(c=>c.lastSkipMs);return(0,Te.jsxs)("div",{className:"lum-st-monitor",children:[(0,Te.jsxs)("div",{className:"lum-st-monitor__frame",children:[(0,Te.jsx)("div",{ref:n,className:"lum-pl-mount lum-st-mount","aria-label":"Session replay",role:"img"}),r,d&&(0,Te.jsxs)("div",{className:"lum-st-skimbadge","aria-live":"polite",children:[(0,Te.jsx)(oa,{size:13,"aria-hidden":!0})," Skimming idle \xB7 8\xD7"]}),u&&!d&&(0,Te.jsxs)("div",{className:"lum-st-skimbadge lum-st-skimbadge--skip","aria-live":"polite",children:[(0,Te.jsx)(ea,{size:13,"aria-hidden":!0})," Skipped idle (",Yk(p),")"]}),(0,Te.jsx)("div",{className:"lum-st-monitor__edge","aria-hidden":!0})]}),a==="loading"&&(0,Te.jsx)("div",{className:"lum-pl-overlay",children:(0,Te.jsxs)("div",{className:"lum-pl-loading",children:[(0,Te.jsx)(Gc,{width:"70%",height:18}),(0,Te.jsx)(Gc,{width:"90%",height:120}),(0,Te.jsx)("div",{className:"lum-pl-progress",children:(0,Te.jsx)("div",{className:"lum-pl-progress__bar",style:{width:`${Math.round(i*100)}%`}})}),(0,Te.jsx)("span",{className:"lum-muted",children:"Loading replay\u2026"})]})}),a==="buffering"&&o&&l&&(0,Te.jsxs)("div",{className:"lum-st-buffering","aria-live":"polite",children:[(0,Te.jsx)("span",{className:"lum-st-buffering__spinner","aria-hidden":!0}),(0,Te.jsx)("span",{children:"Buffering\u2026"})]}),a==="error"&&(0,Te.jsx)("div",{className:"lum-pl-overlay",children:(0,Te.jsx)(ev,{title:"We couldn't load this replay.",action:t?(0,Te.jsx)("button",{className:"lum-btn lum-btn--primary lum-btn--sm",onClick:t,children:"Retry"}):void 0,children:s??"View the console and network logs instead."})}),a!=="loading"&&a!=="error"&&!o&&(0,Te.jsx)("div",{className:"lum-pl-overlay",children:(0,Te.jsx)(Jt,{title:"This session wasn't recorded for replay.",icon:(0,Te.jsx)(Cs,{size:28}),children:"You can still review its console and network activity on the timeline."})})]})});function uI(e){try{let t=e.replayer.wrapper;if(!t)return{scale:1,left:0,top:0};let r=t.style.transform||"",n=/scale\(([0-9.]+)\)/.exec(r),a=n?parseFloat(n[1]):1,o=parseFloat(t.style.left||"0")||0,s=parseFloat(t.style.top||"0")||0;return{scale:a,left:o,top:s}}catch{return{scale:1,left:0,top:0}}}function dI(e,t,r,n){if(!e||!t)return{x:0,y:0,ok:!1};let{scale:a,left:o,top:s}=uI(e);return{x:o+r*a,y:s+n*a,ok:!0}}function cI(e){if(!e)return null;let t=e.x??e.clientX??e.pageX,r=e.y??e.clientY??e.pageY;return typeof t=="number"&&typeof r=="number"?{x:t,y:r}:null}function fI({stageRef:e}){let t=M(u=>u.controller),r=M(u=>u.currentTime),n=M(u=>u.events),a=M(u=>u.offset),o=(0,w0.useMemo)(()=>{let u=r+a,p=null,c=700;for(let f of n){let h=Math.abs(f.t-u);h>c||(f.type==="custom"&&f.name==="rage_click"?(p={kind:"rage",props:f.props},c=h):f.type==="error"&&(p={kind:"error"},c=h))}return p},[n,r,a]);if(!o)return null;let s=cI(o.props),i=s?dI(t,e.current,s.x,s.y):null,d=i?.ok?{left:`${i.x}px`,top:`${i.y}px`}:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"};return(0,uu.jsx)("div",{className:"lum-st-overlay","aria-hidden":!0,children:(0,uu.jsx)("div",{className:`lum-st-callout lum-st-callout--${o.kind}`,style:d,children:(0,uu.jsx)("span",{className:"lum-st-callout__ring"})})})}function pI(e){let t=M(n=>n.currentTime),r=-1;for(let n=0;n<e.length&&e[n]<=t+1;n++)r=n;return r}function mI(e,t){let r=(0,vu.useRef)(null);return(0,vu.useEffect)(()=>{if(!t||e<0)return;r.current?.querySelector(`[data-row="${e}"]`)?.scrollIntoView({block:"nearest"})},[e,t]),r}function S0(e){return e.status===0||e.status>=500?"error":e.status>=400?"warn":e.status>=300?"info":"default"}function C0(e){try{let t=new URL(e);return(t.pathname.split("/").pop()||t.hostname)+(t.search?t.search:"")}catch{return e.split("/").pop()||e}}function hI({n:e,relStart:t}){let[r,n]=(0,b0.useState)("headers"),a=["headers","payload","response","timing"];return(0,Y.jsxs)("div",{className:"lum-pl-detail",children:[(0,Y.jsxs)("div",{className:"lum-pl-detail__head lum-mono",children:[(0,Y.jsx)(Wn,{tone:S0(e),children:e.status||(e.error??"ERR")})," ",e.method," ",(0,Y.jsxs)("span",{className:"lum-muted",children:["@ ",ae(t)]}),(0,Y.jsx)("div",{className:"lum-pl-detail__url",children:e.url})]}),(0,Y.jsx)("div",{className:"lum-pl-tabs2",children:a.map(o=>(0,Y.jsx)("button",{className:`lum-pl-tab2 ${r===o?"is-active":""}`,onClick:()=>n(o),children:o[0].toUpperCase()+o.slice(1)},o))}),r==="headers"&&(0,Y.jsxs)("div",{className:"lum-pl-kv lum-mono",children:[(0,Y.jsx)("h5",{children:"General"}),(0,Y.jsx)(su,{k:"URL",v:e.url}),(0,Y.jsx)(su,{k:"Method",v:e.method}),(0,Y.jsx)(su,{k:"Status",v:String(e.status)}),(0,Y.jsx)(su,{k:"Initiator",v:e.initiator}),(0,Y.jsx)("h5",{children:"Request headers"}),Zw(e.requestHeaders),(0,Y.jsx)("h5",{children:"Response headers"}),Zw(e.responseHeaders)]}),r==="payload"&&(0,Y.jsx)(e0,{label:"Request body",body:e.requestBody}),r==="response"&&(0,Y.jsx)(e0,{label:"Response",body:e.responseBody}),r==="timing"&&(0,Y.jsx)(gI,{n:e})]})}function su({k:e,v:t}){return(0,Y.jsxs)("div",{className:"lum-pl-kv__row",children:[(0,Y.jsx)("span",{className:"lum-muted",children:e}),(0,Y.jsx)("span",{className:"lum-pl-kv__val",children:t})]})}function Zw(e){return!e||Object.keys(e).length===0?(0,Y.jsx)("div",{className:"lum-muted",children:"None captured."}):(0,Y.jsx)(Y.Fragment,{children:Object.entries(e).map(([t,r])=>(0,Y.jsxs)("div",{className:"lum-pl-kv__row",children:[(0,Y.jsx)("span",{className:"lum-muted",children:t}),(0,Y.jsx)("span",{className:"lum-pl-kv__val",children:r==="redacted"?(0,Y.jsx)("em",{className:"lum-pl-redacted",children:"redacted"}):r})]},t))})}function e0({label:e,body:t}){return t?(0,Y.jsxs)("div",{children:[(0,Y.jsxs)("h5",{children:[e,t.contentType?` \xB7 ${t.contentType}`:""]}),t.redacted&&(0,Y.jsx)("div",{className:"lum-pl-redacted",children:"Contains redacted fields."}),(0,Y.jsxs)("pre",{className:"lum-pl-json",children:[xI(t.preview),t.truncated?`
|
|
139
|
-
\u2026 (truncated)`:""]})
|
|
140
|
-
`,i=Array.from(e.children).slice(0,30);for(let l of i)s+=I0(l,t+1);return s}function _I(){return(0,Bs.jsx)(Jt,{title:"State capture is off for this site",children:"Enable the framework-state plugin (Redux / Zustand / Pinia) to see state snapshots on the same clock."})}function MI(){return(0,Jp.jsx)("div",{className:"lum-st-inspbody",children:(0,Jp.jsx)(II,{})})}function RI(){return(0,Zp.jsx)("div",{className:"lum-st-inspbody",children:(0,Zp.jsx)(_I,{})})}var _0=/^(.+):(started|ended)$/;function EI(e){return _0.test(e)}function PI(e){let t=new Map,r=[];for(let n of e){if(n.type!=="custom")continue;let a=n,o=a.props??{};if(o.conversion===!0)continue;let s=_0.exec(a.name);if(!s)continue;let i=typeof o.task=="string"&&o.task?o.task:s[1],l=o.spanId!=null?String(o.spanId):`${i}@${n.t}`,d=t.get(l);d||(d={spanId:l,task:i},t.set(l,d),r.push(l)),s[2]==="started"?(d.startT=n.t,d.startEvent=a):(d.endT=n.t,d.endEvent=a)}return r.map(n=>t.get(n))}function NI(e){let t=e.startT!=null,r=e.endT!=null,n=t?e.startT:e.endT??0,a=t&&r?Math.max(0,e.endT-e.startT):void 0,o=e.startEvent??e.endEvent,s=a!=null?fu(a):t?"running\u2026":"ended (no start)";return{id:o.id,t:n,kind:"task",lane:"task",severity:"info",title:e.task,subtitle:s,durationMs:a,spanId:e.spanId,running:t&&!r,raw:o}}function TI(e){let t=e.args[0];return t?t.kind==="string"?t.value:t.kind==="error"?`${t.name}: ${t.message}`:t.kind==="object"?t.preview:t.kind==="primitive"?String(t.value):t.kind==="dom"?t.selector:`console.${e.level}`:`console.${e.level}`}function Kp(e){try{let t=new URL(e);return(t.pathname.split("/").pop()||t.hostname)+(t.search?t.search:"")}catch{return e.split("/").pop()||e}}var AI=new Set(["_tag","identify","metadata","_click","_scroll"]);function om(e){let t=[];for(let r of PI(e))t.push(NI(r));for(let r of e)switch(r.type){case"console":{let n=r,a=n.level==="error"?"error":n.level==="warn"?"warn":n.level==="info"?"info":"muted";t.push({id:r.id,t:r.t,kind:"console",lane:"console",severity:a,title:TI(n),subtitle:n.source?.url?`${Kp(n.source.url)}:${n.source.line??""}`:void 0,raw:r});break}case"network":{let n=r,a=n.status===0||n.status>=400,o=n.timing?.duration>2e3;t.push({id:r.id,t:r.t,kind:"network",lane:"network",severity:a?"error":o?"warn":n.ok?"ok":"muted",title:`${n.method} ${Kp(n.url)}`,subtitle:`${n.status||n.error||"failed"} \xB7 ${Math.round(n.timing?.duration??0)}ms`,durationMs:n.timing?.duration,raw:r});break}case"error":{let n=r;t.push({id:r.id,t:r.t,kind:"error",lane:"error",severity:"error",title:`${n.name}: ${n.message}`,subtitle:n.source?.url?`${Kp(n.source.url)}:${n.source.line??""}`:void 0,raw:r});break}case"perf":{let n=r;if(n.rating!=="poor")break;t.push({id:r.id,t:r.t,kind:"perf",lane:"console",severity:"warn",title:`${n.metric} ${Math.round(n.value)}${n.metric==="CLS"?"":"ms"}`,subtitle:"poor",raw:r});break}case"custom":{let n=r;if(!!!(n.props&&n.props.conversion===!0)&&(EI(n.name)||AI.has(n.name)))break;n.name==="rage_click"?t.push({id:r.id,t:r.t,kind:"rage",lane:"interaction",severity:"warn",title:"Rage click",subtitle:t0(n),raw:r}):n.name==="dead_click"?t.push({id:r.id,t:r.t,kind:"dead",lane:"interaction",severity:"muted",title:"Dead click",subtitle:t0(n),raw:r}):n.name==="navigation"||n.name==="pageview"?t.push({id:r.id,t:r.t,kind:"nav",lane:"nav",severity:"info",title:"Page change",raw:r}):n.props&&n.props.conversion===!0?t.push({id:r.id,t:r.t,kind:"conversion",lane:"interaction",severity:"ok",title:`Conversion: ${n.name}`,raw:r}):t.push({id:r.id,t:r.t,kind:"custom",lane:"interaction",severity:"muted",title:n.name,raw:r});break}default:break}return t.sort((r,n)=>r.t-n.t)}function t0(e){return e.props?.selector??""}function DI(e,t,r){let n=e[e.length-1];return n||[t,r]}function em(e,t,r){let[n,a]=t,o=a-n;return o<=0?0:(e-n)/o*r}function M0(e,t,r){let[n,a]=t,o=a-n;return r<=0?n:n+e/r*o}function pu(e,t){let[r,n]=t,a=n-r;return a<=0?0:Math.max(0,Math.min(1,(e-r)/a))}function OI(e,t,r,n,a,o=200){let[s,i]=e,l=i-s,d=Math.max(o,Math.min(a-n,l*r)),u=l>0?(t-s)/l:.5,p=t-u*d,c=p+d;return p<n&&(p=n,c=p+d),c>a&&(c=a,p=c-d),p=Math.max(n,p),c=Math.min(a,c),c-p>=a-n-1?null:[p,c]}function FI(){let e=(0,In.useRef)(null),[t,r]=(0,In.useState)(0);return(0,In.useEffect)(()=>{let n=e.current;if(!n)return;let a=new ResizeObserver(()=>r(n.clientWidth));return a.observe(n),r(n.clientWidth),()=>a.disconnect()},[]),{ref:e,width:t}}function R0(){let e=M(n=>n.offset),t=M(n=>n.durationMs),r=M(n=>n.zoomStack);return(0,In.useMemo)(()=>DI(r,e,e+t),[r,e,t])}var r0=28,Qp=150,BI=6e4;function zI(e){let t=e.timing.duration||0,{dns:r=0,tcp:n=0,tls:a=0,ttfb:o=0,download:s=0}=e.timing,i=r+n+a+o+s;return t<=0||i<=0?[{cls:"tone",ms:Math.max(t,1)}]:[{cls:"blocked",ms:Math.max(0,t-i)},{cls:"dns",ms:r},{cls:"connect",ms:n},{cls:"ssl",ms:a},{cls:"wait",ms:o},{cls:"download",ms:s}].filter(d=>d.ms>0)}function UI(e){let t=Math.max(1e3,e),r=Math.pow(10,Math.floor(Math.log10(t/1e3))),n=t/1e3/r;return(n>=5?5:n>=2?2:1)*r*1e3}function qI(){let e=M(C=>C.events),t=M(C=>C.offset),r=M(C=>C.toRelative),n=M(C=>C.selectAndSeek),a=M(C=>C.selectedEventId),o=M(C=>C.zoomStack),s=R0(),i=(0,Ke.useRef)(null),l=(0,Ke.useRef)(null),[d,u]=(0,Ke.useState)(600),p=(0,Ke.useCallback)(C=>{if(l.current?.disconnect(),l.current=null,i.current=C,!C)return;let _=()=>u(Math.max(120,C.clientWidth-Qp));_();let I=new ResizeObserver(_);I.observe(C),l.current=I},[]),c=(0,Ke.useMemo)(()=>e.filter(C=>C.type==="network").slice().sort((C,_)=>C.t-_.t),[e]),f=(0,Ke.useMemo)(()=>{if(!c.length)return null;let C=1/0,_=-1/0;for(let I of c){let D=r(I.t),A=D+(I.timing.duration||0);D<C&&(C=D),A>_&&(_=A)}return[C,Math.max(C+1,_)]},[c,r]),h=o.length>0,m=h?s[0]-t:f?.[0]??0,b=h?Math.max(1,s[1]-s[0]):Math.max(1,(f?.[1]??1)-(f?.[0]??0))*1.02,g=h?b:Math.min(b,BI),x=d/g,v=b*x,S=v>d+1,y=(0,Ke.useMemo)(()=>c.map(C=>{let _=r(C.t),I=_+(C.timing.duration||0);return{id:C.id,n:C,start:_,end:I,tone:S0(C),leftPx:(_-m)*x,widthPx:Math.max((I-_)*x,2)}}),[c,r,m,x]),w=c.filter(C=>C.status===0||C.status>=400).length,L=c.reduce((C,_)=>C+(_.responseSize??0),0);return c.length?(0,_e.jsxs)("div",{className:"lum-wf",children:[(0,_e.jsxs)("div",{className:"lum-wf__toolbar lum-mono lum-muted",children:[c.length," requests \xB7 ",Qk(L)," \xB7 ",w," failed",S&&(0,_e.jsxs)("span",{className:"lum-wf__hint",children:[" \xB7 ",Math.round(g/1e3),"s window \xB7 scroll \u2192"]})]}),(0,_e.jsx)("div",{className:"lum-wf__scroll",ref:p,children:(0,_e.jsxs)("div",{className:"lum-wf__grid",style:{width:Qp+v},children:[(0,_e.jsx)($I,{scrollRef:i,t0:m,pxPerMs:x,windowMs:g,vpTrackW:d,trackW:v}),(0,_e.jsxs)("div",{className:"lum-wf__rows",children:[y.map((C,_)=>(0,_e.jsxs)("div",{"data-row":_,className:`lum-wf__row lum-wf__row--${C.tone} ${C.id===a?"is-selected":""}`,style:{width:Qp+v},onClick:()=>n(C.id),title:C.n.url,children:[(0,_e.jsxs)("div",{className:"lum-wf__label lum-mono",children:[(0,_e.jsx)("span",{className:`lum-wf__dot lum-wf__dot--${C.tone}`,"aria-hidden":!0}),(0,_e.jsx)("span",{className:"lum-wf__name",children:C0(C.n.url)}),(0,_e.jsx)("span",{className:"lum-wf__method lum-muted",children:C.n.method}),(0,_e.jsx)("span",{className:"lum-wf__time lum-muted",children:fu(C.n.timing.duration)})]}),(0,_e.jsx)("div",{className:"lum-wf__track",style:{width:v},children:(0,_e.jsx)("span",{className:`lum-wf__bar lum-wf__bar--${C.tone}`,style:{left:C.leftPx,width:C.widthPx},children:zI(C.n).map((I,D)=>(0,_e.jsx)("span",{className:`lum-wf__seg lum-wf__seg--${I.cls}`,style:{flexGrow:I.ms}},D))})})]},C.id)),(0,_e.jsx)(HI,{bars:y,t0:m,pxPerMs:x,vpTrackW:d,scrollRef:i})]})]})})]}):(0,_e.jsx)(Jt,{title:"No network activity",children:"Nothing matched this filter."})}function $I({scrollRef:e,t0:t,pxPerMs:r,windowMs:n,vpTrackW:a,trackW:o}){let[s,i]=(0,Ke.useState)(0);(0,Ke.useEffect)(()=>{let d=e.current;if(!d)return;let u=()=>i(d.scrollLeft);return d.addEventListener("scroll",u,{passive:!0}),u(),()=>d.removeEventListener("scroll",u)},[e]);let l=(0,Ke.useMemo)(()=>{let d=UI(n/6),u=s/r,p=(s+a)/r,c=[],f=Math.max(0,Math.floor(u/d)*d);for(let h=f;h<=p+d;h+=d)c.push({leftPx:h*r,label:ae(t+h)});return c},[n,s,r,a,t]);return(0,_e.jsxs)("div",{className:"lum-wf__ruler","aria-hidden":!0,children:[(0,_e.jsx)("div",{className:"lum-wf__rulerspacer"}),(0,_e.jsx)("div",{className:"lum-wf__rulertrack",style:{width:o},children:l.map((d,u)=>(0,_e.jsx)("span",{className:"lum-wf__tick",style:{left:d.leftPx},children:d.label},u))})]})}function HI({bars:e,t0:t,pxPerMs:r,vpTrackW:n,scrollRef:a}){let o=M(c=>c.currentTime),s=M(c=>c.status),i=(0,Ke.useRef)(-1),l=(0,Ke.useRef)(0);(0,Ke.useEffect)(()=>{let c=a.current;if(!c)return;let f=()=>{l.current=performance.now()+1500};return c.addEventListener("wheel",f,{passive:!0}),c.addEventListener("pointerdown",f,{passive:!0}),()=>{c.removeEventListener("wheel",f),c.removeEventListener("pointerdown",f)}},[a]);let d=(o-t)*r,u=[],p=-1;for(let c=0;c<e.length;c++){let f=e[c];f.start<=o+1&&(p=c),o>=f.start&&o<=f.end+1&&u.push(c)}return(0,Ke.useEffect)(()=>{s!=="playing"||p<0||p===i.current||(i.current=p,a.current?.querySelector(`[data-row="${p}"]`)?.scrollIntoView({block:"nearest",inline:"nearest"}))},[p,s,a]),(0,Ke.useEffect)(()=>{let c=a.current;if(!c||s!=="playing"||performance.now()<l.current)return;let f=c.scrollLeft;if(d<f+.1*n||d>f+.9*n){let h=Math.max(0,c.scrollWidth-c.clientWidth);c.scrollLeft=Math.max(0,Math.min(h,d-.25*n))}},[d,s,n,a]),(0,_e.jsxs)("div",{className:"lum-wf__cursor",style:{height:e.length*r0},"aria-hidden":!0,children:[u.map(c=>{let f=e[c];return(0,_e.jsx)("div",{className:"lum-wf__running",style:{top:c*r0+7,height:14,left:f.leftPx,width:Math.max(2,f.widthPx)}},f.id)}),(0,_e.jsx)("div",{className:"lum-wf__playhead",style:{left:d}})]})}function WI(){let e=M(p=>p.events),t=M(p=>p.summary),r=M(p=>p.selectedEventId),n=M(p=>p.selectAndSeek),a=M(p=>p.toRelative),[o,s]=(0,Us.useState)(""),i=(0,Us.useMemo)(()=>om(e).filter(p=>p.kind==="task"),[e]),l=t?.tags??[],d=o.trim().toLowerCase(),u=(0,Us.useMemo)(()=>d?i.filter(p=>p.title.toLowerCase().includes(d)):i,[i,d]);return(0,xt.jsxs)("div",{className:"lum-st-spans",children:[l.length>0&&(0,xt.jsx)("div",{className:"lum-st-spans__tags","aria-label":"Session tags",children:l.map(p=>(0,xt.jsxs)("span",{className:"lum-st-tag",children:["#",p]},p))}),(0,xt.jsxs)("div",{className:"lum-st-spans__search",children:[(0,xt.jsx)("input",{className:"lum-st-spans__input lum-mono",placeholder:"Search tasks\u2026",value:o,onChange:p=>s(p.target.value),"aria-label":"Search task spans by name"}),i.length>0&&(0,xt.jsxs)("span",{className:"lum-st-spans__count lum-muted",children:[u.length,"/",i.length]})]}),i.length===0?(0,xt.jsx)(Jt,{title:"No tasks tracked",children:"Call Obsrviq.startTask('name') / endTask('name') to record searchable sub-events on the session."}):u.length===0?(0,xt.jsx)(Jt,{title:"No tasks match that search"}):(0,xt.jsx)("div",{className:"lum-st-spans__rows lum-mono",role:"list","aria-label":"Task spans",children:u.map(p=>(0,xt.jsxs)("button",{className:`lum-st-spanrow ${p.id===r?"is-selected":""} ${p.running?"is-running":""}`,onClick:()=>n(p.id),"aria-label":`${p.title} (${p.subtitle??""}) @ ${ae(a(p.t))}`,children:[(0,xt.jsx)("span",{className:"lum-st-spanrow__glyph","aria-hidden":!0,children:"\u25B0"}),(0,xt.jsx)("span",{className:"lum-st-spanrow__time",children:ae(a(p.t))}),(0,xt.jsx)("span",{className:"lum-st-spanrow__title",children:p.title}),(0,xt.jsx)("span",{className:"lum-st-spanrow__dur lum-muted",children:p.subtitle})]},p.id))})]})}var jI={console:"\u203A",network:"\u25AD",error:"\u25CF",rage:"\u25C6",dead:"\u25CB",conversion:"\u2726",nav:"\u258E",perf:"\u25C7",task:"\u25B0",custom:"\xB7"},VI=[{id:"all",label:"All"},{id:"network",label:"Network"},{id:"console",label:"Console"},{id:"error",label:"Errors"},{id:"signal",label:"Signals"},{id:"task",label:"Tasks"},{id:"nav",label:"Nav"}];function GI(e,t){switch(t){case"all":return!0;case"network":return e.kind==="network";case"console":return e.kind==="console"||e.kind==="perf";case"error":return e.kind==="error"||e.severity==="error";case"signal":return e.kind==="rage"||e.kind==="dead"||e.kind==="conversion";case"task":return e.kind==="task";case"nav":return e.kind==="nav";default:return!0}}function n0(){let e=M(f=>f.events),t=M(f=>f.feedFilter),r=M(f=>f.setFeedFilter),n=M(f=>f.selectedEventId),a=M(f=>f.selectionRange),o=M(f=>f.selectAndSeek),s=M(f=>f.toRelative),i=M(f=>f.status),l=(0,du.useMemo)(()=>om(e),[e]),d=(0,du.useMemo)(()=>{let f=l.filter(h=>GI(h,t));return a&&(f=f.filter(h=>h.t>=a[0]&&h.t<=a[1])),f},[l,t,a]),u=(0,du.useMemo)(()=>d.map(f=>s(f.t)),[d,s]),p=pI(u),c=mI(p,i==="playing");return(0,Tt.jsxs)("div",{className:"lum-st-feed",children:[(0,Tt.jsx)("div",{className:"lum-st-feed__chips",children:VI.map(f=>(0,Tt.jsx)("button",{className:`lum-pl-chip ${t===f.id?"is-active":""}`,onClick:()=>r(f.id),children:f.label},f.id))}),t==="network"?(0,Tt.jsx)(qI,{}):t==="task"?(0,Tt.jsx)(WI,{}):d.length===0?(0,Tt.jsx)(Jt,{title:"Nothing matched this filter"}):(0,Tt.jsx)("div",{className:"lum-st-feed__rows lum-mono",ref:c,role:"log","aria-label":"Unified activity feed",children:d.map((f,h)=>(0,Tt.jsxs)("button",{"data-row":h,className:`lum-st-feedrow lum-st-feedrow--${f.severity} ${h===p?"is-active":""} ${f.id===n?"is-selected":""}`,onClick:()=>o(f.id),"aria-label":`${f.title} @ ${ae(s(f.t))}`,children:[(0,Tt.jsx)("span",{className:"lum-st-feedrow__glyph","aria-hidden":!0,children:jI[f.kind]}),(0,Tt.jsx)("span",{className:"lum-st-feedrow__time",children:ae(s(f.t))}),(0,Tt.jsx)("span",{className:"lum-st-feedrow__title",children:f.title}),f.subtitle&&(0,Tt.jsx)("span",{className:"lum-st-feedrow__sub lum-muted",children:f.subtitle})]},f.id))})]})}function a0({feedFocusKey:e}){let t=M(u=>u.selectedEventId),r=M(u=>u.events),n=M(u=>u.select),[a,o]=(0,nr.useState)("feed"),s=(0,nr.useRef)(null),i=(0,nr.useMemo)(()=>r.find(u=>u.id===t)??null,[r,t]);(0,nr.useEffect)(()=>{t&&t!==s.current&&o("detail"),!t&&a==="detail"&&o("feed"),s.current=t},[t]);let l=a==="detail"&&!i?"feed":a,d=[{id:"feed",label:"Feed"},...i?[{id:"detail",label:"Detail"}]:[],{id:"dom",label:"DOM"},{id:"state",label:"State"}];return(0,Z.jsxs)("aside",{className:"lum-st-inspector","aria-label":"Inspector",children:[(0,Z.jsxs)("div",{className:"lum-st-inspector__tabs",children:[d.map(u=>(0,Z.jsx)("button",{className:`lum-pl-tab2 ${l===u.id?"is-active":""}`,onClick:()=>o(u.id),children:u.label},u.id)),i&&(0,Z.jsx)("button",{className:"lum-st-inspector__clear","aria-label":"Clear selection (Esc)",onClick:()=>n(null),children:(0,Z.jsx)(aa,{size:13})})]}),(0,Z.jsxs)("div",{className:"lum-st-inspector__body",children:[l==="feed"&&(0,Z.jsx)(n0,{}),l==="dom"&&(0,Z.jsx)(MI,{}),l==="state"&&(0,Z.jsx)(RI,{}),l==="detail"&&i&&(0,Z.jsx)(XI,{ev:i}),l==="detail"&&!i&&(0,Z.jsx)(n0,{})]})]},e)}function XI({ev:e}){let t=M(r=>r.toRelative);if(e.type==="network"){let r=e;return(0,Z.jsxs)("div",{className:"lum-st-inspbody",children:[(0,Z.jsx)("div",{className:"lum-st-inspector__crumb lum-mono",children:C0(r.url)}),(0,Z.jsx)(hI,{n:r,relStart:t(r.t)}),(0,Z.jsx)(Yp,{ev:e})]})}if(e.type==="error")return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(vI,{ev:e}),(0,Z.jsx)("div",{className:"lum-st-inspbody",children:(0,Z.jsx)(Yp,{ev:e})})]});if(e.type==="console")return(0,Z.jsx)(kI,{ev:e});if(e.type==="custom"){let r=e;return(0,Z.jsxs)("div",{className:"lum-st-inspbody lum-pl-detail",children:[(0,Z.jsxs)("div",{className:"lum-pl-detail__head",children:[(0,Z.jsx)("strong",{children:r.name})," ",(0,Z.jsxs)("span",{className:"lum-muted lum-mono",children:["@ ",ae(t(e.t))]})]}),r.props&&(0,Z.jsx)("pre",{className:"lum-pl-json",children:JSON.stringify(r.props,null,2).slice(0,1200)}),(0,Z.jsx)(Yp,{ev:e})]})}if(e.type==="perf"){let r=e;return(0,Z.jsx)("div",{className:"lum-st-inspbody lum-pl-detail",children:(0,Z.jsxs)("div",{className:"lum-pl-detail__head",children:[(0,Z.jsx)("strong",{children:r.metric})," ",(0,Z.jsx)("span",{className:"lum-mono",children:Math.round(r.value)})," ",(0,Z.jsx)("span",{className:"lum-muted",children:r.rating})]})})}return(0,Z.jsx)("div",{className:"lum-st-inspbody lum-muted",children:"No detail view for this event."})}function Yp({ev:e}){let t=Ok(),[r,n]=(0,nr.useState)(""),[a,o]=(0,nr.useState)("idle"),s=(0,nr.useRef)(null);if((0,nr.useEffect)(()=>(n(""),o("idle"),s.current?.abort(),()=>s.current?.abort()),[e.id]),!t)return null;let i=async()=>{s.current?.abort();let l=new AbortController;s.current=l,n(""),o("loading");try{let d=`${t.apiBaseUrl.replace(/\/$/,"")}/v1/sessions/${t.sessionId}/explain`,u="";for await(let p of Fk(d,t,{ref:e.id},l.signal))if(p.kind==="token"&&p.text)u+=p.text,n(u);else if(p.kind==="error"){o("error"),n(p.message||"Explain failed.");return}o("done")}catch(d){if(l.signal.aborted)return;o("error"),n(d instanceof Error?d.message:"Explain failed.")}};return(0,Z.jsx)("div",{className:"lum-st-explain",children:a==="idle"?(0,Z.jsxs)("button",{className:"lum-st-explain__btn",onClick:i,children:[(0,Z.jsx)(Zt,{size:13,"aria-hidden":!0})," Explain with AI"]}):(0,Z.jsxs)("div",{className:"lum-st-explain__out",role:"status","aria-live":"polite",children:[(0,Z.jsxs)("span",{className:"lum-st-explain__label",children:[(0,Z.jsx)(Zt,{size:12,"aria-hidden":!0})," Likely cause",a==="loading"&&(0,Z.jsx)("span",{className:"lum-st-explain__dots","aria-hidden":!0,children:" \u2026"})]}),(0,Z.jsx)("p",{className:`lum-st-explain__text ${a==="error"?"is-error":""}`,children:r||"\u2026"}),a!=="loading"&&(0,Z.jsx)("button",{className:"lum-st-explain__re",onClick:i,children:"Regenerate"})]})})}var eo={error:6,net5xx:5,net4xx:4,rage:3,dead:2,nav:1};function KI(e){let t=[];for(let r of e)if(r.type==="error")t.push({t:r.t,kind:"error",rank:eo.error,ref:r.id,label:`${r.name??"Error"}: ${r.message??""}`});else if(r.type==="console"&&r.level==="error")t.push({t:r.t,kind:"error",rank:eo.error,ref:r.id,label:"console.error"});else if(r.type==="network"){let n=r;n.status>=500||n.status===0?t.push({t:r.t,kind:"net5xx",rank:eo.net5xx,ref:r.id,label:`${n.method} ${n.url} \u2014 ${n.status||"failed"}`}):n.status>=400&&t.push({t:r.t,kind:"net4xx",rank:eo.net4xx,ref:r.id,label:`${n.method} ${n.url} \u2014 ${n.status}`})}else if(r.type==="custom"){let n=r;n.name==="rage_click"?t.push({t:r.t,kind:"rage",rank:eo.rage,ref:r.id,label:"Rage click"}):n.name==="dead_click"&&t.push({t:r.t,kind:"dead",rank:eo.dead,ref:r.id,label:"Dead click"})}return t.sort((r,n)=>r.t-n.t)}function QI(e){let t=om(e),r={chapters:[],interaction:[],console:[],network:[],error:[],task:[],vitals:[]};for(let n of t){let a={id:n.id,t:n.t,durationMs:n.durationMs,running:n.running,kind:n.kind,severity:n.severity,label:n.title,sub:n.subtitle};switch(n.lane){case"interaction":r.interaction.push(a);break;case"console":if(n.kind==="perf")break;r.console.push(a),n.kind==="console"&&n.severity==="error"&&r.error.push({...a,kind:"error"});break;case"network":r.network.push(a);break;case"error":r.error.push(a);break;case"task":r.task.push(a);break;case"nav":r.chapters.push({...a,kind:"nav"});break}}for(let n of e){if(n.type!=="perf")continue;let a=n;["LCP","CLS","INP","FCP"].includes(a.metric)&&r.vitals.push({id:n.id,t:n.t,kind:a.rating==="poor"?"perf-poor":"perf-good",severity:a.rating==="poor"?"error":"ok",label:`${a.metric} ${Math.round(a.value)}${a.metric==="CLS"?"":"ms"}`,sub:a.rating})}return r}var o0={chapters:"Chapters",interaction:"Interactions",console:"Console",network:"Network",error:"Errors",task:"Tasks",vitals:"Vitals"};function YI(e){let t=[];for(let r of e)if(r.type==="error"){let n=r;t.push({id:r.id,label:`Error \xB7 ${n.name??"Error"}`,detail:n.message??"",t:r.t,ref:r.id,keywords:`error exception ${n.name??""} ${n.message??""}`})}else if(r.type==="network"){let n=r,a=n.status>=400||n.status===0,o=n.status>=500?"5xx":n.status>=400?"4xx":"ok";a&&t.push({id:r.id,label:`${n.method} ${JI(n.url)} \xB7 ${n.status||"failed"}`,detail:`${o} network failure`,t:r.t,ref:r.id,keywords:`network request ${o} fail failed error ${n.method} ${n.url} ${n.status}`})}else if(r.type==="custom"){let n=r;if(n.name==="rage_click")t.push({id:r.id,label:"Rage click",detail:"frustration signal",t:r.t,ref:r.id,keywords:"rage frustration click stuck"});else if(n.name==="dead_click")t.push({id:r.id,label:"Dead click",detail:"frustration signal",t:r.t,ref:r.id,keywords:"dead click frustration stuck"});else if(n.props&&n.props.conversion===!0)t.push({id:r.id,label:`Conversion \xB7 ${n.name}`,detail:"the conversion",t:r.t,ref:r.id,keywords:`conversion convert success goal ${n.name}`});else{let a=/^(.+):started$/.exec(n.name??"");if(a){let o=n.props?.task??a[1];t.push({id:r.id,label:`Task \xB7 ${o}`,detail:"sub-event span",t:r.t,ref:r.id,keywords:`task span sub-event ${o}`})}}}return t.sort((r,n)=>r.t-n.t)}function JI(e){try{let t=new URL(e);return(t.pathname.split("/").pop()||t.hostname)+(t.search?t.search:"")}catch{return e.split("/").pop()||e}}function ZI(e,t){if(!e.length)return null;let r=null,n=1/0;for(let a of e){let o=Math.abs(a.t-t);o<n&&(n=o,r=a)}return r&&n<1200?r.label:null}var iu=60;function e_(e){if(e.type==="error"||e.type==="console"&&e.level==="error")return"error";if(e.type==="network"){let t=e;return t.status>=400||t.status===0?"error":"network"}if(e.type==="custom"){let t=e;if(t.name==="rage_click"||t.name==="dead_click")return"frustration";if(t.props&&t.props.conversion===!0)return"conversion";if(t.name==="navigation"||t.name==="pageview")return"nav"}return"other"}var t_={error:"var(--lum-error)",frustration:"var(--lum-warn)",conversion:"var(--lum-ok)",network:"#a06bff",nav:"var(--lum-info)",other:"var(--lum-faint)"};function r_(){let e=M(y=>y.events),t=M(y=>y.offset),r=M(y=>y.durationMs),n=M(y=>y.bufferedMs),a=M(y=>y.zoomStack),o=M(y=>y.zoomTo),s=M(y=>y.zoomOutTo),i=M(y=>y.seek),l=M(y=>y.toRelative),d=(0,no.useRef)(null),[u,p]=(0,no.useState)(null),c=t,f=t+r,h=Math.max(1,f-c),m=(0,no.useMemo)(()=>{let y=new Array(iu).fill(0),w=Array.from({length:iu},()=>({error:0,frustration:0,conversion:0,network:0,nav:0,other:0}));for(let C of e){let _=(C.t-c)/h,I=Math.min(iu-1,Math.max(0,Math.floor(_*iu)));y[I]++,w[I][e_(C)]++}let L=Math.max(1,...y);return y.map((C,_)=>{let I=w[_],D="other",A=0;return Object.keys(I).forEach(k=>{let ke=k==="error"?100:k==="frustration"?50:k==="conversion"?40:1,Ie=I[k]*ke;I[k]>0&&Ie>A&&(A=Ie,D=k)}),{h:C/L,kind:D}})},[e,c,h]),b=y=>{let w=d.current;if(!w)return c;let L=w.getBoundingClientRect(),C=Math.min(1,Math.max(0,(y-L.left)/L.width));return c+C*h},g=y=>(y-c)/h*100,x=a[a.length-1],v=r>0?Math.min(100,n/r*100):100,S=[{label:"Full",index:0},...a.map((y,w)=>({label:`${ae(l(y[0]))}\u2013${ae(l(y[1]))}`,index:w+1}))];return(0,yr.jsxs)("div",{className:"lum-st-overview",children:[(0,yr.jsx)("span",{className:"lum-st-overview__label lum-muted",children:"OVERVIEW"}),(0,yr.jsxs)("div",{ref:d,className:"lum-st-overview__spark",onPointerDown:y=>{y.target.setPointerCapture?.(y.pointerId);let w=b(y.clientX);p({a:w,b:w})},onPointerMove:y=>{u&&p(w=>w&&{...w,b:b(y.clientX)})},onPointerUp:()=>{u&&(Math.abs(u.b-u.a)>h*.01?o(Math.min(u.a,u.b),Math.max(u.a,u.b)):i(l(u.a))),p(null)},onPointerLeave:()=>p(null),children:[v<99.5&&(0,yr.jsx)("div",{className:"lum-st-overview__buffered",style:{width:`${v}%`},"aria-hidden":!0}),m.map((y,w)=>(0,yr.jsx)("div",{className:"lum-st-overview__bar",style:{height:`${Math.max(8,y.h*100)}%`,background:t_[y.kind]}},w)),x&&(0,yr.jsx)("div",{className:"lum-st-overview__window",style:{left:`${g(x[0])}%`,width:`${g(x[1])-g(x[0])}%`}}),u&&(0,yr.jsx)("div",{className:"lum-st-overview__brush",style:{left:`${g(Math.min(u.a,u.b))}%`,width:`${Math.abs(g(u.b)-g(u.a))}%`}})]}),(0,yr.jsx)("div",{className:"lum-st-overview__crumbs",children:S.map((y,w)=>(0,yr.jsx)("button",{className:`lum-st-crumb ${w===S.length-1?"is-active":""}`,onClick:()=>s(y.index),children:y.label},w))})]})}function n_(e){let t=[1e3,2e3,5e3,1e4,15e3,3e4,6e4,12e4,3e5,6e5],r=e/8;for(let n of t)if(n>=r)return n;return t[t.length-1]}function a_({win:e}){let t=(0,ro.useRef)(null),r=(0,ro.useRef)(!1),n=M(S=>S.currentTime),a=M(S=>S.durationMs),o=M(S=>S.offset),s=M(S=>S.events),i=M(S=>S.markers),l=M(S=>S.snap),d=M(S=>S.seek),u=M(S=>S.setHover),p=M(S=>S.toRelative),[c,f]=e,h=Math.max(1,f-c),m=(0,ro.useMemo)(()=>{let S=n_(h),y=[],w=c-o,L=Math.ceil(w/S)*S;for(let C=L;C<=f-o;C+=S){let _=C+o;y.push({tRel:C,pct:(_-c)/h*100})}return y},[h,c,f,o]),b=(0,ro.useMemo)(()=>am(s,a+o),[s,a,o]),g=S=>{let y=t.current;if(!y)return c;let w=y.getBoundingClientRect();return M0(S-w.left,e,w.width)},x=S=>{if(!l)return S;let y=t.current;if(!y)return S;let w=y.getBoundingClientRect().width,L=em(S,e,w),C=S,_=8;for(let I of i){let D=em(I.t,e,w),A=Math.abs(D-L);A<_&&(_=A,C=I.t)}return C},v=S=>{let y=x(g(S));d(p(y))};return(0,kn.jsxs)("div",{ref:t,className:"lum-st-ruler",role:"slider",tabIndex:0,"aria-label":"Timeline scrubber","aria-valuemin":0,"aria-valuemax":Math.round(a),"aria-valuenow":Math.round(n),"aria-valuetext":`${ae(n)} of ${ae(a)}`,onPointerDown:S=>{r.current=!0,S.target.setPointerCapture?.(S.pointerId),v(S.clientX)},onPointerMove:S=>{let y=g(S.clientX);u(p(y)),r.current&&v(S.clientX)},onPointerUp:S=>{r.current=!1,S.target.releasePointerCapture?.(S.pointerId)},onPointerLeave:()=>u(null),onKeyDown:S=>{if(S.key==="ArrowRight")d(n+1e3);else if(S.key==="ArrowLeft")d(n-1e3);else if(S.key==="Home")d(0);else if(S.key==="End")d(a);else if(S.key==="PageUp")d(n+1e4);else if(S.key==="PageDown")d(n-1e4);else return;S.preventDefault()},children:[b.slice(1).map(S=>{let y=(S.startT-c)/h*100;return y<0||y>100?null:(0,kn.jsx)("span",{className:"lum-st-ruler__chdiv",style:{left:`${y}%`},title:S.title},S.id)}),m.map((S,y)=>(0,kn.jsx)("span",{className:"lum-st-ruler__tick",style:{left:`${S.pct}%`},children:(0,kn.jsx)("span",{className:"lum-st-ruler__ticklabel lum-mono",children:ae(S.tRel)})},y))]})}function o_({win:e}){let t=M(d=>d.hover),r=M(d=>d.offset),n=M(d=>d.markers);if(t==null)return null;let a=t.t+r,[o,s]=e,i=(a-o)/Math.max(1,s-o)*100;if(i<0||i>100)return null;let l=ZI(n,a);return(0,kn.jsxs)("div",{className:"lum-st-ghosttip lum-mono",style:{left:`${i}%`},children:[ae(t.t),l&&(0,kn.jsxs)("span",{className:"lum-st-ghosttip__lbl",children:[" \xB7 ",l.slice(0,48)]})]})}function s_({isFullscreen:e,onFullscreen:t,allowFullscreen:r=!0}){let n=M(k=>k.status),a=M(k=>k.currentTime),o=M(k=>k.durationMs),s=M(k=>k.summary?.inactiveMs),i=M(k=>k.summary?.durationMs),l=M(k=>k.speed),d=M(k=>k.autoSkip),u=M(k=>k.isSkipping),p=M(k=>k.autoSkim),c=M(k=>k.isSkimming),f=M(k=>k.loop),h=M(k=>k.showCursor),m=M(k=>k.snap),b=M(k=>k.toggle),g=M(k=>k.restart),x=M(k=>k.seek),v=M(k=>k.step),S=M(k=>k.jumpEvent),y=M(k=>k.setSpeed),w=M(k=>k.setAutoSkip),L=M(k=>k.setAutoSkim),C=M(k=>k.setLoop),_=M(k=>k.setShowCursor),I=M(k=>k.toggleSnap),D=n==="playing";return(0,Q.jsxs)("div",{className:"lum-st-transport",children:[(0,Q.jsxs)("div",{className:"lum-st-transport__group",children:[(0,Q.jsx)("span",{className:"lum-pl-play",children:(0,Q.jsx)(ht,{label:D?"Pause (Space)":"Play (Space)",pressed:D,onClick:b,children:D?(0,Q.jsx)(ks,{size:17}):(0,Q.jsx)(na,{size:17})})}),(0,Q.jsx)(ht,{label:"Restart (R)",onClick:g,children:(0,Q.jsx)(Ms,{size:16})}),(0,Q.jsx)(ht,{label:"Back 10s (\u2190)",onClick:()=>x(a-1e4),children:(0,Q.jsx)(Es,{size:16})}),(0,Q.jsx)(ht,{label:"Forward 10s (\u2192)",onClick:()=>x(a+1e4),children:(0,Q.jsx)(Ps,{size:16})}),(0,Q.jsx)(ht,{label:"Previous event ([)",onClick:()=>S(-1),children:(0,Q.jsx)(Jn,{size:17})}),(0,Q.jsx)(ht,{label:"Next event (])",onClick:()=>S(1),children:(0,Q.jsx)(Zn,{size:17})}),(n==="paused"||n==="ended"||n==="idle")&&(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(ht,{label:"Frame back (,)",onClick:()=>v(-1),children:(0,Q.jsx)(Ns,{size:15})}),(0,Q.jsx)(ht,{label:"Frame forward (.)",onClick:()=>v(1),children:(0,Q.jsx)(Ts,{size:15})})]})]}),(0,Q.jsxs)("div",{className:"lum-st-transport__group lum-st-transport__group--right",children:[(0,Q.jsx)(Zx,{trigger:(0,Q.jsxs)("span",{className:"lum-iconbtn","aria-label":`Speed ${l}\xD7`,title:"Playback speed (< / >)",children:[(0,Q.jsx)(ys,{size:15}),(0,Q.jsxs)("span",{className:"lum-mono lum-pl-speed",children:[l,"\xD7"]})]}),options:c0.map(k=>({value:k,label:`${k}\xD7`})),value:l,onSelect:y,placement:"top"}),(0,Q.jsx)("span",{className:`lum-st-skim${u?" is-skimming":""}`,children:(0,Q.jsx)(ht,{label:`Auto-skip idle \u2014 jump to next activity (S)${d?" \u2014 on":""}`,pressed:d,onClick:()=>w(!d),children:(0,Q.jsx)(ea,{size:16})})}),(0,Q.jsx)("span",{className:`lum-st-skim${c?" is-skimming":""}`,children:(0,Q.jsx)(ht,{label:`Auto-skim idle at 8\xD7 (\u21E7S)${p?" \u2014 on":""}`,pressed:p,onClick:()=>L(!p),children:(0,Q.jsx)(oa,{size:15})})}),(0,Q.jsx)(ht,{label:"Loop (L)",pressed:f,onClick:()=>C(!f),children:(0,Q.jsx)(Is,{size:15})}),(0,Q.jsx)(ht,{label:"Magnetic snap (X)",pressed:m,onClick:I,children:(0,Q.jsx)(Ss,{size:15})}),(0,Q.jsx)(ht,{label:"Cursor trail",pressed:h,onClick:()=>_(!h),children:(0,Q.jsx)(Ls,{size:15})}),r&&(0,Q.jsx)(ht,{label:e?"Exit fullscreen (F)":"Fullscreen (F)",pressed:e,onClick:t,children:e?(0,Q.jsx)(ra,{size:16}):(0,Q.jsx)(ta,{size:16})}),(0,Q.jsxs)("span",{className:"lum-st-transport__time lum-mono",children:[ae(a)," ",(0,Q.jsxs)("span",{className:"lum-muted",children:["/ ",ae(o)]}),s!=null&&s>0&&i?(0,Q.jsxs)("span",{className:"lum-st-transport__idle lum-muted",title:`${ae(s)} of this recording (${Math.round(s/i*100)}%) had no interaction`,children:[" \xB7 ",Math.round(s/i*100),"% idle"]}):null]})]})]})}function i_(e){switch(e.kind){case"rage":return"\u25C6";case"dead":return"\u25CB";case"conversion":return"\u2726";case"error":return"\u25CF";case"network":return"\u25AD";case"task":return"\u25B0";case"nav":return"\u258E";case"perf-poor":return"\u25C7";case"perf-good":return"\u25C7";case"console":return e.severity==="error"?"\u25CF":"\xB7";default:return"\xB7"}}function l_(e){switch(e.severity){case"error":return"var(--lum-error)";case"warn":return"var(--lum-warn)";case"ok":return"var(--lum-ok)";case"info":return"var(--lum-info)";default:return"var(--lum-faint)"}}function u_(e,t,r){let n=[...e].sort((o,s)=>o.t-s.t),a=[];for(let o of n){if(o.t<t[0]-1||o.t>t[1]+1)continue;let s=em(o.t,t,r),i=a[a.length-1];i&&s-i.xPx<6?i.items.push(o):a.push({t:o.t,xPx:s,items:[o]})}return a}function d_({id:e,label:t,glyphs:r,win:n,width:a,collapsed:o}){let s=M(g=>g.offset),i=M(g=>g.durationMs),l=M(g=>g.events),d=M(g=>g.selectedEventId),u=M(g=>g.selectAndSeek),p=M(g=>g.zoomTo),c=M(g=>g.toRelative),f=Math.max(1,n[1]-n[0]),h=g=>(g-n[0])/f*100,m=(0,tm.useMemo)(()=>e==="chapters"?am(l,i+s):[],[e,l,i,s]),b=(0,tm.useMemo)(()=>e==="network"||e==="chapters"||e==="task"?[]:u_(r,n,a||1),[e,r,n,a]);return o?(0,Ht.jsx)("div",{className:"lum-st-lane lum-st-lane--collapsed",role:"listbox","aria-label":`${t} lane (collapsed)`,tabIndex:0,children:(0,Ht.jsx)("span",{className:"lum-st-lane__count lum-mono",children:r.length||m.length||"\u2014"})}):(0,Ht.jsxs)("div",{className:`lum-st-lane lum-st-lane--${e}`,role:"listbox","aria-label":`${t} lane`,tabIndex:0,"data-lane":e,children:[e==="chapters"&&m.map(g=>{let x=h(g.startT),v=h(g.endT)-x;return x>100||x+v<0?null:(0,Ht.jsx)("button",{className:`lum-st-chapter lum-st-chapter--${g.kind} ${g.kind==="idle"?"is-idle":""}`,style:{left:`${x}%`,width:`${Math.max(.5,v)}%`},role:"option","aria-selected":!1,"aria-label":`${g.title} \xB7 ${g.subtitle} @ ${ae(c(g.startT))}`,title:`${g.title} \u2014 ${g.subtitle}`,onClick:()=>p(g.startT,g.endT),children:(0,Ht.jsx)("span",{className:"lum-st-chapter__label",children:g.title})},g.id)}),e==="network"&&r.map(g=>{let x=h(g.t);if(x>101||x<-1)return null;let v=(g.durationMs??0)/f*100,S=Math.max(.4,v),y=d===g.id;return(0,Ht.jsx)("button",{className:`lum-st-netbar lum-st-netbar--${g.severity} ${y?"is-selected":""}`,style:{left:`${x}%`,width:`${S}%`},role:"option","aria-selected":y,"aria-label":`${g.label} \xB7 ${g.sub??""} @ ${ae(c(g.t))}`,title:`${g.label} \u2014 ${g.sub??""}`,onClick:()=>u(g.id)},g.id)}),e==="task"&&r.map(g=>{let x=h(g.t);if(x>101||x<-1)return null;let v=(g.durationMs??0)/f*100,S=Math.max(.5,v),y=d===g.id,w=!!g.running;return(0,Ht.jsx)("button",{className:`lum-st-taskbar ${y?"is-selected":""} ${w?"is-running":""}`,style:{left:`${x}%`,width:`${S}%`},role:"option","aria-selected":y,"aria-label":`Task ${g.label} \xB7 ${g.sub??""} @ ${ae(c(g.t))}`,title:`${g.label}${g.sub?` \u2014 ${g.sub}`:""}`,onClick:()=>u(g.id)},g.id)}),e!=="network"&&e!=="chapters"&&e!=="task"&&b.map((g,x)=>{let v=h(g.t);if(v>101||v<-1)return null;let S=g.items[0],y=g.items.some(L=>L.id===d),w=g.items.length;return(0,Ht.jsxs)("button",{className:`lum-st-glyph lum-st-glyph--${e} ${y?"is-selected":""} ${S.kind==="rage"?"lum-st-glyph--pulse":""}`,style:{left:`${v}%`,color:l_(S)},role:"option","aria-selected":y,"aria-label":w>1?`${w} events @ ${ae(c(g.t))}`:`${S.label} @ ${ae(c(g.t))}`,title:w>1?`${w} events`:`${S.label}${S.sub?` \xB7 ${S.sub}`:""}`,onClick:()=>{w>1&&f>4e3?p(g.t-1500,g.t+1500):u(S.id)},children:[(0,Ht.jsx)("span",{className:"lum-st-glyph__char","aria-hidden":!0,children:i_(S)}),w>1&&(0,Ht.jsx)("span",{className:"lum-st-glyph__count",children:w})]},`${g.t}-${x}`)}),r.length===0&&m.length===0&&(0,Ht.jsx)("span",{className:"lum-st-lane__empty",children:"\u2014"})]})}function c_({id:e,label:t,count:r}){let n=M(o=>o.laneState[e]),a=M(o=>o.toggleLane);return(0,At.jsxs)("div",{className:`lum-st-rail ${n.mute?"is-muted":""} ${n.solo?"is-solo":""}`,children:[(0,At.jsx)("button",{className:"lum-st-rail__collapse","aria-label":`${n.collapsed?"Expand":"Collapse"} ${t}`,onClick:()=>a(e,"collapsed"),children:n.collapsed?(0,At.jsx)(Zn,{size:13}):(0,At.jsx)(Yn,{size:13})}),(0,At.jsx)("span",{className:"lum-st-rail__label",children:t}),(0,At.jsx)("span",{className:"lum-st-rail__count lum-mono",children:r}),(0,At.jsxs)("span",{className:"lum-st-rail__ctrls",children:[(0,At.jsx)("button",{className:`lum-st-rail__btn ${n.solo?"is-on":""}`,"aria-pressed":n.solo,title:"Solo lane",onClick:()=>a(e,"solo"),children:(0,At.jsx)(vs,{size:11})}),(0,At.jsx)("button",{className:`lum-st-rail__btn ${n.mute?"is-on":""}`,"aria-pressed":n.mute,title:"Mute lane",onClick:()=>a(e,"mute"),children:n.mute?(0,At.jsx)(Os,{size:11}):(0,At.jsx)(Ds,{size:11})})]})]})}function f_({win:e}){let t=M(i=>i.currentTime),r=M(i=>i.offset),n=t+r,a=pu(n,e),o=n<e[0],s=n>e[1];return(0,mu.jsx)("div",{className:`lum-st-playhead ${o?"is-offleft":""} ${s?"is-offright":""}`,style:{left:`${a*100}%`},"aria-hidden":!0,children:(0,mu.jsx)("span",{className:"lum-st-playhead__cap"})})}function p_({win:e}){let t=M(o=>o.hover),r=M(o=>o.offset);if(t==null)return null;let n=t.t+r,a=pu(n,e);return n<e[0]||n>e[1]?null:(0,mu.jsx)("div",{className:"lum-st-ghost",style:{left:`${a*100}%`},"aria-hidden":!0})}var m_={error:"var(--lum-error)",net5xx:"#a06bff",net4xx:"var(--lum-warn)",rage:"var(--lum-warn)",dead:"var(--lum-faint)",nav:"var(--lum-info)"};function h_({win:e}){let t=(0,qs.useRef)(null),r=(0,qs.useRef)(!1),n=M(m=>m.currentTime),a=M(m=>m.durationMs),o=M(m=>m.offset),s=M(m=>m.events),i=M(m=>m.seek),l=M(m=>m.selectAndSeek),d=M(m=>m.setHover),u=M(m=>m.toRelative),p=(0,qs.useMemo)(()=>KI(s),[s]),c=n+o,f=pu(c,e),h=m=>{let b=t.current;if(!b)return e[0];let g=b.getBoundingClientRect();return M0(m-g.left,e,g.width)};return(0,to.jsxs)("div",{ref:t,className:"lum-st-ribbon",role:"slider",tabIndex:0,"aria-label":"Signal ribbon scrubber","aria-valuemin":0,"aria-valuemax":Math.round(a),"aria-valuenow":Math.round(n),"aria-valuetext":`${ae(n)} of ${ae(a)}`,onPointerDown:m=>{r.current=!0,m.target.setPointerCapture?.(m.pointerId),i(u(h(m.clientX)))},onPointerMove:m=>{d(u(h(m.clientX))),r.current&&i(u(h(m.clientX)))},onPointerUp:()=>r.current=!1,onPointerLeave:()=>d(null),onKeyDown:m=>{if(m.key==="ArrowRight")i(n+1e3);else if(m.key==="ArrowLeft")i(n-1e3);else if(m.key==="Home")i(0);else if(m.key==="End")i(a);else return;m.preventDefault()},children:[(0,to.jsx)("div",{className:"lum-st-ribbon__track"}),p.map(m=>{let b=pu(m.t,e);return m.t<e[0]||m.t>e[1]?null:(0,to.jsx)("button",{className:"lum-st-ribbon__glyph",style:{left:`${b*100}%`,color:m_[m.kind]??"var(--lum-faint)"},title:`${m.label} @ ${ae(u(m.t))}`,"aria-label":`${m.label} @ ${ae(u(m.t))}`,onClick:g=>{g.stopPropagation(),l(m.ref)},children:"\u25C6"},m.ref)}),(0,to.jsx)("div",{className:"lum-st-ribbon__head",style:{left:`${f*100}%`},"aria-hidden":!0})]})}function g_({breakpoint:e,isFullscreen:t,onFullscreen:r,allowFullscreen:n,onResizeStart:a,onResizeReset:o}){let s=M(w=>w.events),i=M(w=>w.laneState),l=M(w=>w.offset),d=M(w=>w.durationMs),u=M(w=>w.zoomStack),p=M(w=>w.zoomTo),c=M(w=>w.zoomOutTo),f=M(w=>w.focusMode),h=R0(),{ref:m,width:b}=FI(),g=(0,E0.useMemo)(()=>QI(s),[s]),x=e==="narrow"||e==="compact"||f==="stage",v=cu.some(w=>i[w].solo),S=cu.filter(w=>!(i[w].mute||v&&!i[w].solo));return(0,Ze.jsxs)("section",{className:"lum-st-timeline","aria-label":"Timeline",children:[a&&(0,Ze.jsx)("div",{className:"lum-st-resize lum-st-resize--y",role:"separator","aria-orientation":"horizontal","aria-label":"Resize timeline height",title:"Drag to resize \xB7 double-click to reset",onPointerDown:a,onDoubleClick:o}),(0,Ze.jsx)(r_,{}),(0,Ze.jsxs)("div",{className:"lum-st-rulerrow",children:[(0,Ze.jsx)(s_,{isFullscreen:t,onFullscreen:r,allowFullscreen:n}),(0,Ze.jsx)("div",{className:"lum-st-rulerrow__ruler",children:(0,Ze.jsx)(a_,{win:h})})]}),x?(0,Ze.jsx)("div",{className:"lum-st-ribbonwrap",children:(0,Ze.jsx)(h_,{win:h})}):(0,Ze.jsxs)("div",{className:"lum-st-lanes",onWheel:w=>{if(x||!w.ctrlKey&&!w.metaKey)return;w.preventDefault();let L=m.current;if(!L)return;let C=L.getBoundingClientRect(),_=Math.min(1,Math.max(0,(w.clientX-C.left)/C.width)),I=h[0]+_*(h[1]-h[0]),D=w.deltaY>0?1.2:.83,A=OI(h,I,D,l,l+d);A==null?u.length&&c(u.length-1):p(A[0],A[1])},children:[(0,Ze.jsx)("div",{className:"lum-st-lanes__rails",children:S.map(w=>(0,Ze.jsx)(c_,{id:w,label:o0[w],count:g[w].length},w))}),(0,Ze.jsxs)("div",{className:"lum-st-lanes__tracks",ref:m,children:[S.map(w=>(0,Ze.jsx)(d_,{id:w,label:o0[w],glyphs:g[w],win:h,width:b,collapsed:i[w].collapsed},w)),(0,Ze.jsx)(f_,{win:h}),(0,Ze.jsx)(p_,{win:h}),(0,Ze.jsx)(o_,{win:h})]})]})]})}function x_(){let e=M(g=>g.paletteOpen),t=M(g=>g.openPalette),r=M(g=>g.events),n=M(g=>g.currentTime),a=M(g=>g.nextProblem),o=M(g=>g.selectAndSeek),s=M(g=>g.toRelative),[i,l]=(0,rr.useState)(""),[d,u]=(0,rr.useState)(0),p=(0,rr.useRef)(null),c=(0,rr.useMemo)(()=>YI(r),[r]),f=(0,rr.useMemo)(()=>{let g=[];g.push({id:"next-problem",label:"Next problem",detail:"jump to the next error / failure / rage",keywords:"next problem error fail rage",run:()=>a(1)}),g.push({id:"prev-problem",label:"Previous problem",detail:"jump backward",keywords:"previous prev problem back",run:()=>a(-1)});let x=c.find(L=>L.keywords.includes("error"));x&&g.push(w("first-error","First error",x));let v=c.find(L=>L.keywords.includes("network"));v&&g.push(w("next-5xx","Next failed request",v));let S=c.find(L=>L.keywords.includes("rage"));S&&g.push(w("next-rage","Next rage click",S));let y=c.find(L=>L.keywords.includes("conversion"));y&&g.push(w("the-conversion","The conversion",y));for(let L of c)g.push(w(`go-${L.id}`,`${L.label} \xB7 ${ae(s(L.t))}`,L));return g;function w(L,C,_){return{id:L,label:C,detail:_.detail,keywords:`${C} ${_.keywords}`.toLowerCase(),run:()=>o(_.ref)}}},[c,a,o,s]),h=(0,rr.useMemo)(()=>{let g=i.trim().toLowerCase();return g?f.filter(x=>x.keywords.includes(g)||x.label.toLowerCase().includes(g)).slice(0,20):f.slice(0,12)},[f,i]);if((0,rr.useEffect)(()=>{e&&(l(""),u(0),requestAnimationFrame(()=>p.current?.focus()))},[e]),(0,rr.useEffect)(()=>u(0),[i]),!e)return null;let m=()=>t(!1),b=g=>{g&&(g.run(),m())};return(0,tr.jsx)("div",{className:"lum-st-palette",role:"dialog","aria-modal":"true","aria-label":"Command palette",onClick:m,children:(0,tr.jsxs)("div",{className:"lum-st-palette__card",onClick:g=>g.stopPropagation(),children:[(0,tr.jsx)("input",{ref:p,className:"lum-st-palette__input lum-mono",placeholder:"Jump to\u2026 (next 5xx, next rage, first error, the conversion)",value:i,onChange:g=>l(g.target.value),"aria-label":"Command query",onKeyDown:g=>{g.key==="ArrowDown"?(g.preventDefault(),u(x=>Math.min(h.length-1,x+1))):g.key==="ArrowUp"?(g.preventDefault(),u(x=>Math.max(0,x-1))):g.key==="Enter"?(g.preventDefault(),b(h[d])):g.key==="Escape"&&(g.preventDefault(),m())}}),(0,tr.jsxs)("div",{className:"lum-st-palette__hint lum-muted",children:[h.length," match",h.length===1?"":"es"]}),(0,tr.jsxs)("ul",{className:"lum-st-palette__list",role:"listbox",children:[h.map((g,x)=>(0,tr.jsx)("li",{role:"option","aria-selected":x===d,children:(0,tr.jsxs)("button",{className:`lum-st-palette__item ${x===d?"is-active":""}`,onMouseEnter:()=>u(x),onClick:()=>b(g),children:[(0,tr.jsx)("span",{className:"lum-st-palette__label",children:g.label}),(0,tr.jsx)("span",{className:"lum-st-palette__detail lum-muted",children:g.detail})]})},g.id)),h.length===0&&(0,tr.jsx)("li",{className:"lum-st-palette__empty lum-muted",children:"No matches"})]})]})})}var v_=[["Space / K","Play / pause"],["R","Restart"],["\u2190 / \u2192","Seek \u221310s (\u22131s on ruler)"],["[ / ]","Walk prev / next event in lane"],[", / .","Frame step (paused)"],["< / >","Slower / faster"],["N / \u21E7N","Next / previous problem"],["\u2318K / Ctrl K","Command palette"],["E","Cycle feed type filter"],["Z / \u21E7Z","Zoom to selection / out"],["X","Toggle magnetic snap"],["T / D","Stage / Debug focus"],["`","Toggle feed focus"],["S","Auto-skip idle (jump)"],["\u21E7S","Auto-skim idle (8\xD7)"],["L","Loop"],["F","Fullscreen"],["C","Comment at playhead"],["Home / End","Start / end (ruler)"],["Esc","Clear selection / close"],["?","This help"]];function y_({open:e,onClose:t}){return e?(0,er.jsx)("div",{className:"lum-pl-help",role:"dialog","aria-modal":"true","aria-label":"Keyboard shortcuts",onClick:t,children:(0,er.jsxs)("div",{className:"lum-pl-help__card",onClick:r=>r.stopPropagation(),children:[(0,er.jsxs)("div",{className:"lum-pl-help__head",children:[(0,er.jsx)("strong",{children:"Keyboard shortcuts"}),(0,er.jsx)("button",{className:"lum-iconbtn","aria-label":"Close",onClick:t,children:"\u2715"})]}),(0,er.jsx)("div",{className:"lum-pl-help__grid",children:v_.map(([r,n])=>(0,er.jsxs)("div",{className:"lum-pl-help__row",children:[(0,er.jsx)("kbd",{className:"lum-pl-kbd lum-mono",children:r}),(0,er.jsx)("span",{children:n})]},r))}),(0,er.jsx)("p",{className:"lum-muted",children:"Shortcuts are disabled while typing in a text field."})]})}):null}function w_(e){let[t,r]=(0,wu.useState)("wide");return(0,wu.useEffect)(()=>{let n=e.current;if(!n)return;let a=(s,i)=>s<480?"compact":s<720||i<400?"narrow":s<1100?"mid":"wide",o=new ResizeObserver(s=>{let i=s[0];if(!i)return;let{width:l,height:d}=i.contentRect;r(a(l,d))});return o.observe(n),r(a(n.clientWidth,n.clientHeight)),()=>o.disconnect()},[e]),t}function s0(e,t){let r=rm(t);return e&&r.includes(e)?e:r.includes("debug")?"debug":r[0]}var i0="obsrviq.player.inspectorW",l0="obsrviq.player.timelineH";function u0(e){try{let t=Number(localStorage.getItem(e));return Number.isFinite(t)&&t>0?t:null}catch{return null}}function d0(e,t){try{t!=null?localStorage.setItem(e,String(t)):localStorage.removeItem(e)}catch{}}function P0(e){let t=(0,G.useRef)();t.current||(t.current=Nk());let r=t.current;return(0,je.jsx)(Ak,{store:r,children:(0,je.jsx)(Dk,{value:{apiBaseUrl:e.apiBaseUrl,token:e.token,apiKey:e.apiKey,sessionId:e.sessionId},children:(0,je.jsx)(Jx,{children:(0,je.jsx)(b_,{...e,store:r})})})})}function b_({sessionId:e,apiBaseUrl:t,token:r,apiKey:n,startAtMs:a,startMode:o,defaultMode:s,allowedModes:i,defaultSpeed:l,allowFullscreen:d,shareUrl:u,onEnded:p,onError:c,onSeek:f,onComment:h,onBack:m,backLabel:b,live:g,theme:x,embedded:v,className:S,topbarActions:y,focus:w,clip:L,store:C}){let _=(0,G.useRef)(null),I=(0,G.useRef)(null),D=(0,G.useRef)(null),A=(0,G.useRef)([]),k=(0,G.useRef)(-1),ke=(0,G.useRef)(0),Ie=(0,G.useRef)([]),ue=(0,G.useRef)(-1),j=(0,G.useRef)(new Set),be=(0,G.useRef)(new Set),ze=(0,G.useRef)(0),Se=(0,G.useRef)(!1),[we,wr]=(0,G.useState)(0),[E,vt]=(0,G.useState)(!1),[yt,_n]=(0,G.useState)(!1),[Qe,it]=(0,G.useState)(!1),[br,Sr]=(0,G.useState)(0),[X,Me]=(0,G.useState)(!1),[se,Re]=(0,G.useState)(null),lt=(0,G.useRef)(null),[me,la]=(0,G.useState)(()=>u0(i0)),[bu,lm]=(0,G.useState)(()=>u0(l0));(0,G.useEffect)(()=>{d0(i0,me)},[me]),(0,G.useEffect)(()=>{d0(l0,bu)},[bu]);let U0=(0,G.useCallback)(N=>{let H=lt.current;if(!H)return;N.preventDefault();let O=H.getBoundingClientRect(),ee=N.currentTarget;ee.setPointerCapture(N.pointerId),ee.classList.add("is-active");let T=te=>{let ut=Math.max(320,Math.min(820,O.width-360));la(Math.min(ut,Math.max(300,Math.round(O.right-te.clientX))))},ie=()=>{ee.classList.remove("is-active"),window.removeEventListener("pointermove",T),window.removeEventListener("pointerup",ie)};window.addEventListener("pointermove",T),window.addEventListener("pointerup",ie)},[]),q0=(0,G.useCallback)(N=>{let H=_.current;if(!H)return;N.preventDefault();let O=H.getBoundingClientRect(),ee=N.currentTarget;ee.setPointerCapture(N.pointerId),ee.classList.add("is-active");let T=te=>{let ut=Math.max(140,O.height-240);lm(Math.min(ut,Math.max(120,Math.round(O.bottom-te.clientY))))},ie=()=>{ee.classList.remove("is-active"),window.removeEventListener("pointermove",T),window.removeEventListener("pointerup",ie)};window.addEventListener("pointermove",T),window.addEventListener("pointerup",ie)},[]),Er=w_(_),ua=M(N=>N.focusMode),da={apiBaseUrl:t,token:r,apiKey:n},Hs=d??se?.allowFullscreen??!0,$0=u??se?.shareUrl,um=(0,G.useRef)(Hs);um.current=Hs;let dm=(0,G.useRef)(!1);(0,G.useEffect)(()=>{if(dm.current)return;let N=i!=null&&(s??o)!=null&&l!=null;if(se==null&&!N)return;dm.current=!0;let H=C.getState(),O=rm(i??se?.allowedModes);H.setAllowedModes(O);let ee=s??o??se?.defaultMode;ee&&O.includes(ee)&&C.setState({focusMode:ee});let T=l??se?.defaultSpeed;if(T!=null){let ie=c0.reduce((te,ut)=>Math.abs(ut-T)<Math.abs(te-T)?ut:te);C.setState({speed:ie}),H.controller?.setSpeed(ie)}},[se]),(0,G.useEffect)(()=>{let N=!1;return vt(!1),Ie.current=[],ue.current=-1,j.current=new Set,be.current=new Set,ze.current=0,Se.current=!1,C.setState({status:"loading",error:null,loadProgress:0,controller:null,pendingSeek:null}),(async()=>{if(g){let{detail:J,events:ge,rrwebEvents:or}=await Uk(e,da,(sr,K)=>!N&&C.setState({loadProgress:K?sr/K:1}));if(N)return;if(Re(J.replaySettings??{}),A.current=or,k.current=J.replayChunks.reduce((sr,K)=>Math.max(sr,K.seq),-1),ke.current=ge.reduce((sr,K)=>Math.max(sr,K.t),0),J.summary.hasReplay&&or.length>0)C.setState({events:ge,markers:Fs(ge),summary:J.summary,hasReplay:!0,status:"buffering",live:!0,following:!0});else{let sr=ge.map(Ce=>Ce.t),K=sr.length?Math.min(...sr):0,V=sr.length?Math.max(...sr):0;C.setState({events:ge,markers:Fs(ge),summary:J.summary,hasReplay:!1,offset:K,durationMs:Math.max(0,V-K),currentTime:0,status:"paused",focusMode:s0(s??o??J.replaySettings?.defaultMode,i??J.replaySettings?.allowedModes)})}vt(!0);return}let{detail:O,events:ee}=await Bk(e,da);if(N)return;Re(O.replaySettings??{});let T=[...O.replayChunks].sort((J,ge)=>J.seq-ge.seq);if(Ie.current=T,T.forEach((J,ge)=>{J.hasSnapshot&&be.current.add(ge)}),ke.current=ee.reduce((J,ge)=>Math.max(J,ge.t),0),!(O.summary.hasReplay&&T.length>0)){let J=ee.map(ao=>ao.t),ge=J.length?Math.min(...J):0,or=J.length?Math.max(...J):0;C.setState({events:ee,markers:Fs(ee),summary:O.summary,hasReplay:!1,offset:ge,durationMs:Math.max(0,or-ge),currentTime:0,status:"paused",focusMode:s0(s??o??O.replaySettings?.defaultMode,i??O.replaySettings?.allowedModes)}),vt(!0);return}let te=T.reduce((J,ge)=>Math.min(J,ge.firstT),T[0].firstT),ut=T.reduce((J,ge)=>Math.max(J,ge.lastT),0);ze.current=Math.max(0,ut-te),C.setState({events:ee,markers:Fs(ee),summary:O.summary,hasReplay:!0,status:"loading",durationMs:ze.current,bufferedMs:0,live:!1,following:!1});let ar=Math.min(T.length,8),Wt=[],Mn=-1;for(let J=0;J<ar;J++){let ge=await Xp(T[J].url,da).catch(()=>[]);if(N)return;if(Wt=Wt.concat(ge),Mn=J,j.current.add(J),ge.some(or=>or.type===2)&&be.current.add(J),Wt.some(or=>or.type===2))break}if(Wt.length<2||!Wt.some(J=>J.type===2)){C.setState({status:"error",error:"Replay data unavailable.",errorNotFound:!1});return}A.current=Wt,ue.current=Mn,C.setState({loadProgress:T.length?(Mn+1)/T.length:1}),vt(!0)})().catch(O=>{N||(Re(ee=>ee??{}),C.setState({status:"error",error:O instanceof Error?O.message:"Load failed",errorNotFound:!!O?.notFound}))}),()=>{N=!0}},[e,we]),(0,G.useEffect)(()=>{if(!E)return;let N=C.getState();if(!N.hasReplay)return;let H=I.current;if(!H)return;H.innerHTML="";let O;try{O=new Kk(H,A.current,{speed:N.speed,showCursor:N.showCursor,autoSkim:N.autoSkim,autoSkip:N.autoSkip},{onTime:te=>C.getState()._onTime(te),onFinish:()=>C.getState()._onFinish(),onState:te=>C.setState({status:te}),onSkim:te=>C.setState({isSkimming:te}),onSkip:te=>C.getState()._onSkip(te)})}catch(te){C.setState({status:"error",error:te instanceof Error?te.message:"Replay initialization failed",errorNotFound:!1});return}C.getState()._attachController(O);let ee=O.meta.startTime-N.summary.startedAt;C.setState({offset:ee});let T=C.getState().events.map(te=>te.t-ee).filter(te=>te>=0);T.length&&O.setActivityTimes(T),g?(O.seek(O.meta.totalTime),C.setState({currentTime:O.meta.totalTime})):a!=null&&!w&&!L&&C.getState().seek(a-ee);let ie=new ResizeObserver(()=>O.fit());return ie.observe(H),()=>{ie.disconnect(),C.getState()._detachController()}},[E]),(0,G.useEffect)(()=>{if(!E||g||!w)return;let N=C.getState(),H;w.eventId&&N.events.some(O=>O.id===w.eventId)&&(H=w.eventId),!H&&w.kind&&w.selector&&(H=N.events.find(ee=>ee.type==="custom"&&ee.name===`${w.kind}_click`&&String(ee.props?.selector??"")===w.selector)?.id),!H&&w.kind&&(H=N.markers.find(O=>O.kind===w.kind&&O.ref)?.ref),H?N.select(H):a!=null&&N.seek(N.toRelative(a))},[E]),(0,G.useEffect)(()=>{if(!E||g)return;let N=C.getState();if(!L){N.setClip(null,null,!1);return}let H=J=>J.name,O=N.summary?.startedAt??null,ee=J=>J!=null&&O!=null?J-O:void 0,T=L.fromMs??ee(L.fromUtc);if(T==null&&L.fromEvent){let J=N.events.find(ge=>ge.type==="custom"&&H(ge)===L.fromEvent);J&&(T=J.t)}if(T==null){N.setClip(null,null,!1);return}let ie=L.toMs??ee(L.toUtc);if(ie==null&&L.toEvent){let J=N.events.find(ge=>ge.type==="custom"&&H(ge)===L.toEvent&&ge.t>T);J&&(ie=J.t)}(L.toMs!=null||L.toUtc!=null||L.toEvent!=null)&&ie==null&&console.warn(`[obsrviq] clip end ${L.toEvent?`event "${L.toEvent}"`:"time"} did not resolve \u2014 playing from the start, unbounded.`);let te=N.toRelative(T),ut=ie!=null?N.toRelative(ie):null,ar=ut!=null&&ut>te?ut:null;N.setClip(te,ar,!!L.loop&&ar!=null),N.seek(te);let Wt=C.getState();(Wt._covers?Wt._covers(te):te<=Wt.bufferedMs+1)?N.play():Se.current=!0},[E,L?.fromEvent,L?.toEvent,L?.fromMs,L?.toMs,L?.fromUtc,L?.toUtc,L?.loop]),(0,G.useEffect)(()=>C.subscribe(N=>{N.status==="playing"?Se.current=!0:(N.status==="paused"||N.status==="ended")&&(Se.current=!1)}),[C]),(0,G.useEffect)(()=>C.subscribe((N,H)=>{N.status==="ended"&&H.status!=="ended"&&p?.()}),[C,p]),(0,G.useEffect)(()=>C.subscribe((N,H)=>{N.status==="error"&&H.status!=="error"&&c?.({reason:N.errorNotFound?"not_found":"error",message:N.error??"Could not load the recording."})}),[C,c]),(0,G.useEffect)(()=>{if(g||!E||!C.getState().hasReplay)return;let N=!1,H=j.current,O=be.current,ee=Ie.current.some(K=>K.hasSnapshot),T=K=>{let V=Ie.current,Ce=0;for(let xe=0;xe<V.length&&V[xe].firstT<=K;xe++)Ce=xe;return Ce},ie=K=>{let V=K+C.getState().offset,Ce=T(V);if(!H.has(Ce))return!1;for(let xe=Ce;xe>=0&&H.has(xe);xe--)if(O.has(xe))return!0;return!1},te=K=>{let V=T(K+C.getState().offset),Ce=Ie.current;for(let xe=V+1;xe<Ce.length;xe++)if(!H.has(xe))return!0;return!1};C.getState()._setLoaderProbes(ie,te);let ut=()=>{let K=Ie.current,V=-1;for(;H.has(V+1);)V++;let Ce=V>=0?Math.max(0,K[V].lastT-C.getState().offset):0;C.setState({bufferedMs:Math.max(C.getState().bufferedMs,Ce),loadProgress:K.length?H.size/K.length:1})},ar=()=>{let K=C.getState();if(K.controller){if(K.pendingSeek!=null){if(ie(K.pendingSeek)){let V=K.pendingSeek;K.controller.seek(V),Se.current?(K.controller.play(V),C.setState({pendingSeek:null,currentTime:V,status:"playing"})):C.setState({pendingSeek:null,currentTime:V,status:"paused"})}return}if(K.status==="buffering"){let V=T(K.currentTime+K.offset);if(!H.has(V))return;ao(V)>V?Se.current?(K.controller.play(K.currentTime),C.setState({status:"playing"})):C.setState({status:"paused"}):V>=Ie.current.length-1&&C.setState({status:"ended",currentTime:C.getState().durationMs})}}},Wt=async K=>{try{return await Xp(K,da)}catch{await new Promise(V=>setTimeout(V,250));try{return await Xp(K,da)}catch{return null}}},Mn=6,J=async(K,V)=>{let Ce=Ie.current,xe=Math.max(0,K),oo=Math.min(Ce.length-1,V),Cu=[];for(let Pr=xe;Pr<=oo;Pr++)H.has(Pr)||Cu.push(Pr);for(let Pr=0;Pr<Cu.length&&!N;Pr+=Mn){let Lu=Cu.slice(Pr,Pr+Mn),j0=await Promise.all(Lu.map(ca=>Wt(Ce[ca].url)));if(N)return;let pm=C.getState().controller;if(!pm)return;for(let ca=0;ca<Lu.length;ca++){let ku=Lu[ca],Vs=j0[ca];Vs&&Vs.length?(pm.appendEvents(Vs),Vs.some(V0=>V0.type===2)&&O.add(ku)):console.warn(`[obsrviq] replay chunk seq ${Ce[ku]?.seq} unavailable \u2014 skipping`),H.add(ku)}ut(),ar()}},ge=8,or=async K=>{for(let Ce=K;Ce>=0;Ce--)if(O.has(Ce)){if(ee||K-Ce<=ge)return Ce;break}let V=K;for(;V>=0&&!N;){let Ce=Math.max(0,V-ge+1);await J(Ce,V);for(let xe=V;xe>=Ce;xe--)if(O.has(xe))return xe;if(Ce===0)return 0;V=Ce-1}return 0},ao=K=>{let V=K;for(;H.has(V+1);)V++;return V};return(async()=>{for(;!N&&!C.getState().controller;)await new Promise(K=>setTimeout(K,30));for(;!N;){let K=Ie.current;if(H.size>=K.length)break;let V=C.getState();if(V.pendingSeek!=null&&V.controller){if(!ie(V.pendingSeek)){let xe=T(V.pendingSeek+V.offset),oo=await or(xe);await J(oo,xe)}ar();continue}if((V.status==="playing"||V.status==="buffering")&&!ie(V.currentTime)){let xe=T(V.currentTime+V.offset),oo=await or(xe);await J(oo,xe),ar();continue}let Ce=T(V.currentTime+V.offset);if(H.has(Ce)){let xe=ao(Ce);if(xe<K.length-1){await J(xe+1,xe+1);continue}}await new Promise(xe=>setTimeout(xe,200))}N||ar()})(),()=>{N=!0,C.getState()._setLoaderProbes(null,null)}},[g,E]),(0,G.useEffect)(()=>{if(!g||!E)return;let N=!1,H=async()=>{let ee=C.getState().controller;if(!(!ee||N))try{let T=await qk(e,da,k.current,ke.current);if(N)return;if(k.current=T.maxSeq,T.newRrwebEvents.length){let te=ee.appendEvents(T.newRrwebEvents);C.setState({durationMs:te,bufferedMs:te}),C.getState().following&&(ee.seek(te),C.setState({currentTime:te}))}if(T.newEvents.length){ke.current=T.newEvents.reduce((ut,ar)=>Math.max(ut,ar.t),ke.current);let te=[...C.getState().events,...T.newEvents];C.setState({events:te,markers:Fs(te)})}let ie=T.summary.lastEventAt??0;ie&&Date.now()-ie>4e4&&(C.setState({live:!1,following:!1}),N=!0)}catch{}};H();let O=setInterval(()=>{H()},1e3);return()=>{N=!0,clearInterval(O)}},[g,E]),(0,G.useEffect)(()=>{let N=C.getState().controller;N&&requestAnimationFrame(()=>N.fit())},[ua,Er,C]),(0,G.useEffect)(()=>{let N=_.current;if(!N)return;let H=O=>{let ee=O.target;if(ee&&(ee.tagName==="INPUT"||ee.tagName==="TEXTAREA"||ee.isContentEditable))return;let T=C.getState();if((O.metaKey||O.ctrlKey)&&(O.key==="k"||O.key==="K")){O.preventDefault(),T.openPalette(!T.paletteOpen);return}if(!(O.metaKey||O.ctrlKey))switch(O.key){case" ":case"k":O.preventDefault(),T.toggle();break;case"r":T.restart();break;case"ArrowLeft":O.preventDefault(),T.seek(T.currentTime-1e4);break;case"ArrowRight":O.preventDefault(),T.seek(T.currentTime+1e4);break;case"[":T.jumpEvent(-1);break;case"]":T.jumpEvent(1);break;case",":O.shiftKey?Ws(-1):T.step(-1);break;case".":O.shiftKey?Ws(1):T.step(1);break;case"s":case"S":O.shiftKey?T.setAutoSkim(!T.autoSkim):T.setAutoSkip(!T.autoSkip);break;case"l":case"L":T.setLoop(!T.loop);break;case"f":case"F":um.current&&Su();break;case"c":case"C":h?.(T.currentTime+T.offset);break;case"n":case"N":O.preventDefault(),T.nextProblem(O.shiftKey?-1:1);break;case"e":case"E":{let ie=["all","network","console","error","signal","task","nav"],te=ie.indexOf(T.feedFilter);T.setFeedFilter(ie[(te+1)%ie.length]);break}case"z":case"Z":O.shiftKey?T.zoomStack.length&&T.zoomOutTo(T.zoomStack.length-1):T.selectionRange&&T.zoomTo(T.selectionRange[0],T.selectionRange[1]);break;case"x":case"X":T.toggleSnap();break;case"t":case"T":T.setFocusMode(T.focusMode==="stage"?"balanced":"stage");break;case"d":case"D":T.setFocusMode(T.focusMode==="debug"?"balanced":"debug");break;case"`":Sr(ie=>ie+1),Er==="mid"&&Me(ie=>!ie);break;case">":Ws(1);break;case"<":Ws(-1);break;case"?":it(ie=>!ie);break;case"Escape":T.paletteOpen?T.openPalette(!1):T.selectedEventId?T.select(null):T.zoomStack.length?T.zoomOutTo(T.zoomStack.length-1):Qe?it(!1):X&&Me(!1);break;default:break}};return N.addEventListener("keydown",H),()=>N.removeEventListener("keydown",H)},[Er,Qe,X]);let Ws=(0,G.useCallback)(N=>{let H=C.getState(),O=[.5,1,1.5,2,4,8],ee=O.indexOf(H.speed),T=O[Math.min(O.length-1,Math.max(0,ee+N))]??H.speed;H.setSpeed(T)},[C]),Su=(0,G.useCallback)(()=>{let N=_.current;N&&(document.fullscreenElement?document.exitFullscreen?.().catch(()=>{}):N.requestFullscreen?.().catch(()=>{}))},[]);(0,G.useEffect)(()=>{let N=()=>_n(!!document.fullscreenElement);return document.addEventListener("fullscreenchange",N),()=>document.removeEventListener("fullscreenchange",N)},[]),(0,G.useEffect)(()=>{if(!f)return;let N=-1;return C.subscribe(H=>{H.currentTime!==N&&(N=H.currentTime,f(H.currentTime+H.offset))})},[f,C]),(0,G.useEffect)(()=>{if(Er!=="mid"){Me(!1);return}return C.subscribe((N,H)=>{N.selectedEventId&&N.selectedEventId!==H.selectedEventId&&Me(!0)})},[Er,C]);let cm=x,js=Er==="wide"&&ua!=="stage",fm=ua==="stage"?null:bu,H0=fm!=null?{...cm??{},gridTemplateRows:`48px auto minmax(0, 1fr) ${fm}px`}:cm,W0=js&&me!=null?{gridTemplateColumns:`minmax(0, 1fr) ${me}px`}:void 0;return(0,je.jsxs)("div",{ref:_,className:`lum-root lum lum-pl lum-strata lum-strata--${Er} lum-strata--${ua} ${v?"lum-pl--embedded":""} ${S??""}`,style:H0,"data-breakpoint":Er,"data-focus":ua,tabIndex:0,children:[(0,je.jsx)(rI,{isFullscreen:yt,onFullscreen:Su,allowFullscreen:Hs,sessionId:e,shareUrl:$0,apiBaseUrl:t,onHelp:()=>it(N=>!N),onBack:m,backLabel:b,topbarActions:y}),(0,je.jsx)(iI,{}),(0,je.jsxs)("div",{className:"lum-st-stagerow",ref:lt,style:W0,children:[(0,je.jsx)("div",{className:"lum-st-stagecol",ref:D,children:(0,je.jsx)(lI,{ref:I,onRetry:()=>wr(N=>N+1),overlay:(0,je.jsx)(fI,{stageRef:I})})}),js&&(0,je.jsxs)("div",{className:"lum-st-inspectorcol",children:[(0,je.jsx)("div",{className:"lum-st-resize lum-st-resize--x",role:"separator","aria-orientation":"vertical","aria-label":"Resize inspector width",title:"Drag to resize \xB7 double-click to reset",onPointerDown:U0,onDoubleClick:()=>la(null)}),(0,je.jsx)(a0,{feedFocusKey:br})]})]}),(0,je.jsx)(g_,{breakpoint:Er,isFullscreen:yt,onFullscreen:Su,allowFullscreen:Hs,onResizeStart:ua==="stage"?void 0:q0,onResizeReset:()=>lm(null)}),!js&&(0,je.jsx)(Vc,{open:X,onClose:()=>Me(!1),title:"Inspector",children:(0,je.jsx)(a0,{feedFocusKey:br})}),!js&&!X&&(0,je.jsx)("button",{className:"lum-st-inspectortab",onClick:()=>Me(!0),"aria-label":"Open inspector (`)",children:"Inspector"}),(0,je.jsx)(x_,{}),(0,je.jsx)(y_,{open:Qe,onClose:()=>it(!1)})]})}var N0=F(le(),1);function im({theme:e,className:t,children:r}){let n=typeof e=="string"?e:void 0,a=e&&typeof e=="object"?e:void 0;return(0,N0.jsx)("div",{className:`lum-root lum lum-widget ${t??""}`,"data-lum-theme":n,style:a,children:r})}var ia=F(le(),1);function S_(e,t){return e?{authorization:`Bearer ${e}`}:t?{authorization:`Bearer ${t}`,"x-obsrviq-key":t}:{}}function C_(e,t){let{apiBaseUrl:r,token:n,apiKey:a,userId:o,siteId:s,clip:i}=t,[l,d]=(0,Qr.useState)({sessionId:null,loading:e,error:null,notFound:!1}),u=JSON.stringify([o,s,i?.fromUtc,i?.toUtc,i?.fromEvent,i?.toEvent]);return(0,Qr.useEffect)(()=>{if(!e||!o)return;let p=new AbortController;d({sessionId:null,loading:!0,error:null,notFound:!1});let c=new URLSearchParams({userId:o});s&&c.set("siteId",s),i?.fromUtc!=null&&i?.toUtc!=null?(c.set("fromUtc",String(i.fromUtc)),c.set("toUtc",String(i.toUtc))):i?.fromEvent&&(c.set("fromEvent",i.fromEvent),i.toEvent&&c.set("toEvent",i.toEvent));let f=r.replace(/\/$/,"");return fetch(`${f}/v1/sessions/locate?${c.toString()}`,{headers:S_(n,a),signal:p.signal}).then(async h=>{if(!h.ok){let m=h.status===404;throw Object.assign(new Error(m?"No matching recording for that user.":`Lookup failed (${h.status}).`),{notFound:m})}return h.json()}).then(h=>{p.signal.aborted||d({sessionId:h.sessionId,loading:!1,error:null,notFound:!1})}).catch(h=>{if(p.signal.aborted)return;let m=!!h?.notFound;d({sessionId:null,loading:!1,error:h instanceof Error?h.message:"Lookup failed.",notFound:m})}),()=>p.abort()},[e,u,r]),l}var L_={display:"flex",alignItems:"center",justifyContent:"center",height:"100%",padding:16,textAlign:"center",color:"var(--lum-muted)",fontSize:14};function T0({sessionId:e,userId:t,siteId:r,apiBaseUrl:n,apiKey:a,token:o,theme:s,startAtMs:i,clip:l,defaultMode:d,allowedModes:u,defaultSpeed:p,allowFullscreen:c,shareUrl:f,onEnded:h,onError:m,fallback:b="message",height:g=560}){let x=!e&&!!t,v=C_(x,{apiBaseUrl:n,token:o,apiKey:a,userId:t,siteId:r,clip:l}),[S,y]=(0,Qr.useState)(null),w=e??v.sessionId;(0,Qr.useEffect)(()=>y(null),[w]);let L=(0,Qr.useRef)(null);if((0,Qr.useEffect)(()=>{let C=null;!e&&!t?C={reason:"error",message:"Provide a sessionId or a userId."}:v.error?C={reason:v.notFound?"not_found":"error",message:v.error}:S&&(C=S),C?L.current!==C.message&&(L.current=C.message,m?.(C)):L.current=null},[e,t,v.error,v.notFound,S]),!w){if(b==="hide")return null;let C=!e&&!t?"Provide a sessionId or a userId to play a recording.":x&&v.loading?"Finding the recording\u2026":v.error??"Recording unavailable.";return(0,ia.jsx)(im,{theme:s,className:"lum-widget--replay",children:(0,ia.jsx)("div",{style:{height:g},children:(0,ia.jsx)("div",{style:L_,children:C})})})}return S&&b==="hide"?null:(0,ia.jsx)(im,{theme:s,className:"lum-widget--replay",children:(0,ia.jsx)("div",{style:{height:g},children:(0,ia.jsx)(P0,{sessionId:w,apiBaseUrl:n,apiKey:a,token:o,startAtMs:i,clip:l,defaultMode:d,allowedModes:u,defaultSpeed:p,allowFullscreen:c,shareUrl:f,onEnded:h,onError:C=>y(C),embedded:!0})})})}var A0=`/* Obsrviq design tokens (\xA716) \u2014 refined. Override any --lum-* var to white-label.
|
|
138
|
+
`);i=p.pop()??"";for(let c of p){let f=c.trim();if(!f.startsWith("data:"))continue;let h=f.slice(5).trim();if(h==="[DONE]")return;try{yield JSON.parse(h)}catch{}}}}async function Wk(e,t){let r=t.apiBaseUrl.replace(/\/$/,""),n=await Qr(`${r}/v1/sessions/${e}`,t),a=await Qr(`${r}/v1/sessions/${e}/events`,t);return{detail:n,events:a.items}}async function Yp(e,t){return(await Qr(e,t)).slice().sort((n,a)=>n.timestamp-a.timestamp)}function Vk(e){return e.token?{authorization:`Bearer ${e.token}`}:e.apiKey?{authorization:`Bearer ${e.apiKey}`,"x-obsrviq-key":e.apiKey}:{}}async function Qr(e,t){let r=await fetch(e,{headers:Vk(t)});if(!r.ok)throw Object.assign(new Error(`${r.status} ${r.statusText} (${e})`),{notFound:r.status===404});return await r.json()}async function Gk(e,t,r){let n=t.apiBaseUrl.replace(/\/$/,""),a=await Qr(`${n}/v1/sessions/${e}`,t),o=await Qr(`${n}/v1/sessions/${e}/events`,t),s=[...a.replayChunks].sort((u,p)=>u.seq-p.seq),l=0,d=(await Promise.allSettled(s.map(async u=>{let p=await Qr(u.url,t);return r?.(++l,s.length),p}))).filter(u=>u.status==="fulfilled").flatMap(u=>u.value).sort((u,p)=>u.timestamp-p.timestamp);return{detail:a,events:o.items,rrwebEvents:d}}async function Xk(e,t,r,n){let a=t.apiBaseUrl.replace(/\/$/,""),o=await Qr(`${a}/v1/sessions/${e}`,t),s=o.replayChunks.filter(c=>c.seq>r).sort((c,f)=>c.seq-f.seq),l=r,d=(await Promise.allSettled(s.map(async c=>{let f=await Qr(c.url,t);return c.seq>l&&(l=c.seq),f}))).filter(c=>c.status==="fulfilled").flatMap(c=>c.value).sort((c,f)=>c.timestamp-f.timestamp),p=(await Qr(`${a}/v1/sessions/${e}/events`,t)).items.filter(c=>c.t>n);return{summary:o.summary,newRrwebEvents:d,newEvents:p,maxSeq:l}}var Kk=2e3;function Us(e){let t=[];for(let r of e){let n=null,a="";switch(r.type){case"error":{n="error",a=`${r.name??"Error"}: ${r.message??""}`.slice(0,120);break}case"console":{let o=r;o.level==="error"&&(n="error",a=Qk(o));break}case"network":{let o=r;(o.status===0||o.status>=400||o.timing&&o.timing.duration>Kk)&&(n="network",a=`${o.method} ${o.url} \u2014 ${o.status||"failed"}`.slice(0,120));break}case"custom":{let o=r;if(o.name==="rage_click")n="rage",a=`Rage click ${tb(o)}`;else if(o.name==="dead_click")n="dead",a=`Dead click ${tb(o)}`;else if(o.props&&o.props.conversion===!0)n="conversion",a=`Conversion: ${o.name}`;else if(o.name==="navigation"||o.name==="pageview")n="nav",a="Page change";else{let s=/^(.+):started$/.exec(o.name??""),l=/^(.+):ended$/.exec(o.name??"");s?(n="task",a=`Task: ${o.props?.task??s[1]}`):l&&(n="task",a=`Task ended: ${o.props?.task??l[1]}`)}break}case"ai":{n="ai",a="AI step";break}}n&&t.push({kind:n,t:r.t,label:a,ref:r.id})}return t.sort((r,n)=>r.t-n.t)}function Qk(e){let t=e.args[0];return t?t.kind==="string"?t.value.slice(0,120):t.kind==="error"?`${t.name}: ${t.message}`.slice(0,120):t.kind==="object"?t.preview.slice(0,120):t.kind==="primitive"?String(t.value):"console.error":"console.error"}function tb(e){return e.props?.selector??""}var rb="#6e76f1",Yk=8,Jk=2500,Zk=1200,eI=600,tI=400,nb=250,rI=class{constructor(e,t,r,n){this.root=e,this.cb=n,this.playing=!1,this.raf=0,this.destroyed=!1,this.activityTimes=[],this.extraActivity=[],this.idleGaps=[],this.autoSkim=!1,this.autoSkip=!1,this.skimming=!1,this.replayer=new Xi(t,{root:e,speed:r.speed,skipInactive:!1,showWarning:!1,showDebug:!1,mouseTail:r.showCursor?{strokeStyle:rb}:!1,UNSAFE_replayCanvas:!1});let a=this.replayer.getMetaData();this.meta={startTime:a.startTime,endTime:a.endTime,totalTime:a.totalTime},this.mutationTimes=t.filter(o=>o.type===3).map(o=>o.timestamp-a.startTime).filter(o=>o>=0).sort((o,s)=>o-s),this.userSpeed=r.speed,this.autoSkim=!!r.autoSkim,this.autoSkip=!!r.autoSkip,this.rebuildActivity(),this.replayer.on("finish",()=>{this.playing=!1,this.stopLoop(),this.cb.onFinish()}),this.replayer.on("resize",()=>this.fit()),requestAnimationFrame(()=>this.fit())}appendEvents(e){let t=!1;for(let r of e){try{this.replayer.addEvent(r)}catch{}if(r.timestamp>this.meta.endTime&&(this.meta.endTime=r.timestamp),r.type===3){let n=r.timestamp-this.meta.startTime;n>=0&&(this.mutationTimes.push(n),t=!0)}}return t&&(this.mutationTimes.sort((r,n)=>r-n),this.rebuildActivity()),this.meta.totalTime=Math.max(this.meta.totalTime,this.meta.endTime-this.meta.startTime),this.meta.totalTime}setActivityTimes(e){this.extraActivity=e.filter(t=>t>=0),this.rebuildActivity()}setAutoSkim(e){this.autoSkim=e,e||this.exitSkim()}setAutoSkip(e){this.autoSkip=e}rebuildActivity(){let e=new Set(this.mutationTimes);for(let t of this.extraActivity)e.add(t);this.activityTimes=Array.from(e).sort((t,r)=>t-r),this.recomputeGaps()}recomputeGaps(){let e=this.activityTimes,t=[];for(let r=0;r<e.length-1;r++){let n=e[r],a=e[r+1];a-n>=Jk&&t.push({start:n,end:a})}this.idleGaps=t}idleGapAt(e){for(let t of this.idleGaps)if(e>=t.start&&e<t.end)return t;return null}evaluateSkim(e){if(!this.autoSkim||!this.playing){this.skimming&&this.exitSkim();return}let t=this.idleGapAt(e),r=t!=null&&e-t.start>=Zk&&t.end-e>eI;r&&!this.skimming?this.enterSkim():!r&&this.skimming&&this.exitSkim()}evaluateSkip(e){if(!this.autoSkip||!this.playing)return;let t=this.idleGapAt(e);if(t==null||e-t.start<tI||t.end-e<=nb+50||t.end>this.meta.totalTime)return;let r=t.end-nb,n=Math.max(0,r-e);this.seek(r),this.cb.onSkip?.(n)}enterSkim(){this.skimming=!0,this.replayer.setConfig({speed:Yk}),this.cb.onSkim?.(!0)}exitSkim(){this.skimming&&(this.skimming=!1,this.replayer.setConfig({speed:this.userSpeed}),this.cb.onSkim?.(!1))}fit(){try{let e=this.replayer.iframe,t=this.replayer.wrapper;if(!e||!t)return;let r=Number(e.getAttribute("width"))||e.offsetWidth,n=Number(e.getAttribute("height"))||e.offsetHeight,a=this.root.clientWidth,o=this.root.clientHeight;if(!r||!n||!a||!o)return;let s=Math.min(a/r,o/n,1);t.style.position="absolute",t.style.transformOrigin="top left",t.style.transform=`scale(${s})`,t.style.left=`${Math.max(0,(a-r*s)/2)}px`,t.style.top=`${Math.max(0,(o-n*s)/2)}px`}catch{}}play(e){this.destroyed||(this.replayer.play(e),this.playing=!0,this.cb.onState("playing"),this.startLoop())}pause(e){this.destroyed||(this.exitSkim(),this.replayer.pause(e),this.playing=!1,this.stopLoop(),this.cb.onState("paused"),this.cb.onTime(e??this.currentTime()))}seek(e){this.exitSkim();let t=Math.max(0,Math.min(this.meta.totalTime,e));this.playing?this.replayer.play(t):this.replayer.pause(t),this.cb.onTime(t)}currentTime(){try{return this.replayer.getCurrentTime()}catch{return 0}}setSpeed(e){this.userSpeed=e,this.skimming||this.replayer.setConfig({speed:e})}setShowCursor(e){this.replayer.setConfig({mouseTail:e?{strokeStyle:rb}:!1})}isPlaying(){return this.playing}startLoop(){this.stopLoop();let e=()=>{if(!this.playing||this.destroyed)return;let t=this.currentTime();this.evaluateSkim(t),this.evaluateSkip(t),this.cb.onTime(this.currentTime()),this.raf=requestAnimationFrame(e)};this.raf=requestAnimationFrame(e)}stopLoop(){this.raf&&cancelAnimationFrame(this.raf),this.raf=0}destroy(){this.destroyed=!0,this.exitSkim(),this.stopLoop();try{this.replayer.pause()}catch{}try{let e=this.replayer.wrapper;e?.parentElement?.removeChild(e)}catch{}}};function te(e){let t=Math.max(0,Math.floor(e/1e3)),r=t%60,n=Math.floor(t/60)%60,a=Math.floor(t/3600),o=s=>String(s).padStart(2,"0");return a>0?`${a}:${o(n)}:${o(r)}`:`${n}:${o(r)}`}function pu(e){return e==null?"\u2014":e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function mu(e){return e==null?"\u2014":e<1e3?`${Math.round(e)} ms`:`${(e/1e3).toFixed(2)} s`}function nI(e){let t=Math.max(0,e);if(t<1e3)return`${(t/1e3).toFixed(1)}s`;let r=Math.round(t/1e3);if(r<60)return`${r}s`;let n=Math.floor(r/60),a=r%60;return a?`${n}m ${a}s`:`${n}m`}var aI=[{id:"stage",label:"Watch",key:"T",hint:"Just play and watch \u2014 full-screen replay, slim scrubber"},{id:"balanced",label:"Balanced",key:"",hint:"Replay + timeline + inspector together"},{id:"debug",label:"Debug",key:"D",hint:"Maximize the timeline + inspector for deep debugging"}];function oI(){let e=M(a=>a.focusMode),t=M(a=>a.setFocusMode),r=M(a=>a.allowedModes),n=aI.filter(a=>r.includes(a.id));return n.length<=1?null:(0,$s.jsx)("div",{className:"lum-st-focus",role:"group","aria-label":"Focus mode",children:n.map(a=>(0,$s.jsxs)("button",{className:`lum-st-focus__pill ${e===a.id?"is-active":""}`,"aria-pressed":e===a.id,title:a.key?`${a.hint} (${a.key})`:a.hint,onClick:()=>t(a.id),children:[a.label,a.key&&(0,$s.jsx)("kbd",{className:"lum-st-focus__key",children:a.key})]},a.id))})}async function Cb(e){try{if(navigator.clipboard?.writeText)return await navigator.clipboard.writeText(e),!0}catch{}try{let t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.top="-1000px",t.style.opacity="0",document.body.appendChild(t),t.focus(),t.select();let r=document.execCommand("copy");return document.body.removeChild(t),r}catch{return!1}}var Lb=["clipFrom","clipTo","clipFromMs","clipToMs","clipFromUtc","clipToUtc","clipLoop"];function kb(e){let{sessionId:t,shareUrl:r,apiBaseUrl:n}=e,a=typeof window<"u"?window.location.href:void 0;if(r)try{if(r.includes(":id"))return new URL(r.replace(":id",encodeURIComponent(t)),a);let s=new URL(r,a);return s.pathname=`${s.pathname.replace(/\/+$/,"")}/sessions/${t}`,s}catch{}try{let s=new URL(window.location.href);if(t&&s.pathname.includes(t))return s}catch{}let o;try{o=new URL(n,window.location.href).origin}catch{o=window.location.origin}return new URL(`/sessions/${t}`,o)}function sI({sessionId:e,shareUrl:t,apiBaseUrl:r}){let n=lm(),a=M(d=>d.status),[o,s]=(0,_t.useState)(null),l=(0,_t.useRef)(void 0);(0,_t.useEffect)(()=>()=>clearTimeout(l.current),[]);async function i(){let d=n.getState(),u=Math.max(0,Math.round(d.currentTime+d.offset)),p;try{let c=kb({sessionId:e,shareUrl:t,apiBaseUrl:r});c.searchParams.set("t",String(u)),d.selectedEventId?c.searchParams.set("event",d.selectedEventId):c.searchParams.delete("event");for(let f of["focus","sel","live",...Lb])c.searchParams.delete(f);p=c.toString()}catch{return}await Cb(p)&&(s(te(u)),clearTimeout(l.current),l.current=setTimeout(()=>s(null),2e3))}return(0,H.jsxs)("button",{className:`lum-st-share ${o?"is-copied":""}`,onClick:i,disabled:a==="loading","aria-label":"Copy a link to this exact moment",title:"Copy a link to this exact moment",children:[o?(0,H.jsx)(no,{size:13,"aria-hidden":!0}):(0,H.jsx)(kn,{size:13,"aria-hidden":!0}),(0,H.jsx)("span",{children:o?`Copied @ ${o}`:"Copy link"})]})}function lI({sessionId:e,shareUrl:t,apiBaseUrl:r}){let n=lm(),a=M(b=>b.status),[o,s]=(0,_t.useState)(!1),[l,i]=(0,_t.useState)(null),[d,u]=(0,_t.useState)(null),[p,c]=(0,_t.useState)(!1),[f,h]=(0,_t.useState)(!1),m=(0,_t.useRef)(void 0);(0,_t.useEffect)(()=>()=>clearTimeout(m.current),[]);let y=()=>{let b=n.getState();return Math.max(0,Math.round(b.currentTime+b.offset))},g=l!=null&&d!=null&&d>l;function x(){let b=l,w=d;if(b==null||w==null||w<=b)return;let C=n.getState(),L=C.toRelative(b),k=C.toRelative(w);k<=L||(C.setClip(L,k,p),C.seek(L),C.play())}async function v(){let b=l,w=d;if(b==null||w==null||w<=b)return;let C;try{let L=kb({sessionId:e,shareUrl:t,apiBaseUrl:r});for(let k of["event","t","focus","sel","live",...Lb])L.searchParams.delete(k);L.searchParams.set("clipFromMs",String(b)),L.searchParams.set("clipToMs",String(w)),p&&L.searchParams.set("clipLoop","1"),C=L.toString()}catch{return}await Cb(C)&&(h(!0),clearTimeout(m.current),m.current=setTimeout(()=>h(!1),2e3))}function S(){i(null),u(null),n.getState().setClip(null,null)}return(0,H.jsxs)("div",{className:"lum-st-clipwrap",children:[(0,H.jsxs)("button",{className:`lum-st-clip ${o?"is-open":""}`,onClick:()=>s(b=>!b),disabled:a==="loading","aria-label":"Clip a segment","aria-expanded":o,title:"Clip a segment to play or share",children:[(0,H.jsx)(Ps,{size:13,"aria-hidden":!0}),(0,H.jsx)("span",{children:"Clip"})]}),o&&(0,H.jsxs)("div",{className:"lum-st-clippop",role:"dialog","aria-label":"Clip a segment",children:[(0,H.jsxs)("div",{className:"lum-st-clippop__row",children:[(0,H.jsx)("span",{className:"lum-st-clippop__lbl",children:"Start"}),(0,H.jsx)("span",{className:"lum-st-clippop__val",children:l!=null?te(l):"\u2014"}),(0,H.jsx)("button",{className:"lum-st-clippop__set",onClick:()=>i(y()),children:"Set to playhead"})]}),(0,H.jsxs)("div",{className:"lum-st-clippop__row",children:[(0,H.jsx)("span",{className:"lum-st-clippop__lbl",children:"End"}),(0,H.jsx)("span",{className:"lum-st-clippop__val",children:d!=null?te(d):"\u2014"}),(0,H.jsx)("button",{className:"lum-st-clippop__set",onClick:()=>u(y()),children:"Set to playhead"})]}),(0,H.jsxs)("label",{className:"lum-st-clippop__loop",children:[(0,H.jsx)("input",{type:"checkbox",checked:p,onChange:b=>c(b.target.checked)}),"Loop the clip"]}),(0,H.jsx)("p",{className:"lum-st-clippop__hint",children:"Click a marker (or scrub) to a moment, then capture it."}),(0,H.jsxs)("div",{className:"lum-st-clippop__actions",children:[(0,H.jsxs)("button",{className:"lum-st-clippop__play",disabled:!g,onClick:x,children:[(0,H.jsx)(sa,{size:12,"aria-hidden":!0})," Play clip"]}),(0,H.jsxs)("button",{className:"lum-st-clippop__copy",disabled:!g,onClick:v,children:[f?(0,H.jsx)(no,{size:12,"aria-hidden":!0}):(0,H.jsx)(kn,{size:12,"aria-hidden":!0}),f?"Copied":"Copy clip link"]}),(0,H.jsx)("button",{className:"lum-st-clippop__clear",onClick:S,"aria-label":"Clear clip",children:(0,H.jsx)(la,{size:12,"aria-hidden":!0})})]})]})]})}function iI({isFullscreen:e,onFullscreen:t,allowFullscreen:r=!0,sessionId:n,shareUrl:a,apiBaseUrl:o,onHelp:s,onBack:l,backLabel:i,topbarActions:d}){let u=M(k=>k.summary),p=M(k=>k.durationMs),c=M(k=>k.events),f=M(k=>k.openPalette),h=M(k=>k.status),m=M(k=>k.live),y=M(k=>k.following),g=M(k=>k.setFollowing),x=(0,_t.useMemo)(()=>{let k=0,_=0,N=0,P=0;for(let I of c)if(I.type==="error")k++;else if(I.type==="console"&&I.level==="error")k++;else if(I.type==="network"){let re=I;(re.status>=400||re.status===0)&&_++}else if(I.type==="custom"){let re=I;re.name==="rage_click"&&N++,re.props&&re.props.conversion===!0&&P++}return{errors:k,netFail:_,rage:N,conversions:P}},[c]),v=u?.conversionNames??[],S=v.length?`Conversions: ${v.join(", ")}`:`${x.conversions} conversions`,b=u?.customSignals??[],w=u?.device,C=u?.id??"\u2014",L=h==="loading";return(0,H.jsxs)("header",{className:"lum-st-topbar",children:[(0,H.jsxs)("div",{className:"lum-st-topbar__left",children:[l&&(0,H.jsx)("button",{className:"lum-st-topbar__back lum-iconbtn",onClick:l,"aria-label":i??"Back",title:i??"Back",children:(0,H.jsx)(ea,{size:17})}),(0,H.jsx)("span",{className:"lum-st-logo","aria-hidden":!0,children:"\u25C6"}),(0,H.jsx)("strong",{className:"lum-st-topbar__title",children:"Strata"}),(0,H.jsx)("span",{className:"lum-st-topbar__sep",children:"\xB7"}),(0,H.jsx)("span",{className:"lum-st-topbar__sid lum-mono",title:String(C),children:String(C).slice(0,8)}),w&&(0,H.jsxs)("span",{className:"lum-st-topbar__device lum-muted",children:[w.type,w.browser?` \xB7 ${w.browser}`:""]}),u?.userId&&(0,H.jsxs)("span",{className:"lum-st-topbar__user lum-mono",title:`User: ${u.userId}`,children:[(0,H.jsx)(Fs,{size:12,"aria-hidden":!0})," ",u.userId]}),(0,H.jsx)("span",{className:"lum-st-topbar__clock lum-mono",children:L?"\u2014":te(p)}),m&&(y?(0,H.jsxs)("span",{className:"lum-st-livebadge",title:"Watching live",children:[(0,H.jsx)("span",{className:"lum-st-livebadge__dot","aria-hidden":!0})," LIVE"]}):(0,H.jsxs)("button",{className:"lum-st-livebadge lum-st-livebadge--paused",onClick:()=>g(!0),title:"Jump back to the live edge",children:[(0,H.jsx)("span",{className:"lum-st-livebadge__dot","aria-hidden":!0})," GO LIVE"]}))]}),(0,H.jsxs)("div",{className:"lum-st-topbar__badges","aria-label":"Session triage badges",children:[(0,H.jsxs)("span",{className:`lum-st-badge lum-st-badge--error ${x.errors?"":"is-zero"}`,title:`${x.errors} errors`,children:["\u26A0 ",L?"\u2014":x.errors]}),(0,H.jsxs)("span",{className:`lum-st-badge lum-st-badge--net ${x.netFail?"":"is-zero"}`,title:`${x.netFail} failed requests`,children:["\u25C6 ",L?"\u2014":x.netFail]}),(0,H.jsxs)("span",{className:`lum-st-badge lum-st-badge--rage ${x.rage?"":"is-zero"}`,title:`${x.rage} rage clicks`,children:["\u21AF ",L?"\u2014":x.rage]}),!L&&x.conversions>0&&(0,H.jsxs)("span",{className:"lum-st-badge lum-st-badge--conv",title:S,children:["\u2726 ",v.length===1?v[0]:x.conversions]}),!L&&b.map(k=>(0,H.jsxs)("span",{className:"lum-st-badge lum-st-badge--signal",title:`Custom signal: ${k}`,children:["\u2756 ",k]},k))]}),(0,H.jsxs)("div",{className:"lum-st-topbar__right",children:[d,!m&&(0,H.jsx)(lI,{sessionId:n,shareUrl:a,apiBaseUrl:o}),!m&&(0,H.jsx)(sI,{sessionId:n,shareUrl:a,apiBaseUrl:o}),(0,H.jsxs)("button",{className:"lum-st-cmdk",onClick:()=>f(!0),title:"Command palette (\u2318K)",children:[(0,H.jsx)(bs,{size:13}),(0,H.jsx)("span",{children:"K"})]}),(0,H.jsx)(oI,{}),(0,H.jsx)("button",{className:"lum-iconbtn","aria-label":"Keyboard shortcuts (?)",onClick:s,title:"Shortcuts (?)",children:(0,H.jsx)(Ls,{size:16})}),r&&(0,H.jsx)("button",{className:"lum-iconbtn","aria-label":e?"Exit fullscreen":"Fullscreen",onClick:t,title:"Fullscreen (F)",children:e?(0,H.jsx)(oa,{size:16}):(0,H.jsx)(aa,{size:16})})]})]})}var uI=8e3,dI=2e3;function cI(e){if(!e)return"";try{return new URL(e).pathname||"/"}catch{return e.split("?")[0]??e}}function fI(e){if(e.type==="error"||e.type==="console"&&e.level==="error")return!0;if(e.type==="network"){let t=e;return t.status===0||t.status>=400}if(e.type==="custom"){let t=e;if(t.name==="rage_click"||t.name==="dead_click"||t.props&&t.props.conversion===!0)return!0}return!1}function im(e,t){if(!e.length)return[];let r=[...e].sort((d,u)=>d.t-u.t),n=new Set([0]),a=0;for(let d of r)d.t-a>uI&&n.add(d.t),(d.type==="custom"&&["navigation","pageview"].includes(d.name)||d.type==="perf"&&d.metric==="navigation")&&n.add(d.t),a=d.t;let o=[...n].sort((d,u)=>d-u),s=[...o.slice(1),Math.max(t,a)+1];for(let d=0;d<o.length;d++){let u=o[d],p=s[d],c=r.find(f=>f.t>=u&&f.t<p&&fI(f));c&&c.t-u>dI&&n.add(c.t)}let l=[...n].sort((d,u)=>d-u);l.push(Math.max(t,a)+1);let i=[];for(let d=0;d<l.length-1;d++){let u=l[d],p=l[d+1],c=r.filter(S=>S.t>=u&&S.t<p),f={errors:0,network:0,rage:0,dead:0,conversion:0},h="",m=c.length===0;for(let S of c)if(S.type==="error")f.errors++;else if(S.type==="console"&&S.level==="error")f.errors++;else if(S.type==="network"){f.network++;let b=S;(b.status===0||b.status>=400)&&f.errors++,b.url&&(h=b.url)}else if(S.type==="custom"){let b=S;b.name==="rage_click"?f.rage++:b.name==="dead_click"&&f.dead++,b.props&&b.props.conversion===!0&&f.conversion++}let y,g;d===0?(y="start",g="Session start"):f.conversion>0?(y="conversion",g="Converted"):f.errors>0?(y="error",g="Hit an error"):f.rage>0||f.dead>0?(y="frustration",g="Got stuck"):m?(y="idle",g="Paused"):f.network>3?(y="load",g="Loaded data"):(y="browse",g=h?`Browsed ${cI(h)}`:"Browsing");let x=[];f.errors&&x.push(`${f.errors} error${f.errors>1?"s":""}`),f.rage&&x.push(`${f.rage} rage`),f.network&&x.push(`${f.network} request${f.network>1?"s":""}`);let v=x.join(" \xB7 ")||`${Math.round((p-u)/1e3)}s`;i.push({id:`ch_${d}`,startT:u,endT:p,kind:y,title:g,subtitle:v,counts:f})}return i}function pI(){let e=M(h=>h.events),t=M(h=>h.markers),r=M(h=>h.durationMs),n=M(h=>h.offset),a=M(h=>h.summary),o=M(h=>h.seek),s=M(h=>h.select),l=M(h=>h.toRelative),[i,d]=(0,wu.useState)(!1),{text:u,clauses:p}=(0,wu.useMemo)(()=>{let h=a?.aiStory;if(h&&h.summary)return{text:h.summary,clauses:h.clauses.map(C=>({text:C.text,t:C.t,ref:C.ref}))};if(!e.length)return{text:"",clauses:[]};let m=im(e,r+n),y=[],g=t.find(C=>C.kind==="rage"),x=t.find(C=>C.kind==="error"),v=t.find(C=>C.kind==="network"),S=t.find(C=>C.kind==="conversion"),b=[];x&&(b.push("Hit an error"),y.push({text:`error @ ${te(l(x.t))}`,t:l(x.t),ref:x.ref})),v&&(b.push("a failed request"),y.push({text:`request @ ${te(l(v.t))}`,t:l(v.t),ref:v.ref})),g&&(b.push("rage-clicked while stuck"),y.push({text:`rage @ ${te(l(g.t))}`,t:l(g.t),ref:g.ref})),S&&(b.push("then converted"),y.push({text:`conversion @ ${te(l(S.t))}`,t:l(S.t),ref:S.ref}));let w;if(b.length?w=`This visitor ${b.join(", ")}.`:m.length>1?w=`Calm session: ${m.slice(0,3).map(L=>L.title.toLowerCase()).join(" \u2192 ")}.`:w="",y.length<2)for(let C of m.slice(1,4))y.push({text:`${C.title} ${te(l(C.startT))}`,t:l(C.startT)});return{text:w,clauses:y}},[e,t,r,n,l,a]);if(!u&&!a)return(0,Ot.jsxs)("div",{className:"lum-st-synopsis lum-st-synopsis--empty",children:[(0,Ot.jsx)(tr,{size:13,"aria-hidden":!0})," ",(0,Ot.jsx)("span",{className:"lum-muted",children:"No AI summary for this session."})]});let c=u||"A quiet, uneventful session.",f=c.length>90;return(0,Ot.jsxs)("div",{className:`lum-st-synopsis ${i?"is-expanded":""}`,role:"note","aria-label":"Session synopsis",children:[(0,Ot.jsx)("span",{className:"lum-st-synopsis__icon","aria-hidden":!0,children:(0,Ot.jsx)(tr,{size:13})}),(0,Ot.jsx)("button",{type:"button",className:"lum-st-synopsis__text",title:f?c:void 0,onClick:f?()=>d(h=>!h):void 0,"aria-expanded":f?i:void 0,children:c}),f&&(0,Ot.jsx)("button",{type:"button",className:"lum-st-synopsis__more",onClick:()=>d(h=>!h),"aria-label":i?"Collapse summary":"Read full summary",title:i?"Collapse":"Read full summary",children:i?(0,Ot.jsx)(ws,{size:14}):(0,Ot.jsx)(Zn,{size:14})}),(0,Ot.jsx)("span",{className:"lum-st-synopsis__chips",children:p.map((h,m)=>(0,Ot.jsxs)("button",{className:"lum-st-chip",onClick:()=>{h.ref?s(h.ref):o(h.t)},children:["\u27F6 ",h.text]},m))})]})}var mI=(0,Ib.forwardRef)(function({onRetry:t,overlay:r},n){let a=M(c=>c.status),o=M(c=>c.hasReplay),s=M(c=>c.error),l=M(c=>c.loadProgress),i=M(c=>!!c.controller),d=M(c=>c.isSkimming),u=M(c=>c.isSkipping),p=M(c=>c.lastSkipMs);return(0,Ae.jsxs)("div",{className:"lum-st-monitor",children:[(0,Ae.jsxs)("div",{className:"lum-st-monitor__frame",children:[(0,Ae.jsx)("div",{ref:n,className:"lum-pl-mount lum-st-mount","aria-label":"Session replay",role:"img"}),r,d&&(0,Ae.jsxs)("div",{className:"lum-st-skimbadge","aria-live":"polite",children:[(0,Ae.jsx)(ia,{size:13,"aria-hidden":!0})," Skimming idle \xB7 8\xD7"]}),u&&!d&&(0,Ae.jsxs)("div",{className:"lum-st-skimbadge lum-st-skimbadge--skip","aria-live":"polite",children:[(0,Ae.jsx)(ra,{size:13,"aria-hidden":!0})," Skipped idle (",nI(p),")"]}),(0,Ae.jsx)("div",{className:"lum-st-monitor__edge","aria-hidden":!0})]}),a==="loading"&&(0,Ae.jsx)("div",{className:"lum-pl-overlay",children:(0,Ae.jsxs)("div",{className:"lum-pl-loading",children:[(0,Ae.jsx)(Qc,{width:"70%",height:18}),(0,Ae.jsx)(Qc,{width:"90%",height:120}),(0,Ae.jsx)("div",{className:"lum-pl-progress",children:(0,Ae.jsx)("div",{className:"lum-pl-progress__bar",style:{width:`${Math.round(l*100)}%`}})}),(0,Ae.jsx)("span",{className:"lum-muted",children:"Loading replay\u2026"})]})}),a==="buffering"&&o&&i&&(0,Ae.jsxs)("div",{className:"lum-st-buffering","aria-live":"polite",children:[(0,Ae.jsx)("span",{className:"lum-st-buffering__spinner","aria-hidden":!0}),(0,Ae.jsx)("span",{children:"Buffering\u2026"})]}),a==="error"&&(0,Ae.jsx)("div",{className:"lum-pl-overlay",children:(0,Ae.jsx)(ov,{title:"We couldn't load this replay.",action:t?(0,Ae.jsx)("button",{className:"lum-btn lum-btn--primary lum-btn--sm",onClick:t,children:"Retry"}):void 0,children:s??"View the console and network logs instead."})}),a!=="loading"&&a!=="error"&&!o&&(0,Ae.jsx)("div",{className:"lum-pl-overlay",children:(0,Ae.jsx)(er,{title:"This session wasn't recorded for replay.",icon:(0,Ae.jsx)(Is,{size:28}),children:"You can still review its console and network activity on the timeline."})})]})});function hI(e){try{let t=e.replayer.wrapper;if(!t)return{scale:1,left:0,top:0};let r=t.style.transform||"",n=/scale\(([0-9.]+)\)/.exec(r),a=n?parseFloat(n[1]):1,o=parseFloat(t.style.left||"0")||0,s=parseFloat(t.style.top||"0")||0;return{scale:a,left:o,top:s}}catch{return{scale:1,left:0,top:0}}}function gI(e,t,r,n){if(!e||!t)return{x:0,y:0,ok:!1};let{scale:a,left:o,top:s}=hI(e);return{x:o+r*a,y:s+n*a,ok:!0}}function xI(e){if(!e)return null;let t=e.x??e.clientX??e.pageX,r=e.y??e.clientY??e.pageY;return typeof t=="number"&&typeof r=="number"?{x:t,y:r}:null}function vI({stageRef:e}){let t=M(u=>u.controller),r=M(u=>u.currentTime),n=M(u=>u.events),a=M(u=>u.offset),o=(0,_b.useMemo)(()=>{let u=r+a,p=null,c=700;for(let f of n){let h=Math.abs(f.t-u);h>c||(f.type==="custom"&&f.name==="rage_click"?(p={kind:"rage",props:f.props},c=h):f.type==="error"&&(p={kind:"error"},c=h))}return p},[n,r,a]);if(!o)return null;let s=xI(o.props),l=s?gI(t,e.current,s.x,s.y):null,d=l?.ok?{left:`${l.x}px`,top:`${l.y}px`}:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"};return(0,du.jsx)("div",{className:"lum-st-overlay","aria-hidden":!0,children:(0,du.jsx)("div",{className:`lum-st-callout lum-st-callout--${o.kind}`,style:d,children:(0,du.jsx)("span",{className:"lum-st-callout__ring"})})})}function yI(e){let t=M(n=>n.currentTime),r=-1;for(let n=0;n<e.length&&e[n]<=t+1;n++)r=n;return r}function wI(e,t){let r=(0,bu.useRef)(null);return(0,bu.useEffect)(()=>{if(!t||e<0)return;r.current?.querySelector(`[data-row="${e}"]`)?.scrollIntoView({block:"nearest"})},[e,t]),r}function Mb(e){let t=new Map;for(let n of e){if(n.type!=="ws")continue;let a=n,o=t.get(a.connId);o||(o={connId:a.connId,eventId:a.id,url:a.url??"(unknown)",t:a.t,status:"open",frames:[],bytes:0},t.set(a.connId,o)),a.url&&o.url==="(unknown)"&&(o.url=a.url),o.t=Math.min(o.t,a.t),a.kind==="open"?(o.openT=a.t,o.eventId=a.id,o.protocols=a.protocols):a.kind==="close"?(o.closeT=a.t,o.code=a.code,o.reason=a.reason,o.status!=="error"&&(o.status="closed")):a.kind==="error"?o.status="error":a.kind==="message"&&(o.frames.push({id:a.id,t:a.t,dir:a.dir??"recv",encoding:a.encoding??"text",size:a.size??0,body:a.body}),o.bytes+=a.size??0)}let r=Array.from(t.values());for(let n of r)n.frames.sort((a,o)=>a.t-o.t);return r.sort((n,a)=>n.t-a.t)}function Rb(e){return e.status===0||e.status>=500?"error":e.status>=400?"warn":e.status>=300?"info":"default"}function hu(e){try{let t=new URL(e);return(t.pathname.split("/").pop()||t.hostname)+(t.search?t.search:"")}catch{return e.split("/").pop()||e}}function bI({conn:e,toRelative:t}){let[r,n]=(0,lo.useState)("messages"),a=e.status==="error"?"error":e.status==="closed"?"default":"info";return(0,E.jsxs)("div",{className:"lum-pl-detail",children:[(0,E.jsxs)("div",{className:"lum-pl-detail__head lum-mono",children:[(0,E.jsx)(wn,{tone:a,children:e.status})," WS ",(0,E.jsxs)("span",{className:"lum-muted",children:["@ ",te(t(e.t))]}),(0,E.jsx)("div",{className:"lum-pl-detail__url",children:e.url})]}),(0,E.jsx)("div",{className:"lum-pl-tabs2",children:["messages","info"].map(o=>(0,E.jsx)("button",{className:`lum-pl-tab2 ${r===o?"is-active":""}`,onClick:()=>n(o),children:o==="messages"?`Messages (${e.frames.length})`:"Info"},o))}),r==="info"&&(0,E.jsxs)("div",{className:"lum-pl-kv lum-mono",children:[(0,E.jsx)("h5",{children:"General"}),(0,E.jsx)(jt,{k:"URL",v:e.url}),(0,E.jsx)(jt,{k:"Status",v:e.status}),e.protocols&&e.protocols.length>0&&(0,E.jsx)(jt,{k:"Protocols",v:e.protocols.join(", ")}),e.code!=null&&(0,E.jsx)(jt,{k:"Close code",v:String(e.code)}),e.reason&&(0,E.jsx)(jt,{k:"Close reason",v:e.reason}),(0,E.jsx)(jt,{k:"Frames",v:String(e.frames.length)}),(0,E.jsx)(jt,{k:"Transferred",v:pu(e.bytes)}),e.openT!=null&&(0,E.jsx)(jt,{k:"Opened",v:te(t(e.openT))}),e.closeT!=null&&(0,E.jsx)(jt,{k:"Closed",v:te(t(e.closeT))})]}),r==="messages"&&(e.frames.length===0?(0,E.jsx)("div",{className:"lum-muted",children:"No frames captured."}):(0,E.jsx)("div",{className:"lum-pl-ws-msgs",children:e.frames.map(o=>(0,E.jsx)(SI,{f:o,toRelative:t},o.id))}))]})}function SI({f:e,toRelative:t}){let[r,n]=(0,lo.useState)(!1),a=!!e.body?.preview,o=e.dir==="send";return(0,E.jsxs)("div",{className:`lum-pl-ws-frame lum-pl-ws-frame--${e.dir}`,children:[(0,E.jsxs)("button",{className:"lum-pl-ws-frame__head",onClick:()=>a&&n(s=>!s),disabled:!a,children:[(0,E.jsx)("span",{className:`lum-pl-ws-frame__dir ${o?"is-send":"is-recv"}`,"aria-hidden":!0,children:o?"\u25B2":"\u25BC"}),(0,E.jsx)("span",{className:"lum-pl-ws-frame__time lum-mono lum-muted",children:te(t(e.t))}),(0,E.jsx)("span",{className:"lum-pl-ws-frame__data lum-mono",children:a?CI(e.body.preview):(0,E.jsxs)("em",{className:"lum-muted",children:[e.encoding,e.encoding==="binary"?" frame":" \xB7 payload not captured"]})}),(0,E.jsx)("span",{className:"lum-pl-ws-frame__size lum-mono lum-muted",children:pu(e.size)})]}),r&&a&&(0,E.jsxs)("div",{className:"lum-pl-ws-frame__body",children:[e.body.redacted&&(0,E.jsx)("div",{className:"lum-pl-redacted",children:"Contains redacted fields."}),(0,E.jsx)(LI,{text:e.body.preview,truncated:e.body.truncated})]})]})}function CI(e){let t=e.replace(/\s+/g," ").trim();return t.length>140?t.slice(0,140)+"\u2026":t}function LI({text:e,truncated:t}){let r=e.trim();if(!t&&(r.startsWith("{")||r.startsWith("[")))try{let n=JSON.parse(r);return(0,E.jsx)("div",{className:"lum-jt lum-mono",children:(0,E.jsx)(um,{value:n,depth:0})})}catch{}return(0,E.jsxs)("pre",{className:"lum-pl-json",children:[Eb(e),t?`
|
|
139
|
+
\u2026 (truncated)`:""]})}function kI({n:e,relStart:t}){let[r,n]=(0,lo.useState)("headers"),a=["headers","payload","response","timing"];return(0,E.jsxs)("div",{className:"lum-pl-detail",children:[(0,E.jsxs)("div",{className:"lum-pl-detail__head lum-mono",children:[(0,E.jsx)(wn,{tone:Rb(e),children:e.status||(e.error??"ERR")})," ",e.method," ",(0,E.jsxs)("span",{className:"lum-muted",children:["@ ",te(t)]}),(0,E.jsx)("div",{className:"lum-pl-detail__url",children:e.url})]}),(0,E.jsx)("div",{className:"lum-pl-tabs2",children:a.map(o=>(0,E.jsx)("button",{className:`lum-pl-tab2 ${r===o?"is-active":""}`,onClick:()=>n(o),children:o[0].toUpperCase()+o.slice(1)},o))}),r==="headers"&&(0,E.jsxs)("div",{className:"lum-pl-kv lum-mono",children:[(0,E.jsx)("h5",{children:"General"}),(0,E.jsx)(jt,{k:"URL",v:e.url}),(0,E.jsx)(jt,{k:"Method",v:e.method}),(0,E.jsx)(jt,{k:"Status",v:String(e.status)}),(0,E.jsx)(jt,{k:"Initiator",v:e.initiator}),(0,E.jsx)("h5",{children:"Request headers"}),ab(e.requestHeaders),(0,E.jsx)("h5",{children:"Response headers"}),ab(e.responseHeaders)]}),r==="payload"&&(0,E.jsx)(ob,{label:"Request body",body:e.requestBody}),r==="response"&&(0,E.jsx)(ob,{label:"Response",body:e.responseBody}),r==="timing"&&(0,E.jsx)(_I,{n:e})]})}function jt({k:e,v:t}){return(0,E.jsxs)("div",{className:"lum-pl-kv__row",children:[(0,E.jsx)("span",{className:"lum-muted",children:e}),(0,E.jsx)("span",{className:"lum-pl-kv__val",children:t})]})}function ab(e){return!e||Object.keys(e).length===0?(0,E.jsx)("div",{className:"lum-muted",children:"None captured."}):(0,E.jsx)(E.Fragment,{children:Object.entries(e).map(([t,r])=>(0,E.jsxs)("div",{className:"lum-pl-kv__row",children:[(0,E.jsx)("span",{className:"lum-muted",children:t}),(0,E.jsx)("span",{className:"lum-pl-kv__val",children:r==="redacted"?(0,E.jsx)("em",{className:"lum-pl-redacted",children:"redacted"}):r})]},t))})}function ob({label:e,body:t}){let[r,n]=(0,lo.useState)(!1);if(!t)return(0,E.jsx)("div",{className:"lum-muted",children:"Bodies aren't captured by default (privacy). Enable captureNetworkBodies to see them."});let a,o=!1,s=(t.preview??"").trim();if(!t.truncated&&(s.startsWith("{")||s.startsWith("[")))try{a=JSON.parse(s),o=!0}catch{}return(0,E.jsxs)("div",{children:[(0,E.jsxs)("div",{className:"lum-pl-body__head",children:[(0,E.jsxs)("h5",{children:[e,t.contentType?` \xB7 ${t.contentType}`:""]}),o&&(0,E.jsxs)("div",{className:"lum-pl-seg",children:[(0,E.jsx)("button",{className:`lum-pl-seg__btn ${r?"":"is-active"}`,onClick:()=>n(!1),children:"Parsed"}),(0,E.jsx)("button",{className:`lum-pl-seg__btn ${r?"is-active":""}`,onClick:()=>n(!0),children:"Raw"})]})]}),t.redacted&&(0,E.jsx)("div",{className:"lum-pl-redacted",children:"Contains redacted fields."}),o&&!r?(0,E.jsx)("div",{className:"lum-jt lum-mono",children:(0,E.jsx)(um,{value:a,depth:0})}):(0,E.jsxs)("pre",{className:"lum-pl-json",children:[Eb(t.preview),t.truncated?`
|
|
140
|
+
\u2026 (truncated)`:""]})]})}function um({nodeKey:e,value:t,depth:r}){let n=t!==null&&typeof t=="object",[a,o]=(0,lo.useState)(r<1),s={paddingLeft:r*14};if(!n)return(0,E.jsxs)("div",{className:"lum-jt__row",style:s,children:[(0,E.jsx)("span",{className:"lum-jt__caret"}),e!=null&&(0,E.jsxs)("span",{className:"lum-jt__key",children:[e,":"]}),(0,E.jsx)(II,{v:t})]});let l=Array.isArray(t),i=l?t.map((u,p)=>[String(p),u]):Object.entries(t),d=l?`[ ${i.length} ${i.length===1?"item":"items"} ]`:`{ ${i.length} ${i.length===1?"key":"keys"} }`;return(0,E.jsxs)("div",{children:[(0,E.jsxs)("div",{className:"lum-jt__row lum-jt__branch",style:s,onClick:()=>o(u=>!u),children:[(0,E.jsx)("span",{className:"lum-jt__caret",children:a?"\u25BE":"\u25B8"}),e!=null&&(0,E.jsxs)("span",{className:"lum-jt__key",children:[e,":"]}),a?(0,E.jsx)("span",{className:"lum-jt__punc",children:l?"[":"{"}):(0,E.jsx)("span",{className:"lum-jt__preview",children:d})]}),a&&(0,E.jsxs)(E.Fragment,{children:[i.map(([u,p])=>(0,E.jsx)(um,{nodeKey:l?void 0:u,value:p,depth:r+1},u)),(0,E.jsxs)("div",{className:"lum-jt__row",style:s,children:[(0,E.jsx)("span",{className:"lum-jt__caret"}),(0,E.jsx)("span",{className:"lum-jt__punc",children:l?"]":"}"})]})]})]})}function II({v:e}){return e===null?(0,E.jsx)("span",{className:"lum-jt__null",children:"null"}):typeof e=="string"?(0,E.jsxs)("span",{className:"lum-jt__str",children:['"',e,'"']}):typeof e=="number"?(0,E.jsx)("span",{className:"lum-jt__num",children:String(e)}):typeof e=="boolean"?(0,E.jsx)("span",{className:"lum-jt__bool",children:String(e)}):(0,E.jsx)("span",{children:String(e)})}function _I({n:e}){let t=e.timing,r=[["DNS",t.dns,"DNS lookup \u2014 resolving the hostname to an IP address. Happens only on the first request to a host; shows \u201C\u2014\u201D when the connection is reused (keep-alive)."],["TCP",t.tcp,"TCP handshake \u2014 opening the network connection. Happens only on the first request to a host; \u201C\u2014\u201D when the connection is reused."],["TLS",t.tls,"TLS handshake \u2014 negotiating the secure HTTPS connection. Happens only on the first request to a host; \u201C\u2014\u201D when the connection is reused."],["TTFB",t.ttfb,"Time to First Byte \u2014 from the request being sent to the first response byte arriving (server processing + network round-trip)."],["Download",t.download,"Download \u2014 receiving the response body, from the first byte to the last."]],n=t.duration||1;return(0,E.jsxs)("div",{className:"lum-pl-timing",children:[r.map(([a,o,s])=>(0,E.jsxs)("div",{className:"lum-pl-timing__row",children:[(0,E.jsxs)("span",{className:"lum-muted lum-pl-timing__label",children:[(0,E.jsx)(Xc,{content:s,children:(0,E.jsx)(na,{size:12,className:"lum-pl-timing__i","aria-label":`${a}: ${s}`})}),a]}),(0,E.jsx)("div",{className:"lum-pl-timing__bar",children:(0,E.jsx)("span",{style:{width:`${Math.min(100,(o??0)/n*100)}%`}})}),(0,E.jsx)("span",{className:"lum-mono",children:mu(o)})]},a)),(0,E.jsxs)("div",{className:"lum-pl-timing__row",children:[(0,E.jsx)("span",{className:"lum-muted",children:"Total"}),(0,E.jsx)("div",{}),(0,E.jsx)("span",{className:"lum-mono",children:mu(t.duration)})]})]})}function Eb(e){if(!e)return"";try{return JSON.stringify(JSON.parse(e),null,2)}catch{return e}}function MI({ev:e}){let t=M(l=>l.events),r=M(l=>l.rewindToCause),n=M(l=>l.selectAndSeek),a=M(l=>l.toRelative),o=(0,Nb.useMemo)(()=>{let l=null;for(let i of t)i.t>e.t||i.t<e.t-4e3||(i.type==="network"||i.type==="custom"&&["rage_click","dead_click","click"].includes(i.name??""))&&(!l||i.t>l.t)&&(l=i);return l},[t,e]),s=l=>{if(l.type==="network"){let d=l;return`${d.method} ${d.url} \xB7 ${d.status||"failed"}`}let i=l;return`${i.name??"interaction"} ${i.props?.selector??""}`};return(0,tt.jsxs)("div",{className:"lum-pl-detail lum-st-inspbody",children:[(0,tt.jsxs)("div",{className:"lum-pl-detail__head",children:[(0,tt.jsx)(wn,{tone:"error",children:e.name})," ",(0,tt.jsxs)("span",{className:"lum-muted lum-mono",children:["@ ",te(a(e.t))]}),(0,tt.jsx)("div",{className:"lum-st-err__msg lum-mono",children:e.message})]}),(0,tt.jsxs)("div",{className:"lum-st-inspactions",children:[(0,tt.jsxs)("button",{className:"lum-btn lum-btn--primary lum-btn--sm",onClick:()=>r(e.id),children:[(0,tt.jsx)(Es,{size:13})," Rewind 5s"]}),o&&(0,tt.jsxs)("button",{className:"lum-btn lum-btn--ghost lum-btn--sm",onClick:()=>n(o.id),children:[(0,tt.jsx)(kn,{size:13})," Likely cause"]})]}),o&&(0,tt.jsxs)("div",{className:"lum-st-cause lum-mono",children:[(0,tt.jsx)("span",{className:"lum-muted",children:"caused by \u2192"})," ",s(o)," ",(0,tt.jsxs)("span",{className:"lum-muted",children:["@ ",te(a(o.t))]})]}),(0,tt.jsx)("h5",{className:"lum-st-detail__h",children:"Stack trace"}),e.stack?(0,tt.jsx)("pre",{className:"lum-pl-stack",children:e.stack}):(0,tt.jsx)("div",{className:"lum-muted",children:"No stack captured."}),e.source?.url&&(0,tt.jsxs)("div",{className:"lum-st-err__src lum-muted lum-mono",children:[e.source.url,":",e.source.line??""]})]})}var RI={error:{color:"var(--lum-error)",glyph:"\u2715"},warn:{color:"var(--lum-warn)",glyph:"\u26A0"},info:{color:"var(--lum-info)",glyph:"\u2139"},log:{color:"var(--lum-muted)",glyph:"\u203A"},debug:{color:"var(--lum-muted)",glyph:"\xB7"}};function EI({ev:e}){let[t,r]=(0,Pb.useState)(!1),n=RI[e.level];return(0,Qe.jsxs)("div",{className:`lum-pl-row lum-pl-row--console lum-pl-row--${e.level}`,style:{borderBottom:"none"},children:[(0,Qe.jsx)("span",{className:"lum-pl-row__lvl",style:{color:n.color},"aria-hidden":!0,children:n.glyph}),(0,Qe.jsx)("span",{}),(0,Qe.jsxs)("div",{className:"lum-pl-row__msg lum-mono",children:[e.args.map((a,o)=>(0,Qe.jsx)(NI,{arg:a,expanded:t,onToggle:()=>r(s=>!s),search:""},o)),e.level==="error"&&e.stack&&(0,Qe.jsx)("pre",{className:"lum-pl-stack",children:e.stack})]}),e.source?.url&&(0,Qe.jsxs)("span",{className:"lum-pl-row__src lum-muted",title:e.source.url,children:[TI(e.source.url),":",e.source.line]})]})}function NI({arg:e,expanded:t,onToggle:r,search:n}){switch(e.kind){case"primitive":return(0,Qe.jsxs)("span",{className:"lum-pl-arg lum-pl-arg--prim",children:[String(e.value)," "]});case"string":return(0,Qe.jsxs)("span",{className:"lum-pl-arg",children:[AI(e.value,n),e.truncated?"\u2026":""," "]});case"error":return(0,Qe.jsxs)("span",{className:"lum-pl-arg lum-pl-arg--err",children:[e.name,": ",e.message," "]});case"dom":return(0,Qe.jsxs)("span",{className:"lum-pl-arg lum-pl-arg--dom",children:[e.selector," "]});case"object":return(0,Qe.jsxs)("span",{className:"lum-pl-arg lum-pl-arg--obj",children:[(0,Qe.jsxs)("button",{className:"lum-pl-arg__toggle",onClick:r,children:[t?"\u25BE":"\u25B8"," ",e.preview]}),t&&e.json&&(0,Qe.jsx)("pre",{className:"lum-pl-json",children:PI(e.json)})," "]});default:return null}}function PI(e){try{return JSON.stringify(JSON.parse(e),null,2)}catch{return e}}function TI(e){try{return new URL(e).pathname.split("/").pop()||e}catch{return e.split("/").pop()||e}}function AI(e,t){if(!t)return e;let r=e.toLowerCase().indexOf(t.toLowerCase());return r<0?e:(0,Qe.jsxs)(Qe.Fragment,{children:[e.slice(0,r),(0,Qe.jsx)("mark",{className:"lum-pl-mark",children:e.slice(r,r+t.length)}),e.slice(r+t.length)]})}function DI({ev:e}){let t=M(n=>n.toRelative),r=e.level==="error"?"error":e.level==="warn"?"warn":"info";return(0,In.jsxs)("div",{className:"lum-pl-detail lum-st-inspbody",children:[(0,In.jsxs)("div",{className:"lum-pl-detail__head",children:[(0,In.jsx)(wn,{tone:r,children:e.level})," ",(0,In.jsxs)("span",{className:"lum-muted lum-mono",children:["@ ",te(t(e.t))]})]}),(0,In.jsx)(EI,{ev:e}),e.source?.url&&(0,In.jsxs)("div",{className:"lum-st-err__src lum-muted lum-mono",children:[e.source.url,":",e.source.line??""]})]})}function OI(){let e=M(a=>a.controller),t=M(a=>a.currentTime),[r,n]=(0,Su.useState)("");return(0,Su.useEffect)(()=>{let o=e?.replayer.iframe?.contentDocument;if(!o?.body){n("");return}n(Tb(o.body,0).slice(0,2e4))},[e,t]),e?(0,qs.jsx)("div",{className:"lum-pl-panel lum-pl-rows",children:(0,qs.jsx)("pre",{className:"lum-pl-inspector lum-mono",children:r||"Reading DOM\u2026"})}):(0,qs.jsx)(er,{title:"No replay",children:"The DOM inspector needs replay data."})}function Tb(e,t){if(t>6)return"";let r=" ".repeat(t),n=e.tagName.toLowerCase(),a=e.id?`#${e.id}`:"",o=e.className&&typeof e.className=="string"?"."+e.className.trim().split(/\s+/).slice(0,2).join("."):"",s=`${r}<${n}${a}${o}>
|
|
141
|
+
`,l=Array.from(e.children).slice(0,30);for(let i of l)s+=Tb(i,t+1);return s}function FI(){return(0,qs.jsx)(er,{title:"State capture is off for this site",children:"Enable the framework-state plugin (Redux / Zustand / Pinia) to see state snapshots on the same clock."})}function BI(){return(0,rm.jsx)("div",{className:"lum-st-inspbody",children:(0,rm.jsx)(OI,{})})}function zI(){return(0,nm.jsx)("div",{className:"lum-st-inspbody",children:(0,nm.jsx)(FI,{})})}var Ab=/^(.+):(started|ended)$/;function UI(e){return Ab.test(e)}function qI(e){let t=new Map,r=[];for(let n of e){if(n.type!=="custom")continue;let a=n,o=a.props??{};if(o.conversion===!0)continue;let s=Ab.exec(a.name);if(!s)continue;let l=typeof o.task=="string"&&o.task?o.task:s[1],i=o.spanId!=null?String(o.spanId):`${l}@${n.t}`,d=t.get(i);d||(d={spanId:i,task:l},t.set(i,d),r.push(i)),s[2]==="started"?(d.startT=n.t,d.startEvent=a):(d.endT=n.t,d.endEvent=a)}return r.map(n=>t.get(n))}function $I(e){let t=e.startT!=null,r=e.endT!=null,n=t?e.startT:e.endT??0,a=t&&r?Math.max(0,e.endT-e.startT):void 0,o=e.startEvent??e.endEvent,s=a!=null?mu(a):t?"running\u2026":"ended (no start)";return{id:o.id,t:n,kind:"task",lane:"task",severity:"info",title:e.task,subtitle:s,durationMs:a,spanId:e.spanId,running:t&&!r,raw:o}}function HI(e){let t=e.args[0];return t?t.kind==="string"?t.value:t.kind==="error"?`${t.name}: ${t.message}`:t.kind==="object"?t.preview:t.kind==="primitive"?String(t.value):t.kind==="dom"?t.selector:`console.${e.level}`:`console.${e.level}`}function Jp(e){try{let t=new URL(e);return(t.pathname.split("/").pop()||t.hostname)+(t.search?t.search:"")}catch{return e.split("/").pop()||e}}var jI=new Set(["_tag","identify","metadata","_click","_scroll"]);function dm(e){let t=[];for(let r of qI(e))t.push($I(r));for(let r of e)switch(r.type){case"console":{let n=r,a=n.level==="error"?"error":n.level==="warn"?"warn":n.level==="info"?"info":"muted";t.push({id:r.id,t:r.t,kind:"console",lane:"console",severity:a,title:HI(n),subtitle:n.source?.url?`${Jp(n.source.url)}:${n.source.line??""}`:void 0,raw:r});break}case"network":{let n=r,a=n.status===0||n.status>=400,o=n.timing?.duration>2e3;t.push({id:r.id,t:r.t,kind:"network",lane:"network",severity:a?"error":o?"warn":n.ok?"ok":"muted",title:`${n.method} ${Jp(n.url)}`,subtitle:`${n.status||n.error||"failed"} \xB7 ${Math.round(n.timing?.duration??0)}ms`,durationMs:n.timing?.duration,raw:r});break}case"error":{let n=r;t.push({id:r.id,t:r.t,kind:"error",lane:"error",severity:"error",title:`${n.name}: ${n.message}`,subtitle:n.source?.url?`${Jp(n.source.url)}:${n.source.line??""}`:void 0,raw:r});break}case"perf":{let n=r;if(n.rating!=="poor")break;t.push({id:r.id,t:r.t,kind:"perf",lane:"console",severity:"warn",title:`${n.metric} ${Math.round(n.value)}${n.metric==="CLS"?"":"ms"}`,subtitle:"poor",raw:r});break}case"custom":{let n=r;if(!!!(n.props&&n.props.conversion===!0)&&(UI(n.name)||jI.has(n.name)))break;n.name==="rage_click"?t.push({id:r.id,t:r.t,kind:"rage",lane:"interaction",severity:"warn",title:"Rage click",subtitle:sb(n),raw:r}):n.name==="dead_click"?t.push({id:r.id,t:r.t,kind:"dead",lane:"interaction",severity:"muted",title:"Dead click",subtitle:sb(n),raw:r}):n.name==="navigation"||n.name==="pageview"?t.push({id:r.id,t:r.t,kind:"nav",lane:"nav",severity:"info",title:"Page change",raw:r}):n.props&&n.props.conversion===!0?t.push({id:r.id,t:r.t,kind:"conversion",lane:"interaction",severity:"ok",title:`Conversion: ${n.name}`,raw:r}):t.push({id:r.id,t:r.t,kind:"custom",lane:"interaction",severity:"muted",title:n.name,raw:r});break}default:break}return t.sort((r,n)=>r.t-n.t)}function sb(e){return e.props?.selector??""}function WI(e,t,r){let n=e[e.length-1];return n||[t,r]}function am(e,t,r){let[n,a]=t,o=a-n;return o<=0?0:(e-n)/o*r}function Db(e,t,r){let[n,a]=t,o=a-n;return r<=0?n:n+e/r*o}function gu(e,t){let[r,n]=t,a=n-r;return a<=0?0:Math.max(0,Math.min(1,(e-r)/a))}function VI(e,t,r,n,a,o=200){let[s,l]=e,i=l-s,d=Math.max(o,Math.min(a-n,i*r)),u=i>0?(t-s)/i:.5,p=t-u*d,c=p+d;return p<n&&(p=n,c=p+d),c>a&&(c=a,p=c-d),p=Math.max(n,p),c=Math.min(a,c),c-p>=a-n-1?null:[p,c]}function GI(){let e=(0,Rn.useRef)(null),[t,r]=(0,Rn.useState)(0);return(0,Rn.useEffect)(()=>{let n=e.current;if(!n)return;let a=new ResizeObserver(()=>r(n.clientWidth));return a.observe(n),r(n.clientWidth),()=>a.disconnect()},[]),{ref:e,width:t}}function Ob(){let e=M(n=>n.offset),t=M(n=>n.durationMs),r=M(n=>n.zoomStack);return(0,Rn.useMemo)(()=>WI(r,e,e+t),[r,e,t])}var lb=28,Zp=150,XI=6e4;function ib(e){return e.closeT??(e.frames.length?e.frames[e.frames.length-1].t:e.openT??e.t)}function KI(e){return e.status==="error"?"error":e.status==="closed"?"default":"info"}function QI(e){let t=e.timing.duration||0,{dns:r=0,tcp:n=0,tls:a=0,ttfb:o=0,download:s=0}=e.timing,l=r+n+a+o+s;return t<=0||l<=0?[{cls:"tone",ms:Math.max(t,1)}]:[{cls:"blocked",ms:Math.max(0,t-l)},{cls:"dns",ms:r},{cls:"connect",ms:n},{cls:"ssl",ms:a},{cls:"wait",ms:o},{cls:"download",ms:s}].filter(d=>d.ms>0)}function YI(e){let t=Math.max(1e3,e),r=Math.pow(10,Math.floor(Math.log10(t/1e3))),n=t/1e3/r;return(n>=5?5:n>=2?2:1)*r*1e3}function JI(){let e=M(k=>k.events),t=M(k=>k.offset),r=M(k=>k.toRelative),n=M(k=>k.selectAndSeek),a=M(k=>k.selectedEventId),o=M(k=>k.zoomStack),s=Ob(),l=(0,Xe.useRef)(null),i=(0,Xe.useRef)(null),[d,u]=(0,Xe.useState)(600),p=(0,Xe.useCallback)(k=>{if(i.current?.disconnect(),i.current=null,l.current=k,!k)return;let _=()=>u(Math.max(120,k.clientWidth-Zp));_();let N=new ResizeObserver(_);N.observe(k),i.current=N},[]),c=(0,Xe.useMemo)(()=>e.filter(k=>k.type==="network").slice().sort((k,_)=>k.t-_.t),[e]),f=(0,Xe.useMemo)(()=>Mb(e),[e]),h=(0,Xe.useMemo)(()=>{if(!c.length&&!f.length)return null;let k=1/0,_=-1/0;for(let N of c){let P=r(N.t),I=P+(N.timing.duration||0);P<k&&(k=P),I>_&&(_=I)}for(let N of f){let P=r(N.openT??N.t),I=r(ib(N));P<k&&(k=P),I>_&&(_=I)}return[k,Math.max(k+1,_)]},[c,f,r]),m=o.length>0,y=m?s[0]-t:h?.[0]??0,g=m?Math.max(1,s[1]-s[0]):Math.max(1,(h?.[1]??1)-(h?.[0]??0))*1.02,x=m?g:Math.min(g,XI),v=d/x,S=g*v,b=S>d+1,w=(0,Xe.useMemo)(()=>{let k=c.map(N=>{let P=r(N.t),I=P+(N.timing.duration||0);return{kind:"http",id:N.id,n:N,start:P,end:I,tone:Rb(N),leftPx:(P-y)*v,widthPx:Math.max((I-P)*v,2)}}),_=f.map(N=>{let P=r(N.openT??N.t),I=r(ib(N));return{kind:"ws",id:N.eventId,conn:N,start:P,end:I,tone:KI(N),leftPx:(P-y)*v,widthPx:Math.max((I-P)*v,2)}});return[...k,..._].sort((N,P)=>N.start-P.start)},[c,f,r,y,v]),C=c.filter(k=>k.status===0||k.status>=400).length+f.filter(k=>k.status==="error").length,L=c.reduce((k,_)=>k+(_.responseSize??0),0)+f.reduce((k,_)=>k+_.bytes,0);return!c.length&&!f.length?(0,oe.jsx)(er,{title:"No network activity",children:"Nothing matched this filter."}):(0,oe.jsxs)("div",{className:"lum-wf",children:[(0,oe.jsxs)("div",{className:"lum-wf__toolbar lum-mono lum-muted",children:[c.length," requests",f.length?` \xB7 ${f.length} ws`:""," \xB7 ",pu(L)," \xB7 ",C," failed",b&&(0,oe.jsxs)("span",{className:"lum-wf__hint",children:[" \xB7 ",Math.round(x/1e3),"s window \xB7 scroll \u2192"]})]}),(0,oe.jsx)("div",{className:"lum-wf__scroll",ref:p,children:(0,oe.jsxs)("div",{className:"lum-wf__grid",style:{width:Zp+S},children:[(0,oe.jsx)(ZI,{scrollRef:l,t0:y,pxPerMs:v,windowMs:x,vpTrackW:d,trackW:S}),(0,oe.jsxs)("div",{className:"lum-wf__rows",children:[w.map((k,_)=>(0,oe.jsx)("div",{"data-row":_,className:`lum-wf__row lum-wf__row--${k.tone} ${k.id===a?"is-selected":""}`,style:{width:Zp+S},onClick:()=>n(k.id),title:k.kind==="http"?k.n.url:k.conn.url,children:k.kind==="http"?(0,oe.jsxs)(oe.Fragment,{children:[(0,oe.jsxs)("div",{className:"lum-wf__label lum-mono",children:[(0,oe.jsx)("span",{className:`lum-wf__dot lum-wf__dot--${k.tone}`,"aria-hidden":!0}),(0,oe.jsx)("span",{className:"lum-wf__name",children:hu(k.n.url)}),(0,oe.jsx)("span",{className:"lum-wf__method lum-muted",children:k.n.method}),(0,oe.jsx)("span",{className:"lum-wf__time lum-muted",children:mu(k.n.timing.duration)})]}),(0,oe.jsx)("div",{className:"lum-wf__track",style:{width:S},children:(0,oe.jsx)("span",{className:`lum-wf__bar lum-wf__bar--${k.tone}`,style:{left:k.leftPx,width:k.widthPx},children:QI(k.n).map((N,P)=>(0,oe.jsx)("span",{className:`lum-wf__seg lum-wf__seg--${N.cls}`,style:{flexGrow:N.ms}},P))})})]}):(0,oe.jsxs)(oe.Fragment,{children:[(0,oe.jsxs)("div",{className:"lum-wf__label lum-mono",children:[(0,oe.jsx)("span",{className:`lum-wf__dot lum-wf__dot--${k.tone}`,"aria-hidden":!0}),(0,oe.jsx)("span",{className:"lum-wf__name",children:hu(k.conn.url)}),(0,oe.jsx)("span",{className:"lum-wf__method lum-muted",children:"WS"}),(0,oe.jsxs)("span",{className:"lum-wf__time lum-muted",children:[k.conn.frames.length,"f"]})]}),(0,oe.jsxs)("div",{className:"lum-wf__track",style:{width:S},children:[(0,oe.jsx)("span",{className:`lum-wf__bar lum-wf__bar--ws lum-wf__bar--${k.tone}`,style:{left:k.leftPx,width:k.widthPx}}),k.conn.frames.map(N=>(0,oe.jsx)("span",{className:`lum-wf__wsframe lum-wf__wsframe--${N.dir}`,style:{left:(r(N.t)-y)*v},title:`${N.dir} \xB7 ${pu(N.size)}`},N.id))]})]})},k.id)),(0,oe.jsx)(e_,{bars:w,t0:y,pxPerMs:v,vpTrackW:d,scrollRef:l})]})]})})]})}function ZI({scrollRef:e,t0:t,pxPerMs:r,windowMs:n,vpTrackW:a,trackW:o}){let[s,l]=(0,Xe.useState)(0);(0,Xe.useEffect)(()=>{let d=e.current;if(!d)return;let u=()=>l(d.scrollLeft);return d.addEventListener("scroll",u,{passive:!0}),u(),()=>d.removeEventListener("scroll",u)},[e]);let i=(0,Xe.useMemo)(()=>{let d=YI(n/6),u=s/r,p=(s+a)/r,c=[],f=Math.max(0,Math.floor(u/d)*d);for(let h=f;h<=p+d;h+=d)c.push({leftPx:h*r,label:te(t+h)});return c},[n,s,r,a,t]);return(0,oe.jsxs)("div",{className:"lum-wf__ruler","aria-hidden":!0,children:[(0,oe.jsx)("div",{className:"lum-wf__rulerspacer"}),(0,oe.jsx)("div",{className:"lum-wf__rulertrack",style:{width:o},children:i.map((d,u)=>(0,oe.jsx)("span",{className:"lum-wf__tick",style:{left:d.leftPx},children:d.label},u))})]})}function e_({bars:e,t0:t,pxPerMs:r,vpTrackW:n,scrollRef:a}){let o=M(c=>c.currentTime),s=M(c=>c.status),l=(0,Xe.useRef)(-1),i=(0,Xe.useRef)(0);(0,Xe.useEffect)(()=>{let c=a.current;if(!c)return;let f=()=>{i.current=performance.now()+1500};return c.addEventListener("wheel",f,{passive:!0}),c.addEventListener("pointerdown",f,{passive:!0}),()=>{c.removeEventListener("wheel",f),c.removeEventListener("pointerdown",f)}},[a]);let d=(o-t)*r,u=[],p=-1;for(let c=0;c<e.length;c++){let f=e[c];f.start<=o+1&&(p=c),o>=f.start&&o<=f.end+1&&u.push(c)}return(0,Xe.useEffect)(()=>{s!=="playing"||p<0||p===l.current||(l.current=p,a.current?.querySelector(`[data-row="${p}"]`)?.scrollIntoView({block:"nearest",inline:"nearest"}))},[p,s,a]),(0,Xe.useEffect)(()=>{let c=a.current;if(!c||s!=="playing"||performance.now()<i.current)return;let f=c.scrollLeft;if(d<f+.1*n||d>f+.9*n){let h=Math.max(0,c.scrollWidth-c.clientWidth);c.scrollLeft=Math.max(0,Math.min(h,d-.25*n))}},[d,s,n,a]),(0,oe.jsxs)("div",{className:"lum-wf__cursor",style:{height:e.length*lb},"aria-hidden":!0,children:[u.map(c=>{let f=e[c];return(0,oe.jsx)("div",{className:"lum-wf__running",style:{top:c*lb+7,height:14,left:f.leftPx,width:Math.max(2,f.widthPx)}},f.id)}),(0,oe.jsx)("div",{className:"lum-wf__playhead",style:{left:d}})]})}function t_(){let e=M(p=>p.events),t=M(p=>p.summary),r=M(p=>p.selectedEventId),n=M(p=>p.selectAndSeek),a=M(p=>p.toRelative),[o,s]=(0,Hs.useState)(""),l=(0,Hs.useMemo)(()=>dm(e).filter(p=>p.kind==="task"),[e]),i=t?.tags??[],d=o.trim().toLowerCase(),u=(0,Hs.useMemo)(()=>d?l.filter(p=>p.title.toLowerCase().includes(d)):l,[l,d]);return(0,vt.jsxs)("div",{className:"lum-st-spans",children:[i.length>0&&(0,vt.jsx)("div",{className:"lum-st-spans__tags","aria-label":"Session tags",children:i.map(p=>(0,vt.jsxs)("span",{className:"lum-st-tag",children:["#",p]},p))}),(0,vt.jsxs)("div",{className:"lum-st-spans__search",children:[(0,vt.jsx)("input",{className:"lum-st-spans__input lum-mono",placeholder:"Search tasks\u2026",value:o,onChange:p=>s(p.target.value),"aria-label":"Search task spans by name"}),l.length>0&&(0,vt.jsxs)("span",{className:"lum-st-spans__count lum-muted",children:[u.length,"/",l.length]})]}),l.length===0?(0,vt.jsx)(er,{title:"No tasks tracked",children:"Call Obsrviq.startTask('name') / endTask('name') to record searchable sub-events on the session."}):u.length===0?(0,vt.jsx)(er,{title:"No tasks match that search"}):(0,vt.jsx)("div",{className:"lum-st-spans__rows lum-mono",role:"list","aria-label":"Task spans",children:u.map(p=>(0,vt.jsxs)("button",{className:`lum-st-spanrow ${p.id===r?"is-selected":""} ${p.running?"is-running":""}`,onClick:()=>n(p.id),"aria-label":`${p.title} (${p.subtitle??""}) @ ${te(a(p.t))}`,children:[(0,vt.jsx)("span",{className:"lum-st-spanrow__glyph","aria-hidden":!0,children:"\u25B0"}),(0,vt.jsx)("span",{className:"lum-st-spanrow__time",children:te(a(p.t))}),(0,vt.jsx)("span",{className:"lum-st-spanrow__title",children:p.title}),(0,vt.jsx)("span",{className:"lum-st-spanrow__dur lum-muted",children:p.subtitle})]},p.id))})]})}var r_={console:"\u203A",network:"\u25AD",error:"\u25CF",rage:"\u25C6",dead:"\u25CB",conversion:"\u2726",nav:"\u258E",perf:"\u25C7",task:"\u25B0",custom:"\xB7"},n_=[{id:"all",label:"All"},{id:"network",label:"Network"},{id:"console",label:"Console"},{id:"error",label:"Errors"},{id:"signal",label:"Signals"},{id:"task",label:"Tasks"},{id:"nav",label:"Nav"}];function a_(e,t){switch(t){case"all":return!0;case"network":return e.kind==="network";case"console":return e.kind==="console"||e.kind==="perf";case"error":return e.kind==="error"||e.severity==="error";case"signal":return e.kind==="rage"||e.kind==="dead"||e.kind==="conversion";case"task":return e.kind==="task";case"nav":return e.kind==="nav";default:return!0}}function ub(){let e=M(f=>f.events),t=M(f=>f.feedFilter),r=M(f=>f.setFeedFilter),n=M(f=>f.selectedEventId),a=M(f=>f.selectionRange),o=M(f=>f.selectAndSeek),s=M(f=>f.toRelative),l=M(f=>f.status),i=(0,cu.useMemo)(()=>dm(e),[e]),d=(0,cu.useMemo)(()=>{let f=i.filter(h=>a_(h,t));return a&&(f=f.filter(h=>h.t>=a[0]&&h.t<=a[1])),f},[i,t,a]),u=(0,cu.useMemo)(()=>d.map(f=>s(f.t)),[d,s]),p=yI(u),c=wI(p,l==="playing");return(0,At.jsxs)("div",{className:"lum-st-feed",children:[(0,At.jsx)("div",{className:"lum-st-feed__chips",children:n_.map(f=>(0,At.jsx)("button",{className:`lum-pl-chip ${t===f.id?"is-active":""}`,onClick:()=>r(f.id),children:f.label},f.id))}),t==="network"?(0,At.jsx)(JI,{}):t==="task"?(0,At.jsx)(t_,{}):d.length===0?(0,At.jsx)(er,{title:"Nothing matched this filter"}):(0,At.jsx)("div",{className:"lum-st-feed__rows lum-mono",ref:c,role:"log","aria-label":"Unified activity feed",children:d.map((f,h)=>(0,At.jsxs)("button",{"data-row":h,className:`lum-st-feedrow lum-st-feedrow--${f.severity} ${h===p?"is-active":""} ${f.id===n?"is-selected":""}`,onClick:()=>o(f.id),"aria-label":`${f.title} @ ${te(s(f.t))}`,children:[(0,At.jsx)("span",{className:"lum-st-feedrow__glyph","aria-hidden":!0,children:r_[f.kind]}),(0,At.jsx)("span",{className:"lum-st-feedrow__time",children:te(s(f.t))}),(0,At.jsx)("span",{className:"lum-st-feedrow__title",children:f.title}),f.subtitle&&(0,At.jsx)("span",{className:"lum-st-feedrow__sub lum-muted",children:f.subtitle})]},f.id))})]})}function db({feedFocusKey:e}){let t=M(u=>u.selectedEventId),r=M(u=>u.events),n=M(u=>u.select),[a,o]=(0,or.useState)("feed"),s=(0,or.useRef)(null),l=(0,or.useMemo)(()=>r.find(u=>u.id===t)??null,[r,t]);(0,or.useEffect)(()=>{t&&t!==s.current&&o("detail"),!t&&a==="detail"&&o("feed"),s.current=t},[t]);let i=a==="detail"&&!l?"feed":a,d=[{id:"feed",label:"Feed"},...l?[{id:"detail",label:"Detail"}]:[],{id:"dom",label:"DOM"},{id:"state",label:"State"}];return(0,Y.jsxs)("aside",{className:"lum-st-inspector","aria-label":"Inspector",children:[(0,Y.jsxs)("div",{className:"lum-st-inspector__tabs",children:[d.map(u=>(0,Y.jsx)("button",{className:`lum-pl-tab2 ${i===u.id?"is-active":""}`,onClick:()=>o(u.id),children:u.label},u.id)),l&&(0,Y.jsx)("button",{className:"lum-st-inspector__clear","aria-label":"Clear selection (Esc)",onClick:()=>n(null),children:(0,Y.jsx)(la,{size:13})})]}),(0,Y.jsxs)("div",{className:"lum-st-inspector__body",children:[i==="feed"&&(0,Y.jsx)(ub,{}),i==="dom"&&(0,Y.jsx)(BI,{}),i==="state"&&(0,Y.jsx)(zI,{}),i==="detail"&&l&&(0,Y.jsx)(o_,{ev:l}),i==="detail"&&!l&&(0,Y.jsx)(ub,{})]})]},e)}function o_({ev:e}){let t=M(n=>n.toRelative),r=M(n=>n.events);if(e.type==="network"){let n=e;return(0,Y.jsxs)("div",{className:"lum-st-inspbody",children:[(0,Y.jsx)("div",{className:"lum-st-inspector__crumb lum-mono",children:hu(n.url)}),(0,Y.jsx)(kI,{n,relStart:t(n.t)}),(0,Y.jsx)(em,{ev:e})]})}if(e.type==="ws"){let n=Mb(r).find(a=>a.connId===e.connId);return(0,Y.jsxs)("div",{className:"lum-st-inspbody",children:[(0,Y.jsx)("div",{className:"lum-st-inspector__crumb lum-mono",children:n?hu(n.url):"WebSocket"}),n?(0,Y.jsx)(bI,{conn:n,toRelative:t}):(0,Y.jsx)("div",{className:"lum-muted",children:"No WebSocket detail."})]})}if(e.type==="error")return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(MI,{ev:e}),(0,Y.jsx)("div",{className:"lum-st-inspbody",children:(0,Y.jsx)(em,{ev:e})})]});if(e.type==="console")return(0,Y.jsx)(DI,{ev:e});if(e.type==="custom"){let n=e;return(0,Y.jsxs)("div",{className:"lum-st-inspbody lum-pl-detail",children:[(0,Y.jsxs)("div",{className:"lum-pl-detail__head",children:[(0,Y.jsx)("strong",{children:n.name})," ",(0,Y.jsxs)("span",{className:"lum-muted lum-mono",children:["@ ",te(t(e.t))]})]}),n.props&&(0,Y.jsx)("pre",{className:"lum-pl-json",children:JSON.stringify(n.props,null,2).slice(0,1200)}),(0,Y.jsx)(em,{ev:e})]})}if(e.type==="perf"){let n=e;return(0,Y.jsx)("div",{className:"lum-st-inspbody lum-pl-detail",children:(0,Y.jsxs)("div",{className:"lum-pl-detail__head",children:[(0,Y.jsx)("strong",{children:n.metric})," ",(0,Y.jsx)("span",{className:"lum-mono",children:Math.round(n.value)})," ",(0,Y.jsx)("span",{className:"lum-muted",children:n.rating})]})})}return(0,Y.jsx)("div",{className:"lum-st-inspbody lum-muted",children:"No detail view for this event."})}function em({ev:e}){let t=Hk(),[r,n]=(0,or.useState)(""),[a,o]=(0,or.useState)("idle"),s=(0,or.useRef)(null);if((0,or.useEffect)(()=>(n(""),o("idle"),s.current?.abort(),()=>s.current?.abort()),[e.id]),!t)return null;let l=async()=>{s.current?.abort();let i=new AbortController;s.current=i,n(""),o("loading");try{let d=`${t.apiBaseUrl.replace(/\/$/,"")}/v1/sessions/${t.sessionId}/explain`,u="";for await(let p of jk(d,t,{ref:e.id},i.signal))if(p.kind==="token"&&p.text)u+=p.text,n(u);else if(p.kind==="error"){o("error"),n(p.message||"Explain failed.");return}o("done")}catch(d){if(i.signal.aborted)return;o("error"),n(d instanceof Error?d.message:"Explain failed.")}};return(0,Y.jsx)("div",{className:"lum-st-explain",children:a==="idle"?(0,Y.jsxs)("button",{className:"lum-st-explain__btn",onClick:l,children:[(0,Y.jsx)(tr,{size:13,"aria-hidden":!0})," Explain with AI"]}):(0,Y.jsxs)("div",{className:"lum-st-explain__out",role:"status","aria-live":"polite",children:[(0,Y.jsxs)("span",{className:"lum-st-explain__label",children:[(0,Y.jsx)(tr,{size:12,"aria-hidden":!0})," Likely cause",a==="loading"&&(0,Y.jsx)("span",{className:"lum-st-explain__dots","aria-hidden":!0,children:" \u2026"})]}),(0,Y.jsx)("p",{className:`lum-st-explain__text ${a==="error"?"is-error":""}`,children:r||"\u2026"}),a!=="loading"&&(0,Y.jsx)("button",{className:"lum-st-explain__re",onClick:l,children:"Regenerate"})]})})}var ao={error:6,net5xx:5,net4xx:4,rage:3,dead:2,nav:1};function s_(e){let t=[];for(let r of e)if(r.type==="error")t.push({t:r.t,kind:"error",rank:ao.error,ref:r.id,label:`${r.name??"Error"}: ${r.message??""}`});else if(r.type==="console"&&r.level==="error")t.push({t:r.t,kind:"error",rank:ao.error,ref:r.id,label:"console.error"});else if(r.type==="network"){let n=r;n.status>=500||n.status===0?t.push({t:r.t,kind:"net5xx",rank:ao.net5xx,ref:r.id,label:`${n.method} ${n.url} \u2014 ${n.status||"failed"}`}):n.status>=400&&t.push({t:r.t,kind:"net4xx",rank:ao.net4xx,ref:r.id,label:`${n.method} ${n.url} \u2014 ${n.status}`})}else if(r.type==="custom"){let n=r;n.name==="rage_click"?t.push({t:r.t,kind:"rage",rank:ao.rage,ref:r.id,label:"Rage click"}):n.name==="dead_click"&&t.push({t:r.t,kind:"dead",rank:ao.dead,ref:r.id,label:"Dead click"})}return t.sort((r,n)=>r.t-n.t)}function l_(e){let t=dm(e),r={chapters:[],interaction:[],console:[],network:[],error:[],task:[],vitals:[]};for(let n of t){let a={id:n.id,t:n.t,durationMs:n.durationMs,running:n.running,kind:n.kind,severity:n.severity,label:n.title,sub:n.subtitle};switch(n.lane){case"interaction":r.interaction.push(a);break;case"console":if(n.kind==="perf")break;r.console.push(a),n.kind==="console"&&n.severity==="error"&&r.error.push({...a,kind:"error"});break;case"network":r.network.push(a);break;case"error":r.error.push(a);break;case"task":r.task.push(a);break;case"nav":r.chapters.push({...a,kind:"nav"});break}}for(let n of e){if(n.type!=="perf")continue;let a=n;["LCP","CLS","INP","FCP"].includes(a.metric)&&r.vitals.push({id:n.id,t:n.t,kind:a.rating==="poor"?"perf-poor":"perf-good",severity:a.rating==="poor"?"error":"ok",label:`${a.metric} ${Math.round(a.value)}${a.metric==="CLS"?"":"ms"}`,sub:a.rating})}return r}var cb={chapters:"Chapters",interaction:"Interactions",console:"Console",network:"Network",error:"Errors",task:"Tasks",vitals:"Vitals"};function i_(e){let t=[];for(let r of e)if(r.type==="error"){let n=r;t.push({id:r.id,label:`Error \xB7 ${n.name??"Error"}`,detail:n.message??"",t:r.t,ref:r.id,keywords:`error exception ${n.name??""} ${n.message??""}`})}else if(r.type==="network"){let n=r,a=n.status>=400||n.status===0,o=n.status>=500?"5xx":n.status>=400?"4xx":"ok";a&&t.push({id:r.id,label:`${n.method} ${u_(n.url)} \xB7 ${n.status||"failed"}`,detail:`${o} network failure`,t:r.t,ref:r.id,keywords:`network request ${o} fail failed error ${n.method} ${n.url} ${n.status}`})}else if(r.type==="custom"){let n=r;if(n.name==="rage_click")t.push({id:r.id,label:"Rage click",detail:"frustration signal",t:r.t,ref:r.id,keywords:"rage frustration click stuck"});else if(n.name==="dead_click")t.push({id:r.id,label:"Dead click",detail:"frustration signal",t:r.t,ref:r.id,keywords:"dead click frustration stuck"});else if(n.props&&n.props.conversion===!0)t.push({id:r.id,label:`Conversion \xB7 ${n.name}`,detail:"the conversion",t:r.t,ref:r.id,keywords:`conversion convert success goal ${n.name}`});else{let a=/^(.+):started$/.exec(n.name??"");if(a){let o=n.props?.task??a[1];t.push({id:r.id,label:`Task \xB7 ${o}`,detail:"sub-event span",t:r.t,ref:r.id,keywords:`task span sub-event ${o}`})}}}return t.sort((r,n)=>r.t-n.t)}function u_(e){try{let t=new URL(e);return(t.pathname.split("/").pop()||t.hostname)+(t.search?t.search:"")}catch{return e.split("/").pop()||e}}function d_(e,t){if(!e.length)return null;let r=null,n=1/0;for(let a of e){let o=Math.abs(a.t-t);o<n&&(n=o,r=a)}return r&&n<1200?r.label:null}var da=60;function c_(e){if(e.type==="error"||e.type==="console"&&e.level==="error")return"error";if(e.type==="network"){let t=e;return t.status>=400||t.status===0?"error":"network"}if(e.type==="custom"){let t=e;if(t.name==="rage_click"||t.name==="dead_click")return"frustration";if(t.props&&t.props.conversion===!0)return"conversion";if(t.name==="navigation"||t.name==="pageview")return"nav"}return"other"}var tm={error:"var(--lum-error)",frustration:"var(--lum-warn)",conversion:"var(--lum-ok)",network:"#a06bff",nav:"var(--lum-info)",other:"var(--lum-faint)"},fb={error:"error",frustration:"frustration",conversion:"conversion",network:"network",nav:"navigation",other:"other"},f_=["error","frustration","conversion","network","nav"],p_=(e,t)=>`${e} ${t}${e===1?"":"s"}`;function m_(){let e=M(k=>k.events),t=M(k=>k.offset),r=M(k=>k.durationMs),n=M(k=>k.bufferedMs),a=M(k=>k.zoomStack),o=M(k=>k.zoomTo),s=M(k=>k.zoomOutTo),l=M(k=>k.seek),i=M(k=>k.toRelative),d=(0,_n.useRef)(null),[u,p]=(0,_n.useState)(null),[c,f]=(0,_n.useState)(null),[h,m]=(0,_n.useState)(!1),y=t,g=t+r,x=Math.max(1,g-y),v=(0,_n.useMemo)(()=>{let k=new Array(da).fill(0),_=Array.from({length:da},()=>({error:0,frustration:0,conversion:0,network:0,nav:0,other:0}));for(let P of e){let I=(P.t-y)/x,re=Math.min(da-1,Math.max(0,Math.floor(I*da)));k[re]++,_[re][c_(P)]++}let N=Math.max(1,...k);return k.map((P,I)=>{let re=_[I],_e="other",se=0;return Object.keys(re).forEach(j=>{let ve=j==="error"?100:j==="frustration"?50:j==="conversion"?40:1,Me=re[j]*ve;re[j]>0&&Me>se&&(se=Me,_e=j)}),{h:P/N,kind:_e,total:P,counts:re}})},[e,y,x]),S=k=>{let _=d.current;if(!_)return y;let N=_.getBoundingClientRect(),P=Math.min(1,Math.max(0,(k-N.left)/N.width));return y+P*x},b=k=>(k-y)/x*100,w=a[a.length-1],C=r>0?Math.min(100,n/r*100):100,L=[{label:"Full",index:0},...a.map((k,_)=>({label:`${te(i(k[0]))}\u2013${te(i(k[1]))}`,index:_+1}))];return(0,De.jsxs)("div",{className:"lum-st-overview",children:[(0,De.jsxs)("span",{className:"lum-st-overview__labelwrap",children:[(0,De.jsx)("span",{className:"lum-st-overview__label lum-muted",children:"OVERVIEW"}),(0,De.jsxs)("span",{className:"lum-st-overview__i-wrap",onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1),children:[(0,De.jsx)(na,{size:12,className:"lum-st-overview__i","aria-label":"What is this?"}),h&&(0,De.jsxs)("div",{className:"lum-st-overview__legend-pop",role:"tooltip",children:[(0,De.jsx)("div",{className:"lum-st-overview__legend-lead",children:"Activity across the whole recording. Each bar is a slice of time \u2014 height shows how busy it was, color shows the most important thing that happened. Click to jump there, drag to zoom into a range."}),(0,De.jsx)("div",{className:"lum-st-overview__legend",children:f_.map(k=>(0,De.jsxs)("span",{className:"lum-st-overview__legend-item",children:[(0,De.jsx)("span",{className:"lum-st-overview__tip-dot",style:{background:tm[k]}}),(0,De.jsx)("span",{style:{textTransform:"capitalize"},children:fb[k]})]},k))})]})]})]}),(0,De.jsxs)("div",{ref:d,className:"lum-st-overview__spark",onPointerDown:k=>{k.target.setPointerCapture?.(k.pointerId),f(null);let _=S(k.clientX);p({a:_,b:_})},onPointerMove:k=>{u&&p(_=>_&&{..._,b:S(k.clientX)})},onPointerUp:()=>{u&&(Math.abs(u.b-u.a)>x*.01?o(Math.min(u.a,u.b),Math.max(u.a,u.b)):l(i(u.a))),p(null)},onPointerLeave:()=>p(null),onMouseLeave:()=>f(null),children:[C<99.5&&(0,De.jsx)("div",{className:"lum-st-overview__buffered",style:{width:`${C}%`},"aria-hidden":!0}),v.map((k,_)=>(0,De.jsx)("div",{className:"lum-st-overview__bar",style:{height:`${Math.max(8,k.h*100)}%`,background:tm[k.kind]},onMouseEnter:()=>f(_)},_)),c!=null&&v[c]&&(()=>{let k=v[c],_=y+c/da*x,N=y+(c+1)/da*x,P=Math.min(93,Math.max(7,(c+.5)/da*100)),I=Object.keys(k.counts).filter(re=>k.counts[re]>0);return(0,De.jsxs)("div",{className:"lum-st-overview__tip",style:{left:`${P}%`},role:"tooltip",children:[(0,De.jsxs)("div",{className:"lum-st-overview__tip-time",children:[te(i(_)),"\u2013",te(i(N))]}),k.total===0?(0,De.jsx)("div",{className:"lum-muted",children:"No activity"}):(0,De.jsx)("ul",{className:"lum-st-overview__tip-list",children:I.map(re=>(0,De.jsxs)("li",{children:[(0,De.jsx)("span",{className:"lum-st-overview__tip-dot",style:{background:tm[re]}}),p_(k.counts[re],fb[re])]},re))})]})})(),w&&(0,De.jsx)("div",{className:"lum-st-overview__window",style:{left:`${b(w[0])}%`,width:`${b(w[1])-b(w[0])}%`}}),u&&(0,De.jsx)("div",{className:"lum-st-overview__brush",style:{left:`${b(Math.min(u.a,u.b))}%`,width:`${Math.abs(b(u.b)-b(u.a))}%`}})]}),(0,De.jsx)("div",{className:"lum-st-overview__crumbs",children:L.map((k,_)=>(0,De.jsx)("button",{className:`lum-st-crumb ${_===L.length-1?"is-active":""}`,onClick:()=>s(k.index),children:k.label},_))})]})}function h_(e){let t=[1e3,2e3,5e3,1e4,15e3,3e4,6e4,12e4,3e5,6e5],r=e/8;for(let n of t)if(n>=r)return n;return t[t.length-1]}function g_({win:e}){let t=(0,so.useRef)(null),r=(0,so.useRef)(!1),n=M(S=>S.currentTime),a=M(S=>S.durationMs),o=M(S=>S.offset),s=M(S=>S.events),l=M(S=>S.markers),i=M(S=>S.snap),d=M(S=>S.seek),u=M(S=>S.setHover),p=M(S=>S.toRelative),[c,f]=e,h=Math.max(1,f-c),m=(0,so.useMemo)(()=>{let S=h_(h),b=[],w=c-o,C=Math.ceil(w/S)*S;for(let L=C;L<=f-o;L+=S){let k=L+o;b.push({tRel:L,pct:(k-c)/h*100})}return b},[h,c,f,o]),y=(0,so.useMemo)(()=>im(s,a+o),[s,a,o]),g=S=>{let b=t.current;if(!b)return c;let w=b.getBoundingClientRect();return Db(S-w.left,e,w.width)},x=S=>{if(!i)return S;let b=t.current;if(!b)return S;let w=b.getBoundingClientRect().width,C=am(S,e,w),L=S,k=8;for(let _ of l){let N=am(_.t,e,w),P=Math.abs(N-C);P<k&&(k=P,L=_.t)}return L},v=S=>{let b=x(g(S));d(p(b))};return(0,Mn.jsxs)("div",{ref:t,className:"lum-st-ruler",role:"slider",tabIndex:0,"aria-label":"Timeline scrubber","aria-valuemin":0,"aria-valuemax":Math.round(a),"aria-valuenow":Math.round(n),"aria-valuetext":`${te(n)} of ${te(a)}`,onPointerDown:S=>{r.current=!0,S.target.setPointerCapture?.(S.pointerId),v(S.clientX)},onPointerMove:S=>{let b=g(S.clientX);u(p(b)),r.current&&v(S.clientX)},onPointerUp:S=>{r.current=!1,S.target.releasePointerCapture?.(S.pointerId)},onPointerLeave:()=>u(null),onKeyDown:S=>{if(S.key==="ArrowRight")d(n+1e3);else if(S.key==="ArrowLeft")d(n-1e3);else if(S.key==="Home")d(0);else if(S.key==="End")d(a);else if(S.key==="PageUp")d(n+1e4);else if(S.key==="PageDown")d(n-1e4);else return;S.preventDefault()},children:[y.slice(1).map(S=>{let b=(S.startT-c)/h*100;return b<0||b>100?null:(0,Mn.jsx)("span",{className:"lum-st-ruler__chdiv",style:{left:`${b}%`},title:S.title},S.id)}),m.map((S,b)=>(0,Mn.jsx)("span",{className:"lum-st-ruler__tick",style:{left:`${S.pct}%`},children:(0,Mn.jsx)("span",{className:"lum-st-ruler__ticklabel lum-mono",children:te(S.tRel)})},b))]})}function x_({win:e}){let t=M(d=>d.hover),r=M(d=>d.offset),n=M(d=>d.markers);if(t==null)return null;let a=t.t+r,[o,s]=e,l=(a-o)/Math.max(1,s-o)*100;if(l<0||l>100)return null;let i=d_(n,a);return(0,Mn.jsxs)("div",{className:"lum-st-ghosttip lum-mono",style:{left:`${l}%`},children:[te(t.t),i&&(0,Mn.jsxs)("span",{className:"lum-st-ghosttip__lbl",children:[" \xB7 ",i.slice(0,48)]})]})}function v_({isFullscreen:e,onFullscreen:t,allowFullscreen:r=!0}){let n=M(I=>I.status),a=M(I=>I.currentTime),o=M(I=>I.durationMs),s=M(I=>I.summary?.inactiveMs),l=M(I=>I.summary?.durationMs),i=M(I=>I.speed),d=M(I=>I.autoSkip),u=M(I=>I.isSkipping),p=M(I=>I.autoSkim),c=M(I=>I.isSkimming),f=M(I=>I.loop),h=M(I=>I.showCursor),m=M(I=>I.snap),y=M(I=>I.toggle),g=M(I=>I.restart),x=M(I=>I.seek),v=M(I=>I.step),S=M(I=>I.jumpEvent),b=M(I=>I.setSpeed),w=M(I=>I.setAutoSkip),C=M(I=>I.setAutoSkim),L=M(I=>I.setLoop),k=M(I=>I.setShowCursor),_=M(I=>I.toggleSnap),N=n==="playing";return(0,J.jsxs)("div",{className:"lum-st-transport",children:[(0,J.jsxs)("div",{className:"lum-st-transport__group",children:[(0,J.jsx)("span",{className:"lum-pl-play",children:(0,J.jsx)(gt,{label:N?"Pause (Space)":"Play (Space)",pressed:N,onClick:y,children:N?(0,J.jsx)(Ms,{size:17}):(0,J.jsx)(sa,{size:17})})}),(0,J.jsx)(gt,{label:"Restart (R)",onClick:g,children:(0,J.jsx)(Ns,{size:16})}),(0,J.jsx)(gt,{label:"Back 10s (\u2190)",onClick:()=>x(a-1e4),children:(0,J.jsx)(Ts,{size:16})}),(0,J.jsx)(gt,{label:"Forward 10s (\u2192)",onClick:()=>x(a+1e4),children:(0,J.jsx)(As,{size:16})}),(0,J.jsx)(gt,{label:"Previous event ([)",onClick:()=>S(-1),children:(0,J.jsx)(ea,{size:17})}),(0,J.jsx)(gt,{label:"Next event (])",onClick:()=>S(1),children:(0,J.jsx)(ta,{size:17})}),(n==="paused"||n==="ended"||n==="idle")&&(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(gt,{label:"Frame back (,)",onClick:()=>v(-1),children:(0,J.jsx)(Ds,{size:15})}),(0,J.jsx)(gt,{label:"Frame forward (.)",onClick:()=>v(1),children:(0,J.jsx)(Os,{size:15})})]})]}),(0,J.jsxs)("div",{className:"lum-st-transport__group lum-st-transport__group--right",children:[(0,J.jsx)(av,{trigger:(0,J.jsxs)("span",{className:"lum-iconbtn","aria-label":`Speed ${i}\xD7`,title:"Playback speed (< / >)",children:[(0,J.jsx)(Cs,{size:15}),(0,J.jsxs)("span",{className:"lum-mono lum-pl-speed",children:[i,"\xD7"]})]}),options:vb.map(I=>({value:I,label:`${I}\xD7`})),value:i,onSelect:b,placement:"top"}),(0,J.jsx)("span",{className:`lum-st-skim${u?" is-skimming":""}`,children:(0,J.jsx)(gt,{label:`Auto-skip idle \u2014 jump to next activity (S)${d?" \u2014 on":""}`,pressed:d,onClick:()=>w(!d),children:(0,J.jsx)(ra,{size:16})})}),(0,J.jsx)("span",{className:`lum-st-skim${c?" is-skimming":""}`,children:(0,J.jsx)(gt,{label:`Auto-skim idle at 8\xD7 (\u21E7S)${p?" \u2014 on":""}`,pressed:p,onClick:()=>C(!p),children:(0,J.jsx)(ia,{size:15})})}),(0,J.jsx)(gt,{label:"Loop (L)",pressed:f,onClick:()=>L(!f),children:(0,J.jsx)(Rs,{size:15})}),(0,J.jsx)(gt,{label:"Magnetic snap (X)",pressed:m,onClick:_,children:(0,J.jsx)(ks,{size:15})}),(0,J.jsx)(gt,{label:"Cursor trail",pressed:h,onClick:()=>k(!h),children:(0,J.jsx)(_s,{size:15})}),r&&(0,J.jsx)(gt,{label:e?"Exit fullscreen (F)":"Fullscreen (F)",pressed:e,onClick:t,children:e?(0,J.jsx)(oa,{size:16}):(0,J.jsx)(aa,{size:16})}),(0,J.jsxs)("span",{className:"lum-st-transport__time lum-mono",children:[te(a)," ",(0,J.jsxs)("span",{className:"lum-muted",children:["/ ",te(o)]}),s!=null&&s>0&&l?(0,J.jsxs)("span",{className:"lum-st-transport__idle lum-muted",title:`${te(s)} of this recording (${Math.round(s/l*100)}%) had no interaction`,children:[" \xB7 ",Math.round(s/l*100),"% idle"]}):null]})]})]})}function y_(e){switch(e.kind){case"rage":return"\u25C6";case"dead":return"\u25CB";case"conversion":return"\u2726";case"error":return"\u25CF";case"network":return"\u25AD";case"task":return"\u25B0";case"nav":return"\u258E";case"perf-poor":return"\u25C7";case"perf-good":return"\u25C7";case"console":return e.severity==="error"?"\u25CF":"\xB7";default:return"\xB7"}}function w_(e){switch(e.severity){case"error":return"var(--lum-error)";case"warn":return"var(--lum-warn)";case"ok":return"var(--lum-ok)";case"info":return"var(--lum-info)";default:return"var(--lum-faint)"}}function b_(e,t,r){let n=[...e].sort((o,s)=>o.t-s.t),a=[];for(let o of n){if(o.t<t[0]-1||o.t>t[1]+1)continue;let s=am(o.t,t,r),l=a[a.length-1];l&&s-l.xPx<6?l.items.push(o):a.push({t:o.t,xPx:s,items:[o]})}return a}function S_({id:e,label:t,glyphs:r,win:n,width:a,collapsed:o}){let s=M(g=>g.offset),l=M(g=>g.durationMs),i=M(g=>g.events),d=M(g=>g.selectedEventId),u=M(g=>g.selectAndSeek),p=M(g=>g.zoomTo),c=M(g=>g.toRelative),f=Math.max(1,n[1]-n[0]),h=g=>(g-n[0])/f*100,m=(0,om.useMemo)(()=>e==="chapters"?im(i,l+s):[],[e,i,l,s]),y=(0,om.useMemo)(()=>e==="network"||e==="chapters"||e==="task"?[]:b_(r,n,a||1),[e,r,n,a]);return o?(0,Wt.jsx)("div",{className:"lum-st-lane lum-st-lane--collapsed",role:"listbox","aria-label":`${t} lane (collapsed)`,tabIndex:0,children:(0,Wt.jsx)("span",{className:"lum-st-lane__count lum-mono",children:r.length||m.length||"\u2014"})}):(0,Wt.jsxs)("div",{className:`lum-st-lane lum-st-lane--${e}`,role:"listbox","aria-label":`${t} lane`,tabIndex:0,"data-lane":e,children:[e==="chapters"&&m.map(g=>{let x=h(g.startT),v=h(g.endT)-x;return x>100||x+v<0?null:(0,Wt.jsx)("button",{className:`lum-st-chapter lum-st-chapter--${g.kind} ${g.kind==="idle"?"is-idle":""}`,style:{left:`${x}%`,width:`${Math.max(.5,v)}%`},role:"option","aria-selected":!1,"aria-label":`${g.title} \xB7 ${g.subtitle} @ ${te(c(g.startT))}`,title:`${g.title} \u2014 ${g.subtitle}`,onClick:()=>p(g.startT,g.endT),children:(0,Wt.jsx)("span",{className:"lum-st-chapter__label",children:g.title})},g.id)}),e==="network"&&r.map(g=>{let x=h(g.t);if(x>101||x<-1)return null;let v=(g.durationMs??0)/f*100,S=Math.max(.4,v),b=d===g.id;return(0,Wt.jsx)("button",{className:`lum-st-netbar lum-st-netbar--${g.severity} ${b?"is-selected":""}`,style:{left:`${x}%`,width:`${S}%`},role:"option","aria-selected":b,"aria-label":`${g.label} \xB7 ${g.sub??""} @ ${te(c(g.t))}`,title:`${g.label} \u2014 ${g.sub??""}`,onClick:()=>u(g.id)},g.id)}),e==="task"&&r.map(g=>{let x=h(g.t);if(x>101||x<-1)return null;let v=(g.durationMs??0)/f*100,S=Math.max(.5,v),b=d===g.id,w=!!g.running;return(0,Wt.jsx)("button",{className:`lum-st-taskbar ${b?"is-selected":""} ${w?"is-running":""}`,style:{left:`${x}%`,width:`${S}%`},role:"option","aria-selected":b,"aria-label":`Task ${g.label} \xB7 ${g.sub??""} @ ${te(c(g.t))}`,title:`${g.label}${g.sub?` \u2014 ${g.sub}`:""}`,onClick:()=>u(g.id)},g.id)}),e!=="network"&&e!=="chapters"&&e!=="task"&&y.map((g,x)=>{let v=h(g.t);if(v>101||v<-1)return null;let S=g.items[0],b=g.items.some(C=>C.id===d),w=g.items.length;return(0,Wt.jsxs)("button",{className:`lum-st-glyph lum-st-glyph--${e} ${b?"is-selected":""} ${S.kind==="rage"?"lum-st-glyph--pulse":""}`,style:{left:`${v}%`,color:w_(S)},role:"option","aria-selected":b,"aria-label":w>1?`${w} events @ ${te(c(g.t))}`:`${S.label} @ ${te(c(g.t))}`,title:w>1?`${w} events`:`${S.label}${S.sub?` \xB7 ${S.sub}`:""}`,onClick:()=>{w>1&&f>4e3?p(g.t-1500,g.t+1500):u(S.id)},children:[(0,Wt.jsx)("span",{className:"lum-st-glyph__char","aria-hidden":!0,children:y_(S)}),w>1&&(0,Wt.jsx)("span",{className:"lum-st-glyph__count",children:w})]},`${g.t}-${x}`)}),r.length===0&&m.length===0&&(0,Wt.jsx)("span",{className:"lum-st-lane__empty",children:"\u2014"})]})}function C_({id:e,label:t,count:r}){let n=M(o=>o.laneState[e]),a=M(o=>o.toggleLane);return(0,Dt.jsxs)("div",{className:`lum-st-rail ${n.collapsed?"is-collapsed":""} ${n.mute?"is-muted":""} ${n.solo?"is-solo":""}`,children:[(0,Dt.jsx)("button",{className:"lum-st-rail__collapse","aria-label":`${n.collapsed?"Expand":"Collapse"} ${t}`,onClick:()=>a(e,"collapsed"),children:n.collapsed?(0,Dt.jsx)(ta,{size:13}):(0,Dt.jsx)(Zn,{size:13})}),(0,Dt.jsx)("span",{className:"lum-st-rail__label",children:t}),(0,Dt.jsx)("span",{className:"lum-st-rail__count lum-mono",children:r}),(0,Dt.jsxs)("span",{className:"lum-st-rail__ctrls",children:[(0,Dt.jsx)("button",{className:`lum-st-rail__btn ${n.solo?"is-on":""}`,"aria-pressed":n.solo,title:"Solo lane",onClick:()=>a(e,"solo"),children:(0,Dt.jsx)(Ss,{size:11})}),(0,Dt.jsx)("button",{className:`lum-st-rail__btn ${n.mute?"is-on":""}`,"aria-pressed":n.mute,title:"Mute lane",onClick:()=>a(e,"mute"),children:n.mute?(0,Dt.jsx)(zs,{size:11}):(0,Dt.jsx)(Bs,{size:11})})]})]})}function L_({win:e}){let t=M(l=>l.currentTime),r=M(l=>l.offset),n=t+r,a=gu(n,e),o=n<e[0],s=n>e[1];return(0,xu.jsx)("div",{className:`lum-st-playhead ${o?"is-offleft":""} ${s?"is-offright":""}`,style:{left:`${a*100}%`},"aria-hidden":!0,children:(0,xu.jsx)("span",{className:"lum-st-playhead__cap"})})}function k_({win:e}){let t=M(o=>o.hover),r=M(o=>o.offset);if(t==null)return null;let n=t.t+r,a=gu(n,e);return n<e[0]||n>e[1]?null:(0,xu.jsx)("div",{className:"lum-st-ghost",style:{left:`${a*100}%`},"aria-hidden":!0})}var I_={error:"var(--lum-error)",net5xx:"#a06bff",net4xx:"var(--lum-warn)",rage:"var(--lum-warn)",dead:"var(--lum-faint)",nav:"var(--lum-info)"};function __({win:e}){let t=(0,js.useRef)(null),r=(0,js.useRef)(!1),n=M(m=>m.currentTime),a=M(m=>m.durationMs),o=M(m=>m.offset),s=M(m=>m.events),l=M(m=>m.seek),i=M(m=>m.selectAndSeek),d=M(m=>m.setHover),u=M(m=>m.toRelative),p=(0,js.useMemo)(()=>s_(s),[s]),c=n+o,f=gu(c,e),h=m=>{let y=t.current;if(!y)return e[0];let g=y.getBoundingClientRect();return Db(m-g.left,e,g.width)};return(0,oo.jsxs)("div",{ref:t,className:"lum-st-ribbon",role:"slider",tabIndex:0,"aria-label":"Signal ribbon scrubber","aria-valuemin":0,"aria-valuemax":Math.round(a),"aria-valuenow":Math.round(n),"aria-valuetext":`${te(n)} of ${te(a)}`,onPointerDown:m=>{r.current=!0,m.target.setPointerCapture?.(m.pointerId),l(u(h(m.clientX)))},onPointerMove:m=>{d(u(h(m.clientX))),r.current&&l(u(h(m.clientX)))},onPointerUp:()=>r.current=!1,onPointerLeave:()=>d(null),onKeyDown:m=>{if(m.key==="ArrowRight")l(n+1e3);else if(m.key==="ArrowLeft")l(n-1e3);else if(m.key==="Home")l(0);else if(m.key==="End")l(a);else return;m.preventDefault()},children:[(0,oo.jsx)("div",{className:"lum-st-ribbon__track"}),p.map(m=>{let y=gu(m.t,e);return m.t<e[0]||m.t>e[1]?null:(0,oo.jsx)("button",{className:"lum-st-ribbon__glyph",style:{left:`${y*100}%`,color:I_[m.kind]??"var(--lum-faint)"},title:`${m.label} @ ${te(u(m.t))}`,"aria-label":`${m.label} @ ${te(u(m.t))}`,onClick:g=>{g.stopPropagation(),i(m.ref)},children:"\u25C6"},m.ref)}),(0,oo.jsx)("div",{className:"lum-st-ribbon__head",style:{left:`${f*100}%`},"aria-hidden":!0})]})}function M_({breakpoint:e,isFullscreen:t,onFullscreen:r,allowFullscreen:n,onResizeStart:a,onResizeReset:o}){let s=M(w=>w.events),l=M(w=>w.laneState),i=M(w=>w.offset),d=M(w=>w.durationMs),u=M(w=>w.zoomStack),p=M(w=>w.zoomTo),c=M(w=>w.zoomOutTo),f=M(w=>w.focusMode),h=Ob(),{ref:m,width:y}=GI(),g=(0,Fb.useMemo)(()=>l_(s),[s]),x=e==="narrow"||e==="compact"||f==="stage",v=fu.some(w=>l[w].solo),S=fu.filter(w=>!(l[w].mute||v&&!l[w].solo));return(0,et.jsxs)("section",{className:"lum-st-timeline","aria-label":"Timeline",children:[a&&(0,et.jsx)("div",{className:"lum-st-resize lum-st-resize--y",role:"separator","aria-orientation":"horizontal","aria-label":"Resize timeline height",title:"Drag to resize \xB7 double-click to reset",onPointerDown:a,onDoubleClick:o}),(0,et.jsx)(m_,{}),(0,et.jsxs)("div",{className:"lum-st-rulerrow",children:[(0,et.jsx)(v_,{isFullscreen:t,onFullscreen:r,allowFullscreen:n}),(0,et.jsx)("div",{className:"lum-st-rulerrow__ruler",children:(0,et.jsx)(g_,{win:h})})]}),x?(0,et.jsx)("div",{className:"lum-st-ribbonwrap",children:(0,et.jsx)(__,{win:h})}):(0,et.jsxs)("div",{className:"lum-st-lanes",onWheel:w=>{if(x||!w.ctrlKey&&!w.metaKey)return;w.preventDefault();let C=m.current;if(!C)return;let L=C.getBoundingClientRect(),k=Math.min(1,Math.max(0,(w.clientX-L.left)/L.width)),_=h[0]+k*(h[1]-h[0]),N=w.deltaY>0?1.2:.83,P=VI(h,_,N,i,i+d);P==null?u.length&&c(u.length-1):p(P[0],P[1])},children:[(0,et.jsx)("div",{className:"lum-st-lanes__rails",children:S.map(w=>(0,et.jsx)(C_,{id:w,label:cb[w],count:g[w].length},w))}),(0,et.jsxs)("div",{className:"lum-st-lanes__tracks",ref:m,children:[S.map(w=>(0,et.jsx)(S_,{id:w,label:cb[w],glyphs:g[w],win:h,width:y,collapsed:l[w].collapsed},w)),(0,et.jsx)(L_,{win:h}),(0,et.jsx)(k_,{win:h}),(0,et.jsx)(x_,{win:h})]})]})]})}function R_(){let e=M(g=>g.paletteOpen),t=M(g=>g.openPalette),r=M(g=>g.events),n=M(g=>g.currentTime),a=M(g=>g.nextProblem),o=M(g=>g.selectAndSeek),s=M(g=>g.toRelative),[l,i]=(0,ar.useState)(""),[d,u]=(0,ar.useState)(0),p=(0,ar.useRef)(null),c=(0,ar.useMemo)(()=>i_(r),[r]),f=(0,ar.useMemo)(()=>{let g=[];g.push({id:"next-problem",label:"Next problem",detail:"jump to the next error / failure / rage",keywords:"next problem error fail rage",run:()=>a(1)}),g.push({id:"prev-problem",label:"Previous problem",detail:"jump backward",keywords:"previous prev problem back",run:()=>a(-1)});let x=c.find(C=>C.keywords.includes("error"));x&&g.push(w("first-error","First error",x));let v=c.find(C=>C.keywords.includes("network"));v&&g.push(w("next-5xx","Next failed request",v));let S=c.find(C=>C.keywords.includes("rage"));S&&g.push(w("next-rage","Next rage click",S));let b=c.find(C=>C.keywords.includes("conversion"));b&&g.push(w("the-conversion","The conversion",b));for(let C of c)g.push(w(`go-${C.id}`,`${C.label} \xB7 ${te(s(C.t))}`,C));return g;function w(C,L,k){return{id:C,label:L,detail:k.detail,keywords:`${L} ${k.keywords}`.toLowerCase(),run:()=>o(k.ref)}}},[c,a,o,s]),h=(0,ar.useMemo)(()=>{let g=l.trim().toLowerCase();return g?f.filter(x=>x.keywords.includes(g)||x.label.toLowerCase().includes(g)).slice(0,20):f.slice(0,12)},[f,l]);if((0,ar.useEffect)(()=>{e&&(i(""),u(0),requestAnimationFrame(()=>p.current?.focus()))},[e]),(0,ar.useEffect)(()=>u(0),[l]),!e)return null;let m=()=>t(!1),y=g=>{g&&(g.run(),m())};return(0,nr.jsx)("div",{className:"lum-st-palette",role:"dialog","aria-modal":"true","aria-label":"Command palette",onClick:m,children:(0,nr.jsxs)("div",{className:"lum-st-palette__card",onClick:g=>g.stopPropagation(),children:[(0,nr.jsx)("input",{ref:p,className:"lum-st-palette__input lum-mono",placeholder:"Jump to\u2026 (next 5xx, next rage, first error, the conversion)",value:l,onChange:g=>i(g.target.value),"aria-label":"Command query",onKeyDown:g=>{g.key==="ArrowDown"?(g.preventDefault(),u(x=>Math.min(h.length-1,x+1))):g.key==="ArrowUp"?(g.preventDefault(),u(x=>Math.max(0,x-1))):g.key==="Enter"?(g.preventDefault(),y(h[d])):g.key==="Escape"&&(g.preventDefault(),m())}}),(0,nr.jsxs)("div",{className:"lum-st-palette__hint lum-muted",children:[h.length," match",h.length===1?"":"es"]}),(0,nr.jsxs)("ul",{className:"lum-st-palette__list",role:"listbox",children:[h.map((g,x)=>(0,nr.jsx)("li",{role:"option","aria-selected":x===d,children:(0,nr.jsxs)("button",{className:`lum-st-palette__item ${x===d?"is-active":""}`,onMouseEnter:()=>u(x),onClick:()=>y(g),children:[(0,nr.jsx)("span",{className:"lum-st-palette__label",children:g.label}),(0,nr.jsx)("span",{className:"lum-st-palette__detail lum-muted",children:g.detail})]})},g.id)),h.length===0&&(0,nr.jsx)("li",{className:"lum-st-palette__empty lum-muted",children:"No matches"})]})]})})}var E_=[["Space / K","Play / pause"],["R","Restart"],["\u2190 / \u2192","Seek \u221310s (\u22131s on ruler)"],["[ / ]","Walk prev / next event in lane"],[", / .","Frame step (paused)"],["< / >","Slower / faster"],["N / \u21E7N","Next / previous problem"],["\u2318K / Ctrl K","Command palette"],["E","Cycle feed type filter"],["Z / \u21E7Z","Zoom to selection / out"],["X","Toggle magnetic snap"],["T / D","Stage / Debug focus"],["`","Toggle feed focus"],["S","Auto-skip idle (jump)"],["\u21E7S","Auto-skim idle (8\xD7)"],["L","Loop"],["F","Fullscreen"],["C","Comment at playhead"],["Home / End","Start / end (ruler)"],["Esc","Clear selection / close"],["?","This help"]];function N_({open:e,onClose:t}){return e?(0,rr.jsx)("div",{className:"lum-pl-help",role:"dialog","aria-modal":"true","aria-label":"Keyboard shortcuts",onClick:t,children:(0,rr.jsxs)("div",{className:"lum-pl-help__card",onClick:r=>r.stopPropagation(),children:[(0,rr.jsxs)("div",{className:"lum-pl-help__head",children:[(0,rr.jsx)("strong",{children:"Keyboard shortcuts"}),(0,rr.jsx)("button",{className:"lum-iconbtn","aria-label":"Close",onClick:t,children:"\u2715"})]}),(0,rr.jsx)("div",{className:"lum-pl-help__grid",children:E_.map(([r,n])=>(0,rr.jsxs)("div",{className:"lum-pl-help__row",children:[(0,rr.jsx)("kbd",{className:"lum-pl-kbd lum-mono",children:r}),(0,rr.jsx)("span",{children:n})]},r))}),(0,rr.jsx)("p",{className:"lum-muted",children:"Shortcuts are disabled while typing in a text field."})]})}):null}function P_(e){let[t,r]=(0,Cu.useState)("wide");return(0,Cu.useEffect)(()=>{let n=e.current;if(!n)return;let a=(s,l)=>s<480?"compact":s<720||l<400?"narrow":s<1100?"mid":"wide",o=new ResizeObserver(s=>{let l=s[0];if(!l)return;let{width:i,height:d}=l.contentRect;r(a(i,d))});return o.observe(n),r(a(n.clientWidth,n.clientHeight)),()=>o.disconnect()},[e]),t}function pb(e,t){let r=sm(t);return e&&r.includes(e)?e:r.includes("debug")?"debug":r[0]}var mb="obsrviq.player.inspectorW",hb="obsrviq.player.timelineH";function gb(e){try{let t=Number(localStorage.getItem(e));return Number.isFinite(t)&&t>0?t:null}catch{return null}}function xb(e,t){try{t!=null?localStorage.setItem(e,String(t)):localStorage.removeItem(e)}catch{}}function Bb(e){let t=(0,X.useRef)();t.current||(t.current=zk());let r=t.current;return(0,Ve.jsx)(qk,{store:r,children:(0,Ve.jsx)($k,{value:{apiBaseUrl:e.apiBaseUrl,token:e.token,apiKey:e.apiKey,sessionId:e.sessionId},children:(0,Ve.jsx)(nv,{children:(0,Ve.jsx)(T_,{...e,store:r})})})})}function T_({sessionId:e,apiBaseUrl:t,token:r,apiKey:n,startAtMs:a,startMode:o,defaultMode:s,allowedModes:l,defaultSpeed:i,allowFullscreen:d,shareUrl:u,onEnded:p,onError:c,onSeek:f,onComment:h,onBack:m,backLabel:y,live:g,theme:x,embedded:v,className:S,topbarActions:b,focus:w,clip:C,store:L}){let k=(0,X.useRef)(null),_=(0,X.useRef)(null),N=(0,X.useRef)(null),P=(0,X.useRef)([]),I=(0,X.useRef)(-1),re=(0,X.useRef)(0),_e=(0,X.useRef)([]),se=(0,X.useRef)(-1),j=(0,X.useRef)(new Set),ve=(0,X.useRef)(new Set),Me=(0,X.useRef)(0),Le=(0,X.useRef)(!1),[Ce,br]=(0,X.useState)(0),[T,yt]=(0,X.useState)(!1),[wt,En]=(0,X.useState)(!1),[Ye,it]=(0,X.useState)(!1),[Sr,Cr]=(0,X.useState)(0),[K,Re]=(0,X.useState)(!1),[ue,Ee]=(0,X.useState)(null),ut=(0,X.useRef)(null),[ge,fa]=(0,X.useState)(()=>gb(mb)),[Lu,pm]=(0,X.useState)(()=>gb(hb));(0,X.useEffect)(()=>{xb(mb,ge)},[ge]),(0,X.useEffect)(()=>{xb(hb,Lu)},[Lu]);let Gb=(0,X.useCallback)(D=>{let W=ut.current;if(!W)return;D.preventDefault();let F=W.getBoundingClientRect(),ee=D.currentTarget;ee.setPointerCapture(D.pointerId),ee.classList.add("is-active");let O=ne=>{let dt=Math.max(320,Math.min(820,F.width-360));fa(Math.min(dt,Math.max(300,Math.round(F.right-ne.clientX))))},de=()=>{ee.classList.remove("is-active"),window.removeEventListener("pointermove",O),window.removeEventListener("pointerup",de)};window.addEventListener("pointermove",O),window.addEventListener("pointerup",de)},[]),Xb=(0,X.useCallback)(D=>{let W=k.current;if(!W)return;D.preventDefault();let F=W.getBoundingClientRect(),ee=D.currentTarget;ee.setPointerCapture(D.pointerId),ee.classList.add("is-active");let O=ne=>{let dt=Math.max(140,F.height-240);pm(Math.min(dt,Math.max(120,Math.round(F.bottom-ne.clientY))))},de=()=>{ee.classList.remove("is-active"),window.removeEventListener("pointermove",O),window.removeEventListener("pointerup",de)};window.addEventListener("pointermove",O),window.addEventListener("pointerup",de)},[]),Nr=P_(k),pa=M(D=>D.focusMode),ma={apiBaseUrl:t,token:r,apiKey:n},Vs=d??ue?.allowFullscreen??!0,Kb=u??ue?.shareUrl,mm=(0,X.useRef)(Vs);mm.current=Vs;let hm=(0,X.useRef)(!1);(0,X.useEffect)(()=>{if(hm.current)return;let D=l!=null&&(s??o)!=null&&i!=null;if(ue==null&&!D)return;hm.current=!0;let W=L.getState(),F=sm(l??ue?.allowedModes);W.setAllowedModes(F);let ee=s??o??ue?.defaultMode;ee&&F.includes(ee)&&L.setState({focusMode:ee});let O=i??ue?.defaultSpeed;if(O!=null){let de=vb.reduce((ne,dt)=>Math.abs(dt-O)<Math.abs(ne-O)?dt:ne);L.setState({speed:de}),W.controller?.setSpeed(de)}},[ue]),(0,X.useEffect)(()=>{let D=!1;return yt(!1),_e.current=[],se.current=-1,j.current=new Set,ve.current=new Set,Me.current=0,Le.current=!1,L.setState({status:"loading",error:null,loadProgress:0,controller:null,pendingSeek:null}),(async()=>{if(g){let{detail:Z,events:ye,rrwebEvents:lr}=await Gk(e,ma,(ir,Q)=>!D&&L.setState({loadProgress:Q?ir/Q:1}));if(D)return;if(Ee(Z.replaySettings??{}),P.current=lr,I.current=Z.replayChunks.reduce((ir,Q)=>Math.max(ir,Q.seq),-1),re.current=ye.reduce((ir,Q)=>Math.max(ir,Q.t),0),Z.summary.hasReplay&&lr.length>0)L.setState({events:ye,markers:Us(ye),summary:Z.summary,hasReplay:!0,status:"buffering",live:!0,following:!0});else{let ir=ye.map(ke=>ke.t),Q=ir.length?Math.min(...ir):0,G=ir.length?Math.max(...ir):0;L.setState({events:ye,markers:Us(ye),summary:Z.summary,hasReplay:!1,offset:Q,durationMs:Math.max(0,G-Q),currentTime:0,status:"paused",focusMode:pb(s??o??Z.replaySettings?.defaultMode,l??Z.replaySettings?.allowedModes)})}yt(!0);return}let{detail:F,events:ee}=await Wk(e,ma);if(D)return;Ee(F.replaySettings??{});let O=[...F.replayChunks].sort((Z,ye)=>Z.seq-ye.seq);if(_e.current=O,O.forEach((Z,ye)=>{Z.hasSnapshot&&ve.current.add(ye)}),re.current=ee.reduce((Z,ye)=>Math.max(Z,ye.t),0),!(F.summary.hasReplay&&O.length>0)){let Z=ee.map(io=>io.t),ye=Z.length?Math.min(...Z):0,lr=Z.length?Math.max(...Z):0;L.setState({events:ee,markers:Us(ee),summary:F.summary,hasReplay:!1,offset:ye,durationMs:Math.max(0,lr-ye),currentTime:0,status:"paused",focusMode:pb(s??o??F.replaySettings?.defaultMode,l??F.replaySettings?.allowedModes)}),yt(!0);return}let ne=O.reduce((Z,ye)=>Math.min(Z,ye.firstT),O[0].firstT),dt=O.reduce((Z,ye)=>Math.max(Z,ye.lastT),0);Me.current=Math.max(0,dt-ne),L.setState({events:ee,markers:Us(ee),summary:F.summary,hasReplay:!0,status:"loading",durationMs:Me.current,bufferedMs:0,live:!1,following:!1});let sr=Math.min(O.length,8),Vt=[],Nn=-1;for(let Z=0;Z<sr;Z++){let ye=await Yp(O[Z].url,ma).catch(()=>[]);if(D)return;if(Vt=Vt.concat(ye),Nn=Z,j.current.add(Z),ye.some(lr=>lr.type===2)&&ve.current.add(Z),Vt.some(lr=>lr.type===2))break}if(Vt.length<2||!Vt.some(Z=>Z.type===2)){L.setState({status:"error",error:"Replay data unavailable.",errorNotFound:!1});return}P.current=Vt,se.current=Nn,L.setState({loadProgress:O.length?(Nn+1)/O.length:1}),yt(!0)})().catch(F=>{D||(Ee(ee=>ee??{}),L.setState({status:"error",error:F instanceof Error?F.message:"Load failed",errorNotFound:!!F?.notFound}))}),()=>{D=!0}},[e,Ce]),(0,X.useEffect)(()=>{if(!T)return;let D=L.getState();if(!D.hasReplay)return;let W=_.current;if(!W)return;W.innerHTML="";let F;try{F=new rI(W,P.current,{speed:D.speed,showCursor:D.showCursor,autoSkim:D.autoSkim,autoSkip:D.autoSkip},{onTime:ne=>L.getState()._onTime(ne),onFinish:()=>L.getState()._onFinish(),onState:ne=>L.setState({status:ne}),onSkim:ne=>L.setState({isSkimming:ne}),onSkip:ne=>L.getState()._onSkip(ne)})}catch(ne){L.setState({status:"error",error:ne instanceof Error?ne.message:"Replay initialization failed",errorNotFound:!1});return}L.getState()._attachController(F);let ee=F.meta.startTime-D.summary.startedAt;L.setState({offset:ee});let O=L.getState().events.map(ne=>ne.t-ee).filter(ne=>ne>=0);O.length&&F.setActivityTimes(O),g?(F.seek(F.meta.totalTime),L.setState({currentTime:F.meta.totalTime})):a!=null&&!w&&!C&&L.getState().seek(a-ee);let de=new ResizeObserver(()=>F.fit());return de.observe(W),()=>{de.disconnect(),L.getState()._detachController()}},[T]),(0,X.useEffect)(()=>{if(!T||g||!w)return;let D=L.getState(),W;w.eventId&&D.events.some(F=>F.id===w.eventId)&&(W=w.eventId),!W&&w.kind&&w.selector&&(W=D.events.find(ee=>ee.type==="custom"&&ee.name===`${w.kind}_click`&&String(ee.props?.selector??"")===w.selector)?.id),!W&&w.kind&&(W=D.markers.find(F=>F.kind===w.kind&&F.ref)?.ref),W?D.select(W):a!=null&&D.seek(D.toRelative(a))},[T]),(0,X.useEffect)(()=>{if(!T||g)return;let D=L.getState();if(!C){D.setClip(null,null,!1);return}let W=Z=>Z.name,F=D.summary?.startedAt??null,ee=Z=>Z!=null&&F!=null?Z-F:void 0,O=C.fromMs??ee(C.fromUtc);if(O==null&&C.fromEvent){let Z=D.events.find(ye=>ye.type==="custom"&&W(ye)===C.fromEvent);Z&&(O=Z.t)}if(O==null){D.setClip(null,null,!1);return}let de=C.toMs??ee(C.toUtc);if(de==null&&C.toEvent){let Z=D.events.find(ye=>ye.type==="custom"&&W(ye)===C.toEvent&&ye.t>O);Z&&(de=Z.t)}(C.toMs!=null||C.toUtc!=null||C.toEvent!=null)&&de==null&&console.warn(`[obsrviq] clip end ${C.toEvent?`event "${C.toEvent}"`:"time"} did not resolve \u2014 playing from the start, unbounded.`);let ne=D.toRelative(O),dt=de!=null?D.toRelative(de):null,sr=dt!=null&&dt>ne?dt:null;D.setClip(ne,sr,!!C.loop&&sr!=null),D.seek(ne);let Vt=L.getState();(Vt._covers?Vt._covers(ne):ne<=Vt.bufferedMs+1)?D.play():Le.current=!0},[T,C?.fromEvent,C?.toEvent,C?.fromMs,C?.toMs,C?.fromUtc,C?.toUtc,C?.loop]),(0,X.useEffect)(()=>L.subscribe(D=>{D.status==="playing"?Le.current=!0:(D.status==="paused"||D.status==="ended")&&(Le.current=!1)}),[L]),(0,X.useEffect)(()=>L.subscribe((D,W)=>{D.status==="ended"&&W.status!=="ended"&&p?.()}),[L,p]),(0,X.useEffect)(()=>L.subscribe((D,W)=>{D.status==="error"&&W.status!=="error"&&c?.({reason:D.errorNotFound?"not_found":"error",message:D.error??"Could not load the recording."})}),[L,c]),(0,X.useEffect)(()=>{if(g||!T||!L.getState().hasReplay)return;let D=!1,W=j.current,F=ve.current,ee=_e.current.some(Q=>Q.hasSnapshot),O=Q=>{let G=_e.current,ke=0;for(let we=0;we<G.length&&G[we].firstT<=Q;we++)ke=we;return ke},de=Q=>{let G=Q+L.getState().offset,ke=O(G);if(!W.has(ke))return!1;for(let we=ke;we>=0&&W.has(we);we--)if(F.has(we))return!0;return!1},ne=Q=>{let G=O(Q+L.getState().offset),ke=_e.current;for(let we=G+1;we<ke.length;we++)if(!W.has(we))return!0;return!1};L.getState()._setLoaderProbes(de,ne);let dt=()=>{let Q=_e.current,G=-1;for(;W.has(G+1);)G++;let ke=G>=0?Math.max(0,Q[G].lastT-L.getState().offset):0;L.setState({bufferedMs:Math.max(L.getState().bufferedMs,ke),loadProgress:Q.length?W.size/Q.length:1})},sr=()=>{let Q=L.getState();if(Q.controller){if(Q.pendingSeek!=null){if(de(Q.pendingSeek)){let G=Q.pendingSeek;Q.controller.seek(G),Le.current?(Q.controller.play(G),L.setState({pendingSeek:null,currentTime:G,status:"playing"})):L.setState({pendingSeek:null,currentTime:G,status:"paused"})}return}if(Q.status==="buffering"){let G=O(Q.currentTime+Q.offset);if(!W.has(G))return;io(G)>G?Le.current?(Q.controller.play(Q.currentTime),L.setState({status:"playing"})):L.setState({status:"paused"}):G>=_e.current.length-1&&L.setState({status:"ended",currentTime:L.getState().durationMs})}}},Vt=async Q=>{try{return await Yp(Q,ma)}catch{await new Promise(G=>setTimeout(G,250));try{return await Yp(Q,ma)}catch{return null}}},Nn=6,Z=async(Q,G)=>{let ke=_e.current,we=Math.max(0,Q),uo=Math.min(ke.length-1,G),Iu=[];for(let Pr=we;Pr<=uo;Pr++)W.has(Pr)||Iu.push(Pr);for(let Pr=0;Pr<Iu.length&&!D;Pr+=Nn){let _u=Iu.slice(Pr,Pr+Nn),Jb=await Promise.all(_u.map(ha=>Vt(ke[ha].url)));if(D)return;let vm=L.getState().controller;if(!vm)return;for(let ha=0;ha<_u.length;ha++){let Mu=_u[ha],Ks=Jb[ha];Ks&&Ks.length?(vm.appendEvents(Ks),Ks.some(Zb=>Zb.type===2)&&F.add(Mu)):console.warn(`[obsrviq] replay chunk seq ${ke[Mu]?.seq} unavailable \u2014 skipping`),W.add(Mu)}dt(),sr()}},ye=8,lr=async Q=>{for(let ke=Q;ke>=0;ke--)if(F.has(ke)){if(ee||Q-ke<=ye)return ke;break}let G=Q;for(;G>=0&&!D;){let ke=Math.max(0,G-ye+1);await Z(ke,G);for(let we=G;we>=ke;we--)if(F.has(we))return we;if(ke===0)return 0;G=ke-1}return 0},io=Q=>{let G=Q;for(;W.has(G+1);)G++;return G};return(async()=>{for(;!D&&!L.getState().controller;)await new Promise(Q=>setTimeout(Q,30));for(;!D;){let Q=_e.current;if(W.size>=Q.length)break;let G=L.getState();if(G.pendingSeek!=null&&G.controller){if(!de(G.pendingSeek)){let we=O(G.pendingSeek+G.offset),uo=await lr(we);await Z(uo,we)}sr();continue}if((G.status==="playing"||G.status==="buffering")&&!de(G.currentTime)){let we=O(G.currentTime+G.offset),uo=await lr(we);await Z(uo,we),sr();continue}let ke=O(G.currentTime+G.offset);if(W.has(ke)){let we=io(ke);if(we<Q.length-1){await Z(we+1,we+1);continue}}await new Promise(we=>setTimeout(we,200))}D||sr()})(),()=>{D=!0,L.getState()._setLoaderProbes(null,null)}},[g,T]),(0,X.useEffect)(()=>{if(!g||!T)return;let D=!1,W=async()=>{let ee=L.getState().controller;if(!(!ee||D))try{let O=await Xk(e,ma,I.current,re.current);if(D)return;if(I.current=O.maxSeq,O.newRrwebEvents.length){let ne=ee.appendEvents(O.newRrwebEvents);L.setState({durationMs:ne,bufferedMs:ne}),L.getState().following&&(ee.seek(ne),L.setState({currentTime:ne}))}if(O.newEvents.length){re.current=O.newEvents.reduce((dt,sr)=>Math.max(dt,sr.t),re.current);let ne=[...L.getState().events,...O.newEvents];L.setState({events:ne,markers:Us(ne)})}let de=O.summary.lastEventAt??0;de&&Date.now()-de>4e4&&(L.setState({live:!1,following:!1}),D=!0)}catch{}};W();let F=setInterval(()=>{W()},1e3);return()=>{D=!0,clearInterval(F)}},[g,T]),(0,X.useEffect)(()=>{let D=L.getState().controller;D&&requestAnimationFrame(()=>D.fit())},[pa,Nr,L]),(0,X.useEffect)(()=>{let D=k.current;if(!D)return;let W=F=>{let ee=F.target;if(ee&&(ee.tagName==="INPUT"||ee.tagName==="TEXTAREA"||ee.isContentEditable))return;let O=L.getState();if((F.metaKey||F.ctrlKey)&&(F.key==="k"||F.key==="K")){F.preventDefault(),O.openPalette(!O.paletteOpen);return}if(!(F.metaKey||F.ctrlKey))switch(F.key){case" ":case"k":F.preventDefault(),O.toggle();break;case"r":O.restart();break;case"ArrowLeft":F.preventDefault(),O.seek(O.currentTime-1e4);break;case"ArrowRight":F.preventDefault(),O.seek(O.currentTime+1e4);break;case"[":O.jumpEvent(-1);break;case"]":O.jumpEvent(1);break;case",":F.shiftKey?Gs(-1):O.step(-1);break;case".":F.shiftKey?Gs(1):O.step(1);break;case"s":case"S":F.shiftKey?O.setAutoSkim(!O.autoSkim):O.setAutoSkip(!O.autoSkip);break;case"l":case"L":O.setLoop(!O.loop);break;case"f":case"F":mm.current&&ku();break;case"c":case"C":h?.(O.currentTime+O.offset);break;case"n":case"N":F.preventDefault(),O.nextProblem(F.shiftKey?-1:1);break;case"e":case"E":{let de=["all","network","console","error","signal","task","nav"],ne=de.indexOf(O.feedFilter);O.setFeedFilter(de[(ne+1)%de.length]);break}case"z":case"Z":F.shiftKey?O.zoomStack.length&&O.zoomOutTo(O.zoomStack.length-1):O.selectionRange&&O.zoomTo(O.selectionRange[0],O.selectionRange[1]);break;case"x":case"X":O.toggleSnap();break;case"t":case"T":O.setFocusMode(O.focusMode==="stage"?"balanced":"stage");break;case"d":case"D":O.setFocusMode(O.focusMode==="debug"?"balanced":"debug");break;case"`":Cr(de=>de+1),Nr==="mid"&&Re(de=>!de);break;case">":Gs(1);break;case"<":Gs(-1);break;case"?":it(de=>!de);break;case"Escape":O.paletteOpen?O.openPalette(!1):O.selectedEventId?O.select(null):O.zoomStack.length?O.zoomOutTo(O.zoomStack.length-1):Ye?it(!1):K&&Re(!1);break;default:break}};return D.addEventListener("keydown",W),()=>D.removeEventListener("keydown",W)},[Nr,Ye,K]);let Gs=(0,X.useCallback)(D=>{let W=L.getState(),F=[.5,1,1.5,2,4,8],ee=F.indexOf(W.speed),O=F[Math.min(F.length-1,Math.max(0,ee+D))]??W.speed;W.setSpeed(O)},[L]),ku=(0,X.useCallback)(()=>{let D=k.current;D&&(document.fullscreenElement?document.exitFullscreen?.().catch(()=>{}):D.requestFullscreen?.().catch(()=>{}))},[]);(0,X.useEffect)(()=>{let D=()=>En(!!document.fullscreenElement);return document.addEventListener("fullscreenchange",D),()=>document.removeEventListener("fullscreenchange",D)},[]),(0,X.useEffect)(()=>{if(!f)return;let D=-1;return L.subscribe(W=>{W.currentTime!==D&&(D=W.currentTime,f(W.currentTime+W.offset))})},[f,L]),(0,X.useEffect)(()=>{if(Nr!=="mid"){Re(!1);return}return L.subscribe((D,W)=>{D.selectedEventId&&D.selectedEventId!==W.selectedEventId&&Re(!0)})},[Nr,L]);let gm=x,Xs=Nr==="wide"&&pa!=="stage",xm=pa==="stage"?null:Lu,Qb=xm!=null?{...gm??{},gridTemplateRows:`48px auto minmax(0, 1fr) ${xm}px`}:gm,Yb=Xs&&ge!=null?{gridTemplateColumns:`minmax(0, 1fr) ${ge}px`}:void 0;return(0,Ve.jsxs)("div",{ref:k,className:`lum-root lum lum-pl lum-strata lum-strata--${Nr} lum-strata--${pa} ${v?"lum-pl--embedded":""} ${S??""}`,style:Qb,"data-breakpoint":Nr,"data-focus":pa,tabIndex:0,children:[(0,Ve.jsx)(iI,{isFullscreen:wt,onFullscreen:ku,allowFullscreen:Vs,sessionId:e,shareUrl:Kb,apiBaseUrl:t,onHelp:()=>it(D=>!D),onBack:m,backLabel:y,topbarActions:b}),(0,Ve.jsx)(pI,{}),(0,Ve.jsxs)("div",{className:"lum-st-stagerow",ref:ut,style:Yb,children:[(0,Ve.jsx)("div",{className:"lum-st-stagecol",ref:N,children:(0,Ve.jsx)(mI,{ref:_,onRetry:()=>br(D=>D+1),overlay:(0,Ve.jsx)(vI,{stageRef:_})})}),Xs&&(0,Ve.jsxs)("div",{className:"lum-st-inspectorcol",children:[(0,Ve.jsx)("div",{className:"lum-st-resize lum-st-resize--x",role:"separator","aria-orientation":"vertical","aria-label":"Resize inspector width",title:"Drag to resize \xB7 double-click to reset",onPointerDown:Gb,onDoubleClick:()=>fa(null)}),(0,Ve.jsx)(db,{feedFocusKey:Sr})]})]}),(0,Ve.jsx)(M_,{breakpoint:Nr,isFullscreen:wt,onFullscreen:ku,allowFullscreen:Vs,onResizeStart:pa==="stage"?void 0:Xb,onResizeReset:()=>pm(null)}),!Xs&&(0,Ve.jsx)(Kc,{open:K,onClose:()=>Re(!1),title:"Inspector",children:(0,Ve.jsx)(db,{feedFocusKey:Sr})}),!Xs&&!K&&(0,Ve.jsx)("button",{className:"lum-st-inspectortab",onClick:()=>Re(!0),"aria-label":"Open inspector (`)",children:"Inspector"}),(0,Ve.jsx)(R_,{}),(0,Ve.jsx)(N_,{open:Ye,onClose:()=>it(!1)})]})}var zb=B(ce(),1);function fm({theme:e,className:t,children:r}){let n=typeof e=="string"?e:void 0,a=e&&typeof e=="object"?e:void 0;return(0,zb.jsx)("div",{className:`lum-root lum lum-widget ${t??""}`,"data-lum-theme":n,style:a,children:r})}var ca=B(ce(),1);function A_(e,t){return e?{authorization:`Bearer ${e}`}:t?{authorization:`Bearer ${t}`,"x-obsrviq-key":t}:{}}function D_(e,t){let{apiBaseUrl:r,token:n,apiKey:a,userId:o,siteId:s,clip:l}=t,[i,d]=(0,Yr.useState)({sessionId:null,loading:e,error:null,notFound:!1}),u=JSON.stringify([o,s,l?.fromUtc,l?.toUtc,l?.fromEvent,l?.toEvent]);return(0,Yr.useEffect)(()=>{if(!e||!o)return;let p=new AbortController;d({sessionId:null,loading:!0,error:null,notFound:!1});let c=new URLSearchParams({userId:o});s&&c.set("siteId",s),l?.fromUtc!=null&&l?.toUtc!=null?(c.set("fromUtc",String(l.fromUtc)),c.set("toUtc",String(l.toUtc))):l?.fromEvent&&(c.set("fromEvent",l.fromEvent),l.toEvent&&c.set("toEvent",l.toEvent));let f=r.replace(/\/$/,"");return fetch(`${f}/v1/sessions/locate?${c.toString()}`,{headers:A_(n,a),signal:p.signal}).then(async h=>{if(!h.ok){let m=h.status===404;throw Object.assign(new Error(m?"No matching recording for that user.":`Lookup failed (${h.status}).`),{notFound:m})}return h.json()}).then(h=>{p.signal.aborted||d({sessionId:h.sessionId,loading:!1,error:null,notFound:!1})}).catch(h=>{if(p.signal.aborted)return;let m=!!h?.notFound;d({sessionId:null,loading:!1,error:h instanceof Error?h.message:"Lookup failed.",notFound:m})}),()=>p.abort()},[e,u,r]),i}var O_={display:"flex",alignItems:"center",justifyContent:"center",height:"100%",padding:16,textAlign:"center",color:"var(--lum-muted)",fontSize:14};function Ub({sessionId:e,userId:t,siteId:r,apiBaseUrl:n,apiKey:a,token:o,theme:s,startAtMs:l,clip:i,defaultMode:d,allowedModes:u,defaultSpeed:p,allowFullscreen:c,shareUrl:f,onEnded:h,onError:m,fallback:y="message",height:g=560}){let x=!e&&!!t,v=D_(x,{apiBaseUrl:n,token:o,apiKey:a,userId:t,siteId:r,clip:i}),[S,b]=(0,Yr.useState)(null),w=e??v.sessionId;(0,Yr.useEffect)(()=>b(null),[w]);let C=(0,Yr.useRef)(null);if((0,Yr.useEffect)(()=>{let L=null;!e&&!t?L={reason:"error",message:"Provide a sessionId or a userId."}:v.error?L={reason:v.notFound?"not_found":"error",message:v.error}:S&&(L=S),L?C.current!==L.message&&(C.current=L.message,m?.(L)):C.current=null},[e,t,v.error,v.notFound,S]),!w){if(y==="hide")return null;let L=!e&&!t?"Provide a sessionId or a userId to play a recording.":x&&v.loading?"Finding the recording\u2026":v.error??"Recording unavailable.";return(0,ca.jsx)(fm,{theme:s,className:"lum-widget--replay",children:(0,ca.jsx)("div",{style:{height:g},children:(0,ca.jsx)("div",{style:O_,children:L})})})}return S&&y==="hide"?null:(0,ca.jsx)(fm,{theme:s,className:"lum-widget--replay",children:(0,ca.jsx)("div",{style:{height:g},children:(0,ca.jsx)(Bb,{sessionId:w,apiBaseUrl:n,apiKey:a,token:o,startAtMs:l,clip:i,defaultMode:d,allowedModes:u,defaultSpeed:p,allowFullscreen:c,shareUrl:f,onEnded:h,onError:L=>b(L),embedded:!0})})})}var qb=`/* Obsrviq design tokens (\xA716) \u2014 refined. Override any --lum-* var to white-label.
|
|
141
142
|
All neutrals carry a faint cool-blue hue (~232\xB0) for identity; the accent is a
|
|
142
143
|
confident iris reserved for live / now / active + primary CTA. */
|
|
143
144
|
:root,
|
|
@@ -1891,6 +1892,35 @@ or you can use record.mirror to access the mirror instance during recording.`,Cy
|
|
|
1891
1892
|
overflow: hidden;
|
|
1892
1893
|
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
|
|
1893
1894
|
}
|
|
1895
|
+
/* WebSocket connection: a thin lifetime line with per-frame ticks (send/recv). */
|
|
1896
|
+
.lum-wf__bar--ws {
|
|
1897
|
+
top: 12px;
|
|
1898
|
+
height: 4px;
|
|
1899
|
+
box-shadow: none;
|
|
1900
|
+
border-radius: 2px;
|
|
1901
|
+
background: color-mix(in srgb, var(--lum-info) 55%, transparent);
|
|
1902
|
+
}
|
|
1903
|
+
.lum-wf__bar--ws.lum-wf__bar--default {
|
|
1904
|
+
background: color-mix(in srgb, var(--lum-faint) 60%, transparent);
|
|
1905
|
+
}
|
|
1906
|
+
.lum-wf__bar--ws.lum-wf__bar--error {
|
|
1907
|
+
background: color-mix(in srgb, var(--lum-error) 60%, transparent);
|
|
1908
|
+
}
|
|
1909
|
+
.lum-wf__wsframe {
|
|
1910
|
+
position: absolute;
|
|
1911
|
+
top: 8px;
|
|
1912
|
+
width: 2px;
|
|
1913
|
+
height: 12px;
|
|
1914
|
+
border-radius: 1px;
|
|
1915
|
+
transform: translateX(-1px);
|
|
1916
|
+
pointer-events: none;
|
|
1917
|
+
}
|
|
1918
|
+
.lum-wf__wsframe--send {
|
|
1919
|
+
background: var(--lum-accent);
|
|
1920
|
+
}
|
|
1921
|
+
.lum-wf__wsframe--recv {
|
|
1922
|
+
background: var(--lum-ok);
|
|
1923
|
+
}
|
|
1894
1924
|
.lum-wf__seg {
|
|
1895
1925
|
display: block;
|
|
1896
1926
|
min-width: 0;
|
|
@@ -2152,11 +2182,102 @@ or you can use record.mirror to access the mirror instance during recording.`,Cy
|
|
|
2152
2182
|
height: 40px;
|
|
2153
2183
|
border-bottom: 1px solid var(--lum-border);
|
|
2154
2184
|
}
|
|
2185
|
+
.lum-st-overview__labelwrap {
|
|
2186
|
+
display: inline-flex;
|
|
2187
|
+
align-items: center;
|
|
2188
|
+
gap: 4px;
|
|
2189
|
+
}
|
|
2155
2190
|
.lum-st-overview__label {
|
|
2156
2191
|
font-size: 10px;
|
|
2157
2192
|
letter-spacing: 0.08em;
|
|
2158
2193
|
font-weight: 600;
|
|
2159
2194
|
}
|
|
2195
|
+
.lum-st-overview__i-wrap {
|
|
2196
|
+
position: relative;
|
|
2197
|
+
display: inline-flex;
|
|
2198
|
+
align-items: center;
|
|
2199
|
+
}
|
|
2200
|
+
.lum-st-overview__i {
|
|
2201
|
+
color: var(--lum-muted);
|
|
2202
|
+
opacity: 0.55;
|
|
2203
|
+
cursor: help;
|
|
2204
|
+
}
|
|
2205
|
+
.lum-st-overview__i-wrap:hover .lum-st-overview__i {
|
|
2206
|
+
opacity: 0.9;
|
|
2207
|
+
}
|
|
2208
|
+
/* \u24D8 legend + explanation popover (opens above the icon) */
|
|
2209
|
+
.lum-st-overview__legend-pop {
|
|
2210
|
+
position: absolute;
|
|
2211
|
+
bottom: calc(100% + 8px);
|
|
2212
|
+
left: 0;
|
|
2213
|
+
z-index: 30;
|
|
2214
|
+
width: 260px;
|
|
2215
|
+
background: var(--lum-overlay);
|
|
2216
|
+
border: 1px solid var(--lum-border-strong);
|
|
2217
|
+
border-radius: 10px;
|
|
2218
|
+
box-shadow: var(--lum-shadow-lg);
|
|
2219
|
+
padding: 9px 11px;
|
|
2220
|
+
pointer-events: none;
|
|
2221
|
+
}
|
|
2222
|
+
.lum-st-overview__legend-lead {
|
|
2223
|
+
font-size: 11px;
|
|
2224
|
+
line-height: 1.45;
|
|
2225
|
+
color: var(--lum-muted);
|
|
2226
|
+
margin-bottom: 8px;
|
|
2227
|
+
}
|
|
2228
|
+
.lum-st-overview__legend {
|
|
2229
|
+
display: flex;
|
|
2230
|
+
flex-wrap: wrap;
|
|
2231
|
+
gap: 5px 12px;
|
|
2232
|
+
}
|
|
2233
|
+
.lum-st-overview__legend-item {
|
|
2234
|
+
display: inline-flex;
|
|
2235
|
+
align-items: center;
|
|
2236
|
+
gap: 5px;
|
|
2237
|
+
font-size: 11px;
|
|
2238
|
+
color: var(--lum-text);
|
|
2239
|
+
}
|
|
2240
|
+
/* per-bar hover insight (opens above the hovered bar) */
|
|
2241
|
+
.lum-st-overview__tip {
|
|
2242
|
+
position: absolute;
|
|
2243
|
+
bottom: calc(100% + 6px);
|
|
2244
|
+
transform: translateX(-50%);
|
|
2245
|
+
z-index: 30;
|
|
2246
|
+
background: var(--lum-overlay);
|
|
2247
|
+
border: 1px solid var(--lum-border-strong);
|
|
2248
|
+
border-radius: 8px;
|
|
2249
|
+
box-shadow: var(--lum-shadow-lg);
|
|
2250
|
+
padding: 6px 9px;
|
|
2251
|
+
pointer-events: none;
|
|
2252
|
+
white-space: nowrap;
|
|
2253
|
+
}
|
|
2254
|
+
.lum-st-overview__tip-time {
|
|
2255
|
+
font-size: 11px;
|
|
2256
|
+
font-family: var(--lum-font-mono);
|
|
2257
|
+
color: var(--lum-muted);
|
|
2258
|
+
margin-bottom: 3px;
|
|
2259
|
+
}
|
|
2260
|
+
.lum-st-overview__tip-list {
|
|
2261
|
+
list-style: none;
|
|
2262
|
+
margin: 0;
|
|
2263
|
+
padding: 0;
|
|
2264
|
+
display: flex;
|
|
2265
|
+
flex-direction: column;
|
|
2266
|
+
gap: 2px;
|
|
2267
|
+
}
|
|
2268
|
+
.lum-st-overview__tip-list li {
|
|
2269
|
+
display: flex;
|
|
2270
|
+
align-items: center;
|
|
2271
|
+
gap: 6px;
|
|
2272
|
+
font-size: 12px;
|
|
2273
|
+
color: var(--lum-text);
|
|
2274
|
+
}
|
|
2275
|
+
.lum-st-overview__tip-dot {
|
|
2276
|
+
width: 7px;
|
|
2277
|
+
height: 7px;
|
|
2278
|
+
border-radius: 2px;
|
|
2279
|
+
flex: none;
|
|
2280
|
+
}
|
|
2160
2281
|
.lum-st-overview__spark {
|
|
2161
2282
|
position: relative;
|
|
2162
2283
|
flex: 1;
|
|
@@ -2373,6 +2494,19 @@ or you can use record.mirror to access the mirror instance during recording.`,Cy
|
|
|
2373
2494
|
.lum-st-rail.is-muted {
|
|
2374
2495
|
opacity: 0.4;
|
|
2375
2496
|
}
|
|
2497
|
+
/* Collapsed rail must match the collapsed track height (.lum-st-lane--collapsed,
|
|
2498
|
+
16px) or the taller rail dictates the row and nothing visibly reduces. Drop the
|
|
2499
|
+
solo/mute controls to fit the shorter row; the chevron + label + count remain. */
|
|
2500
|
+
.lum-st-rail.is-collapsed {
|
|
2501
|
+
height: 16px;
|
|
2502
|
+
font-size: 11px;
|
|
2503
|
+
}
|
|
2504
|
+
.lum-st-rail.is-collapsed .lum-st-rail__collapse {
|
|
2505
|
+
padding: 0;
|
|
2506
|
+
}
|
|
2507
|
+
.lum-st-rail.is-collapsed .lum-st-rail__ctrls {
|
|
2508
|
+
display: none;
|
|
2509
|
+
}
|
|
2376
2510
|
.lum-st-rail__collapse {
|
|
2377
2511
|
background: transparent;
|
|
2378
2512
|
border: none;
|
|
@@ -2945,6 +3079,147 @@ or you can use record.mirror to access the mirror instance during recording.`,Cy
|
|
|
2945
3079
|
border-radius: 2px;
|
|
2946
3080
|
}
|
|
2947
3081
|
|
|
3082
|
+
/* Network body \u2014 DevTools-style JSON tree + Parsed/Raw toggle */
|
|
3083
|
+
.lum-pl-body__head {
|
|
3084
|
+
display: flex;
|
|
3085
|
+
align-items: center;
|
|
3086
|
+
justify-content: space-between;
|
|
3087
|
+
gap: 8px;
|
|
3088
|
+
}
|
|
3089
|
+
.lum-pl-seg {
|
|
3090
|
+
display: inline-flex;
|
|
3091
|
+
border: 1px solid var(--lum-border);
|
|
3092
|
+
border-radius: var(--lum-radius-sm);
|
|
3093
|
+
overflow: hidden;
|
|
3094
|
+
}
|
|
3095
|
+
.lum-pl-seg__btn {
|
|
3096
|
+
background: transparent;
|
|
3097
|
+
border: none;
|
|
3098
|
+
color: var(--lum-muted);
|
|
3099
|
+
font-size: 11px;
|
|
3100
|
+
padding: 2px 9px;
|
|
3101
|
+
cursor: pointer;
|
|
3102
|
+
}
|
|
3103
|
+
.lum-pl-seg__btn.is-active {
|
|
3104
|
+
background: var(--lum-accent-soft);
|
|
3105
|
+
color: var(--lum-accent);
|
|
3106
|
+
}
|
|
3107
|
+
.lum-jt {
|
|
3108
|
+
background: var(--lum-bg);
|
|
3109
|
+
border: 1px solid var(--lum-border);
|
|
3110
|
+
border-radius: var(--lum-radius-sm);
|
|
3111
|
+
padding: 6px 8px;
|
|
3112
|
+
margin: 4px 0;
|
|
3113
|
+
overflow: auto;
|
|
3114
|
+
max-height: 340px;
|
|
3115
|
+
font-size: 12px;
|
|
3116
|
+
line-height: 1.55;
|
|
3117
|
+
}
|
|
3118
|
+
.lum-jt__row {
|
|
3119
|
+
border-radius: 3px;
|
|
3120
|
+
}
|
|
3121
|
+
.lum-jt__branch {
|
|
3122
|
+
cursor: pointer;
|
|
3123
|
+
}
|
|
3124
|
+
.lum-jt__branch:hover {
|
|
3125
|
+
background: var(--lum-surface-2);
|
|
3126
|
+
}
|
|
3127
|
+
.lum-jt__caret {
|
|
3128
|
+
display: inline-block;
|
|
3129
|
+
width: 12px;
|
|
3130
|
+
color: var(--lum-faint);
|
|
3131
|
+
user-select: none;
|
|
3132
|
+
}
|
|
3133
|
+
.lum-jt__key {
|
|
3134
|
+
color: var(--lum-accent);
|
|
3135
|
+
margin-right: 6px;
|
|
3136
|
+
}
|
|
3137
|
+
.lum-jt__str {
|
|
3138
|
+
color: var(--lum-ok);
|
|
3139
|
+
word-break: break-all;
|
|
3140
|
+
}
|
|
3141
|
+
.lum-jt__num {
|
|
3142
|
+
color: var(--lum-info);
|
|
3143
|
+
}
|
|
3144
|
+
.lum-jt__bool {
|
|
3145
|
+
color: var(--lum-warn);
|
|
3146
|
+
}
|
|
3147
|
+
.lum-jt__null {
|
|
3148
|
+
color: var(--lum-faint);
|
|
3149
|
+
}
|
|
3150
|
+
.lum-jt__punc {
|
|
3151
|
+
color: var(--lum-muted);
|
|
3152
|
+
}
|
|
3153
|
+
.lum-jt__preview {
|
|
3154
|
+
color: var(--lum-faint);
|
|
3155
|
+
font-style: italic;
|
|
3156
|
+
}
|
|
3157
|
+
|
|
3158
|
+
/* WebSocket rows + Messages view */
|
|
3159
|
+
.lum-pl-ws__dot {
|
|
3160
|
+
display: inline-block;
|
|
3161
|
+
width: 6px;
|
|
3162
|
+
height: 6px;
|
|
3163
|
+
border-radius: 50%;
|
|
3164
|
+
background: var(--lum-info);
|
|
3165
|
+
margin-right: 5px;
|
|
3166
|
+
vertical-align: middle;
|
|
3167
|
+
}
|
|
3168
|
+
.lum-pl-ws__bar {
|
|
3169
|
+
opacity: 0.55;
|
|
3170
|
+
background-image: repeating-linear-gradient(90deg, currentColor 0 6px, transparent 6px 10px);
|
|
3171
|
+
}
|
|
3172
|
+
.lum-pl-ws-msgs {
|
|
3173
|
+
display: flex;
|
|
3174
|
+
flex-direction: column;
|
|
3175
|
+
gap: 1px;
|
|
3176
|
+
margin-top: 4px;
|
|
3177
|
+
}
|
|
3178
|
+
.lum-pl-ws-frame {
|
|
3179
|
+
border-radius: 5px;
|
|
3180
|
+
overflow: hidden;
|
|
3181
|
+
}
|
|
3182
|
+
.lum-pl-ws-frame--send {
|
|
3183
|
+
background: color-mix(in srgb, var(--lum-accent) 7%, transparent);
|
|
3184
|
+
}
|
|
3185
|
+
.lum-pl-ws-frame__head {
|
|
3186
|
+
width: 100%;
|
|
3187
|
+
display: grid;
|
|
3188
|
+
grid-template-columns: 16px 62px 1fr auto;
|
|
3189
|
+
gap: 8px;
|
|
3190
|
+
align-items: center;
|
|
3191
|
+
text-align: left;
|
|
3192
|
+
background: transparent;
|
|
3193
|
+
border: none;
|
|
3194
|
+
color: var(--lum-text);
|
|
3195
|
+
padding: 4px 7px;
|
|
3196
|
+
cursor: pointer;
|
|
3197
|
+
font-size: 12px;
|
|
3198
|
+
}
|
|
3199
|
+
.lum-pl-ws-frame__head:disabled {
|
|
3200
|
+
cursor: default;
|
|
3201
|
+
}
|
|
3202
|
+
.lum-pl-ws-frame__head:not(:disabled):hover {
|
|
3203
|
+
background: var(--lum-surface-2);
|
|
3204
|
+
}
|
|
3205
|
+
.lum-pl-ws-frame__dir {
|
|
3206
|
+
font-size: 10px;
|
|
3207
|
+
}
|
|
3208
|
+
.lum-pl-ws-frame__dir.is-send {
|
|
3209
|
+
color: var(--lum-accent);
|
|
3210
|
+
}
|
|
3211
|
+
.lum-pl-ws-frame__dir.is-recv {
|
|
3212
|
+
color: var(--lum-ok);
|
|
3213
|
+
}
|
|
3214
|
+
.lum-pl-ws-frame__data {
|
|
3215
|
+
overflow: hidden;
|
|
3216
|
+
text-overflow: ellipsis;
|
|
3217
|
+
white-space: nowrap;
|
|
3218
|
+
}
|
|
3219
|
+
.lum-pl-ws-frame__body {
|
|
3220
|
+
padding: 2px 8px 8px 32px;
|
|
3221
|
+
}
|
|
3222
|
+
|
|
2948
3223
|
/* Network detail (reused verbatim by Inspector \u2192 NetworkDetail) */
|
|
2949
3224
|
.lum-pl-detail__head {
|
|
2950
3225
|
font-size: 13px;
|
|
@@ -3857,7 +4132,7 @@ or you can use record.mirror to access the mirror instance during recording.`,Cy
|
|
|
3857
4132
|
.lum-w-copilot__bar .lum-pl-search {
|
|
3858
4133
|
flex: 1;
|
|
3859
4134
|
}
|
|
3860
|
-
`;var
|
|
4135
|
+
`;var $b="obsrviq-embed-styles";function F_(){if(typeof document>"u"||document.getElementById($b))return;let e=document.createElement("style");e.id=$b,e.textContent=qb,document.head.appendChild(e)}function B_(e){let t=typeof e=="string"?document.querySelector(e):e;if(!t)throw new Error(`ObsrviqReplay.mount: no element matched "${String(e)}"`);return t}function Wb(e,t){let r=B_(e);F_();let n=(0,jb.createRoot)(r);return n.render((0,Hb.createElement)(Ub,t)),{unmount:()=>n.unmount()}}var Vb={mount:Wb};typeof window<"u"&&(window.ObsrviqReplay=Vb);var z_=Vb;return s0(U_);})();
|
|
3861
4136
|
/*! Bundled license information:
|
|
3862
4137
|
|
|
3863
4138
|
react/cjs/react.production.min.js:
|