repoburg 1.3.255 → 1.3.257

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.
Files changed (75) hide show
  1. package/daemon/dist/index.js +61 -3
  2. package/daemon/dist/staticServing.js +2 -2
  3. package/daemon/dist/tabtape/api/follow.js +174 -0
  4. package/daemon/dist/tabtape/api/http.js +221 -0
  5. package/daemon/dist/tabtape/api/record.js +149 -0
  6. package/daemon/dist/tabtape/api/router.js +519 -0
  7. package/daemon/dist/tabtape/api/router.spec.js +604 -0
  8. package/daemon/dist/tabtape/api/static.js +70 -0
  9. package/daemon/dist/tabtape/api/ws.js +166 -0
  10. package/daemon/dist/tabtape/buffer/buffer.js +347 -0
  11. package/daemon/dist/tabtape/buffer/buffer.spec.js +137 -0
  12. package/daemon/dist/tabtape/config.js +108 -0
  13. package/daemon/dist/tabtape/e2e-server.js +96 -0
  14. package/daemon/dist/tabtape/errors.js +77 -0
  15. package/daemon/dist/tabtape/export/export.js +331 -0
  16. package/daemon/dist/tabtape/export/export.spec.js +262 -0
  17. package/daemon/dist/tabtape/har/gostd.js +395 -0
  18. package/daemon/dist/tabtape/har/gostd.spec.js +139 -0
  19. package/daemon/dist/tabtape/har/har.js +582 -0
  20. package/daemon/dist/tabtape/har/har.spec.js +325 -0
  21. package/daemon/dist/tabtape/index.js +134 -0
  22. package/daemon/dist/tabtape/index.spec.js +104 -0
  23. package/daemon/dist/tabtape/lock.js +67 -0
  24. package/daemon/dist/tabtape/log.js +32 -0
  25. package/daemon/dist/tabtape/mcp/definitions.js +362 -0
  26. package/daemon/dist/tabtape/mcp/gofmt.js +227 -0
  27. package/daemon/dist/tabtape/mcp/params.js +345 -0
  28. package/daemon/dist/tabtape/mcp/params.spec.js +172 -0
  29. package/daemon/dist/tabtape/mcp/recordLink.js +122 -0
  30. package/daemon/dist/tabtape/mcp/server.js +411 -0
  31. package/daemon/dist/tabtape/mcp/server.spec.js +722 -0
  32. package/daemon/dist/tabtape/mcp/tools.js +1085 -0
  33. package/daemon/dist/tabtape/query/format.js +195 -0
  34. package/daemon/dist/tabtape/query/network.js +133 -0
  35. package/daemon/dist/tabtape/query/perf.js +93 -0
  36. package/daemon/dist/tabtape/query/query.spec.js +233 -0
  37. package/daemon/dist/tabtape/query/reader.js +602 -0
  38. package/daemon/dist/tabtape/query/types.js +274 -0
  39. package/daemon/dist/tabtape/redact.js +37 -0
  40. package/daemon/dist/tabtape/repro/lang.js +95 -0
  41. package/daemon/dist/tabtape/repro/repro.js +422 -0
  42. package/daemon/dist/tabtape/repro/repro.spec.js +210 -0
  43. package/daemon/dist/tabtape/sink.js +24 -0
  44. package/daemon/dist/tabtape/store/record.js +99 -0
  45. package/daemon/dist/tabtape/store/segment.js +267 -0
  46. package/daemon/dist/tabtape/store/store.js +846 -0
  47. package/daemon/dist/tabtape/store/store.spec.js +485 -0
  48. package/daemon/dist/tabtape/testing/querytest.js +119 -0
  49. package/daemon/dist/tabtape/testing/tmp.js +33 -0
  50. package/package.json +3 -2
  51. package/tabtape/extension/dist/background.js +8 -0
  52. package/tabtape/extension/dist/background.js.map +7 -0
  53. package/tabtape/extension/dist/bridge.js +3 -0
  54. package/tabtape/extension/dist/bridge.js.map +7 -0
  55. package/tabtape/extension/dist/icons/128.png +0 -0
  56. package/tabtape/extension/dist/icons/16.png +0 -0
  57. package/tabtape/extension/dist/icons/32.png +0 -0
  58. package/tabtape/extension/dist/icons/48.png +0 -0
  59. package/tabtape/extension/dist/manifest.json +28 -0
  60. package/tabtape/extension/dist/popup.css +62 -0
  61. package/tabtape/extension/dist/popup.html +34 -0
  62. package/tabtape/extension/dist/popup.js +4 -0
  63. package/tabtape/extension/dist/popup.js.map +7 -0
  64. package/tabtape/extension/dist/recorder.js +133 -0
  65. package/tabtape/extension/dist/recorder.js.map +1 -0
  66. package/tabtape/extension/dist/state.js +2 -0
  67. package/tabtape/extension/dist/state.js.map +1 -0
  68. package/tabtape/playwright/mcp.mjs +58 -0
  69. package/tabtape/playwright/tabtape.d.mts +37 -0
  70. package/tabtape/playwright/tabtape.mjs +146 -0
  71. package/tabtape/ui/dist/app/assets/index-Canv3Ljk.css +1 -0
  72. package/tabtape/ui/dist/app/assets/index-iWNSSrAE.js +145 -0
  73. package/tabtape/ui/dist/app/index.html +14 -0
  74. package/tabtape/ui/dist/export/viewer.css +2 -0
  75. package/tabtape/ui/dist/export/viewer.js +143 -0
@@ -0,0 +1,143 @@
1
+ (function(){var e=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),t=e((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.for(`react.view_transition`),m=Symbol.iterator;function h(e){return typeof e!=`object`||!e?null:(e=m&&e[m]||e[`@@iterator`],typeof e==`function`?e:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,v={};function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`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`)},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function b(){}b.prototype=y.prototype;function x(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}var S=x.prototype=new b;S.constructor=x,_(S,y.prototype),S.isPureReactComponent=!0;var C=Array.isArray;function ee(){}var w={H:null,A:null,T:null,S:null},te=Object.prototype.hasOwnProperty;function T(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function ne(e,t){return T(e.type,t,e.props)}function re(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function E(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var ie=/\/+/g;function ae(e,t){return typeof e==`object`&&e&&e.key!=null?E(``+e.key):t.toString(36)}function oe(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(ee,ee):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function se(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,se(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+ae(e,0):a,C(o)?(i=``,c!=null&&(i=c.replace(ie,`$&/`)+`/`),se(o,r,i,``,function(e){return e})):o!=null&&(re(o)&&(o=ne(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(ie,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(C(e))for(var u=0;u<e.length;u++)a=e[u],s=l+ae(a,u),c+=se(a,r,i,s,o);else if(u=h(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+ae(a,u++),c+=se(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return se(oe(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function D(e,t,n){if(e==null)return e;var r=[],i=0;return se(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function ce(e){if(e._status===-1){var t=e._result,n=t();n.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t,n.status===void 0&&(n.status=`fulfilled`,n.value=t))},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t,n.status===void 0&&(n.status=`rejected`,n.reason=t))}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var le=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)};function ue(e){var t=w.T,n={};n.types=t===null?null:t.types,w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(ee,le)}catch(e){le(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}}function de(e){var t=w.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else ue(de.bind(null,e))}var fe={map:D,forEach:function(e,t,n){D(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return D(e,function(){t++}),t},toArray:function(e){return D(e,function(e){return e})||[]},only:function(e){if(!re(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=fe,e.Component=y,e.Fragment=r,e.Profiler=a,e.PureComponent=x,e.StrictMode=i,e.Suspense=l,e.ViewTransition=p,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.addTransitionType=de,e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=_({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!te.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return T(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)te.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return T(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=re,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:ce}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=ue,e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.3.0`})),n=e(((e,n)=>{n.exports=t()})),r=e((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,S||(S=!0,ne());else{var t=n(l);t!==null&&ie(x,t.startTime-e)}}}var S=!1,C=-1,ee=5,w=-1;function te(){return g?!0:!(e.unstable_now()-w<ee)}function T(){if(g=!1,S){var t=e.unstable_now();w=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&te());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&ie(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?ne():S=!1}}}var ne;if(typeof y==`function`)ne=function(){y(T)};else if(typeof MessageChannel<`u`){var re=new MessageChannel,E=re.port2;re.port1.onmessage=T,ne=function(){E.postMessage(null)}}else ne=function(){_(T,0)};function ie(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.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`):ee=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,ie(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,ne()))),r},e.unstable_shouldYield=te,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),i=e(((e,t)=>{t.exports=r()})),a=e((e=>{var t=n();function r(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}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.`}function i(){}var a={d:{f:i,r:function(){throw Error(r(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for(`react.portal`),s=Symbol.for(`react.recoverable`),c=Symbol.for(`react.optimistic_key`);function l(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:r==null?null:r===c?c:``+r,children:e,containerInfo:t,implementation:n}}var u=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,e.browser=function(e){return{$$typeof:s,_reason:e}},e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(r(299));return l(e,t,null,n)},e.flushSync=function(e){var t=u.T,n=a.p;try{if(u.T=null,a.p=2,e)return e()}finally{u.T=t,a.p=n,a.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,a.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&a.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=d(n,t.crossOrigin),i=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?a.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:o}):n===`script`&&a.d.X(e,{crossOrigin:r,integrity:i,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=d(t.as,t.crossOrigin);a.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}}else t??a.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=d(n,t.crossOrigin);a.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=d(t.as,t.crossOrigin);a.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}else a.d.m(e)}},e.requestFormReset=function(e){a.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return u.H.useFormState(e,t,n)},e.useFormStatus=function(){return u.H.useHostTransitionStatus()},e.version=`19.3.0`})),o=e(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=a()})),s=e((e=>{var t=i(),r=n(),a=o();function s(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}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.`}function c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function l(e){for(var t=e,n=t;n&&!n.alternate;)t=n,t.flags&4098&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function u(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 d(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function f(e){if(l(e)!==e)throw Error(s(188))}function p(e){var t=e.alternate;if(!t){if(t=l(e),t===null)throw Error(s(188));return t===e?e:null}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var a=i.alternate;if(a===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return f(i),e;if(a===r)return f(i),t;a=a.sibling}throw Error(s(188))}if(n.return!==r.return)n=i,r=a;else{for(var o=!1,c=i.child;c;){if(c===n){o=!0,n=i,r=a;break}if(c===r){o=!0,r=i,n=a;break}c=c.sibling}if(!o){for(c=a.child;c;){if(c===n){o=!0,n=a,r=i;break}if(c===r){o=!0,r=a,n=i;break}c=c.sibling}if(!o)throw Error(s(189))}}if(n.alternate!==r)throw Error(s(190))}if(n.tag!==3)throw Error(s(188));return n.stateNode.current===n?e:t}function m(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=m(e),t!==null)return t;e=e.sibling}return null}function h(e,t,n,r,i,a){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,r,i,a)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&h(e.child,t,n,r,i,a))return!0;e=e.sibling}return!1}function g(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function _(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),e.tag!==3&&e.tag!==5&&e.tag!==27);)e=e.return;return t}function v(e){var t=[null,null],n=g(e);return n===null||y(t,e,n.child,{foundSelf:!1}),t}function y(e,t,n,r){for(;n!==null;){if(n===t)r.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(r.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&y(e,t,n.child,r))return!0;n=n.sibling}return!1}function b(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(s(559))}}var x=null,S=null;function C(e,t,n){return e===n||e===t&&(x=e,!0)}function ee(e,t,n){return e===n?(S=e,!1):e===t&&(S!==null&&(x=e),!0)}function w(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function te(e,t,n){for(var r=0,i=e;i;i=n(i))r++;i=0;for(var a=t;a;a=n(a))i++;for(;0<r-i;)e=n(e),r--;for(;0<i-r;)t=n(t),i--;for(;r--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var T=Object.assign,ne=Symbol.for(`react.element`),re=Symbol.for(`react.transitional.element`),E=Symbol.for(`react.portal`),ie=Symbol.for(`react.fragment`),ae=Symbol.for(`react.strict_mode`),oe=Symbol.for(`react.profiler`),se=Symbol.for(`react.consumer`),D=Symbol.for(`react.context`),ce=Symbol.for(`react.forward_ref`),le=Symbol.for(`react.suspense`),ue=Symbol.for(`react.suspense_list`),de=Symbol.for(`react.memo`),fe=Symbol.for(`react.lazy`),pe=Symbol.for(`react.activity`),me=Symbol.for(`react.legacy_hidden`),he=Symbol.for(`react.memo_cache_sentinel`),ge=Symbol.for(`react.view_transition`),_e=Symbol.for(`react.recoverable`),ve=Symbol.iterator;function ye(e){return typeof e!=`object`||!e?null:(e=ve&&e[ve]||e[`@@iterator`],typeof e==`function`?e:null)}var be=Symbol.for(`react.client.reference`);function xe(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===be?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case ie:return`Fragment`;case oe:return`Profiler`;case ae:return`StrictMode`;case le:return`Suspense`;case ue:return`SuspenseList`;case pe:return`Activity`;case ge:return`ViewTransition`}if(typeof e==`object`)switch(e.$$typeof){case E:return`Portal`;case D:return e.displayName||`Context`;case se:return(e._context.displayName||`Context`)+`.Consumer`;case ce:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case de:return t=e.displayName||null,t===null?xe(e.type)||`Memo`:t;case fe:t=e._payload,e=e._init;try{return xe(e(t))}catch{}}return null}var Se=Array.isArray,O=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,k=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ce={pending:!1,data:null,method:null,action:null},we=[],Te=-1;function Ee(e){return{current:e}}function A(e){0>Te||(e.current=we[Te],we[Te]=null,Te--)}function De(e,t){Te++,we[Te]=e.current,e.current=t}var Oe=Ee(null),ke=Ee(null),Ae=Ee(null),je=Ee(null);function Me(e,t){switch(De(Ae,t),De(ke,e),De(Oe,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?up(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=up(t),e=dp(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}A(Oe),De(Oe,e)}function Ne(){A(Oe),A(ke),A(Ae)}function Pe(e){var t=e.memoizedState;t!==null&&(sh._currentValue=t.memoizedState,De(je,e)),t=Oe.current;var n=dp(t,e.type);t!==n&&(De(ke,e),De(Oe,n))}function Fe(e){ke.current===e&&(A(Oe),A(ke)),je.current===e&&(A(je),sh._currentValue=Ce)}var Ie,Le;function Re(e){if(Ie===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Ie=t&&t[1]||``,Le=-1<e.stack.indexOf(`
2
+ at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
3
+ `+Ie+e+Le}var ze=!1;function Be(e,t){if(!e||ze)return``;ze=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}n=!1;try{var i=Object.getOwnPropertyDescriptor(e.prototype,`props`);Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),n=!0,new e}finally{n&&(i===void 0?delete e.prototype.props:Object.defineProperty(e.prototype,"props",i))}}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
4
+ `),l=s.split(`
5
+ `);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
6
+ `+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{ze=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?Re(n):``}function Ve(e,t){switch(e.tag){case 26:case 27:case 5:return Re(e.type);case 16:return Re(`Lazy`);case 13:return e.child!==t&&t!==null?Re(`Suspense Fallback`):Re(`Suspense`);case 19:return Re(`SuspenseList`);case 0:case 15:return Be(e.type,!1);case 11:return Be(e.type.render,!1);case 1:return Be(e.type,!0);case 31:return Re(`Activity`);case 30:return Re(`ViewTransition`);default:return``}}function He(e){try{var t=``,n=null;do t+=Ve(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
7
+ Error generating stack: `+e.message+`
8
+ `+e.stack}}var Ue=Object.prototype.hasOwnProperty,We=t.unstable_scheduleCallback,Ge=t.unstable_cancelCallback,Ke=t.unstable_shouldYield,qe=t.unstable_requestPaint,Je=t.unstable_now,Ye=t.unstable_getCurrentPriorityLevel,Xe=t.unstable_ImmediatePriority,Ze=t.unstable_UserBlockingPriority,Qe=t.unstable_NormalPriority,$e=t.unstable_LowPriority,et=t.unstable_IdlePriority,tt=t.log,nt=t.unstable_setDisableYieldValue,rt=null,it=null;function at(e){if(typeof tt==`function`&&nt(e),it&&typeof it.setStrictMode==`function`)try{it.setStrictMode(rt,e)}catch{}}var ot=Math.clz32?Math.clz32:lt,st=Math.log,ct=Math.LN2;function lt(e){return e>>>=0,e===0?32:31-(st(e)/ct|0)|0}var ut=256,dt=262144,ft=4194304;function pt(e){var t=e&42;if(t!==0)return t;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function mt(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=pt(n))):i=pt(o):i=pt(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=pt(n))):i=pt(o)):i=pt(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function ht(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function gt(e,t){t&8&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var r=31-ot(n),i=1<<r;t|=e[r],n&=~i}return t}function _t(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function vt(){var e=ft;return ft<<=1,!(ft&62914560)&&(ft=4194304),e}function yt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function bt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function xt(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-ot(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&St(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function St(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-ot(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function Ct(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ot(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function wt(e,t){var n=t&-t;return n=n&42?1:Tt(n),(n&(e.suspendedLanes|t))===0?n:0}function Tt(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Et(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function Dt(){var e=k.p;return e===0?(e=window.event,e===void 0?32:Ch(e.type)):e}function Ot(e,t){var n=k.p;try{return k.p=e,t()}finally{k.p=n}}var j=Math.random().toString(36).slice(2),kt=`__reactFiber$`+j,At=`__reactProps$`+j,jt=`__reactContainer$`+j,Mt=`__reactEvents$`+j,Nt=`__reactListeners$`+j,Pt=`__reactHandles$`+j,Ft=`__reactResources$`+j,It=`__reactMarker$`+j,Lt=`__reactLoad$`+j;function Rt(e){delete e[kt],delete e[At],delete e[Nt],delete e[Pt]}function zt(e){var t;if(t=e[kt])return t;for(var n=e.parentNode;n;){if(t=n[jt]||n[kt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=fm(e);e!==null;){if(n=e[kt])return n;e=fm(e)}return t}e=n,n=e.parentNode}return null}function Bt(e){if(e=e[kt]||e[jt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Vt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function Ht(e){var t=e[Ft];return t||=e[Ft]={hoistableStyles:new Map,hoistableScripts:new Map},t}function Ut(e){e[It]=!0}function Wt(e){e[Lt]=void 0}var Gt=new Set,Kt={};function qt(e,t){Jt(e,t),Jt(e+`Capture`,t)}function Jt(e,t){for(Kt[e]=t,e=0;e<t.length;e++)Gt.add(t[e])}var Yt=RegExp(`^[: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]*$`),Xt={},Zt={};function Qt(e){return Ue.call(Zt,e)?!0:Ue.call(Xt,e)?!1:Yt.test(e)?Zt[e]=!0:(Xt[e]=!0,!1)}var M=!1;function $t(){var e=M;return M=!1,e}function en(e,t,n){if(Qt(t)){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,n)}}}function tn(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,n)}}function nn(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,r)}}function rn(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function an(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function on(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function sn(e){if(!e._valueTracker){var t=an(e)?`checked`:`value`;e._valueTracker=on(e,t,``+e[t])}}function cn(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=an(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}var ln=/[\n"\\]/g;function un(e){return e.replace(ln,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function dn(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+rn(t)):e.value!==``+rn(t)&&(e.value=``+rn(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):pn(e,rn(n)):o===`number`&&e.value==t?pn(e,rn(e.value)):pn(e,rn(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+rn(s):e.removeAttribute(`name`)}function fn(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){sn(e);return}n=n==null?``:``+rn(n),t=t==null?n:``+rn(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),sn(e)}function pn(e,t){e.defaultValue!==``+t&&(e.defaultValue=``+t)}function mn(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+rn(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function hn(e,t,n){if(t!=null&&(t=``+rn(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+rn(n)}function gn(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(s(92));if(Se(r)){if(1<r.length)throw Error(s(93));r=r[0]}n=r}n??=``,t=n}n=rn(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),sn(e)}function _n(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var vn=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function yn(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||vn.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function bn(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(s(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``,M=!0);for(var i in t)r=t[i],t.hasOwnProperty(i)&&n[i]!==r&&(yn(e,i,r),M=!0)}else for(var a in t)t.hasOwnProperty(a)&&yn(e,a,t[a])}function xn(e){if(e.indexOf(`-`)===-1)return!1;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 Sn=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`maskType`,`mask-type`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),Cn=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function wn(e){return Cn.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function Tn(){}var En=null;function Dn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var On=null,kn=null;function An(e){var t=Bt(e);if(t&&(e=t.stateNode)){var n=e[At]||null;a:switch(e=t.stateNode,t.type){case`input`:if(dn(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+un(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=r[At]||null;if(!i)throw Error(s(90));dn(r,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&cn(r)}break a;case`textarea`:hn(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&mn(e,!!n.multiple,t,!1)}}}var jn=!1;function Mn(e,t,n){if(jn)return e(t,n);jn=!0;try{return e(t)}finally{if(jn=!1,(On!==null||kn!==null)&&(Ld(),On&&(t=On,e=kn,kn=On=null,An(t),e)))for(t=0;t<e.length;t++)An(e[t])}}function Nn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[At]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=e!==`button`&&e!==`input`&&e!==`select`&&e!==`textarea`),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(s(231,t,typeof n));return n}var Pn=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,Fn=!1;if(Pn)try{var In={};Object.defineProperty(In,"passive",{get:function(){Fn=!0}}),window.addEventListener(`test`,In,In),window.removeEventListener(`test`,In,In)}catch{Fn=!1}var Ln=null,Rn=null,zn=null;function Bn(){if(zn)return zn;var e,t=Rn,n=t.length,r,i=`value`in Ln?Ln.value:Ln.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return zn=i.slice(e,1<r?1-r:void 0)}function Vn(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 Hn(){return!0}function Un(){return!1}function Wn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?Hn:Un,this.isPropagationStopped=Un,this}return T(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=Hn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=Hn)},persist:function(){},isPersistent:Hn}),t}var Gn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Kn=Wn(Gn),qn=T({},Gn,{view:0,detail:0}),Jn=Wn(qn),Yn,Xn,Zn,Qn=T({},qn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:lr,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!==Zn&&(Zn&&e.type===`mousemove`?(Yn=e.screenX-Zn.screenX,Xn=e.screenY-Zn.screenY):Xn=Yn=0,Zn=e),Yn)},movementY:function(e){return`movementY`in e?e.movementY:Xn}}),$n=Wn(Qn),er=Wn(T({},Qn,{dataTransfer:0})),tr=Wn(T({},qn,{relatedTarget:0})),nr=Wn(T({},Gn,{animationName:0,elapsedTime:0,pseudoElement:0})),rr=Wn(T({},Gn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),ir=Wn(T({},Gn,{data:0})),ar={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},or={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`},sr={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function cr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=sr[e])?!!t[e]:!1}function lr(){return cr}var ur=Wn(T({},qn,{key:function(e){if(e.key){var t=ar[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=Vn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?or[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:lr,charCode:function(e){return e.type===`keypress`?Vn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?Vn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),dr=Wn(T({},Qn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),fr=Wn(T({},Gn,{submitter:0})),pr=Wn(T({},qn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:lr})),mr=Wn(T({},Gn,{propertyName:0,elapsedTime:0,pseudoElement:0})),hr=Wn(T({},Qn,{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})),gr=Wn(T({},Gn,{newState:0,oldState:0,source:0})),_r=[9,13,27,32],vr=Pn&&`CompositionEvent`in window,yr=null;Pn&&`documentMode`in document&&(yr=document.documentMode);var br=Pn&&`TextEvent`in window&&!yr,xr=Pn&&(!vr||yr&&8<yr&&11>=yr),Sr=` `,Cr=!1;function wr(e,t){switch(e){case`keyup`:return _r.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Tr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Er=!1;function Dr(e,t){switch(e){case`compositionend`:return Tr(t);case`keypress`:return t.which===32?(Cr=!0,Sr):null;case`textInput`:return e=t.data,e===Sr&&Cr?null:e;default:return null}}function Or(e,t){if(Er)return e===`compositionend`||!vr&&wr(e,t)?(e=Bn(),zn=Rn=Ln=null,Er=!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 xr&&t.locale!==`ko`?null:t.data;default:return null}}var kr={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 Ar(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!kr[e.type]:t===`textarea`}function jr(e,t,n,r){On?kn?kn.push(r):kn=[r]:On=r,t=qf(t,`onChange`),0<t.length&&(n=new Kn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var Mr=null,Nr=null;function Pr(e){Bf(e,0)}function Fr(e){if(cn(Vt(e)))return e}function Ir(e,t){if(e===`change`)return t}var Lr=!1;if(Pn){var N;if(Pn){var Rr=`oninput`in document;if(!Rr){var zr=document.createElement(`div`);zr.setAttribute(`oninput`,`return;`),Rr=typeof zr.oninput==`function`}N=Rr}else N=!1;Lr=N&&(!document.documentMode||9<document.documentMode)}function Br(){Mr&&(Mr.detachEvent(`onpropertychange`,Vr),Nr=Mr=null)}function Vr(e){if(e.propertyName===`value`&&Fr(Nr)){var t=[];jr(t,Nr,e,Dn(e)),Mn(Pr,t)}}function Hr(e,t,n){e===`focusin`?(Br(),Mr=t,Nr=n,Mr.attachEvent(`onpropertychange`,Vr)):e===`focusout`&&Br()}function Ur(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return Fr(Nr)}function Wr(e,t){if(e===`click`)return Fr(t)}function Gr(e,t){if(e===`input`||e===`change`)return Fr(t)}function Kr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var qr=typeof Object.is==`function`?Object.is:Kr;function Jr(e,t){if(qr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Ue.call(t,i)||!qr(e[i],t[i]))return!1}return!0}function Yr(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function Xr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Zr(e,t){var n=Xr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Xr(n)}}function Qr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Qr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function $r(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Yr(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Yr(e.document)}return t}function ei(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`)}var ti=Pn&&`documentMode`in document&&11>=document.documentMode,ni=null,ri=null,ii=null,ai=!1;function oi(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ai||ni==null||ni!==Yr(r)||(r=ni,`selectionStart`in r&&ei(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ii&&Jr(ii,r)||(ii=r,r=qf(ri,`onSelect`),0<r.length&&(t=new Kn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=ni)))}function si(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var ci={animationend:si(`Animation`,`AnimationEnd`),animationiteration:si(`Animation`,`AnimationIteration`),animationstart:si(`Animation`,`AnimationStart`),transitionrun:si(`Transition`,`TransitionRun`),transitionstart:si(`Transition`,`TransitionStart`),transitioncancel:si(`Transition`,`TransitionCancel`),transitionend:si(`Transition`,`TransitionEnd`)},li={},ui={};Pn&&(ui=document.createElement(`div`).style,`AnimationEvent`in window||(delete ci.animationend.animation,delete ci.animationiteration.animation,delete ci.animationstart.animation),`TransitionEvent`in window||delete ci.transitionend.transition);function di(e){if(li[e])return li[e];if(!ci[e])return e;var t=ci[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ui)return li[e]=t[n];return e}var fi=di(`animationend`),pi=di(`animationiteration`),mi=di(`animationstart`),hi=di(`transitionrun`),gi=di(`transitionstart`),_i=di(`transitioncancel`),vi=di(`transitionend`),yi=new Map,bi=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError 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(` `);bi.push(`scrollEnd`);function xi(e,t){yi.set(e,t),qt(t,[e])}var Si=0;function Ci(e,t){if(e.name!=null&&e.name!==`auto`)return e.name;if(t.autoName!==null)return t.autoName;e=vd.identifierPrefix;var n=Si++;return e=`_`+e+`t_`+n.toString(32)+`_`,t.autoName=e}function wi(e){if(e==null||typeof e==`string`)return e;var t=null,n=Ed;if(n!==null)for(var r=0;r<n.length;r++){var i=e[n[r]];if(i!=null){if(i===`none`)return`none`;t=t==null?i:t+(` `+i)}}return t??e.default}function Ti(e,t){return e=wi(e),t=wi(t),t==null?e===`auto`?null:e:t===`auto`?null:t}var Ei=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},Di=[],Oi=0,ki=0;function Ai(){for(var e=Oi,t=ki=Oi=0;t<e;){var n=Di[t];Di[t++]=null;var r=Di[t];Di[t++]=null;var i=Di[t];Di[t++]=null;var a=Di[t];if(Di[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&Pi(n,i,a)}}function ji(e,t,n,r){Di[Oi++]=e,Di[Oi++]=t,Di[Oi++]=n,Di[Oi++]=r,ki|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Mi(e,t,n,r){return ji(e,t,n,r),Fi(e)}function Ni(e,t){return ji(e,null,null,t),Fi(e)}function Pi(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-ot(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function Fi(e){if(50<Dd)throw Dd=0,Od=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ii={};function Li(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ri(e,t,n,r){return new Li(e,t,n,r)}function zi(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Bi(e,t){var n=e.alternate;return n===null?(n=Ri(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&1206910976,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Vi(e,t){e.flags&=1206910978;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Hi(e,t,n,r,i,a){var o=0;if(r=e,typeof r==`function`)zi(r)&&(o=1);else if(typeof r==`string`)o=qm(e,n,Oe.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(r){case pe:return e=Ri(31,n,t,i),e.elementType=pe,e.lanes=a,e;case ie:return Ui(n.children,i,a,t);case ae:o=8,i|=24;break;case oe:return e=Ri(12,n,t,i|2),e.elementType=oe,e.lanes=a,e;case le:return e=Ri(13,n,t,i),e.elementType=le,e.lanes=a,e;case ue:return e=Ri(19,n,t,i),e.elementType=ue,e.lanes=a,e;case me:case ge:return e=i|32,e=Ri(30,n,t,e),e.elementType=ge,e.lanes=a,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof r==`object`&&r)switch(r.$$typeof){case D:o=10;break a;case se:o=9;break a;case ce:o=11;break a;case de:o=14;break a;case fe:o=16,r=null;break a}o=29,n=Error(s(130,e===null?`null`:typeof e,``)),r=null}return t=Ri(o,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function Ui(e,t,n,r){return e=Ri(7,e,r,t),e.lanes=n,e}function Wi(e,t,n){return e=Ri(6,e,null,t),e.lanes=n,e}function Gi(e){var t=Ri(18,null,null,0);return t.stateNode=e,t}function Ki(e,t,n){return t=Ri(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var qi=new WeakMap;function Ji(e,t){if(typeof e==`object`&&e){var n=qi.get(e);return n===void 0?(t={value:e,source:t,stack:He(t)},qi.set(e,t),t):n}return{value:e,source:t,stack:He(t)}}var Yi=[],Xi=0,Zi=null,Qi=0,$i=[],ea=0,ta=null,na=1,ra=``;function ia(e,t){Yi[Xi++]=Qi,Yi[Xi++]=Zi,Zi=e,Qi=t}function aa(e,t,n){$i[ea++]=na,$i[ea++]=ra,$i[ea++]=ta,ta=e;var r=na;e=ra;var i=32-ot(r)-1;r&=~(1<<i),n+=1;var a=32-ot(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,na=1<<32-ot(t)+i|n<<i|r,ra=a+e}else na=1<<a|n<<i|r,ra=e}function oa(e){e.return!==null&&(ia(e,1),aa(e,1,0))}function sa(e){for(;e===Zi;)Zi=Yi[--Xi],Yi[Xi]=null,Qi=Yi[--Xi],Yi[Xi]=null;for(;e===ta;)ta=$i[--ea],$i[ea]=null,ra=$i[--ea],$i[ea]=null,na=$i[--ea],$i[ea]=null}function ca(e,t){$i[ea++]=na,$i[ea++]=ra,$i[ea++]=ta,na=t.id,ra=t.overflow,ta=e}var la=null,ua=null,P=!1,da=null,fa=!1,pa=Error(s(519));function ma(e){throw ba(Ji(Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),pa}function ha(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[kt]=e,t[At]=r,n){case`dialog`:$(`cancel`,t),$(`close`,t);break;case`iframe`:case`object`:case`embed`:$(`load`,t);break;case`video`:case`audio`:for(n=0;n<Rf.length;n++)$(Rf[n],t);break;case`source`:$(`error`,t);break;case`img`:case`image`:case`link`:$(`error`,t),$(`load`,t);break;case`details`:$(`toggle`,t);break;case`input`:$(`invalid`,t),fn(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:$(`invalid`,t);break;case`textarea`:$(`invalid`,t),gn(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||$f(t.textContent,n)?(r.popover!=null&&($(`beforetoggle`,t),$(`toggle`,t)),r.onScroll!=null&&$(`scroll`,t),r.onScrollEnd!=null&&$(`scrollend`,t),r.onClick!=null&&(t.onclick=Tn),t=!0):t=!1,t||ma(e,!0)}function ga(e){for(la=e.return;la;)switch(la.tag){case 5:case 31:case 13:fa=!1;return;case 27:case 3:fa=!0;return;default:la=la.return}}function _a(e){if(e!==la)return!1;if(!P)return ga(e),P=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||pp(e.type,e.memoizedProps)),n=!n),n&&ua&&ma(e),ga(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(s(317));ua=dm(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(s(317));ua=dm(e)}else t===27?(t=ua,Sp(e.type)?(e=um,um=null,ua=e):ua=t):ua=la?lm(e.stateNode.nextSibling):null;return!0}function va(){ua=la=null,P=!1}function ya(){var e=da;return e!==null&&(ud===null?ud=e:ud.push.apply(ud,e),da=null),e}function ba(e){da===null?da=[e]:da.push(e)}var xa=Ee(null),Sa=null,Ca=null;function F(e,t,n){De(xa,t._currentValue),t._currentValue=n}function I(e){e._currentValue=xa.current,A(xa)}function wa(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function Ta(e,t,n,r){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var a=i.dependencies;if(a!==null){var o=i.child;a=a.firstContext;a:for(;a!==null;){var c=a;a=i;for(var l=0;l<t.length;l++)if(c.context===t[l]){a.lanes|=n,c=a.alternate,c!==null&&(c.lanes|=n),wa(a.return,n,e),r||(o=null);break a}a=c.next}}else if(i.tag===18){if(o=i.return,o===null)throw Error(s(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),wa(o,n,e),o=null}else i.tag===13&&i.memoizedState!==null&&i.memoizedState.dehydrated===null?(i.lanes|=n,o=i.alternate,o!==null&&(o.lanes|=n),wa(i.return,n,e),o=i.child,o=o===null?null:o.sibling):o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===e){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}}function Ea(e,t,n,r){e=null;for(var i=t,a=!1;i!==null;){if(!a){if(i.flags&524288)a=!0;else if(i.flags&262144)break}if(i.tag===10){var o=i.alternate;if(o===null)throw Error(s(387));if(o=o.memoizedProps,o!==null){var c=i.type;qr(i.pendingProps.value,o.value)||(e===null?e=[c]:e.push(c))}}else if(i===je.current){if(o=i.alternate,o===null)throw Error(s(387));o.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e===null?e=[sh]:e.push(sh))}i=i.return}return e!==null&&Ta(t,e,n,r),t.flags|=262144,e!==null}function Da(e){for(e=e.firstContext;e!==null;){if(!qr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Oa(e){Sa=e,Ca=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ka(e){return ja(Sa,e)}function Aa(e,t){return Sa===null&&Oa(e),ja(e,t)}function ja(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Ca===null){if(e===null)throw Error(s(308));Ca=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Ca=Ca.next=t;return n}var Ma=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Na=t.unstable_scheduleCallback,Pa=t.unstable_NormalPriority,Fa={$$typeof:D,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ia(){return{controller:new Ma,data:new Map,refCount:0}}function La(e){e.refCount--,e.refCount===0&&Na(Pa,function(){e.controller.abort()})}function Ra(e,t){if(e.pendingLanes&4194048){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var r=t[e];n.indexOf(r)===-1&&n.push(r)}}}var za=null;function Ba(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var Va=null,Ha=0,Ua=0,Wa=null;function Ga(e,t){if(Va===null){var n=Va=[];Ha=0,Ua=Nf(),Wa={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return Ha++,t.then(Ka,Ka),t}function Ka(){if(--Ha===0&&(za=null,Va!==null)){Wa!==null&&(Wa.status=`fulfilled`);var e=Va;Va=null,Ua=0,Wa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function qa(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var Ja=O.S;O.S=function(e,t){if(pd=Je(),typeof t==`object`&&t&&typeof t.then==`function`&&Ga(e,t),za!==null)for(var n=yf;n!==null;)Ra(n,za),n=n.next;if(n=e.types,n!==null){for(var r=yf;r!==null;)Ra(r,n),r=r.next;if(Ua!==0){r=za,r===null&&(r=za=[]);for(var i=0;i<n.length;i++){var a=n[i];r.indexOf(a)===-1&&r.push(a)}}}Ja!==null&&Ja(e,t)};var Ya=Ee(null);function Xa(){var e=Ya.current;return e===null?Y.pooledCache:e}function Za(e,t){t===null?De(Ya,Ya.current):De(Ya,t.pool)}function Qa(){var e=Xa();return e===null?null:{parent:Fa._currentValue,pool:e}}var $a=Error(s(460)),eo=Error(s(474)),to=Error(s(542)),no={then:function(){}};function ro(e){return e=e.status,e===`fulfilled`||e===`rejected`}function io(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Tn,Tn),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,co(e),e===void 0&&!(`reason`in t)?Error(s(600)):e;default:if(typeof t.status==`string`)t.then(Tn,Tn);else{if(e=Y,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,co(e),e}throw oo=t,$a}}function ao(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(oo=e,$a):e}}var oo=null;function so(){if(oo===null)throw Error(s(459));var e=oo;return oo=null,e}function co(e){if(e===$a||e===to)throw Error(s(483))}var lo=null,uo=0;function fo(e){var t=uo;return uo+=1,lo===null&&(lo=[]),io(lo,e,t)}function po(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function mo(e,t){throw t.$$typeof===ne?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function ho(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function i(e,t){return e=Bi(e,t),e.index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=134217730,n):(r=r.index,r<n?(t.flags|=2,n):r)):(t.flags|=1048576,n)}function o(t){return e&&t.alternate===null&&(t.flags|=134217730),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=Wi(n,e.mode,r),t.return=e,t):(t=i(t,n),t.return=e,t)}function l(e,t,n,r){var a=n.type;return a===ie?(e=d(e,t,n.props.children,r,n.key),po(e,n),e):t!==null&&(t.elementType===a||typeof a==`object`&&a&&a.$$typeof===fe&&ao(a)===t.type)?(t=i(t,n.props),po(t,n),t.return=e,t):(t=Hi(n.type,n.key,n.props,null,e.mode,r),po(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=Ki(n,e.mode,r),t.return=e,t):(t=i(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,a){return t===null||t.tag!==7?(t=Ui(n,e.mode,r,a),t.return=e,t):(t=i(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=Wi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case re:return n=Hi(t.type,t.key,t.props,null,e.mode,n),po(n,t),n.return=e,n;case E:return t=Ki(t,e.mode,n),t.return=e,t;case fe:return t=ao(t),f(e,t,n)}if(Se(t)||ye(t))return t=Ui(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,fo(t),n);if(t.$$typeof===D)return f(e,Aa(e,t),n);mo(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case re:return n.key===i?l(e,t,n,r):null;case E:return n.key===i?u(e,t,n,r):null;case fe:return n=ao(n),p(e,t,n,r)}if(Se(n)||ye(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,fo(n),r);if(n.$$typeof===D)return p(e,t,Aa(e,n),r);mo(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case re:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case E:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case fe:return r=ao(r),m(e,t,n,r,i)}if(Se(r)||ye(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,fo(r),i);if(r.$$typeof===D)return m(e,t,n,Aa(t,r),i);mo(t,r)}return null}function h(i,o,s,c){for(var l=null,u=null,d=o,h=o=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),o=a(_,o,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),P&&ia(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(o=a(d,o,h),u===null?l=d:u.sibling=d,u=d);return P&&ia(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&(_=g.alternate,_!==null&&d.delete(_.key===null?h:_.key)),o=a(g,o,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),P&&ia(i,h),l}function g(i,o,c,l){if(c==null)throw Error(s(151));for(var u=null,d=null,h=o,g=o=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(i,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(i,h),o=a(y,o,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(i,h),P&&ia(i,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(i,v.value,l),v!==null&&(o=a(v,o,g),d===null?u=v:d.sibling=v,d=v);return P&&ia(i,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,i,g,v.value,l),v!==null&&(e&&(_=v.alternate,_!==null&&h.delete(_.key===null?g:_.key)),o=a(v,o,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(i,e)}),P&&ia(i,g),u}function _(e,r,a,c){if(typeof a==`object`&&a&&a.type===ie&&a.key===null&&a.props.ref===void 0&&(a=a.props.children),typeof a==`object`&&a){switch(a.$$typeof){case re:a:{for(var l=a.key;r!==null;){if(r.key===l){if(l=a.type,l===ie){if(r.tag===7){n(e,r.sibling),c=i(r,a.props.children),po(c,a),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===fe&&ao(l)===r.type){n(e,r.sibling),c=i(r,a.props),po(c,a),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}a.type===ie?(c=Ui(a.props.children,e.mode,c,a.key),po(c,a),c.return=e,e=c):(c=Hi(a.type,a.key,a.props,null,e.mode,c),po(c,a),c.return=e,e=c)}return o(e);case E:a:{for(l=a.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),c=i(r,a.children||[]),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}c=Ki(a,e.mode,c),c.return=e,e=c}return o(e);case fe:return a=ao(a),_(e,r,a,c)}if(Se(a))return h(e,r,a,c);if(ye(a)){if(l=ye(a),typeof l!=`function`)throw Error(s(150));return a=l.call(a),g(e,r,a,c)}if(typeof a.then==`function`)return _(e,r,fo(a),c);if(a.$$typeof===D)return _(e,r,Aa(e,a),c);mo(e,a)}return typeof a==`string`&&a!==``||typeof a==`number`||typeof a==`bigint`?(a=``+a,r!==null&&r.tag===6?(n(e,r.sibling),c=i(r,a),c.return=e,e=c):(n(e,r),c=Wi(a,e.mode,c),c.return=e,e=c),o(e)):n(e,r)}return function(e,t,n,r){try{uo=0;var i=_(e,t,n,r);return lo=null,i}catch(t){if(t===$a||t===to)throw t;var a=Ri(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var go=ho(!0),_o=ho(!1),vo=!1;function yo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function bo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function xo(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function So(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,J&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Fi(e),Pi(e,null,n),t}return ji(e,r,t,n),Fi(e)}function Co(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ct(e,n)}}function wo(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var To=!1;function Eo(){if(To){var e=Wa;if(e!==null)throw e}}function Do(e,t,n,r){To=!1;var i=e.updateQueue;vo=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(Z&f)===f:(r&f)===f){f!==0&&f===Ua&&(To=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,h=s;f=t;var g=n;switch(h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(g,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(g,d,f):m,f==null)break a;d=T({},d,f);break a;case 2:vo=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),id|=o,e.lanes=o,e.memoizedState=d}}function Oo(e,t){if(typeof e!=`function`)throw Error(s(191,e));e.call(t)}function ko(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Oo(n[e],t)}var Ao=Ee(null),jo=Ee(0);function Mo(e,t){e=nd,De(jo,e),De(Ao,t),nd=e|t.baseLanes}function No(){De(jo,nd),De(Ao,Ao.current)}function Po(){nd=jo.current,A(Ao),A(jo)}var Fo=Ee(null),Io=null;function Lo(e){var t=e.alternate;De(Ho,Ho.current&1),De(Fo,e),Io===null&&(t===null||Ao.current!==null||t.memoizedState!==null)&&(Io=e)}function Ro(e){De(Ho,Ho.current),De(Fo,e),Io===null&&(Io=e)}function zo(e){e.tag===22?(De(Ho,Ho.current),De(Fo,e),Io===null&&(Io=e)):Bo()}function Bo(){De(Ho,Ho.current),De(Fo,Fo.current)}function Vo(e){A(Fo),Io===e&&(Io=null),A(Ho)}var Ho=Ee(0);function Uo(e,t){De(Fo,Fo.current),De(Ho,t)}function Wo(e){A(Ho),A(Fo),Io===e&&(Io=null)}function Go(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||om(n)||sm(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==`independent`){if(t.flags&128)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 Ko=0,L=null,R=null,z=null,qo=!1,Jo=!1,Yo=!1,Xo=0,Zo=0,Qo=null,$o=0;function es(){throw Error(s(321))}function ts(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!qr(e[n],t[n]))return!1;return!0}function ns(e,t,n,r,i,a){return Ko=a,L=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,O.H=e===null||e.memoizedState===null?mc:hc,Yo=!1,a=n(r,i),Yo=!1,Jo&&(a=is(t,n,r,i)),rs(e),a}function rs(e){O.H=pc;var t=R!==null&&R.next!==null;if(Ko=0,z=R=L=null,qo=!1,Zo=0,Qo=null,t)throw Error(s(300));e===null||Mc||(e=e.dependencies,e!==null&&Da(e)&&(Mc=!0))}function is(e,t,n,r){L=e;var i=0;do{if(Jo&&(Qo=null),Zo=0,Jo=!1,25<=i)throw Error(s(301));if(i+=1,z=R=null,e.updateQueue!=null){var a=e.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,a.memoCache!=null&&(a.memoCache.index=0)}O.H=gc,a=t(n,r)}while(Jo);return a}function as(){var e=O.H,t=e.useState()[0];return t=typeof t.then==`function`?fs(t):t,e=e.useState()[0],(R===null?null:R.memoizedState)!==e&&(L.flags|=1024),t}function os(){var e=Xo!==0;return Xo=0,e}function ss(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function cs(e){if(qo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}qo=!1}Ko=0,z=R=L=null,Jo=!1,Zo=Xo=0,Qo=null}function ls(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return z===null?L.memoizedState=z=e:z=z.next=e,z}function us(){if(R===null){var e=L.alternate;e=e===null?null:e.memoizedState}else e=R.next;var t=z===null?L.memoizedState:z.next;if(t!==null)z=t,R=e;else{if(e===null)throw L.alternate===null?Error(s(467)):Error(s(310));R=e,e={memoizedState:R.memoizedState,baseState:R.baseState,baseQueue:R.baseQueue,queue:R.queue,next:null},z===null?L.memoizedState=z=e:z=z.next=e}return z}function ds(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function fs(e){var t=Zo;return Zo+=1,Qo===null&&(Qo=[]),e=io(Qo,e,t),t=L,(z===null?t.memoizedState:z.next)===null&&(t=t.alternate,O.H=t===null||t.memoizedState===null?mc:hc),e}function ps(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return fs(e);if(e.$$typeof===_e)return;if(e.$$typeof===D)return ka(e)}throw Error(s(438,String(e)))}function ms(e){var t=null,n=L.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=L.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=ds(),L.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=he;return t.index++,n}function hs(e,t){return typeof t==`function`?t(e):t}function gs(e){return _s(us(),R,e)}function _s(e,t,n){var r=e.queue;if(r===null)throw Error(s(311));r.lastRenderedReducer=n;var i=e.baseQueue,a=r.pending;if(a!==null){if(i!==null){var o=i.next;i.next=a.next,a.next=o}t.baseQueue=i=a,r.pending=null}if(a=e.baseState,i===null)e.memoizedState=a;else{t=i.next;var c=o=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(Ko&f)===f:(Z&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===Ua&&(d=!0);else if((Ko&p)===p){u=u.next,p===Ua&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,o=a):l=l.next=f,L.lanes|=p,id|=p;f=u.action,Yo&&n(a,f),a=u.hasEagerState?u.eagerState:n(a,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,o=a):l=l.next=p,L.lanes|=f,id|=f;u=u.next}while(u!==null&&u!==t);if(l===null?o=a:l.next=c,!qr(a,e.memoizedState)&&(Mc=!0,d&&(n=Wa,n!==null)))throw n;e.memoizedState=a,e.baseState=o,e.baseQueue=l,r.lastRenderedState=a}return i===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function vs(e){var t=us(),n=t.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do a=e(a,o.action),o=o.next;while(o!==i);qr(a,t.memoizedState)||(Mc=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function ys(e,t,n){var r=L,i=us(),a=P;if(a){if(n===void 0)throw Error(s(407));n=n()}else n=t();var o=!qr((R||i).memoizedState,n);if(o&&(i.memoizedState=n,Mc=!0),i=i.queue,zs(B.bind(null,r,i,e),[e]),e=i.getSnapshot!==t||o||z!==null&&!!(z.memoizedState.tag&1),W(e?9:8,{destroy:void 0},xs.bind(null,r,i,n,t),null),e){if(r.flags|=2048,Y===null)throw Error(s(349));a||Ko&127||bs(r,t,n)}return n}function bs(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=L.updateQueue,t===null?(t=ds(),L.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function xs(e,t,n,r){t.value=n,t.getSnapshot=r,V(t)&&H(e)}function B(e,t,n){return n(function(){V(t)&&H(e)})}function V(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!qr(e,n)}catch{return!0}}function H(e){var t=Ni(e,2);t!==null&&Md(t,e,2)}function Ss(e){var t=ls();if(typeof e==`function`){var n=e;if(e=n(),Yo){at(!0);try{n()}finally{at(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:hs,lastRenderedState:e},t}function Cs(e,t,n,r){return e.baseState=n,_s(e,R,typeof r==`function`?r:hs)}function ws(e,t,n,r,i){if(uc(e))throw Error(s(485));if(e=t.action,e!==null){var a={payload:i,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){a.listeners.push(e)}};O.T===null?a.isTransition=!1:n(!0),r(a),n=t.pending,n===null?(a.next=t.pending=a,U(t,a)):(a.next=n.next,t.pending=n.next=a)}}function U(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=O.T,o={};o.types=a===null?null:a.types,O.T=o;try{var s=n(i,r),c=O.S;c!==null&&c(o,s),Ts(e,t,s)}catch(n){Ds(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),O.T=a}}else try{a=n(i,r),Ts(e,t,a)}catch(n){Ds(e,t,n)}}function Ts(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Es(e,t,n)},function(n){return Ds(e,t,n)}):Es(e,t,n)}function Es(e,t,n){t.status=`fulfilled`,t.value=n,Os(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,U(e,n)))}function Ds(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Os(t),t=t.next;while(t!==r)}e.action=null}function Os(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ks(e,t){return t}function As(e,t){if(P){var n=Y.formState;if(n!==null){a:{var r=L;if(P){if(ua){b:{for(var i=ua,a=fa;i.nodeType!==8;){if(!a){i=null;break b}if(i=lm(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){ua=lm(i.nextSibling),r=i.data===`F!`;break a}}ma(r)}r=!1}r&&(t=n[0])}}return n=ls(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ks,lastRenderedState:t},n.queue=r,n=sc.bind(null,L,r),r.dispatch=n,r=Ss(!1),a=lc.bind(null,L,!1,r.queue),r=ls(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=ws.bind(null,L,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function js(e){return Ms(us(),R,e)}function Ms(e,t,n){if(t=_s(e,t,ks)[0],e=gs(hs)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=fs(t)}catch(e){throw e===$a?to:e}else r=t;t=us();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(L.flags|=2048,W(9,{destroy:void 0},Ns.bind(null,i,n),null)),[r,a,e]}function Ns(e,t){e.action=t}function Ps(e){var t=us(),n=R;if(n!==null)return Ms(t,n,e);us(),t=t.memoizedState,n=us();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function W(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=L.updateQueue,t===null&&(t=ds(),L.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Fs(){return us().memoizedState}function Is(e,t,n,r){var i=ls();L.flags|=e,i.memoizedState=W(1|t,{destroy:void 0},n,r===void 0?null:r)}function Ls(e,t,n,r){var i=us();r=r===void 0?null:r;var a=i.memoizedState.inst;R!==null&&r!==null&&ts(r,R.memoizedState.deps)?i.memoizedState=W(t,a,n,r):(L.flags|=e,i.memoizedState=W(1|t,a,n,r))}function Rs(e,t){Is(8390656,8,e,t)}function zs(e,t){Ls(2048,8,e,t)}function Bs(e){L.flags|=4;var t=L.updateQueue;if(t===null)t=ds(),L.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Vs(e){var t=us().memoizedState;return Bs({ref:t,nextImpl:e}),function(){if(J&2)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function Hs(e,t){return Ls(4,2,e,t)}function Us(e,t){return Ls(4,4,e,t)}function Ws(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Gs(e,t,n){n=n==null?null:n.concat([e]),Ls(4,4,Ws.bind(null,t,e),n)}function Ks(){}function qs(e,t){var n=us();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&ts(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Js(e,t){var n=us();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&ts(t,r[1]))return r[0];if(r=e(),Yo){at(!0);try{e()}finally{at(!1)}}return n.memoizedState=[r,t],r}function Ys(e,t,n){return n===void 0||Ko&1073741824&&!(Z&261930)?e.memoizedState=t:(e.memoizedState=n,e=Ad(),L.lanes|=e,id|=e,n)}function Xs(e,t,n,r){return qr(n,t)?n:Ao.current===null?!(Ko&106)||Ko&1073741824&&!(Z&261930)?(Mc=!0,e.memoizedState=n):(e=Ad(),L.lanes|=e,id|=e,t):(e=Ys(e,n,r),qr(e,t)||(Mc=!0),e)}function Zs(e,t,n,r,i){var a=k.p;k.p=a!==0&&8>a?a:8;var o=O.T,s={};s.types=o===null?null:o.types,O.T=s,lc(e,!1,t,n);try{var c=i(),l=O.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?cc(e,t,qa(c,r),kd(e)):cc(e,t,r,kd(e))}catch(n){cc(e,t,{then:function(){},status:`rejected`,reason:n},kd())}finally{k.p=a,o!==null&&s.types!==null&&(o.types=s.types),O.T=o}}function Qs(){}function $s(e,t,n,r){if(e.tag!==5)throw Error(s(476));var i=ec(e).queue;Zs(e,i,t,Ce,n===null?Qs:function(){return tc(e),n(r)})}function ec(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Ce,baseState:Ce,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hs,lastRenderedState:Ce},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hs,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function tc(e){var t=ec(e);t.next===null&&(t=e.alternate.memoizedState),cc(e,t.next.queue,{},kd())}function nc(){return ka(sh)}function rc(){return us().memoizedState}function ic(){return us().memoizedState}function ac(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=kd();e=xo(n);var r=So(t,e,n);r!==null&&(Md(r,t,n),Co(r,t,n)),t={cache:Ia()},e.payload=t;return}t=t.return}}function oc(e,t,n){var r=kd();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},uc(e)?dc(t,n):(n=Mi(e,t,n,r),n!==null&&(Md(n,e,r),fc(n,t,r)))}function sc(e,t,n){cc(e,t,n,kd())}function cc(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(uc(e))dc(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,qr(s,o))return ji(e,t,i,0),Y===null&&Ai(),!1}catch{}if(n=Mi(e,t,i,r),n!==null)return Md(n,e,r),fc(n,t,r),!0}return!1}function lc(e,t,n,r){if(r={lane:2,revertLane:Nf(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},uc(e)){if(t)throw Error(s(479))}else t=Mi(e,n,r,2),t!==null&&Md(t,e,2)}function uc(e){var t=e.alternate;return e===L||t!==null&&t===L}function dc(e,t){Jo=qo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function fc(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ct(e,n)}}var pc={readContext:ka,use:ps,useCallback:es,useContext:es,useEffect:es,useImperativeHandle:es,useLayoutEffect:es,useInsertionEffect:es,useMemo:es,useReducer:es,useRef:es,useState:es,useDebugValue:es,useDeferredValue:es,useTransition:es,useSyncExternalStore:es,useId:es,useHostTransitionStatus:es,useFormState:es,useActionState:es,useOptimistic:es,useMemoCache:es,useCacheRefresh:es,useEffectEvent:es},mc={readContext:ka,use:ps,useCallback:function(e,t){return ls().memoizedState=[e,t===void 0?null:t],e},useContext:ka,useEffect:Rs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),Is(4194308,4,Ws.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Is(4194308,4,e,t)},useInsertionEffect:function(e,t){Is(4,2,e,t)},useMemo:function(e,t){var n=ls();t=t===void 0?null:t;var r=e();if(Yo){at(!0);try{e()}finally{at(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=ls();if(n!==void 0){var i=n(t);if(Yo){at(!0);try{n(t)}finally{at(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=oc.bind(null,L,e),[r.memoizedState,e]},useRef:function(e){var t=ls();return e={current:e},t.memoizedState=e},useState:function(e){e=Ss(e);var t=e.queue,n=sc.bind(null,L,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Ks,useDeferredValue:function(e,t){return Ys(ls(),e,t)},useTransition:function(){var e=Ss(!1);return e=Zs.bind(null,L,e.queue,!0,!1),ls().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=L,i=ls();if(P){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),Y===null)throw Error(s(349));Z&127||bs(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Rs(B.bind(null,r,a,e),[e]),r.flags|=2048,W(9,{destroy:void 0},xs.bind(null,r,a,n,t),null),n},useId:function(){var e=ls(),t=Y.identifierPrefix;if(P){var n=ra,r=na;n=(r&~(1<<32-ot(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Xo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=$o++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:nc,useFormState:As,useActionState:As,useOptimistic:function(e){var t=ls();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=lc.bind(null,L,!0,n),n.dispatch=t,[e,t]},useMemoCache:ms,useCacheRefresh:function(){return ls().memoizedState=ac.bind(null,L)},useEffectEvent:function(e){var t=ls(),n={impl:e};return t.memoizedState=n,function(){if(J&2)throw Error(s(440));return n.impl.apply(void 0,arguments)}}},hc={readContext:ka,use:ps,useCallback:qs,useContext:ka,useEffect:zs,useImperativeHandle:Gs,useInsertionEffect:Hs,useLayoutEffect:Us,useMemo:Js,useReducer:gs,useRef:Fs,useState:function(){return gs(hs)},useDebugValue:Ks,useDeferredValue:function(e,t){return Xs(us(),R.memoizedState,e,t)},useTransition:function(){var e=gs(hs)[0],t=us().memoizedState;return[typeof e==`boolean`?e:fs(e),t]},useSyncExternalStore:ys,useId:rc,useHostTransitionStatus:nc,useFormState:js,useActionState:js,useOptimistic:function(e,t){return Cs(us(),R,e,t)},useMemoCache:ms,useCacheRefresh:ic,useEffectEvent:Vs},gc={readContext:ka,use:ps,useCallback:qs,useContext:ka,useEffect:zs,useImperativeHandle:Gs,useInsertionEffect:Hs,useLayoutEffect:Us,useMemo:Js,useReducer:vs,useRef:Fs,useState:function(){return vs(hs)},useDebugValue:Ks,useDeferredValue:function(e,t){var n=us();return R===null?Ys(n,e,t):Xs(n,R.memoizedState,e,t)},useTransition:function(){var e=vs(hs)[0],t=us().memoizedState;return[typeof e==`boolean`?e:fs(e),t]},useSyncExternalStore:ys,useId:rc,useHostTransitionStatus:nc,useFormState:Ps,useActionState:Ps,useOptimistic:function(e,t){var n=us();return R===null?(n.baseState=e,[e,n.queue.dispatch]):Cs(n,R,e,t)},useMemoCache:ms,useCacheRefresh:ic,useEffectEvent:Vs};function _c(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:T({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var vc={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=kd(),i=xo(r);i.payload=t,n!=null&&(i.callback=n),t=So(e,i,r),t!==null&&(Md(t,e,r),Co(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=kd(),i=xo(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=So(e,i,r),t!==null&&(Md(t,e,r),Co(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=kd(),r=xo(n);r.tag=2,t!=null&&(r.callback=t),t=So(e,r,n),t!==null&&(Md(t,e,n),Co(t,e,n))}};function yc(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Jr(n,r)||!Jr(i,a):!0}function bc(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&vc.enqueueReplaceState(t,t.state,null)}function xc(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=T({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Sc(e){Ei(e)}function Cc(e){console.error(e)}function wc(e){Ei(e)}function Tc(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Ec(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Dc(e,t,n){return n=xo(n),n.tag=3,n.payload={element:null},n.callback=function(){Tc(e,t)},n}function Oc(e){return e=xo(e),e.tag=3,e}function kc(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Ec(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Ec(t,n,r),typeof i!=`function`&&(gd===null?gd=new Set([this]):gd.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Ac(e,t,n,r,i){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Ea(t,n,i,!0),n=Fo.current,n!==null){switch(n.tag){case 31:case 13:case 19:return Io===null?Wd():n.alternate===null&&rd===0&&(rd=3),n.flags&=-257,n.flags|=65536,n.lanes=i,r===no?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),pf(e,r,i)),!1;case 22:return n.flags|=65536,r===no?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),pf(e,r,i)),!1}throw Error(s(435,n.tag))}return pf(e,r,i),Wd(),!1}if(P)return t=Fo.current,t===null?(r!==pa&&(t=Error(s(423),{cause:r}),ba(Ji(t,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,r=Ji(r,n),i=Dc(e.stateNode,r,i),wo(e,i),rd!==4&&(rd=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=i,r!==pa&&(e=Error(s(422),{cause:r}),ba(Ji(e,n)))),!1;var a=Error(s(520),{cause:r});if(a=Ji(a,n),ld===null?ld=[a]:ld.push(a),rd!==4&&(rd=2),t===null)return!0;r=Ji(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=Dc(n.stateNode,r,e),wo(n,e),!1;case 1:if(t=n.type,a=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||a!==null&&typeof a.componentDidCatch==`function`&&(gd===null||!gd.has(a))))return n.flags|=65536,i&=-i,n.lanes|=i,i=Oc(i),kc(i,e,n,r),wo(n,i),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var jc=Error(s(461)),Mc=!1;function G(e,t,n,r){t.child=e===null?_o(t,null,n,r):go(t,e.child,n,r)}function Nc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return Oa(t),r=ns(e,t,n,o,a,i),s=os(),e!==null&&!Mc?(ss(e,t,i),sl(e,t,i)):(P&&s&&oa(t),t.flags|=1,G(e,t,r,i),t.child)}function Pc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!zi(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,Fc(e,t,a,r,i)):(e=Hi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!cl(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Jr:n,n(o,r)&&e.ref===t.ref)return sl(e,t,i)}return t.flags|=1,e=Bi(a,r),e.ref=t.ref,e.return=t,t.child=e}function Fc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Jr(a,r)&&e.ref===t.ref){if(Mc=!1,t.pendingProps=r=a,cl(e,i))e.flags&131072&&(Mc=!0);else return t.lanes=e.lanes,sl(e,t,i)}}return Uc(e,t,n,r,i)}function Ic(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return Rc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Za(t,a===null?null:a.cachePool),a===null?No():Mo(t,a),zo(t);else return r=t.lanes=536870912,Rc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&Za(t,null),No(),Bo()):(Za(t,a.cachePool),Mo(t,a),Bo(),t.memoizedState=null);return G(e,t,i,n),t.child}function Lc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Rc(e,t,n,r,i){var a=Xa();return a=a===null?null:{parent:Fa._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Za(t,null),No(),zo(t),e!==null&&Ea(e,t,r,!0),t.childLanes=i,null}function zc(e,t){return t=Qc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Bc(e,t,n){return go(t,e.child,null,n),e=zc(t,t.pendingProps),e.flags|=2,Vo(t),t.memoizedState=null,e}function Vc(e,t,n){var r=t.pendingProps,i=!!(t.flags&128);if(t.flags&=-129,e===null){if(P){if(r.mode===`hidden`)return e=zc(t,r),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Lc(null,e);if(Ro(t),(e=ua)?(e=am(e,fa),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ta===null?null:{id:na,overflow:ra},retryLane:536870912,hydrationErrors:null},n=Gi(e),n.return=t,t.child=n,la=t,ua=null)):e=null,e===null)throw ma(t);return t.lanes=536870912,null}return zc(t,r)}var a=e.memoizedState;if(a!==null){var o=a.dehydrated;if(Ro(t),i){if(t.flags&256)t.flags&=-257,t=Bc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558))}else if(Mc||Ea(e,t,n,!1),i=(n&e.childLanes)!==0,Mc||i){if(Ao.current===null){if(r=Y,r!==null&&(o=wt(r,n),o!==0&&o!==a.retryLane))throw a.retryLane=o,Ni(e,o),Md(r,e,o),jc;Wd()}t=Bc(e,t,n)}else e=a.treeContext,ua=lm(o.nextSibling),la=t,P=!0,da=null,fa=!1,e!==null&&ca(t,e),t=zc(t,r),t.flags|=134221824;return t}return e=Bi(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Hc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(s(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Uc(e,t,n,r,i){return Oa(t),n=ns(e,t,n,r,void 0,i),r=os(),e!==null&&!Mc?(ss(e,t,i),sl(e,t,i)):(P&&r&&oa(t),t.flags|=1,G(e,t,n,i),t.child)}function Wc(e,t,n,r,i,a){return Oa(t),t.updateQueue=null,n=is(t,r,n,i),rs(e),r=os(),e!==null&&!Mc?(ss(e,t,a),sl(e,t,a)):(P&&r&&oa(t),t.flags|=1,G(e,t,n,a),t.child)}function Gc(e,t,n,r,i){if(Oa(t),t.stateNode===null){var a=Ii,o=n.contextType;typeof o==`object`&&o&&(a=ka(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=vc,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},yo(t),o=n.contextType,a.context=typeof o==`object`&&o?ka(o):Ii,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(_c(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&vc.enqueueReplaceState(a,a.state,null),Do(t,r,a,i),Eo(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=xc(n,s);a.props=c;var l=a.context,u=n.contextType;o=Ii,typeof u==`object`&&u&&(o=ka(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&bc(t,a,r,o),vo=!1;var f=t.memoizedState;a.state=f,Do(t,r,a,i),Eo(),l=t.memoizedState,s||f!==l||vo?(typeof d==`function`&&(_c(t,n,d,r),l=t.memoizedState),(c=vo||yc(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,bo(e,t),o=t.memoizedProps,u=xc(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=Ii,typeof l==`object`&&l&&(c=ka(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&bc(t,a,r,c),vo=!1,f=t.memoizedState,a.state=f,Do(t,r,a,i),Eo();var p=t.memoizedState;o!==d||f!==p||vo||e!==null&&e.dependencies!==null&&Da(e.dependencies)?(typeof s==`function`&&(_c(t,n,s,r),p=t.memoizedState),(u=vo||yc(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&Da(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,Hc(e,t),r=!!(t.flags&128),a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=go(t,e.child,null,i),t.child=go(t,null,n,i)):G(e,t,n,i),t.memoizedState=a.state,e=t.child):e=sl(e,t,i),e}function Kc(e,t,n,r){return va(),t.flags|=256,G(e,t,n,r),t.child}var qc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Jc(e){return{baseLanes:e,cachePool:Qa()}}function Yc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=sd),e}function Xc(e,t,n){var r=t.pendingProps,i=!1,a=!!(t.flags&128),o;if((o=a)||(o=e!==null&&e.memoizedState===null?!1:!!(Ho.current&2)),o&&(i=!0,t.flags&=-129),o=!!(t.flags&32),t.flags&=-33,e===null){if(P){if(i?Lo(t):Bo(),(e=ua)?(e=am(e,fa),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ta===null?null:{id:na,overflow:ra},retryLane:536870912,hydrationErrors:null},n=Gi(e),n.return=t,t.child=n,la=t,ua=null)):e=null,e===null)throw ma(t);return t.lanes=sm(e)?32:536870912,null}return a=r.children,r=r.fallback,i?(Bo(),i=t.mode,a=Qc({mode:`hidden`,children:a},i),r=Ui(r,i,n,null),a.return=t,r.return=t,a.sibling=r,t.child=a,r=t.child,r.memoizedState=Jc(n),r.childLanes=Yc(e,o,n),t.memoizedState=qc,Lc(null,r)):(Lo(t),Zc(t,a))}var s=e.memoizedState;if(s!==null){var c=s.dehydrated;if(c!==null)return el(e,t,a,o,r,c,s,n)}return i?(Bo(),i=r.fallback,a=t.mode,s=e.child,c=s.sibling,r=Bi(s,{mode:`hidden`,children:r.children}),r.subtreeFlags=s.subtreeFlags&1206910976,c===null?(i=Ui(i,a,n,null),i.flags|=2):i=Bi(c,i),i.return=t,r.return=t,r.sibling=i,t.child=r,Lc(null,r),r=t.child,i=e.child.memoizedState,i===null?i=Jc(n):(a=i.cachePool,a===null?a=Qa():(s=Fa._currentValue,a=a.parent===s?a:{parent:s,pool:s}),i={baseLanes:i.baseLanes|n,cachePool:a}),r.memoizedState=i,r.childLanes=Yc(e,o,n),t.memoizedState=qc,Lc(e.child,r)):(Lo(t),n=e.child,e=n.sibling,n=Bi(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function Zc(e,t){return t=Qc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Qc(e,t){return e=Ri(22,e,null,t),e.lanes=0,e}function $c(e,t,n){return go(t,e.child,null,n),e=Zc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function el(e,t,n,r,i,a,o,c){if(n)return t.flags&256?(Lo(t),t.flags&=-257,$c(e,t,c)):t.memoizedState===null?(Bo(),a=i.fallback,o=t.mode,i=Qc({mode:`visible`,children:i.children},o),a=Ui(a,o,c,null),a.flags|=2,i.return=t,a.return=t,i.sibling=a,t.child=i,go(t,e.child,null,c),i=t.child,i.memoizedState=Jc(c),i.childLanes=Yc(e,r,c),t.memoizedState=qc,Lc(null,i)):(Bo(),t.child=e.child,t.flags|=128,null);if(Lo(t),sm(a)){if(r=a.nextSibling&&a.nextSibling.dataset,r)var l=r.dgst;return r=l,r!==``&&(i=Error(s(419)),i.stack=``,i.digest=r,ba({value:i,source:null,stack:null})),$c(e,t,c)}if(Mc||Ea(e,t,c,!1),r=(c&e.childLanes)!==0,Mc||r){if(Ao.current!==null)return $c(e,t,c);if(r=Y,r!==null&&(i=wt(r,c),i!==0&&i!==o.retryLane))throw o.retryLane=i,Ni(e,i),Md(r,e,i),jc;return om(a)||Wd(),$c(e,t,c)}return om(a)?(t.flags|=192,t.child=e.child,null):(e=o.treeContext,ua=lm(a.nextSibling),la=t,P=!0,da=null,fa=!1,e!==null&&ca(t,e),t=Zc(t,i.children),t.flags|=134221824,t)}function tl(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),wa(e.return,t,n)}function nl(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&Go(n)===null&&(t=e),e=e.sibling}return t}function rl(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function il(e){var t=e.child;for(e.child=null;t!==null;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function al(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=Ho.current;if(t.flags&128)return Uo(t,o),null;var s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,Uo(t,o),i===`backwards`&&e!==null?(il(e),G(e,t,r,n),il(e)):G(e,t,r,n),r=P?Qi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&tl(e,n,t);else if(e.tag===19)tl(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`backwards`:n=nl(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null,il(t)),rl(t,!0,i,null,a,r);break;case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Go(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}rl(t,!0,n,null,a,r);break;case`together`:rl(t,!1,null,null,void 0,r);break;case`independent`:t.memoizedState=null;break;default:n=nl(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),rl(t,!1,i,n,a,r)}return t.child}function ol(e,t,n){var r=t.pendingProps;return F(t,t.type,r.value),G(e,t,r.children,n),t.child}function sl(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),id|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(Ea(e,t,n,!1),(n&t.childLanes)===0)return null}else return null}if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,n=Bi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Bi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function cl(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&Da(e)))}function ll(e,t,n){switch(t.tag){case 3:Me(t,t.stateNode.containerInfo),F(t,Fa,e.memoizedState.cache),va();break;case 27:case 5:Pe(t);break;case 4:Me(t,t.stateNode.containerInfo);break;case 10:F(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Ro(t),null;break;case 13:var r=t.memoizedState;if(r!==null){if(r.dehydrated!==null)return Lo(t),t.flags|=128,null;r=Ea(e,t,n,!1);var i=t.child.childLanes;return r||(n&i)!==0?Xc(e,t,n):(Lo(t),e=sl(e,t,n),e===null?null:e.sibling)}Lo(t);break;case 19:if(t.flags&128)return al(e,t,n);if(i=!!(e.flags&128),r=(n&t.childLanes)!==0,r||=(Ea(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return al(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Uo(t,Ho.current),r)break;return null;case 22:return t.lanes=0,Ic(e,t,n,t.pendingProps);case 24:F(t,Fa,e.memoizedState.cache)}return sl(e,t,n)}function ul(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)Mc=!0;else{if(!cl(e,n)&&!(t.flags&128))return Mc=!1,ll(e,t,n);Mc=!!(e.flags&131072)}}else Mc=!1,P&&t.flags&1048576&&aa(t,Qi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=ao(t.elementType),t.type=e,typeof e==`function`)zi(e)?(r=xc(e,r),t.tag=1,t=Gc(null,t,e,r,n)):(t.tag=0,t=Uc(null,t,e,r,n));else{if(e!=null){var i=e.$$typeof;if(i===ce){t.tag=11,t=Nc(null,t,e,r,n);break a}if(i===de){t.tag=14,t=Pc(null,t,e,r,n);break a}if(i===D){t.tag=10,t.type=e,t=ol(null,t,n);break a}}throw t=xe(e)||e,Error(s(306,t,``))}}return t;case 0:return Uc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,i=xc(r,t.pendingProps),Gc(e,t,r,i,n);case 3:a:{if(Me(t,t.stateNode.containerInfo),e===null)throw Error(s(387));r=t.pendingProps;var a=t.memoizedState;i=a.element,bo(e,t),Do(t,r,null,n);var o=t.memoizedState;if(r=o.cache,F(t,Fa,r),r!==a.cache&&Ta(t,[Fa],n,!0),Eo(),r=o.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){t=Kc(e,t,r,n);break a}if(r!==i){i=Ji(Error(s(424)),t),ba(i),t=Kc(e,t,r,n);break a}switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(ua=lm(e.firstChild),la=t,P=!0,da=null,fa=!0,n=_o(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(va(),r===i){t=sl(e,t,n);break a}G(e,t,r,n)}t=t.child}return t;case 26:return Hc(e,t),e===null?(n=Nm(t.type,null,t.pendingProps,null))?t.memoizedState=n:P||(t.stateNode=fp(t.type,t.pendingProps,Ae.current,t)):t.memoizedState=Nm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Pe(t),e===null&&P&&(r=t.stateNode=hm(t.type,t.pendingProps,Ae.current),la=t,fa=!0,i=ua,Sp(t.type)?(um=i,ua=lm(r.firstChild)):ua=i),G(e,t,t.pendingProps.children,n),Hc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&P&&((i=r=ua)&&(r=rm(r,t.type,t.pendingProps,fa),r===null?i=!1:(t.stateNode=r,la=t,ua=lm(r.firstChild),fa=!1,i=!0)),i||ma(t)),Pe(t),i=t.type,a=t.pendingProps,o=e===null?null:e.memoizedProps,r=a.children,pp(i,a)?r=null:o!==null&&pp(i,o)&&(t.flags|=32),t.memoizedState!==null&&(i=ns(e,t,as,null,null,n),sh._currentValue=i),Hc(e,t),G(e,t,r,n),t.child;case 6:return e===null&&P&&((e=n=ua)&&(n=im(n,t.pendingProps,fa),n===null?e=!1:(t.stateNode=n,la=t,ua=null,e=!0)),e||ma(t)),null;case 13:return Xc(e,t,n);case 4:return Me(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=go(t,null,r,n):G(e,t,r,n),t.child;case 11:return Nc(e,t,t.type,t.pendingProps,n);case 7:return r=t.pendingProps,Hc(e,t),G(e,t,r,n),t.child;case 8:return G(e,t,t.pendingProps.children,n),t.child;case 12:return G(e,t,t.pendingProps.children,n),t.child;case 10:return ol(e,t,n);case 9:return i=t.type._context,r=t.pendingProps.children,Oa(t),i=ka(i),r=r(i),t.flags|=1,G(e,t,r,n),t.child;case 14:return Pc(e,t,t.type,t.pendingProps,n);case 15:return Fc(e,t,t.type,t.pendingProps,n);case 19:return al(e,t,n);case 31:return Vc(e,t,n);case 22:return Ic(e,t,n,t.pendingProps);case 24:return Oa(t),r=ka(Fa),e===null?(i=Xa(),i===null&&(i=Y,a=Ia(),i.pooledCache=a,a.refCount++,a!==null&&(i.pooledCacheLanes|=n),i=a),t.memoizedState={parent:r,cache:i},yo(t),F(t,Fa,i)):((e.lanes&n)!==0&&(bo(e,t),Do(t,null,null,n),Eo()),i=e.memoizedState,a=t.memoizedState,i.parent===r?(r=a.cache,F(t,Fa,r),r!==i.cache&&Ta(t,[Fa],n,!0)):(i={parent:r,cache:r},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),F(t,Fa,r))),G(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),r=t.pendingProps,r.name!=null&&r.name!==`auto`?t.flags|=e===null?18882560:18874368:P&&oa(t),e!==null&&e.memoizedProps.name!==r.name?t.flags|=4194816:Hc(e,t),G(e,t,r.children,n),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function dl(e){e.flags|=4}function fl(e,t,n,r,i){var a;if((a=!!(e.mode&32))&&(a=n===null?Jm(t,r):Jm(t,r)&&(r.src!==n.src||r.srcSet!==n.srcSet)),a){if(e.flags|=16777216,(i&335544128)===i){if(e.stateNode.complete)e.flags|=8192;else if(Vd())e.flags|=8192;else throw oo=no,eo}}else e.flags&=-16777217}function pl(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Ym(t)){if(Vd())e.flags|=8192;else throw oo=no,eo}}function ml(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:vt(),e.lanes|=t,cd|=t)}function hl(e,t){if(!P)switch(e.tailMode){case`visible`:break;case`collapsed`:for(var n=e.tail,r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null;break;default:for(t=e.tail,n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null}}function gl(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&1206910976,r|=i.flags&1206910976,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function _l(e,t,n){var r=t.pendingProps;switch(sa(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return gl(t),null;case 1:return gl(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),I(Fa),Ne(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(_a(t)?dl(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ya())),gl(t),null;case 26:var i=t.type,a=t.memoizedState;return e===null?(dl(t),a===null?(gl(t),fl(t,i,null,r,n)):(gl(t),pl(t,a))):a?a===e.memoizedState?(gl(t),t.flags&=-16777217):(dl(t),gl(t),pl(t,a)):(e=e.memoizedProps,e!==r&&dl(t),gl(t),fl(t,i,e,r,n)),null;case 27:if(Fe(t),n=Ae.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&dl(t);else{if(!r){if(t.stateNode===null)throw Error(s(166));return gl(t),t.subtreeFlags&=-33554433,null}e=Oe.current,_a(t)?ha(t,e):(e=hm(i,r,n),t.stateNode=e,dl(t))}return gl(t),t.subtreeFlags&=-33554433,null;case 5:if(Fe(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&dl(t);else{if(!r){if(t.stateNode===null)throw Error(s(166));return gl(t),t.subtreeFlags&=-33554433,null}if(a=Oe.current,_a(t))ha(t,a);else{var o=lp(Ae.current);switch(a){case 1:a=o.createElementNS(`http://www.w3.org/2000/svg`,i);break;case 2:a=o.createElementNS(`http://www.w3.org/1998/Math/MathML`,i);break;default:switch(i){case`svg`:a=o.createElementNS(`http://www.w3.org/2000/svg`,i);break;case`math`:a=o.createElementNS(`http://www.w3.org/1998/Math/MathML`,i);break;case`script`:a=o.createElement(`div`),a.innerHTML=`<script><\/script>`,a=a.removeChild(a.firstChild);break;case`select`:a=typeof r.is==`string`?o.createElement(`select`,{is:r.is}):o.createElement(`select`),r.multiple?a.multiple=!0:r.size&&(a.size=r.size);break;default:a=typeof r.is==`string`?o.createElement(i,{is:r.is}):o.createElement(i)}}a[kt]=t,a[At]=r;a:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)a.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break a;for(;o.sibling===null;){if(o.return===null||o.return===t)break a;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=a;a:switch(np(a,i,r),i){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&dl(t)}}return gl(t),t.subtreeFlags&=-33554433,fl(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&dl(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(s(166));if(e=Ae.current,_a(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=la,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[kt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||$f(e.nodeValue,n)),e||ma(t,!0)}else e=lp(e).createTextNode(r),e[kt]=t,t.stateNode=e}return gl(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=_a(t),n!==null){if(e===null){if(!r)throw Error(s(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(s(557));e[kt]=t}else va(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;gl(t),e=!1}else n=ya(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Vo(t),t):(Vo(t),null);if(t.flags&128)throw Error(s(558))}return gl(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=_a(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(s(318));if(i=t.memoizedState,i=i===null?null:i.dehydrated,!i)throw Error(s(317));i[kt]=t}else va(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;gl(t),i=!1}else i=ya(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(Vo(t),t):(Vo(t),null)}return Vo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),a=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(a=r.memoizedState.cachePool.pool),a!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),ml(t,t.updateQueue),gl(t),null);case 4:return Ne(),e===null&&Uf(t.stateNode.containerInfo),t.flags|=67108864,gl(t),null;case 10:return I(t.type),gl(t),null;case 19:if(Wo(t),r=t.memoizedState,r===null)return gl(t),null;if(i=!!(t.flags&128),a=r.rendering,a===null){if(i)hl(r,!1);else{if(rd!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=Go(e),a!==null){for(t.flags|=128,hl(r,!1),e=a.updateQueue,t.updateQueue=e,ml(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Vi(n,e),n=n.sibling;return Uo(t,Ho.current&1|2),P&&ia(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Je()>md&&(t.flags|=128,i=!0,hl(r,!1),t.lanes=4194304)}}else{if(!i){if(e=Go(a),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,ml(t,e),hl(r,!0),r.tail===null&&r.tailMode!==`collapsed`&&r.tailMode!==`visible`&&!a.alternate&&!P)return gl(t),null}else 2*Je()-r.renderingStartTime>md&&n!==536870912&&(t.flags|=128,i=!0,hl(r,!1),t.lanes=4194304)}r.isBackwards?(a.sibling=t.child,t.child=a):(e=r.last,e===null?t.child=a:e.sibling=a,r.last=a)}if(r.tail!==null){e=r.tail;a:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break a}n=n.sibling}n=!0}return r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Je(),e.sibling=null,a=Ho.current,a=i?a&1|2:a&1,r.tailMode===`visible`||r.tailMode===`collapsed`||!n||P?Uo(t,a):(n=a,De(Fo,t),De(Ho,n),Io===null&&(Io=t)),P&&ia(t,r.treeForkCount),e}return gl(t),null;case 22:case 23:return Vo(t),Po(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(gl(t),t.subtreeFlags&6&&(t.flags|=8192)):gl(t),n=t.updateQueue,n!==null&&ml(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&A(Ya),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),I(Fa),gl(t),null;case 25:return null;case 30:return t.flags|=33554432,gl(t),null}throw Error(s(156,t.tag))}function vl(e,t){switch(sa(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return I(Fa),Ne(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Fe(t),null;case 31:if(t.memoizedState!==null){if(Vo(t),t.alternate===null)throw Error(s(340));va()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Vo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));va()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Wo(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return Ne(),null;case 10:return I(t.type),null;case 22:case 23:return Vo(t),Po(),e!==null&&A(Ya),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return I(Fa),null;case 25:return null;default:return null}}function yl(e,t){switch(sa(t),t.tag){case 3:I(Fa),Ne();break;case 26:case 27:case 5:Fe(t);break;case 4:Ne();break;case 31:t.memoizedState!==null&&Vo(t);break;case 13:Vo(t);break;case 19:Wo(t);break;case 10:I(t.type);break;case 22:case 23:Vo(t),Po(),e!==null&&A(Ya);break;case 24:I(Fa)}}function bl(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){ff(t,t.return,e)}}function xl(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){ff(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){ff(t,t.return,e)}}function Sl(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{ko(t,n)}catch(t){ff(e,e.return,t)}}}function Cl(e,t,n){n.props=xc(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){ff(e,t,n)}}function wl(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:var i=e.stateNode,a=Ci(e.memoizedProps,i);(i.ref===null||i.ref.name!==a)&&(i.ref=Pp(a)),r=i.ref;break;case 7:if(e.stateNode===null){var o=new Fp(e);h(e.child,!1,Qp,o,void 0,void 0),e.stateNode=o}r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){ff(e,t,n)}}function Tl(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){ff(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){ff(e,t,n)}else n.current=null}}function El(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n<t.length;n++)em(e.stateNode,t[n])}function Dl(e){for(var t=e.return;t!==null&&(Al(t)&&em(e.stateNode,t.stateNode),!kl(t));)t=t.return}function Ol(e){for(var t=e.return;t!==null&&(Al(t)&&tm(e.stateNode,t.stateNode),!kl(t));)t=t.return}function kl(e){return e.tag===5||e.tag===3||e.tag===27}function Al(e){return e&&e.tag===7&&e.stateNode!==null}function jl(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){ff(e,e.return,t)}}function Ml(e,t,n){try{var r=e.stateNode;ip(r,e.type,n,t),r[At]=t}catch(t){ff(e,e.return,t)}}function Nl(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Sp(e.type)||e.tag===4}function Pl(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Nl(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.tag===27&&Sp(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Fl(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(i,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(i),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Tn)),El(e,r),M=!0;else if(i!==4&&(i===27&&(El(e,r),r=null,Sp(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(Fl(e,t,n,r),e=e.sibling;e!==null;)Fl(e,t,n,r),e=e.sibling}function Il(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?n.insertBefore(i,t):n.appendChild(i),El(e,r),M=!0;else if(i!==4&&(i===27&&(El(e,r),r=null,Sp(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(Il(e,t,n,r),e=e.sibling;e!==null;)Il(e,t,n,r),e=e.sibling}function Ll(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);np(t,r,n),t[kt]=e,t[At]=n}catch(t){ff(e,e.return,t)}}var Rl=!1,zl=null;function Bl(e){(e.tag===30||e.subtreeFlags&33554432)&&(Rl=!0)}var Vl=null;function Hl(){var e=Vl;return Vl=null,e}var Ul=0;function Wl(e,t,n,r,i){return Ul=0,Gl(e.child,t,n,r,i)}function Gl(e,t,n,r,i){for(var a=!1;e!==null;){if(e.tag===5){var o=e.stateNode;if(r!==null){var s=Op(o);r.push(s),s.view&&(a=!0)}else a||Op(o).view&&(a=!0);Rl=!0,Tp(o,Ul===0?t:t+`_`+Ul,n),Ul++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&i||Gl(e.child,t,n,r,i)&&(a=!0));e=e.sibling}return a}function Kl(e,t){for(;e!==null;)e.tag===5?Ep(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||Kl(e.child,t)),e=e.sibling}function ql(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(ql(e),e.tag===30&&e.flags&18874368&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name===`auto`)throw Error(s(544));var n=t.name;t=Ti(t.default,t.share),t!==`none`&&(Wl(e,n,t,null,!1)||Kl(e.child,!1))}e=e.sibling}}function Jl(e,t){if(e.tag===30){var n=e.stateNode,r=e.memoizedProps,i=Ci(r,n),a=Ti(r.default,n.paired?r.share:r.enter);a===`none`?ql(e):Wl(e,i,a,null,!1)?(ql(e),n.paired||t||jd(e,r.onEnter)):Kl(e.child,!1)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Jl(e,t),e=e.sibling;else ql(e)}function Yl(e){if(zl!==null&&zl.size!==0){var t=zl;if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var n=e.memoizedProps,r=n.name;if(r!=null&&r!==`auto`){var i=t.get(r);if(i!==void 0){var a=Ti(n.default,n.share);if(a!==`none`&&(Wl(e,r,a,null,!1)?(a=e.stateNode,i.paired=a,a.paired=i,jd(e,n.onShare)):Kl(e.child,!1)),t.delete(r),t.size===0)break}}}Yl(e)}e=e.sibling}}}function Xl(e){if(e.tag===30){var t=e.memoizedProps,n=Ci(t,e.stateNode),r=zl===null?void 0:zl.get(n),i=Ti(t.default,r===void 0?t.exit:t.share);i!==`none`&&(Wl(e,n,i,null,!1)?r===void 0?jd(e,t.onExit):(i=e.stateNode,r.paired=i,i.paired=r,zl.delete(n),jd(e,t.onShare)):Kl(e.child,!1)),zl!==null&&Yl(e)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Xl(e),e=e.sibling;else zl!==null&&Yl(e)}function Zl(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=Ci(t,e.stateNode);t=Ti(t.default,t.update),e.flags&=-5,t!==`none`&&Wl(e,n,t,e.memoizedState=[],!1)}else e.subtreeFlags&33554432&&Zl(e);e=e.sibling}}function Ql(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var t=e.stateNode;t.paired!==null&&(t.paired=null,Kl(e.child,!1))}Ql(e)}e=e.sibling}}function $l(e){if(e.tag===30)e.stateNode.paired=null,Kl(e.child,!1),Ql(e);else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)$l(e),e=e.sibling;else Ql(e)}function eu(e){for(e=e.child;e!==null;)e.tag===30?Kl(e.child,!1):e.subtreeFlags&33554432&&eu(e),e=e.sibling}function tu(e,t,n,r,i,a,o){for(var s=!1;t!==null;){if(t.tag===5){var c=t.stateNode;if(a!==null&&Ul<a.length){var l=a[Ul],u=Op(c);(l.view||u.view)&&(s=!0);var d;if(d=!(e.flags&4)){if(u.clip)d=!0;else{d=l.rect;var f=u.rect;d=d.y!==f.y||d.x!==f.x||d.height!==f.height||d.width!==f.width}}d&&(e.flags|=4),u.abs?u=!l.abs:(l=l.rect,u=u.rect,u=l.height!==u.height||l.width!==u.width),u&&(e.flags|=32)}else e.flags|=32;e.flags&4&&Tp(c,Ul===0?n:n+`_`+Ul,i),s&&e.flags&4||(Vl===null&&(Vl=[]),Vl.push(c,Ul===0?r:r+`_`+Ul,t.memoizedProps)),Ul++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&o?e.flags|=t.flags&32:tu(e,t.child,n,r,i,a,o)&&(s=!0));t=t.sibling}return s}function nu(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,r=e.stateNode,i=Ci(n,r),a=Ti(n.default,n.update);if(t){r=r.clones;var o=r===null?null:r.map(kp)}else o=e.memoizedState,e.memoizedState=null;r=e;var s=e.child;Ul=0,i=tu(r,s,i,i,a,o,!1),e.flags&4&&i&&(t||jd(e,n.onUpdate))}else e.subtreeFlags&33554432&&nu(e,t);e=e.sibling}}var ru=!1,K=!1,iu=!1,au=!1,ou=typeof WeakSet==`function`?WeakSet:Set,su=null,cu=!1,lu=!1,uu=!1,du=!1;function fu(e,t,n){if(e=e.containerInfo,sp=gh,e=$r(e),ei(e)){if(`selectionStart`in e)var r={start:e.selectionStart,end:e.selectionEnd};else a:{r=(r=e.ownerDocument)&&r.defaultView||window;var i=r.getSelection&&r.getSelection();if(i&&i.rangeCount!==0){r=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==r||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===r&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}r=c===-1||l===-1?null:{start:c,end:l}}else r=null}r||={start:0,end:0}}else r=null;for(cp={focusedElem:e,selectionRange:r},gh=!1,n=(n&335544064)===n,su=t,t=n?9270:1024;su!==null;){if(e=su,n&&(r=e.deletions,r!==null))for(a=0;a<r.length;a++)n&&Xl(r[a]);if(e.alternate===null&&e.flags&2)n&&Bl(e),pu(n);else{if(e.tag===22){if(r=e.alternate,e.memoizedState!==null){r!==null&&r.memoizedState===null&&n&&Xl(r),pu(n);continue}if(r!==null&&r.memoizedState!==null){n&&Bl(e),pu(n);continue}}r=e.child,(e.subtreeFlags&t)!==0&&r!==null?(r.return=e,su=r):(n&&Zl(e),pu(n))}}zl=null}function pu(e){for(;su!==null;){var t=su,n=e,r=t.alternate,i=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if(i&1024&&r!==null){n=void 0,i=r.memoizedProps,r=r.memoizedState;var a=t.stateNode;try{var o=xc(t.type,i);n=a.getSnapshotBeforeUpdate(o,r),a.__reactInternalSnapshotBeforeUpdate=n}catch(e){ff(t,t.return,e)}}break;case 3:if(i&1024){if(r=t.stateNode.containerInfo,n=r.nodeType,n===9)nm(r);else if(n===1)switch(r.nodeName){case`HEAD`:case`HTML`:case`BODY`:nm(r);break;default:r.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&r!==null&&(n=Ci(r.memoizedProps,r.stateNode),i=t.memoizedProps,i=Ti(i.default,i.update),i!==`none`&&Wl(r,n,i,r.memoizedState=[],!0));break;default:if(i&1024)throw Error(s(163))}if(r=t.sibling,r!==null){r.return=t.return,su=r;break}su=t.return}}function mu(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Nu(e,n),r&4&&bl(5,n);break;case 1:if(Nu(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){ff(n,n.return,e)}else{var i=xc(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){ff(n,n.return,e)}}}r&64&&Sl(n),r&512&&wl(n,n.return);break;case 3:if(Nu(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{ko(e,t)}catch(e){ff(n,n.return,e)}}break;case 27:t===null&&r&4&&Ll(n);case 26:case 5:Nu(e,n),t===null&&r&4&&jl(n),r&512&&wl(n,n.return);break;case 12:Nu(e,n);break;case 31:Nu(e,n),r&4&&Cu(e,n);break;case 13:Nu(e,n),r&4&&wu(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=gf.bind(null,n),cm(e,n))));break;case 22:if(r=n.memoizedState!==null||ru,!r){var a=t!==null&&t.memoizedState!==null||K;t=ru,i=K,ru=r,(K=a)&&!i?(r=2,n.subtreeFlags&8772&&(r|=1),Fu(e,n,r)):Nu(e,n),ru=t,K=i}break;case 30:Nu(e,n),r&512&&wl(n,n.return);break;case 7:r&512&&wl(n,n.return);default:Nu(e,n)}}function hu(e,t){for(e=e.child;e!==null;)gu(e,t),e=e.sibling}function gu(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;if(t){var r=n.style;typeof r.setProperty==`function`?r.setProperty(`display`,`none`,`important`):r.display=`none`}else{var i=e.stateNode,a=e.memoizedProps.style,o=a!=null&&a.hasOwnProperty(`display`)?a.display:null;i.style.display=o==null||typeof o==`boolean`?``:(``+o).trim()}}catch(t){ff(e,e.return,t)}_u(e,t);break;case 6:try{e.stateNode.nodeValue=t?``:e.memoizedProps,M=!0}catch(t){ff(e,e.return,t)}break;case 18:try{var s=e.stateNode;t?wp(s,!0):wp(e.stateNode,!1)}catch(t){ff(e,e.return,t)}break;case 22:case 23:e.memoizedState===null&&hu(e,t);break;default:hu(e,t)}}function _u(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){a:{var n=e,r=t;switch(n.tag){case 4:gu(n,r);break a;case 22:n.memoizedState===null&&_u(n,r);break a;default:_u(n,r)}}e=e.sibling}}function vu(e){var t=e.alternate;t!==null&&(e.alternate=null,vu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Rt(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var yu=null,bu=!1;function xu(e,t,n){for(n=n.child;n!==null;)Su(e,t,n),n=n.sibling}function Su(e,t,n){if(it&&typeof it.onCommitFiberUnmount==`function`)try{it.onCommitFiberUnmount(rt,n)}catch{}switch(n.tag){case 26:K||Tl(n,t),xu(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!K&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:K||Tl(n,t),Ol(n);var r=yu,i=bu;Sp(n.type)&&(yu=n.stateNode,bu=!1),xu(e,t,n),gm(n.stateNode,n.type,n.memoizedProps),yu=r,bu=i;break;case 5:K||Tl(n,t),Ol(n);case 6:if(n.tag===6&&Ol(n),r=yu,i=bu,yu=null,xu(e,t,n),yu=r,bu=i,yu!==null){if(bu)try{(yu.nodeType===9?yu.body:yu.nodeName===`HTML`?yu.ownerDocument.body:yu).removeChild(n.stateNode),M=!0}catch(e){ff(n,t,e)}else try{yu.removeChild(n.stateNode),M=!0}catch(e){ff(n,t,e)}}break;case 18:yu!==null&&(bu?(e=yu,Cp(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Hh(e)):Cp(yu,n.stateNode));break;case 4:r=yu,i=bu,yu=n.stateNode.containerInfo,bu=!0,xu(e,t,n),yu=r,bu=i;break;case 0:case 11:case 14:case 15:xl(2,n,t),K||xl(4,n,t),xu(e,t,n);break;case 1:K||(Tl(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Cl(n,t,r)),xu(e,t,n);break;case 21:xu(e,t,n);break;case 22:K=(r=K)||n.memoizedState!==null,xu(e,t,n),K=r;break;case 30:Tl(n,t),xu(e,t,n);break;case 7:K||Tl(n,t),xu(e,t,n);break;default:xu(e,t,n)}}function Cu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Hh(e)}catch(e){ff(t,t.return,e)}}}function wu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Hh(e)}catch(e){ff(t,t.return,e)}}function Tu(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new ou),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new ou),t;default:throw Error(s(435,e.tag))}}function Eu(e,t){var n=Tu(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=_f.bind(null,e,t);t.then(r,r)}})}function Du(e,t,n){var r=t.deletions;if(r!==null)for(var i=0;i<r.length;i++){var a=r[i],o=e,c=t,l=c;a:for(;l!==null;){switch(l.tag){case 27:if(Sp(l.type)){yu=l.stateNode,bu=!1;break a}break;case 5:yu=l.stateNode,bu=!1;break a;case 3:case 4:yu=l.stateNode.containerInfo,bu=!0;break a}l=l.return}if(yu===null)throw Error(s(160));Su(o,c,a),yu=null,bu=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)ku(t,e,n),t=t.sibling}var Ou=null;function ku(e,t,n){var r=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(i&4&&(r=e.updateQueue,r=r===null?null:r.events,r!==null))for(var a=0;a<r.length;a++){var o=r[a];o.ref.impl=o.nextImpl}Du(t,e,n),Au(e),i&4&&(xl(3,e,e.return),bl(3,e),xl(5,e,e.return));break;case 1:Du(t,e,n),Au(e),i&512&&(K||r===null||Tl(r,r.return)),i&64&&ru&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?t:n.concat(t))));break;case 26:if(a=Ou,Du(t,e,n),Au(e),i&512&&(K||r===null||Tl(r,r.return)),i&4){if(i=r===null?null:r.memoizedState,n=e.memoizedState,r===null){if(n===null){if(e.stateNode===null){if(ru)e.stateNode=fp(e.type,e.memoizedProps,t.containerInfo,e);else{a:{t=e.type,n=e.memoizedProps,i=a.ownerDocument||a;b:switch(t){case`title`:r=i.getElementsByTagName(`title`)[0],(!r||r[It]||r[kt]||r.namespaceURI===`http://www.w3.org/2000/svg`||r.hasAttribute(`itemprop`))&&(r=i.createElement(t),i.head.insertBefore(r,i.querySelector(`head > title`))),np(r,t,n),r[kt]=e,Ut(r),t=r;break a;case`link`:if(a=Gm(`link`,`href`,i).get(t+(n.href||``))){for(o=0;o<a.length;o++)if(r=a[o],r.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&r.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&r.getAttribute(`title`)===(n.title==null?null:n.title)&&r.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){a.splice(o,1);break b}}r=i.createElement(t),np(r,t,n),i.head.appendChild(r);break;case`meta`:if(a=Gm(`meta`,`content`,i).get(t+(n.content||``))){for(o=0;o<a.length;o++)if(r=a[o],r.getAttribute(`content`)===(n.content==null?null:``+n.content)&&r.getAttribute(`name`)===(n.name==null?null:n.name)&&r.getAttribute(`property`)===(n.property==null?null:n.property)&&r.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&r.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){a.splice(o,1);break b}}r=i.createElement(t),np(r,t,n),i.head.appendChild(r);break;default:throw Error(s(468,t))}r[kt]=e,Ut(r),t=r}e.stateNode=t}}else ru||Km(a,e.type,e.stateNode)}else e.stateNode=Bm(a,n,e.memoizedProps)}else i===n?n===null&&e.stateNode!==null&&Ml(e,e.memoizedProps,r.memoizedProps):(i===null?(t=r.stateNode,t===null||K||t.parentNode.removeChild(t)):i.count--,n===null?ru||Km(a,e.type,e.stateNode):Bm(a,n,e.memoizedProps))}break;case 27:Du(t,e,n),Au(e),i&512&&(K||r===null||Tl(r,r.return)),r!==null&&i&4&&Ml(e,e.memoizedProps,r.memoizedProps);break;case 5:if(a=iu,iu=!1,Du(t,e,n),iu=a,Au(e),i&512&&(K||r===null||Tl(r,r.return)),e.flags&32){t=e.stateNode;try{_n(t,``),M=!0}catch(t){ff(e,e.return,t)}}i&4&&e.stateNode!=null&&(t=e.memoizedProps,Ml(e,t,r===null?t:r.memoizedProps)),i&1024&&(au=!0);break;case 6:if(Du(t,e,n),Au(e),i&4){if(e.stateNode===null)throw Error(s(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,M=!0}catch(t){ff(e,e.return,t)}}break;case 3:if(M=!1,Wm=null,a=Ou,Ou=bm(t.containerInfo),Du(t,e,n),Ou=a,Au(e),i&4&&r!==null&&r.memoizedState.isDehydrated)try{Hh(t.containerInfo)}catch(t){ff(e,e.return,t)}au&&(au=!1,ju(e)),M=!1;break;case 4:i=iu,iu=ru,r=$t(),a=Ou,Ou=bm(e.stateNode.containerInfo),Du(t,e,n),Au(e),Ou=a,M&&lu&&(uu=!0),M=r,iu=i;break;case 12:Du(t,e,n),Au(e);break;case 31:Du(t,e,n),Au(e),i&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Eu(e,t)));break;case 13:Du(t,e,n),Au(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(fd=Je()),i&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Eu(e,t)));break;case 22:a=e.memoizedState!==null,o=r!==null&&r.memoizedState!==null;var c=ru,l=K,u=iu;ru=c||a,iu=u||a,K=l||o,Du(t,e,n),K=l,iu=u,ru=c,Au(e),i&8192&&(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,!a||r===null||o||ru||K||(t=o||K,n=ru,r=K,ru=a||ru,K=t,Pu(e,2),ru=n,K=r),!a&&iu||hu(e,a)),i&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,Eu(e,n))));break;case 19:Du(t,e,n),Au(e),i&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Eu(e,t)));break;case 30:i&512&&(K||r===null||Tl(r,r.return)),i=$t(),a=lu,o=(n&335544064)===n,c=e.memoizedProps,lu=o&&Ti(c.default,c.update)!==`none`,Du(t,e,n),Au(e),o&&r!==null&&M&&(e.flags|=4),lu=a,M=i;break;case 21:break;case 7:i&512&&(K||r===null||Tl(r,r.return)),r&&r.stateNode!==null&&(r.stateNode._fragmentFiber=e);default:Du(t,e,n),Au(e)}}function Au(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Nl(r)){n=r;break}r=r.return}r=null;for(var i=e.return;i!==null;){if(Al(i)){var a=i.stateNode;r===null?r=[a]:r.push(a)}if(kl(i))break;i=i.return}var o=r;if(n==null)throw Error(s(160));switch(n.tag){case 27:var c=n.stateNode;Il(e,Pl(e),c,o);break;case 5:var l=n.stateNode;n.flags&32&&(_n(l,``),n.flags&=-33),Il(e,Pl(e),l,o);break;case 3:case 4:var u=n.stateNode.containerInfo;Fl(e,Pl(e),u,o);break;default:throw Error(s(161))}}catch(t){ff(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ju(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;ju(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,gh=!0,t.reset(),gh=!1),e=e.sibling}}function Mu(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)q(t,e),t=t.sibling;else nu(t,!1)}function q(e,t){var n=e.alternate;if(n===null)Jl(e,!1);else switch(e.tag){case 3:if(du=cu=!1,Hl(),Mu(t,e),!cu&&!uu){if(e=Vl,e!==null)for(var r=0;r<e.length;r+=3){n=e[r];var i=e[r+1];Ep(n,e[r+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(`+i+`)`})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===``&&(e.style.viewTransitionName=`none`,e.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(root)`}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition`})),du=!0}Vl=null;break;case 5:Mu(t,e);break;case 4:r=cu,cu=!1,Mu(t,e),cu&&(uu=!0),cu=r;break;case 22:e.memoizedState===null&&(n.memoizedState===null?Mu(t,e):Jl(e,!1));break;case 30:r=cu,i=Hl(),cu=!1,Mu(t,e),cu&&(e.flags|=4);var a=e.memoizedProps,o=e.stateNode;t=Ci(a,o),o=Ci(n.memoizedProps,o);var s=Ti(a.default,a.update);s===`none`?t=!1:(a=n.memoizedState,n.memoizedState=null,n=e.child,Ul=0,t=tu(e,n,t,o,s,a,!0),Ul!==(a===null?0:a.length)&&(e.flags|=32)),e.flags&4&&t?(jd(e,e.memoizedProps.onUpdate),Vl=i):i!==null&&(i.push.apply(i,Vl),Vl=i),cu=e.flags&32?!0:r;break;default:Mu(t,e)}}function Nu(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)mu(e,t.alternate,t),t=t.sibling}function Pu(e,t){for(e=e.child;e!==null;){var n=e,r=t;switch(n.tag){case 0:case 11:case 14:case 15:xl(4,n,n.return),Pu(n,r);break;case 1:Tl(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount==`function`&&Cl(n,n.return,i),Pu(n,r);break;case 27:r&2&&gm(n.stateNode,n.type,n.memoizedProps);case 5:Tl(n,n.return),n.tag!==5&&n.tag!==27||Ol(n),Pu(n,r);break;case 6:Ol(n);break;case 26:Tl(n,n.return),i=n.stateNode,n.memoizedState!==null||i===null||K||i.parentNode.removeChild(i),Pu(n,r);break;case 22:n.memoizedState===null&&Pu(n,r);break;case 30:Tl(n,n.return),Pu(n,r);break;case 7:Tl(n,n.return);default:Pu(n,r)}e=e.sibling}}function Fu(e,t,n){for(n=t.subtreeFlags&8772?n:n&-2,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags,s=!!(n&1);switch(a.tag){case 0:case 11:case 15:Fu(i,a,n),bl(4,a);break;case 1:if(Fu(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){ff(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var c=r.stateNode;try{var l=i.shared.hiddenCallbacks;if(l!==null)for(i.shared.hiddenCallbacks=null,i=0;i<l.length;i++)Oo(l[i],c)}catch(e){ff(r,r.return,e)}}s&&o&64&&Sl(a),wl(a,a.return);break;case 27:n&2&&Ll(a);case 5:a.tag!==5&&a.tag!==27||Dl(a),Fu(i,a,n),s&&r===null&&o&4&&jl(a),wl(a,a.return);break;case 6:Dl(a);break;case 26:c=a.stateNode,a.memoizedState!==null||c===null||ru||Km(bm(c.ownerDocument),a.type,c),Fu(i,a,n),s&&r===null&&o&4&&jl(a),wl(a,a.return);break;case 12:Fu(i,a,n);break;case 31:Fu(i,a,n),s&&o&4&&Cu(i,a);break;case 13:Fu(i,a,n),s&&o&4&&wu(i,a);break;case 22:a.memoizedState===null&&Fu(i,a,n),wl(a,a.return);break;case 30:Fu(i,a,n),wl(a,a.return);break;case 7:wl(a,a.return);default:Fu(i,a,n)}t=t.sibling}}function Iu(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&La(n))}function Lu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&La(e))}function Ru(e,t,n,r){var i=(n&335544064)===n;if(t.subtreeFlags&(i?10262:10256))for(t=t.child;t!==null;)zu(e,t,n,r),t=t.sibling;else i&&eu(t)}function zu(e,t,n,r){var i=(n&335544064)===n;i&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&$l(t);var a=t.flags;switch(t.tag){case 0:case 11:case 15:Ru(e,t,n,r),a&2048&&bl(9,t);break;case 1:Ru(e,t,n,r);break;case 3:Ru(e,t,n,r),i&&du&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,e.style.viewTransitionName===`root`&&(e.style.viewTransitionName=``),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===`none`&&(e.style.viewTransitionName=``)),a&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==a&&(t.refCount++,a!=null&&La(a)));break;case 12:if(a&2048){Ru(e,t,n,r),a=t.stateNode;try{var o=t.memoizedProps,s=o.id,c=o.onPostCommit;typeof c==`function`&&c(s,t.alternate===null?`mount`:`update`,a.passiveEffectDuration,-0)}catch(e){ff(t,t.return,e)}}else Ru(e,t,n,r);break;case 31:Ru(e,t,n,r);break;case 13:Ru(e,t,n,r);break;case 23:break;case 22:o=t.stateNode,s=t.alternate,t.memoizedState===null?(i&&s!==null&&s.memoizedState!==null&&$l(t),o._visibility&2?Ru(e,t,n,r):(o._visibility|=2,Bu(e,t,n,r,!!(t.subtreeFlags&10256)||!1))):(i&&s!==null&&s.memoizedState===null&&$l(s),o._visibility&2?Ru(e,t,n,r):Vu(e,t)),a&2048&&Iu(s,t);break;case 24:Ru(e,t,n,r),a&2048&&Lu(t.alternate,t);break;case 30:i&&(a=t.alternate,a!==null&&(Kl(a.child,!0),Kl(t.child,!0))),Ru(e,t,n,r);break;default:Ru(e,t,n,r)}}function Bu(e,t,n,r,i){for(i&&=!!(t.subtreeFlags&10256)||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Bu(a,o,s,c,i),bl(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Bu(a,o,s,c,i)):u._visibility&2?Bu(a,o,s,c,i):Vu(a,o),i&&l&2048&&Iu(o.alternate,o);break;case 24:Bu(a,o,s,c,i),i&&l&2048&&Lu(o.alternate,o);break;default:Bu(a,o,s,c,i)}t=t.sibling}}function Vu(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Vu(n,r),i&2048&&Iu(r.alternate,r);break;case 24:Vu(n,r),i&2048&&Lu(r.alternate,r);break;default:Vu(n,r)}t=t.sibling}}var Hu=8192;function Uu(e,t,n){if(e.subtreeFlags&Hu)for(e=e.child;e!==null;)Wu(e,t,n),e=e.sibling}function Wu(e,t,n){switch(e.tag){case 26:Uu(e,t,n),e.flags&Hu&&(e.memoizedState===null?(e=e.stateNode,(t&335544128)===t&&Zm(n,e)):Qm(n,Ou,e.memoizedState,e.memoizedProps));break;case 5:Uu(e,t,n),e.flags&Hu&&(e=e.stateNode,(t&335544128)===t&&Zm(n,e));break;case 3:case 4:var r=Ou;Ou=bm(e.stateNode.containerInfo),Uu(e,t,n),Ou=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Hu,Hu=16777216,Uu(e,t,n),Hu=r):Uu(e,t,n));break;case 30:if((e.flags&Hu)!==0&&(r=e.memoizedProps.name,r!=null&&r!==`auto`)){var i=e.stateNode;i.paired=null,zl===null&&(zl=new Map),zl.set(r,i)}Uu(e,t,n);break;default:Uu(e,t,n)}}function Gu(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Ku(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];su=r,Yu(r,e)}Gu(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)qu(e),e=e.sibling}function qu(e){switch(e.tag){case 0:case 11:case 15:Ku(e),e.flags&2048&&xl(9,e,e.return);break;case 3:Ku(e);break;case 12:Ku(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ju(e)):Ku(e);break;default:Ku(e)}}function Ju(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];su=r,Yu(r,e)}Gu(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:xl(8,t,t.return),Ju(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Ju(t));break;default:Ju(t)}e=e.sibling}}function Yu(e,t){for(;su!==null;){var n=su;switch(n.tag){case 0:case 11:case 15:xl(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:La(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,su=r;else a:for(n=e;su!==null;){r=su;var i=r.sibling,a=r.return;if(vu(r),r===n){su=null;break a}if(i!==null){i.return=a,su=i;break a}su=a}}}var Xu={getCacheForType:function(e){var t=ka(Fa),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ka(Fa).controller.signal}},Zu=typeof WeakMap==`function`?WeakMap:Map,J=0,Y=null,X=null,Z=0,Q=0,Qu=null,$u=!1,ed=!1,td=!1,nd=0,rd=0,id=0,ad=0,od=0,sd=0,cd=0,ld=null,ud=null,dd=!1,fd=0,pd=0,md=1/0,hd=null,gd=null,_d=0,vd=null,yd=null,bd=0,xd=0,Sd=null,Cd=null,wd=null,Td=null,Ed=null,Dd=0,Od=null;function kd(){return J&2&&Z!==0?Z&-Z:O.T===null?Dt():Nf()}function Ad(){if(sd===0){if(!(Z&536870912)||P){var e=dt;dt<<=1,!(dt&3932160)&&(dt=262144),sd=e}else sd=536870912}return e=Fo.current,e!==null&&(e.flags|=32),sd}function jd(e,t){if(t!=null){var n=e.stateNode,r=n.ref;r===null&&(r=n.ref=Pp(Ci(e.memoizedProps,n))),Td===null&&(Td=[]),Td.push(t.bind(null,r))}}function Md(e,t,n){(e===Y&&(Q===2||Q===9)||e.cancelPendingCommit!==null)&&(zd(e,0),Id(e,Z,sd,!1)),bt(e,n),(!(J&2)||e!==Y)&&(e===Y&&(!(J&2)&&(ad|=n),rd===4&&Id(e,Z,sd,!1)),Tf(e))}function Nd(e,t,n){if(J&6)throw Error(s(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||ht(e,t),i=r?qd(e,t):Gd(e,t,!0),a=r;do{if(i===0){ed&&!r&&Id(e,t,0,!1);break}if(n=e.current.alternate,a&&!Fd(n)){i=Gd(e,t,!1),a=!1;continue}if(i===2){if(a=t,e.errorRecoveryDisabledLanes&a)var o=0;else o=e.pendingLanes&-536870913,o=o===0?o&536870912?536870912:0:o;if(o!==0){t=o;a:{var c=e;i=ld;var l=c.current.memoizedState.isDehydrated;if(l&&(zd(c,o).flags|=256),o=Gd(c,o,!1),o!==2&&o!==6){if(td&&!l){c.errorRecoveryDisabledLanes|=a,ad|=a,i=4;break a}a=ud,ud=i,a!==null&&(ud===null?ud=a:ud.push.apply(ud,a))}i=o}if(a=!1,i!==2)continue}}if(i===1){zd(e,0),Id(e,t,0,!0);break}a:{switch(r=e,a=i,a){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:Id(r,t,sd,!$u);break a;case 2:ud=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(i=fd+300-Je(),10<i)){if(Id(r,t,sd,!$u),mt(r,0,!0)!==0)break a;bd=t,r.timeoutHandle=gp(Pd.bind(null,r,n,ud,hd,dd,t,sd,ad,cd,$u,a,`Throttled`,-0,0),i);break a}Pd(r,n,ud,hd,dd,t,sd,ad,cd,$u,a,null,-0,0)}break}while(1);Tf(e)}function Pd(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.timeoutHandle=-1;var m=t.subtreeFlags,h=(a&335544064)===a;if(d=null,(h||m&8192||(m&16785408)==16785408)&&(d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Tn},zl=null,Wu(t,a,d),h&&(m=d,h=e.containerInfo,h=(h.nodeType===9?h:h.ownerDocument).__reactViewTransition,h!=null&&(m.count++,m.waitingForViewTransition=!0,m=nh.bind(m),h.finished.then(m,m))),m=(a&62914560)===a?fd-Je():(a&4194048)===a?pd-Je():0,m=eh(d,m),m!==null)){bd=a,e.cancelPendingCommit=m(ef.bind(null,e,t,a,n,r,i,o,s,c,l,u,d,null,f,p)),Id(e,a,o,!l);return}ef(e,t,a,n,r,i,o,s,c,l,u,d)}function Fd(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!qr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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 Id(e,t,n,r){t=gt(e,t),t&=~od,t&=~ad,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-ot(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&St(e,n,t)}function Ld(){return J&6?!0:(Ef(0,!1),!1)}function Rd(){if(X!==null){if(Q===0)var e=X.return;else e=X,Ca=Sa=null,cs(e),lo=null,uo=0,e=X;for(;e!==null;)yl(e.alternate,e),e=e.return;X=null}}function zd(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,_p(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),bd=0,Rd(),Y=e,X=n=Bi(e.current,null),Z=t,Q=0,Qu=null,$u=!1,ed=ht(e,t),td=!1,cd=sd=od=ad=id=rd=0,ud=ld=null,dd=!1,nd=gt(e,t),Ai(),n}function Bd(e,t){L=null,O.H=pc,t===$a||t===to?(t=so(),Q=3):t===eo?(t=so(),Q=4):Q=t===jc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Qu=t,X===null&&(rd=1,Tc(e,Ji(t,e.current)))}function Vd(){var e=Fo.current;return e===null?!0:(Z&4194048)===Z?Io===null:(Z&62914560)===Z||Z&536870912?e===Io:!1}function Hd(){var e=O.H;return O.H=pc,e===null?pc:e}function Ud(){var e=O.A;return O.A=Xu,e}function Wd(){rd=4,$u||(Z&4194048)!==Z&&Fo.current!==null||(ed=!0),!(id&134217727)&&!(ad&134217727)||Y===null||Id(Y,Z,sd,!1)}function Gd(e,t,n){var r=J;J|=2;var i=Hd(),a=Ud();(Y!==e||Z!==t)&&(hd=null,zd(e,t)),t=!1;var o=rd;a:do try{if(Q!==0&&X!==null){var s=X,c=Qu;switch(Q){case 8:Rd(),o=6;break a;case 3:case 2:case 9:case 6:Fo.current===null&&(t=!0);var l=Q;if(Q=0,Qu=null,Zd(e,s,c,l),n&&ed){o=0;break a}break;default:l=Q,Q=0,Qu=null,Zd(e,s,c,l)}}Kd(),o=rd;break}catch(t){Bd(e,t)}while(1);return t&&e.shellSuspendCounter++,Ca=Sa=null,J=r,O.H=i,O.A=a,X===null&&(Y=null,Z=0,Ai()),o}function Kd(){for(;X!==null;)Yd(X)}function qd(e,t){var n=J;J|=2;var r=Hd(),i=Ud();Y!==e||Z!==t?(hd=null,md=Je()+500,zd(e,t)):ed=ht(e,t);a:do try{if(Q!==0&&X!==null){t=X;var a=Qu;b:switch(Q){case 1:Q=0,Qu=null,Zd(e,t,a,1);break;case 2:case 9:if(ro(a)){Q=0,Qu=null,Xd(t);break}t=function(){Q!==2&&Q!==9||Y!==e||(Q=7),Tf(e)},a.then(t,t);break a;case 3:Q=7;break a;case 4:Q=5;break a;case 7:ro(a)?(Q=0,Qu=null,Xd(t)):(Q=0,Qu=null,Zd(e,t,a,7));break;case 5:var o=null;switch(X.tag){case 26:o=X.memoizedState;case 5:case 27:var c=X;if(o?Ym(o):c.stateNode.complete){Q=0,Qu=null;var l=c.sibling;if(l!==null)X=l;else{var u=c.return;u===null?X=null:(X=u,Qd(u))}break b}}Q=0,Qu=null,Zd(e,t,a,5);break;case 6:Q=0,Qu=null,Zd(e,t,a,6);break;case 8:Rd(),rd=6;break a;default:throw Error(s(462))}}Jd();break}catch(t){Bd(e,t)}while(1);return Ca=Sa=null,O.H=r,O.A=i,J=n,X===null?(Y=null,Z=0,Ai(),rd):0}function Jd(){for(;X!==null&&!Ke();)Yd(X)}function Yd(e){var t=ul(e.alternate,e,nd);e.memoizedProps=e.pendingProps,t===null?Qd(e):X=t}function Xd(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Wc(n,t,t.pendingProps,t.type,void 0,Z);break;case 11:t=Wc(n,t,t.pendingProps,t.type.render,t.ref,Z);break;case 5:cs(t);var r=t;r===la&&(P?(ga(r),r.tag===5&&r.stateNode!=null&&(ua=r.stateNode)):(ga(r),P=!0));default:yl(n,t),t=X=Vi(t,nd),t=ul(n,t,nd)}e.memoizedProps=e.pendingProps,t===null?Qd(e):X=t}function Zd(e,t,n,r){Ca=Sa=null,cs(t),lo=null,uo=0;var i=t.return;try{if(Ac(e,i,t,n,Z)){rd=1,Tc(e,Ji(n,e.current)),X=null;return}}catch(t){if(i!==null)throw X=i,t;rd=1,Tc(e,Ji(n,e.current)),X=null;return}t.flags&32768?(P||r===1?e=!0:ed||Z&536870912?e=!1:($u=e=!0,(r===2||r===9||r===3||r===6)&&(r=Fo.current,r!==null&&r.tag===13&&(r.flags|=16384))),$d(t,e)):Qd(t)}function Qd(e){var t=e;do{if(t.flags&32768){$d(t,$u);return}e=t.return;var n=_l(t.alternate,t,nd);if(n!==null){X=n;return}if(t=t.sibling,t!==null){X=t;return}X=t=e}while(t!==null);rd===0&&(rd=5)}function $d(e,t){do{var n=vl(e.alternate,e);if(n!==null){n.flags&=32767,X=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){X=e;return}X=e=n}while(e!==null);rd=6,X=null}function ef(e,t,n,r,i,a,o,c,l,u,d,f){e.cancelPendingCommit=null;do lf();while(_d!==0);if(J&6)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));e===Y&&(X=Y=null,Z=0),yd=t,vd=e,bd=n,Sd=i,Cd=r,tf(e,t,n,o,c,l,f)}}function tf(e,t,n,r,i,a,o){var s=t.lanes|t.childLanes;if(xd=s,s|=ki,xt(e,n,s,r,i,a),Td=null,(n&335544064)===n?(Ed=Ba(e),r=10262):(Ed=null,r=10256),(t.subtreeFlags&r)!==0||(t.flags&r)!==0?(e.callbackNode=null,e.callbackPriority=0,vf(Qe,function(){return uf(),null})):(e.callbackNode=null,e.callbackPriority=0),Rl=!1,r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=O.T,O.T=null,i=k.p,k.p=2,a=J,J|=4;try{fu(e,t,n)}finally{J=a,k.p=i,O.T=r}}_d=1,Rl?wd=Mp(o,e.containerInfo,Ed,af,of,rf,sf,uf,nf,null,null):(af(),of(),sf())}function nf(e){if(_d!==0){var t=vd.onRecoverableError;t(e,{componentStack:null})}}function rf(){_d===3&&(_d=0,q(yd,vd),_d=4)}function af(){if(_d===1){_d=0;var e=vd,t=yd,n=bd,r=!!(t.flags&13878);if(t.subtreeFlags&13878||r){r=O.T,O.T=null;var i=k.p;k.p=2;var a=J;J|=4;try{lu=uu=!1,ku(t,e,n),n=cp;var o=$r(e.containerInfo),s=n.focusedElem,c=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&Qr(s.ownerDocument.documentElement,s)){if(c!==null&&ei(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=Zr(s,h),v=Zr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}gh=!!sp,cp=sp=null}finally{J=a,k.p=i,O.T=r}}e.current=t,_d=2}}function of(){if(_d===2){_d=0;var e=vd,t=yd,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=O.T,O.T=null;var r=k.p;k.p=2;var i=J;J|=4;try{mu(e,t.alternate,t)}finally{J=i,k.p=r,O.T=n}}_d=3}}function sf(){if(_d===4||_d===3){_d=0;var e=wd;wd=null,qe();var t=vd,n=yd,r=bd,i=Cd,a=(r&335544064)===r?10262:10256;if((n.subtreeFlags&a)!==0||(n.flags&a)!==0?_d=5:(_d=0,yd=vd=null,cf(t,t.pendingLanes)),a=t.pendingLanes,a===0&&(gd=null),Et(r),n=n.stateNode,it&&typeof it.onCommitFiberRoot==`function`)try{it.onCommitFiberRoot(rt,n,void 0,(n.current.flags&128)==128)}catch{}if(i!==null){n=O.T,a=k.p,k.p=2,O.T=null;try{for(var o=t.onRecoverableError,s=0;s<i.length;s++){var c=i[s];o(c.value,{componentStack:c.stack})}}finally{O.T=n,k.p=a}}if(i=Td,o=Ed,Ed=null,i!==null&&(Td=null,o===null&&(o=[]),e!==null))for(c=0;c<i.length;c++)n=(0,i[c])(o),n!==void 0&&e.finished.finally(n);bd&3&&lf(),Tf(t),a=t.pendingLanes,r&261930&&a&42?t===Od?Dd++:(Dd=0,Od=t):(Dd=0,Od=null),Ef(0,!1)}}function cf(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,La(t)))}function lf(){return wd!==null&&(wd.skipTransition(),wd=null),af(),of(),sf(),uf()}function uf(){if(_d!==5)return!1;var e=vd,t=xd;xd=0;var n=Et(bd),r=O.T,i=k.p;try{k.p=32>n?32:n,O.T=null,n=Sd,Sd=null;var a=vd,o=bd;if(_d=0,yd=vd=null,bd=0,J&6)throw Error(s(331));var c=J;if(J|=4,qu(a.current),zu(a,a.current,o,n),J=c,Ef(0,!1),it&&typeof it.onPostCommitFiberRoot==`function`)try{it.onPostCommitFiberRoot(rt,a)}catch{}return!0}finally{k.p=i,O.T=r,cf(e,t)}}function df(e,t,n){t=Ji(n,t),t=Dc(e.stateNode,t,2),e=So(e,t,2),e!==null&&(bt(e,2),Tf(e))}function ff(e,t,n){if(e.tag===3)df(e,e,n);else for(;t!==null;){if(t.tag===3){df(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(gd===null||!gd.has(r))){e=Ji(n,e),n=Oc(2),r=So(t,n,2),r!==null&&(kc(n,r,t,e),bt(r,2),Tf(r));break}}t=t.return}}function pf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Zu;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(td=!0,i.add(n),e=mf.bind(null,e,t,n),t.then(e,e))}function mf(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Y===e&&(Z&n)===n&&(rd===4||rd===3&&(Z&62914560)===Z&&300>Je()-fd?J&2?od|=n:zd(e,0):od|=n,cd===Z&&(cd=0)),Tf(e)}function hf(e,t){t===0&&(t=vt()),e=Ni(e,t),e!==null&&(bt(e,t),Tf(e))}function gf(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),hf(e,n)}function _f(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(s(314))}r!==null&&r.delete(t),hf(e,n)}function vf(e,t){return We(e,t)}var yf=null,bf=null,xf=!1,Sf=!1,Cf=!1,wf=0;function Tf(e){e!==bf&&e.next===null&&(bf===null?yf=bf=e:bf=bf.next=e),Sf=!0,xf||(xf=!0,Mf())}function Ef(e,t){if(!Cf&&Sf){Cf=!0;do for(var n=!1,r=yf;r!==null;){if(!t){if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-ot(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,jf(r,a))}else a=Z,a=mt(r,r===Y?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||ht(r,a)||(n=!0,jf(r,a))}r=r.next}while(n);Cf=!1}}function Df(){Of()}function Of(){Sf=xf=!1;var e=0;wf!==0&&hp()&&(e=wf);for(var t=Je(),n=null,r=yf;r!==null;){var i=r.next,a=kf(r,t);a===0?(r.next=null,n===null?yf=i:n.next=i,i===null&&(bf=n)):(n=r,(e!==0||a&3)&&(Sf=!0)),r=i}_d!==0&&_d!==5||Ef(e,!1),wf!==0&&(wf=0)}function kf(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-ot(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=_t(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Y,n=Z,n=mt(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Q===2||Q===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Ge(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||ht(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Ge(r),Et(n)){case 2:case 8:n=Ze;break;case 32:n=Qe;break;case 268435456:n=et;break;default:n=Qe}return r=Af.bind(null,e),n=We(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Ge(r),e.callbackPriority=2,e.callbackNode=null,2}function Af(e,t){if(_d!==0&&_d!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(lf()&&e.callbackNode!==n)return null;var r=Z;return r=mt(e,e===Y?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Nd(e,r,t),kf(e,Je()),e.callbackNode!=null&&e.callbackNode===n?Af.bind(null,e):null)}function jf(e,t){if(lf())return null;Nd(e,t,!0)}function Mf(){bp(function(){J&6?We(Xe,Df):Of()})}function Nf(){if(wf===0){var e=Ua;e===0&&(e=ut,ut<<=1,!(ut&261888)&&(ut=256)),wf=e}return wf}function Pf(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:wn(e)}function Ff(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=Pf((i[At]||null).action),o=r.submitter;o&&(t=(t=o[At]||null)?Pf(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new Kn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(wf!==0){var e=new FormData(i,o);$s(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=new FormData(i,o),$s(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var If=0;If<bi.length;If++){var Lf=bi[If];xi(Lf.toLowerCase(),`on`+(Lf[0].toUpperCase()+Lf.slice(1)))}xi(fi,`onAnimationEnd`),xi(pi,`onAnimationIteration`),xi(mi,`onAnimationStart`),xi(`dblclick`,`onDoubleClick`),xi(`focusin`,`onFocus`),xi(`focusout`,`onBlur`),xi(hi,`onTransitionRun`),xi(gi,`onTransitionStart`),xi(_i,`onTransitionCancel`),xi(vi,`onTransitionEnd`),Jt(`onMouseEnter`,[`mouseout`,`mouseover`]),Jt(`onMouseLeave`,[`mouseout`,`mouseover`]),Jt(`onPointerEnter`,[`pointerout`,`pointerover`]),Jt(`onPointerLeave`,[`pointerout`,`pointerover`]),qt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),qt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),qt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),qt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),qt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),qt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Rf=`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(` `),zf=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(Rf));function Bf(e,t){t=!!(t&4);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Ei(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Ei(e)}i.currentTarget=null,a=c}}}}function $(e,t){var n=t[Mt];n===void 0&&(n=t[Mt]=new Set);var r=e+`__bubble`;n.has(r)||(Wf(t,e,2,!1),n.add(r))}function Vf(e,t,n){var r=0;t&&(r|=4),Wf(n,e,r,t)}var Hf=`_reactListening`+Math.random().toString(36).slice(2);function Uf(e){if(!e[Hf]){e[Hf]=!0,Gt.forEach(function(t){t!==`selectionchange`&&(zf.has(t)||Vf(t,!1,e),Vf(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Hf]||(t[Hf]=!0,Vf(`selectionchange`,!1,t))}}function Wf(e,t,n,r){switch(Ch(t)){case 2:var i=_h;break;case 8:i=vh;break;default:i=yh}n=i.bind(null,t,n,e),i=void 0,!Fn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Gf(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i)break;if(o===4)for(o=r.return;o!==null;){var c=o.tag;if((c===3||c===4)&&o.stateNode.containerInfo===i)return;o=o.return}for(;s!==null;){if(o=zt(s),o===null)return;if(c=o.tag,c===5||c===6||c===26||c===27){r=a=o;continue a}s=s.parentNode}}r=r.return}Mn(function(){var r=a,i=Dn(n),o=[];a:{var s=yi.get(e);if(s!==void 0){var c=Kn,u=e;switch(e){case`keypress`:if(Vn(n)===0)break a;case`keydown`:case`keyup`:c=ur;break;case`focusin`:u=`focus`,c=tr;break;case`focusout`:u=`blur`,c=tr;break;case`beforeblur`:case`afterblur`:c=tr;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:c=$n;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:c=er;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:c=pr;break;case fi:case pi:case mi:c=nr;break;case vi:c=mr;break;case`scroll`:case`scrollend`:c=Jn;break;case`wheel`:c=hr;break;case`copy`:case`cut`:case`paste`:c=rr;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:c=dr;break;case`submit`:c=fr;break;case`toggle`:case`beforetoggle`:c=gr}var d=!!(t&4),f=!d&&(e===`scroll`||e===`scrollend`),p=d?s===null?null:s+`Capture`:s;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=Nn(m,p),g!=null&&d.push(Kf(m,g,h))),f)break;m=m.return}0<d.length&&(s=new c(s,u,null,n,i),o.push({event:s,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,s=e===`mouseout`||e===`pointerout`,c&&n!==En&&(u=n.relatedTarget||n.fromElement)&&(zt(u)||u[jt]))break a;(s||c)&&(u=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,s?(c=n.relatedTarget||n.toElement,s=r,c=c?zt(c):null,c!==null&&(f=l(c),d=c.tag,c!==f||d!==5&&d!==27&&d!==6)&&(c=null)):(s=null,c=r),s!==c&&(d=$n,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=dr,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=s==null?u:Vt(s),h=c==null?u:Vt(c),u=new d(g,m+`leave`,s,n,i),u.target=f,u.relatedTarget=h,g=null,zt(i)===r&&(d=new d(p,m+`enter`,c,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,d=s&&c?te(s,c,Jf):null,s!==null&&Yf(o,u,s,d,!1),c!==null&&f!==null&&Yf(o,f,c,d,!0)))}a:{if(s=r?Vt(r):window,c=s.nodeName&&s.nodeName.toLowerCase(),c===`select`||c===`input`&&s.type===`file`)var _=Ir;else if(Ar(s)){if(Lr)_=Gr;else{_=Ur;var v=Hr}}else c=s.nodeName,!c||c.toLowerCase()!==`input`||s.type!==`checkbox`&&s.type!==`radio`?r&&xn(r.elementType)&&(_=Ir):_=Wr;if(_&&=_(e,r)){jr(o,_,n,i);break a}v&&v(e,s,r)}switch(v=r?Vt(r):window,e){case`focusin`:(Ar(v)||v.contentEditable===`true`)&&(ni=v,ri=r,ii=null);break;case`focusout`:ii=ri=ni=null;break;case`mousedown`:ai=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:ai=!1,oi(o,n,i);break;case`selectionchange`:if(ti)break;case`keydown`:case`keyup`:oi(o,n,i)}var y;if(vr)b:{switch(e){case`compositionstart`:var b=`onCompositionStart`;break b;case`compositionend`:b=`onCompositionEnd`;break b;case`compositionupdate`:b=`onCompositionUpdate`;break b}b=void 0}else Er?wr(e,n)&&(b=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(b=`onCompositionStart`);b&&(xr&&n.locale!==`ko`&&(Er||b!==`onCompositionStart`?b===`onCompositionEnd`&&Er&&(y=Bn()):(Ln=i,Rn=`value`in Ln?Ln.value:Ln.textContent,Er=!0)),v=qf(r,b),0<v.length&&(b=new ir(b,e,null,n,i),o.push({event:b,listeners:v}),y?b.data=y:(y=Tr(n),y!==null&&(b.data=y)))),(y=br?Dr(e,n):Or(e,n))&&(b=qf(r,`onBeforeInput`),0<b.length&&(v=new ir(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:v,listeners:b}),v.data=y)),Ff(o,e,r,n,i)}Bf(o,t)})}function Kf(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qf(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=Nn(e,n),i!=null&&r.unshift(Kf(e,i,a)),i=Nn(e,t),i!=null&&r.push(Kf(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Jf(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Yf(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=Nn(n,a),l!=null&&o.unshift(Kf(n,l,c))):i||(l=Nn(n,a),l!=null&&o.push(Kf(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Xf=/\r\n?/g,Zf=/\u0000|\uFFFD/g;function Qf(e){return(typeof e==`string`?e:``+e).replace(Xf,`
9
+ `).replace(Zf,``)}function $f(e,t){return t=Qf(t),Qf(e)===t}function ep(e,t,n,r,i,a){switch(n){case`children`:if(typeof r==`string`)t===`body`||t===`textarea`&&r===``||_n(e,r);else if(typeof r==`number`||typeof r==`bigint`)t!==`body`&&_n(e,``+r);else return;break;case`className`:tn(e,`class`,r);break;case`tabIndex`:tn(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:tn(e,n,r);break;case`style`:bn(e,r,a);return;case`data`:if(t!==`object`){tn(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=wn(r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}if(typeof a==`function`&&(n===`formAction`?(t!==`input`&&ep(e,t,`name`,i.name,i,null),ep(e,t,`formEncType`,i.formEncType,i,null),ep(e,t,`formMethod`,i.formMethod,i,null),ep(e,t,`formTarget`,i.formTarget,i,null)):(ep(e,t,`encType`,i.encType,i,null),ep(e,t,`method`,i.method,i,null),ep(e,t,`target`,i.target,i,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=wn(r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=Tn);return;case`onScroll`:r!=null&&$(`scroll`,e);return;case`onScrollEnd`:r!=null&&$(`scrollend`,e);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(s(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(s(60));a?.__html!==n&&(e.innerHTML=n)}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=wn(r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`credentialless`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:$(`beforetoggle`,e),$(`toggle`,e),en(e,`popover`,r);break;case`xlinkActuate`:nn(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:nn(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:nn(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:nn(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:nn(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:nn(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:nn(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:nn(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:nn(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:en(e,`is`,r);break;case`innerText`:case`textContent`:return;default:if(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)n=Sn.get(n)||n,en(e,n,r);else return}M=!0}function tp(e,t,n,r,i,a){switch(n){case`style`:bn(e,r,a);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(s(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(s(60));a?.__html!==n&&(e.innerHTML=n)}}break;case`children`:if(typeof r==`string`)_n(e,r);else if(typeof r==`number`||typeof r==`bigint`)_n(e,``+r);else return;break;case`onScroll`:r!=null&&$(`scroll`,e);return;case`onScrollEnd`:r!=null&&$(`scrollend`,e);return;case`onClick`:r!=null&&(e.onclick=Tn);return;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:return;case`innerText`:case`textContent`:return;default:if(!Kt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(i=n.endsWith(`Capture`),a=n.slice(2,i?n.length-7:void 0),t=e[At]||null,t=t==null?null:t[n],typeof t==`function`&&e.removeEventListener(a,t,i),typeof r==`function`)){typeof t!=`function`&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(a,r,i);break a}M=!0,n in e?e[n]=r:!0===r?e.setAttribute(n,``):en(e,n,r)}return}M=!0}function np(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:$(`error`,e),$(`load`,e);var r=!1,i=!1,a;for(a in n)if(n.hasOwnProperty(a)){var o=n[a];if(o!=null)switch(a){case`src`:r=!0;break;case`srcSet`:i=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(s(137,t));default:ep(e,t,a,o,n,null)}}i&&ep(e,t,`srcSet`,n.srcSet,n,null),r&&ep(e,t,`src`,n.src,n,null);return;case`input`:$(`invalid`,e);var c=a=o=i=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:i=d;break;case`type`:o=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:a=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(s(137,t));break;default:ep(e,t,r,d,n,null)}}fn(e,a,c,l,u,o,i,!1);return;case`select`:for(i in $(`invalid`,e),r=o=a=null,n)if(n.hasOwnProperty(i)&&(c=n[i],c!=null))switch(i){case`value`:a=c;break;case`defaultValue`:o=c;break;case`multiple`:r=c;default:ep(e,t,i,c,n,null)}t=a,n=o,e.multiple=!!r,t==null?n!=null&&mn(e,!!r,n,!0):mn(e,!!r,t,!1);return;case`textarea`:for(o in $(`invalid`,e),a=i=r=null,n)if(n.hasOwnProperty(o)&&(c=n[o],c!=null))switch(o){case`value`:r=c;break;case`defaultValue`:i=c;break;case`children`:a=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(s(91));break;default:ep(e,t,o,c,n,null)}gn(e,r,i,a);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:ep(e,t,l,r,n,null)}return;case`dialog`:$(`beforetoggle`,e),$(`toggle`,e),$(`cancel`,e),$(`close`,e);break;case`iframe`:case`object`:$(`load`,e);break;case`video`:case`audio`:for(r=0;r<Rf.length;r++)$(Rf[r],e);break;case`image`:$(`error`,e),$(`load`,e);break;case`details`:$(`toggle`,e);break;case`embed`:case`source`:case`link`:$(`error`,e),$(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(s(137,t));default:ep(e,t,u,r,n,null)}return;default:if(xn(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&tp(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&ep(e,t,c,r,n,null))}var rp={};function ip(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var i=null,a=null,o=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||ep(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:m!==f&&(M=!0),a=m;break;case`name`:m!==f&&(M=!0),i=m;break;case`checked`:m!==f&&(M=!0),u=m;break;case`defaultChecked`:m!==f&&(M=!0),d=m;break;case`value`:m!==f&&(M=!0),o=m;break;case`defaultValue`:m!==f&&(M=!0),c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(s(137,t));break;default:m!==f&&ep(e,t,p,m,r,f)}}dn(e,o,c,l,u,d,a,i);return;case`select`:for(a in m=o=c=p=null,n)if(l=n[a],n.hasOwnProperty(a)&&l!=null)switch(a){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(a)||ep(e,t,a,null,r,l)}for(i in r)if(a=r[i],l=n[i],r.hasOwnProperty(i)&&(a!=null||l!=null))switch(i){case`value`:a!==l&&(M=!0),p=a;break;case`defaultValue`:a!==l&&(M=!0),c=a;break;case`multiple`:a!==l&&(M=!0),o=a;default:a!==l&&ep(e,t,i,a,r,l)}t=c,n=o,r=m,p==null?!!r!=!!n&&(t==null?mn(e,!!n,n?[]:``,!1):mn(e,!!n,t,!0)):mn(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(i=n[c],n.hasOwnProperty(c)&&i!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:ep(e,t,c,null,r,i)}for(o in r)if(i=r[o],a=n[o],r.hasOwnProperty(o)&&(i!=null||a!=null))switch(o){case`value`:i!==a&&(M=!0),p=i;break;case`defaultValue`:i!==a&&(M=!0),m=i;break;case`children`:break;case`dangerouslySetInnerHTML`:if(i!=null)throw Error(s(91));break;default:i!==a&&ep(e,t,o,i,r,a)}hn(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:ep(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:p!==m&&(M=!0),e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:ep(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&ep(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(s(137,t));break;default:ep(e,t,u,p,r,m)}return;default:if(xn(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&tp(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||tp(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&ep(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||ep(e,t,f,p,r,m)}function ap(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function op(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&ap(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&ap(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var sp=null,cp=null;function lp(e){return e.nodeType===9?e:e.ownerDocument}function up(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function dp(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function fp(e,t,n,r){return n=lp(n).createElement(e),n[kt]=r,n[At]=t,np(n,e,t),Ut(n),n}function pp(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var mp=null;function hp(){var e=window.event;return e&&e.type===`popstate`?e!==mp&&(mp=e,!0):(mp=null,!1)}var gp=typeof setTimeout==`function`?setTimeout:void 0,_p=typeof clearTimeout==`function`?clearTimeout:void 0,vp=typeof Promise==`function`?Promise:void 0,yp=typeof requestAnimationFrame==`function`?requestAnimationFrame:gp,bp=typeof queueMicrotask==`function`?queueMicrotask:vp===void 0?gp:function(e){return vp.resolve(null).then(e).catch(xp)};function xp(e){setTimeout(function(){throw e})}function Sp(e){return e===`head`}function Cp(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8){if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Hh(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)_m(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,_m(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[It]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&_m(e.ownerDocument.body)}n=i}while(n);Hh(t)}function wp(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8){if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++}n=r}while(n)}function Tp(e,t,n){if(t=CSS.escape(t)===t?t:`r-`+btoa(t).replace(/=/g,``),e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display===`inline`){if(t=e.getClientRects(),t.length===1)var r=1;else for(var i=r=0;i<t.length;i++){var a=t[i];0<a.width&&0<a.height&&r++}r===1&&(e=e.style,e.display=t.length===1?`inline-block`:`block`,e.marginTop=`-`+n.paddingTop,e.marginBottom=`-`+n.paddingBottom)}}function Ep(e,t){e=e.style,t=t.style;var n=t==null?null:t.hasOwnProperty(`viewTransitionName`)?t.viewTransitionName:t.hasOwnProperty(`view-transition-name`)?t[`view-transition-name`]:null;e.viewTransitionName=n==null||typeof n==`boolean`?``:(``+n).trim(),n=t==null?null:t.hasOwnProperty(`viewTransitionClass`)?t.viewTransitionClass:t.hasOwnProperty(`view-transition-class`)?t[`view-transition-class`]:null,e.viewTransitionClass=n==null||typeof n==`boolean`?``:(``+n).trim(),e.display===`inline-block`&&(t==null?e.display=e.margin=``:(n=t.display,e.display=n==null||typeof n==`boolean`?``:n,n=t.margin,n==null?(n=t.hasOwnProperty(`marginTop`)?t.marginTop:t[`margin-top`],e.marginTop=n==null||typeof n==`boolean`?``:n,t=t.hasOwnProperty(`marginBottom`)?t.marginBottom:t[`margin-bottom`],e.marginBottom=t==null||typeof t==`boolean`?``:t):e.margin=n))}function Dp(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position===`absolute`||t.position===`fixed`,clip:t.clipPath!==`none`||t.overflow!==`visible`||t.filter!==`none`||t.mask!==`none`||t.mask!==`none`||t.borderRadius!==`0px`,view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function Op(e){return Dp(e.getBoundingClientRect(),getComputedStyle(e),e)}function kp(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return Dp(t,n,e)}function Ap(e){return e.documentElement.clientHeight}function jp(e){this.addEventListener(`load`,e),this.addEventListener(`error`,e)}function Mp(e,t,n,r,i,a,o,s,c){var l=t.nodeType===9?t:t.ownerDocument;try{var u=l.startViewTransition({update:function(){var t=l.defaultView,n=t.navigation&&t.navigation.transition,o=l.fonts.status;r();var s=[];if(o===`loaded`&&(Ap(l),l.fonts.status===`loading`&&s.push(l.fonts.ready)),o=s.length,e!==null)for(var c=e.suspenseyImages,u=0,d=0;d<c.length;d++){var f=c[d];if(!f.complete){var p=f.getBoundingClientRect();if(0<p.bottom&&0<p.right&&p.top<t.innerHeight&&p.left<t.innerWidth){if(u+=Xm(f),u>$m){s.length=o;break}f=new Promise(jp.bind(f)),s.push(f)}}}if(0<s.length)return t=Promise.race([Promise.all(s),new Promise(function(e){return setTimeout(e,500)})]).then(i,i),(n?Promise.allSettled([n.finished,t]):t).then(a,a);if(i(),n)return n.finished.then(a,a);a()},types:n});l.__reactViewTransition=u;var d=[];return u.ready.then(function(){for(var e=l.documentElement.getAnimations({subtree:!0}),t=0;t<e.length;t++){var n=e[t],r=n.effect,i=r.pseudoElement;if(i!=null&&i.startsWith(`::view-transition`)){d.push(n),n=r.getKeyframes();for(var a=i=void 0,s=!0,c=0;c<n.length;c++){var u=n[c],f=u.width;if(i===void 0)i=f;else if(i!==f){s=!1;break}if(f=u.height,a===void 0)a=f;else if(a!==f){s=!1;break}delete u.width,delete u.height,u.transform===`none`&&delete u.transform}s&&i!==void 0&&a!==void 0&&(r.setKeyframes(n),s=getComputedStyle(r.target,r.pseudoElement),s.width!==i||s.height!==a)&&(s=n[0],s.width=i,s.height=a,s=n[n.length-1],s.width=i,s.height=a,r.setKeyframes(n))}}o()},function(e){l.__reactViewTransition===u&&(l.__reactViewTransition=null);try{if(typeof e==`object`&&e)switch(e.name){case`InvalidStateError`:(e.message===`View transition was skipped because document visibility state is hidden.`||e.message===`Skipping view transition because document visibility state has become hidden.`||e.message===`Skipping view transition because viewport size changed.`||e.message===`Transition was aborted because of invalid state`)&&(e=null)}e!==null&&c(e)}finally{r(),i(),o()}}),u.finished.finally(function(){for(var e=0;e<d.length;e++)d[e].cancel();l.__reactViewTransition===u&&(l.__reactViewTransition=null),s()}),u}catch{return r(),i(),o(),null}}function Np(e,t){this._scope=document.documentElement,this._selector=`::view-transition-`+e+`(`+t+`)`}Np.prototype.animate=function(e,t){return t=typeof t==`number`?{duration:t}:T({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},Np.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),r=[],i=0;i<n.length;i++){var a=n[i].effect;a!==null&&a.target===e&&a.pseudoElement===t&&r.push(n[i])}return r},Np.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Pp(e){return{name:e,group:new Np(`group`,e),imagePair:new Np(`image-pair`,e),old:new Np(`old`,e),new:new Np(`new`,e)}}function Fp(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}Fp.prototype.addEventListener=function(e,t,n){var r=null,i=null;if(!(n!=null&&typeof n!=`boolean`&&(r=n.signal||null,r!==null&&r.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var a=this._eventListeners;if(Bp(a,e,t,n)===-1){var o=this,s=t;n!=null&&typeof n!=`boolean`&&!0===n.once&&(s=function(r){o.removeEventListener(e,t,n),typeof t==`function`?t.call(this,r):t.handleEvent(r)}),r!==null&&(i=o.removeEventListener.bind(o,e,t,n),r.addEventListener(`abort`,i,{once:!0}),i=r.removeEventListener.bind(r,`abort`,i)),r=Rp(n),a.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:s,cleanup:i}),h(this._fragmentFiber.child,!1,Ip,e,s,r)}this._eventListeners=a}};function Ip(e,t,n,r){return b(e).addEventListener(t,n,r),!1}Fp.prototype.removeEventListener=function(e,t,n){var r=this._eventListeners;if(r!==null&&(t=Bp(r,e,t,n),t!==-1)){var i=r[t];n=i.attachedListener;var a=i.cleanup;i=Rp(i.optionsOrUseCapture),h(this._fragmentFiber.child,!1,Lp,e,n,i),r.splice(t,1),a!==null&&a()}};function Lp(e,t,n,r){return b(e).removeEventListener(t,n,r),!1}function Rp(e){return e!=null&&typeof e!=`boolean`&&(!0===e.once||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function zp(e){return e==null?`c=0`:typeof e==`boolean`?`c=`+(e?`1`:`0`):`c=`+(e.capture?`1`:`0`)}function Bp(e,t,n,r){if(e.length===0)return-1;r=zp(r);for(var i=0;i<e.length;i++){var a=e[i];if(a.type===t&&a.listener===n&&zp(a.optionsOrUseCapture)===r)return i}return-1}Fp.prototype.dispatchEvent=function(e){var t=g(this._fragmentFiber);if(t===null)return!0;t=b(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var r=t.nodeType===9?t.createComment(``):document.createTextNode(``);if(n)for(var i=0;i<n.length;i++){var a=n[i];r.addEventListener(a.type,a.attachedListener,Rp(a.optionsOrUseCapture))}if(t.appendChild(r),e=r.dispatchEvent(e),n)for(i=0;i<n.length;i++)a=n[i],r.removeEventListener(a.type,a.attachedListener,Rp(a.optionsOrUseCapture));return t.removeChild(r),e}return t.dispatchEvent(e)},Fp.prototype.focus=function(e){h(this._fragmentFiber.child,!0,Vp,e,void 0,void 0)};function Vp(e,t){return e.tag!==6&&(e=b(e),pm(e,t))}Fp.prototype.focusLast=function(e){var t=[];h(this._fragmentFiber.child,!0,Hp,t,void 0,void 0);for(var n=t.length-1;0<=n&&!Vp(t[n],e);n--);};function Hp(e,t){return t.push(e),!1}Fp.prototype.blur=function(){var e=g(this._fragmentFiber);e!==null&&(e=b(e),e=lp(e).activeElement,e!==null&&h(this._fragmentFiber.child,!1,Up,e,void 0,void 0))};function Up(e,t){return e.tag!==6&&(e=b(e),e===t||e.contains(t)?(t.blur(),!0):!1)}Fp.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),h(this._fragmentFiber.child,!1,Wp,e,void 0,void 0)};function Wp(e,t){return e.tag!==6&&(e=b(e),t.observe(e),!1)}Fp.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),h(this._fragmentFiber.child,!1,Gp,e,void 0,void 0);for(var n=t=0;n<Kp.length;n++){var r=Kp[n];r.fragmentInstance===this&&r.observer===e?e.unobserve(r.instance):Kp[t++]=r}Kp.length=t}};function Gp(e,t){return e.tag!==6&&(e=b(e),t.unobserve(e),!1)}var Kp=[],qp=!1;function Jp(e,t,n){Kp.push({fragmentInstance:e,observer:t,instance:n}),qp||(qp=!0,mm(function(){qp=!1;var e=Kp;Kp=[];for(var t=0;t<e.length;t++){var n=e[t];n.observer.unobserve(n.instance)}}))}Fp.prototype.getClientRects=function(){var e=[];return h(this._fragmentFiber.child,!1,Yp,e,void 0,void 0),e};function Yp(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=b(e),t.push.apply(t,e.getClientRects());return!1}Fp.prototype.getRootNode=function(e){var t=g(this._fragmentFiber);return t===null?this:b(t).getRootNode(e)},Fp.prototype.compareDocumentPosition=function(e){var t=g(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];h(this._fragmentFiber.child,!1,Hp,n,void 0,void 0);var r=b(t);if(n.length===0){if(n=r,_(this._fragmentFiber)){a:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break a}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var i=r=n.compareDocumentPosition(e);return n===e?i=Node.DOCUMENT_POSITION_CONTAINS:r&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=v(t)[1],n===null?i=Node.DOCUMENT_POSITION_PRECEDING:(e=b(n).compareDocumentPosition(e),i=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),i|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=b(n[0]),i=b(n[n.length-1]);var a=_(this._fragmentFiber)?t.parentElement:r;if(a==null)return Node.DOCUMENT_POSITION_DISCONNECTED;r=a.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,a=a.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY;var o=t.compareDocumentPosition(e),s=i.compareDocumentPosition(e),c=o&Node.DOCUMENT_POSITION_CONTAINED_BY||s&Node.DOCUMENT_POSITION_CONTAINED_BY;return s=r&&a&&o&Node.DOCUMENT_POSITION_FOLLOWING&&s&Node.DOCUMENT_POSITION_PRECEDING,t=r&&t===e||a&&i===e||c||s?Node.DOCUMENT_POSITION_CONTAINED_BY:!r&&t===e||!a&&i===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:o,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||Xp(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function Xp(e,t,n,r,i){var a=zt(i);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!a)a:{for(;a!==null;){if(a.tag===7&&(a===t||a.alternate===t)){n=!0;break a}a=a.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(a===null)return a=i.ownerDocument,i===a||i===a.documentElement||i===a.body;a:{for(a=t,t=g(t);a!==null;){if(!(a.tag!==5&&a.tag!==3&&a.tag!==27||a!==t&&a.alternate!==t)){a=!0;break a}a=a.return}a=!1}return a}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!a)&&!(t=a===n)&&(t=te(n,a,w),t===null?t=!1:(h(t,!0,C,a,n),a=x,x=null,t=a!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!a)&&!(t=a===r)&&(t=te(r,a,w),t===null?t=!1:(h(t,!0,ee,a,r),a=x,S=x=null,t=a!==null)),t):!1}function Zp(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}Fp.prototype.scrollIntoView=function(e){if(typeof e==`object`)throw Error(s(566));var t=[];h(this._fragmentFiber.child,!1,Hp,t,void 0,void 0);var n=!1!==e;if(t.length===0){var r=v(this._fragmentFiber);if(r=n?r[1]||r[0]||g(this._fragmentFiber):r[0]||r[1],r===null)return;if(r.tag===6){e=b(r),Zp(e,n);return}if(r=b(r),r.nodeType!==9){if(r.nodeType===11){n=`host`in r?r.host:null,n!==null&&n.scrollIntoView(e);return}r.scrollIntoView(e)}}for(r=n?t.length-1:0;r!==(n?-1:t.length);){var i=t[r];i.tag===6?(i=b(i),Zp(i,n)):b(i).scrollIntoView(e),r+=n?-1:1}};function Qp(e,t){return e=b(e),$p(e,t),!1}function $p(e,t){e.reactFragments??=new Set,e.reactFragments.add(t)}function em(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.addEventListener(i.type,i.attachedListener,Rp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){for(var r=0,i=0;i<Kp.length;i++){var a=Kp[i];(a.fragmentInstance!==t||a.observer!==n||a.instance!==e)&&(Kp[r++]=a)}Kp.length=r,n.observe(e)}),$p(e,t))}function tm(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.removeEventListener(i.type,i.attachedListener,Rp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){typeof n.rootMargin==`string`?Jp(t,n,e):n.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function nm(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:nm(n),Rt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function rm(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r){if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e}else if(!e[It])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=lm(e.nextSibling),e===null)break}return null}function im(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=lm(e.nextSibling),e===null))return null;return e}function am(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=lm(e.nextSibling),e===null))return null;return e}function om(e){return e.data===`$?`||e.data===`$~`}function sm(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function cm(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function lm(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===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var um=null;function dm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return lm(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function fm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function pm(e,t){function n(){r=!0}if(e.ownerDocument.activeElement===e)return!0;var r=!1;try{e.ownerDocument.addEventListener(`focus`,n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener(`focus`,n,!0)}return r}function mm(e){yp(function(){yp(function(t){return e(t)})})}function hm(e,t,n){switch(t=lp(n),e){case`html`:if(e=t.documentElement,!e)throw Error(s(452));return e;case`head`:if(e=t.head,!e)throw Error(s(453));return e;case`body`:if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function gm(e,t,n){for(var r in n){var i=n[r];n.hasOwnProperty(r)&&i!=null&&ep(e,t,r,null,rp,i)}n.dangerouslySetInnerHTML!=null&&(e.textContent=``),e.onclick===Tn&&(e.onclick=null),Rt(e)}function _m(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Rt(e)}var vm=new Map,ym=new Set;function bm(e){if(typeof e.getRootNode==`function`){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var xm=k.d;k.d={f:Sm,r:Cm,D:Em,C:Dm,L:Om,m:km,X:jm,S:Am,M:Mm};function Sm(){var e=xm.f(),t=Ld();return e||t}function Cm(e){var t=Bt(e);t!==null&&t.tag===5&&t.type===`form`?tc(t):xm.r(e)}var wm=typeof document>`u`?null:document;function Tm(e,t,n){var r=wm;if(r&&typeof t==`string`&&t){var i=un(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),ym.has(i)||(ym.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),np(t,`link`,e),Ut(t),r.head.appendChild(t)))}}function Em(e){xm.D(e),Tm(`dns-prefetch`,e,null)}function Dm(e,t){xm.C(e,t),Tm(`preconnect`,e,t)}function Om(e,t,n){xm.L(e,t,n);var r=wm;if(r&&e&&t){var i=`link[rel="preload"][as="`+un(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+un(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+un(n.imageSizes)+`"]`)):i+=`[href="`+un(e)+`"]`;var a=i;switch(t){case`style`:a=Pm(e);break;case`script`:a=Rm(e)}if(!(vm.has(a)||(e=T({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),vm.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Fm(a))||t===`script`&&r.querySelector(zm(a))))){var o=r.createElement(`link`);np(o,`link`,e),t===`style`&&(o[Lt]=!0,o.onload=o.onerror=function(){Wt(o)}),Ut(o),r.head.appendChild(o)}}}function km(e,t){xm.m(e,t);var n=wm;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+un(r)+`"][href="`+un(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Rm(e)}if(!vm.has(a)&&(e=T({rel:`modulepreload`,href:e},t),vm.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(zm(a)))return}r=n.createElement(`link`),np(r,`link`,e),Ut(r),n.head.appendChild(r)}}}function Am(e,t,n){xm.S(e,t,n);var r=wm;if(r&&e){var i=Ht(r).hoistableStyles,a=Pm(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Fm(a)))s.loading=5;else{e=T({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=vm.get(a))&&Hm(e,n);var c=o=r.createElement(`link`);Ut(c),np(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Vm(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function jm(e,t){xm.X(e,t);var n=wm;if(n&&e){var r=Ht(n).hoistableScripts,i=Rm(e),a=r.get(i);a||(a=n.querySelector(zm(i)),a||(e=T({src:e,async:!0},t),(t=vm.get(i))&&Um(e,t),a=n.createElement(`script`),Ut(a),np(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Mm(e,t){xm.M(e,t);var n=wm;if(n&&e){var r=Ht(n).hoistableScripts,i=Rm(e),a=r.get(i);a||(a=n.querySelector(zm(i)),a||(e=T({src:e,async:!0,type:`module`},t),(t=vm.get(i))&&Um(e,t),a=n.createElement(`script`),Ut(a),np(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Nm(e,t,n,r){var i=(i=Ae.current)?bm(i):null;if(!i)throw Error(s(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(n=Pm(n.href),t=Ht(i).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Pm(n.href);var a=Ht(i).hoistableStyles,o=a.get(e);if(o||(i=i.ownerDocument||i,o={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},a.set(e,o),(a=i.querySelector(Fm(e)))?a._p||(o.instance=a,o.state.loading=5):(a=vm.get(e),a||(a={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},vm.set(e,a)),Lm(i,e,a,o.state))),t&&r===null)throw Error(s(528,``));return o}if(t&&r!==null)throw Error(s(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=Rm(n),t=Ht(i).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Pm(e){return`href="`+un(e)+`"`}function Fm(e){return`link[rel="stylesheet"][`+e+`]`}function Im(e){return T({},e,{"data-precedence":e.precedence,precedence:null})}function Lm(e,t,n,r){if(t=e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)){if(!0!==t[Lt]){r.loading=1;return}}else t=e.createElement(`link`),t[Lt]=!0,t.onload=t.onerror=Wt.bind(null,t),np(t,`link`,n),Ut(t),e.head.appendChild(t);r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2})}function Rm(e){return`[src="`+un(e)+`"]`}function zm(e){return`script[async]`+e}function Bm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+un(n.href)+`"]`);if(r)return t.instance=r,Ut(r),r;var i=T({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Ut(r),np(r,`style`,i),Vm(r,n.precedence,e),t.instance=r;case`stylesheet`:i=Pm(n.href);var a=e.querySelector(Fm(i));if(a)return t.state.loading|=4,t.instance=a,Ut(a),a;r=Im(n),(i=vm.get(i))&&Hm(r,i),a=(e.ownerDocument||e).createElement(`link`),Ut(a);var o=a;return o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),np(a,`link`,r),t.state.loading|=4,Vm(a,n.precedence,e),t.instance=a;case`script`:return a=Rm(n.src),(i=e.querySelector(zm(a)))?(t.instance=i,Ut(i),i):(r=n,(i=vm.get(a))&&(r=T({},n),Um(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),Ut(i),np(i,`link`,r),e.head.appendChild(i),t.instance=i);case`void`:return null;default:throw Error(s(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Vm(r,n.precedence,e));return t.instance}function Vm(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Hm(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Um(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Wm=null;function Gm(e,t,n){if(Wm===null){var r=new Map,i=Wm=new Map;i.set(n,r)}else i=Wm,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[It]||a[kt]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Km(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function qm(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Jm(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function Ym(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Xm(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function Zm(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=Xm(t),e.suspenseyImages.push(t)),e=rh.bind(e),t.decode().then(e,e))}function Qm(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Pm(r.href),a=t.querySelector(Fm(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=nh.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Ut(a);return}a=t.ownerDocument||t,r=Im(r),(i=vm.get(i))&&Hm(r,i),a=a.createElement(`link`),Ut(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),np(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=nh.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var $m=0;function eh(e,t){return e.stylesheets&&e.count===0&&ah(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&ah(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&$m===0&&($m=62500*op());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ah(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>$m?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function th(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)ah(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function nh(){this.count--,th(this)}function rh(){this.imgCount--,th(this)}var ih=null;function ah(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ih=new Map,t.forEach(oh,e),ih=null,nh.call(e))}function oh(e,t){if(!(t.state.loading&4)){var n=ih.get(e);if(n)var r=n.get(null);else{n=new Map,ih.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=nh.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var sh={$$typeof:D,Provider:null,Consumer:null,_currentValue:Ce,_currentValue2:Ce,_threadCount:0};function ch(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=yt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yt(0),this.hiddenUpdates=yt(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.transitionTypes=null,this.incompleteTransitions=new Map}function lh(e,t,n,r,i,a,o,s,c,l,u,d){return e=new ch(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=Ri(3,null,null,t),e.current=a,a.stateNode=e,t=Ia(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},yo(a),e}function uh(e){return e?(e=Ii,e):Ii}function dh(e,t,n,r,i,a){i=uh(i),r.context===null?r.context=i:r.pendingContext=i,r=xo(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=So(e,r,t),n!==null&&(Md(n,e,t),Co(n,e,t))}function fh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ph(e,t){fh(e,t),(e=e.alternate)&&fh(e,t)}function mh(e){if(e.tag===13||e.tag===31){var t=Ni(e,67108864);t!==null&&Md(t,e,67108864),ph(e,67108864)}}function hh(e){if(e.tag===13||e.tag===31){var t=kd();t=Tt(t);var n=Ni(e,t);n!==null&&Md(n,e,t),ph(e,t)}}var gh=!0;function _h(e,t,n,r){var i=O.T;O.T=null;var a=k.p;try{k.p=2,yh(e,t,n,r)}finally{k.p=a,O.T=i}}function vh(e,t,n,r){var i=O.T;O.T=null;var a=k.p;try{k.p=8,yh(e,t,n,r)}finally{k.p=a,O.T=i}}function yh(e,t,n,r){if(gh){var i=bh(r);if(i===null)Gf(e,t,r,xh,n),Mh(e,r);else if(Ph(i,e,t,n,r))r.stopPropagation();else if(Mh(e,r),t&4&&-1<jh.indexOf(e)){for(;i!==null;){var a=Bt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=pt(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-ot(o);s.entanglements[1]|=c,o&=~c}Tf(a),!(J&6)&&(md=Je()+500,Ef(0,!1))}}break;case 31:case 13:s=Ni(a,2),s!==null&&Md(s,a,2),Ld(),ph(a,2)}if(a=bh(r),a===null&&Gf(e,t,r,xh,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Gf(e,t,r,null,n)}}function bh(e){return e=Dn(e),Sh(e)}var xh=null;function Sh(e){if(xh=null,e=zt(e),e!==null){var t=l(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=u(t),e!==null)return e;e=null}else if(n===31){if(e=d(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return xh=e,null}function Ch(e){switch(e){case`beforetoggle`: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`seeked`:case`submit`:case`toggle`: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`fullscreenerror`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`resize`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Ye()){case Xe:return 2;case Ze:return 8;case Qe:case $e:return 32;case et:return 268435456;default:return 32}default:return 32}}var wh=!1,Th=null,Eh=null,Dh=null,Oh=new Map,kh=new Map,Ah=[],jh=`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`.split(` `);function Mh(e,t){switch(e){case`focusin`:case`focusout`:Th=null;break;case`dragenter`:case`dragleave`:Eh=null;break;case`mouseover`:case`mouseout`:Dh=null;break;case`pointerover`:case`pointerout`:Oh.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:kh.delete(t.pointerId)}}function Nh(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Bt(t),t!==null&&mh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Ph(e,t,n,r,i){switch(t){case`focusin`:return Th=Nh(Th,e,t,n,r,i),!0;case`dragenter`:return Eh=Nh(Eh,e,t,n,r,i),!0;case`mouseover`:return Dh=Nh(Dh,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Oh.set(a,Nh(Oh.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,kh.set(a,Nh(kh.get(a)||null,e,t,n,r,i)),!0}return!1}function Fh(e){var t=zt(e.target);if(t!==null){var n=l(t);if(n!==null){if(t=n.tag,t===13){if(t=u(n),t!==null){e.blockedOn=t,Ot(e.priority,function(){hh(n)});return}}else if(t===31){if(t=d(n),t!==null){e.blockedOn=t,Ot(e.priority,function(){hh(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ih(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=bh(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);En=r,n.target.dispatchEvent(r),En=null}else return t=Bt(n),t!==null&&mh(t),e.blockedOn=n,!1;t.shift()}return!0}function Lh(e,t,n){Ih(e)&&n.delete(t)}function Rh(){wh=!1,Th!==null&&Ih(Th)&&(Th=null),Eh!==null&&Ih(Eh)&&(Eh=null),Dh!==null&&Ih(Dh)&&(Dh=null),Oh.forEach(Lh),kh.forEach(Lh)}function zh(e,n){e.blockedOn===n&&(e.blockedOn=null,wh||(wh=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Rh)))}var Bh=null;function Vh(e){Bh!==e&&(Bh=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Bh===e&&(Bh=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(Sh(r||n)===null)continue;break}var a=Bt(n);a!==null&&(e.splice(t,3),t-=3,$s(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Hh(e){function t(t){return zh(t,e)}Th!==null&&zh(Th,e),Eh!==null&&zh(Eh,e),Dh!==null&&zh(Dh,e),Oh.forEach(t),kh.forEach(t);for(var n=0;n<Ah.length;n++){var r=Ah[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Ah.length&&(n=Ah[0],n.blockedOn===null);)Fh(n),n.blockedOn===null&&Ah.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[At]||null;if(typeof a==`function`)o||Vh(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[At]||null)s=o.formAction;else if(Sh(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Vh(n)}}}function Uh(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Wh(e){this._internalRoot=e}Gh.prototype.render=Wh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var n=t.current;dh(n,kd(),e,t,null,null)},Gh.prototype.unmount=Wh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;dh(e.current,2,null,e,null,null),Ld(),t[jt]=null}};function Gh(e){this._internalRoot=e}Gh.prototype.unstable_scheduleHydration=function(e){if(e){var t=Dt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ah.length&&t!==0&&t<Ah[n].priority;n++);Ah.splice(n,0,e),n===0&&Fh(e)}};var Kh=r.version;if(Kh!==`19.3.0`)throw Error(s(527,Kh,`19.3.0`));k.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(s(188)):(e=Object.keys(e).join(`,`),Error(s(268,e)));return e=p(t),e=e===null?null:m(e),e=e===null?null:e.stateNode,e};var qh={bundleType:0,version:`19.3.0`,rendererPackageName:`react-dom`,currentDispatcherRef:O,reconcilerVersion:`19.3.0`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Jh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Jh.isDisabled&&Jh.supportsFiber)try{rt=Jh.inject(qh),it=Jh}catch{}}e.createRoot=function(e,t){if(!c(e))throw Error(s(299));var n=!1,r=``,i=Sc,a=Cc,o=wc;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(a=t.onCaughtError),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=lh(e,1,!1,null,null,n,r,null,i,a,o,Uh),e[jt]=t.current,Uf(e),new Wh(t)}})),c=e(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=s()})),l=n(),u=c(),d=e=>String(e).padStart(2,`0`);function f(e){let t=Math.max(0,Math.floor(e/1e3)),n=Math.floor(t/3600),r=Math.floor(t%3600/60);return n?`${n}:${d(r)}:${d(t%60)}`:`${d(r)}:${d(t%60)}`}function p(e){let t=Math.max(0,Math.floor(e));return`${f(t)}.${String(t%1e3).padStart(3,`0`)}`}function m(e){return e===void 0?``:e<1e3?`${Math.round(e)} ms`:`${(e/1e3).toFixed(e<1e4?2:1)} s`}function h(e){return e===void 0?``:e<1024?`${e} B`:e<1048576?`${(e/1024).toFixed(1)} KB`:e<1024**3?`${(e/1024/1024).toFixed(1)} MB`:`${(e/1024**3).toFixed(2)} GB`}var g=new Intl.DateTimeFormat(void 0,{day:`numeric`,month:`short`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`}),_=e=>g.format(e);function v(e){try{let t=new URL(e);return{host:t.host,path:`${t.pathname}${t.search}${t.hash}`||`/`}}catch{return{host:``,path:e}}}function y(e){if(!e)return``;let t=/Edg\/(\d+)/.exec(e)?.[0].replace(`Edg/`,`Edge `)??/OPR\/(\d+)/.exec(e)?.[0].replace(`OPR/`,`Opera `)??/Chrome\/(\d+)/.exec(e)?.[0].replace(`Chrome/`,`Chrome `)??`Browser`,n=/Mac OS X/.test(e)?`macOS`:/Windows/.test(e)?`Windows`:/Linux/.test(e)?`Linux`:``;return n?`${t} · ${n}`:t}function b(e){let t=e.trim();if(t.length<5e6&&(t.startsWith(`{`)||t.startsWith(`[`)))try{return{text:JSON.stringify(JSON.parse(t),null,2),json:!0}}catch{}return{text:e,json:!1}}var x=Object.defineProperty,S=(e,t,n)=>t in e?x(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,C=(e,t,n)=>S(e,typeof t==`symbol`?t:t+``,n),ee=Object.defineProperty,w=(e,t,n)=>t in e?ee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,te=(e,t,n)=>w(e,typeof t==`symbol`?t:t+``,n),T=(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))(T||{}),ne={Node:[`childNodes`,`parentNode`,`parentElement`,`textContent`,`ownerDocument`,`firstChild`,`lastChild`,`nextSibling`,`previousSibling`],ShadowRoot:[`host`,`styleSheets`],Element:[`shadowRoot`,`querySelector`,`querySelectorAll`],MutationObserver:[]},re={Node:[`contains`,`getRootNode`],ShadowRoot:[`getSelection`],Element:[],MutationObserver:[`constructor`]},E={},ie={},ae=()=>!!globalThis.Zone;function oe(e){if(E[e])return E[e];let t=globalThis[e],n=t.prototype,r=e in ne?ne[e]:void 0,i=!!(r&&r.every(e=>!!(Object.getOwnPropertyDescriptor(n,e)?.get)?.toString().includes(`[native code]`))),a=e in re?re[e]:void 0,o=!!(a&&a.every(e=>typeof n[e]==`function`&&n[e]?.toString().includes(`[native code]`)));if(i&&o&&!ae())return E[e]=t.prototype,t.prototype;try{let r=document.createElement(`iframe`);r.style.display=`none`,document.body.appendChild(r);let i=r.contentWindow;if(!i)return t.prototype;let a=i[e].prototype;if(!a)return r.remove(),n;let o=navigator.userAgent;return o.includes(`Safari`)&&!o.includes(`Chrome`)?(r.classList.add(`rr-block`),r.setAttribute(`__rrwebUntaintedMutationObserver`,``),ie[e]=()=>r.remove()):r.remove(),E[e]=a}catch{return n}}var se={};function D(e,t,n){let r=se[e]?.[n];if(r)return r.call(t);let i=oe(e),a=Object.getOwnPropertyDescriptor(i,n)?.get;return a?((se[e]||(se[e]={}))[n]=a,a.call(t)):t[n]}var ce={};function le(e,t,n){let r=`${e}.${String(n)}`;if(ce[r])return ce[r].bind(t);let i=oe(e)[n];return typeof i==`function`?(ce[r]=i,i.bind(t)):t[n]}function ue(e){return D(`Node`,e,`ownerDocument`)}function de(e){return D(`Node`,e,`childNodes`)}function fe(e){return D(`Node`,e,`parentNode`)}function pe(e){return D(`Node`,e,`parentElement`)}function me(e){return D(`Node`,e,`textContent`)}function he(e){return D(`Node`,e,`firstChild`)}function ge(e){return D(`Node`,e,`lastChild`)}function _e(e){return D(`Node`,e,`nextSibling`)}function ve(e){return D(`Node`,e,`previousSibling`)}function ye(e,t){return le(`Node`,e,`contains`)(t)}function be(e){return le(`Node`,e,`getRootNode`)()}function xe(e){return!e||!(`host`in e)?null:D(`ShadowRoot`,e,`host`)}function Se(e){return e.styleSheets}function O(e){return!e||!(`shadowRoot`in e)?null:D(`Element`,e,`shadowRoot`)}function k(e,t){return D(`Element`,e,`querySelector`)(t)}function Ce(e,t){return D(`Element`,e,`querySelectorAll`)(t)}function we(){return[oe(`MutationObserver`).constructor,ie.MutationObserver??(()=>{})]}var Te=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Te=()=>new Date().getTime());function Ee(e,t,n){try{if(!(t in e))return()=>{};let r=e[t],i=n(r);return typeof i==`function`&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}var A={ownerDocument:ue,childNodes:de,parentNode:fe,parentElement:pe,textContent:me,firstChild:he,lastChild:ge,nextSibling:_e,previousSibling:ve,contains:ye,getRootNode:be,host:xe,styleSheets:Se,shadowRoot:O,querySelector:k,querySelectorAll:Ce,nowTimestamp:Te,mutationObserverCtor:we,patch:Ee};function De(e){return e.nodeType===e.ELEMENT_NODE}function Oe(e){let t=e&&`host`in e&&`mode`in e&&A.host(e)||null;return!!(t&&`shadowRoot`in t&&A.shadowRoot(t)===e)}function ke(e){return Object.prototype.toString.call(e)===`[object ShadowRoot]`}function Ae(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 je(e){let{cssText:t}=e;if(t.split(`"`).length<3)return t;let n=[`@import`,`url(${JSON.stringify(e.href)})`];return e.layerName===``?n.push(`layer`):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(` `)+`;`}function Me(e){try{let t=e.rules||e.cssRules;if(!t)return null;let n=e.href;return!n&&e.ownerNode&&(n=e.ownerNode.baseURI),Ae(Array.from(t,e=>Ne(e,n)).join(``))}catch{return null}}function Ne(e,t){if(Fe(e)){let t;try{t=Me(e.styleSheet)||je(e)}catch{t=e.cssText}return e.styleSheet.href?Ze(t,e.styleSheet.href):t}{let n=e.cssText;return Ie(e)&&e.selectorText.includes(`:`)&&(n=Pe(n)),t?Ze(n,t):n}}function Pe(e){return e.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,`$1\\$2`)}function Fe(e){return`styleSheet`in e}function Ie(e){return`selectorText`in e}var Le=class{constructor(){te(this,`idNodeMap`,new Map),te(this,`nodeMetaMap`,new WeakMap)}getId(e){return e?this.getMeta(e)?.id??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){let n=this.getNode(e);if(n){let e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function Re(){return new Le}function ze({element:e,maskInputOptions:t,tagName:n,type:r,value:i,maskInputFn:a}){let o=i||``,s=r&&Be(r);return(t[n.toLowerCase()]||s&&t[s])&&(o=a?a(o,e):`*`.repeat(o.length)),o}function Be(e){return e.toLowerCase()}var Ve=`__rrweb_original__`;function He(e){let t=e.getContext(`2d`);if(!t)return!0;for(let n=0;n<e.width;n+=50)for(let r=0;r<e.height;r+=50){let i=t.getImageData,a=Ve in i?i[Ve]:i;if(new Uint32Array(a.call(t,n,r,Math.min(50,e.width-n),Math.min(50,e.height-r)).data.buffer).some(e=>e!==0))return!1}return!0}function Ue(e,t){return!e||!t||e.type!==t.type?!1:e.type===T.Document?e.compatMode===t.compatMode:e.type===T.DocumentType?e.name===t.name&&e.publicId===t.publicId&&e.systemId===t.systemId:e.type===T.Comment||e.type===T.Text||e.type===T.CDATA?e.textContent===t.textContent:e.type===T.Element&&e.tagName===t.tagName&&JSON.stringify(e.attributes)===JSON.stringify(t.attributes)&&e.isSVG===t.isSVG&&e.needBlock===t.needBlock}function We(e){let t=e.type;return e.hasAttribute(`data-rr-is-password`)?`password`:t?Be(t):null}function Ge(e,t){let n;try{n=new URL(e,t??window.location.href)}catch{return null}return n.pathname.match(/\.([0-9a-z]+)(?:$)/i)?.[1]??null}function Ke(e){let t=``;return t=e.indexOf(`//`)>-1?e.split(`/`).slice(0,3).join(`/`):e.split(`/`)[0],t=t.split(`?`)[0],t}var qe=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Je=/^(?:[a-z+]+:)?\/\//i,Ye=/^www\..*/i,Xe=/^(data:)([^,]*),(.*)/i;function Ze(e,t){return(e||``).replace(qe,(e,n,r,i,a,o)=>{let s=r||a||o,c=n||i||``;if(!s)return e;if(Je.test(s)||Ye.test(s)||Xe.test(s))return`url(${c}${s}${c})`;if(s[0]===`/`)return`url(${c}${Ke(t)+s}${c})`;let l=s.split(`#`)[0],u=s.substring(l.length),d=t.split(`#`)[0].split(`/`),f=l.split(`/`);d.pop();for(let e of f)if(e===`.`)continue;else e===`..`?d.pop():d.push(e);return`url(${c}${d.join(`/`)}${u}${c})`})}var Qe=`(?:/\\*[^*]*\\*/)|[\\s;]`,$e=RegExp(`${Qe}|\\b(0)px?`,`g`),et=new RegExp(Qe,`g`);function tt(e,t=!1){return t?e.replace(et,``):e.replace($e,`$1`)}function nt(e,t,n=!1){let r=Array.from(t.childNodes),i=[],a=0;if(r.length>1&&e&&typeof e==`string`){let t=tt(e,n),o=t.length/e.length;for(let s=1;s<r.length;s++)if(r[s].textContent&&typeof r[s].textContent==`string`){let c=tt(r[s].textContent,n),l=3;for(;l<c.length&&(c[l].match(/[a-zA-Z0-9]/)||c.indexOf(c.substring(0,l),1)!==-1);l++);for(;l<c.length;l++){let u=c.substring(0,l),d=t.split(u),f=-1;if(d.length===2)f=d[0].length;else if(d.length>2&&d[0]===``&&r[s-1].textContent!==``)f=t.indexOf(u,1);else if(d.length===1){if(u=u.substring(0,u.length-1),d=t.split(u),d.length<=1)return i.push(e),i;l=101}else l===c.length-1&&(f=t.indexOf(u));if(d.length>=2&&l>100){let e=r[s-1].textContent;if(e&&typeof e==`string`){let n=tt(e).length;f=t.indexOf(u,n)}f===-1&&(f=d[0].length)}if(f!==-1){let s=Math.floor(f/o);for(;s>0&&s<e.length;){if(a+=1,a>50*r.length)return i.push(e),i;let c=tt(e.substring(0,s),n);if(c.length===f){i.push(e.substring(0,s)),e=e.substring(s),t=t.substring(f);break}c.length<f?s+=Math.max(1,Math.floor((f-c.length)/o)):s-=Math.max(1,Math.floor((c.length-f)*o))}break}}}}return i.push(e),i}function rt(e,t){return nt(e,t).join(`/* rr_split */`)}var it=1,at=RegExp(`[^a-z0-9-_:]`),ot=-2;function st(){return it++}function ct(e){if(e instanceof HTMLFormElement)return`form`;let t=Be(e.tagName);return at.test(t)?`div`:t}var lt,ut,dt=/^[^ \t\n\r\u000c]+/,ft=/^[, \t\n\r\u000c]+/;function pt(e,t){if(t.trim()===``)return t;let n=0;function r(e){let r,i=e.exec(t.substring(n));return i?(r=i[0],n+=r.length,r):``}let i=[];for(;r(ft),!(n>=t.length);){let a=r(dt);if(a.slice(-1)===`,`)a=ht(e,a.substring(0,a.length-1)),i.push(a);else{let r=``;a=ht(e,a);let o=!1;for(;;){let e=t.charAt(n);if(e===``){i.push((a+r).trim());break}if(o)e===`)`&&(o=!1);else{if(e===`,`){n+=1,i.push((a+r).trim());break}e===`(`&&(o=!0)}r+=e,n+=1}}}return i.join(`, `)}var mt=new WeakMap;function ht(e,t){return!t||t.trim()===``?t:_t(e,t)}function gt(e){return!!(e.tagName===`svg`||e.ownerSVGElement)}function _t(e,t){let n=mt.get(e);if(n||(n=e.createElement(`a`),mt.set(e,n)),!t)t=``;else if(t.startsWith(`blob:`)||t.startsWith(`data:`))return t;return n.setAttribute(`href`,t),n.href}function vt(e,t,n,r){return r&&(n===`src`||n===`href`&&(t!==`use`||r[0]!==`#`)||n===`xlink:href`&&r[0]!==`#`||n===`background`&&[`table`,`td`,`th`].includes(t)?ht(e,r):n===`srcset`?pt(e,r):n===`style`?Ze(r,_t(e)):t===`object`&&n===`data`?ht(e,r):r)}function yt(e,t,n){return[`video`,`audio`].includes(e)&&Be(t)===`autoplay`}function bt(e,t,n){try{if(typeof t==`string`){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}if(n)return e.matches(n)}catch{}return!1}function xt(e,t,n){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return n?xt(A.parentNode(e),t,n):!1;for(let n=e.classList.length;n--;){let r=e.classList[n];if(t.test(r))return!0}return n?xt(A.parentNode(e),t,n):!1}function St(e,t,n,r){let i;if(De(e)){if(i=e,!A.childNodes(i).length)return!1}else if(A.parentElement(e)===null)return!1;else i=A.parentElement(e);try{if(typeof t==`string`){if(r){if(i.closest(`.${t}`))return!0}else if(i.classList.contains(t))return!0}else if(xt(i,t,r))return!0;if(n){if(r){if(i.closest(n))return!0}else if(i.matches(n))return!0}}catch{}return!1}function Ct(e,t,n){let r=e.contentWindow;if(!r)return;let i=!1,a;try{a=r.document.readyState}catch{return}if(a!==`complete`){let r=setTimeout(()=>{i||=(t(),!0)},n);e.addEventListener(`load`,()=>{clearTimeout(r),i=!0,t()});return}let o=`about:blank`;if(r.location.href!==o||e.src===o||e.src===``)return setTimeout(t,0),e.addEventListener(`load`,t);e.addEventListener(`load`,t)}function wt(e,t,n){let r=!1,i;try{i=e.sheet}catch{return}if(i)return;let a=setTimeout(()=>{r||=(t(),!0)},n);e.addEventListener(`load`,()=>{clearTimeout(a),r=!0,t()})}function Tt(e,t){let{doc:n,mirror:r,blockClass:i,blockSelector:a,needsMask:o,inlineStylesheet:s,maskInputOptions:c={},maskTextFn:l,maskInputFn:u,dataURLOptions:d={},inlineImages:f,recordCanvas:p,keepIframeSrcFn:m,newlyAddedElement:h=!1,cssCaptured:g=!1}=t,_=Et(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode===`CSS1Compat`?{type:T.Document,childNodes:[]}:{type:T.Document,childNodes:[],compatMode:e.compatMode};case e.DOCUMENT_TYPE_NODE:return{type:T.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:_};case e.ELEMENT_NODE:return Ot(e,{doc:n,blockClass:i,blockSelector:a,inlineStylesheet:s,maskInputOptions:c,maskInputFn:u,dataURLOptions:d,inlineImages:f,recordCanvas:p,keepIframeSrcFn:m,newlyAddedElement:h,rootId:_});case e.TEXT_NODE:return Dt(e,{doc:n,needsMask:o,maskTextFn:l,rootId:_,cssCaptured:g});case e.CDATA_SECTION_NODE:return{type:T.CDATA,textContent:``,rootId:_};case e.COMMENT_NODE:return{type:T.Comment,textContent:A.textContent(e)||``,rootId:_};default:return!1}}function Et(e,t){if(!t.hasNode(e))return;let n=t.getId(e);return n===1?void 0:n}function Dt(e,t){let{needsMask:n,maskTextFn:r,rootId:i,cssCaptured:a}=t,o=A.parentNode(e),s=o&&o.tagName,c=``,l=s===`STYLE`||void 0,u=s===`SCRIPT`||void 0;return u?c=`SCRIPT_PLACEHOLDER`:a||(c=A.textContent(e),l&&c&&(c=Ze(c,_t(t.doc)))),!l&&!u&&c&&n&&(c=r?r(c,A.parentElement(e)):c.replace(/[\S]/g,`*`)),{type:T.Text,textContent:c||``,rootId:i}}function Ot(e,t){let{doc:n,blockClass:r,blockSelector:i,inlineStylesheet:a,maskInputOptions:o={},maskInputFn:s,dataURLOptions:c={},inlineImages:l,recordCanvas:u,keepIframeSrcFn:d,newlyAddedElement:f=!1,rootId:p}=t,m=bt(e,r,i),h=ct(e),g={},_=e.attributes.length;for(let t=0;t<_;t++){let r=e.attributes[t];yt(h,r.name,r.value)||(g[r.name]=vt(n,h,Be(r.name),r.value))}if(h===`link`&&a){let t=Array.from(n.styleSheets).find(t=>t.href===e.href),r=null;t&&(r=Me(t)),r&&(delete g.rel,delete g.href,g._cssText=r)}if(h===`style`&&e.sheet){let t=Me(e.sheet);t&&(e.childNodes.length>1&&(t=rt(t,e)),g._cssText=t)}if([`input`,`textarea`,`select`].includes(h)){let t=e.value,n=e.checked;g.type!==`radio`&&g.type!==`checkbox`&&g.type!==`submit`&&g.type!==`button`&&t?g.value=ze({element:e,type:We(e),tagName:h,value:t,maskInputOptions:o,maskInputFn:s}):n&&(g.checked=n)}if(h===`option`&&(e.selected&&!o.select?g.selected=!0:delete g.selected),h===`dialog`&&e.open&&(g.rr_open_mode=e.matches(`dialog:modal`)?`modal`:`non-modal`),h===`canvas`&&u){if(e.__context===`2d`)He(e)||(g.rr_dataURL=e.toDataURL(c.type,c.quality));else if(!(`__context`in e)){let t=e.toDataURL(c.type,c.quality),r=n.createElement(`canvas`);r.width=e.width,r.height=e.height,t!==r.toDataURL(c.type,c.quality)&&(g.rr_dataURL=t)}}if(h===`img`&&l){lt||(lt=n.createElement(`canvas`),ut=lt.getContext(`2d`));let t=e,r=t.currentSrc||t.getAttribute(`src`)||`<unknown-src>`,i=t.crossOrigin,a=()=>{t.removeEventListener(`load`,a);try{lt.width=t.naturalWidth,lt.height=t.naturalHeight,ut.drawImage(t,0,0),g.rr_dataURL=lt.toDataURL(c.type,c.quality)}catch(e){if(t.crossOrigin!==`anonymous`){t.crossOrigin=`anonymous`,t.complete&&t.naturalWidth!==0?a():t.addEventListener(`load`,a);return}console.warn(`Cannot inline img src=${r}! Error: ${e}`)}t.crossOrigin===`anonymous`&&(i?g.crossOrigin=i:t.removeAttribute(`crossorigin`))};t.complete&&t.naturalWidth!==0?a():t.addEventListener(`load`,a)}if([`audio`,`video`].includes(h)){let t=g;t.rr_mediaState=e.paused?`paused`:`played`,t.rr_mediaCurrentTime=e.currentTime,t.rr_mediaPlaybackRate=e.playbackRate,t.rr_mediaMuted=e.muted,t.rr_mediaLoop=e.loop,t.rr_mediaVolume=e.volume}if(f||(e.scrollLeft&&(g.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(g.rr_scrollTop=e.scrollTop)),m){let{width:t,height:n}=e.getBoundingClientRect();g={class:g.class,rr_width:`${t}px`,rr_height:`${n}px`}}h===`iframe`&&!d(g.src)&&(e.contentDocument||(g.rr_src=g.src),delete g.src);let v;try{customElements.get(h)&&(v=!0)}catch{}return{type:T.Element,tagName:h,attributes:g,childNodes:[],isSVG:gt(e)||void 0,needBlock:m,rootId:p,isCustom:v}}function j(e){return e==null?``:e.toLowerCase()}function kt(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 At(e,t){return!!(t.comment&&e.type===T.Comment||e.type===T.Element&&(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`&&Ge(e.attributes.href)===`js`)||t.headFavicon&&(e.tagName===`link`&&e.attributes.rel===`shortcut icon`||e.tagName===`meta`&&(j(e.attributes.name).match(/^msapplication-tile(image|color)$/)||j(e.attributes.name)===`application-name`||j(e.attributes.rel)===`icon`||j(e.attributes.rel)===`apple-touch-icon`||j(e.attributes.rel)===`shortcut icon`))||e.tagName===`meta`&&(t.headMetaDescKeywords&&j(e.attributes.name).match(/^description|keywords$/)||t.headMetaSocial&&(j(e.attributes.property).match(/^(og|twitter|fb):/)||j(e.attributes.name).match(/^(og|twitter):/)||j(e.attributes.name)===`pinterest`)||t.headMetaRobots&&(j(e.attributes.name)===`robots`||j(e.attributes.name)===`googlebot`||j(e.attributes.name)===`bingbot`)||t.headMetaHttpEquiv&&e.attributes[`http-equiv`]!==void 0||t.headMetaAuthorship&&(j(e.attributes.name)===`author`||j(e.attributes.name)===`generator`||j(e.attributes.name)===`framework`||j(e.attributes.name)===`publisher`||j(e.attributes.name)===`progid`||j(e.attributes.property).match(/^article:/)||j(e.attributes.property).match(/^product:/))||t.headMetaVerification&&(j(e.attributes.name)===`google-site-verification`||j(e.attributes.name)===`yandex-verification`||j(e.attributes.name)===`csrf-token`||j(e.attributes.name)===`p:domain_verify`||j(e.attributes.name)===`verify-v1`||j(e.attributes.name)===`verification`||j(e.attributes.name)===`shopify-checkout-api-token`))))}function jt(e,t){let{doc:n,mirror:r,blockClass:i,blockSelector:a,maskTextClass:o,maskTextSelector:s,skipChild:c=!1,inlineStylesheet:l=!0,maskInputOptions:u={},maskTextFn:d,maskInputFn:f,slimDOMOptions:p,dataURLOptions:m={},inlineImages:h=!1,recordCanvas:g=!1,onSerialize:_,onIframeLoad:v,iframeLoadTimeout:y=5e3,onStylesheetLoad:b,stylesheetLoadTimeout:x=5e3,keepIframeSrcFn:S=()=>!1,newlyAddedElement:C=!1,cssCaptured:ee=!1}=t,{needsMask:w}=t,{preserveWhiteSpace:te=!0}=t;w||=St(e,o,s,w===void 0);let ne=Tt(e,{doc:n,mirror:r,blockClass:i,blockSelector:a,needsMask:w,inlineStylesheet:l,maskInputOptions:u,maskTextFn:d,maskInputFn:f,dataURLOptions:m,inlineImages:h,recordCanvas:g,keepIframeSrcFn:S,newlyAddedElement:C,cssCaptured:ee});if(!ne)return console.warn(e,`not serialized`),null;let re;re=r.hasNode(e)?r.getId(e):At(ne,p)||!te&&ne.type===T.Text&&!ne.textContent.replace(/^\s+|\s+$/gm,``).length?ot:st();let E=Object.assign(ne,{id:re});if(r.add(e,E),re===ot)return null;_&&_(e);let ie=!c;if(E.type===T.Element){ie&&=!E.needBlock,delete E.needBlock;let t=A.shadowRoot(e);t&&ke(t)&&(E.isShadowHost=!0)}if((E.type===T.Document||E.type===T.Element)&&ie){p.headWhitespace&&E.type===T.Element&&E.tagName===`head`&&(te=!1);let t={doc:n,mirror:r,blockClass:i,blockSelector:a,needsMask:w,maskTextClass:o,maskTextSelector:s,skipChild:c,inlineStylesheet:l,maskInputOptions:u,maskTextFn:d,maskInputFn:f,slimDOMOptions:p,dataURLOptions:m,inlineImages:h,recordCanvas:g,preserveWhiteSpace:te,onSerialize:_,onIframeLoad:v,iframeLoadTimeout:y,onStylesheetLoad:b,stylesheetLoadTimeout:x,keepIframeSrcFn:S,cssCaptured:!1};if(E.type!==T.Element||E.tagName!==`textarea`||E.attributes.value===void 0){E.type===T.Element&&E.attributes._cssText!==void 0&&typeof E.attributes._cssText==`string`&&(t.cssCaptured=!0);for(let n of Array.from(A.childNodes(e))){let e=jt(n,t);e&&E.childNodes.push(e)}}let C=null;if(De(e)&&(C=A.shadowRoot(e)))for(let e of Array.from(A.childNodes(C))){let n=jt(e,t);n&&(ke(C)&&(n.isShadow=!0),E.childNodes.push(n))}}let ae=A.parentNode(e);return ae&&Oe(ae)&&ke(ae)&&(E.isShadow=!0),E.type===T.Element&&E.tagName===`iframe`&&Ct(e,()=>{let t=e.contentDocument;if(t&&v){let n=jt(t,{doc:t,mirror:r,blockClass:i,blockSelector:a,needsMask:w,maskTextClass:o,maskTextSelector:s,skipChild:!1,inlineStylesheet:l,maskInputOptions:u,maskTextFn:d,maskInputFn:f,slimDOMOptions:p,dataURLOptions:m,inlineImages:h,recordCanvas:g,preserveWhiteSpace:te,onSerialize:_,onIframeLoad:v,iframeLoadTimeout:y,onStylesheetLoad:b,stylesheetLoadTimeout:x,keepIframeSrcFn:S});n&&v(e,n)}},y),E.type===T.Element&&E.tagName===`link`&&typeof E.attributes.rel==`string`&&(E.attributes.rel===`stylesheet`||E.attributes.rel===`preload`&&typeof E.attributes.href==`string`&&Ge(E.attributes.href)===`css`)&&wt(e,()=>{if(b){let t=jt(e,{doc:n,mirror:r,blockClass:i,blockSelector:a,needsMask:w,maskTextClass:o,maskTextSelector:s,skipChild:!1,inlineStylesheet:l,maskInputOptions:u,maskTextFn:d,maskInputFn:f,slimDOMOptions:p,dataURLOptions:m,inlineImages:h,recordCanvas:g,preserveWhiteSpace:te,onSerialize:_,onIframeLoad:v,iframeLoadTimeout:y,onStylesheetLoad:b,stylesheetLoadTimeout:x,keepIframeSrcFn:S});t&&b(e,t)}},x),E}function Mt(e,t){let{mirror:n=new Le,blockClass:r=`rr-block`,blockSelector:i=null,maskTextClass:a=`rr-mask`,maskTextSelector:o=null,inlineStylesheet:s=!0,inlineImages:c=!1,recordCanvas:l=!1,maskAllInputs:u=!1,maskTextFn:d,maskInputFn:f,slimDOM:p=!1,dataURLOptions:m,preserveWhiteSpace:h,onSerialize:g,onIframeLoad:_,iframeLoadTimeout:v,onStylesheetLoad:y,stylesheetLoadTimeout:b,keepIframeSrcFn:x=()=>!1}=t;return jt(e,{doc:e,mirror:n,blockClass:r,blockSelector:i,maskTextClass:a,maskTextSelector:o,skipChild:!1,inlineStylesheet:s,maskInputOptions: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,maskTextFn:d,maskInputFn:f,slimDOMOptions:kt(p),dataURLOptions:m,inlineImages:c,recordCanvas:l,preserveWhiteSpace:h,onSerialize:g,onIframeLoad:_,iframeLoadTimeout:v,onStylesheetLoad:y,stylesheetLoadTimeout:b,keepIframeSrcFn:x,newlyAddedElement:!1})}var Nt=RegExp(`(max|min)-device-(width|height)`,`g`),Pt={postcssPlugin:`postcss-custom-selectors`,prepare(){return{postcssPlugin:`postcss-custom-selectors`,AtRule:function(e){e.params.match(Nt)&&(e.params=e.params.replace(Nt,`$1-$2`))}}}},Ft={postcssPlugin:`postcss-hover-classes`,prepare:function(){let e=[];return{Rule:function(t){e.indexOf(t)===-1&&(e.push(t),t.selectors.forEach(function(e){e.includes(`:hover`)&&(t.selector+=`,
10
+ `+e.replace(/:hover/g,`.\\:hover`))}))}}}};function It(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}function Lt(e){if(e.__esModule)return e;var t=e.default;if(typeof t==`function`){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var Rt={exports:{}},zt;function Bt(){if(zt)return Rt.exports;zt=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 Rt.exports=t(),Rt.exports.createColors=t,Rt.exports}var Vt=Lt(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:`Module`}))),Ht,Ut;function Wt(){if(Ut)return Ht;Ut=1;let e=Bt(),t=Vt;class n extends Error{constructor(e,t,r,i,a,o){super(e),this.name=`CssSyntaxError`,this.reason=e,a&&(this.file=a),i&&(this.source=i),o&&(this.plugin=o),t!==void 0&&r!==void 0&&(typeof t==`number`?(this.line=t,this.column=r):(this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,n)}setMessage(){this.message=this.plugin?this.plugin+`: `:``,this.message+=this.file?this.file:`<css input>`,this.line!==void 0&&(this.message+=`:`+this.line+`:`+this.column),this.message+=`: `+this.reason}showSourceCode(n){if(!this.source)return``;let r=this.source;n??=e.isColorSupported,t&&n&&(r=t(r));let i=r.split(/\r?\n/),a=Math.max(this.line-3,0),o=Math.min(this.line+2,i.length),s=String(o).length,c,l;if(n){let{bold:t,gray:n,red:r}=e.createColors(!0);c=e=>t(r(e)),l=e=>n(e)}else c=l=e=>e;return i.slice(a,o).map((e,t)=>{let n=a+1+t,r=` `+(` `+n).slice(-s)+` | `;if(n===this.line){let t=l(r.replace(/\d/g,` `))+e.slice(0,this.column-1).replace(/[^\t]/g,` `);return c(`>`)+l(r)+e+`
11
+ `+t+c(`^`)}return` `+l(r)+e}).join(`
12
+ `)}toString(){let e=this.showSourceCode();return e&&=`
13
+
14
+ `+e+`
15
+ `,this.name+`: `+this.message+e}}return Ht=n,n.default=n,Ht}var Gt={},Kt;function qt(){return Kt?Gt:(Kt=1,Gt.isClean=Symbol(`isClean`),Gt.my=Symbol(`my`),Gt)}var Jt,Yt;function Xt(){if(Yt)return Jt;Yt=1;let e={after:`
16
+ `,beforeClose:`
17
+ `,beforeComment:`
18
+ `,beforeDecl:`
19
+ `,beforeOpen:` `,beforeRule:`
20
+ `,colon:`: `,commentLeft:` `,commentRight:` `,emptyBody:``,indent:` `,semicolon:!1};function t(e){return e[0].toUpperCase()+e.slice(1)}class n{constructor(e){this.builder=e}atrule(e,t){let n=`@`+e.name,r=e.params?this.rawValue(e,`params`):``;if(e.raws.afterName===void 0?r&&(n+=` `):n+=e.raws.afterName,e.nodes)this.block(e,n+r);else{let i=(e.raws.between||``)+(t?`;`:``);this.builder(n+r+i,e)}}beforeAfter(e,t){let n;n=e.type===`decl`?this.raw(e,null,`beforeDecl`):e.type===`comment`?this.raw(e,null,`beforeComment`):t===`before`?this.raw(e,null,`beforeRule`):this.raw(e,null,`beforeClose`);let r=e.parent,i=0;for(;r&&r.type!==`root`;)i+=1,r=r.parent;if(n.includes(`
21
+ `)){let t=this.raw(e,null,`indent`);if(t.length)for(let e=0;e<i;e++)n+=t}return n}block(e,t){let n=this.raw(e,`between`,`beforeOpen`);this.builder(t+n+`{`,e,`start`);let r;e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,`after`)):r=this.raw(e,`after`,`emptyBody`),r&&this.builder(r),this.builder(`}`,e,`end`)}body(e){let t=e.nodes.length-1;for(;t>0&&e.nodes[t].type===`comment`;)--t;let n=this.raw(e,`semicolon`);for(let r=0;r<e.nodes.length;r++){let i=e.nodes[r],a=this.raw(i,`before`);a&&this.builder(a),this.stringify(i,t!==r||n)}}comment(e){let t=this.raw(e,`left`,`commentLeft`),n=this.raw(e,`right`,`commentRight`);this.builder(`/*`+t+e.text+n+`*/`,e)}decl(e,t){let n=this.raw(e,`between`,`colon`),r=e.prop+n+this.rawValue(e,`value`);e.important&&(r+=e.raws.important||` !important`),t&&(r+=`;`),this.builder(r,e)}document(e){this.body(e)}raw(n,r,i){let a;if(i||=r,r&&(a=n.raws[r],a!==void 0))return a;let o=n.parent;if(i===`before`&&(!o||o.type===`root`&&o.first===n||o&&o.type===`document`))return``;if(!o)return e[i];let s=n.root();if(s.rawCache||={},s.rawCache[i]!==void 0)return s.rawCache[i];if(i===`before`||i===`after`)return this.beforeAfter(n,i);{let e=`raw`+t(i);this[e]?a=this[e](s,n):s.walk(e=>{if(a=e.raws[r],a!==void 0)return!1})}return a===void 0&&(a=e[i]),s.rawCache[i]=a,a}rawBeforeClose(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length>0&&e.raws.after!==void 0)return t=e.raws.after,t.includes(`
22
+ `)&&(t=t.replace(/[^\n]+$/,``)),!1}),t&&=t.replace(/\S/g,``),t}rawBeforeComment(e,t){let n;return e.walkComments(e=>{if(e.raws.before!==void 0)return n=e.raws.before,n.includes(`
23
+ `)&&(n=n.replace(/[^\n]+$/,``)),!1}),n===void 0?n=this.raw(t,null,`beforeDecl`):n&&=n.replace(/\S/g,``),n}rawBeforeDecl(e,t){let n;return e.walkDecls(e=>{if(e.raws.before!==void 0)return n=e.raws.before,n.includes(`
24
+ `)&&(n=n.replace(/[^\n]+$/,``)),!1}),n===void 0?n=this.raw(t,null,`beforeRule`):n&&=n.replace(/\S/g,``),n}rawBeforeOpen(e){let t;return e.walk(e=>{if(e.type!==`decl`&&(t=e.raws.between,t!==void 0))return!1}),t}rawBeforeRule(e){let t;return e.walk(n=>{if(n.nodes&&(n.parent!==e||e.first!==n)&&n.raws.before!==void 0)return t=n.raws.before,t.includes(`
25
+ `)&&(t=t.replace(/[^\n]+$/,``)),!1}),t&&=t.replace(/\S/g,``),t}rawColon(e){let t;return e.walkDecls(e=>{if(e.raws.between!==void 0)return t=e.raws.between.replace(/[^\s:]/g,``),!1}),t}rawEmptyBody(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length===0&&(t=e.raws.after,t!==void 0))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(n=>{let r=n.parent;if(r&&r!==e&&r.parent&&r.parent===e&&n.raws.before!==void 0){let e=n.raws.before.split(`
26
+ `);return t=e[e.length-1],t=t.replace(/\S/g,``),!1}}),t}rawSemicolon(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length&&e.last.type===`decl`&&(t=e.raws.semicolon,t!==void 0))return!1}),t}rawValue(e,t){let n=e[t],r=e.raws[t];return r&&r.value===n?r.raw:n}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,`selector`)),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,`end`)}stringify(e,t){if(!this[e.type])throw Error(`Unknown AST node type `+e.type+`. Maybe you need to change PostCSS stringifier.`);this[e.type](e,t)}}return Jt=n,n.default=n,Jt}var Zt,Qt;function M(){if(Qt)return Zt;Qt=1;let e=Xt();function t(t,n){new e(n).stringify(t)}return Zt=t,t.default=t,Zt}var $t,en;function tn(){if(en)return $t;en=1;let{isClean:e,my:t}=qt(),n=Wt(),r=Xt(),i=M();function a(e,t){let n=new e.constructor;for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r)||r===`proxyCache`)continue;let i=e[r],o=typeof i;r===`parent`&&o===`object`?t&&(n[r]=t):r===`source`?n[r]=i:Array.isArray(i)?n[r]=i.map(e=>a(e,n)):(o===`object`&&i!==null&&(i=a(i)),n[r]=i)}return n}class o{constructor(n={}){this.raws={},this[e]=!1,this[t]=!0;for(let e in n)if(e===`nodes`){this.nodes=[];for(let t of n[e])typeof t.clone==`function`?this.append(t.clone()):this.append(t)}else this[e]=n[e]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=a(this);for(let n in e)t[n]=e[n];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:n,start:r}=this.rangeBy(t);return this.source.input.error(e,{column:r.column,line:r.line},{column:n.column,line:n.line},t)}return new n(e)}getProxyProcessor(){return{get(e,t){return t===`proxyOf`?e:t===`root`?()=>e.root().toProxy():e[t]},set(e,t,n){return e[t]===n||(e[t]=n,(t===`prop`||t===`value`||t===`name`||t===`params`||t===`important`||t===`text`)&&e.markDirty(),!0)}}}markDirty(){if(this[e]){this[e]=!1;let t=this;for(;t=t.parent;)t[e]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let n=this.source.start;if(e.index)n=this.positionInside(e.index,t);else if(e.word){t=this.toString();let r=t.indexOf(e.word);r!==-1&&(n=this.positionInside(r,t))}return n}positionInside(e,t){let n=t||this.toString(),r=this.source.start.column,i=this.source.start.line;for(let t=0;t<e;t++)n[t]===`
27
+ `?(r=1,i+=1):r+=1;return{column:r,line:i}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let r=this.toString(),i=r.indexOf(e.word);i!==-1&&(t=this.positionInside(i,r),n=this.positionInside(i+e.word.length,r))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line}:typeof e.endIndex==`number`?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return(n.line<t.line||n.line===t.line&&n.column<=t.column)&&(n={column:t.column+1,line:t.line}),{end:n,start:t}}raw(e,t){return new r().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,n=!1;for(let r of e)r===this?n=!0:n?(this.parent.insertAfter(t,r),t=r):this.parent.insertBefore(t,r);n||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!==`document`;)e=e.parent;return e}toJSON(e,t){let n={},r=t==null;t||=new Map;let i=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e)||e===`parent`||e===`proxyCache`)continue;let r=this[e];if(Array.isArray(r))n[e]=r.map(e=>typeof e==`object`&&e.toJSON?e.toJSON(null,t):e);else if(typeof r==`object`&&r.toJSON)n[e]=r.toJSON(null,t);else if(e===`source`){let a=t.get(r.input);a??(a=i,t.set(r.input,i),i++),n[e]={end:r.end,inputId:a,start:r.start}}else n[e]=r}return r&&(n.inputs=[...t.keys()].map(e=>e.toJSON())),n}toProxy(){return this.proxyCache||=new Proxy(this,this.getProxyProcessor()),this.proxyCache}toString(e=i){e.stringify&&(e=e.stringify);let t=``;return e(this,e=>{t+=e}),t}warn(e,t,n){let r={node:this};for(let e in n)r[e]=n[e];return e.warn(t,r)}get proxyOf(){return this}}return $t=o,o.default=o,$t}var nn,rn;function an(){if(rn)return nn;rn=1;let e=tn();class t extends e{constructor(e){e&&e.value!==void 0&&typeof e.value!=`string`&&(e={...e,value:String(e.value)}),super(e),this.type=`decl`}get variable(){return this.prop.startsWith(`--`)||this.prop[0]===`$`}}return nn=t,t.default=t,nn}var on,sn;function cn(){return sn?on:(sn=1,on={nanoid:(e=21)=>{let t=``,n=e;for(;n--;)t+=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`[Math.random()*64|0];return t},customAlphabet:(e,t=21)=>(n=t)=>{let r=``,i=n;for(;i--;)r+=e[Math.random()*e.length|0];return r}},on)}var ln,un;function dn(){if(un)return ln;un=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=Vt,{existsSync:n,readFileSync:r}=Vt,{dirname:i,join:a}=Vt;function o(e){return Buffer?Buffer.from(e,`base64`).toString():window.atob(e)}class s{constructor(e,t){if(t.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,`data:`);let n=t.map?t.map.prev:void 0,r=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=i(this.mapFile)),r&&(this.text=r)}consumer(){return this.consumerCache||=new e(this.text),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,n=/^data:application\/json;base64,/;if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||n.test(e))return o(e.substr(RegExp.lastMatch.length));let r=e.match(/data:application\/json;([^,]+),/)[1];throw Error(`Unsupported source map encoding `+r)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,``).trim()}isMap(e){return typeof e==`object`?typeof e.mappings==`string`||typeof e._mappings==`string`||Array.isArray(e.sections):!1}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let n=e.lastIndexOf(t.pop()),r=e.indexOf(`*/`,n);n>-1&&r>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,r)))}loadFile(e){if(this.root=i(e),n(e))return this.mapFile=e,r(e,`utf-8`).toString().trim()}loadMap(n,r){if(r===!1)return!1;if(r){if(typeof r==`string`)return r;if(typeof r==`function`){let e=r(n);if(e){let t=this.loadFile(e);if(!t)throw Error(`Unable to load previous source map: `+e.toString());return t}}else if(r instanceof e)return t.fromSourceMap(r).toString();else if(r instanceof t)return r.toString();else if(this.isMap(r))return JSON.stringify(r);else throw Error(`Unsupported previous source map format: `+r.toString())}else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){let e=this.annotation;return n&&(e=a(i(n),e)),this.loadFile(e)}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return ln=s,s.default=s,ln}var fn,pn;function mn(){if(pn)return fn;pn=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=Vt,{fileURLToPath:n,pathToFileURL:r}=Vt,{isAbsolute:i,resolve:a}=Vt,{nanoid:o}=cn(),s=Vt,c=Wt(),l=dn(),u=Symbol(`fromOffsetCache`),d=!!(e&&t),f=!!(a&&i);class p{constructor(e,t={}){if(e==null||typeof e==`object`&&!e.toString)throw Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]===``||this.css[0]===`￾`?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(this.file=!f||/^\w+:\/\//.test(t.from)||i(t.from)?t.from:a(t.from)),f&&d){let e=new l(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id=`<input css `+o(6)+`>`),this.map&&(this.map.file=this.from)}error(e,t,n,i={}){let a,o,s;if(t&&typeof t==`object`){let e=t,r=n;if(typeof e.offset==`number`){let r=this.fromOffset(e.offset);t=r.line,n=r.col}else t=e.line,n=e.column;if(typeof r.offset==`number`){let e=this.fromOffset(r.offset);o=e.line,s=e.col}else o=r.line,s=r.column}else if(!n){let e=this.fromOffset(t);t=e.line,n=e.col}let l=this.origin(t,n,o,s);return a=l?new c(e,l.endLine===void 0?l.line:{column:l.column,line:l.line},l.endLine===void 0?l.column:{column:l.endColumn,line:l.endLine},l.source,l.file,i.plugin):new c(e,o===void 0?t:{column:n,line:t},o===void 0?n:{column:s,line:o},this.css,this.file,i.plugin),a.input={column:n,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(r&&(a.input.url=r(this.file).toString()),a.input.file=this.file),a}fromOffset(e){let t,n;if(this[u])n=this[u];else{let e=this.css.split(`
28
+ `);n=Array(e.length);let t=0;for(let r=0,i=e.length;r<i;r++)n[r]=t,t+=e[r].length+1;this[u]=n}t=n[n.length-1];let r=0;if(e>=t)r=n.length-1;else{let t=n.length-2,i;for(;r<t;)if(i=r+(t-r>>1),e<n[i])t=i-1;else if(e>=n[i+1])r=i+1;else{r=i;break}}return{col:e-n[r]+1,line:r+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:a(this.map.consumer().sourceRoot||this.map.root||`.`,e)}origin(e,t,a,o){if(!this.map)return!1;let s=this.map.consumer(),c=s.originalPositionFor({column:t,line:e});if(!c.source)return!1;let l;typeof a==`number`&&(l=s.originalPositionFor({column:o,line:a}));let u;u=i(c.source)?r(c.source):new URL(c.source,this.map.consumer().sourceRoot||r(this.map.mapFile));let d={column:c.column,endColumn:l&&l.column,endLine:l&&l.line,line:c.line,url:u.toString()};if(u.protocol===`file:`){if(n)d.file=n(u);else throw Error(`file: protocol is not available in this PostCSS build`)}let f=s.sourceContentFor(c.source);return f&&(d.source=f),d}toJSON(){let e={};for(let t of[`hasBOM`,`css`,`file`,`id`])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}}return fn=p,p.default=p,s&&s.registerInput&&s.registerInput(p),fn}var hn,gn;function _n(){if(gn)return hn;gn=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=Vt,{dirname:n,relative:r,resolve:i,sep:a}=Vt,{pathToFileURL:o}=Vt,s=mn(),c=!!(e&&t),l=!!(n&&i&&r&&a);class u{constructor(e,t,n,r){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=r,this.originalCSS=r,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;e=this.isInline()?`data:application/json;base64,`+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation==`string`?this.mapOpts.annotation:typeof this.mapOpts.annotation==`function`?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+`.map`;let t=`
29
+ `;this.css.includes(`\r
30
+ `)&&(t=`\r
31
+ `),this.css+=t+`/*# sourceMappingURL=`+e+` */`}applyPrevMaps(){for(let t of this.previous()){let r=this.toUrl(this.path(t.file)),i=t.root||n(t.file),a;this.mapOpts.sourcesContent===!1?(a=new e(t.text),a.sourcesContent&&(a.sourcesContent=null)):a=t.consumer(),this.map.applySourceMap(a,r,this.toUrl(this.path(i)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1){if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type===`comment`&&e.text.indexOf(`# sourceMappingURL=`)===0&&this.root.removeChild(t)}else this.css&&=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,``)}}generate(){if(this.clearAnnotation(),l&&c&&this.isMap())return this.generateMap();{let e=``;return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=t.fromSourceMap(e,{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 e=1,n=1,r=`<no source>`,i={generated:{column:0,line:0},original:{column:0,line:0},source:``},a,o;this.stringify(this.root,(t,s,c)=>{if(this.css+=t,s&&c!==`end`&&(i.generated.line=e,i.generated.column=n-1,s.source&&s.source.start?(i.source=this.sourcePath(s),i.original.line=s.source.start.line,i.original.column=s.source.start.column-1,this.map.addMapping(i)):(i.source=r,i.original.line=1,i.original.column=0,this.map.addMapping(i))),a=t.match(/\n/g),a?(e+=a.length,o=t.lastIndexOf(`
32
+ `),n=t.length-o):n+=t.length,s&&c!==`start`){let t=s.parent||{raws:{}};(!(s.type===`decl`||s.type===`atrule`&&!s.nodes)||s!==t.last||t.raws.semicolon)&&(s.source&&s.source.end?(i.source=this.sourcePath(s),i.original.line=s.source.end.line,i.original.column=s.source.end.column-1,i.generated.line=e,i.generated.column=n-2,this.map.addMapping(i)):(i.source=r,i.original.line=1,i.original.column=0,i.generated.line=e,i.generated.column=n-1,this.map.addMapping(i)))}})}isAnnotation(){return this.isInline()?!0:this.mapOpts.annotation===void 0?!this.previous().length||this.previous().some(e=>e.annotation):this.mapOpts.annotation}isInline(){if(this.mapOpts.inline!==void 0)return this.mapOpts.inline;let e=this.mapOpts.annotation;return e!==void 0&&e!==!0?!1:!this.previous().length||this.previous().some(e=>e.inline)}isMap(){return this.opts.map===void 0?this.previous().length>0:!!this.opts.map}isSourcesContent(){return this.mapOpts.sourcesContent===void 0?!this.previous().length||this.previous().some(e=>e.withContent()):this.mapOpts.sourcesContent}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):`to.css`}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let a=this.opts.to?n(this.opts.to):`.`;typeof this.mapOpts.annotation==`string`&&(a=n(i(a,this.mapOpts.annotation)));let o=r(a,e);return this.memoizedPaths.set(e,o),o}previous(){if(!this.previousMaps){if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new s(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let n=t.source.input.from;if(n&&!e[n]){e[n]=!0;let r=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(r,t.source.input.css)}}});else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):`<no source>`;this.map.setSourceContent(e,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString(`base64`):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(o){let t=o(e).toString();return this.memoizedFileURLs.set(e,t),t}throw Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;a===`\\`&&(e=e.replace(/\\/g,`/`));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}}return hn=u,hn}var vn,yn;function bn(){if(yn)return vn;yn=1;let e=tn();class t extends e{constructor(e){super(e),this.type=`comment`}}return vn=t,t.default=t,vn}var xn,Sn;function Cn(){if(Sn)return xn;Sn=1;let{isClean:e,my:t}=qt(),n=an(),r=bn(),i=tn(),a,o,s,c;function l(e){return e.map(e=>(e.nodes&&=l(e.nodes),delete e.source,e))}function u(t){if(t[e]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)u(e)}class d extends i{append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),n,r;for(;this.indexes[t]<this.proxyOf.nodes.length&&(n=this.indexes[t],r=e(this.proxyOf.nodes[n],n),r!==!1);)this.indexes[t]+=1;return delete this.indexes[t],r}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||=0,this.indexes||={},this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t===`proxyOf`?e:e[t]?t===`each`||typeof t==`string`&&t.startsWith(`walk`)?(...n)=>e[t](...n.map(e=>typeof e==`function`?(t,n)=>e(t.toProxy(),n):e)):t===`every`||t===`some`?n=>e[t]((e,...t)=>n(e.toProxy(),...t)):t===`root`?()=>e.root().toProxy():t===`nodes`?e.nodes.map(e=>e.toProxy()):t===`first`||t===`last`?e[t].toProxy():e[t]:e[t]},set(e,t,n){return e[t]===n||(e[t]=n,(t===`name`||t===`params`||t===`selector`)&&e.markDirty(),!0)}}}index(e){return typeof e==`number`?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let n=this.index(e),r=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let e of r)this.proxyOf.nodes.splice(n+1,0,e);let i;for(let e in this.indexes)i=this.indexes[e],n<i&&(this.indexes[e]=i+r.length);return this.markDirty(),this}insertBefore(e,t){let n=this.index(e),r=n===0&&`prepend`,i=this.normalize(t,this.proxyOf.nodes[n],r).reverse();n=this.index(e);for(let e of i)this.proxyOf.nodes.splice(n,0,e);let a;for(let e in this.indexes)a=this.indexes[e],n<=a&&(this.indexes[e]=a+i.length);return this.markDirty(),this}normalize(i,c){if(typeof i==`string`)i=l(a(i).nodes);else if(i===void 0)i=[];else if(Array.isArray(i)){i=i.slice(0);for(let e of i)e.parent&&e.parent.removeChild(e,`ignore`)}else if(i.type===`root`&&this.type!==`document`){i=i.nodes.slice(0);for(let e of i)e.parent&&e.parent.removeChild(e,`ignore`)}else if(i.type)i=[i];else if(i.prop){if(i.value===void 0)throw Error(`Value field is missed in node creation`);typeof i.value!=`string`&&(i.value=String(i.value)),i=[new n(i)]}else if(i.selector)i=[new o(i)];else if(i.name)i=[new s(i)];else if(i.text)i=[new r(i)];else throw Error(`Unknown node type in node creation`);return i.map(n=>(n[t]||d.rebuild(n),n=n.proxyOf,n.parent&&n.parent.removeChild(n),n[e]&&u(n),n.raws.before===void 0&&c&&c.raws.before!==void 0&&(n.raws.before=c.raws.before.replace(/\S/g,``)),n.parent=this.proxyOf,n))}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,`prepend`).reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}replaceValues(e,t,n){return n||(n=t,t={}),this.walkDecls(r=>{(!t.props||t.props.includes(r.prop))&&(!t.fast||r.value.includes(t.fast))&&(r.value=r.value.replace(e,n))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,n)=>{let r;try{r=e(t,n)}catch(e){throw t.addToError(e)}return r!==!1&&t.walk&&(r=t.walk(e)),r})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if(n.type===`atrule`&&e.test(n.name))return t(n,r)}):this.walk((n,r)=>{if(n.type===`atrule`&&n.name===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if(e.type===`atrule`)return t(e,n)}))}walkComments(e){return this.walk((t,n)=>{if(t.type===`comment`)return e(t,n)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if(n.type===`decl`&&e.test(n.prop))return t(n,r)}):this.walk((n,r)=>{if(n.type===`decl`&&n.prop===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if(e.type===`decl`)return t(e,n)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if(n.type===`rule`&&e.test(n.selector))return t(n,r)}):this.walk((n,r)=>{if(n.type===`rule`&&n.selector===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if(e.type===`rule`)return t(e,n)}))}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 d.registerParse=e=>{a=e},d.registerRule=e=>{o=e},d.registerAtRule=e=>{s=e},d.registerRoot=e=>{c=e},xn=d,d.default=d,d.rebuild=e=>{e.type===`atrule`?Object.setPrototypeOf(e,s.prototype):e.type===`rule`?Object.setPrototypeOf(e,o.prototype):e.type===`decl`?Object.setPrototypeOf(e,n.prototype):e.type===`comment`?Object.setPrototypeOf(e,r.prototype):e.type===`root`&&Object.setPrototypeOf(e,c.prototype),e[t]=!0,e.nodes&&e.nodes.forEach(e=>{d.rebuild(e)})},xn}var wn,Tn;function En(){if(Tn)return wn;Tn=1;let e=Cn(),t,n;class r extends e{constructor(e){super({type:`document`,...e}),this.nodes||=[]}toResult(e={}){return new t(new n,this,e).stringify()}}return r.registerLazyResult=e=>{t=e},r.registerProcessor=e=>{n=e},wn=r,r.default=r,wn}var Dn,On;function kn(){if(On)return Dn;On=1;let e={};return Dn=function(t){e[t]||(e[t]=!0,typeof console<`u`&&console.warn&&console.warn(t))},Dn}var An,jn;function Mn(){if(jn)return An;jn=1;class e{constructor(e,t={}){if(this.type=`warning`,this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}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 An=e,e.default=e,An}var Nn,Pn;function Fn(){if(Pn)return Nn;Pn=1;let e=Mn();class t{constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=void 0,this.map=void 0}toString(){return this.css}warn(t,n={}){n.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(n.plugin=this.lastPlugin.postcssPlugin);let r=new e(t,n);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type===`warning`)}get content(){return this.css}}return Nn=t,t.default=t,Nn}var In,Ln;function Rn(){if(Ln)return In;Ln=1;let e=/[\t\n\f\r "#'()/;[\\\]{}]/g,t=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,n=/.[\r\n"'(/\\]/,r=/[\da-f]/i;return In=function(i,a={}){let o=i.css.valueOf(),s=a.ignoreErrors,c,l,u,d,f,p,m,h,g,_,v=o.length,y=0,b=[],x=[];function S(){return y}function C(e){throw i.error(`Unclosed `+e,y)}function ee(){return x.length===0&&y>=v}function w(i){if(x.length)return x.pop();if(y>=v)return;let a=i?i.ignoreUnclosed:!1;switch(c=o.charCodeAt(y),c){case 10:case 32:case 9:case 13:case 12:l=y;do l+=1,c=o.charCodeAt(l);while(c===32||c===10||c===9||c===13||c===12);_=[`space`,o.slice(y,l)],y=l-1;break;case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let e=String.fromCharCode(c);_=[e,e,y];break}case 40:if(h=b.length?b.pop()[1]:``,g=o.charCodeAt(y+1),h===`url`&&g!==39&&g!==34&&g!==32&&g!==10&&g!==9&&g!==12&&g!==13){l=y;do{if(p=!1,l=o.indexOf(`)`,l+1),l===-1){if(s||a){l=y;break}C(`bracket`)}for(m=l;o.charCodeAt(m-1)===92;)--m,p=!p}while(p);_=[`brackets`,o.slice(y,l+1),y,l],y=l}else l=o.indexOf(`)`,y+1),d=o.slice(y,l+1),l===-1||n.test(d)?_=[`(`,`(`,y]:(_=[`brackets`,d,y,l],y=l);break;case 39:case 34:u=c===39?`'`:`"`,l=y;do{if(p=!1,l=o.indexOf(u,l+1),l===-1){if(s||a){l=y+1;break}C(`string`)}for(m=l;o.charCodeAt(m-1)===92;)--m,p=!p}while(p);_=[`string`,o.slice(y,l+1),y,l],y=l;break;case 64:e.lastIndex=y+1,e.test(o),l=e.lastIndex===0?o.length-1:e.lastIndex-2,_=[`at-word`,o.slice(y,l+1),y,l],y=l;break;case 92:for(l=y,f=!0;o.charCodeAt(l+1)===92;)l+=1,f=!f;if(c=o.charCodeAt(l+1),f&&c!==47&&c!==32&&c!==10&&c!==9&&c!==13&&c!==12&&(l+=1,r.test(o.charAt(l)))){for(;r.test(o.charAt(l+1));)l+=1;o.charCodeAt(l+1)===32&&(l+=1)}_=[`word`,o.slice(y,l+1),y,l],y=l;break;default:c===47&&o.charCodeAt(y+1)===42?(l=o.indexOf(`*/`,y+2)+1,l===0&&(s||a?l=o.length:C(`comment`)),_=[`comment`,o.slice(y,l+1),y,l],y=l):(t.lastIndex=y+1,t.test(o),l=t.lastIndex===0?o.length-1:t.lastIndex-2,_=[`word`,o.slice(y,l+1),y,l],b.push(_),y=l)}return y++,_}function te(e){x.push(e)}return{back:te,endOfFile:ee,nextToken:w,position:S}},In}var zn,Bn;function Vn(){if(Bn)return zn;Bn=1;let e=Cn();class t extends e{constructor(e){super(e),this.type=`atrule`}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}}return zn=t,t.default=t,e.registerAtRule(t),zn}var Hn,Un;function Wn(){if(Un)return Hn;Un=1;let e=Cn(),t,n;class r extends e{constructor(e){super(e),this.type=`root`,this.nodes||=[]}normalize(e,t,n){let r=super.normalize(e);if(t){if(n===`prepend`)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of r)e.raws.before=t.raws.before}return r}removeChild(e,t){let n=this.index(e);return!t&&n===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new t(new n,this,e).stringify()}}return r.registerLazyResult=e=>{t=e},r.registerProcessor=e=>{n=e},Hn=r,r.default=r,e.registerRoot(r),Hn}var Gn,Kn;function qn(){if(Kn)return Gn;Kn=1;let e={comma(t){return e.split(t,[`,`],!0)},space(t){return e.split(t,[` `,`
33
+ `,` `])},split(e,t,n){let r=[],i=``,a=!1,o=0,s=!1,c=``,l=!1;for(let n of e)l?l=!1:n===`\\`?l=!0:s?n===c&&(s=!1):n===`"`||n===`'`?(s=!0,c=n):n===`(`?o+=1:n===`)`?o>0&&--o:o===0&&t.includes(n)&&(a=!0),a?(i!==``&&r.push(i.trim()),i=``,a=!1):i+=n;return(n||i!==``)&&r.push(i.trim()),r}};return Gn=e,e.default=e,Gn}var Jn,Yn;function Xn(){if(Yn)return Jn;Yn=1;let e=Cn(),t=qn();class n extends e{constructor(e){super(e),this.type=`rule`,this.nodes||=[]}get selectors(){return t.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:`,`+this.raw(`between`,`beforeOpen`);this.selector=e.join(n)}}return Jn=n,n.default=n,e.registerRule(n),Jn}var Zn,Qn;function $n(){if(Qn)return Zn;Qn=1;let e=an(),t=Rn(),n=bn(),r=Vn(),i=Wn(),a=Xn(),o={empty:!0,space:!0};function s(e){for(let t=e.length-1;t>=0;t--){let n=e[t],r=n[3]||n[2];if(r)return r}}class c{constructor(e){this.input=e,this.root=new i,this.current=this.root,this.spaces=``,this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new r;t.name=e[1].slice(1),t.name===``&&this.unnamedAtrule(t,e),this.init(t,e[2]);let n,i,a,o=!1,s=!1,c=[],l=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n===`(`||n===`[`?l.push(n===`(`?`)`:`]`):n===`{`&&l.length>0?l.push(`}`):n===l[l.length-1]&&l.pop(),l.length===0){if(n===`;`){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}if(n===`{`){s=!0;break}if(n===`}`){if(c.length>0){for(a=c.length-1,i=c[a];i&&i[0]===`space`;)i=c[--a];i&&(t.source.end=this.getPosition(i[3]||i[2]),t.source.end.offset++)}this.end(e);break}c.push(e)}else c.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(c),c.length?(t.raws.afterName=this.spacesAndCommentsFromStart(c),this.raw(t,`params`,c),o&&(e=c[c.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between=``)):(t.raws.afterName=``,t.params=``),s&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let n=0,r;for(let i=t-1;i>=0&&(r=e[i],!(r[0]!==`space`&&(n+=1,n===2)));i--);throw this.input.error(`Missed semicolon`,r[0]===`word`?r[3]+1:r[2])}colon(e){let t=0,n,r,i;for(let[a,o]of e.entries()){if(n=o,r=n[0],r===`(`&&(t+=1),r===`)`&&--t,t===0&&r===`:`){if(!i)this.doubleColon(n);else if(i[0]===`word`&&i[1]===`progid`)continue;else return a}i=n}return!1}comment(e){let t=new n;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text=``,t.raws.left=r,t.raws.right=``;else{let e=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(t,n){let r=new e;this.init(r,t[0][2]);let i=t[t.length-1];for(i[0]===`;`&&(this.semicolon=!0,t.pop()),r.source.end=this.getPosition(i[3]||i[2]||s(t)),r.source.end.offset++;t[0][0]!==`word`;)t.length===1&&this.unknownWord(t),r.raws.before+=t.shift()[1];for(r.source.start=this.getPosition(t[0][2]),r.prop=``;t.length;){let e=t[0][0];if(e===`:`||e===`space`||e===`comment`)break;r.prop+=t.shift()[1]}r.raws.between=``;let a;for(;t.length;){if(a=t.shift(),a[0]===`:`){r.raws.between+=a[1];break}a[0]===`word`&&/\w/.test(a[1])&&this.unknownWord([a]),r.raws.between+=a[1]}(r.prop[0]===`_`||r.prop[0]===`*`)&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let o=[],c;for(;t.length&&(c=t[0][0],c===`space`||c===`comment`);)o.push(t.shift());this.precheckMissedSemicolon(t);for(let e=t.length-1;e>=0;e--){if(a=t[e],a[1].toLowerCase()===`!important`){r.important=!0;let n=this.stringFrom(t,e);n=this.spacesFromEnd(t)+n,n!==` !important`&&(r.raws.important=n);break}if(a[1].toLowerCase()===`important`){let n=t.slice(0),i=``;for(let t=e;t>0;t--){let e=n[t][0];if(i.trim().indexOf(`!`)===0&&e!==`space`)break;i=n.pop()[1]+i}i.trim().indexOf(`!`)===0&&(r.important=!0,r.raws.important=i,t=n)}if(a[0]!==`space`&&a[0]!==`comment`)break}t.some(e=>e[0]!==`space`&&e[0]!==`comment`)&&(r.raws.between+=o.map(e=>e[1]).join(``),o=[]),this.raw(r,`value`,o.concat(t),n),r.value.includes(`:`)&&!n&&this.checkMissedSemicolon(t)}doubleColon(e){throw this.input.error(`Double colon`,{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new a;this.init(t,e[2]),t.selector=``,t.raws.between=``,this.current=t}end(e){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(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}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(e){if(this.spaces+=e[1],this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];e&&e.type===`rule`&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces=``)}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces=``,e.type!==`comment`&&(this.semicolon=!1)}other(e){let t=!1,n=null,r=!1,i=null,a=[],o=e[1].startsWith(`--`),s=[],c=e;for(;c;){if(n=c[0],s.push(c),n===`(`||n===`[`)i||=c,a.push(n===`(`?`)`:`]`);else if(o&&r&&n===`{`)i||=c,a.push(`}`);else if(a.length===0){if(n===`;`){if(r){this.decl(s,o);return}break}if(n===`{`){this.rule(s);return}if(n===`}`){this.tokenizer.back(s.pop()),t=!0;break}n===`:`&&(r=!0)}else n===a[a.length-1]&&(a.pop(),a.length===0&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),a.length>0&&this.unclosedBracket(i),t&&r){if(!o)for(;s.length&&(c=s[s.length-1][0],c===`space`||c===`comment`);)this.tokenizer.back(s.pop());this.decl(s,o)}else this.unknownWord(s)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case`space`:this.spaces+=e[1];break;case`;`:this.freeSemicolon(e);break;case`}`:this.end(e);break;case`comment`:this.comment(e);break;case`at-word`:this.atrule(e);break;case`{`:this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,n,r){let i,a,s=n.length,c=``,l=!0,u,d;for(let e=0;e<s;e+=1)i=n[e],a=i[0],a===`space`&&e===s-1&&!r?l=!1:a===`comment`?(d=n[e-1]?n[e-1][0]:`empty`,u=n[e+1]?n[e+1][0]:`empty`,!o[d]&&!o[u]?c.slice(-1)===`,`?l=!1:c+=i[1]:l=!1):c+=i[1];if(!l){let r=n.reduce((e,t)=>e+t[1],``);e.raws[t]={raw:r,value:c}}e[t]=c}rule(e){e.pop();let t=new a;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,`selector`,e),this.current=t}spacesAndCommentsFromEnd(e){let t,n=``;for(;e.length&&(t=e[e.length-1][0],t===`space`||t===`comment`);)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let t,n=``;for(;e.length&&(t=e[0][0],t===`space`||t===`comment`);)n+=e.shift()[1];return n}spacesFromEnd(e){let t,n=``;for(;e.length&&(t=e[e.length-1][0],t===`space`);)n=e.pop()[1]+n;return n}stringFrom(e,t){let n=``;for(let r=t;r<e.length;r++)n+=e[r][1];return e.splice(t,e.length-t),n}unclosedBlock(){let e=this.current.source.start;throw this.input.error(`Unclosed block`,e.line,e.column)}unclosedBracket(e){throw this.input.error(`Unclosed bracket`,{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error(`Unexpected }`,{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error(`Unknown word`,{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error(`At-rule without name`,{offset:t[2]},{offset:t[2]+t[1].length})}}return Zn=c,Zn}var er,tr;function nr(){if(tr)return er;tr=1;let e=Cn(),t=$n(),n=mn();function r(e,r){let i=new n(e,r),a=new t(i);try{a.parse()}catch(e){throw e}return a.root}return er=r,r.default=r,e.registerParse(r),er}var rr,ir;function ar(){if(ir)return rr;ir=1;let{isClean:e,my:t}=qt(),n=_n(),r=M(),i=Cn(),a=En();kn();let o=Fn(),s=nr(),c=Wn(),l={atrule:`AtRule`,comment:`Comment`,decl:`Declaration`,document:`Document`,root:`Root`,rule:`Rule`},u={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},d={Once:!0,postcssPlugin:!0,prepare:!0};function f(e){return typeof e==`object`&&typeof e.then==`function`}function p(e){let t=!1,n=l[e.type];return e.type===`decl`?t=e.prop.toLowerCase():e.type===`atrule`&&(t=e.name.toLowerCase()),t&&e.append?[n,n+`-`+t,0,n+`Exit`,n+`Exit-`+t]:t?[n,n+`-`+t,n+`Exit`,n+`Exit-`+t]:e.append?[n,0,n+`Exit`]:[n,n+`Exit`]}function m(e){let t;return t=e.type===`document`?[`Document`,0,`DocumentExit`]:e.type===`root`?[`Root`,0,`RootExit`]:p(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function h(t){return t[e]=!1,t.nodes&&t.nodes.forEach(e=>h(e)),t}let g={};class _{constructor(e,n,r){this.stringified=!1,this.processed=!1;let a;if(typeof n==`object`&&n&&(n.type===`root`||n.type===`document`))a=h(n);else if(n instanceof _||n instanceof o)a=h(n.root),n.map&&(r.map===void 0&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=n.map);else{let e=s;r.syntax&&(e=r.syntax.parse),r.parser&&(e=r.parser),e.parse&&(e=e.parse);try{a=e(n,r)}catch(e){this.processed=!0,this.error=e}a&&!a[t]&&i.rebuild(a)}this.result=new o(e,a,r),this.helpers={...g,postcss:g,result:this.result},this.plugins=this.processor.plugins.map(e=>typeof e==`object`&&e.prepare?{...e,...e.prepare(this.result)}:e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||=this.runAsync(),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw Error(`Use process(css).then(cb) to work with async plugins`)}handleError(e,t){let n=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name===`CssSyntaxError`&&!e.plugin?(e.plugin=n.postcssPlugin,e.setMessage()):n.postcssVersion}catch(e){console&&console.error&&console.error(e)}return e}prepareVisitors(){this.listeners={};let e=(e,t,n)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,n])};for(let t of this.plugins)if(typeof t==`object`)for(let n in t){if(!u[n]&&/^[A-Z]/.test(n))throw Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!d[n]){if(typeof t[n]==`object`)for(let r in t[n])r===`*`?e(t,n,t[n][r]):e(t,n+`-`+r.toLowerCase(),t[n][r]);else typeof t[n]==`function`&&e(t,n,t[n])}}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],n=this.runOnRoot(t);if(f(n))try{await n}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[e];){t[e]=!0;let n=[m(t)];for(;n.length>0;){let e=this.visitTick(n);if(f(e))try{await e}catch(e){let t=n[n.length-1].node;throw this.handleError(e,t)}}}if(this.listeners.OnceExit)for(let[e,n]of this.listeners.OnceExit){this.result.lastPlugin=e;try{if(t.type===`document`){let e=t.nodes.map(e=>n(e,this.helpers));await Promise.all(e)}else await n(t,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e==`object`&&e.Once){if(this.result.root.type===`document`){let t=this.result.root.nodes.map(t=>e.Once(t,this.helpers));return f(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}if(typeof e==`function`)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=r;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let i=new n(t,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[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 e of this.plugins)if(f(this.runOnRoot(e)))throw this.getAsyncError();if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[e];)t[e]=!0,this.walkSync(t);if(this.listeners.OnceExit){if(t.type===`document`)for(let e of t.nodes)this.visitSync(this.listeners.OnceExit,e);else this.visitSync(this.listeners.OnceExit,t)}}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[n,r]of e){this.result.lastPlugin=n;let e;try{e=r(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if(t.type!==`root`&&t.type!==`document`&&!t.parent)return!0;if(f(e))throw this.getAsyncError()}}visitTick(t){let n=t[t.length-1],{node:r,visitors:i}=n;if(r.type!==`root`&&r.type!==`document`&&!r.parent){t.pop();return}if(i.length>0&&n.visitorIndex<i.length){let[e,t]=i[n.visitorIndex];n.visitorIndex+=1,n.visitorIndex===i.length&&(n.visitors=[],n.visitorIndex=0),this.result.lastPlugin=e;try{return t(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(n.iterator!==0){let i=n.iterator,a;for(;a=r.nodes[r.indexes[i]];)if(r.indexes[i]+=1,!a[e]){a[e]=!0,t.push(m(a));return}n.iterator=0,delete r.indexes[i]}let a=n.events;for(;n.eventIndex<a.length;){let t=a[n.eventIndex];if(n.eventIndex+=1,t===0){r.nodes&&r.nodes.length&&(r[e]=!0,n.iterator=r.getIterator());return}if(this.listeners[t]){n.visitors=this.listeners[t];return}}t.pop()}walkSync(t){t[e]=!0;let n=p(t);for(let r of n)if(r===0)t.nodes&&t.each(t=>{t[e]||this.walkSync(t)});else{let e=this.listeners[r];if(e&&this.visitSync(e,t.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 _.registerPostcss=e=>{g=e},rr=_,_.default=_,c.registerLazyResult(_),a.registerLazyResult(_),rr}var or,sr;function cr(){if(sr)return or;sr=1;let e=_n(),t=M();kn();let n=nr(),r=Fn();class i{constructor(n,i,a){i=i.toString(),this.stringified=!1,this._processor=n,this._css=i,this._opts=a,this._map=void 0;let o,s=t;this.result=new r(this._processor,o,this._opts),this.result.css=i;let c=this;Object.defineProperty(this.result,"root",{get(){return c.root}});let l=new e(s,o,this._opts,i);if(l.isMap()){let[e,t]=l.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else l.clearAnnotation(),this.result.css=l.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}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 e,t=n;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return`NoWorkResult`}}return or=i,i.default=i,or}var lr,ur;function dr(){if(ur)return lr;ur=1;let e=cr(),t=ar(),n=En(),r=Wn();class i{constructor(e=[]){this.version=`8.4.38`,this.plugins=this.normalize(e)}normalize(e){let t=[];for(let n of e)if(n.postcss===!0?n=n():n.postcss&&(n=n.postcss),typeof n==`object`&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if(typeof n==`object`&&n.postcssPlugin)t.push(n);else if(typeof n==`function`)t.push(n);else if(typeof n!=`object`||!n.parse&&!n.stringify)throw Error(n+` is not a PostCSS plugin`);return t}process(n,r={}){return!this.plugins.length&&!r.parser&&!r.stringifier&&!r.syntax?new e(this,n,r):new t(this,n,r)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}}return lr=i,i.default=i,r.registerProcessor(i),n.registerProcessor(i),lr}var fr,pr;function mr(){if(pr)return fr;pr=1;let e=an(),t=dn(),n=bn(),r=Vn(),i=mn(),a=Wn(),o=Xn();function s(c,l){if(Array.isArray(c))return c.map(e=>s(e));let{inputs:u,...d}=c;if(u){l=[];for(let e of u){let n={...e,__proto__:i.prototype};n.map&&={...n.map,__proto__:t.prototype},l.push(n)}}if(d.nodes&&=c.nodes.map(e=>s(e,l)),d.source){let{inputId:e,...t}=d.source;d.source=t,e!=null&&(d.source.input=l[e])}if(d.type===`root`)return new a(d);if(d.type===`decl`)return new e(d);if(d.type===`rule`)return new o(d);if(d.type===`comment`)return new n(d);if(d.type===`atrule`)return new r(d);throw Error(`Unknown node type: `+c.type)}return fr=s,s.default=s,fr}var hr,gr;function _r(){if(gr)return hr;gr=1;let e=Wt(),t=an(),n=ar(),r=Cn(),i=dr(),a=M(),o=mr(),s=En(),c=Mn(),l=bn(),u=Vn(),d=Fn(),f=mn(),p=nr(),m=qn(),h=Xn(),g=Wn(),_=tn();function v(...e){return e.length===1&&Array.isArray(e[0])&&(e=e[0]),new i(e)}return v.plugin=function(e,t){let n=!1;function r(...r){console&&console.warn&&!n&&(n=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
34
+ https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith(`cn`)&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
35
+ https://www.w3ctech.com/topic/2226`));let a=t(...r);return a.postcssPlugin=e,a.postcssVersion=new i().version,a}let a;return Object.defineProperty(r,"postcss",{get(){return a||=r(),a}}),r.process=function(e,t,n){return v([r(n)]).process(e,t)},r},v.stringify=a,v.parse=p,v.fromJSON=o,v.list=m,v.comment=e=>new l(e),v.atRule=e=>new u(e),v.decl=e=>new t(e),v.rule=e=>new h(e),v.root=e=>new g(e),v.document=e=>new s(e),v.CssSyntaxError=e,v.Declaration=t,v.Container=r,v.Processor=i,v.Document=s,v.Comment=l,v.Warning=c,v.AtRule=u,v.Result=d,v.Input=f,v.Rule=h,v.Root=g,v.Node=_,n.registerPostcss(v),hr=v,v.default=v,hr}var vr=It(_r());vr.stringify,vr.fromJSON,vr.plugin,vr.parse,vr.list,vr.document,vr.comment,vr.atRule,vr.rule,vr.decl,vr.root,vr.CssSyntaxError,vr.Declaration,vr.Container,vr.Processor,vr.Document,vr.Comment,vr.Warning,vr.AtRule,vr.Result,vr.Input,vr.Rule,vr.Root,vr.Node;var yr={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 br(e){let t=yr[e.tagName]?yr[e.tagName]:e.tagName;return t===`link`&&e.attributes._cssText&&(t=`style`),t}function xr(e,t){let n=t?.stylesWithHoverClass.get(e);if(n)return n;let r=e;try{r=vr([Pt,Ft]).process(e).css}catch(e){console.warn(`Failed to adapt css for replay`,e)}return t?.stylesWithHoverClass.set(e,r),r}function Sr(){return{stylesWithHoverClass:new Map}}var Cr=`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.`,wr=`rrweb-snapshot.createSandboxedIframe() requires root to be connected to a document before creating a sandboxed iframe.`,Tr=new WeakSet;function Er(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 Dr(e){if(e.UNSAFE_allowUnprotectedRebuild)return;let t=e.doc.defaultView;if(t&&!(Tr.has(e.doc)&&Er(t.frameElement)))throw Error(Cr)}function Or(e,t,n,r){let i=[];for(let t of e.childNodes)t.type===T.Text&&i.push(t);let a=t.split(`/* rr_split */`);for(;a.length>1&&a.length>i.length;)a.splice(-2,2,a.slice(-2).join(``));let o=``;n&&(o=xr(a.join(``),r));let s=0,c=-1;for(let e=0;e<i.length&&e!==a.length;e++){let t=i[e],r=a[e],l=e<a.length-1?a[e+1]:null;if(n&&l){let e=s,t=l.length;t=Math.min(t,30);let n=!1;for(;t>2;t--){let r=l.substring(0,t),i=o.substring(s).indexOf(r);if(n=i!==-1,n){e+=i;break}}n||(e+=r.length),r=o.substring(s,e),s=e}else n&&(r=o.substring(s));c!==-1&&(r=r.substring(c)),l&&(c!==-1||r.endsWith(`0p`)&&l.startsWith(`x`))&&(c=l.indexOf(`}`),c!==-1&&(c+=1,r+=l.substring(0,c))),t.textContent=r}}function kr(e,t,n,r){let{doc:i,hackCss:a,cache:o}=r;e.childNodes.length?Or(e,n,a,o):(a&&(n=xr(n,o)),t.appendChild(i.createTextNode(n)))}function Ar(e,t){let{doc:n,hackCss:r,cache:i}=t;switch(e.type){case T.Document:return n.implementation.createDocument(null,``,null);case T.DocumentType:return n.implementation.createDocumentType(e.name||`html`,e.publicId,e.systemId);case T.Element:{let r=br(e),i;e.isSVG?i=n.createElementNS(`http://www.w3.org/2000/svg`,r):(e.isCustom&&n.defaultView?.customElements&&!n.defaultView.customElements.get(e.tagName)&&n.defaultView.customElements.define(e.tagName,class extends n.defaultView.HTMLElement{}),i=n.createElement(r));let a={};for(let o in e.attributes){if(!Object.prototype.hasOwnProperty.call(e.attributes,o))continue;let s=e.attributes[o];if((r!==`option`||o!==`selected`||s!==!1)&&s!==null){if(s===!0&&(s=``),o.startsWith(`rr_`)){a[o]=s;continue}if(typeof s==`string`){if(r===`style`&&o===`_cssText`){kr(e,i,s,t);continue}if(r===`textarea`&&o===`value`){i.appendChild(n.createTextNode(s)),e.childNodes=[];continue}}try{if(e.isSVG&&o===`xlink:href`)i.setAttributeNS(`http://www.w3.org/1999/xlink`,o,s.toString());else if(o===`onload`||o===`onclick`||o.substring(0,7)===`onmouse`)i.setAttribute(`_`+o,s.toString());else if(r===`meta`&&e.attributes[`http-equiv`]===`Content-Security-Policy`&&o===`content`){i.setAttribute(`csp-content`,s.toString());continue}else r===`link`&&(e.attributes.rel===`preload`&&e.attributes.as===`script`||e.attributes.rel===`modulepreload`)||r===`link`&&e.attributes.rel===`prefetch`&&typeof e.attributes.href==`string`&&Ge(e.attributes.href)===`js`||(r===`img`&&e.attributes.srcset&&e.attributes.rr_dataURL?i.setAttribute(`rrweb-original-srcset`,e.attributes.srcset):i.setAttribute(o,s.toString()))}catch{}}}for(let t in a){let o=a[t];if(r===`canvas`&&t===`rr_dataURL`){let e=n.createElement(`img`);e.onload=()=>{let t=i.getContext(`2d`);t&&t.drawImage(e,0,0,e.width,e.height)},e.src=o.toString(),i.RRNodeType&&(i.rr_dataURL=o.toString())}else if(r===`img`&&t===`rr_dataURL`){let t=i;t.currentSrc.startsWith(`data:`)||(t.setAttribute(`rrweb-original-src`,e.attributes.src),t.src=o.toString())}if(t===`rr_width`)i.style.setProperty(`width`,o.toString());else if(t===`rr_height`)i.style.setProperty(`height`,o.toString());else if(t===`rr_mediaCurrentTime`&&typeof o==`number`)i.currentTime=o;else if(t===`rr_mediaState`)switch(o){case`played`:i.play().catch(e=>console.warn(`media playback error`,e));break;case`paused`:i.pause()}else t===`rr_mediaPlaybackRate`&&typeof o==`number`?i.playbackRate=o:t===`rr_mediaMuted`&&typeof o==`boolean`?i.muted=o:t===`rr_mediaLoop`&&typeof o==`boolean`?i.loop=o:t===`rr_mediaVolume`&&typeof o==`number`?i.volume=o:t===`rr_open_mode`&&i.setAttribute(`rr_open_mode`,o)}if(e.isShadowHost){if(!i.shadowRoot)i.attachShadow({mode:`open`});else for(;i.shadowRoot.firstChild;)i.shadowRoot.removeChild(i.shadowRoot.firstChild)}return(r===`input`||r===`textarea`)&&i.setAttribute(`autocomplete`,`off`),i}case T.Text:return e.isStyle&&r?n.createTextNode(xr(e.textContent,i)):n.createTextNode(e.textContent);case T.CDATA:return n.createCDATASection(e.textContent);case T.Comment:return n.createComment(e.textContent);default:return null}}function jr(e,t){let{doc:n,mirror:r,skipChild:i=!1,hackCss:a=!0,afterAppend:o,cache:s}=t;if(r.has(e.id)){let t=r.getNode(e.id);if(Ue(r.getMeta(t),e))return r.getNode(e.id)}let c=Ar(e,{doc:n,hackCss:a,cache:s});if(!c)return null;if(e.rootId&&r.getNode(e.rootId)!==n&&r.replace(e.rootId,n),e.type===T.Document&&(n.close(),n.open(),e.compatMode===`BackCompat`&&e.childNodes&&e.childNodes[0].type!==T.DocumentType&&(e.childNodes[0].type===T.Element&&`xmlns`in e.childNodes[0].attributes&&e.childNodes[0].attributes.xmlns===`http://www.w3.org/1999/xhtml`?n.write(`<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">`):n.write(`<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">`)),c=n),r.add(c,e),(e.type===T.Document||e.type===T.Element)&&!i)for(let t of e.childNodes){let i=jr(t,{doc:n,mirror:r,skipChild:!1,hackCss:a,afterAppend:o,cache:s});if(!i){console.warn(`Failed to rebuild`,t);continue}if(t.isShadow&&De(c)&&c.shadowRoot)c.shadowRoot.appendChild(i);else if(e.type===T.Document&&t.type==T.Element){let e=i,t=null;e.childNodes.forEach(e=>{e.nodeName===`BODY`&&(t=e)}),t?(e.removeChild(t),c.appendChild(i),e.appendChild(t)):c.appendChild(i)}else c.appendChild(i);o&&o(i,t.id)}return c}function Mr(e,t){function n(e){t(e)}for(let t of e.getIds())e.has(t)&&n(e.getNode(t))}function Nr(e,t){let n=t.getMeta(e);if(n?.type!==T.Element)return;let r=e;for(let e in n.attributes){if(!(Object.prototype.hasOwnProperty.call(n.attributes,e)&&e.startsWith(`rr_`)))continue;let t=n.attributes[e];e===`rr_scrollLeft`&&(r.scrollLeft=t),e===`rr_scrollTop`&&(r.scrollTop=t)}}function Pr(e,t){Dr(t);let{doc:n,onVisit:r,hackCss:i=!0,afterAppend:a,cache:o,mirror:s=new Le}=t,c=jr(e,{doc:n,mirror:s,skipChild:!1,hackCss:i,afterAppend:a,cache:o});return Mr(s,e=>{r&&r(e),Nr(e,s)}),c}function Fr(e){var t;if(!e.root.isConnected)throw Error(wr);let n=e.root.ownerDocument.createElement(`iframe`);for(let[t,r]of Object.entries(e.iframeAttributes||{}))t!==`sandbox`&&n.setAttribute(t,r);n.setAttribute(`sandbox`,`allow-same-origin`),e.root.appendChild(n);let r=n.contentDocument;if(!r||!n.contentWindow)throw(t=n.parentNode)==null||t.removeChild(n),Error(wr);return Tr.add(r),n}var Ir=Object.defineProperty,Lr=(e,t,n)=>t in e?Ir(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,N=(e,t,n)=>Lr(e,typeof t==`symbol`?t:t+``,n),Rr=Object.defineProperty,zr=(e,t,n)=>t in e?Rr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Br=(e,t,n)=>zr(e,typeof t==`symbol`?t:t+``,n);Date.now().toString();var Vr=class{constructor(){Br(this,`idNodeMap`,new Map),Br(this,`nodeMetaMap`,new WeakMap)}getId(e){return e?this.getMeta(e)?.id??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){let n=this.getNode(e);if(n){let e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function Hr(){return new Vr}function Ur(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}function Wr(e){if(e.__esModule)return e;var t=e.default;if(typeof t==`function`){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var Gr={exports:{}},Kr;function qr(){if(Kr)return Gr.exports;Kr=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 Gr.exports=t(),Gr.exports.createColors=t,Gr.exports}var Jr=Wr(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:`Module`}))),Yr,Xr;function Zr(){if(Xr)return Yr;Xr=1;let e=qr(),t=Jr;class n extends Error{constructor(e,t,r,i,a,o){super(e),this.name=`CssSyntaxError`,this.reason=e,a&&(this.file=a),i&&(this.source=i),o&&(this.plugin=o),t!==void 0&&r!==void 0&&(typeof t==`number`?(this.line=t,this.column=r):(this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,n)}setMessage(){this.message=this.plugin?this.plugin+`: `:``,this.message+=this.file?this.file:`<css input>`,this.line!==void 0&&(this.message+=`:`+this.line+`:`+this.column),this.message+=`: `+this.reason}showSourceCode(n){if(!this.source)return``;let r=this.source;n??=e.isColorSupported,t&&n&&(r=t(r));let i=r.split(/\r?\n/),a=Math.max(this.line-3,0),o=Math.min(this.line+2,i.length),s=String(o).length,c,l;if(n){let{bold:t,gray:n,red:r}=e.createColors(!0);c=e=>t(r(e)),l=e=>n(e)}else c=l=e=>e;return i.slice(a,o).map((e,t)=>{let n=a+1+t,r=` `+(` `+n).slice(-s)+` | `;if(n===this.line){let t=l(r.replace(/\d/g,` `))+e.slice(0,this.column-1).replace(/[^\t]/g,` `);return c(`>`)+l(r)+e+`
36
+ `+t+c(`^`)}return` `+l(r)+e}).join(`
37
+ `)}toString(){let e=this.showSourceCode();return e&&=`
38
+
39
+ `+e+`
40
+ `,this.name+`: `+this.message+e}}return Yr=n,n.default=n,Yr}var Qr={},$r;function ei(){return $r?Qr:($r=1,Qr.isClean=Symbol(`isClean`),Qr.my=Symbol(`my`),Qr)}var ti,ni;function ri(){if(ni)return ti;ni=1;let e={after:`
41
+ `,beforeClose:`
42
+ `,beforeComment:`
43
+ `,beforeDecl:`
44
+ `,beforeOpen:` `,beforeRule:`
45
+ `,colon:`: `,commentLeft:` `,commentRight:` `,emptyBody:``,indent:` `,semicolon:!1};function t(e){return e[0].toUpperCase()+e.slice(1)}class n{constructor(e){this.builder=e}atrule(e,t){let n=`@`+e.name,r=e.params?this.rawValue(e,`params`):``;if(e.raws.afterName===void 0?r&&(n+=` `):n+=e.raws.afterName,e.nodes)this.block(e,n+r);else{let i=(e.raws.between||``)+(t?`;`:``);this.builder(n+r+i,e)}}beforeAfter(e,t){let n;n=e.type===`decl`?this.raw(e,null,`beforeDecl`):e.type===`comment`?this.raw(e,null,`beforeComment`):t===`before`?this.raw(e,null,`beforeRule`):this.raw(e,null,`beforeClose`);let r=e.parent,i=0;for(;r&&r.type!==`root`;)i+=1,r=r.parent;if(n.includes(`
46
+ `)){let t=this.raw(e,null,`indent`);if(t.length)for(let e=0;e<i;e++)n+=t}return n}block(e,t){let n=this.raw(e,`between`,`beforeOpen`);this.builder(t+n+`{`,e,`start`);let r;e.nodes&&e.nodes.length?(this.body(e),r=this.raw(e,`after`)):r=this.raw(e,`after`,`emptyBody`),r&&this.builder(r),this.builder(`}`,e,`end`)}body(e){let t=e.nodes.length-1;for(;t>0&&e.nodes[t].type===`comment`;)--t;let n=this.raw(e,`semicolon`);for(let r=0;r<e.nodes.length;r++){let i=e.nodes[r],a=this.raw(i,`before`);a&&this.builder(a),this.stringify(i,t!==r||n)}}comment(e){let t=this.raw(e,`left`,`commentLeft`),n=this.raw(e,`right`,`commentRight`);this.builder(`/*`+t+e.text+n+`*/`,e)}decl(e,t){let n=this.raw(e,`between`,`colon`),r=e.prop+n+this.rawValue(e,`value`);e.important&&(r+=e.raws.important||` !important`),t&&(r+=`;`),this.builder(r,e)}document(e){this.body(e)}raw(n,r,i){let a;if(i||=r,r&&(a=n.raws[r],a!==void 0))return a;let o=n.parent;if(i===`before`&&(!o||o.type===`root`&&o.first===n||o&&o.type===`document`))return``;if(!o)return e[i];let s=n.root();if(s.rawCache||={},s.rawCache[i]!==void 0)return s.rawCache[i];if(i===`before`||i===`after`)return this.beforeAfter(n,i);{let e=`raw`+t(i);this[e]?a=this[e](s,n):s.walk(e=>{if(a=e.raws[r],a!==void 0)return!1})}return a===void 0&&(a=e[i]),s.rawCache[i]=a,a}rawBeforeClose(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length>0&&e.raws.after!==void 0)return t=e.raws.after,t.includes(`
47
+ `)&&(t=t.replace(/[^\n]+$/,``)),!1}),t&&=t.replace(/\S/g,``),t}rawBeforeComment(e,t){let n;return e.walkComments(e=>{if(e.raws.before!==void 0)return n=e.raws.before,n.includes(`
48
+ `)&&(n=n.replace(/[^\n]+$/,``)),!1}),n===void 0?n=this.raw(t,null,`beforeDecl`):n&&=n.replace(/\S/g,``),n}rawBeforeDecl(e,t){let n;return e.walkDecls(e=>{if(e.raws.before!==void 0)return n=e.raws.before,n.includes(`
49
+ `)&&(n=n.replace(/[^\n]+$/,``)),!1}),n===void 0?n=this.raw(t,null,`beforeRule`):n&&=n.replace(/\S/g,``),n}rawBeforeOpen(e){let t;return e.walk(e=>{if(e.type!==`decl`&&(t=e.raws.between,t!==void 0))return!1}),t}rawBeforeRule(e){let t;return e.walk(n=>{if(n.nodes&&(n.parent!==e||e.first!==n)&&n.raws.before!==void 0)return t=n.raws.before,t.includes(`
50
+ `)&&(t=t.replace(/[^\n]+$/,``)),!1}),t&&=t.replace(/\S/g,``),t}rawColon(e){let t;return e.walkDecls(e=>{if(e.raws.between!==void 0)return t=e.raws.between.replace(/[^\s:]/g,``),!1}),t}rawEmptyBody(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length===0&&(t=e.raws.after,t!==void 0))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(n=>{let r=n.parent;if(r&&r!==e&&r.parent&&r.parent===e&&n.raws.before!==void 0){let e=n.raws.before.split(`
51
+ `);return t=e[e.length-1],t=t.replace(/\S/g,``),!1}}),t}rawSemicolon(e){let t;return e.walk(e=>{if(e.nodes&&e.nodes.length&&e.last.type===`decl`&&(t=e.raws.semicolon,t!==void 0))return!1}),t}rawValue(e,t){let n=e[t],r=e.raws[t];return r&&r.value===n?r.raw:n}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,`selector`)),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,`end`)}stringify(e,t){if(!this[e.type])throw Error(`Unknown AST node type `+e.type+`. Maybe you need to change PostCSS stringifier.`);this[e.type](e,t)}}return ti=n,n.default=n,ti}var ii,ai;function oi(){if(ai)return ii;ai=1;let e=ri();function t(t,n){new e(n).stringify(t)}return ii=t,t.default=t,ii}var si,ci;function li(){if(ci)return si;ci=1;let{isClean:e,my:t}=ei(),n=Zr(),r=ri(),i=oi();function a(e,t){let n=new e.constructor;for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r)||r===`proxyCache`)continue;let i=e[r],o=typeof i;r===`parent`&&o===`object`?t&&(n[r]=t):r===`source`?n[r]=i:Array.isArray(i)?n[r]=i.map(e=>a(e,n)):(o===`object`&&i!==null&&(i=a(i)),n[r]=i)}return n}class o{constructor(n={}){this.raws={},this[e]=!1,this[t]=!0;for(let e in n)if(e===`nodes`){this.nodes=[];for(let t of n[e])typeof t.clone==`function`?this.append(t.clone()):this.append(t)}else this[e]=n[e]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=a(this);for(let n in e)t[n]=e[n];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:n,start:r}=this.rangeBy(t);return this.source.input.error(e,{column:r.column,line:r.line},{column:n.column,line:n.line},t)}return new n(e)}getProxyProcessor(){return{get(e,t){return t===`proxyOf`?e:t===`root`?()=>e.root().toProxy():e[t]},set(e,t,n){return e[t]===n||(e[t]=n,(t===`prop`||t===`value`||t===`name`||t===`params`||t===`important`||t===`text`)&&e.markDirty(),!0)}}}markDirty(){if(this[e]){this[e]=!1;let t=this;for(;t=t.parent;)t[e]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let n=this.source.start;if(e.index)n=this.positionInside(e.index,t);else if(e.word){t=this.toString();let r=t.indexOf(e.word);r!==-1&&(n=this.positionInside(r,t))}return n}positionInside(e,t){let n=t||this.toString(),r=this.source.start.column,i=this.source.start.line;for(let t=0;t<e;t++)n[t]===`
52
+ `?(r=1,i+=1):r+=1;return{column:r,line:i}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let t={column:this.source.start.column,line:this.source.start.line},n=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:t.column+1,line:t.line};if(e.word){let r=this.toString(),i=r.indexOf(e.word);i!==-1&&(t=this.positionInside(i,r),n=this.positionInside(i+e.word.length,r))}else e.start?t={column:e.start.column,line:e.start.line}:e.index&&(t=this.positionInside(e.index)),e.end?n={column:e.end.column,line:e.end.line}:typeof e.endIndex==`number`?n=this.positionInside(e.endIndex):e.index&&(n=this.positionInside(e.index+1));return(n.line<t.line||n.line===t.line&&n.column<=t.column)&&(n={column:t.column+1,line:t.line}),{end:n,start:t}}raw(e,t){return new r().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,n=!1;for(let r of e)r===this?n=!0:n?(this.parent.insertAfter(t,r),t=r):this.parent.insertBefore(t,r);n||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!==`document`;)e=e.parent;return e}toJSON(e,t){let n={},r=t==null;t||=new Map;let i=0;for(let e in this){if(!Object.prototype.hasOwnProperty.call(this,e)||e===`parent`||e===`proxyCache`)continue;let r=this[e];if(Array.isArray(r))n[e]=r.map(e=>typeof e==`object`&&e.toJSON?e.toJSON(null,t):e);else if(typeof r==`object`&&r.toJSON)n[e]=r.toJSON(null,t);else if(e===`source`){let a=t.get(r.input);a??(a=i,t.set(r.input,i),i++),n[e]={end:r.end,inputId:a,start:r.start}}else n[e]=r}return r&&(n.inputs=[...t.keys()].map(e=>e.toJSON())),n}toProxy(){return this.proxyCache||=new Proxy(this,this.getProxyProcessor()),this.proxyCache}toString(e=i){e.stringify&&(e=e.stringify);let t=``;return e(this,e=>{t+=e}),t}warn(e,t,n){let r={node:this};for(let e in n)r[e]=n[e];return e.warn(t,r)}get proxyOf(){return this}}return si=o,o.default=o,si}var ui,di;function fi(){if(di)return ui;di=1;let e=li();class t extends e{constructor(e){e&&e.value!==void 0&&typeof e.value!=`string`&&(e={...e,value:String(e.value)}),super(e),this.type=`decl`}get variable(){return this.prop.startsWith(`--`)||this.prop[0]===`$`}}return ui=t,t.default=t,ui}var pi,mi;function hi(){return mi?pi:(mi=1,pi={nanoid:(e=21)=>{let t=``,n=e;for(;n--;)t+=`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`[Math.random()*64|0];return t},customAlphabet:(e,t=21)=>(n=t)=>{let r=``,i=n;for(;i--;)r+=e[Math.random()*e.length|0];return r}},pi)}var gi,_i;function vi(){if(_i)return gi;_i=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=Jr,{existsSync:n,readFileSync:r}=Jr,{dirname:i,join:a}=Jr;function o(e){return Buffer?Buffer.from(e,`base64`).toString():window.atob(e)}class s{constructor(e,t){if(t.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,`data:`);let n=t.map?t.map.prev:void 0,r=this.loadMap(t.from,n);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=i(this.mapFile)),r&&(this.text=r)}consumer(){return this.consumerCache||=new e(this.text),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,n=/^data:application\/json;base64,/;if(/^data:application\/json;charset=utf-?8,/.test(e)||/^data:application\/json,/.test(e))return decodeURIComponent(e.substr(RegExp.lastMatch.length));if(t.test(e)||n.test(e))return o(e.substr(RegExp.lastMatch.length));let r=e.match(/data:application\/json;([^,]+),/)[1];throw Error(`Unsupported source map encoding `+r)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,``).trim()}isMap(e){return typeof e==`object`?typeof e.mappings==`string`||typeof e._mappings==`string`||Array.isArray(e.sections):!1}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let n=e.lastIndexOf(t.pop()),r=e.indexOf(`*/`,n);n>-1&&r>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,r)))}loadFile(e){if(this.root=i(e),n(e))return this.mapFile=e,r(e,`utf-8`).toString().trim()}loadMap(n,r){if(r===!1)return!1;if(r){if(typeof r==`string`)return r;if(typeof r==`function`){let e=r(n);if(e){let t=this.loadFile(e);if(!t)throw Error(`Unable to load previous source map: `+e.toString());return t}}else if(r instanceof e)return t.fromSourceMap(r).toString();else if(r instanceof t)return r.toString();else if(this.isMap(r))return JSON.stringify(r);else throw Error(`Unsupported previous source map format: `+r.toString())}else if(this.inline)return this.decodeInline(this.annotation);else if(this.annotation){let e=this.annotation;return n&&(e=a(i(n),e)),this.loadFile(e)}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return gi=s,s.default=s,gi}var yi,bi;function xi(){if(bi)return yi;bi=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=Jr,{fileURLToPath:n,pathToFileURL:r}=Jr,{isAbsolute:i,resolve:a}=Jr,{nanoid:o}=hi(),s=Jr,c=Zr(),l=vi(),u=Symbol(`fromOffsetCache`),d=!!(e&&t),f=!!(a&&i);class p{constructor(e,t={}){if(e==null||typeof e==`object`&&!e.toString)throw Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]===``||this.css[0]===`￾`?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,t.from&&(this.file=!f||/^\w+:\/\//.test(t.from)||i(t.from)?t.from:a(t.from)),f&&d){let e=new l(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;!this.file&&t&&(this.file=this.mapResolve(t))}}this.file||(this.id=`<input css `+o(6)+`>`),this.map&&(this.map.file=this.from)}error(e,t,n,i={}){let a,o,s;if(t&&typeof t==`object`){let e=t,r=n;if(typeof e.offset==`number`){let r=this.fromOffset(e.offset);t=r.line,n=r.col}else t=e.line,n=e.column;if(typeof r.offset==`number`){let e=this.fromOffset(r.offset);o=e.line,s=e.col}else o=r.line,s=r.column}else if(!n){let e=this.fromOffset(t);t=e.line,n=e.col}let l=this.origin(t,n,o,s);return a=l?new c(e,l.endLine===void 0?l.line:{column:l.column,line:l.line},l.endLine===void 0?l.column:{column:l.endColumn,line:l.endLine},l.source,l.file,i.plugin):new c(e,o===void 0?t:{column:n,line:t},o===void 0?n:{column:s,line:o},this.css,this.file,i.plugin),a.input={column:n,endColumn:s,endLine:o,line:t,source:this.css},this.file&&(r&&(a.input.url=r(this.file).toString()),a.input.file=this.file),a}fromOffset(e){let t,n;if(this[u])n=this[u];else{let e=this.css.split(`
53
+ `);n=Array(e.length);let t=0;for(let r=0,i=e.length;r<i;r++)n[r]=t,t+=e[r].length+1;this[u]=n}t=n[n.length-1];let r=0;if(e>=t)r=n.length-1;else{let t=n.length-2,i;for(;r<t;)if(i=r+(t-r>>1),e<n[i])t=i-1;else if(e>=n[i+1])r=i+1;else{r=i;break}}return{col:e-n[r]+1,line:r+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:a(this.map.consumer().sourceRoot||this.map.root||`.`,e)}origin(e,t,a,o){if(!this.map)return!1;let s=this.map.consumer(),c=s.originalPositionFor({column:t,line:e});if(!c.source)return!1;let l;typeof a==`number`&&(l=s.originalPositionFor({column:o,line:a}));let u;u=i(c.source)?r(c.source):new URL(c.source,this.map.consumer().sourceRoot||r(this.map.mapFile));let d={column:c.column,endColumn:l&&l.column,endLine:l&&l.line,line:c.line,url:u.toString()};if(u.protocol===`file:`){if(n)d.file=n(u);else throw Error(`file: protocol is not available in this PostCSS build`)}let f=s.sourceContentFor(c.source);return f&&(d.source=f),d}toJSON(){let e={};for(let t of[`hasBOM`,`css`,`file`,`id`])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}get from(){return this.file||this.id}}return yi=p,p.default=p,s&&s.registerInput&&s.registerInput(p),yi}var Si,Ci;function wi(){if(Ci)return Si;Ci=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=Jr,{dirname:n,relative:r,resolve:i,sep:a}=Jr,{pathToFileURL:o}=Jr,s=xi(),c=!!(e&&t),l=!!(n&&i&&r&&a);class u{constructor(e,t,n,r){this.stringify=e,this.mapOpts=n.map||{},this.root=t,this.opts=n,this.css=r,this.originalCSS=r,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;e=this.isInline()?`data:application/json;base64,`+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation==`string`?this.mapOpts.annotation:typeof this.mapOpts.annotation==`function`?this.mapOpts.annotation(this.opts.to,this.root):this.outputFile()+`.map`;let t=`
54
+ `;this.css.includes(`\r
55
+ `)&&(t=`\r
56
+ `),this.css+=t+`/*# sourceMappingURL=`+e+` */`}applyPrevMaps(){for(let t of this.previous()){let r=this.toUrl(this.path(t.file)),i=t.root||n(t.file),a;this.mapOpts.sourcesContent===!1?(a=new e(t.text),a.sourcesContent&&(a.sourcesContent=null)):a=t.consumer(),this.map.applySourceMap(a,r,this.toUrl(this.path(i)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1){if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type===`comment`&&e.text.indexOf(`# sourceMappingURL=`)===0&&this.root.removeChild(t)}else this.css&&=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,``)}}generate(){if(this.clearAnnotation(),l&&c&&this.isMap())return this.generateMap();{let e=``;return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=t.fromSourceMap(e,{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 e=1,n=1,r=`<no source>`,i={generated:{column:0,line:0},original:{column:0,line:0},source:``},a,o;this.stringify(this.root,(t,s,c)=>{if(this.css+=t,s&&c!==`end`&&(i.generated.line=e,i.generated.column=n-1,s.source&&s.source.start?(i.source=this.sourcePath(s),i.original.line=s.source.start.line,i.original.column=s.source.start.column-1,this.map.addMapping(i)):(i.source=r,i.original.line=1,i.original.column=0,this.map.addMapping(i))),a=t.match(/\n/g),a?(e+=a.length,o=t.lastIndexOf(`
57
+ `),n=t.length-o):n+=t.length,s&&c!==`start`){let t=s.parent||{raws:{}};(!(s.type===`decl`||s.type===`atrule`&&!s.nodes)||s!==t.last||t.raws.semicolon)&&(s.source&&s.source.end?(i.source=this.sourcePath(s),i.original.line=s.source.end.line,i.original.column=s.source.end.column-1,i.generated.line=e,i.generated.column=n-2,this.map.addMapping(i)):(i.source=r,i.original.line=1,i.original.column=0,i.generated.line=e,i.generated.column=n-1,this.map.addMapping(i)))}})}isAnnotation(){return this.isInline()?!0:this.mapOpts.annotation===void 0?!this.previous().length||this.previous().some(e=>e.annotation):this.mapOpts.annotation}isInline(){if(this.mapOpts.inline!==void 0)return this.mapOpts.inline;let e=this.mapOpts.annotation;return e!==void 0&&e!==!0?!1:!this.previous().length||this.previous().some(e=>e.inline)}isMap(){return this.opts.map===void 0?this.previous().length>0:!!this.opts.map}isSourcesContent(){return this.mapOpts.sourcesContent===void 0?!this.previous().length||this.previous().some(e=>e.withContent()):this.mapOpts.sourcesContent}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):`to.css`}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let a=this.opts.to?n(this.opts.to):`.`;typeof this.mapOpts.annotation==`string`&&(a=n(i(a,this.mapOpts.annotation)));let o=r(a,e);return this.memoizedPaths.set(e,o),o}previous(){if(!this.previousMaps){if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new s(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let n=t.source.input.from;if(n&&!e[n]){e[n]=!0;let r=this.usesFileUrls?this.toFileUrl(n):this.toUrl(this.path(n));this.map.setSourceContent(r,t.source.input.css)}}});else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):`<no source>`;this.map.setSourceContent(e,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString(`base64`):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(o){let t=o(e).toString();return this.memoizedFileURLs.set(e,t),t}throw Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;a===`\\`&&(e=e.replace(/\\/g,`/`));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}}return Si=u,Si}var Ti,Ei;function Di(){if(Ei)return Ti;Ei=1;let e=li();class t extends e{constructor(e){super(e),this.type=`comment`}}return Ti=t,t.default=t,Ti}var Oi,ki;function Ai(){if(ki)return Oi;ki=1;let{isClean:e,my:t}=ei(),n=fi(),r=Di(),i=li(),a,o,s,c;function l(e){return e.map(e=>(e.nodes&&=l(e.nodes),delete e.source,e))}function u(t){if(t[e]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)u(e)}class d extends i{append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),n,r;for(;this.indexes[t]<this.proxyOf.nodes.length&&(n=this.indexes[t],r=e(this.proxyOf.nodes[n],n),r!==!1);)this.indexes[t]+=1;return delete this.indexes[t],r}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||=0,this.indexes||={},this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t===`proxyOf`?e:e[t]?t===`each`||typeof t==`string`&&t.startsWith(`walk`)?(...n)=>e[t](...n.map(e=>typeof e==`function`?(t,n)=>e(t.toProxy(),n):e)):t===`every`||t===`some`?n=>e[t]((e,...t)=>n(e.toProxy(),...t)):t===`root`?()=>e.root().toProxy():t===`nodes`?e.nodes.map(e=>e.toProxy()):t===`first`||t===`last`?e[t].toProxy():e[t]:e[t]},set(e,t,n){return e[t]===n||(e[t]=n,(t===`name`||t===`params`||t===`selector`)&&e.markDirty(),!0)}}}index(e){return typeof e==`number`?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let n=this.index(e),r=this.normalize(t,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let e of r)this.proxyOf.nodes.splice(n+1,0,e);let i;for(let e in this.indexes)i=this.indexes[e],n<i&&(this.indexes[e]=i+r.length);return this.markDirty(),this}insertBefore(e,t){let n=this.index(e),r=n===0&&`prepend`,i=this.normalize(t,this.proxyOf.nodes[n],r).reverse();n=this.index(e);for(let e of i)this.proxyOf.nodes.splice(n,0,e);let a;for(let e in this.indexes)a=this.indexes[e],n<=a&&(this.indexes[e]=a+i.length);return this.markDirty(),this}normalize(i,c){if(typeof i==`string`)i=l(a(i).nodes);else if(i===void 0)i=[];else if(Array.isArray(i)){i=i.slice(0);for(let e of i)e.parent&&e.parent.removeChild(e,`ignore`)}else if(i.type===`root`&&this.type!==`document`){i=i.nodes.slice(0);for(let e of i)e.parent&&e.parent.removeChild(e,`ignore`)}else if(i.type)i=[i];else if(i.prop){if(i.value===void 0)throw Error(`Value field is missed in node creation`);typeof i.value!=`string`&&(i.value=String(i.value)),i=[new n(i)]}else if(i.selector)i=[new o(i)];else if(i.name)i=[new s(i)];else if(i.text)i=[new r(i)];else throw Error(`Unknown node type in node creation`);return i.map(n=>(n[t]||d.rebuild(n),n=n.proxyOf,n.parent&&n.parent.removeChild(n),n[e]&&u(n),n.raws.before===void 0&&c&&c.raws.before!==void 0&&(n.raws.before=c.raws.before.replace(/\S/g,``)),n.parent=this.proxyOf,n))}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,`prepend`).reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes)this.indexes[t]=this.indexes[t]+e.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let n in this.indexes)t=this.indexes[n],t>=e&&(this.indexes[n]=t-1);return this.markDirty(),this}replaceValues(e,t,n){return n||(n=t,t={}),this.walkDecls(r=>{(!t.props||t.props.includes(r.prop))&&(!t.fast||r.value.includes(t.fast))&&(r.value=r.value.replace(e,n))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,n)=>{let r;try{r=e(t,n)}catch(e){throw t.addToError(e)}return r!==!1&&t.walk&&(r=t.walk(e)),r})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if(n.type===`atrule`&&e.test(n.name))return t(n,r)}):this.walk((n,r)=>{if(n.type===`atrule`&&n.name===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if(e.type===`atrule`)return t(e,n)}))}walkComments(e){return this.walk((t,n)=>{if(t.type===`comment`)return e(t,n)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if(n.type===`decl`&&e.test(n.prop))return t(n,r)}):this.walk((n,r)=>{if(n.type===`decl`&&n.prop===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if(e.type===`decl`)return t(e,n)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((n,r)=>{if(n.type===`rule`&&e.test(n.selector))return t(n,r)}):this.walk((n,r)=>{if(n.type===`rule`&&n.selector===e)return t(n,r)}):(t=e,this.walk((e,n)=>{if(e.type===`rule`)return t(e,n)}))}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 d.registerParse=e=>{a=e},d.registerRule=e=>{o=e},d.registerAtRule=e=>{s=e},d.registerRoot=e=>{c=e},Oi=d,d.default=d,d.rebuild=e=>{e.type===`atrule`?Object.setPrototypeOf(e,s.prototype):e.type===`rule`?Object.setPrototypeOf(e,o.prototype):e.type===`decl`?Object.setPrototypeOf(e,n.prototype):e.type===`comment`?Object.setPrototypeOf(e,r.prototype):e.type===`root`&&Object.setPrototypeOf(e,c.prototype),e[t]=!0,e.nodes&&e.nodes.forEach(e=>{d.rebuild(e)})},Oi}var ji,Mi;function Ni(){if(Mi)return ji;Mi=1;let e=Ai(),t,n;class r extends e{constructor(e){super({type:`document`,...e}),this.nodes||=[]}toResult(e={}){return new t(new n,this,e).stringify()}}return r.registerLazyResult=e=>{t=e},r.registerProcessor=e=>{n=e},ji=r,r.default=r,ji}var Pi,Fi;function Ii(){if(Fi)return Pi;Fi=1;let e={};return Pi=function(t){e[t]||(e[t]=!0,typeof console<`u`&&console.warn&&console.warn(t))},Pi}var Li,Ri;function zi(){if(Ri)return Li;Ri=1;class e{constructor(e,t={}){if(this.type=`warning`,this.text=e,t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line,this.column=e.start.column,this.endLine=e.end.line,this.endColumn=e.end.column}for(let e in t)this[e]=t[e]}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 Li=e,e.default=e,Li}var Bi,Vi;function Hi(){if(Vi)return Bi;Vi=1;let e=zi();class t{constructor(e,t,n){this.processor=e,this.messages=[],this.root=t,this.opts=n,this.css=void 0,this.map=void 0}toString(){return this.css}warn(t,n={}){n.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(n.plugin=this.lastPlugin.postcssPlugin);let r=new e(t,n);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type===`warning`)}get content(){return this.css}}return Bi=t,t.default=t,Bi}var Ui,Wi;function Gi(){if(Wi)return Ui;Wi=1;let e=/[\t\n\f\r "#'()/;[\\\]{}]/g,t=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,n=/.[\r\n"'(/\\]/,r=/[\da-f]/i;return Ui=function(i,a={}){let o=i.css.valueOf(),s=a.ignoreErrors,c,l,u,d,f,p,m,h,g,_,v=o.length,y=0,b=[],x=[];function S(){return y}function C(e){throw i.error(`Unclosed `+e,y)}function ee(){return x.length===0&&y>=v}function w(i){if(x.length)return x.pop();if(y>=v)return;let a=i?i.ignoreUnclosed:!1;switch(c=o.charCodeAt(y),c){case 10:case 32:case 9:case 13:case 12:l=y;do l+=1,c=o.charCodeAt(l);while(c===32||c===10||c===9||c===13||c===12);_=[`space`,o.slice(y,l)],y=l-1;break;case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let e=String.fromCharCode(c);_=[e,e,y];break}case 40:if(h=b.length?b.pop()[1]:``,g=o.charCodeAt(y+1),h===`url`&&g!==39&&g!==34&&g!==32&&g!==10&&g!==9&&g!==12&&g!==13){l=y;do{if(p=!1,l=o.indexOf(`)`,l+1),l===-1){if(s||a){l=y;break}C(`bracket`)}for(m=l;o.charCodeAt(m-1)===92;)--m,p=!p}while(p);_=[`brackets`,o.slice(y,l+1),y,l],y=l}else l=o.indexOf(`)`,y+1),d=o.slice(y,l+1),l===-1||n.test(d)?_=[`(`,`(`,y]:(_=[`brackets`,d,y,l],y=l);break;case 39:case 34:u=c===39?`'`:`"`,l=y;do{if(p=!1,l=o.indexOf(u,l+1),l===-1){if(s||a){l=y+1;break}C(`string`)}for(m=l;o.charCodeAt(m-1)===92;)--m,p=!p}while(p);_=[`string`,o.slice(y,l+1),y,l],y=l;break;case 64:e.lastIndex=y+1,e.test(o),l=e.lastIndex===0?o.length-1:e.lastIndex-2,_=[`at-word`,o.slice(y,l+1),y,l],y=l;break;case 92:for(l=y,f=!0;o.charCodeAt(l+1)===92;)l+=1,f=!f;if(c=o.charCodeAt(l+1),f&&c!==47&&c!==32&&c!==10&&c!==9&&c!==13&&c!==12&&(l+=1,r.test(o.charAt(l)))){for(;r.test(o.charAt(l+1));)l+=1;o.charCodeAt(l+1)===32&&(l+=1)}_=[`word`,o.slice(y,l+1),y,l],y=l;break;default:c===47&&o.charCodeAt(y+1)===42?(l=o.indexOf(`*/`,y+2)+1,l===0&&(s||a?l=o.length:C(`comment`)),_=[`comment`,o.slice(y,l+1),y,l],y=l):(t.lastIndex=y+1,t.test(o),l=t.lastIndex===0?o.length-1:t.lastIndex-2,_=[`word`,o.slice(y,l+1),y,l],b.push(_),y=l)}return y++,_}function te(e){x.push(e)}return{back:te,endOfFile:ee,nextToken:w,position:S}},Ui}var Ki,qi;function Ji(){if(qi)return Ki;qi=1;let e=Ai();class t extends e{constructor(e){super(e),this.type=`atrule`}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}}return Ki=t,t.default=t,e.registerAtRule(t),Ki}var Yi,Xi;function Zi(){if(Xi)return Yi;Xi=1;let e=Ai(),t,n;class r extends e{constructor(e){super(e),this.type=`root`,this.nodes||=[]}normalize(e,t,n){let r=super.normalize(e);if(t){if(n===`prepend`)this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let e of r)e.raws.before=t.raws.before}return r}removeChild(e,t){let n=this.index(e);return!t&&n===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new t(new n,this,e).stringify()}}return r.registerLazyResult=e=>{t=e},r.registerProcessor=e=>{n=e},Yi=r,r.default=r,e.registerRoot(r),Yi}var Qi,$i;function ea(){if($i)return Qi;$i=1;let e={comma(t){return e.split(t,[`,`],!0)},space(t){return e.split(t,[` `,`
58
+ `,` `])},split(e,t,n){let r=[],i=``,a=!1,o=0,s=!1,c=``,l=!1;for(let n of e)l?l=!1:n===`\\`?l=!0:s?n===c&&(s=!1):n===`"`||n===`'`?(s=!0,c=n):n===`(`?o+=1:n===`)`?o>0&&--o:o===0&&t.includes(n)&&(a=!0),a?(i!==``&&r.push(i.trim()),i=``,a=!1):i+=n;return(n||i!==``)&&r.push(i.trim()),r}};return Qi=e,e.default=e,Qi}var ta,na;function ra(){if(na)return ta;na=1;let e=Ai(),t=ea();class n extends e{constructor(e){super(e),this.type=`rule`,this.nodes||=[]}get selectors(){return t.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,n=t?t[0]:`,`+this.raw(`between`,`beforeOpen`);this.selector=e.join(n)}}return ta=n,n.default=n,e.registerRule(n),ta}var ia,aa;function oa(){if(aa)return ia;aa=1;let e=fi(),t=Gi(),n=Di(),r=Ji(),i=Zi(),a=ra(),o={empty:!0,space:!0};function s(e){for(let t=e.length-1;t>=0;t--){let n=e[t],r=n[3]||n[2];if(r)return r}}class c{constructor(e){this.input=e,this.root=new i,this.current=this.root,this.spaces=``,this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new r;t.name=e[1].slice(1),t.name===``&&this.unnamedAtrule(t,e),this.init(t,e[2]);let n,i,a,o=!1,s=!1,c=[],l=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n===`(`||n===`[`?l.push(n===`(`?`)`:`]`):n===`{`&&l.length>0?l.push(`}`):n===l[l.length-1]&&l.pop(),l.length===0){if(n===`;`){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}if(n===`{`){s=!0;break}if(n===`}`){if(c.length>0){for(a=c.length-1,i=c[a];i&&i[0]===`space`;)i=c[--a];i&&(t.source.end=this.getPosition(i[3]||i[2]),t.source.end.offset++)}this.end(e);break}c.push(e)}else c.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(c),c.length?(t.raws.afterName=this.spacesAndCommentsFromStart(c),this.raw(t,`params`,c),o&&(e=c[c.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between=``)):(t.raws.afterName=``,t.params=``),s&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let n=0,r;for(let i=t-1;i>=0&&(r=e[i],!(r[0]!==`space`&&(n+=1,n===2)));i--);throw this.input.error(`Missed semicolon`,r[0]===`word`?r[3]+1:r[2])}colon(e){let t=0,n,r,i;for(let[a,o]of e.entries()){if(n=o,r=n[0],r===`(`&&(t+=1),r===`)`&&--t,t===0&&r===`:`){if(!i)this.doubleColon(n);else if(i[0]===`word`&&i[1]===`progid`)continue;else return a}i=n}return!1}comment(e){let t=new n;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text=``,t.raws.left=r,t.raws.right=``;else{let e=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2],t.raws.left=e[1],t.raws.right=e[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(t,n){let r=new e;this.init(r,t[0][2]);let i=t[t.length-1];for(i[0]===`;`&&(this.semicolon=!0,t.pop()),r.source.end=this.getPosition(i[3]||i[2]||s(t)),r.source.end.offset++;t[0][0]!==`word`;)t.length===1&&this.unknownWord(t),r.raws.before+=t.shift()[1];for(r.source.start=this.getPosition(t[0][2]),r.prop=``;t.length;){let e=t[0][0];if(e===`:`||e===`space`||e===`comment`)break;r.prop+=t.shift()[1]}r.raws.between=``;let a;for(;t.length;){if(a=t.shift(),a[0]===`:`){r.raws.between+=a[1];break}a[0]===`word`&&/\w/.test(a[1])&&this.unknownWord([a]),r.raws.between+=a[1]}(r.prop[0]===`_`||r.prop[0]===`*`)&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let o=[],c;for(;t.length&&(c=t[0][0],c===`space`||c===`comment`);)o.push(t.shift());this.precheckMissedSemicolon(t);for(let e=t.length-1;e>=0;e--){if(a=t[e],a[1].toLowerCase()===`!important`){r.important=!0;let n=this.stringFrom(t,e);n=this.spacesFromEnd(t)+n,n!==` !important`&&(r.raws.important=n);break}if(a[1].toLowerCase()===`important`){let n=t.slice(0),i=``;for(let t=e;t>0;t--){let e=n[t][0];if(i.trim().indexOf(`!`)===0&&e!==`space`)break;i=n.pop()[1]+i}i.trim().indexOf(`!`)===0&&(r.important=!0,r.raws.important=i,t=n)}if(a[0]!==`space`&&a[0]!==`comment`)break}t.some(e=>e[0]!==`space`&&e[0]!==`comment`)&&(r.raws.between+=o.map(e=>e[1]).join(``),o=[]),this.raw(r,`value`,o.concat(t),n),r.value.includes(`:`)&&!n&&this.checkMissedSemicolon(t)}doubleColon(e){throw this.input.error(`Double colon`,{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new a;this.init(t,e[2]),t.selector=``,t.raws.between=``,this.current=t}end(e){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(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}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(e){if(this.spaces+=e[1],this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];e&&e.type===`rule`&&!e.raws.ownSemicolon&&(e.raws.ownSemicolon=this.spaces,this.spaces=``)}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces=``,e.type!==`comment`&&(this.semicolon=!1)}other(e){let t=!1,n=null,r=!1,i=null,a=[],o=e[1].startsWith(`--`),s=[],c=e;for(;c;){if(n=c[0],s.push(c),n===`(`||n===`[`)i||=c,a.push(n===`(`?`)`:`]`);else if(o&&r&&n===`{`)i||=c,a.push(`}`);else if(a.length===0){if(n===`;`){if(r){this.decl(s,o);return}break}if(n===`{`){this.rule(s);return}if(n===`}`){this.tokenizer.back(s.pop()),t=!0;break}n===`:`&&(r=!0)}else n===a[a.length-1]&&(a.pop(),a.length===0&&(i=null));c=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),a.length>0&&this.unclosedBracket(i),t&&r){if(!o)for(;s.length&&(c=s[s.length-1][0],c===`space`||c===`comment`);)this.tokenizer.back(s.pop());this.decl(s,o)}else this.unknownWord(s)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case`space`:this.spaces+=e[1];break;case`;`:this.freeSemicolon(e);break;case`}`:this.end(e);break;case`comment`:this.comment(e);break;case`at-word`:this.atrule(e);break;case`{`:this.emptyRule(e);break;default:this.other(e)}this.endFile()}precheckMissedSemicolon(){}raw(e,t,n,r){let i,a,s=n.length,c=``,l=!0,u,d;for(let e=0;e<s;e+=1)i=n[e],a=i[0],a===`space`&&e===s-1&&!r?l=!1:a===`comment`?(d=n[e-1]?n[e-1][0]:`empty`,u=n[e+1]?n[e+1][0]:`empty`,!o[d]&&!o[u]?c.slice(-1)===`,`?l=!1:c+=i[1]:l=!1):c+=i[1];if(!l){let r=n.reduce((e,t)=>e+t[1],``);e.raws[t]={raw:r,value:c}}e[t]=c}rule(e){e.pop();let t=new a;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,`selector`,e),this.current=t}spacesAndCommentsFromEnd(e){let t,n=``;for(;e.length&&(t=e[e.length-1][0],t===`space`||t===`comment`);)n=e.pop()[1]+n;return n}spacesAndCommentsFromStart(e){let t,n=``;for(;e.length&&(t=e[0][0],t===`space`||t===`comment`);)n+=e.shift()[1];return n}spacesFromEnd(e){let t,n=``;for(;e.length&&(t=e[e.length-1][0],t===`space`);)n=e.pop()[1]+n;return n}stringFrom(e,t){let n=``;for(let r=t;r<e.length;r++)n+=e[r][1];return e.splice(t,e.length-t),n}unclosedBlock(){let e=this.current.source.start;throw this.input.error(`Unclosed block`,e.line,e.column)}unclosedBracket(e){throw this.input.error(`Unclosed bracket`,{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error(`Unexpected }`,{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error(`Unknown word`,{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error(`At-rule without name`,{offset:t[2]},{offset:t[2]+t[1].length})}}return ia=c,ia}var sa,ca;function la(){if(ca)return sa;ca=1;let e=Ai(),t=oa(),n=xi();function r(e,r){let i=new n(e,r),a=new t(i);try{a.parse()}catch(e){throw e}return a.root}return sa=r,r.default=r,e.registerParse(r),sa}var ua,P;function da(){if(P)return ua;P=1;let{isClean:e,my:t}=ei(),n=wi(),r=oi(),i=Ai(),a=Ni();Ii();let o=Hi(),s=la(),c=Zi(),l={atrule:`AtRule`,comment:`Comment`,decl:`Declaration`,document:`Document`,root:`Root`,rule:`Rule`},u={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},d={Once:!0,postcssPlugin:!0,prepare:!0};function f(e){return typeof e==`object`&&typeof e.then==`function`}function p(e){let t=!1,n=l[e.type];return e.type===`decl`?t=e.prop.toLowerCase():e.type===`atrule`&&(t=e.name.toLowerCase()),t&&e.append?[n,n+`-`+t,0,n+`Exit`,n+`Exit-`+t]:t?[n,n+`-`+t,n+`Exit`,n+`Exit-`+t]:e.append?[n,0,n+`Exit`]:[n,n+`Exit`]}function m(e){let t;return t=e.type===`document`?[`Document`,0,`DocumentExit`]:e.type===`root`?[`Root`,0,`RootExit`]:p(e),{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function h(t){return t[e]=!1,t.nodes&&t.nodes.forEach(e=>h(e)),t}let g={};class _{constructor(e,n,r){this.stringified=!1,this.processed=!1;let a;if(typeof n==`object`&&n&&(n.type===`root`||n.type===`document`))a=h(n);else if(n instanceof _||n instanceof o)a=h(n.root),n.map&&(r.map===void 0&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=n.map);else{let e=s;r.syntax&&(e=r.syntax.parse),r.parser&&(e=r.parser),e.parse&&(e=e.parse);try{a=e(n,r)}catch(e){this.processed=!0,this.error=e}a&&!a[t]&&i.rebuild(a)}this.result=new o(e,a,r),this.helpers={...g,postcss:g,result:this.result},this.plugins=this.processor.plugins.map(e=>typeof e==`object`&&e.prepare?{...e,...e.prepare(this.result)}:e)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||=this.runAsync(),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw Error(`Use process(css).then(cb) to work with async plugins`)}handleError(e,t){let n=this.result.lastPlugin;try{t&&t.addToError(e),this.error=e,e.name===`CssSyntaxError`&&!e.plugin?(e.plugin=n.postcssPlugin,e.setMessage()):n.postcssVersion}catch(e){console&&console.error&&console.error(e)}return e}prepareVisitors(){this.listeners={};let e=(e,t,n)=>{this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push([e,n])};for(let t of this.plugins)if(typeof t==`object`)for(let n in t){if(!u[n]&&/^[A-Z]/.test(n))throw Error(`Unknown event ${n} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!d[n]){if(typeof t[n]==`object`)for(let r in t[n])r===`*`?e(t,n,t[n][r]):e(t,n+`-`+r.toLowerCase(),t[n][r]);else typeof t[n]==`function`&&e(t,n,t[n])}}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],n=this.runOnRoot(t);if(f(n))try{await n}catch(e){throw this.handleError(e)}}if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[e];){t[e]=!0;let n=[m(t)];for(;n.length>0;){let e=this.visitTick(n);if(f(e))try{await e}catch(e){let t=n[n.length-1].node;throw this.handleError(e,t)}}}if(this.listeners.OnceExit)for(let[e,n]of this.listeners.OnceExit){this.result.lastPlugin=e;try{if(t.type===`document`){let e=t.nodes.map(e=>n(e,this.helpers));await Promise.all(e)}else await n(t,this.helpers)}catch(e){throw this.handleError(e)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e==`object`&&e.Once){if(this.result.root.type===`document`){let t=this.result.root.nodes.map(t=>e.Once(t,this.helpers));return f(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}if(typeof e==`function`)return e(this.result.root,this.result)}catch(e){throw this.handleError(e)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=r;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let i=new n(t,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[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 e of this.plugins)if(f(this.runOnRoot(e)))throw this.getAsyncError();if(this.prepareVisitors(),this.hasListener){let t=this.result.root;for(;!t[e];)t[e]=!0,this.walkSync(t);if(this.listeners.OnceExit){if(t.type===`document`)for(let e of t.nodes)this.visitSync(this.listeners.OnceExit,e);else this.visitSync(this.listeners.OnceExit,t)}}return this.result}then(e,t){return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[n,r]of e){this.result.lastPlugin=n;let e;try{e=r(t,this.helpers)}catch(e){throw this.handleError(e,t.proxyOf)}if(t.type!==`root`&&t.type!==`document`&&!t.parent)return!0;if(f(e))throw this.getAsyncError()}}visitTick(t){let n=t[t.length-1],{node:r,visitors:i}=n;if(r.type!==`root`&&r.type!==`document`&&!r.parent){t.pop();return}if(i.length>0&&n.visitorIndex<i.length){let[e,t]=i[n.visitorIndex];n.visitorIndex+=1,n.visitorIndex===i.length&&(n.visitors=[],n.visitorIndex=0),this.result.lastPlugin=e;try{return t(r.toProxy(),this.helpers)}catch(e){throw this.handleError(e,r)}}if(n.iterator!==0){let i=n.iterator,a;for(;a=r.nodes[r.indexes[i]];)if(r.indexes[i]+=1,!a[e]){a[e]=!0,t.push(m(a));return}n.iterator=0,delete r.indexes[i]}let a=n.events;for(;n.eventIndex<a.length;){let t=a[n.eventIndex];if(n.eventIndex+=1,t===0){r.nodes&&r.nodes.length&&(r[e]=!0,n.iterator=r.getIterator());return}if(this.listeners[t]){n.visitors=this.listeners[t];return}}t.pop()}walkSync(t){t[e]=!0;let n=p(t);for(let r of n)if(r===0)t.nodes&&t.each(t=>{t[e]||this.walkSync(t)});else{let e=this.listeners[r];if(e&&this.visitSync(e,t.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 _.registerPostcss=e=>{g=e},ua=_,_.default=_,c.registerLazyResult(_),a.registerLazyResult(_),ua}var fa,pa;function ma(){if(pa)return fa;pa=1;let e=wi(),t=oi();Ii();let n=la(),r=Hi();class i{constructor(n,i,a){i=i.toString(),this.stringified=!1,this._processor=n,this._css=i,this._opts=a,this._map=void 0;let o,s=t;this.result=new r(this._processor,o,this._opts),this.result.css=i;let c=this;Object.defineProperty(this.result,"root",{get(){return c.root}});let l=new e(s,o,this._opts,i);if(l.isMap()){let[e,t]=l.generate();e&&(this.result.css=e),t&&(this.result.map=t)}else l.clearAnnotation(),this.result.css=l.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return this.async().then(e,t)}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 e,t=n;try{e=t(this._css,this._opts)}catch(e){this.error=e}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return`NoWorkResult`}}return fa=i,i.default=i,fa}var ha,ga;function _a(){if(ga)return ha;ga=1;let e=ma(),t=da(),n=Ni(),r=Zi();class i{constructor(e=[]){this.version=`8.4.38`,this.plugins=this.normalize(e)}normalize(e){let t=[];for(let n of e)if(n.postcss===!0?n=n():n.postcss&&(n=n.postcss),typeof n==`object`&&Array.isArray(n.plugins))t=t.concat(n.plugins);else if(typeof n==`object`&&n.postcssPlugin)t.push(n);else if(typeof n==`function`)t.push(n);else if(typeof n!=`object`||!n.parse&&!n.stringify)throw Error(n+` is not a PostCSS plugin`);return t}process(n,r={}){return!this.plugins.length&&!r.parser&&!r.stringifier&&!r.syntax?new e(this,n,r):new t(this,n,r)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}}return ha=i,i.default=i,r.registerProcessor(i),n.registerProcessor(i),ha}var va,ya;function ba(){if(ya)return va;ya=1;let e=fi(),t=vi(),n=Di(),r=Ji(),i=xi(),a=Zi(),o=ra();function s(c,l){if(Array.isArray(c))return c.map(e=>s(e));let{inputs:u,...d}=c;if(u){l=[];for(let e of u){let n={...e,__proto__:i.prototype};n.map&&={...n.map,__proto__:t.prototype},l.push(n)}}if(d.nodes&&=c.nodes.map(e=>s(e,l)),d.source){let{inputId:e,...t}=d.source;d.source=t,e!=null&&(d.source.input=l[e])}if(d.type===`root`)return new a(d);if(d.type===`decl`)return new e(d);if(d.type===`rule`)return new o(d);if(d.type===`comment`)return new n(d);if(d.type===`atrule`)return new r(d);throw Error(`Unknown node type: `+c.type)}return va=s,s.default=s,va}var xa,Sa;function Ca(){if(Sa)return xa;Sa=1;let e=Zr(),t=fi(),n=da(),r=Ai(),i=_a(),a=oi(),o=ba(),s=Ni(),c=zi(),l=Di(),u=Ji(),d=Hi(),f=xi(),p=la(),m=ea(),h=ra(),g=Zi(),_=li();function v(...e){return e.length===1&&Array.isArray(e[0])&&(e=e[0]),new i(e)}return v.plugin=function(e,t){let n=!1;function r(...r){console&&console.warn&&!n&&(n=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
59
+ https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith(`cn`)&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
60
+ https://www.w3ctech.com/topic/2226`));let a=t(...r);return a.postcssPlugin=e,a.postcssVersion=new i().version,a}let a;return Object.defineProperty(r,"postcss",{get(){return a||=r(),a}}),r.process=function(e,t,n){return v([r(n)]).process(e,t)},r},v.stringify=a,v.parse=p,v.fromJSON=o,v.list=m,v.comment=e=>new l(e),v.atRule=e=>new u(e),v.decl=e=>new t(e),v.rule=e=>new h(e),v.root=e=>new g(e),v.document=e=>new s(e),v.CssSyntaxError=e,v.Declaration=t,v.Container=r,v.Processor=i,v.Document=s,v.Comment=l,v.Warning=c,v.AtRule=u,v.Result=d,v.Input=f,v.Rule=h,v.Root=g,v.Node=_,n.registerPostcss(v),xa=v,v.default=v,xa}var F=Ur(Ca());F.stringify,F.fromJSON,F.plugin,F.parse,F.list,F.document,F.comment,F.atRule,F.rule,F.decl,F.root,F.CssSyntaxError,F.Declaration,F.Container,F.Processor,F.Document,F.Comment,F.Warning,F.AtRule,F.Result,F.Input,F.Rule,F.Root,F.Node;var I=(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))(I||{});function wa(e){let t={},n=/;(?![^(]*\))/g,r=/:(.+)/;return e.replace(/\/\*.*?\*\//g,``).split(n).forEach(function(e){if(e){let n=e.split(r);n.length>1&&(t[Oa(n[0].trim())]=n[1].trim())}}),t}function Ta(e){let t=[];for(let n in e){let r=e[n];if(typeof r!=`string`)continue;let i=Aa(n);t.push(`${i}: ${r};`)}return t.join(` `)}var Ea=/-([a-z])/g,Da=/^--[a-zA-Z0-9-]+$/,Oa=e=>Da.test(e)?e:e.replace(Ea,(e,t)=>t?t.toUpperCase():``),ka=/\B([A-Z])/g,Aa=e=>e.replace(ka,`-$1`).toLowerCase(),ja=class e{constructor(...e){N(this,`parentElement`,null),N(this,`parentNode`,null),N(this,`ownerDocument`),N(this,`firstChild`,null),N(this,`lastChild`,null),N(this,`previousSibling`,null),N(this,`nextSibling`,null),N(this,`ELEMENT_NODE`,1),N(this,`TEXT_NODE`,3),N(this,`nodeType`),N(this,`nodeName`),N(this,`RRNodeType`)}get childNodes(){let e=[],t=this.firstChild;for(;t;)e.push(t),t=t.nextSibling;return e}contains(t){if(!(t instanceof e)||t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1}appendChild(e){throw Error(`RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.`)}insertBefore(e,t){throw Error(`RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.`)}removeChild(e){throw Error(`RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.`)}toString(){return`RRNode`}},Ma=class e extends ja{constructor(...e){super(e),N(this,`nodeType`,9),N(this,`nodeName`,`#document`),N(this,`compatMode`,`CSS1Compat`),N(this,`RRNodeType`,I.Document),N(this,`textContent`,null),this.ownerDocument=this}get documentElement(){return this.childNodes.find(e=>e.RRNodeType===I.Element&&e.tagName===`HTML`)||null}get body(){return this.documentElement?.childNodes.find(e=>e.RRNodeType===I.Element&&e.tagName===`BODY`)||null}get head(){return this.documentElement?.childNodes.find(e=>e.RRNodeType===I.Element&&e.tagName===`HEAD`)||null}get implementation(){return this}get firstElementChild(){return this.documentElement}appendChild(e){let t=e.RRNodeType;if((t===I.Element||t===I.DocumentType)&&this.childNodes.some(e=>e.RRNodeType===t))throw Error(`RRDomException: Failed to execute 'appendChild' on 'RRNode': Only one ${t===I.Element?`RRElement`:`RRDoctype`} on RRDocument allowed.`);let n=Va(this,e);return n.parentElement=null,n}insertBefore(e,t){let n=e.RRNodeType;if((n===I.Element||n===I.DocumentType)&&this.childNodes.some(e=>e.RRNodeType===n))throw Error(`RRDomException: Failed to execute 'insertBefore' on 'RRNode': Only one ${n===I.Element?`RRElement`:`RRDoctype`} on RRDocument allowed.`);let r=Ha(this,e,t);return r.parentElement=null,r}removeChild(e){return Ua(this,e)}open(){this.firstChild=null,this.lastChild=null}close(){}write(e){let t;if(e===`<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">`?t=`-//W3C//DTD XHTML 1.0 Transitional//EN`:e===`<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">`&&(t=`-//W3C//DTD HTML 4.0 Transitional//EN`),t){let e=this.createDocumentType(`html`,t,``);this.open(),this.appendChild(e)}}createDocument(t,n,r){return new e}createDocumentType(e,t,n){let r=new Na(e,t,n);return r.ownerDocument=this,r}createElement(e){let t=new Pa(e);return t.ownerDocument=this,t}createElementNS(e,t){return this.createElement(t)}createTextNode(e){let t=new La(e);return t.ownerDocument=this,t}createComment(e){let t=new Ra(e);return t.ownerDocument=this,t}createCDATASection(e){let t=new za(e);return t.ownerDocument=this,t}toString(){return`RRDocument`}},Na=class extends ja{constructor(e,t,n){super(),N(this,`nodeType`,10),N(this,`RRNodeType`,I.DocumentType),N(this,`name`),N(this,`publicId`),N(this,`systemId`),N(this,`textContent`,null),this.name=e,this.publicId=t,this.systemId=n,this.nodeName=e}toString(){return`RRDocumentType`}},Pa=class extends ja{constructor(e){super(),N(this,`nodeType`,1),N(this,`RRNodeType`,I.Element),N(this,`tagName`),N(this,`attributes`,{}),N(this,`shadowRoot`,null),N(this,`scrollLeft`),N(this,`scrollTop`),this.tagName=e.toUpperCase(),this.nodeName=e.toUpperCase()}get textContent(){let e=``;return this.childNodes.forEach(t=>e+=t.textContent),e}set textContent(e){this.firstChild=null,this.lastChild=null,this.appendChild(this.ownerDocument.createTextNode(e))}get classList(){return new Ba(this.attributes.class,e=>{this.attributes.class=e})}get id(){return this.attributes.id||``}get className(){return this.attributes.class||``}get style(){let e=this.attributes.style?wa(this.attributes.style):{},t=/\B([A-Z])/g;return e.setProperty=(n,r,i)=>{if(t.test(n))return;let a=Oa(n);r?e[a]=r:delete e[a],i===`important`&&(e[a]+=` !important`),this.attributes.style=Ta(e)},e.removeProperty=n=>{if(t.test(n))return``;let r=Oa(n),i=e[r]||``;return delete e[r],this.attributes.style=Ta(e),i},e}getAttribute(e){return this.attributes[e]===void 0?null:this.attributes[e]}setAttribute(e,t){this.attributes[e]=t}setAttributeNS(e,t,n){this.setAttribute(t,n)}removeAttribute(e){delete this.attributes[e]}appendChild(e){return Va(this,e)}insertBefore(e,t){return Ha(this,e,t)}removeChild(e){return Ua(this,e)}attachShadow(e){let t=this.ownerDocument.createElement(`SHADOWROOT`);return this.shadowRoot=t,t}dispatchEvent(e){return!0}toString(){let e=``;for(let t in this.attributes)e+=`${t}="${this.attributes[t]}" `;return`${this.tagName} ${e}`}},Fa=class extends Pa{constructor(){super(...arguments),N(this,`currentTime`),N(this,`volume`),N(this,`paused`),N(this,`muted`),N(this,`playbackRate`),N(this,`loop`)}attachShadow(e){throw Error(`RRDomException: Failed to execute 'attachShadow' on 'RRElement': This RRElement does not support attachShadow`)}play(){this.paused=!1}pause(){this.paused=!0}},Ia=class extends Pa{constructor(){super(...arguments),N(this,`tagName`,`DIALOG`),N(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`)}},La=class extends ja{constructor(e){super(),N(this,`nodeType`,3),N(this,`nodeName`,`#text`),N(this,`RRNodeType`,I.Text),N(this,`data`),this.data=e}get textContent(){return this.data}set textContent(e){this.data=e}toString(){return`RRText text=${JSON.stringify(this.data)}`}},Ra=class extends ja{constructor(e){super(),N(this,`nodeType`,8),N(this,`nodeName`,`#comment`),N(this,`RRNodeType`,I.Comment),N(this,`data`),this.data=e}get textContent(){return this.data}set textContent(e){this.data=e}toString(){return`RRComment text=${JSON.stringify(this.data)}`}},za=class extends ja{constructor(e){super(),N(this,`nodeName`,`#cdata-section`),N(this,`nodeType`,4),N(this,`RRNodeType`,I.CDATA),N(this,`data`),this.data=e}get textContent(){return this.data}set textContent(e){this.data=e}toString(){return`RRCDATASection data=${JSON.stringify(this.data)}`}},Ba=class{constructor(e,t){if(N(this,`onChange`),N(this,`classes`,[]),N(this,`add`,(...e)=>{for(let t of e){let e=String(t);this.classes.indexOf(e)>=0||this.classes.push(e)}this.onChange&&this.onChange(this.classes.join(` `))}),N(this,`remove`,(...e)=>{this.classes=this.classes.filter(t=>e.indexOf(t)===-1),this.onChange&&this.onChange(this.classes.join(` `))}),e){let t=e.trim().split(/\s+/);this.classes.push(...t)}this.onChange=t}};function Va(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 Ha(e,t,n){if(!n)return Va(e,t);if(n.parentNode!==e)throw 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===n?t:(t.parentNode&&t.parentNode.removeChild(t),t.previousSibling=n.previousSibling,n.previousSibling=t,t.nextSibling=n,t.previousSibling?t.previousSibling.nextSibling=t:e.firstChild=t,t.parentElement=e,t.parentNode=e,t.ownerDocument=e.ownerDocument,t)}function Ua(e,t){if(t.parentNode!==e)throw 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 Wa=(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))(Wa||{}),Ga={svg:`http://www.w3.org/2000/svg`,"xlink:href":`http://www.w3.org/1999/xlink`,xmlns:`http://www.w3.org/2000/xmlns/`},Ka={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`},qa=null;function Ja(e,t,n,r=t.mirror||t.ownerDocument.mirror){e=Ya(e,t,n,r),Qa(e,t,n,r),Xa(e,t,n)}function Ya(e,t,n,r){var i;if(n.afterAppend&&!qa&&(qa=new WeakSet,setTimeout(()=>{qa=null},0)),!eo(e,t)){let a=$a(t,n.mirror,r);(i=e.parentNode)==null||i.replaceChild(a,e),e=a}switch(t.RRNodeType){case I.Document:if(!to(e,t,n.mirror,r)){let i=r.getMeta(t);i&&(n.mirror.removeNodeFromMap(e),e.close(),e.open(),n.mirror.add(e,i),qa?.add(e))}break;case I.Element:{let i=e,a=t;switch(a.tagName){case`IFRAME`:{let i=e.contentDocument;if(!i)break;Ja(i,t.contentDocument,n,r);break}}a.shadowRoot&&(i.shadowRoot||i.attachShadow({mode:`open`}),Qa(i.shadowRoot,a.shadowRoot,n,r)),Za(i,a,r);break}}return e}function Xa(e,t,n){var r;switch(t.RRNodeType){case I.Document:{let e=t.scrollData;e&&n.applyScroll(e,!0);break}case I.Element:{let r=e,i=t;switch(i.scrollData&&n.applyScroll(i.scrollData,!0),i.inputData&&n.applyInput(i.inputData),i.tagName){case`AUDIO`:case`VIDEO`:{let t=e,n=i;n.paused!==void 0&&(n.paused?t.pause():t.play()),n.muted!==void 0&&(t.muted=n.muted),n.volume!==void 0&&(t.volume=n.volume),n.currentTime!==void 0&&(t.currentTime=n.currentTime),n.playbackRate!==void 0&&(t.playbackRate=n.playbackRate),n.loop!==void 0&&(t.loop=n.loop);break}case`CANVAS`:{let i=t;if(i.rr_dataURL!==null){let e=document.createElement(`img`);e.onload=()=>{let t=r.getContext(`2d`);t&&t.drawImage(e,0,0,e.width,e.height)},e.src=i.rr_dataURL}i.canvasMutations.forEach(t=>n.applyCanvas(t.event,t.mutation,e));break}case`STYLE`:{let e=r.sheet;e&&t.rules.forEach(t=>n.applyStyleSheetMutation(t,e));break}case`DIALOG`:{let e=r,t=i,n=e.open,a=e.matches(`dialog:modal`),o=t.open,s=t.isModal,c=a!==s,l=n!==o;if((c||n&&l)&&e.close(),o&&(l||c))try{s?e.showModal():e.show()}catch(e){console.warn(e)}break}}break}case I.Text:case I.Comment:case I.CDATA:e.textContent!==t.data&&(e.textContent=t.data)}qa?.has(e)&&(qa.delete(e),(r=n.afterAppend)==null||r.call(n,e,n.mirror.getId(e)))}function Za(e,t,n){let r=e.attributes,i=t.attributes;for(let r in i){let a=i[r];if(n.getMeta(t)?.isSVG&&Ga[r])e.setAttributeNS(Ga[r],r,a);else if(t.tagName===`CANVAS`&&r===`rr_dataURL`){let t=document.createElement(`img`);t.src=a,t.onload=()=>{let n=e.getContext(`2d`);n&&n.drawImage(t,0,0,t.width,t.height)}}else if(t.tagName===`IFRAME`&&r===`srcdoc`)continue;else try{e.setAttribute(r,a)}catch(e){console.warn(e)}}for(let{name:t}of Array.from(r))t in i||e.removeAttribute(t);t.scrollLeft&&(e.scrollLeft=t.scrollLeft),t.scrollTop&&(e.scrollTop=t.scrollTop)}function Qa(e,t,n,r){let i=Array.from(e.childNodes),a=t.childNodes;if(i.length===0&&a.length===0)return;let o=0,s=i.length-1,c=0,l=a.length-1,u=i[o],d=i[s],f=a[c],p=a[l],m,h;for(;o<=s&&c<=l;)if(u===void 0)u=i[++o];else if(d===void 0)d=i[--s];else if(to(u,f,n.mirror,r))u=i[++o],f=a[++c];else if(to(d,p,n.mirror,r))d=i[--s],p=a[--l];else if(to(u,p,n.mirror,r)){try{e.insertBefore(u,d.nextSibling)}catch(e){console.warn(e)}u=i[++o],p=a[--l]}else if(to(d,f,n.mirror,r)){try{e.insertBefore(d,u)}catch(e){console.warn(e)}d=i[--s],f=a[++c]}else{if(!m){m={};for(let e=o;e<=s;e++){let t=i[e];t&&n.mirror.hasNode(t)&&(m[n.mirror.getId(t)]=e)}}h=m[r.getId(f)];let t=i[h];if(h!==void 0&&t&&to(t,f,n.mirror,r)){try{e.insertBefore(t,u)}catch(e){console.warn(e)}i[h]=void 0}else{let t=$a(f,n.mirror,r);e.nodeName===`#document`&&u&&(t.nodeType===t.DOCUMENT_TYPE_NODE&&u.nodeType===u.DOCUMENT_TYPE_NODE||t.nodeType===t.ELEMENT_NODE&&u.nodeType===u.ELEMENT_NODE)&&(e.removeChild(u),n.mirror.removeNodeFromMap(u),u=i[++o]);try{e.insertBefore(t,u||null)}catch(e){console.warn(e)}}f=a[++c]}if(o>s){let t=a[l+1],i=null;for(t&&(i=n.mirror.getNode(r.getId(t)));c<=l;++c){let t=$a(a[c],n.mirror,r);try{e.insertBefore(t,i)}catch(e){console.warn(e)}}}else if(c>l)for(;o<=s;o++){let t=i[o];if(t&&t.parentNode===e)try{e.removeChild(t),n.mirror.removeNodeFromMap(t)}catch(e){console.warn(e)}}let g=e.firstChild,_=t.firstChild;for(;g!==null&&_!==null;)Ja(g,_,n,r),g=g.nextSibling,_=_.nextSibling}function $a(e,t,n){let r=n.getId(e),i=n.getMeta(e),a=null;if(r>-1&&(a=t.getNode(r)),a!==null&&eo(a,e))return a;switch(e.RRNodeType){case I.Document:a=new Document;break;case I.DocumentType:a=document.implementation.createDocumentType(e.name,e.publicId,e.systemId);break;case I.Element:{let t=e.tagName.toLowerCase();t=Ka[t]||t,a=i&&`isSVG`in i&&i?.isSVG?document.createElementNS(Ga.svg,t):document.createElement(e.tagName);break}case I.Text:a=document.createTextNode(e.data);break;case I.Comment:a=document.createComment(e.data);break;case I.CDATA:a=document.createCDATASection(e.data)}i&&t.add(a,{...i});try{qa?.add(a)}catch{}return a}function eo(e,t){return e.nodeType===t.nodeType?e.nodeType!==e.ELEMENT_NODE||e.tagName.toUpperCase()===t.tagName:!1}function to(e,t,n,r){let i=n.getId(e),a=r.getId(t);return i===-1||i!==a?!1:eo(e,t)}var no=class e extends Ma{constructor(e){super(),N(this,`UNSERIALIZED_STARTING_ID`,-2),N(this,`_unserializedId`,this.UNSERIALIZED_STARTING_ID),N(this,`mirror`,_o()),N(this,`scrollData`,null),e&&(this.mirror=e)}get unserializedId(){return this._unserializedId--}createDocument(t,n,r){return new e}createDocumentType(e,t,n){let r=new ro(e,t,n);return r.ownerDocument=this,r}createElement(e){let t=e.toUpperCase(),n;switch(t){case`AUDIO`:case`VIDEO`:n=new ao(t);break;case`IFRAME`:n=new lo(t,this.mirror);break;case`CANVAS`:n=new so(t);break;case`STYLE`:n=new co(t);break;case`DIALOG`:n=new oo(t);break;default:n=new io(t)}return n.ownerDocument=this,n}createComment(e){let t=new fo(e);return t.ownerDocument=this,t}createCDATASection(e){let t=new po(e);return t.ownerDocument=this,t}createTextNode(e){let t=new uo(e);return t.ownerDocument=this,t}destroyTree(){this.firstChild=null,this.lastChild=null,this.mirror.reset()}open(){super.open(),this._unserializedId=this.UNSERIALIZED_STARTING_ID}},ro=Na,io=class extends Pa{constructor(){super(...arguments),N(this,`inputData`,null),N(this,`scrollData`,null)}},ao=class extends Fa{},oo=class extends Ia{},so=class extends io{constructor(){super(...arguments),N(this,`rr_dataURL`,null),N(this,`canvasMutations`,[])}getContext(){return null}},co=class extends io{constructor(){super(...arguments),N(this,`rules`,[])}},lo=class extends io{constructor(e,t){super(e),N(this,`contentDocument`,new no),this.contentDocument.mirror=t}},uo=La,fo=Ra,po=za;function mo(e){return e instanceof HTMLFormElement?`FORM`:e.tagName.toUpperCase()}function ho(e,t,n,r){let i;switch(e.nodeType){case Wa.DOCUMENT_NODE:r&&r.nodeName===`IFRAME`?i=r.contentDocument:(i=t,i.compatMode=e.compatMode);break;case Wa.DOCUMENT_TYPE_NODE:{let n=e;i=t.createDocumentType(n.name,n.publicId,n.systemId);break}case Wa.ELEMENT_NODE:{let n=e,r=mo(n);i=t.createElement(r);let a=i;for(let{name:e,value:t}of Array.from(n.attributes))a.attributes[e]=t;n.scrollLeft&&(a.scrollLeft=n.scrollLeft),n.scrollTop&&(a.scrollTop=n.scrollTop);break}case Wa.TEXT_NODE:i=t.createTextNode(e.textContent||``);break;case Wa.CDATA_SECTION_NODE:i=t.createCDATASection(e.data);break;case Wa.COMMENT_NODE:i=t.createComment(e.textContent||``);break;case Wa.DOCUMENT_FRAGMENT_NODE:i=r.attachShadow({mode:`open`});break;default:return null}let a=n.getMeta(e);return t instanceof no&&(a||(a=yo(i,t.unserializedId),n.add(e,a)),t.mirror.add(i,{...a})),i}function go(e,t=Hr(),n=new no){function r(e,i){let a=ho(e,n,t,i);if(a!==null){if(i?.nodeName!==`IFRAME`&&e.nodeType!==Wa.DOCUMENT_FRAGMENT_NODE&&(i?.appendChild(a),a.parentNode=i,a.parentElement=i),e.nodeName===`IFRAME`){let t=e.contentDocument;t&&r(t,a)}else(e.nodeType===Wa.DOCUMENT_NODE||e.nodeType===Wa.ELEMENT_NODE||e.nodeType===Wa.DOCUMENT_FRAGMENT_NODE)&&(e.nodeType===Wa.ELEMENT_NODE&&e.shadowRoot&&r(e.shadowRoot,a),e.childNodes.forEach(e=>r(e,a)))}}return r(e,null),n}function _o(){return new vo}var vo=class{constructor(){N(this,`idNodeMap`,new Map),N(this,`nodeMetaMap`,new WeakMap)}getId(e){return e?this.getMeta(e)?.id??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){let t=this.getId(e);this.idNodeMap.delete(t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){let n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){let n=this.getNode(e);if(n){let e=this.nodeMetaMap.get(n);e&&this.nodeMetaMap.set(t,e)}this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function yo(e,t){switch(e.RRNodeType){case I.Document:return{id:t,type:e.RRNodeType,childNodes:[]};case I.DocumentType:{let n=e;return{id:t,type:e.RRNodeType,name:n.name,publicId:n.publicId,systemId:n.systemId}}case I.Element:return{id:t,type:e.RRNodeType,tagName:e.tagName.toLowerCase(),attributes:{},childNodes:[]};case I.Text:return{id:t,type:e.RRNodeType,textContent:e.textContent||``};case I.Comment:return{id:t,type:e.RRNodeType,textContent:e.textContent||``};case I.CDATA:return{id:t,type:e.RRNodeType,textContent:``}}}var bo={Node:[`childNodes`,`parentNode`,`parentElement`,`textContent`,`ownerDocument`,`firstChild`,`lastChild`,`nextSibling`,`previousSibling`],ShadowRoot:[`host`,`styleSheets`],Element:[`shadowRoot`,`querySelector`,`querySelectorAll`],MutationObserver:[]},xo={Node:[`contains`,`getRootNode`],ShadowRoot:[`getSelection`],Element:[],MutationObserver:[`constructor`]},So={},Co={},wo=()=>!!globalThis.Zone;function To(e){if(So[e])return So[e];let t=globalThis[e],n=t.prototype,r=e in bo?bo[e]:void 0,i=!!(r&&r.every(e=>!!(Object.getOwnPropertyDescriptor(n,e)?.get)?.toString().includes(`[native code]`))),a=e in xo?xo[e]:void 0,o=!!(a&&a.every(e=>typeof n[e]==`function`&&n[e]?.toString().includes(`[native code]`)));if(i&&o&&!wo())return So[e]=t.prototype,t.prototype;try{let r=document.createElement(`iframe`);r.style.display=`none`,document.body.appendChild(r);let i=r.contentWindow;if(!i)return t.prototype;let a=i[e].prototype;if(!a)return r.remove(),n;let o=navigator.userAgent;return o.includes(`Safari`)&&!o.includes(`Chrome`)?(r.classList.add(`rr-block`),r.setAttribute(`__rrwebUntaintedMutationObserver`,``),Co[e]=()=>r.remove()):r.remove(),So[e]=a}catch{return n}}var Eo={};function Do(e,t,n){let r=Eo[e]?.[n];if(r)return r.call(t);let i=To(e),a=Object.getOwnPropertyDescriptor(i,n)?.get;return a?((Eo[e]||(Eo[e]={}))[n]=a,a.call(t)):t[n]}var Oo={};function ko(e,t,n){let r=`${e}.${String(n)}`;if(Oo[r])return Oo[r].bind(t);let i=To(e)[n];return typeof i==`function`?(Oo[r]=i,i.bind(t)):t[n]}function Ao(e){return Do(`Node`,e,`ownerDocument`)}function jo(e){return Do(`Node`,e,`childNodes`)}function Mo(e){return Do(`Node`,e,`parentNode`)}function No(e){return Do(`Node`,e,`parentElement`)}function Po(e){return Do(`Node`,e,`textContent`)}function Fo(e){return Do(`Node`,e,`firstChild`)}function Io(e){return Do(`Node`,e,`lastChild`)}function Lo(e){return Do(`Node`,e,`nextSibling`)}function Ro(e){return Do(`Node`,e,`previousSibling`)}function zo(e,t){return ko(`Node`,e,`contains`)(t)}function Bo(e){return ko(`Node`,e,`getRootNode`)()}function Vo(e){return!e||!(`host`in e)?null:Do(`ShadowRoot`,e,`host`)}function Ho(e){return e.styleSheets}function Uo(e){return!e||!(`shadowRoot`in e)?null:Do(`Element`,e,`shadowRoot`)}function Wo(e,t){return Do(`Element`,e,`querySelector`)(t)}function Go(e,t){return Do(`Element`,e,`querySelectorAll`)(t)}function Ko(){return[To(`MutationObserver`).constructor,Co.MutationObserver??(()=>{})]}var L=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(L=()=>new Date().getTime());function R(e,t,n){try{if(!(t in e))return()=>{};let r=e[t],i=n(r);return typeof i==`function`&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}var z={ownerDocument:Ao,childNodes:jo,parentNode:Mo,parentElement:No,textContent:Po,firstChild:Fo,lastChild:Io,nextSibling:Lo,previousSibling:Ro,contains:zo,getRootNode:Bo,host:Vo,styleSheets:Ho,shadowRoot:Uo,querySelector:Wo,querySelectorAll:Go,nowTimestamp:L,mutationObserverCtor:Ko,patch:R};function qo(e,t,n=document){let r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}var Jo=`Please stop import mirror directly. Instead of that,\r
61
+ now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
62
+ or you can use record.mirror to access the mirror instance during recording.`,Yo={map:{},getId(){return console.error(Jo),-1},getNode(){return console.error(Jo),null},removeNodeFromMap(){console.error(Jo)},has(){return console.error(Jo),!1},reset(){console.error(Jo)}};typeof window<`u`&&window.Proxy&&window.Reflect&&(Yo=new Proxy(Yo,{get(e,t,n){return t===`map`&&console.error(Jo),Reflect.get(e,t,n)}}));function Xo(e,t,n={}){let r=null,i=0;return function(...a){let o=Date.now();!i&&n.leading===!1&&(i=o);let s=t-(o-i),c=this;s<=0||s>t?(r&&=(clearTimeout(r),null),i=o,e.apply(c,a)):!r&&n.trailing!==!1&&(r=setTimeout(()=>{i=n.leading===!1?0:Date.now(),r=null,e.apply(c,a)},s))}}function Zo(e,t,n,r,i=window){let a=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,r?n:{set(e){setTimeout(()=>{n.set.call(this,e)},0),a&&a.set&&a.set.call(this,e)}}),()=>Zo(e,t,a||{},!0)}function Qo(e){let t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset===void 0?t.documentElement.scrollLeft||t?.body&&z.parentElement(t.body)?.scrollLeft||t?.body?.scrollLeft||0:e.pageXOffset,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset===void 0?t?.documentElement.scrollTop||t?.body&&z.parentElement(t.body)?.scrollTop||t?.body?.scrollTop||0:e.pageYOffset}}function $o(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function es(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function ts(e){return e?e.nodeType===e.ELEMENT_NODE?e:z.parentElement(e):null}function ns(e,t,n,r){if(!e)return!1;let i=ts(e);if(!i)return!1;try{if(typeof t==`string`){if(i.classList.contains(t)||r&&i.closest(`.`+t)!==null)return!0}else if(xt(i,t,r))return!0}catch{}return!!(n&&(i.matches(n)||r&&i.closest(n)!==null))}function rs(e,t){return t.getId(e)!==-1}function is(e,t,n){return e.tagName===`TITLE`&&n.headTitleMutations?!0:t.getId(e)===ot}function as(e,t){if(Oe(e))return!1;let n=t.getId(e);if(!t.has(n))return!0;let r=z.parentNode(e);return r&&r.nodeType===e.DOCUMENT_NODE?!1:!r||as(r,t)}function os(e){return!!e.changedTouches}function ss(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 cs(e){let t={},n=(e,n)=>{let r={value:e,parent:n,children:[]};return t[e.node.id]=r,r},r=[];for(let i of e){let{nextId:e,parentId:a}=i;if(e&&e in t){let a=t[e];if(a.parent){let e=a.parent.children.indexOf(a);a.parent.children.splice(e,0,n(i,a.parent))}else{let e=r.indexOf(a);r.splice(e,0,n(i,null))}continue}if(a in t){let e=t[a];e.children.push(n(i,e));continue}r.push(n(i,null))}return r}function ls(e,t){t(e.value);for(let n=e.children.length-1;n>=0;n--)ls(e.children[n],t)}function us(e,t){return!!(e.nodeName===`IFRAME`&&t.getMeta(e))}function ds(e,t){return!!(e.nodeName===`LINK`&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute(`rel`)===`stylesheet`&&t.getMeta(e))}function fs(e,t){let n=e.ownerDocument?.defaultView?.frameElement;if(!n||n===t)return{x:0,y:0,relativeScale:1,absoluteScale:1};let r=n.getBoundingClientRect(),i=fs(n,t),a=r.height/n.clientHeight;return{x:r.x*i.relativeScale+i.x,y:r.y*i.relativeScale+i.y,relativeScale:a,absoluteScale:i.absoluteScale*a}}function ps(e){return e?e instanceof ja&&`shadowRoot`in e?!!e.shadowRoot:!!z.shadowRoot(e):!1}function ms(e,t){let n=e?.[t[0]];return n?t.length===1?n:ms(n.cssRules,t.slice(1)):null}function hs(e){let t=[...e];return{positions:t,index:t.pop()}}function gs(e){let t=new Set,n=[];for(let r=e.length;r--;){let i=e[r];t.has(i.id)||(n.push(i),t.add(i.id))}return n}var _s=class{constructor(){C(this,`id`,1),C(this,`styleIDMap`,new WeakMap),C(this,`idStyleMap`,new Map)}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=t===void 0?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}};function vs(e){let t=null;return`getRootNode`in e&&z.getRootNode(e)?.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&z.host(z.getRootNode(e))&&(t=z.host(z.getRootNode(e))),t}function ys(e){let t=e,n;for(;n=vs(t);)t=n;return t}function bs(e){let t=z.ownerDocument(e);if(!t)return!1;let n=ys(e);return z.contains(t,n)}function xs(e){let t=z.ownerDocument(e);return t?z.contains(t,e)||bs(e):!1}var B=(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))(B||{}),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))(V||{}),H=(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))(H||{}),Ss=(e=>(e[e.Mouse=0]=`Mouse`,e[e.Pen=1]=`Pen`,e[e.Touch=2]=`Touch`,e))(Ss||{}),Cs=(e=>(e[e[`2D`]=0]=`2D`,e[e.WebGL=1]=`WebGL`,e[e.WebGL2=2]=`WebGL2`,e))(Cs||{}),ws=(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))(ws||{}),U=(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))(U||{}),Ts=(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))(Ts||{}),Es=(e,t)=>`${e}@${t}`,Ds=class{constructor(){C(this,`frozen`,!1),C(this,`locked`,!1),C(this,`texts`,[]),C(this,`attributes`,[]),C(this,`attributeMap`,new WeakMap),C(this,`removes`,[]),C(this,`mapRemoves`,[]),C(this,`movedMap`,{}),C(this,`addedSet`,new Set),C(this,`movedSet`,new Set),C(this,`droppedSet`,new Set),C(this,`removesSubTreeCache`,new Set),C(this,`mutationCb`),C(this,`blockClass`),C(this,`blockSelector`),C(this,`maskTextClass`),C(this,`maskTextSelector`),C(this,`inlineStylesheet`),C(this,`maskInputOptions`),C(this,`maskTextFn`),C(this,`maskInputFn`),C(this,`keepIframeSrcFn`),C(this,`recordCanvas`),C(this,`inlineImages`),C(this,`slimDOMOptions`),C(this,`dataURLOptions`),C(this,`doc`),C(this,`mirror`),C(this,`iframeManager`),C(this,`stylesheetManager`),C(this,`shadowDomManager`),C(this,`canvasManager`),C(this,`processedNodeManager`),C(this,`unattachedDoc`),C(this,`processMutations`,e=>{e.forEach(this.processMutation),this.emit()}),C(this,`emit`,()=>{if(this.frozen||this.locked)return;let e=[],t=new Set;for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let e of this.movedSet){let t=z.parentNode(e);(!this.removesSubTreeCache.has(t)||this.movedSet.has(t))&&this.addedSet.add(e)}let n=null,r=null,i=-1,a=null,o=!1,s=new Set,c=this.addedSet.values(),l=c.next();for(;this.addedSet.size;){if(n!==null&&this.addedSet.has(z.previousSibling(n)))a=n,n=z.previousSibling(n);else{for(this.addedSet.has(l.value)||(l=c.next()),n=l.value;;){if(r=z.parentNode(n),this.addedSet.has(r)){n=r;continue}break}if(s.has(r))r=null;else if(r){if(xs(r)?(o=As(this.droppedSet,r)||this.removesSubTreeCache.has(r),o&&As(this.movedSet,n)&&(o=!1)):o=!0,this.addedSet.has(z.lastChild(r)))n=z.lastChild(r),a=null;else for(;;){if(a=z.nextSibling(n),this.addedSet.has(a)){n=a;continue}break}if(i=Oe(r)?this.mirror.getId(vs(n)):this.mirror.getId(r),i===-1&&r.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let e=z.host(r);i=this.mirror.getId(e)}}}if(this.addedSet.delete(n),!r||i===-1){s.add(n);continue}if(o){this.droppedSet.add(n);continue}let u=!1;if(n.nodeType===Node.TEXT_NODE){let e=r.tagName;if(e===`TEXTAREA`)continue;e===`STYLE`&&t.has(i)&&(u=!0)}let d=a?this.mirror.getId(a):null;for(;d===ot;)a&&=z.nextSibling(a),d=a&&this.mirror.getId(a);if(d===-1){console.warn(`Couldn't record new node. Couldn't find mirror id for nextSibling:`,a),n=null;continue}let f=jt(n,{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:e=>{us(e,this.mirror)&&this.iframeManager.addIframe(e),ds(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),ps(n)&&this.shadowDomManager.addShadowRoot(z.shadowRoot(n),this.doc)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)},cssCaptured:u});f&&(e.push({parentId:i,nextId:d,node:f}),t.add(f.id))}let u={texts:this.texts.map(e=>{let t=e.node,n=z.parentNode(t);return n&&n.tagName===`TEXTAREA`&&this.genTextAreaValueMutation(n),{id:this.mirror.getId(t),value:e.value}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{let{attributes:t}=e;if(typeof t.style==`string`){let n=JSON.stringify(e.styleDiff),r=JSON.stringify(e._unchangedStyles);n.length<t.style.length&&(n+r).split(`var(`).length===t.style.split(`var(`).length&&(t.style=e.styleDiff)}return{id:this.mirror.getId(e.node),attributes:t}}).filter(e=>!t.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:e};(u.texts.length||u.attributes.length||u.removes.length||u.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(u))}),C(this,`genTextAreaValueMutation`,e=>{let t=this.attributeMap.get(e);t||(t={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(t),this.attributeMap.set(e,t));let n=Array.from(z.childNodes(e),e=>z.textContent(e)||``).join(``);t.attributes.value=ze({element:e,maskInputOptions:this.maskInputOptions,tagName:e.tagName,type:We(e),value:n,maskInputFn:this.maskInputFn})}),C(this,`processMutation`,e=>{if(!is(e.target,this.mirror,this.slimDOMOptions))switch(e.type){case`characterData`:{let t=z.textContent(e.target);!ns(e.target,this.blockClass,this.blockSelector,!1)&&t!==e.oldValue&&this.texts.push({value:St(e.target,this.maskTextClass,this.maskTextSelector,!0)&&t?this.maskTextFn?this.maskTextFn(t,ts(e.target)):t.replace(/[\S]/g,`*`):t,node:e.target});break}case`attributes`:{let t=e.target,n=Be(t.tagName),r=e.attributeName,i=e.target.getAttribute(r);if(r===`value`){let e=We(t);i=ze({element:t,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:e,value:i,maskInputFn:this.maskInputFn})}if(ns(e.target,this.blockClass,this.blockSelector,!1)||i===e.oldValue)return;let a=this.attributeMap.get(e.target);if(n===`iframe`&&r===`src`&&!this.keepIframeSrcFn(i)){if(!t.contentDocument)r=`rr_src`;else return}if(a||(a={node:e.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(a),this.attributeMap.set(e.target,a)),r===`type`&&n===`input`&&(e.oldValue||``).toLowerCase()===`password`&&t.setAttribute(`data-rr-is-password`,`true`),!yt(n,r)){if(a.attributes[r]=vt(this.doc,n,Be(r),i),r===`style`){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}let n=this.unattachedDoc.createElement(`span`);e.oldValue&&n.setAttribute(`style`,e.oldValue);for(let e of Array.from(t.style)){let r=t.style.getPropertyValue(e),i=t.style.getPropertyPriority(e);r!==n.style.getPropertyValue(e)||i!==n.style.getPropertyPriority(e)?i===``?a.styleDiff[e]=r:a.styleDiff[e]=[r,i]:a._unchangedStyles[e]=[r,i]}for(let e of Array.from(n.style))t.style.getPropertyValue(e)===``&&(a.styleDiff[e]=!1)}else r===`open`&&t.tagName===`DIALOG`&&(t.matches(`dialog:modal`)?a.attributes.rr_open_mode=`modal`:a.attributes.rr_open_mode=`non-modal`)}break}case`childList`:if(ns(e.target,this.blockClass,this.blockSelector,!0))return;if(e.target.tagName===`TEXTAREA`){this.genTextAreaValueMutation(e.target);return}e.addedNodes.forEach(t=>this.genAdds(t,e.target)),e.removedNodes.forEach(t=>{let n=this.mirror.getId(t),r=Oe(e.target)?this.mirror.getId(z.host(e.target)):this.mirror.getId(e.target);ns(e.target,this.blockClass,this.blockSelector,!1)||is(t,this.mirror,this.slimDOMOptions)||!rs(t,this.mirror)||(this.addedSet.has(t)?(Os(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(e.target)&&n===-1||as(e.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[Es(n,r)]?Os(this.movedSet,t):(this.removes.push({parentId:r,id:n,isShadow:Oe(e.target)&&ke(e.target)?!0:void 0}),ks(t,this.removesSubTreeCache))),this.mapRemoves.push(t))})}}),C(this,`genAdds`,(e,t)=>{if(!this.processedNodeManager.inOtherBuffer(e,this)&&!(this.addedSet.has(e)||this.movedSet.has(e))){if(this.mirror.hasNode(e)){if(is(e,this.mirror,this.slimDOMOptions))return;this.movedSet.add(e);let n=null;t&&this.mirror.hasNode(t)&&(n=this.mirror.getId(t)),n&&n!==-1&&(this.movedMap[Es(this.mirror.getId(e),n)]=!0)}else this.addedSet.add(e),this.droppedSet.delete(e);ns(e,this.blockClass,this.blockSelector,!1)||(z.childNodes(e).forEach(e=>this.genAdds(e)),ps(e)&&z.childNodes(z.shadowRoot(e)).forEach(t=>{this.processedNodeManager.add(t,this),this.genAdds(t,e)}))}})}init(e){[`mutationCb`,`blockClass`,`blockSelector`,`maskTextClass`,`maskTextSelector`,`inlineStylesheet`,`maskInputOptions`,`maskTextFn`,`maskInputFn`,`keepIframeSrcFn`,`recordCanvas`,`inlineImages`,`slimDOMOptions`,`dataURLOptions`,`doc`,`mirror`,`iframeManager`,`stylesheetManager`,`shadowDomManager`,`canvasManager`,`processedNodeManager`].forEach(t=>{this[t]=e[t]})}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 Os(e,t){e.delete(t),z.childNodes(t).forEach(t=>Os(e,t))}function ks(e,t){let n=[e];for(;n.length;){let e=n.pop();t.has(e)||(t.add(e),z.childNodes(e).forEach(e=>n.push(e)))}}function As(e,t){return e.size!==0&&js(e,t)}function js(e,t){if(e.has(t))return!0;let n=z.parentNode(t);return n?js(e,n):!1}var Ms;function Ns(e){Ms=e}function Ps(){Ms=void 0}var W=e=>Ms?(...t)=>{try{return e(...t)}catch(e){if(Ms&&Ms(e)===!0)return;throw e}}:e,Fs=[];function Is(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 Ls(e,t){let n=new Ds;Fs.push(n),n.init(e);let[r,i]=Ko(),a=new r(W(n.processMutations.bind(n)));return a.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),[a,i]}function Rs({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(t.mousemove===!1)return()=>{};let i=typeof t.mousemove==`number`?t.mousemove:50,a=typeof t.mousemoveCallback==`number`?t.mousemoveCallback:500,o=[],s,c=Xo(W(t=>{let n=Date.now()-s;e(o.map(e=>(e.timeOffset-=n,e)),t),o=[],s=null}),a),l=W(Xo(W(e=>{let t=Is(e),{clientX:n,clientY:i}=os(e)?e.changedTouches[0]:e;s||=L(),o.push({x:n,y:i,id:r.getId(t),timeOffset:L()-s}),c(typeof DragEvent<`u`&&e instanceof DragEvent?V.Drag:e instanceof MouseEvent?V.MouseMove:V.TouchMove)}),i,{trailing:!1})),u=[qo(`mousemove`,l,n),qo(`touchmove`,l,n),qo(`drag`,l,n)];return W(()=>{u.forEach(e=>e())})}function zs({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,sampling:a}){if(a.mouseInteraction===!1)return()=>{};let o=a.mouseInteraction===!0||a.mouseInteraction===void 0?{}:a.mouseInteraction,s=[],c=null,l=t=>a=>{let o=Is(a);if(ns(o,r,i,!0))return;let s=null,l=t;if(`pointerType`in a){switch(a.pointerType){case`mouse`:s=Ss.Mouse;break;case`touch`:s=Ss.Touch;break;case`pen`:s=Ss.Pen}s===Ss.Touch?H[t]===H.MouseDown?l=`TouchStart`:H[t]===H.MouseUp&&(l=`TouchEnd`):Ss.Pen}else os(a)&&(s=Ss.Touch);s===null?H[t]===H.Click&&(s=c,c=null):(c=s,(l.startsWith(`Touch`)&&s===Ss.Touch||l.startsWith(`Mouse`)&&s===Ss.Mouse)&&(s=null));let u=os(a)?a.changedTouches[0]:a;if(!u)return;let d=n.getId(o),{clientX:f,clientY:p}=u;W(e)({type:H[l],id:d,x:f,y:p,...s!==null&&{pointerType:s}})};return Object.keys(H).filter(e=>Number.isNaN(Number(e))&&!e.endsWith(`_Departed`)&&o[e]!==!1).forEach(e=>{let n=Be(e),r=l(e);if(window.PointerEvent)switch(H[e]){case H.MouseDown:case H.MouseUp:n=n.replace(`mouse`,`pointer`);break;case H.TouchStart:case H.TouchEnd:return}s.push(qo(n,r,t))}),W(()=>{s.forEach(e=>e())})}function Bs({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,sampling:a}){return qo(`scroll`,W(Xo(W(a=>{let o=Is(a);if(!o||ns(o,r,i,!0))return;let s=n.getId(o);if(o===t&&t.defaultView){let n=Qo(t.defaultView);e({id:s,x:n.left,y:n.top})}else e({id:s,x:o.scrollLeft,y:o.scrollTop})}),a.scroll||100)),t)}function Vs({viewportResizeCb:e},{win:t}){let n=-1,r=-1;return qo(`resize`,W(Xo(W(()=>{let t=$o(),i=es();(n!==t||r!==i)&&(e({width:Number(i),height:Number(t)}),n=t,r=i)}),200)),t)}var Hs=[`INPUT`,`TEXTAREA`,`SELECT`],Us=new WeakMap;function Ws({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,ignoreClass:a,ignoreSelector:o,maskInputOptions:s,maskInputFn:c,sampling:l,userTriggeredOnInput:u}){function d(e){let n=Is(e),l=e.isTrusted,d=n&&n.tagName;if(n&&d===`OPTION`&&(n=z.parentElement(n)),!n||!d||Hs.indexOf(d)<0||ns(n,r,i,!0)||n.classList.contains(a)||o&&n.matches(o))return;let p=n.value,m=!1,h=We(n)||``;h===`radio`||h===`checkbox`?m=n.checked:(s[d.toLowerCase()]||s[h])&&(p=ze({element:n,maskInputOptions:s,tagName:d,type:h,value:p,maskInputFn:c})),f(n,u?{text:p,isChecked:m,userTriggered:l}:{text:p,isChecked:m});let g=n.name;h===`radio`&&g&&m&&t.querySelectorAll(`input[type="radio"][name="${g}"]`).forEach(e=>{if(e!==n){let t=e.value;f(e,u?{text:t,isChecked:!m,userTriggered:!1}:{text:t,isChecked:!m})}})}function f(t,r){let i=Us.get(t);if(!i||i.text!==r.text||i.isChecked!==r.isChecked){Us.set(t,r);let i=n.getId(t);W(e)({...r,id:i})}}let p=(l.input===`last`?[`change`]:[`input`,`change`]).map(e=>qo(e,W(d),t)),m=t.defaultView;if(!m)return()=>{p.forEach(e=>e())};let h=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 h&&h.set&&p.push(...g.map(e=>Zo(e[0],e[1],{set(){W(d)({target:this,isTrusted:!1})}},!1,m))),W(()=>{p.forEach(e=>e())})}function Gs(e){let t=[];function n(e,t){if(nc(`CSSGroupingRule`)&&e.parentRule instanceof CSSGroupingRule||nc(`CSSMediaRule`)&&e.parentRule instanceof CSSMediaRule||nc(`CSSSupportsRule`)&&e.parentRule instanceof CSSSupportsRule||nc(`CSSConditionRule`)&&e.parentRule instanceof CSSConditionRule){let r=Array.from(e.parentRule.cssRules).indexOf(e);return t.unshift(r),n(e.parentRule,t)}if(e.parentStyleSheet){let n=Array.from(e.parentStyleSheet.cssRules).indexOf(e);t.unshift(n)}return t}return n(e,t)}function Ks(e,t,n){let r,i;return e?(e.ownerNode?r=t.getId(e.ownerNode):i=n.getId(e),{styleId:i,id:r}):{}}function qs({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};let i=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(i,{apply:W((r,i,a)=>{let[o,s]=a,{id:c,styleId:l}=Ks(i,t,n.styleMirror);return(c&&c!==-1||l&&l!==-1)&&e({id:c,styleId:l,adds:[{rule:o,index:s}]}),r.apply(i,a)})}),r.CSSStyleSheet.prototype.addRule=function(e,t,n=this.cssRules.length){let i=`${e} { ${t} }`;return r.CSSStyleSheet.prototype.insertRule.apply(this,[i,n])};let a=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(a,{apply:W((r,i,a)=>{let[o]=a,{id:s,styleId:c}=Ks(i,t,n.styleMirror);return(s&&s!==-1||c&&c!==-1)&&e({id:s,styleId:c,removes:[{index:o}]}),r.apply(i,a)})}),r.CSSStyleSheet.prototype.removeRule=function(e){return r.CSSStyleSheet.prototype.deleteRule.apply(this,[e])};let o;r.CSSStyleSheet.prototype.replace&&(o=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(o,{apply:W((r,i,a)=>{let[o]=a,{id:s,styleId:c}=Ks(i,t,n.styleMirror);return(s&&s!==-1||c&&c!==-1)&&e({id:s,styleId:c,replace:o}),r.apply(i,a)})}));let s;r.CSSStyleSheet.prototype.replaceSync&&(s=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(s,{apply:W((r,i,a)=>{let[o]=a,{id:s,styleId:c}=Ks(i,t,n.styleMirror);return(s&&s!==-1||c&&c!==-1)&&e({id:s,styleId:c,replaceSync:o}),r.apply(i,a)})}));let c={};rc(`CSSGroupingRule`)?c.CSSGroupingRule=r.CSSGroupingRule:(rc(`CSSMediaRule`)&&(c.CSSMediaRule=r.CSSMediaRule),rc(`CSSConditionRule`)&&(c.CSSConditionRule=r.CSSConditionRule),rc(`CSSSupportsRule`)&&(c.CSSSupportsRule=r.CSSSupportsRule));let l={};return Object.entries(c).forEach(([r,i])=>{l[r]={insertRule:i.prototype.insertRule,deleteRule:i.prototype.deleteRule},i.prototype.insertRule=new Proxy(l[r].insertRule,{apply:W((r,i,a)=>{let[o,s]=a,{id:c,styleId:l}=Ks(i.parentStyleSheet,t,n.styleMirror);return(c&&c!==-1||l&&l!==-1)&&e({id:c,styleId:l,adds:[{rule:o,index:[...Gs(i),s||0]}]}),r.apply(i,a)})}),i.prototype.deleteRule=new Proxy(l[r].deleteRule,{apply:W((r,i,a)=>{let[o]=a,{id:s,styleId:c}=Ks(i.parentStyleSheet,t,n.styleMirror);return(s&&s!==-1||c&&c!==-1)&&e({id:s,styleId:c,removes:[{index:[...Gs(i),o]}]}),r.apply(i,a)})})}),W(()=>{r.CSSStyleSheet.prototype.insertRule=i,r.CSSStyleSheet.prototype.deleteRule=a,o&&(r.CSSStyleSheet.prototype.replace=o),s&&(r.CSSStyleSheet.prototype.replaceSync=s),Object.entries(c).forEach(([e,t])=>{t.prototype.insertRule=l[e].insertRule,t.prototype.deleteRule=l[e].deleteRule})})}function Js({mirror:e,stylesheetManager:t},n){let r=null;r=n.nodeName===`#document`?e.getId(n):e.getId(z.host(n));let i=n.nodeName===`#document`?n.defaultView?.Document:n.ownerDocument?.defaultView?.ShadowRoot,a=i?.prototype?Object.getOwnPropertyDescriptor(i?.prototype,`adoptedStyleSheets`):void 0;return r===null||r===-1||!i||!a?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get(){return a.get?.call(this)},set(e){let n=a.set?.call(this,e);if(r!==null&&r!==-1)try{t.adoptStyleSheets(e,r)}catch{}return n}}),W(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:a.configurable,enumerable:a.enumerable,get:a.get,set:a.set})}))}function Ys({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:i}){let a=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(a,{apply:W((i,o,s)=>{let[c,l,u]=s;if(n.has(c))return a.apply(o,[c,l,u]);let{id:d,styleId:f}=Ks(o.parentRule?.parentStyleSheet,t,r.styleMirror);return(d&&d!==-1||f&&f!==-1)&&e({id:d,styleId:f,set:{property:c,value:l,priority:u},index:Gs(o.parentRule)}),i.apply(o,s)})});let o=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(o,{apply:W((i,a,s)=>{let[c]=s;if(n.has(c))return o.apply(a,[c]);let{id:l,styleId:u}=Ks(a.parentRule?.parentStyleSheet,t,r.styleMirror);return(l&&l!==-1||u&&u!==-1)&&e({id:l,styleId:u,remove:{property:c},index:Gs(a.parentRule)}),i.apply(a,s)})}),W(()=>{i.CSSStyleDeclaration.prototype.setProperty=a,i.CSSStyleDeclaration.prototype.removeProperty=o})}function Xs({mediaInteractionCb:e,blockClass:t,blockSelector:n,mirror:r,sampling:i,doc:a}){let o=W(a=>Xo(W(i=>{let o=Is(i);if(!o||ns(o,t,n,!0))return;let{currentTime:s,volume:c,muted:l,playbackRate:u,loop:d}=o;e({type:a,id:r.getId(o),currentTime:s,volume:c,muted:l,playbackRate:u,loop:d})}),i.media||500)),s=[qo(`play`,o(ws.Play),a),qo(`pause`,o(ws.Pause),a),qo(`seeked`,o(ws.Seeked),a),qo(`volumechange`,o(ws.VolumeChange),a),qo(`ratechange`,o(ws.RateChange),a)];return W(()=>{s.forEach(e=>e())})}function Zs({fontCb:e,doc:t}){let n=t.defaultView;if(!n)return()=>{};let r=[],i=new WeakMap,a=n.FontFace;n.FontFace=function(e,t,n){let r=new a(e,t,n);return i.set(r,{family:e,buffer:typeof t!=`string`,descriptors:n,fontSource:typeof t==`string`?t:JSON.stringify(Array.from(new Uint8Array(t)))}),r};let o=R(t.fonts,`add`,function(t){return function(n){return setTimeout(W(()=>{let t=i.get(n);t&&(e(t),i.delete(n))}),0),t.apply(this,[n])}});return r.push(()=>{n.FontFace=a}),r.push(o),W(()=>{r.forEach(e=>e())})}function Qs(e){let{doc:t,mirror:n,blockClass:r,blockSelector:i,selectionCb:a}=e,o=!0,s=W(()=>{let e=t.getSelection();if(!e||o&&e?.isCollapsed)return;o=e.isCollapsed||!1;let s=[],c=e.rangeCount||0;for(let t=0;t<c;t++){let{startContainer:a,startOffset:o,endContainer:c,endOffset:l}=e.getRangeAt(t);ns(a,r,i,!0)||ns(c,r,i,!0)||s.push({start:n.getId(a),startOffset:o,end:n.getId(c),endOffset:l})}a({ranges:s})});return s(),qo(`selectionchange`,s)}function $s({doc:e,customElementCb:t}){let n=e.defaultView;return!n||!n.customElements?()=>{}:R(n.customElements,`define`,function(e){return function(n,r,i){try{t({define:{name:n}})}catch{console.warn(`Custom element callback failed for ${n}`)}return e.apply(this,[n,r,i])}})}function ec(e,t){let{mutationCb:n,mousemoveCb:r,mouseInteractionCb:i,scrollCb:a,viewportResizeCb:o,inputCb:s,mediaInteractionCb:c,styleSheetRuleCb:l,styleDeclarationCb:u,canvasMutationCb:d,fontCb:f,selectionCb:p,customElementCb:m}=e;e.mutationCb=(...e)=>{t.mutation&&t.mutation(...e),n(...e)},e.mousemoveCb=(...e)=>{t.mousemove&&t.mousemove(...e),r(...e)},e.mouseInteractionCb=(...e)=>{t.mouseInteraction&&t.mouseInteraction(...e),i(...e)},e.scrollCb=(...e)=>{t.scroll&&t.scroll(...e),a(...e)},e.viewportResizeCb=(...e)=>{t.viewportResize&&t.viewportResize(...e),o(...e)},e.inputCb=(...e)=>{t.input&&t.input(...e),s(...e)},e.mediaInteractionCb=(...e)=>{t.mediaInteaction&&t.mediaInteaction(...e),c(...e)},e.styleSheetRuleCb=(...e)=>{t.styleSheetRule&&t.styleSheetRule(...e),l(...e)},e.styleDeclarationCb=(...e)=>{t.styleDeclaration&&t.styleDeclaration(...e),u(...e)},e.canvasMutationCb=(...e)=>{t.canvasMutation&&t.canvasMutation(...e),d(...e)},e.fontCb=(...e)=>{t.font&&t.font(...e),f(...e)},e.selectionCb=(...e)=>{t.selection&&t.selection(...e),p(...e)},e.customElementCb=(...e)=>{t.customElement&&t.customElement(...e),m(...e)}}function tc(e,t={}){let n=e.doc.defaultView;if(!n)return()=>{};ec(e,t);let r,i=()=>{};e.recordDOM&&([r,i]=Ls(e,e.doc));let a=Rs(e),o=zs(e),s=Bs(e),c=Vs(e,{win:n}),l=Ws(e),u=Xs(e),d=()=>{},f=()=>{},p=()=>{},m=()=>{};e.recordDOM&&(d=qs(e,{win:n}),f=Js(e,e.doc),p=Ys(e,{win:n}),e.collectFonts&&(m=Zs(e)));let h=Qs(e),g=$s(e),_=[];for(let t of e.plugins)_.push(t.observer(t.callback,n,t.options));return W(()=>{Fs.forEach(e=>e.reset()),r?.disconnect(),i(),a(),o(),s(),c(),l(),u(),d(),f(),p(),m(),h(),g(),_.forEach(e=>e())})}function nc(e){return window[e]!==void 0}function rc(e){return!!(window[e]!==void 0&&window[e].prototype&&`insertRule`in window[e].prototype&&`deleteRule`in window[e].prototype)}for(var ic=class{constructor(e){C(this,`iframeIdToRemoteIdMap`,new WeakMap),C(this,`iframeRemoteIdToIdMap`,new WeakMap),this.generateIdFn=e}getId(e,t,n,r){let i=n||this.getIdToRemoteIdMap(e),a=r||this.getRemoteIdToIdMap(e),o=i.get(t);return o||(o=this.generateIdFn(),i.set(t,o),a.set(o,t)),o}getIds(e,t){let n=this.getIdToRemoteIdMap(e),r=this.getRemoteIdToIdMap(e);return t.map(t=>this.getId(e,t,n,r))}getRemoteId(e,t,n){let r=n||this.getRemoteIdToIdMap(e);return typeof t==`number`?r.get(t)||-1:t}getRemoteIds(e,t){let n=this.getRemoteIdToIdMap(e);return t.map(t=>this.getRemoteId(e,t,n))}reset(e){if(!e){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(e),this.iframeRemoteIdToIdMap.delete(e)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}},ac=class{constructor(e){C(this,`iframes`,new WeakMap),C(this,`crossOriginIframeMap`,new WeakMap),C(this,`crossOriginIframeMirror`,new ic(st)),C(this,`crossOriginIframeStyleMirror`),C(this,`crossOriginIframeRootIdMap`,new WeakMap),C(this,`mirror`),C(this,`mutationCb`),C(this,`wrappedEmit`),C(this,`loadListener`),C(this,`stylesheetManager`),C(this,`recordCrossOriginIframes`),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new ic(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener(`message`,this.handleMessage.bind(this))}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e)}addLoadListener(e){this.loadListener=e}attachIframe(e,t){var n,r;this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((n=e.contentWindow)==null||n.addEventListener(`message`,this.handleMessage.bind(this))),(r=this.loadListener)==null||r.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&e.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){let t=e;if(t.data.type!==`rrweb`||t.origin!==t.data.origin||!e.source)return;let n=this.crossOriginIframeMap.get(e.source);if(!n)return;let r=this.transformCrossOriginEvent(n,t.data.event);r&&this.wrappedEmit(r,t.data.isCheckout)}transformCrossOriginEvent(e,t){var n;switch(t.type){case B.FullSnapshot:{this.crossOriginIframeMirror.reset(e),this.crossOriginIframeStyleMirror.reset(e),this.replaceIdOnNode(t.data.node,e);let n=t.data.node.id;return this.crossOriginIframeRootIdMap.set(e,n),this.patchRootIdOnNode(t.data.node,n),{timestamp:t.timestamp,type:B.IncrementalSnapshot,data:{source:V.Mutation,adds:[{parentId:this.mirror.getId(e),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case B.Meta:case B.Load:case B.DomContentLoaded:return!1;case B.Plugin:return t;case B.Custom:return this.replaceIds(t.data.payload,e,[`id`,`parentId`,`previousId`,`nextId`]),t;case B.IncrementalSnapshot:switch(t.data.source){case V.Mutation:return t.data.adds.forEach(t=>{this.replaceIds(t,e,[`parentId`,`nextId`,`previousId`]),this.replaceIdOnNode(t.node,e);let n=this.crossOriginIframeRootIdMap.get(e);n&&this.patchRootIdOnNode(t.node,n)}),t.data.removes.forEach(t=>{this.replaceIds(t,e,[`parentId`,`id`])}),t.data.attributes.forEach(t=>{this.replaceIds(t,e,[`id`])}),t.data.texts.forEach(t=>{this.replaceIds(t,e,[`id`])}),t;case V.Drag:case V.TouchMove:case V.MouseMove:return t.data.positions.forEach(t=>{this.replaceIds(t,e,[`id`])}),t;case V.ViewportResize:return!1;case V.MediaInteraction:case V.MouseInteraction:case V.Scroll:case V.CanvasMutation:case V.Input:return this.replaceIds(t.data,e,[`id`]),t;case V.StyleSheetRule:case V.StyleDeclaration:return this.replaceIds(t.data,e,[`id`]),this.replaceStyleIds(t.data,e,[`styleId`]),t;case V.Font:return t;case V.Selection:return t.data.ranges.forEach(t=>{this.replaceIds(t,e,[`start`,`end`])}),t;case V.AdoptedStyleSheet:return this.replaceIds(t.data,e,[`id`]),this.replaceStyleIds(t.data,e,[`styleIds`]),(n=t.data.styles)==null||n.forEach(t=>{this.replaceStyleIds(t,e,[`styleId`])}),t}}return!1}replace(e,t,n,r){for(let i of r)(Array.isArray(t[i])||typeof t[i]==`number`)&&(t[i]=Array.isArray(t[i])?e.getIds(n,t[i]):e.getId(n,t[i]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,[`id`,`rootId`]),`childNodes`in e&&e.childNodes.forEach(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type!==Ts.Document&&!e.rootId&&(e.rootId=t),`childNodes`in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}},oc=class{constructor(e){C(this,`shadowDoms`,new WeakSet),C(this,`mutationCb`),C(this,`scrollCb`),C(this,`bypassOptions`),C(this,`mirror`),C(this,`restoreHandlers`,[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(!ke(e)||this.shadowDoms.has(e))return;this.shadowDoms.add(e);let[n]=Ls({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(Bs({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),setTimeout(()=>{e.adoptedStyleSheets&&e.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(z.host(e))),this.restoreHandlers.push(Js({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,t){let n=this;this.restoreHandlers.push(R(e.prototype,`attachShadow`,function(e){return function(r){let i=e.call(this,r),a=z.shadowRoot(this);return a&&xs(this)&&n.addShadowRoot(a,t),i}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}},sc=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,cc=typeof Uint8Array>`u`?[]:new Uint8Array(256),lc=0;lc<sc.length;lc++)cc[sc.charCodeAt(lc)]=lc;var uc=function(e){var t=new Uint8Array(e),n,r=t.length,i=``;for(n=0;n<r;n+=3)i+=sc[t[n]>>2],i+=sc[(t[n]&3)<<4|t[n+1]>>4],i+=sc[(t[n+1]&15)<<2|t[n+2]>>6],i+=sc[t[n+2]&63];return r%3==2?i=i.substring(0,i.length-1)+`=`:r%3==1&&(i=i.substring(0,i.length-2)+`==`),i},dc=function(e){var t=e.length*.75,n=e.length,r,i=0,a,o,s,c;e[e.length-1]===`=`&&(t--,e[e.length-2]===`=`&&t--);var l=new ArrayBuffer(t),u=new Uint8Array(l);for(r=0;r<n;r+=4)a=cc[e.charCodeAt(r)],o=cc[e.charCodeAt(r+1)],s=cc[e.charCodeAt(r+2)],c=cc[e.charCodeAt(r+3)],u[i++]=a<<2|o>>4,u[i++]=(o&15)<<4|s>>2,u[i++]=(s&3)<<6|c&63;return l},fc=new Map;function pc(e,t){let n=fc.get(e);return n||(n=new Map,fc.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}var mc=(e,t,n)=>{if(!e||!(_c(e,t)||typeof e==`object`))return;let r=e.constructor.name,i=pc(n,r),a=i.indexOf(e);return a===-1&&(a=i.length,i.push(e)),a};function hc(e,t,n){if(e instanceof Array)return e.map(e=>hc(e,t,n));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)return{rr_type:e.constructor.name,base64:uc(e)};if(e instanceof DataView)return{rr_type:e.constructor.name,args:[hc(e.buffer,t,n),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){let t=e.constructor.name,{src:n}=e;return{rr_type:t,src:n}}return e instanceof HTMLCanvasElement?{rr_type:`HTMLImageElement`,src:e.toDataURL()}:e instanceof ImageData?{rr_type:e.constructor.name,args:[hc(e.data,t,n),e.width,e.height]}:_c(e,t)||typeof e==`object`?{rr_type:e.constructor.name,index:mc(e,t,n)}:e}var gc=(e,t,n)=>e.map(e=>hc(e,t,n)),_c=(e,t)=>!![`WebGLActiveInfo`,`WebGLBuffer`,`WebGLFramebuffer`,`WebGLProgram`,`WebGLRenderbuffer`,`WebGLShader`,`WebGLShaderPrecisionFormat`,`WebGLTexture`,`WebGLUniformLocation`,`WebGLVertexArrayObject`,`WebGLVertexArrayObjectOES`].filter(e=>typeof t[e]==`function`).find(n=>e instanceof t[n]);function vc(e,t,n,r){let i=[],a=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(let o of a)try{if(typeof t.CanvasRenderingContext2D.prototype[o]!=`function`)continue;let a=R(t.CanvasRenderingContext2D.prototype,o,function(i){return function(...a){return ns(this.canvas,n,r,!0)||setTimeout(()=>{let n=gc(a,t,this);e(this.canvas,{type:Cs[`2D`],property:o,args:n})},0),i.apply(this,a)}});i.push(a)}catch{let n=Zo(t.CanvasRenderingContext2D.prototype,o,{set(t){e(this.canvas,{type:Cs[`2D`],property:o,args:[t],setter:!0})}});i.push(n)}return()=>{i.forEach(e=>e())}}function yc(e){return e===`experimental-webgl`?`webgl`:e}function bc(e,t,n,r){let i=[];try{let a=R(e.HTMLCanvasElement.prototype,`getContext`,function(e){return function(i,...a){if(!ns(this,t,n,!0)){let e=yc(i);if(`__context`in this||(this.__context=e),r&&[`webgl`,`webgl2`].includes(e)){if(a[0]&&typeof a[0]==`object`){let e=a[0];e.preserveDrawingBuffer||=!0}else a.splice(0,1,{preserveDrawingBuffer:!0})}}return e.apply(this,[i,...a])}});i.push(a)}catch{console.error(`failed to patch HTMLCanvasElement.prototype.getContext`)}return()=>{i.forEach(e=>e())}}function xc(e,t,n,r,i,a){let o=[],s=Object.getOwnPropertyNames(e);for(let c of s)if(![`isContextLost`,`canvas`,`drawingBufferWidth`,`drawingBufferHeight`].includes(c))try{if(typeof e[c]!=`function`)continue;let s=R(e,c,function(e){return function(...o){let s=e.apply(this,o);if(mc(s,a,this),`tagName`in this.canvas&&!ns(this.canvas,r,i,!0)){let e=gc(o,a,this),r={type:t,property:c,args:e};n(this.canvas,r)}return s}});o.push(s)}catch{let r=Zo(e,c,{set(e){n(this.canvas,{type:t,property:c,args:[e],setter:!0})}});o.push(r)}return o}function Sc(e,t,n,r){let i=[];return t.WebGLRenderingContext!==void 0&&i.push(...xc(t.WebGLRenderingContext.prototype,Cs.WebGL,e,n,r,t)),t.WebGL2RenderingContext!==void 0&&i.push(...xc(t.WebGL2RenderingContext.prototype,Cs.WebGL2,e,n,r,t)),()=>{i.forEach(e=>e())}}var Cc=`(function() {
63
+ "use strict";
64
+ var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
65
+ var lookup = typeof Uint8Array === "undefined" ? [] : new Uint8Array(256);
66
+ for (var i = 0; i < chars.length; i++) {
67
+ lookup[chars.charCodeAt(i)] = i;
68
+ }
69
+ var encode = function(arraybuffer) {
70
+ var bytes = new Uint8Array(arraybuffer), i2, len = bytes.length, base64 = "";
71
+ for (i2 = 0; i2 < len; i2 += 3) {
72
+ base64 += chars[bytes[i2] >> 2];
73
+ base64 += chars[(bytes[i2] & 3) << 4 | bytes[i2 + 1] >> 4];
74
+ base64 += chars[(bytes[i2 + 1] & 15) << 2 | bytes[i2 + 2] >> 6];
75
+ base64 += chars[bytes[i2 + 2] & 63];
76
+ }
77
+ if (len % 3 === 2) {
78
+ base64 = base64.substring(0, base64.length - 1) + "=";
79
+ } else if (len % 3 === 1) {
80
+ base64 = base64.substring(0, base64.length - 2) + "==";
81
+ }
82
+ return base64;
83
+ };
84
+ const lastBlobMap = /* @__PURE__ */ new Map();
85
+ const transparentBlobMap = /* @__PURE__ */ new Map();
86
+ async function getTransparentBlobFor(width, height, dataURLOptions) {
87
+ const id = \`\${width}-\${height}\`;
88
+ if ("OffscreenCanvas" in globalThis) {
89
+ if (transparentBlobMap.has(id)) return transparentBlobMap.get(id);
90
+ const offscreen = new OffscreenCanvas(width, height);
91
+ offscreen.getContext("2d");
92
+ const blob = await offscreen.convertToBlob(dataURLOptions);
93
+ const arrayBuffer = await blob.arrayBuffer();
94
+ const base64 = encode(arrayBuffer);
95
+ transparentBlobMap.set(id, base64);
96
+ return base64;
97
+ } else {
98
+ return "";
99
+ }
100
+ }
101
+ const worker = self;
102
+ worker.onmessage = async function(e) {
103
+ if ("OffscreenCanvas" in globalThis) {
104
+ const { id, bitmap, width, height, dataURLOptions } = e.data;
105
+ const transparentBase64 = getTransparentBlobFor(
106
+ width,
107
+ height,
108
+ dataURLOptions
109
+ );
110
+ const offscreen = new OffscreenCanvas(width, height);
111
+ const ctx = offscreen.getContext("2d");
112
+ ctx.drawImage(bitmap, 0, 0);
113
+ bitmap.close();
114
+ const blob = await offscreen.convertToBlob(dataURLOptions);
115
+ const type = blob.type;
116
+ const arrayBuffer = await blob.arrayBuffer();
117
+ const base64 = encode(arrayBuffer);
118
+ if (!lastBlobMap.has(id) && await transparentBase64 === base64) {
119
+ lastBlobMap.set(id, base64);
120
+ return worker.postMessage({ id });
121
+ }
122
+ if (lastBlobMap.get(id) === base64) return worker.postMessage({ id });
123
+ worker.postMessage({
124
+ id,
125
+ type,
126
+ base64,
127
+ width,
128
+ height
129
+ });
130
+ lastBlobMap.set(id, base64);
131
+ } else {
132
+ return worker.postMessage({ id: e.data.id });
133
+ }
134
+ };
135
+ })();
136
+ //# sourceMappingURL=image-bitmap-data-url-worker-IJpC7g_b.js.map
137
+ `,wc=typeof self<`u`&&self.Blob&&new Blob([Cc],{type:`text/javascript;charset=utf-8`});function Tc(e){let t;try{if(t=wc&&(self.URL||self.webkitURL).createObjectURL(wc),!t)throw``;let n=new Worker(t,{name:e?.name});return n.addEventListener(`error`,()=>{(self.URL||self.webkitURL).revokeObjectURL(t)}),n}catch{return new Worker(`data:text/javascript;charset=utf-8,`+encodeURIComponent(Cc),{name:e?.name})}finally{t&&(self.URL||self.webkitURL).revokeObjectURL(t)}}var Ec=class{constructor(e){C(this,`pendingCanvasMutations`,new Map),C(this,`rafStamps`,{latestId:0,invokeId:null}),C(this,`mirror`),C(this,`mutationCb`),C(this,`resetObservers`),C(this,`frozen`,!1),C(this,`locked`,!1),C(this,`processMutation`,(e,t)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)});let{sampling:t=`all`,win:n,blockClass:r,blockSelector:i,recordCanvas:a,dataURLOptions:o}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,a&&t===`all`&&this.initCanvasMutationObserver(n,r,i),a&&typeof t==`number`&&this.initCanvasFPSObserver(t,n,r,i,{dataURLOptions:o})}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(e,t,n,r,i){let a=bc(t,n,r,!0),o=new Map,s=new Tc;s.onmessage=e=>{let{id:t}=e.data;if(o.set(t,!1),!(`base64`in e.data))return;let{base64:n,type:r,width:i,height:a}=e.data;this.mutationCb({id:t,type:Cs[`2D`],commands:[{property:`clearRect`,args:[0,0,i,a]},{property:`drawImage`,args:[{rr_type:`ImageBitmap`,args:[{rr_type:`Blob`,data:[{rr_type:`ArrayBuffer`,base64:n}],type:r}]},0,0]}]})};let c=1e3/e,l=0,u,d=()=>{let e=[];return t.document.querySelectorAll(`canvas`).forEach(t=>{ns(t,n,r,!0)||e.push(t)}),e},f=e=>{if(l&&e-l<c){u=requestAnimationFrame(f);return}l=e,d().forEach(async e=>{let t=this.mirror.getId(e);if(o.get(t)||e.width===0||e.height===0)return;if(o.set(t,!0),[`webgl`,`webgl2`].includes(e.__context)){let t=e.getContext(e.__context);t?.getContextAttributes()?.preserveDrawingBuffer===!1&&t.clear(t.COLOR_BUFFER_BIT)}let n=await createImageBitmap(e);s.postMessage({id:t,bitmap:n,width:e.width,height:e.height,dataURLOptions:i.dataURLOptions},[n])}),u=requestAnimationFrame(f)};u=requestAnimationFrame(f),this.resetObservers=()=>{a(),cancelAnimationFrame(u)}}initCanvasMutationObserver(e,t,n){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();let r=bc(e,t,n,!1),i=vc(this.processMutation.bind(this),e,t,n),a=Sc(this.processMutation.bind(this),e,t,n);this.resetObservers=()=>{r(),i(),a()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let e=t=>{this.rafStamps.latestId=t,requestAnimationFrame(e)};requestAnimationFrame(e)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{let n=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,n)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,t){if(this.frozen||this.locked)return;let n=this.pendingCanvasMutations.get(e);if(!n||t===-1)return;let r=n.map(e=>{let{type:t,...n}=e;return n}),{type:i}=n[0];this.mutationCb({id:t,type:i,commands:r}),this.pendingCanvasMutations.delete(e)}},Dc=class{constructor(e){C(this,`trackedLinkElements`,new WeakSet),C(this,`mutationCb`),C(this,`adoptedStyleSheetCb`),C(this,`styleMirror`,new _s),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){`_cssText`in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(e.length===0)return;let n={id:t,styleIds:[]},r=[];for(let t of e){let e;this.styleMirror.has(t)?e=this.styleMirror.getId(t):(e=this.styleMirror.add(t),r.push({styleId:e,rules:Array.from(t.rules||CSSRule,(e,n)=>({rule:Ne(e,t.href),index:n}))})),n.styleIds.push(e)}r.length>0&&(n.styles=r),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}},Oc=class{constructor(){C(this,`nodeMap`,new WeakMap),C(this,`active`,!1)}inOtherBuffer(e,t){let n=this.nodeMap.get(e);return n&&Array.from(n).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}},kc,Ac,jc,Mc=!1;try{if(Array.from([1],e=>e*2)[0]!==2){let e=document.createElement(`iframe`);document.body.appendChild(e),Array.from=e.contentWindow?.Array.from||Array.from,document.body.removeChild(e)}}catch(e){console.debug(`Unable to override Array.from`,e)}var G=Re();function Nc(e={}){let{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:i=`rr-block`,blockSelector:a=null,ignoreClass:o=`rr-ignore`,ignoreSelector:s=null,maskTextClass:c=`rr-mask`,maskTextSelector:l=null,inlineStylesheet:u=!0,maskAllInputs:d,maskInputOptions:f,slimDOMOptions:p,maskInputFn:m,maskTextFn:h,hooks:g,packFn:_,sampling:v={},dataURLOptions:y={},mousemoveWait:b,recordDOM:x=!0,recordCanvas:S=!1,recordCrossOriginIframes:C=!1,recordAfter:ee=e.recordAfter===`DOMContentLoaded`?e.recordAfter:`load`,userTriggeredOnInput:w=!1,collectFonts:te=!1,inlineImages:T=!1,plugins:ne,keepIframeSrcFn:re=()=>!1,ignoreCSSAttributes:E=new Set([]),errorHandler:ie}=e;Ns(ie);let ae=!C||window.parent===window,oe=!1;if(!ae)try{window.parent.document&&(oe=!1)}catch{oe=!0}if(ae&&!t)throw Error(`emit function is required`);if(!ae&&!oe)return()=>{};b!==void 0&&v.mousemove===void 0&&(v.mousemove=b),G.reset();let se=d===!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}:f===void 0?{password:!0}:f,D=kt(p);ss();let ce,le=0,ue=e=>{for(let t of ne||[])t.eventProcessor&&(e=t.eventProcessor(e));return _&&!oe&&(e=_(e)),e};kc=(e,i)=>{let a=e;if(a.timestamp=L(),Fs[0]?.isFrozen()&&a.type!==B.FullSnapshot&&(a.type!==B.IncrementalSnapshot||a.data.source!==V.Mutation)&&Fs.forEach(e=>e.unfreeze()),ae)t?.(ue(a),i);else if(oe){let e={type:`rrweb`,event:ue(a),origin:window.location.origin,isCheckout:i};window.parent.postMessage(e,`*`)}if(a.type===B.FullSnapshot)ce=a,le=0;else if(a.type===B.IncrementalSnapshot){if(a.data.source===V.Mutation&&a.data.isAttachIframe)return;le++;let e=r&&le>=r,t=n&&a.timestamp-ce.timestamp>n;(e||t)&&Ac(!0)}};let de=e=>{kc({type:B.IncrementalSnapshot,data:{source:V.Mutation,...e}})},fe=e=>kc({type:B.IncrementalSnapshot,data:{source:V.Scroll,...e}}),pe=e=>kc({type:B.IncrementalSnapshot,data:{source:V.CanvasMutation,...e}}),me=new Dc({mutationCb:de,adoptedStyleSheetCb:e=>kc({type:B.IncrementalSnapshot,data:{source:V.AdoptedStyleSheet,...e}})}),he=new ac({mirror:G,mutationCb:de,stylesheetManager:me,recordCrossOriginIframes:C,wrappedEmit:kc});for(let e of ne||[])e.getMirror&&e.getMirror({nodeMirror:G,crossOriginIframeMirror:he.crossOriginIframeMirror,crossOriginIframeStyleMirror:he.crossOriginIframeStyleMirror});let ge=new Oc;jc=new Ec({recordCanvas:S,mutationCb:pe,win:window,blockClass:i,blockSelector:a,mirror:G,sampling:v.canvas,dataURLOptions:y});let _e=new oc({mutationCb:de,scrollCb:fe,bypassOptions:{blockClass:i,blockSelector:a,maskTextClass:c,maskTextSelector:l,inlineStylesheet:u,maskInputOptions:se,dataURLOptions:y,maskTextFn:h,maskInputFn:m,recordCanvas:S,inlineImages:T,sampling:v,slimDOMOptions:D,iframeManager:he,stylesheetManager:me,canvasManager:jc,keepIframeSrcFn:re,processedNodeManager:ge},mirror:G});Ac=(e=!1)=>{if(!x)return;kc({type:B.Meta,data:{href:window.location.href,width:es(),height:$o()}},e),me.reset(),_e.init(),Fs.forEach(e=>e.lock());let t=Mt(document,{mirror:G,blockClass:i,blockSelector:a,maskTextClass:c,maskTextSelector:l,inlineStylesheet:u,maskAllInputs:se,maskTextFn:h,maskInputFn:m,slimDOM:D,dataURLOptions:y,recordCanvas:S,inlineImages:T,onSerialize:e=>{us(e,G)&&he.addIframe(e),ds(e,G)&&me.trackLinkElement(e),ps(e)&&_e.addShadowRoot(z.shadowRoot(e),document)},onIframeLoad:(e,t)=>{he.attachIframe(e,t),_e.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{me.attachLinkElement(e,t)},keepIframeSrcFn:re});if(!t)return console.warn(`Failed to snapshot the document`);kc({type:B.FullSnapshot,data:{node:t,initialOffset:Qo(window)}},e),Fs.forEach(e=>e.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&me.adoptStyleSheets(document.adoptedStyleSheets,G.getId(document))};try{let e=[],t=e=>W(tc)({mutationCb:de,mousemoveCb:(e,t)=>kc({type:B.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>kc({type:B.IncrementalSnapshot,data:{source:V.MouseInteraction,...e}}),scrollCb:fe,viewportResizeCb:e=>kc({type:B.IncrementalSnapshot,data:{source:V.ViewportResize,...e}}),inputCb:e=>kc({type:B.IncrementalSnapshot,data:{source:V.Input,...e}}),mediaInteractionCb:e=>kc({type:B.IncrementalSnapshot,data:{source:V.MediaInteraction,...e}}),styleSheetRuleCb:e=>kc({type:B.IncrementalSnapshot,data:{source:V.StyleSheetRule,...e}}),styleDeclarationCb:e=>kc({type:B.IncrementalSnapshot,data:{source:V.StyleDeclaration,...e}}),canvasMutationCb:pe,fontCb:e=>kc({type:B.IncrementalSnapshot,data:{source:V.Font,...e}}),selectionCb:e=>{kc({type:B.IncrementalSnapshot,data:{source:V.Selection,...e}})},customElementCb:e=>{kc({type:B.IncrementalSnapshot,data:{source:V.CustomElement,...e}})},blockClass:i,ignoreClass:o,ignoreSelector:s,maskTextClass:c,maskTextSelector:l,maskInputOptions:se,inlineStylesheet:u,sampling:v,recordDOM:x,recordCanvas:S,inlineImages:T,userTriggeredOnInput:w,collectFonts:te,doc:e,maskInputFn:m,maskTextFn:h,keepIframeSrcFn:re,blockSelector:a,slimDOMOptions:D,dataURLOptions:y,mirror:G,iframeManager:he,stylesheetManager:me,shadowDomManager:_e,processedNodeManager:ge,canvasManager:jc,ignoreCSSAttributes:E,plugins:(ne?.filter(e=>e.observer))?.map(e=>({observer:e.observer,options:e.options,callback:t=>kc({type:B.Plugin,data:{plugin:e.name,payload:t}})}))||[]},g);he.addLoadListener(n=>{try{e.push(t(n.contentDocument))}catch(e){console.warn(e)}});let n=()=>{Ac(),e.push(t(document)),Mc=!0};return[`interactive`,`complete`].includes(document.readyState)?n():(e.push(qo(`DOMContentLoaded`,()=>{kc({type:B.DomContentLoaded,data:{}}),ee===`DOMContentLoaded`&&n()})),e.push(qo(`load`,()=>{kc({type:B.Load,data:{}}),ee===`load`&&n()},window))),()=>{e.forEach(e=>{try{e()}catch(e){String(e).toLowerCase().includes(`cross-origin`)||console.warn(e)}}),ge.destroy(),Mc=!1,Ps()}}catch(e){console.warn(e)}}Nc.addCustomEvent=(e,t)=>{if(!Mc)throw Error(`please add custom event after start recording`);kc({type:B.Custom,data:{tag:e,payload:t}})},Nc.freezePage=()=>{Fs.forEach(e=>e.freeze())},Nc.takeFullSnapshot=e=>{if(!Mc)throw Error(`please take full snapshot after start recording`);Ac(e)},Nc.mirror=G;function Pc(e){return{all:e||=new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(e){e(n)}),(r=e.get(`*`))&&r.slice().map(function(e){e(t,n)})}}}function Fc(e=window,t=document){if(`scrollBehavior`in t.documentElement.style&&e.__forceSmoothScrollPolyfill__!==!0)return;let n=e.HTMLElement||e.Element,r={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:n.prototype.scroll||s,scrollIntoView:n.prototype.scrollIntoView},i=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now;function a(e){return new RegExp([`MSIE `,`Trident/`,`Edge/`].join(`|`)).test(e)}let o=+!!a(e.navigator.userAgent);function s(e,t){this.scrollLeft=e,this.scrollTop=t}function c(e){return .5*(1-Math.cos(Math.PI*e))}function l(e){if(typeof e!=`object`||!e||e.behavior===void 0||e.behavior===`auto`||e.behavior===`instant`)return!0;if(typeof e==`object`&&e.behavior===`smooth`)return!1;throw TypeError(`behavior member of ScrollOptions `+e.behavior+` is not a valid value for enumeration ScrollBehavior.`)}function u(e,t){if(t===`Y`)return e.clientHeight+o<e.scrollHeight;if(t===`X`)return e.clientWidth+o<e.scrollWidth}function d(t,n){let r=e.getComputedStyle(t,null)[`overflow`+n];return r===`auto`||r===`scroll`}function f(e){let t=u(e,`Y`)&&d(e,`Y`),n=u(e,`X`)&&d(e,`X`);return t||n}function p(e){for(;e!==t.body&&f(e)===!1;)e=e.parentNode||e.host;return e}function m(t){let n=i(),r,a,o,s=(n-t.startTime)/468;s=s>1?1:s,r=c(s),a=t.startX+(t.x-t.startX)*r,o=t.startY+(t.y-t.startY)*r,t.method.call(t.scrollable,a,o),(a!==t.x||o!==t.y)&&e.requestAnimationFrame(m.bind(e,t))}function h(n,a,o){let c,l,u,d,f=i();n===t.body?(c=e,l=e.scrollX||e.pageXOffset,u=e.scrollY||e.pageYOffset,d=r.scroll):(c=n,l=n.scrollLeft,u=n.scrollTop,d=s),m({scrollable:c,method:d,startTime:f,startX:l,startY:u,x:a,y:o})}e.scroll=e.scrollTo=function(){if(arguments[0]!==void 0){if(l(arguments[0])===!0){r.scroll.call(e,arguments[0].left===void 0?typeof arguments[0]==`object`?e.scrollX||e.pageXOffset:arguments[0]:arguments[0].left,arguments[0].top===void 0?arguments[1]===void 0?e.scrollY||e.pageYOffset:arguments[1]:arguments[0].top);return}h.call(e,t.body,arguments[0].left===void 0?e.scrollX||e.pageXOffset:~~arguments[0].left,arguments[0].top===void 0?e.scrollY||e.pageYOffset:~~arguments[0].top)}},e.scrollBy=function(){if(arguments[0]!==void 0){if(l(arguments[0])){r.scrollBy.call(e,arguments[0].left===void 0?typeof arguments[0]==`object`?0:arguments[0]:arguments[0].left,arguments[0].top===void 0?arguments[1]===void 0?0:arguments[1]:arguments[0].top);return}h.call(e,t.body,~~arguments[0].left+(e.scrollX||e.pageXOffset),~~arguments[0].top+(e.scrollY||e.pageYOffset))}},n.prototype.scroll=n.prototype.scrollTo=function(){if(arguments[0]===void 0)return;if(l(arguments[0])===!0){if(typeof arguments[0]==`number`&&arguments[1]===void 0)throw SyntaxError(`Value could not be converted`);r.elementScroll.call(this,arguments[0].left===void 0?typeof arguments[0]==`object`?this.scrollLeft:~~arguments[0]:~~arguments[0].left,arguments[0].top===void 0?arguments[1]===void 0?this.scrollTop:~~arguments[1]:~~arguments[0].top);return}let e=arguments[0].left,t=arguments[0].top;h.call(this,this,e===void 0?this.scrollLeft:~~e,t===void 0?this.scrollTop:~~t)},n.prototype.scrollBy=function(){if(arguments[0]!==void 0){if(l(arguments[0])===!0){r.elementScroll.call(this,arguments[0].left===void 0?~~arguments[0]+this.scrollLeft:~~arguments[0].left+this.scrollLeft,arguments[0].top===void 0?~~arguments[1]+this.scrollTop:~~arguments[0].top+this.scrollTop);return}this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior})}},n.prototype.scrollIntoView=function(){if(l(arguments[0])===!0){r.scrollIntoView.call(this,arguments[0]===void 0||arguments[0]);return}let n=p(this),i=n.getBoundingClientRect(),a=this.getBoundingClientRect();n===t.body?e.scrollBy({left:a.left,top:a.top,behavior:`smooth`}):(h.call(this,n,n.scrollLeft+a.left-i.left,n.scrollTop+a.top-i.top),e.getComputedStyle(n).position!==`fixed`&&e.scrollBy({left:i.left,top:i.top,behavior:`smooth`}))}}var Ic=class{constructor(e=[],t){C(this,`timeOffset`,0),C(this,`speed`),C(this,`actions`),C(this,`raf`,null),C(this,`lastTimestamp`),this.actions=e,this.speed=t.speed}addAction(e){let t=this.raf===!0;if(!this.actions.length||this.actions[this.actions.length-1].delay<=e.delay)this.actions.push(e);else{let t=this.findActionIndex(e);this.actions.splice(t,0,e)}t&&(this.raf=requestAnimationFrame(this.rafCheck.bind(this)))}start(){this.timeOffset=0,this.lastTimestamp=performance.now(),this.raf=requestAnimationFrame(this.rafCheck.bind(this))}updateLiveTime(){this.raf===!0&&this.rafCheck()}rafCheck(){let e=performance.now();for(this.timeOffset+=(e-this.lastTimestamp)*this.speed,this.lastTimestamp=e;this.actions.length;){let e=this.actions[0];if(this.timeOffset>=e.delay)this.actions.shift(),e.doAction();else break}this.raf=this.actions.length>0?requestAnimationFrame(this.rafCheck.bind(this)):!0}clear(){this.raf&&=(this.raf!==!0&&cancelAnimationFrame(this.raf),null),this.actions.length=0}setSpeed(e){this.speed=e}isActive(){return this.raf!==null}findActionIndex(e){let t=0,n=this.actions.length-1;for(;t<=n;){let r=Math.floor((t+n)/2);if(this.actions[r].delay<e.delay)t=r+1;else if(this.actions[r].delay>e.delay)n=r-1;else return r+1}return t}};function Lc(e,t){if(e.type===B.IncrementalSnapshot&&e.data.source===V.MouseMove&&e.data.positions&&e.data.positions.length){let n=e.data.positions[0].timeOffset,r=e.timestamp+n;return e.delay=r-t,r-t}return e.delay=e.timestamp-t,e.delay}function Rc(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(t===void 0||t-->0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}var zc;(function(e){e[e.NotStarted=0]=`NotStarted`,e[e.Running=1]=`Running`,e[e.Stopped=2]=`Stopped`})(zc||={});var Bc={type:`xstate.init`};function Vc(e){return e===void 0?[]:[].concat(e)}function Hc(e){return{type:`xstate.assign`,assignment:e}}function Uc(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 Wc(e){return function(t){return e===t}}function Gc(e){return typeof e==`string`?{type:e}:e}function Kc(e,t){return{value:e,context:t,actions:[],changed:!1,matches:Wc(e)}}function qc(e,t,n){var r=t,i=!1;return[e.filter(function(e){if(e.type===`xstate.assign`){i=!0;var t=Object.assign({},r);return typeof e.assignment==`function`?t=e.assignment(r,n):Object.keys(e.assignment).forEach(function(i){t[i]=typeof e.assignment[i]==`function`?e.assignment[i](r,n):e.assignment[i]}),r=t,!1}return!0}),r,i]}function Jc(e,t){t===void 0&&(t={});var n=Rc(qc(Vc(e.states[e.initial].entry).map(function(e){return Uc(e,t.actions)}),e.context,Bc),2),r=n[0],i=n[1],a={config:e,_options:t,initialState:{value:e.initial,actions:r,context:i,matches:Wc(e.initial)},transition:function(t,n){var r,i,o=typeof t==`string`?{value:t,context:e.context}:t,s=o.value,c=o.context,l=Gc(n),u=e.states[s];if(u.on){var d=Vc(u.on[l.type]);try{for(var f=function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}(d),p=f.next();!p.done;p=f.next()){var m=p.value;if(m===void 0)return Kc(s,c);var h=typeof m==`string`?{target:m}:m,g=h.target,_=h.actions,v=_===void 0?[]:_,y=h.cond,b=y===void 0?function(){return!0}:y,x=g===void 0,S=g??s,C=e.states[S];if(b(c,l)){var ee=Rc(qc((x?Vc(v):[].concat(u.exit,v,C.entry).filter(function(e){return e})).map(function(e){return Uc(e,a._options.actions)}),c,l),3),w=ee[0],te=ee[1],T=ee[2],ne=g??s;return{value:ne,context:te,actions:w,changed:g!==s||w.length>0||T,matches:Wc(ne)}}}}catch(e){r={error:e}}finally{try{p&&!p.done&&(i=f.return)&&i.call(f)}finally{if(r)throw r.error}}}return Kc(s,c)}};return a}var Yc=function(e,t){return e.actions.forEach(function(n){var r=n.exec;return r&&r(e.context,t)})};function Xc(e){var t=e.initialState,n=zc.NotStarted,r=new Set,i={_machine:e,send:function(i){n===zc.Running&&(t=e.transition(t,i),Yc(t,Gc(i)),r.forEach(function(e){return e(t)}))},subscribe:function(e){return r.add(e),e(t),{unsubscribe:function(){return r.delete(e)}}},start:function(r){if(r){var a=typeof r==`object`?r:{context:e.config.context,value:r};t={value:a.value,actions:[],context:a.context,matches:Wc(a.value)}}return n=zc.Running,Yc(t,Bc),i},stop:function(){return n=zc.Stopped,r.clear(),i},get state(){return t},get status(){return n}};return i}function Zc(e,t){for(let n=e.length-1;n>=0;n--){let r=e[n];if(r.type===B.Meta&&r.timestamp<=t)return e.slice(n)}return e}function Qc(e,{getCastFn:t,applyEventsSynchronously:n,emitter:r}){return Xc(Jc({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:Hc({lastPlayedEvent:(e,t)=>t.type===`CAST_EVENT`?t.payload.event:e.lastPlayedEvent}),recordTimeOffset:Hc((e,t)=>{let n=e.timeOffset;return`payload`in t&&`timeOffset`in t.payload&&(n=t.payload.timeOffset),{...e,timeOffset:n,baselineTime:e.events[0].timestamp+n}}),play(e){let{timer:i,events:a,baselineTime:o,lastPlayedEvent:s}=e;i.clear();for(let e of a)Lc(e,o);let c=Zc(a,o),l=s?.timestamp;s?.type===B.IncrementalSnapshot&&s.data.source===V.MouseMove&&(l=s.timestamp+s.data.positions[0]?.timeOffset),o<(l||0)&&r.emit(U.PlayBack);let u=[];for(let e of c)if(!(l&&l<o&&(e.timestamp<=l||e===s))){if(e.timestamp<o)u.push(e);else{let n=t(e,!1);i.addAction({doAction:()=>{n()},delay:e.delay})}}n(u),r.emit(U.Flush),i.start()},pause(e){e.timer.clear()},resetLastPlayedEvent:Hc(e=>({...e,lastPlayedEvent:null})),startLive:Hc({baselineTime:(e,t)=>(e.timer.start(),t.type===`TO_LIVE`&&t.payload.baselineTime?t.payload.baselineTime:Date.now())}),addEvent:Hc((e,n)=>{let{baselineTime:r,timer:i,events:a}=e;if(n.type===`ADD_EVENT`){let{event:e}=n.payload;Lc(e,r);let o=a.length-1;if(!a[o]||a[o].timestamp<=e.timestamp)a.push(e);else{let t=-1,n=0;for(;n<=o;){let t=Math.floor((n+o)/2);a[t].timestamp<=e.timestamp?n=t+1:o=t-1}t===-1&&(t=n),a.splice(t,0,e)}let s=e.timestamp<r,c=t(e,s);s?c():i.isActive()&&i.addAction({doAction:()=>{c()},delay:e.delay})}return{...e,events:a}})}}))}function $c(e){return Xc(Jc({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:(e,t)=>{`payload`in t&&e.timer.setSpeed(t.payload.speed)},recordSpeed:Hc({normalSpeed:e=>e.timer.speed}),restoreSpeed:e=>{e.timer.setSpeed(e.normalSpeed)}}}))}var el=e=>[`.${e} { background: currentColor }`,`noscript { display: none !important; }`],tl=new Map;function nl(e,t){let n=tl.get(e);return n||(n=new Map,tl.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}function rl(e,t,n){return async r=>{if(r&&typeof r==`object`&&`rr_type`in r){if(n&&(n.isUnchanged=!1),r.rr_type===`ImageBitmap`&&`args`in r){let i=await rl(e,t,n)(r.args);return await createImageBitmap.apply(null,i)}if(`index`in r){if(n||t===null)return r;let{rr_type:e,index:i}=r;return nl(t,e)[i]}if(`args`in r){let{rr_type:i,args:a}=r,o=window[i];return new o(...await Promise.all(a.map(rl(e,t,n))))}if(`base64`in r)return dc(r.base64);if(`src`in r){let t=e.get(r.src);if(t)return t;{let t=new Image;return t.src=r.src,e.set(r.src,t),t}}if(`data`in r&&r.rr_type===`Blob`){let i=await Promise.all(r.data.map(rl(e,t,n)));return new Blob(i,{type:r.type})}}else if(Array.isArray(r))return await Promise.all(r.map(rl(e,t,n)));return r}}function il(e,t){try{return t===Cs.WebGL?e.getContext(`webgl`)||e.getContext(`experimental-webgl`):e.getContext(`webgl2`)}catch{return null}}var al=[`WebGLActiveInfo`,`WebGLBuffer`,`WebGLFramebuffer`,`WebGLProgram`,`WebGLRenderbuffer`,`WebGLShader`,`WebGLShaderPrecisionFormat`,`WebGLTexture`,`WebGLUniformLocation`,`WebGLVertexArrayObject`];function ol(e,t){if(!t?.constructor)return;let{name:n}=t.constructor;if(!al.includes(n))return;let r=nl(e,n);r.includes(t)||r.push(t)}async function sl({mutation:e,target:t,type:n,imageMap:r,errorHandler:i}){try{let i=il(t,n);if(!i)return;if(e.setter){i[e.property]=e.args[0];return}let a=i[e.property],o=await Promise.all(e.args.map(rl(r,i)));ol(i,a.apply(i,o))}catch(t){i(e,t)}}async function cl({event:e,mutations:t,target:n,imageMap:r,errorHandler:i}){let a=n.getContext(`2d`);if(!a){i(t[0],Error(`Canvas context is null`));return}let o=t.map(async e=>Promise.all(e.args.map(rl(r,a))));(await Promise.all(o)).forEach((n,o)=>{let s=t[o];try{if(s.setter){a[s.property]=s.args[0];return}let t=a[s.property];s.property===`drawImage`&&typeof s.args[0]==`string`?(r.get(e),t.apply(a,s.args)):t.apply(a,n)}catch(e){i(s,e)}})}async function ll({event:e,mutation:t,target:n,imageMap:r,canvasEventMap:i,errorHandler:a}){try{let o=i.get(e)||t,s=`commands`in o?o.commands:[o];if([Cs.WebGL,Cs.WebGL2].includes(t.type)){for(let e=0;e<s.length;e++){let i=s[e];await sl({mutation:i,type:t.type,target:n,imageMap:r,errorHandler:a})}return}await cl({event:e,mutations:s,target:n,imageMap:r,errorHandler:a})}catch(e){a(t,e)}}var ul=class{constructor(e){C(this,`mediaMap`,new Map),C(this,`warn`),C(this,`service`),C(this,`speedService`),C(this,`emitter`),C(this,`getCurrentTime`),C(this,`metadataCallbackMap`,new Map),this.warn=e.warn,this.service=e.service,this.speedService=e.speedService,this.emitter=e.emitter,this.getCurrentTime=e.getCurrentTime,this.emitter.on(U.Start,this.start.bind(this)),this.emitter.on(U.SkipStart,this.start.bind(this)),this.emitter.on(U.Pause,this.pause.bind(this)),this.emitter.on(U.Finish,this.pause.bind(this)),this.speedService.subscribe(()=>{this.syncAllMediaElements()})}syncAllMediaElements(e={pause:!1}){this.mediaMap.forEach((t,n)=>{this.syncTargetWithState(n),e.pause&&n.pause()})}start(){this.syncAllMediaElements()}pause(){this.syncAllMediaElements({pause:!0})}seekTo({time:e,target:t,mediaState:n}){if(n.isPlaying){let r=(e-n.lastInteractionTimeOffset)/1e3*n.playbackRate,i=`duration`in t&&t.duration;if(Number.isNaN(i)){this.waitForMetadata(t);return}let a=n.currentTimeAtLastInteraction+r;t.loop&&i!==!1&&(a%=i),t.currentTime=a}else t.pause(),t.currentTime=n.currentTimeAtLastInteraction}waitForMetadata(e){if(this.metadataCallbackMap.has(e)||!(`addEventListener`in e))return;let t=()=>{this.metadataCallbackMap.delete(e);let t=this.mediaMap.get(e);t&&this.seekTo({time:this.getCurrentTime(),target:e,mediaState:t})};this.metadataCallbackMap.set(e,t),e.addEventListener(`loadedmetadata`,t,{once:!0})}getMediaStateFromMutation({target:e,timeOffset:t,mutation:n}){let r=this.mediaMap.get(e),{type:i,playbackRate:a,currentTime:o,muted:s,volume:c,loop:l}=n;return{isPlaying:i===ws.Play||i!==ws.Pause&&(r?.isPlaying||e.getAttribute(`autoplay`)!==null),currentTimeAtLastInteraction:o??r?.currentTimeAtLastInteraction??0,lastInteractionTimeOffset:t,playbackRate:a??r?.playbackRate??1,volume:c??r?.volume??1,muted:s??r?.muted??e.getAttribute(`muted`)===null,loop:l??r?.loop??e.getAttribute(`loop`)===null}}syncTargetWithState(e){let t=this.mediaMap.get(e);if(!t)return;let{muted:n,loop:r,volume:i,isPlaying:a}=t,o=this.service.state.matches(`paused`),s=t.playbackRate*this.speedService.state.context.timer.speed;try{this.seekTo({time:this.getCurrentTime(),target:e,mediaState:t}),e.volume!==i&&(e.volume=i),e.muted=n,e.loop=r,e.playbackRate!==s&&(e.playbackRate=s),a&&!o?e.play():e.pause()}catch(e){this.warn(`Failed to replay media interactions: ${e.message||e}`)}}addMediaElements(e,t,n){if(![`AUDIO`,`VIDEO`].includes(e.nodeName))return;let r=e,i=n.getMeta(r);if(!i||!(`attributes`in i))return;let a=this.service.state.matches(`paused`),o=i.attributes,s=!1;s=o.rr_mediaState?o.rr_mediaState===`played`:r.getAttribute(`autoplay`)!==null,s&&a&&r.pause();let c=1;typeof o.rr_mediaPlaybackRate==`number`&&(c=o.rr_mediaPlaybackRate);let l=!1;l=typeof o.rr_mediaMuted==`boolean`?o.rr_mediaMuted:r.getAttribute(`muted`)!==null;let u=!1;u=typeof o.rr_mediaLoop==`boolean`?o.rr_mediaLoop:r.getAttribute(`loop`)!==null;let d=1;typeof o.rr_mediaVolume==`number`&&(d=o.rr_mediaVolume);let f=0;typeof o.rr_mediaCurrentTime==`number`&&(f=o.rr_mediaCurrentTime),this.mediaMap.set(r,{isPlaying:s,currentTimeAtLastInteraction:f,lastInteractionTimeOffset:t,playbackRate:c,volume:d,muted:l,loop:u}),this.syncTargetWithState(r)}mediaMutation({target:e,timeOffset:t,mutation:n}){this.mediaMap.set(e,this.getMediaStateFromMutation({target:e,timeOffset:t,mutation:n})),this.syncTargetWithState(e)}isSupportedMediaElement(e){return[`AUDIO`,`VIDEO`].includes(e.nodeName)}reset(){this.mediaMap.clear()}};function dl(e,t){if(e.nodeName!==`DIALOG`||e instanceof ja)return;let n=e,r=n.open,i=r&&n.matches(`dialog:modal`),a=n.getAttribute(`rr_open_mode`),o=typeof t?.attributes.open==`string`||typeof n.getAttribute(`open`)==`string`,s=a===`modal`;if(!r||i&&a===`non-modal`||!i&&s){if(!n.isConnected){console.warn(`dialog is not attached to the dom`,n);return}r&&n.close(),o&&(s?n.showModal():n.show())}}function fl(e,t){if(e.nodeName!==`DIALOG`||e instanceof ja)return;let n=e;if(!n.isConnected){console.warn(`dialog is not attached to the dom`,n);return}t.attributes.open===null&&(n.removeAttribute(`open`),n.removeAttribute(`rr_open_mode`))}var pl=5e3,ml=Pc,hl=`[replayer]`,gl={duration:500,lineCap:`round`,lineWidth:3,strokeStyle:`red`};function _l(e){return e.type==B.IncrementalSnapshot&&(e.data.source==V.TouchMove||e.data.source==V.MouseInteraction&&e.data.type==H.TouchStart)}var vl=class{constructor(e,t){if(C(this,`wrapper`),C(this,`iframe`),C(this,`UNSAFE_replayCanvas`,!1),C(this,`service`),C(this,`speedService`),C(this,`config`),C(this,`usingVirtualDom`,!1),C(this,`virtualDom`,new no),C(this,`mouse`),C(this,`mouseTail`,null),C(this,`tailPositions`,[]),C(this,`emitter`,ml()),C(this,`nextUserInteractionEvent`),C(this,`legacy_missingNodeRetryMap`,{}),C(this,`cache`,Sr()),C(this,`imageMap`,new Map),C(this,`canvasEventMap`,new Map),C(this,`mirror`,Re()),C(this,`styleMirror`,new _s),C(this,`mediaManager`),C(this,`firstFullSnapshot`,null),C(this,`newDocumentQueue`,[]),C(this,`mousePos`,null),C(this,`touchActive`,null),C(this,`lastMouseDownEvent`,null),C(this,`lastHoveredRootNode`),C(this,`lastSelectionData`,null),C(this,`constructedStyleMutations`,[]),C(this,`adoptedStyleSheets`,[]),C(this,`handleResize`,e=>{this.iframe.style.display=`inherit`;for(let t of[this.mouseTail,this.iframe])t&&(t.setAttribute(`width`,String(e.width)),t.setAttribute(`height`,String(e.height)))}),C(this,`applyEventsSynchronously`,e=>{for(let t of e){switch(t.type){case B.DomContentLoaded:case B.Load:continue;case B.FullSnapshot:case B.Meta:case B.Plugin:case B.IncrementalSnapshot:}this.getCastFn(t,!0)()}}),C(this,`getCastFn`,(e,t=!1)=>{let n;switch(e.type){case B.DomContentLoaded:case B.Load:break;case B.Custom:n=()=>{this.emitter.emit(U.CustomEvent,e)};break;case B.Meta:n=()=>this.emitter.emit(U.Resize,{width:e.data.width,height:e.data.height});break;case B.FullSnapshot:n=()=>{var n;if(this.firstFullSnapshot){if(this.firstFullSnapshot===e){this.firstFullSnapshot=!0;return}}else this.firstFullSnapshot=!0;this.mediaManager.reset(),this.styleMirror.reset(),this.rebuildFullSnapshot(e,t),(n=this.iframe.contentWindow)==null||n.scrollTo(e.data.initialOffset)};break;case B.IncrementalSnapshot:n=()=>{if(this.applyIncremental(e,t),!t&&(e===this.nextUserInteractionEvent&&(this.nextUserInteractionEvent=null,this.backToNormal()),this.config.skipInactive&&!this.nextUserInteractionEvent)){for(let t of this.service.state.context.events)if(!(t.timestamp<=e.timestamp)&&this.isUserInteraction(t)){t.delay-e.delay>this.config.inactivePeriodThreshold*this.speedService.state.context.timer.speed&&(this.nextUserInteractionEvent=t);break}if(this.nextUserInteractionEvent){let t=this.nextUserInteractionEvent.delay-e.delay,n={speed:Math.min(Math.round(t/pl),this.config.maxSpeed)};this.speedService.send({type:`FAST_FORWARD`,payload:n}),this.emitter.emit(U.SkipStart,n)}}}}return()=>{n&&n();for(let n of this.config.plugins||[])n.handler&&n.handler(e,t,{replayer:this});this.service.send({type:`CAST_EVENT`,payload:{event:e}});let r=this.service.state.context.events.length-1;if(!this.config.liveMode&&e===this.service.state.context.events[r]){let t=()=>{r<this.service.state.context.events.length-1||(this.backToNormal(),this.service.send(`END`),this.emitter.emit(U.Finish))},n=50;e.type===B.IncrementalSnapshot&&e.data.source===V.MouseMove&&e.data.positions.length&&(n+=Math.max(0,-e.data.positions[0].timeOffset)),setTimeout(t,n)}this.emitter.emit(U.EventCast,e)}}),!t?.liveMode&&e.length<2)throw Error(`Replayer need at least 2 events.`);let n={speed:1,maxSpeed:360,root:document.body,loadTimeout:0,skipInactive:!1,inactivePeriodThreshold:1e4,showWarning:!0,showDebug:!1,blockClass:`rr-block`,liveMode:!1,insertStyleRules:[],triggerFocus:!0,UNSAFE_replayCanvas:!1,pauseAnimation:!0,mouseTail:gl,useVirtualDom:!0,logger:console};this.config=Object.assign({},n,t),this.handleResize=this.handleResize.bind(this),this.getCastFn=this.getCastFn.bind(this),this.applyEventsSynchronously=this.applyEventsSynchronously.bind(this),this.emitter.on(U.Resize,this.handleResize),this.setupDom();for(let e of this.config.plugins||[])e.getMirror&&e.getMirror({nodeMirror:this.mirror});this.emitter.on(U.Flush,()=>{if(this.usingVirtualDom){let e={mirror:this.mirror,applyCanvas:(e,t,n)=>{ll({event:e,mutation:t,target:n,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})},applyInput:this.applyInput.bind(this),applyScroll:this.applyScroll.bind(this),applyStyleSheetMutation:(e,t)=>{e.source===V.StyleSheetRule?this.applyStyleSheetRule(e,t):e.source===V.StyleDeclaration&&this.applyStyleDeclaration(e,t)},afterAppend:(e,t)=>{for(let n of this.config.plugins||[])n.onBuild&&n.onBuild(e,{id:t,replayer:this})}};if(this.iframe.contentDocument)try{Ja(this.iframe.contentDocument,this.virtualDom,e,this.virtualDom.mirror)}catch(e){this.warn(e)}if(this.virtualDom.destroyTree(),this.usingVirtualDom=!1,Object.keys(this.legacy_missingNodeRetryMap).length)for(let t in this.legacy_missingNodeRetryMap)try{let n=this.legacy_missingNodeRetryMap[t],r=$a(n.node,this.mirror,this.virtualDom.mirror);Ja(r,n.node,e,this.virtualDom.mirror),n.node=r}catch(e){this.warn(e)}this.constructedStyleMutations.forEach(e=>{this.applyStyleSheetMutation(e)}),this.constructedStyleMutations=[],this.adoptedStyleSheets.forEach(e=>{this.applyAdoptedStyleSheet(e)}),this.adoptedStyleSheets=[]}if(this.mousePos&&=(this.moveAndHover(this.mousePos.x,this.mousePos.y,this.mousePos.id,!0,this.mousePos.debugData),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[e,t]=this.lastMouseDownEvent;e.dispatchEvent(t)}this.lastMouseDownEvent=null,this.lastSelectionData&&=(this.applySelection(this.lastSelectionData),null)}),this.emitter.on(U.PlayBack,()=>{this.firstFullSnapshot=null,this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset()});let r=new Ic([],{speed:this.config.speed});this.service=Qc({events:e.map(e=>t&&t.unpackFn?t.unpackFn(e):e).sort((e,t)=>e.timestamp-t.timestamp),timer:r,timeOffset:0,baselineTime:0,lastPlayedEvent:null},{getCastFn:this.getCastFn,applyEventsSynchronously:this.applyEventsSynchronously,emitter:this.emitter}),this.service.start(),this.service.subscribe(e=>{this.emitter.emit(U.StateChange,{player:e})}),this.speedService=$c({normalSpeed:-1,timer:r}),this.speedService.start(),this.speedService.subscribe(e=>{this.emitter.emit(U.StateChange,{speed:e})}),this.mediaManager=new ul({warn:this.warn.bind(this),service:this.service,speedService:this.speedService,emitter:this.emitter,getCurrentTime:this.getCurrentTime.bind(this)});let i=this.service.state.context.events.find(e=>e.type===B.Meta),a=this.service.state.context.events.find(e=>e.type===B.FullSnapshot);if(i){let{width:e,height:t}=i.data;setTimeout(()=>{this.emitter.emit(U.Resize,{width:e,height:t})},0)}a&&setTimeout(()=>{var e;this.firstFullSnapshot||(this.firstFullSnapshot=a,this.rebuildFullSnapshot(a),(e=this.iframe.contentWindow)==null||e.scrollTo(a.data.initialOffset))},1),this.service.state.context.events.find(_l)&&this.mouse.classList.add(`touch-device`)}get timer(){return this.service.state.context.timer}on(e,t){return this.emitter.on(e,t),this}off(e,t){return this.emitter.off(e,t),this}setConfig(e){Object.keys(e).forEach(t=>{e[t],this.config[t]=e[t]}),this.config.skipInactive||this.backToNormal(),e.speed!==void 0&&this.speedService.send({type:`SET_SPEED`,payload:{speed:e.speed}}),e.mouseTail!==void 0&&(e.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 e=this.service.state.context.events[0],t=this.service.state.context.events[this.service.state.context.events.length-1];return{startTime:e.timestamp,endTime:t.timestamp,totalTime:t.timestamp-e.timestamp}}getCurrentTime(){return this.config.liveMode&&this.timer.updateLiveTime(),this.timer.timeOffset+this.getTimeOffset()}getTimeOffset(){let{baselineTime:e,events:t}=this.service.state.context;return e-t[0].timestamp}getMirror(){return this.mirror}play(e=0){var t;this.service.state.matches(`paused`)||this.service.send({type:`PAUSE`}),this.service.send({type:`PLAY`,payload:{timeOffset:e}}),(t=this.iframe.contentDocument?.getElementsByTagName(`html`)[0])==null||t.classList.remove(`rrweb-paused`),this.emitter.emit(U.Start)}pause(e){var t;e===void 0&&this.service.state.matches(`playing`)&&this.service.send({type:`PAUSE`}),typeof e==`number`&&(this.play(e),this.service.send({type:`PAUSE`})),(t=this.iframe.contentDocument?.getElementsByTagName(`html`)[0])==null||t.classList.add(`rrweb-paused`),this.emitter.emit(U.Pause)}resume(e=0){this.warn(`The 'resume' was deprecated in 1.0. Please use 'play' method which has the same interface.`),this.play(e),this.emitter.emit(U.Resume)}destroy(){this.pause(),this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset(),this.config.root.removeChild(this.wrapper),this.emitter.emit(U.Destroy)}startLive(e){this.service.send({type:`TO_LIVE`,payload:{baselineTime:e}})}addEvent(e){let t=this.config.unpackFn?this.config.unpackFn(e):e;_l(t)&&this.mouse.classList.add(`touch-device`),Promise.resolve().then(()=>this.service.send({type:`ADD_EVENT`,payload:{event:t}}))}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=Sr()}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=Fr({root:this.wrapper}),this.UNSAFE_replayCanvas=!1),this.iframe.style.display=`none`,this.disableInteract(),this.iframe.contentWindow&&this.iframe.contentDocument&&(Fc(this.iframe.contentWindow,this.iframe.contentDocument),ss(this.iframe.contentWindow))}rebuildFullSnapshot(e,t=!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=[],r=new Set,i=(t,i)=>{if(t.nodeName===`DIALOG`&&r.add(t),this.collectIframeAndAttachDocument(n,t),this.mediaManager.isSupportedMediaElement(t)){let{events:n}=this.service.state.context;this.mediaManager.addMediaElements(t,e.timestamp-n[0].timestamp,this.mirror)}for(let e of this.config.plugins||[])e.onBuild&&e.onBuild(t,{id:i,replayer:this})};this.usingVirtualDom&&=(this.virtualDom.destroyTree(),!1),this.mirror.reset(),Pr(e.data.node,{doc:this.iframe.contentDocument,afterAppend:i,cache:this.cache,mirror:this.mirror,UNSAFE_allowUnprotectedRebuild:this.UNSAFE_replayCanvas}),i(this.iframe.contentDocument,e.data.node.id);for(let{mutationInQueue:e,builtNode:t}of n)this.attachDocumentToIframe(e,t),this.newDocumentQueue=this.newDocumentQueue.filter(t=>t!==e);let{documentElement:a,head:o}=this.iframe.contentDocument;this.insertStyleRules(a,o),r.forEach(e=>dl(e)),this.service.state.matches(`playing`)||this.iframe.contentDocument.getElementsByTagName(`html`)[0].classList.add(`rrweb-paused`),this.emitter.emit(U.FullsnapshotRebuilded,e),t||this.waitForStylesheetLoad(),this.config.UNSAFE_replayCanvas&&this.preloadAllImages()}insertStyleRules(e,t){var n;let r=el(this.config.blockClass).concat(this.config.insertStyleRules);if(this.config.pauseAnimation&&r.push(`html.rrweb-paused *, html.rrweb-paused *:before, html.rrweb-paused *:after { animation-play-state: paused !important; }`),r.length){if(this.usingVirtualDom){let n=this.virtualDom.createElement(`style`);this.virtualDom.mirror.add(n,yo(n,this.virtualDom.unserializedId)),e.insertBefore(n,t),n.rules.push({source:V.StyleSheetRule,adds:r.map((e,t)=>({rule:e,index:t}))})}else{let i=document.createElement(`style`);e.insertBefore(i,t);for(let e=0;e<r.length;e++)(n=i.sheet)==null||n.insertRule(r[e],e)}}}attachDocumentToIframe(e,t){let n=this.usingVirtualDom?this.virtualDom.mirror:this.mirror,r=[],i=new Set,a=(e,a)=>{e.nodeName===`DIALOG`&&i.add(e),this.collectIframeAndAttachDocument(r,e);let o=n.getMeta(e);if(o?.type===Ts.Element&&o?.tagName.toUpperCase()===`HTML`){let{documentElement:e,head:n}=t.contentDocument;this.insertStyleRules(e,n)}if(!this.usingVirtualDom)for(let t of this.config.plugins||[])t.onBuild&&t.onBuild(e,{id:a,replayer:this})};jr(e.node,{doc:t.contentDocument,mirror:n,hackCss:!0,skipChild:!1,afterAppend:a,cache:this.cache}),a(t.contentDocument,e.node.id);for(let{mutationInQueue:e,builtNode:t}of r)this.attachDocumentToIframe(e,t),this.newDocumentQueue=this.newDocumentQueue.filter(t=>t!==e);i.forEach(e=>dl(e))}collectIframeAndAttachDocument(e,t){if(us(t,this.mirror)){let n=this.newDocumentQueue.find(e=>e.parentId===this.mirror.getId(t));n&&e.push({mutationInQueue:n,builtNode:t})}}waitForStylesheetLoad(){let e=this.iframe.contentDocument?.head;if(e){let t=new Set,n,r=this.service.state,i=()=>{r=this.service.state};this.emitter.on(U.Start,i),this.emitter.on(U.Pause,i);let a=()=>{this.emitter.off(U.Start,i),this.emitter.off(U.Pause,i)};e.querySelectorAll(`link[rel="stylesheet"]`).forEach(e=>{e.sheet||(t.add(e),e.addEventListener(`load`,()=>{t.delete(e),t.size===0&&n!==-1&&(r.matches(`playing`)&&this.play(this.getCurrentTime()),this.emitter.emit(U.LoadStylesheetEnd),n&&clearTimeout(n),a())}))}),t.size>0&&(this.service.send({type:`PAUSE`}),this.emitter.emit(U.LoadStylesheetStart),n=setTimeout(()=>{r.matches(`playing`)&&this.play(this.getCurrentTime()),n=-1,a()},this.config.loadTimeout))}}async preloadAllImages(){let e=[];for(let t of this.service.state.context.events)t.type===B.IncrementalSnapshot&&t.data.source===V.CanvasMutation&&(e.push(this.deserializeAndPreloadCanvasEvents(t.data,t)),(`commands`in t.data?t.data.commands:[t.data]).forEach(e=>{this.preloadImages(e,t)}));return Promise.all(e)}preloadImages(e,t){if(e.property===`drawImage`&&typeof e.args[0]==`string`&&!this.imageMap.has(t)){let e=document.createElement(`canvas`),t=e.getContext(`2d`),n=t?.createImageData(e.width,e.height);t?.putImageData(n,0,0)}}async deserializeAndPreloadCanvasEvents(e,t){if(!this.canvasEventMap.has(t)){let n={isUnchanged:!0};if(`commands`in e){let r=await Promise.all(e.commands.map(async e=>{let t=await Promise.all(e.args.map(rl(this.imageMap,null,n)));return{...e,args:t}}));n.isUnchanged===!1&&this.canvasEventMap.set(t,{...e,commands:r})}else{let r=await Promise.all(e.args.map(rl(this.imageMap,null,n)));n.isUnchanged===!1&&this.canvasEventMap.set(t,{...e,args:r})}}}applyIncremental(e,t){var n,r;let{data:i}=e;switch(i.source){case V.Mutation:try{this.applyMutation(i,t)}catch(e){this.warn(`Exception in mutation ${e.message||e}`,i)}break;case V.Drag:case V.TouchMove:case V.MouseMove:if(t){let e=i.positions[i.positions.length-1];this.mousePos={x:e.x,y:e.y,id:e.id,debugData:i}}else i.positions.forEach(n=>{let r={doAction:()=>{this.moveAndHover(n.x,n.y,n.id,t,i)},delay:n.timeOffset+e.timestamp-this.service.state.context.baselineTime};this.timer.addAction(r)}),this.timer.addAction({doAction(){},delay:e.delay-i.positions[0]?.timeOffset});break;case V.MouseInteraction:{if(i.id===-1)break;let e=new Event(Be(H[i.type])),n=this.mirror.getNode(i.id);if(!n)return this.debugNodeNotFound(i,i.id);this.emitter.emit(U.MouseInteraction,{type:i.type,target:n});let{triggerFocus:r}=this.config;switch(i.type){case H.Blur:`blur`in n&&n.blur();break;case H.Focus:r&&n.focus&&n.focus({preventScroll:!0});break;case H.Click:case H.TouchStart:case H.TouchEnd:case H.MouseDown:case H.MouseUp:t?(i.type===H.TouchStart?this.touchActive=!0:i.type===H.TouchEnd&&(this.touchActive=!1),i.type===H.MouseDown?this.lastMouseDownEvent=[n,e]:i.type===H.MouseUp&&(this.lastMouseDownEvent=null),this.mousePos={x:i.x||0,y:i.y||0,id:i.id,debugData:i}):(i.type===H.TouchStart&&(this.tailPositions.length=0),this.moveAndHover(i.x||0,i.y||0,i.id,t,i),i.type===H.Click?(this.mouse.classList.remove(`active`),this.mouse.offsetWidth,this.mouse.classList.add(`active`)):i.type===H.TouchStart?(this.mouse.offsetWidth,this.mouse.classList.add(`touch-active`)):i.type===H.TouchEnd?this.mouse.classList.remove(`touch-active`):n.dispatchEvent(e));break;case H.TouchCancel:t?this.touchActive=!1:this.mouse.classList.remove(`touch-active`);break;default:n.dispatchEvent(e)}break}case V.Scroll:if(i.id===-1)break;if(this.usingVirtualDom){let e=this.virtualDom.mirror.getNode(i.id);if(!e)return this.debugNodeNotFound(i,i.id);e.scrollData=i;break}this.applyScroll(i,t);break;case V.ViewportResize:this.emitter.emit(U.Resize,{width:i.width,height:i.height});break;case V.Input:if(i.id===-1)break;if(this.usingVirtualDom){let e=this.virtualDom.mirror.getNode(i.id);if(!e)return this.debugNodeNotFound(i,i.id);e.inputData=i;break}this.applyInput(i);break;case V.MediaInteraction:{let t=this.usingVirtualDom?this.virtualDom.mirror.getNode(i.id):this.mirror.getNode(i.id);if(!t)return this.debugNodeNotFound(i,i.id);let n=t,{events:r}=this.service.state.context;this.mediaManager.mediaMutation({target:n,timeOffset:e.timestamp-r[0].timestamp,mutation:i});break}case V.StyleSheetRule:case V.StyleDeclaration:this.usingVirtualDom?i.styleId?this.constructedStyleMutations.push(i):i.id&&((n=this.virtualDom.mirror.getNode(i.id))==null||n.rules.push(i)):this.applyStyleSheetMutation(i);break;case V.CanvasMutation:if(!this.config.UNSAFE_replayCanvas)return;if(this.usingVirtualDom){let t=this.virtualDom.mirror.getNode(i.id);if(!t)return this.debugNodeNotFound(i,i.id);t.canvasMutations.push({event:e,mutation:i})}else{let t=this.mirror.getNode(i.id);if(!t)return this.debugNodeNotFound(i,i.id);ll({event:e,mutation:i,target:t,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})}break;case V.Font:try{let e=new FontFace(i.family,i.buffer?new Uint8Array(JSON.parse(i.fontSource)):i.fontSource,i.descriptors);(r=this.iframe.contentDocument)==null||r.fonts.add(e)}catch(e){this.warn(e)}break;case V.Selection:if(t){this.lastSelectionData=i;break}this.applySelection(i);break;case V.AdoptedStyleSheet:this.usingVirtualDom?this.adoptedStyleSheets.push(i):this.applyAdoptedStyleSheet(i)}}applyMutation(e,t){if(this.config.useVirtualDom&&!this.usingVirtualDom&&t&&(this.usingVirtualDom=!0,go(this.iframe.contentDocument,this.mirror,this.virtualDom),Object.keys(this.legacy_missingNodeRetryMap).length))for(let e in this.legacy_missingNodeRetryMap)try{let t=this.legacy_missingNodeRetryMap[e],n=ho(t.node,this.virtualDom,this.mirror);n&&(t.node=n)}catch(e){this.warn(e)}let n=this.usingVirtualDom?this.virtualDom.mirror:this.mirror;e.removes=e.removes.filter(t=>n.getNode(t.id)?!0:(this.warnNodeNotFound(e,t.id),!1)),e.removes.forEach(t=>{let r=n.getNode(t.id);if(!r)return;let i=n.getNode(t.parentId);if(!i)return this.warnNodeNotFound(e,t.parentId);if(t.isShadow&&ps(i)&&(i=i.shadowRoot),n.removeNodeFromMap(r),i)try{i.removeChild(r),this.usingVirtualDom&&r.nodeName===`#text`&&i.nodeName===`STYLE`&&i.rules?.length>0&&(i.rules=[])}catch(t){if(t instanceof DOMException)this.warn(`parent could not remove child in mutation`,i,r,e);else throw t}});let r={...this.legacy_missingNodeRetryMap},i=[],a=e=>{let t=null;return e.nextId&&(t=n.getNode(e.nextId)),e.nextId!==null&&e.nextId!==void 0&&e.nextId!==-1&&!t},o=e=>{if(!this.iframe.contentDocument)return this.warn(`Looks like your replayer has been destroyed.`);let t=n.getNode(e.parentId);if(!t)return e.node.type===Ts.Document?this.newDocumentQueue.push(e):i.push(e);e.node.isShadow&&(ps(t)||t.attachShadow({mode:`open`}),t=t.shadowRoot);let o=null,s=null;if(e.previousId&&(o=n.getNode(e.previousId)),e.nextId&&(s=n.getNode(e.nextId)),a(e))return i.push(e);if(e.node.rootId&&!n.getNode(e.node.rootId))return;let c=e.node.rootId?n.getNode(e.node.rootId):this.usingVirtualDom?this.virtualDom:this.iframe.contentDocument;if(us(t,n)){this.attachDocumentToIframe(e,t);return}let l=(e,t)=>{if(!this.usingVirtualDom){dl(e);for(let n of this.config.plugins||[])n.onBuild&&n.onBuild(e,{id:t,replayer:this})}},u=jr(e.node,{doc:c,mirror:n,skipChild:!0,hackCss:!0,cache:this.cache,afterAppend:l});if(e.previousId===-1||e.nextId===-1){r[e.node.id]={node:u,mutation:e};return}let d=n.getMeta(t);if(d&&d.type===Ts.Element&&e.node.type===Ts.Text){let e=Array.isArray(t.childNodes)?t.childNodes:Array.from(t.childNodes);if(d.tagName===`textarea`)for(let n of e)n.nodeType===t.TEXT_NODE&&t.removeChild(n);else if(d.tagName===`style`&&e.length===1)for(let r of e)r.nodeType===t.TEXT_NODE&&!n.hasNode(r)&&(u.textContent=r.textContent,t.removeChild(r))}else if(d?.type===Ts.Document){let n=t;e.node.type===Ts.DocumentType&&n.childNodes[0]?.nodeType===Node.DOCUMENT_TYPE_NODE&&n.removeChild(n.childNodes[0]),u.nodeName===`HTML`&&n.documentElement&&n.removeChild(n.documentElement)}if(o&&o.nextSibling&&o.nextSibling.parentNode?t.insertBefore(u,o.nextSibling):s&&s.parentNode?t.contains(s)?t.insertBefore(u,s):t.insertBefore(u,null):t.appendChild(u),l(u,e.node.id),this.usingVirtualDom&&u.nodeName===`#text`&&t.nodeName===`STYLE`&&t.rules?.length>0&&(t.rules=[]),us(u,this.mirror)){let e=this.mirror.getId(u),t=this.newDocumentQueue.find(t=>t.parentId===e);t&&(this.attachDocumentToIframe(t,u),this.newDocumentQueue=this.newDocumentQueue.filter(e=>e!==t))}(e.previousId||e.nextId)&&this.legacy_resolveMissingNode(r,t,u,e)};e.adds.forEach(e=>{o(e)});let s=Date.now();for(;i.length;){let e=cs(i);if(i.length=0,Date.now()-s>500){this.warn(`Timeout in the loop, please check the resolve tree data:`,e);break}for(let t of e)n.getNode(t.value.parentId)?ls(t,e=>{o(e)}):this.debug(`Drop resolve tree since there is no parent for the root node.`,t)}Object.keys(r).length&&Object.assign(this.legacy_missingNodeRetryMap,r),gs(e.texts).forEach(t=>{let r=n.getNode(t.id);if(!r)return e.removes.find(e=>e.id===t.id)?void 0:this.warnNodeNotFound(e,t.id);let i=r.parentElement;if(r.textContent=t.value&&i&&i.tagName===`STYLE`?xr(t.value,this.cache):t.value,this.usingVirtualDom){let e=r.parentNode;e?.rules?.length>0&&(e.rules=[])}}),e.attributes.forEach(t=>{let r=n.getNode(t.id);if(!r)return e.removes.find(e=>e.id===t.id)?void 0:this.warnNodeNotFound(e,t.id);for(let e in t.attributes)if(typeof e==`string`){let i=t.attributes[e];if(i===null)r.removeAttribute(e),e===`open`&&fl(r,t);else if(typeof i==`string`)try{if(e===`_cssText`&&(r.nodeName===`LINK`||r.nodeName===`STYLE`))try{let e=n.getMeta(r),i=jr({...e,attributes:{...e.attributes,...t.attributes}},{doc:r.ownerDocument,mirror:n,skipChild:!0,hackCss:!0,cache:this.cache});Object.assign(e.attributes,t.attributes);let a=r.nextSibling,o=r.parentNode;if(i&&o){o.removeChild(r),o.insertBefore(i,a),n.replace(t.id,i);break}}catch{}if(e===`value`&&r.nodeName===`TEXTAREA`){let e=r;e.childNodes.forEach(t=>e.removeChild(t));let t=r.ownerDocument?.createTextNode(i);t&&e.appendChild(t)}else r.setAttribute(e,i);e===`rr_open_mode`&&r.nodeName===`DIALOG`&&dl(r,t)}catch(e){this.warn(`An error occurred may due to the checkout feature.`,e)}else if(e===`style`){let e=i,t=r;for(let n in e)if(e[n]===!1)t.style.removeProperty(n);else if(e[n]instanceof Array){let r=e[n];t.style.setProperty(n,r[0],r[1])}else{let r=e[n];t.style.setProperty(n,r)}}}})}applyScroll(e,t){var n,r;let i=this.mirror.getNode(e.id);if(!i)return this.debugNodeNotFound(e,e.id);let a=this.mirror.getMeta(i);if(i===this.iframe.contentDocument)(n=this.iframe.contentWindow)==null||n.scrollTo({top:e.y,left:e.x,behavior:t?`auto`:`smooth`});else if(a?.type===Ts.Document)(r=i.defaultView)==null||r.scrollTo({top:e.y,left:e.x,behavior:t?`auto`:`smooth`});else try{i.scrollTo({top:e.y,left:e.x,behavior:t?`auto`:`smooth`})}catch{}}applyInput(e){let t=this.mirror.getNode(e.id);if(!t)return this.debugNodeNotFound(e,e.id);try{t.checked=e.isChecked,t.value=e.text}catch{}}applySelection(e){try{let t=new Set,n=e.ranges.map(({start:e,startOffset:n,end:r,endOffset:i})=>{let a=this.mirror.getNode(e),o=this.mirror.getNode(r);if(!a||!o)return;let s=new Range;s.setStart(a,n),s.setEnd(o,i);let c=a.ownerDocument?.getSelection();return c&&t.add(c),{range:s,selection:c}});t.forEach(e=>e.removeAllRanges()),n.forEach(e=>e&&e.selection?.addRange(e.range))}catch{}}applyStyleSheetMutation(e){let t=null;e.styleId?t=this.styleMirror.getStyle(e.styleId):e.id&&(t=this.mirror.getNode(e.id)?.sheet||null),t&&(e.source===V.StyleSheetRule?this.applyStyleSheetRule(e,t):e.source===V.StyleDeclaration&&this.applyStyleDeclaration(e,t))}applyStyleSheetRule(e,t){var n,r,i,a;if((n=e.adds)==null||n.forEach(({rule:e,index:n})=>{try{if(Array.isArray(n)){let{positions:r,index:i}=hs(n);ms(t.cssRules,r)?.insertRule(e,i)}else{let r=n===void 0?void 0:Math.min(n,t.cssRules.length);t?.insertRule(e,r)}}catch{}}),(r=e.removes)==null||r.forEach(({index:e})=>{try{if(Array.isArray(e)){let{positions:n,index:r}=hs(e);ms(t.cssRules,n)?.deleteRule(r||0)}else t?.deleteRule(e)}catch{}}),typeof e.replace==`string`)try{(i=t.replace)==null||i.call(t,e.replace)}catch{}if(typeof e.replaceSync==`string`)try{(a=t.replaceSync)==null||a.call(t,e.replaceSync)}catch{}}applyStyleDeclaration(e,t){if(e.set){let n=ms(t.rules,e.index);n?.style&&n.style.setProperty(e.set.property,e.set.value,e.set.priority)}if(e.remove){let n=ms(t.rules,e.index);n?.style&&n.style.removeProperty(e.remove.property)}}applyAdoptedStyleSheet(e){var t;let n=this.mirror.getNode(e.id);if(!n)return;(t=e.styles)==null||t.forEach(e=>{let t=null,r=null;if(ps(n)?r=n.ownerDocument?.defaultView||null:n.nodeName===`#document`&&(r=n.defaultView),r)try{t=new r.CSSStyleSheet,this.styleMirror.add(t,e.styleId),this.applyStyleSheetRule({source:V.StyleSheetRule,adds:e.rules},t)}catch{}});let r=0,i=(e,t)=>{let n=t.map(e=>this.styleMirror.getStyle(e)).filter(e=>e!==null);ps(e)?e.shadowRoot.adoptedStyleSheets=n:e.nodeName===`#document`&&(e.adoptedStyleSheets=n),n.length!==t.length&&r<10&&(setTimeout(()=>i(e,t),0+100*r),r++)};i(n,e.styleIds)}legacy_resolveMissingNode(e,t,n,r){let{previousId:i,nextId:a}=r,o=i&&e[i],s=a&&e[a];if(o){let{node:r,mutation:i}=o;t.insertBefore(r,n),delete e[i.node.id],delete this.legacy_missingNodeRetryMap[i.node.id],(i.previousId||i.nextId)&&this.legacy_resolveMissingNode(e,t,r,i)}if(s){let{node:r,mutation:i}=s;t.insertBefore(r,n.nextSibling),delete e[i.node.id],delete this.legacy_missingNodeRetryMap[i.node.id],(i.previousId||i.nextId)&&this.legacy_resolveMissingNode(e,t,r,i)}}moveAndHover(e,t,n,r,i){let a=this.mirror.getNode(n);if(!a)return this.debugNodeNotFound(i,n);let o=fs(a,this.iframe),s=e*o.absoluteScale+o.x,c=t*o.absoluteScale+o.y;this.mouse.style.left=`${s}px`,this.mouse.style.top=`${c}px`,r||this.drawMouseTail({x:s,y:c}),this.hoverElements(a)}drawMouseTail(e){if(!this.mouseTail)return;let{lineCap:t,lineWidth:n,strokeStyle:r,duration:i}=this.config.mouseTail===!0?gl:Object.assign({},gl,this.config.mouseTail),a=()=>{if(!this.mouseTail)return;let e=this.mouseTail.getContext(`2d`);e&&this.tailPositions.length&&(e.clearRect(0,0,this.mouseTail.width,this.mouseTail.height),e.beginPath(),e.lineWidth=n,e.lineCap=t,e.strokeStyle=r,e.moveTo(this.tailPositions[0].x,this.tailPositions[0].y),this.tailPositions.forEach(t=>e.lineTo(t.x,t.y)),e.stroke())};this.tailPositions.push(e),a(),setTimeout(()=>{this.tailPositions=this.tailPositions.filter(t=>t!==e),a()},i/this.speedService.state.context.timer.speed)}hoverElements(e){var t;(t=this.lastHoveredRootNode||this.iframe.contentDocument)==null||t.querySelectorAll(`.\\:hover`).forEach(e=>{e.classList.remove(`:hover`)}),this.lastHoveredRootNode=e.getRootNode();let n=e;for(;n;)n.classList&&n.classList.add(`:hover`),n=n.parentElement}isUserInteraction(e){return e.type===B.IncrementalSnapshot&&e.data.source>V.Mutation&&e.data.source<=V.Input}backToNormal(){this.nextUserInteractionEvent=null,!this.speedService.state.matches(`normal`)&&(this.speedService.send({type:`BACK_TO_NORMAL`}),this.emitter.emit(U.SkipEnd,{speed:this.speedService.state.context.normalSpeed}))}warnNodeNotFound(e,t){this.warn(`Node with id '${t}' not found. `,e)}warnCanvasMutationFailed(e,t){this.warn(`Has error on canvas update`,t,`canvas mutation:`,e)}debugNodeNotFound(e,t){this.debug(`Node with id '${t}' not found. `,e)}warn(...e){this.config.showWarning&&this.config.logger.warn(hl,...e)}debug(...e){this.config.showDebug&&this.config.logger.log(hl,...e)}},{addCustomEvent:yl}=Nc,{freezePage:bl}=Nc,{takeFullSnapshot:xl}=Nc,Sl=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Cl={MissingAllowOriginHeader:`CORS: the response has no Access-Control-Allow-Origin header`,AllowOriginMismatch:`CORS: Access-Control-Allow-Origin does not match this page's origin`,MultipleAllowOriginValues:`CORS: the response has more than one Access-Control-Allow-Origin value`,InvalidAllowOriginValue:`CORS: Access-Control-Allow-Origin has an invalid value`,WildcardOriginNotAllowed:`CORS: Access-Control-Allow-Origin is * but the request sends credentials`,InvalidAllowCredentials:`CORS: Access-Control-Allow-Credentials must be true for a request with credentials`,PreflightInvalidStatus:`CORS: the preflight request did not succeed (HTTP status not 2xx)`,PreflightMissingAllowOriginHeader:`CORS: the preflight response has no Access-Control-Allow-Origin header`,PreflightAllowOriginMismatch:`CORS: the preflight's Access-Control-Allow-Origin does not match this page's origin`,MethodDisallowedByPreflightResponse:`CORS: the preflight does not allow this method`,HeaderDisallowedByPreflightResponse:`CORS: the preflight does not allow this header`,PreflightDisallowedRedirect:`CORS: the preflight was redirected, which is not allowed`,DisallowedByMode:`CORS: the request mode does not allow cross-origin responses`,CorsDisabledScheme:`CORS: cross-origin requests are not supported for this URL scheme`},wl={"mixed-content":`Blocked: mixed content (an http:// request from an https:// page)`,csp:`Blocked by the page's Content Security Policy`,inspector:`Blocked by DevTools request blocking`,"subresource-filter":`Blocked by Chrome's ad filter`,"content-type":`Blocked: the response's Content-Type is not allowed here`,origin:`Blocked: the request's origin is not allowed`};function Tl(e){let t=e.corsErrorStatus;if(t&&typeof t.corsError==`string`&&t.corsError){let e=Sl(Cl,t.corsError)?Cl[t.corsError]:`CORS error: ${t.corsError}`;return t.failedParameter?`${e} (${t.failedParameter})`:e}let n=e.blockedReason;return typeof n==`string`&&n?Sl(wl,n)?wl[n]:n.startsWith(`corp-`)?`Blocked by the response's Cross-Origin-Resource-Policy header`:n.startsWith(`coep-`)?`Blocked by Cross-Origin-Embedder-Policy`:`Blocked by Chrome (${n})`:e.error||void 0}function El(e){return(e.status??0)>=400||!!e.error||!!e.blockedReason||!!e.corsErrorStatus}function Dl(e){return e.kind===`websocket`?e.error&&e.status!==101?`failed`:e.pending?`open`:String(e.status??101):e.pending?`pending`:e.corsErrorStatus?`CORS`:e.blockedReason?`blocked`:e.error?`failed`:e.status?String(e.status):e.kind===`beacon`?`sent`:`—`}function Ol(e){return e.error||e.blockedReason||e.corsErrorStatus||(e.status??0)>=400?`bad`:e.pending?`pending`:(e.status??0)>=300?`redirect`:`ok`}function kl(e){switch(e.kind){case`resource`:return e.initiator?`resource (${e.initiator})`:`resource`;case`navigation`:return e.navType?`document (${e.navType})`:`document`;default:return e.resourceType&&e.resourceType!==e.kind?`${e.kind} (${e.resourceType})`:e.kind}}function Al(e){let t=[];return e.cache&&t.push(`${e.cache} cache`),e.fromServiceWorker&&t.push(e.swSource?`service worker (${e.swSource})`:`service worker`),t.length?t.join(` · `):void 0}var jl={worker:`worker`,shared_worker:`shared worker`,service_worker:`service worker`};function Ml(e){let t=e.worker;if(!t||typeof t!=`object`)return;let n=Sl(jl,t.type)?jl[t.type]:String(t.type??`worker`);return t.url?`${n} · ${t.url}`:n}var Nl={SameSiteNoneInsecure:`SameSite=None requires Secure`,SecureOnly:`Secure cookie on an insecure connection`,SameSiteLax:`SameSite=Lax: not sent on cross-site requests`,SameSiteStrict:`SameSite=Strict: not sent on cross-site requests`,SameSiteUnspecifiedTreatedAsLax:`no SameSite attribute (treated as Lax)`,DomainMismatch:`domain does not match`,NotOnPath:`path does not match`,UserPreferences:`blocked by the user's cookie settings`,ThirdPartyPhaseout:`third-party cookies are blocked`,ThirdPartyBlockedInFirstPartySet:`third-party cookies are blocked`,SyntaxError:`invalid Set-Cookie syntax`,InvalidDomain:`invalid Domain attribute`,InvalidPrefix:`invalid __Secure-/__Host- prefix`,OverwriteSecure:`would overwrite a Secure cookie`,SchemeNotSupported:`URL scheme does not support cookies`};function Pl(e){return Sl(Nl,e)?Nl[e]:e}function Fl(e){let t=Pl(e);return t===e?e:`${t} (${e})`}var Il=`[redacted]`;function Ll(e,t,n=`
138
+ `){if(!e||typeof e!=`object`)return;let r=t.toLowerCase(),i=[];for(let[t,n]of Object.entries(e))t.toLowerCase()===r&&typeof n==`string`&&i.push(n);return i.length?i.join(n):void 0}var Rl=e=>e.includes(Il)&&e.replaceAll(Il,``).replace(/[\s;]/g,``)===``;function zl(e){let t=[];for(let n of e.split(`;`)){let e=n.trim();if(!e)continue;let r=e.indexOf(`=`);t.push(r<0?{name:``,value:e}:{name:e.slice(0,r).trim(),value:e.slice(r+1).trim()})}return t}function Bl(e){let t=[];for(let n of e.split(`
139
+ `)){let e=n.trim();if(!e)continue;let r=e.indexOf(`;`),i=r<0?e:e.slice(0,r),a=i.indexOf(`=`),o=a<0?{name:``,value:i.trim()}:{name:i.slice(0,a).trim(),value:i.slice(a+1).trim()},s=r<0?``:e.slice(r+1).trim();s&&(o.attrs=s),t.push(o)}return t}function Vl(e){return Array.isArray(e)?e.filter(e=>e&&typeof e.name==`string`).map(e=>({name:e.name,blocked:Array.isArray(e.reasons)?e.reasons.map(String):[],domain:e.domain,path:e.path})):[]}function Hl(e){let t=Ll(e.reqHeaders,`cookie`,`; `),n=!!t&&Rl(t),r=t&&!n?zl(t):[];return r.push(...Vl(e.blockedCookies)),{rows:r,redacted:n}}function Ul(e){let t=Ll(e.resHeaders,`set-cookie`,`
140
+ `),n=!!t&&Rl(t),r=t&&!n?Bl(t):[];for(let t of Vl(e.blockedSetCookies)){let e=r.find(e=>!e.blocked&&e.name===t.name);e?Object.assign(e,{blocked:t.blocked,domain:t.domain,path:t.path}):r.push(t)}return{rows:r,redacted:n}}var Wl=e=>typeof e==`number`&&Number.isFinite(e)&&e>=0;function Gl(e){if(!e||typeof e!=`object`)return null;let t=Wl(e.ssl)?e.ssl:void 0,n=Wl(e.connect)?t===void 0?e.connect:Math.max(0,e.connect-t):void 0,r=[[`blocked`,`Queueing / stalled`,e.blocked],[`dns`,`DNS lookup`,e.dns],[`connect`,`Initial connection`,n],[`ssl`,`TLS`,t],[`send`,`Request sent`,e.send],[`wait`,`Waiting (TTFB)`,e.wait],[`receive`,`Content download`,e.receive]],i=[],a=0;for(let[e,t,n]of r)Wl(n)&&(i.push({key:e,label:t,start:a,ms:n}),a+=n);return i.length?{phases:i,total:a}:null}function Kl(e){return e===0?`0 ms`:e<10?`${e.toFixed(1)} ms`:e<1e3?`${Math.round(e)} ms`:`${(e/1e3).toFixed(e<1e4?2:1)} s`}function ql(e){let t={sent:0,received:0,sentBytes:0,receivedBytes:0},n=0,r=0;for(let{data:i}of e){if(typeof i.dropped==`number`&&i.dropped>0&&(n+=i.dropped),i.error)continue;i.dataOmitted&&r++;let e=typeof i.size==`number`&&i.size>0?i.size:0;i.dir===`send`?(t.sent++,t.sentBytes+=e):i.dir===`recv`&&(t.received++,t.receivedBytes+=e)}return n&&(t.dropped=n),r&&(t.dataOmitted=r),t}function Jl(e){return`${e.sent??0}↑ ${e.received??0}↓ · ${h((e.sentBytes??0)+(e.receivedBytes??0))}`}var Yl=e=>(typeof e==`number`&&Number.isFinite(e)?e:0).toLocaleString(`en-US`),Xl=(e,t,n=`${t}s`)=>`${Yl(e)} ${e===1?t:n}`,Zl=300;function Ql(e){if(e.error)return{text:e.error,tone:`error`};switch(e.opcode){case 2:return{text:`binary, ${Xl(e.size??0,`byte`)}`,tone:`note`};case 8:return{text:e.data?`close · ${$l(e.data)}`:`close`,tone:`note`};case 9:return{text:`ping`,tone:`note`};case 10:return{text:`pong`,tone:`note`}}return e.dataRemoved?{text:`data removed from this export`,tone:`note`}:e.dataOmitted?{text:`data not recorded (over 1 MB/s)`,tone:`note`}:typeof e.data==`string`?e.data?{text:$l(e.data),tone:`data`}:{text:`(empty)`,tone:`note`}:{text:e.size?`no data`:`(empty)`,tone:`note`}}function $l(e){return(e.length>Zl?e.slice(0,Zl):e).replace(/\s+/g,` `).trim()}var eu={1:`text`,2:`binary`,8:`close`,9:`ping`,10:`pong`};function tu(e){return eu[e]??`opcode ${e}`}var nu=new Set([`load`,`start`,`bfcache`]),ru=[`LCP`,`CLS`,`INP`];function K(e,t){return e.split(`#`,1)[0]===t.split(`#`,1)[0]}function iu(e,t){let n=[];for(let e of[...t].sort((e,t)=>e.ts-t.ts))nu.has(e.kind)?n.push({ts:e.ts,offset:e.offset,url:e.url,metrics:{},routes:[],slots:new Map}):n.at(-1)?.routes.push({ts:e.ts,offset:e.offset,url:e.url});let r=n.length>0,i=new Map;for(let t of e){let e=t.data,n=e.id||`${e.name} ${e.url}`,r=i.get(n);if(!r){i.set(n,{name:e.name,url:e.url,first:t,latest:t});continue}t.ts<r.first.ts&&(r.first=t,r.url=e.url),t.ts>=r.latest.ts&&(r.latest=t)}let a=[...i.values()].sort((e,t)=>e.first.ts-t.first.ts);for(let e of a){let t;if(r){let r=au(n,e.first.ts),i=n[r],a=n[r+1];t=a&&a.ts-e.first.ts<=1e4&&(!i||i.slots.has(e.name)||!K(i.url,e.url)&&K(a.url,e.url))?a:i??n[0]}else{let r=n.at(-1);r&&!r.slots.has(e.name)&&K(r.url,e.url)?t=r:(t={ts:e.first.ts,offset:e.first.offset,url:e.url,metrics:{},routes:[],slots:new Map},n.push(t))}let i=t.slots.get(e.name);(!i||e.latest.ts>=i.latest.ts)&&t.slots.set(e.name,e)}return n.map(({slots:e,...t})=>{for(let[n,r]of e)t.metrics[n]=r.latest;return t})}function au(e,t){let n=-1;for(let r=0;r<e.length&&e[r].ts<=t;r++)n=r;return n}function ou(e,t){let n=e[0];for(let r of e){if(r.offset>t)break;n=r}return n}function su(e,t){let n;for(let r of e.routes){if(r.offset>t)break;n=r}return n}function cu(e){let t=e.data.attribution?.time;return typeof t==`number`&&Number.isFinite(t)&&t>0xe8d4a51000?t:e.ts}var lu={good:`good`,"needs-improvement":`needs improvement`,poor:`poor`},uu={LCP:`Largest Contentful Paint`,CLS:`Cumulative Layout Shift`,INP:`Interaction to Next Paint`,FCP:`First Contentful Paint`,TTFB:`Time to First Byte`};function du(e,t){return e===`CLS`?t===0?`0`:t<.01?`<0.01`:t.toFixed(2):t<1e3?`${Math.round(t)} ms`:`${(t/1e3).toFixed(2)} s`}var fu=e=>e===void 0?void 0:`${Math.round(e)} ms`;function pu(e){let t=e.attribution??{},n=[],r=(e,t)=>{t!==void 0&&t!==``&&n.push(`${e}: ${t}`)};switch(e.name){case`LCP`:r(`Element`,t.target),r(`Resource`,t.url),r(`Time to first byte`,fu(t.timeToFirstByte)),r(`Resource load delay`,fu(t.resourceLoadDelay)),r(`Resource load duration`,fu(t.resourceLoadDuration)),r(`Element render delay`,fu(t.elementRenderDelay));break;case`CLS`:r(`Largest shift`,t.target),r(`Largest shift value`,t.largestShiftValue===void 0?void 0:du(`CLS`,t.largestShiftValue));break;case`INP`:r(`Target`,t.target),r(`Interaction`,t.interactionType),r(`Input delay`,fu(t.inputDelay)),r(`Processing`,fu(t.processingDuration)),r(`Presentation delay`,fu(t.presentationDelay));break;default:r(`Load state`,t.loadState)}return n}var mu=new Set([`init`,`action`,`snapshot`]),hu=e=>`wc:${e}`;function gu(e,t){if(t===null)return;let n=e.find(e=>e.key===t);if(n||!t.startsWith(hu(``)))return n;let r=t.slice(hu(``).length);return e.find(e=>e.data.kind===`websocket`&&e.data.id===r)}function _u(e){let t=[];e.forEach((e,n)=>{e&&typeof e==`object`&&Number.isFinite(e.ts)&&e.data!==null&&typeof e.data==`object`&&t.push(n)}),t.sort((t,n)=>e[t].ts-e[n].ts);let n=[];for(let r of t)e[r].type===`rrweb`&&n.push(e[r].data);let r=n.length,i=n.findIndex((e,t)=>e.type===B.Meta&&n[t+1]?.type===B.FullSnapshot),a=i>=0,o=n.slice(0,Math.max(i,0)).filter(e=>e.type!==B.DomContentLoaded&&e.type!==B.Load).length;i>0&&(n=n.slice(i));let s=t.length?e[t[0]].ts:0,c=t.length?e[t[t.length-1]].ts:0,l=a?n[0].timestamp:s,u=Math.max(a?n[n.length-1].timestamp:c,l)-l,d=e=>Math.min(Math.max(e-l,0),u),f=n[0]?.type===B.Meta?n[0].data:void 0,p={rrweb:n,replayable:a,skipped:o,rrwebCount:r,start:l,duration:u,viewport:f?{width:f.width,height:f.height}:void 0,network:[],console:[],events:[],story:[],pages:[],vitals:[],vitalPages:[],freezes:[],ws:new Map,state:[],stores:[]},m=[],h=new Set,g=(e,t)=>{let n=`${e.type[0]}${t}`,r=d(e.ts);switch(e.type){case`network`:if(p.network.push({key:n,ts:e.ts,offset:r,data:e.data}),El(e.data)){let{path:t}=v(e.data.url);p.story.push({key:n,ts:e.ts,offset:r,kind:`net-error`,title:`${e.data.kind===`websocket`?`WS`:e.data.method} ${t}`,detail:Tl(e.data)??`${e.data.status} ${e.data.statusText??``}`.trim(),ref:{tab:`network`,key:n}})}break;case`ws`:{let t=e.data.conn;if(typeof t!=`string`)break;let i=p.ws.get(t);i||p.ws.set(t,i=[]),i.push({key:n,ts:e.ts,offset:r,data:e.data});break}case`state`:{let t=e.data;if(typeof t.store!=`string`||!mu.has(t.kind))break;p.state.push({key:n,ts:e.ts,offset:r,data:t}),h.has(t.store)||(h.add(t.store),p.stores.push(t.store));break}case`console`:p.console.push({key:n,ts:e.ts,offset:r,data:e.data}),e.data.level===`error`&&p.story.push({key:n,ts:e.ts,offset:r,kind:`error`,title:Du(e.data.text),detail:Ou(e.data),ref:{tab:`console`,key:n}});break;case`event`:{p.events.push({key:n,ts:e.ts,offset:r,data:e.data});let t=vu(e.data);t&&p.story.push({key:n,ts:e.ts,offset:r,...t}),e.data.name===`page_view`&&(p.pages.push({offset:r,url:e.data.url,title:e.data.title}),m.push({ts:e.ts,offset:r,url:e.data.url,kind:e.data.kind}));break}case`perf`:{let t=e.data;t?.kind===`vital`?p.vitals.push({key:n,ts:e.ts,offset:r,data:t}):t?.kind===`loaf`&&t.duration>200&&(p.freezes.push({key:n,ts:e.ts,offset:r,data:t}),p.story.push({key:n,ts:e.ts,offset:r,...Cu(t)}));break}}};for(let n of t)try{g(e[n],n)}catch{}let _=new Set;for(let e of p.network)e.data.kind===`websocket`&&_.add(e.data.id);let y=[];for(let[e,t]of p.ws){if(_.has(e))continue;let n=t[0];y.push({key:hu(e),ts:n.ts,offset:n.offset,placeholder:!0,data:{id:e,kind:`websocket`,method:`GET`,url:``,status:101,pending:!0,source:`cdp`,frames:ql(t)}})}if(y.length&&(p.network=p.network.concat(y).sort((e,t)=>e.ts-t.ts)),!p.pages.length)for(let e of n)e.type===B.Meta&&p.pages.push({offset:d(e.timestamp),url:e.data.href});return p.vitalPages=p.vitals.length?iu(p.vitals,m):[],p}function vu(e){switch(e.name){case`page_view`:{let{host:t,path:n}=v(e.url);return{kind:`page`,title:`Page viewed ${n}`,detail:[e.title,t].filter(Boolean).join(` · `)}}case`click`:return{kind:`click`,title:`Clicked ${Tu(e.target)}`,detail:e.target.selector};case`rage_click`:return{kind:`rage`,title:`Rage click ×${e.count} on ${Tu(e.target)}`,detail:e.target.selector};case`change`:return{kind:`change`,title:`Changed ${Eu(e.target)}`,detail:e.masked?`•••••••• (password, not recorded)`:e.value?`“${e.value}”`:`(empty)`};case`submit`:return{kind:`submit`,title:`Submitted form ${Eu(e.target)}`,detail:[e.method,e.action].filter(Boolean).join(` `)};case`marker`:return{kind:`marker`,title:e.label};case`custom`:return{kind:`custom`,title:String(e.event),detail:yu(xu(e.props),e.propsTruncated&&`props shortened to 8 KB`,bu(e.dropped)),payload:e.props};case`identify`:return{kind:`identify`,title:e.userId?`Identified as ${e.userId}`:`Identified`,detail:yu(xu(e.traits),e.propsTruncated&&`traits shortened to 8 KB`,bu(e.dropped)),payload:e.traits}}return null}function yu(...e){return e.filter(Boolean).join(` · `)||void 0}function bu(e){return e?`${e.toLocaleString()} earlier call${e===1?``:`s`} dropped (rate limit)`:void 0}function xu(e){return!e||typeof e!=`object`?``:Object.entries(e).map(([e,t])=>`${e}: ${Su(t)}`).join(` · `)}function Su(e){if(typeof e==`string`)return e;if(typeof e!=`object`||!e)return String(e);let t=JSON.stringify(e);return t.length>80?`${t.slice(0,79)}…`:t}function Cu(e){let t=e.scripts?.[0],n=t?wu(t):``;return{kind:`freeze`,title:`Freeze ${m(e.duration)}${n?` · ${n}`:``}`,detail:yu(e.blockingDuration>0&&`blocking ${m(e.blockingDuration)}`,t?.invoker&&t.invoker!==n&&t.invoker,t?.url&&v(t.url).path)}}function wu(e){return[e.url?e.url.split(/[?#]/,1)[0].split(`/`).filter(Boolean).pop()??``:``,e.fn].filter(Boolean).join(` `)||e.invoker||``}function Tu(e){let t=e.text||e.ariaLabel||e.title||e.alt||e.placeholder;return t?`“${t}”`:e.id?`<${e.tag}#${e.id}>`:`<${e.tag}>`}function Eu(e){let t=e.name||e.id||e.ariaLabel||e.placeholder||e.testId;return t?`“${t}”`:`<${e.tag}>`}function Du(e){let t=String(e??``).split(`
141
+ `,1)[0];return t.length>160?`${t.slice(0,159)}…`:t}function Ou(e){switch(e.source){case`uncaught`:return e.url?`Uncaught · ${v(e.url).path}:${e.line??0}`:`Uncaught exception`;case`unhandledrejection`:return`Unhandled promise rejection`;case`resource`:return`Resource failed to load`;default:return`console.error`}}function ku(e,t){let n=0,r=e.length-1,i=-1;for(;n<=r;){let a=n+r>>1;e[a].offset<=t?(i=a,n=a+1):r=a-1}return i}var Au=e=>`'${e.replace(/'/g,`'\\''`)}'`;function ju(e){let t=[`curl`,Au(e.url)];e.method!==`GET`&&t.push(`-X`,e.method);for(let[n,r]of Object.entries(e.reqHeaders??{}))n.startsWith(`:`)||t.push(`-H`,Au(`${n}: ${r}`));return e.reqBody!==void 0&&e.reqBodyNote!==`FormData`&&t.push(`--data-raw`,Au(e.reqBody)),t.join(` `)}var Mu=e((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),q=e(((e,t)=>{t.exports=Mu()}))(),Nu=300,Pu=[1,2,4,8],Fu=1e3;function Iu({data:e,onTime:t,initialTime:n=0,range:r=null,onRangeChange:i,live:a,ref:o}){let s=(0,l.useRef)(null),c=(0,l.useRef)(null),u=(0,l.useRef)(t);u.current=t;let d=(0,l.useRef)(e);d.current=e;let p=(0,l.useRef)(a);p.current=a;let m=a?.feed,h=!!a?.streaming,[g,_]=(0,l.useState)(!1),[v,y]=(0,l.useState)(()=>Math.min(Math.max(n,0),e.duration)),[b,x]=(0,l.useState)(1),[S,C]=(0,l.useState)(!0),[ee,w]=(0,l.useState)(!1),[te,T]=(0,l.useState)(h),[ne,re]=(0,l.useState)(0),[E,ie]=(0,l.useState)(0),ae=Math.max(e.duration,h&&e.replayable?E:0,te?v:0),oe=(0,l.useRef)(g);oe.current=g;let se=(0,l.useRef)(v);se.current=v;let D=(0,l.useRef)(ae);D.current=ae;let ce=(0,l.useRef)(te);ce.current=te;let le=(0,l.useRef)(b);le.current=b;let ue=(0,l.useRef)(S);ue.current=S;let de=(0,l.useRef)({at:n,play:!1}),fe=(0,l.useRef)(0),pe=(0,l.useRef)(0);(0,l.useEffect)(()=>{let e=s.current,t=d.current;if(!e||!t.replayable)return;let n=p.current,r=!!n?.streaming&&ce.current,i=t.rrweb[0].timestamp,a=t.rrweb;n&&n.feed.rrweb.length>t.rrwebCount&&(a=a.concat(n.feed.rrweb.slice(t.rrwebCount).filter(e=>e.timestamp>=i)));let o=new vl(a,{root:e,liveMode:r,speed:r?1:le.current,skipInactive:!r&&ue.current,showWarning:!1,triggerFocus:!1,mouseTail:{strokeStyle:`rgba(229, 72, 77, 0.55)`,lineWidth:2,duration:600}});c.current=o,pe.current=i,fe.current=n?n.feed.rrweb.length:0;let l=!1,f={w:t.viewport?.width??1280,h:t.viewport?.height??800},m={last:null},h=o.wrapper,g=()=>{let{width:t,height:n}=e.getBoundingClientRect(),r=Math.min((t-24)/f.w,(n-24)/f.h);Object.assign(h.style,{position:`absolute`,left:`50%`,top:`50%`,transformOrigin:`center center`,transform:`translate(-50%, -50%) scale(${Math.max(r,.05)})`})};o.on(`resize`,e=>{m.last=e,f={w:m.last.width,h:m.last.height},g()}),o.on(`finish`,()=>{let e=d.current.duration;_(!1),y(e),u.current(e)}),o.on(`skip-start`,()=>w(!0)),o.on(`skip-end`,()=>w(!1));let v=new ResizeObserver(g);if(v.observe(e),g(),r)o.pause(a[a.length-1].timestamp-i+1),o.startLive(Date.now()-Fu),_(!0);else{let{at:e,play:n}=de.current,r=Math.min(Math.max(e,0),t.duration);n?(o.play(r),_(!0)):r>0&&o.pause(r<t.duration?r:r+1),y(r),u.current(r)}let b=m.last,x=a.find(e=>e.type===B.Meta)?.data;return b&&x&&(b.width!==x.width||b.height!==x.height)&&setTimeout(()=>{let e=m.last;if(!l&&e&&e!==b&&e.width===x.width&&e.height===x.height){o.iframe.style.display=`inherit`;for(let e of[o.iframe,h.querySelector(`canvas.replayer-mouse-tail`)])e?.setAttribute(`width`,String(b.width)),e?.setAttribute(`height`,String(b.height));m.last=b,f={w:b.width,h:b.height},g()}},0),()=>{l=!0,v.disconnect(),o.timer.clear(),o.destroy(),o.service.stop(),o.speedService.stop(),c.current===o&&(c.current=null),_(!1),w(!1)}},[m,m?null:e,e.replayable,ne]),(0,l.useEffect)(()=>{if(m)return m.subscribe(()=>{let e=c.current;if(!e)return;let t=m.rrweb;for(let n=fe.current;n<t.length;n++)t[n].timestamp>=pe.current&&e.addEvent(t[n]);fe.current=t.length})},[m]),(0,l.useEffect)(()=>{if(!h)return;let e=()=>ie(Math.max(0,Date.now()-Fu-d.current.start));e();let t=setInterval(e,250);return()=>clearInterval(t)},[h]),(0,l.useEffect)(()=>{!h&&ce.current&&(de.current={at:d.current.duration,play:!1},T(!1),re(e=>e+1))},[h]),(0,l.useEffect)(()=>{if(!g)return;let e=0,t=0,n=r=>{let i=c.current;if(i&&r-t>80){t=r;let e=ce.current?i.getCurrentTime():Math.min(i.getCurrentTime(),D.current);y(e),u.current(e)}e=requestAnimationFrame(n)};return e=requestAnimationFrame(n),()=>cancelAnimationFrame(e)},[g]);let me=(0,l.useCallback)((e,t)=>{let n=Math.max(0,Math.min(e,d.current.duration));de.current={at:n,play:t},T(!1),y(n),u.current(n),re(e=>e+1)},[]),he=(0,l.useCallback)(()=>{p.current?.streaming&&d.current.replayable&&(T(!0),re(e=>e+1))},[]),ge=(0,l.useCallback)(e=>{let t=d.current,n=Math.max(0,Math.min(e,D.current));if(ce.current){t.replayable&&me(n,n<t.duration);return}y(n),u.current(n);let r=c.current;r&&(oe.current?r.play(n):r.pause(n))},[me]),_e=(0,l.useCallback)(()=>{let e=c.current;if(!e)return;if(ce.current){me(e.getCurrentTime(),!1);return}if(oe.current){e.pause(),_(!1);return}let t=d.current;if(p.current?.streaming&&se.current>=t.duration-50){he();return}let n=se.current>=D.current-50?0:se.current;e.play(n),_(!0)},[me,he]),ve=(0,l.useCallback)(e=>{ce.current&&e>0||ge(se.current+e)},[ge]);(0,l.useImperativeHandle)(o,()=>({seek:ge,toggle:_e,nudge:ve}),[ge,_e,ve]);let ye=e=>{x(e),ce.current||c.current?.setConfig({speed:e})},be=e=>{C(e),ce.current||c.current?.setConfig({skipInactive:e})};return(0,q.jsxs)(`div`,{className:`player`,children:[(0,q.jsxs)(`div`,{className:`stage`,ref:s,children:[!e.replayable&&(h?(0,q.jsxs)(`div`,{className:`stage-message`,children:[(0,q.jsx)(`div`,{className:`spinner`}),(0,q.jsx)(`strong`,{children:`Waiting for the first snapshot…`}),(0,q.jsx)(`span`,{children:`The replay starts as soon as the recorder sends the page's snapshot.`})]}):(0,q.jsxs)(`div`,{className:`stage-message`,children:[(0,q.jsx)(`strong`,{children:`No replayable snapshot`}),(0,q.jsx)(`span`,{children:`The beginning of this recording was deleted by the ring buffer and no later snapshot is left. Network, console and events are still listed on the right.`})]})),ee&&(0,q.jsx)(`div`,{className:`skip-badge`,children:`Skipping inactivity…`})]}),(0,q.jsxs)(`div`,{className:`controls`,children:[(0,q.jsx)(`button`,{className:`play`,onClick:_e,disabled:!e.replayable,title:te?`Pause (leaves live mode)`:`Play/pause (space)`,children:g?`❚❚`:`▶`}),(0,q.jsxs)(`span`,{className:`clock mono`,children:[f(v),` `,(0,q.jsxs)(`span`,{className:`muted`,children:[`/ `,f(ae)]})]}),h&&(te?(0,q.jsx)(`span`,{className:`live-pill`,title:`Following the recording as it happens, 1 s behind. Pause or seek to look back.`,children:`LIVE`}):(0,q.jsx)(`button`,{className:`chip-btn back-live`,onClick:he,disabled:!e.replayable,title:`Follow the recording as it happens`,children:`Back to live`})),(0,q.jsx)(Lu,{time:v,total:ae,markers:e.story,freezes:e.freezes,onSeek:ge,range:r,onRangeChange:i}),r&&(0,q.jsxs)(`span`,{className:`range-chip mono`,title:`Selected range: Copy steps, Download HTML and Download HAR use it. Shift+drag or [ and ] to change, Esc to clear.`,children:[f(r.from),`–`,f(r.to),(0,q.jsx)(`button`,{className:`icon-btn`,onClick:()=>i?.(null),title:`Clear the selection (Esc)`,children:`✕`})]}),(0,q.jsx)(`div`,{className:`speed`,title:te?`Live playback runs at 1×`:void 0,children:Pu.map(e=>(0,q.jsxs)(`button`,{className:e===b?`on`:``,onClick:()=>ye(e),disabled:te,children:[e,`×`]},e))}),(0,q.jsxs)(`label`,{className:`skip-toggle`,title:`Fast-forward through periods without interaction`,children:[(0,q.jsx)(`input`,{type:`checkbox`,checked:S,onChange:e=>be(e.target.checked)}),` Skip idle`]})]})]})}function Lu({time:e,total:t,markers:n,freezes:r,onSeek:i,range:a,onRangeChange:o}){let s=(0,l.useRef)(null),[c,u]=(0,l.useState)(null),[d,p]=(0,l.useState)(null),[h,g]=(0,l.useState)(null),_=e=>`${t>0?e/t*100:0}%`,v=e=>{let n=s.current.getBoundingClientRect();return Math.min(Math.max((e-n.left)/n.width,0),1)*t},y=d??e,b=h?{from:Math.min(h.anchor,h.at),to:Math.max(h.anchor,h.at)}:a;return(0,q.jsxs)(`div`,{className:`timeline`,ref:s,title:`Click to seek · Shift+drag to select a range`,onPointerDown:e=>{e.currentTarget.setPointerCapture(e.pointerId);let t=v(e.clientX);e.shiftKey&&o?g({anchor:t,at:t}):p(t)},onPointerMove:e=>{let t=v(e.clientX);u(t),h?g({...h,at:t}):d!==null&&p(t)},onPointerUp:e=>{let t=v(e.clientX);if(h){let e=Math.min(h.anchor,t),n=Math.max(h.anchor,t);o?.(n-e>=Nu?{from:Math.round(e),to:Math.round(n)}:null),g(null);return}d!==null&&i(t),p(null)},onPointerLeave:()=>u(null),children:[(0,q.jsx)(`div`,{className:`track`,children:(0,q.jsx)(`div`,{className:`fill`,style:{width:_(y)}})}),r.map(e=>(0,q.jsx)(`span`,{className:`freeze`,title:`Freeze ${m(e.data.duration)}`,style:{left:_(e.offset),width:_(Math.max(0,Math.min(e.data.duration,t-e.offset)))}},e.key)),b&&(0,q.jsx)(`div`,{className:`range-band`,style:{left:_(b.from),width:_(b.to-b.from)}}),n.map(e=>e.kind===`freeze`?null:(0,q.jsx)(`span`,{className:`marker ${e.kind}`,style:{left:_(e.offset)}},e.key)),(0,q.jsx)(`div`,{className:`thumb`,style:{left:_(y)}}),c!==null&&(0,q.jsx)(`div`,{className:`hover-time mono`,style:{left:_(c)},children:f(c)})]})}function Ru({items:e,time:t,follow:n,selected:r,empty:i,onPick:a,children:o}){let s=ku(e,t),c=(0,l.useRef)(null);return(0,l.useEffect)(()=>{!n||s<0||(c.current?.querySelector(`[data-index="${s}"]`))?.scrollIntoView({block:`nearest`})},[s,n]),e.length?(0,q.jsx)(`div`,{className:`list`,ref:c,children:e.map((e,t)=>(0,q.jsxs)(`div`,{"data-index":t,className:`row ${t===s?`current`:t>s?`future`:``} ${e.key===r?`selected`:``}`,onClick:()=>a(e),children:[(0,q.jsx)(`span`,{className:`row-time mono`,children:f(e.offset)}),o(e)]},e.key))}):(0,q.jsx)(`div`,{className:`list-empty`,children:i})}var zu=2e3;function Bu({frames:e,time:t,onSeek:n}){let[r,i]=(0,l.useState)(zu),[a,o]=(0,l.useState)(null),s=ku(e,t),c=e.length>r?e.slice(0,r):e,u=e.length-c.length,d=e=>{if(!getSelection()?.toString()){if(a===e.key){o(null);return}o(e.key),n(e.offset+50)}};return(0,q.jsxs)(`details`,{open:!0,className:`ws-section`,children:[(0,q.jsxs)(`summary`,{children:[`Messages `,(0,q.jsx)(`span`,{className:`muted`,children:Yl(e.length)})]}),e.length?(0,q.jsx)(`div`,{className:`ws-messages`,children:c.map((e,t)=>{let n=e.data,r=Ql(n),i=a===e.key,o=n.dir===`send`;return(0,q.jsxs)(l.Fragment,{children:[typeof n.dropped==`number`&&n.dropped>0&&(0,q.jsxs)(`div`,{className:`ws-note`,children:[Xl(n.dropped,`message`),` not recorded (over 200/s)`]}),(0,q.jsxs)(`div`,{className:`ws-msg ${o?`send`:`recv`} ${t===s?`current`:t>s?`future`:``} ${i?`selected`:``}`,title:`${o?`Sent`:`Received`} ${n.error?`frame error`:tu(n.opcode)} at ${p(e.offset)}, ${Xl(n.size??0,`byte`)}`,onClick:()=>d(e),children:[(0,q.jsx)(`span`,{className:`ws-dir`,"aria-label":o?`sent`:`received`,children:o?`↑`:`↓`}),(0,q.jsx)(`span`,{className:`ws-time mono`,children:f(e.offset)}),(0,q.jsx)(`span`,{className:`ws-size mono`,children:h(n.size??0)}),n.truncated&&(0,q.jsx)(`span`,{className:`badge warn`,title:`Recorded up to 64 KB`,children:`TRUNCATED`}),(0,q.jsx)(`span`,{className:`ws-data ${r.tone} ${i?`expanded`:``}`,children:i?Vu(n,r):r.text})]})]},e.key)})}):(0,q.jsx)(`div`,{className:`muted body-note`,children:`No messages recorded.`}),u>0&&(0,q.jsxs)(`button`,{className:`chip-btn ws-more`,onClick:()=>i(e=>e+zu),children:[`Show `,Yl(Math.min(zu,u)),` more (`,Yl(u),` not shown)`]})]})}function Vu(e,t){if(t.tone!==`data`||typeof e.data!=`string`)return t.text;let n=b(e.data).text;return e.truncated?`${n}\n… cut at 64 KB`:n}var Hu=[];function Uu({item:e,frames:t=Hu,start:n,time:r,onSeek:i,onClose:a}){let o=e.data,s=o.kind===`websocket`,c=Tl(o);return(0,q.jsxs)(`section`,{className:`net-detail${s?` ws-detail`:``}`,children:[(0,q.jsxs)(`header`,{children:[(0,q.jsx)(`span`,{className:`status ${Ol(o)}`,children:Dl(o)}),(0,q.jsx)(`span`,{className:`method`,children:s?`WS`:o.method}),(0,q.jsx)(`span`,{className:`url mono`,title:o.url,children:e.placeholder?`WebSocket (open)`:o.url}),(0,q.jsx)(`button`,{className:`icon-btn`,onClick:a,title:`Close`,children:`✕`})]}),!!o.url&&(0,q.jsxs)(`div`,{className:`net-actions`,children:[(0,q.jsx)(Z,{label:`Copy URL`,text:o.url}),!s&&o.kind!==`resource`&&o.kind!==`navigation`&&(0,q.jsx)(Z,{label:`Copy as cURL`,text:ju(o)}),o.resBody!==void 0&&(0,q.jsx)(Z,{label:`Copy response`,text:o.resBody})]}),(0,q.jsxs)(`div`,{className:`net-body`,children:[c&&(0,q.jsx)(`div`,{className:`failure`,children:c}),s?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(Ju,{item:e,frames:t,start:n,reason:c}),(0,q.jsx)(Y,{title:`Handshake request headers`,headers:o.reqHeaders}),(0,q.jsx)(Y,{title:`Handshake response headers`,headers:o.resHeaders}),(0,q.jsx)(Bu,{frames:t,time:r,onSeek:i})]}):(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(Gu,{item:e,reason:c}),(0,q.jsx)(Xu,{timing:o.timing}),(0,q.jsx)(Zu,{d:o}),(0,q.jsx)(Y,{title:`Request headers`,headers:o.reqHeaders}),(0,q.jsx)(X,{title:`Request body`,text:o.reqBody,note:o.reqBodyNote,truncated:o.reqBodyTruncated}),(0,q.jsx)(Y,{title:`Response headers`,headers:o.resHeaders}),(0,q.jsx)(X,{title:`Response body`,text:o.resBody,note:o.resBodyNote,truncated:o.resBodyTruncated})]})]})]})}function Wu({label:e,children:t,className:n}){return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`dt`,{children:e}),(0,q.jsx)(`dd`,{className:n,children:t})]})}function Gu({item:e,reason:t}){let n=e.data;return(0,q.jsxs)(`dl`,{className:`facts`,children:[(0,q.jsx)(Wu,{label:`Started`,children:f(e.offset)}),(0,q.jsx)(Wu,{label:`Type`,children:kl(n)}),n.status!==void 0&&(0,q.jsxs)(Wu,{label:`Status`,children:[n.status,` `,n.statusText]}),n.duration!==void 0&&(0,q.jsxs)(Wu,{label:`Duration`,children:[m(n.duration),n.ttfb!==void 0&&(0,q.jsxs)(`span`,{className:`muted`,children:[` (first byte `,m(n.ttfb),`)`]})]}),(n.resSize??n.transferSize)!==void 0&&(0,q.jsxs)(Wu,{label:`Size`,children:[h(n.resSize),n.transferSize?(0,q.jsxs)(`span`,{className:`muted`,children:[` (`,h(n.transferSize),` transferred)`]}):null]}),n.mime&&(0,q.jsx)(Wu,{label:`Content type`,className:`mono`,children:n.mime}),(0,q.jsx)(Ku,{d:n,reason:t}),n.pending&&(0,q.jsx)(Wu,{label:`Note`,children:`Still in flight when the page unloaded or recording stopped.`}),(0,q.jsx)(qu,{d:n})]})}function Ku({d:e,reason:t}){return(0,q.jsxs)(q.Fragment,{children:[e.error&&e.error!==t&&(0,q.jsx)(Wu,{label:`Error`,className:`mono`,children:e.error}),e.corsErrorStatus?.corsError&&(0,q.jsxs)(Wu,{label:`CORS error`,className:`mono`,children:[e.corsErrorStatus.corsError,e.corsErrorStatus.failedParameter&&` (${e.corsErrorStatus.failedParameter})`]}),e.blockedReason&&(0,q.jsx)(Wu,{label:`Blocked reason`,className:`mono`,children:e.blockedReason})]})}function qu({d:e}){let t=Al(e),n=Ml(e);return(0,q.jsxs)(q.Fragment,{children:[e.protocol&&(0,q.jsx)(Wu,{label:`Protocol`,children:e.protocol}),e.remoteAddress&&(0,q.jsx)(Wu,{label:`Remote address`,className:`mono`,children:e.remoteAddress}),t&&(0,q.jsx)(Wu,{label:`Cache`,children:t}),n&&(0,q.jsx)(Wu,{label:`Worker`,children:n}),e.source===`cdp`&&(0,q.jsx)(Wu,{label:`Recorded`,children:`deep mode (Chrome DevTools Protocol)`})]})}function Ju({item:e,frames:t,start:n,reason:r}){let i=e.data,a=i.frames??ql(t);return(0,q.jsxs)(`dl`,{className:`facts`,children:[(0,q.jsx)(Wu,{label:e.placeholder?`First message`:`Opened`,children:f(e.offset)}),(0,q.jsx)(Wu,{label:`Closed`,children:i.closedAt===void 0?e.placeholder?`not known yet`:i.pending?`still open when the recording stopped`:i.error?`— (the handshake failed)`:`—`:f(i.closedAt-n)}),e.placeholder&&(0,q.jsx)(Wu,{label:`Note`,children:`The connection record (URL, handshake, counts) is written when the socket closes; until it is there, this row is built from the messages.`}),i.duration!==void 0&&(0,q.jsx)(Wu,{label:`Duration`,children:m(i.duration)}),i.status!==void 0&&!e.placeholder&&(0,q.jsxs)(Wu,{label:`Status`,children:[i.status,` `,i.statusText]}),(0,q.jsxs)(Wu,{label:`Messages`,children:[Yl(a.sent),` sent `,(0,q.jsxs)(`span`,{className:`muted`,children:[`(`,h(a.sentBytes??0),`)`]}),` · `,Yl(a.received),` received`,` `,(0,q.jsxs)(`span`,{className:`muted`,children:[`(`,h(a.receivedBytes??0),`)`]})]}),!!a.dropped&&(0,q.jsxs)(Wu,{label:`Dropped`,children:[Xl(a.dropped,`message`),` not recorded: over 200 messages per second`]}),!!a.dataOmitted&&(0,q.jsxs)(Wu,{label:`Without data`,children:[Yl(a.dataOmitted),` recorded without data: over 1 MB per second`]}),(0,q.jsx)(Ku,{d:i,reason:r}),(0,q.jsx)(qu,{d:i})]})}var Yu=(e,t)=>`${t>0?Math.min(100,e/t*100):0}%`;function Xu({timing:e}){let t=Gl(e);return t?(0,q.jsxs)(`details`,{open:!0,className:`timing`,children:[(0,q.jsxs)(`summary`,{children:[`Timing `,(0,q.jsx)(`span`,{className:`muted`,children:Kl(t.total)})]}),(0,q.jsxs)(`div`,{className:`waterfall`,children:[t.phases.map(e=>(0,q.jsxs)(`div`,{className:`wf-row wf-${e.key}`,children:[(0,q.jsx)(`span`,{className:`wf-label`,children:e.label}),(0,q.jsx)(`span`,{className:`wf-track`,children:(0,q.jsx)(`span`,{className:`wf-bar`,style:{left:Yu(e.start,t.total),width:Yu(e.ms,t.total)}})}),(0,q.jsx)(`span`,{className:`wf-ms mono`,children:Kl(e.ms)})]},e.key)),(0,q.jsxs)(`div`,{className:`wf-row wf-total`,children:[(0,q.jsx)(`span`,{className:`wf-label`,children:`Total`}),(0,q.jsx)(`span`,{}),(0,q.jsx)(`span`,{className:`wf-ms mono`,children:Kl(t.total)})]})]})]}):null}function Zu({d:e}){let t=Hl(e),n=Ul(e),r=t.rows.length+n.rows.length;if(!r&&!t.redacted&&!n.redacted)return null;let i=t.rows.concat(n.rows).filter(e=>e.blocked).length;return(0,q.jsxs)(`details`,{open:!0,className:`cookies`,children:[(0,q.jsxs)(`summary`,{children:[`Cookies `,(0,q.jsx)(`span`,{className:`muted`,children:r}),i>0&&(0,q.jsxs)(`span`,{className:`badge blocked`,children:[i,` BLOCKED`]})]}),(0,q.jsx)(J,{title:`Request cookies`,list:t}),(0,q.jsx)(J,{title:`Response cookies (Set-Cookie)`,list:n})]})}function J({title:e,list:t}){return!t.rows.length&&!t.redacted?null:(0,q.jsxs)(`div`,{className:`cookie-group`,children:[(0,q.jsx)(`div`,{className:`cookie-title`,children:e}),t.redacted&&(0,q.jsx)(`div`,{className:`muted body-note`,children:`The header is hidden ([redacted]).`}),t.rows.length>0&&(0,q.jsx)(`table`,{className:`headers cookie-table`,children:(0,q.jsx)(`tbody`,{children:t.rows.map((e,t)=>(0,q.jsxs)(`tr`,{className:e.blocked?`cookie blocked`:`cookie`,children:[(0,q.jsx)(`th`,{children:e.name||(0,q.jsx)(`span`,{className:`muted`,children:`(no name)`})}),(0,q.jsxs)(`td`,{children:[e.value!==void 0&&(0,q.jsx)(`span`,{className:`mono`,children:e.value}),e.attrs&&(0,q.jsxs)(`span`,{className:`cookie-attrs muted`,children:[` `,e.attrs]}),e.blocked&&(0,q.jsxs)(`div`,{className:`cookie-blocked`,children:[(0,q.jsx)(`span`,{className:`badge blocked`,children:`BLOCKED`}),e.blocked.length?e.blocked.map(Fl).join(` · `):`no reason given`,(e.domain||e.path)&&(0,q.jsxs)(`span`,{className:`muted`,children:[` `,`· `,e.domain??``,e.path??``]})]})]})]},t))})})]})}function Y({title:e,headers:t}){let n=Object.entries(t??{});return n.length?(0,q.jsxs)(`details`,{open:!0,children:[(0,q.jsxs)(`summary`,{children:[e,` `,(0,q.jsx)(`span`,{className:`muted`,children:n.length})]}),(0,q.jsx)(`table`,{className:`headers`,children:(0,q.jsx)(`tbody`,{children:n.map(([e,t])=>(0,q.jsxs)(`tr`,{children:[(0,q.jsx)(`th`,{children:e}),(0,q.jsx)(`td`,{className:`mono`,children:t})]},e))})})]}):null}function X({title:e,text:t,note:n,truncated:r}){if(t===void 0&&!n)return null;let i=t===void 0?void 0:b(t);return(0,q.jsxs)(`details`,{open:!0,children:[(0,q.jsxs)(`summary`,{children:[e,i?.json&&(0,q.jsx)(`span`,{className:`muted`,children:` JSON`}),r&&(0,q.jsx)(`span`,{className:`badge warn`,children:`TRUNCATED`})]}),n&&(0,q.jsx)(`div`,{className:`muted body-note`,children:n}),i&&(0,q.jsx)(`pre`,{className:`body`,children:i.text||(0,q.jsx)(`span`,{className:`muted`,children:`(empty)`})})]})}function Z({label:e,text:t}){let[n,r]=(0,l.useState)(!1);return(0,q.jsx)(`button`,{className:`chip-btn`,onClick:async()=>{await navigator.clipboard.writeText(t),r(!0),setTimeout(()=>r(!1),1200)},children:n?`Copied`:e})}var Q=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Qu=e=>typeof e==`object`&&!!e,$u=/^(0|[1-9]\d*)$/;function ed(e){return e===``?[]:typeof e!=`string`||e[0]!==`/`?null:e.slice(1).split(`/`).map(e=>e.includes(`~`)?e.replace(/~1/g,`/`).replace(/~0/g,`~`):e)}function td(e){return e.map(e=>`/${e.replace(/~/g,`~0`).replace(/\//g,`~1`)}`).join(``)}var nd=Object.freeze({found:!1});function rd(e,t){if(Array.isArray(e)){if(!$u.test(t))return nd;let n=Number(t);return n<e.length?{found:!0,value:e[n]}:nd}return Qu(e)&&Q(e,t)?{found:!0,value:e[t]}:nd}function id(e,t){let n=typeof t==`string`?ed(t):t;if(!n)return nd;if(!n.length)return e===void 0?nd:{found:!0,value:e};let r=e;for(let e of n){let t=rd(r,e);if(!t.found)return nd;r=t.value}return{found:!0,value:r}}function ad(e,t,n){if(!Array.isArray(t))return e;for(let r of t){if(!r||typeof r!=`object`||typeof r.path!=`string`)continue;let t=ed(r.path);t&&(e=od(e,t,r,n))}return e}function od(e,t,n,r){let i=n.deleted===!0;if(!t.length)return i?void 0:n.value;if(i?!id(e,t).found:!sd(e,t))return e;let a=cd(e,t[0],r),o=a;for(let e=0;e<t.length-1;e++){let n=rd(o,t[e]),i=cd(n.value,t[e+1],r);i!==n.value&&ld(o,t[e],i),o=i}let s=t[t.length-1];return i?ud(o,s):ld(o,s,n.value),a}function sd(e,t){let n=e;for(let e of t){if(Array.isArray(n)){if(e!==`-`&&!($u.test(e)&&Number(e)<=n.length))return!1}else if(n===void 0)return!0;else if(!Qu(n))return!1;n=rd(n,e).value}return!0}function cd(e,t,n){if(Qu(e)){if(n.has(e))return e;let t=Array.isArray(e)?e.slice():{...e};return n.add(t),t}let r=t===`-`?[]:{};return n.add(r),r}function ld(e,t,n){Array.isArray(e)?e[t===`-`?e.length:Number(t)]=n:t===`__proto__`?Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0}):e[t]=n}function ud(e,t){Array.isArray(e)?e.splice(Number(t),1):delete e[t]}var dd=16,fd=class{store;items;lastFull;lastBurst;checkpoints=new Map;recent=new Map;byKey=new Map;constructor(e,t,n){this.store=e,this.items=t,this.lastFull=new Int32Array(t.length),this.lastBurst=new Int32Array(t.length);let r=-1,i=-1;t.forEach((e,t)=>{e.data.state===void 0?e.data.burst&&(i=t):r=t,this.lastFull[t]=r,this.lastBurst[t]=i,this.byKey.set(e.key,t)});let a=n?.items.length??0;if(n&&a>0&&a<=t.length&&t[a-1].key===n.items[a-1].key){for(let[e,t]of n.checkpoints)this.checkpoints.set(e,t);for(let[e,t]of n.recent)this.recent.set(e,t)}}indexOf(e){return this.byKey.get(e)??-1}indexAt(e){return ku(this.items,e)}at(e){let t=this.items.length;if(e<0||!t)return{index:-1,state:void 0,base:-1,uncertain:!1};e>=t&&(e=t-1);let n=this.lastFull[e];return{index:e,state:this.stateAfter(e),base:n,uncertain:this.lastBurst[e]>n}}atTime(e){return this.at(this.indexAt(e))}changesOf(e){let t=this.items[e]?.data;if(!t||t.kind!==`action`||t.state===void 0&&!Array.isArray(t.changes))return{rows:[],full:!1,more:!1,uncertain:!1};let n=this.at(e-1),r=n.uncertain||n.base<0;if(t.state!==void 0)return{...md(n.state,t.state,100),full:!0,uncertain:r};let i=[];for(let e of t.changes){if(!e||typeof e.path!=`string`)continue;let t=id(n.state,e.path),r=e.deleted===!0;i.push({path:e.path,hadPrev:t.found,prev:t.value,deleted:r,next:r?void 0:e.value})}return{rows:i,full:!1,more:!1,uncertain:r}}stateAfter(e){let t=this.lastFull[e];if(t===e)return this.items[e].data.state;if(this.recent.has(e)){let t=this.recent.get(e);return this.recent.delete(e),this.recent.set(e,t),t}let n=t,r=t>=0?this.items[t].data.state:void 0;for(let i=e-e%32;i>t;i-=32)if(this.checkpoints.has(i)){n=i,r=this.checkpoints.get(i);break}let i=new Set;for(let t=n+1;t<=e;t++)r=ad(r,this.items[t].data.changes,i),t%32==0&&(this.checkpoints.set(t,r),i=new Set);return this.recent.set(e,r),this.recent.size>dd&&this.recent.delete(this.recent.keys().next().value),r}};function pd(e,t){let n=new Map;for(let t of e){let e=n.get(t.data.store);e||n.set(t.data.store,e=[]),e.push(t)}let r=new Map;for(let[e,i]of n)r.set(e,new fd(e,i,t?.get(e)));return r}function md(e,t,n=100){let r=[],i=[],a=!1,o=e=>{r.length>=n?a=!0:r.push({path:td(i),...e})},s=(e,t)=>{i.push(e),t(),i.pop()},c=(e,t)=>{if(!(e===t||a)){if(Qu(e)&&Qu(t)&&Array.isArray(e)===Array.isArray(t)){if(Array.isArray(e)){let n=t;for(let t=0;t<Math.max(e.length,n.length)&&!a;t++)s(String(t),()=>{t>=n.length?o({hadPrev:!0,prev:e[t],deleted:!0}):t>=e.length?o({hadPrev:!1,deleted:!1,next:n[t]}):c(e[t],n[t])})}else{let n=e,r=t;for(let e of Object.keys(n)){if(a)break;s(e,()=>Q(r,e)?c(n[e],r[e]):o({hadPrev:!0,prev:n[e],deleted:!0}))}for(let e of Object.keys(r)){if(a)break;Q(n,e)||s(e,()=>o({hadPrev:!1,deleted:!1,next:r[e]}))}}return}o(e===void 0?{hadPrev:!1,deleted:!1,next:t}:t===void 0?{hadPrev:!0,prev:e,deleted:!0}:{hadPrev:!0,prev:e,deleted:!1,next:t})}};return c(e,t),{rows:r,more:a}}function hd(e){return e.kind===`action`?e.action||`(action)`:e.kind===`init`?`@@INIT`:`snapshot`}function gd(e){if(e.kind!==`action`||e.state!==void 0)return`full state`;if(e.burst)return`burst`;let t=Array.isArray(e.changes)?e.changes.length:0;return t?`${t} change${t===1?``:`s`}`:`no changes`}function _d(e){return typeof e==`string`&&e.startsWith(`[…`)&&e.endsWith(`not recorded]`)}function vd(e,t=120){let n=``,r=e=>(n+=e,n.length<=t),i=e=>{if(e===void 0)return r(`undefined`);if(typeof e==`string`)return r(JSON.stringify(e.length>t?e.slice(0,t):e));if(!Qu(e))return r(String(e));if(Array.isArray(e)){if(!r(`[`))return!1;for(let t=0;t<e.length;t++)if(t>0&&!r(`,`)||!i(e[t]))return!1;return r(`]`)}if(!r(`{`))return!1;let n=!0;for(let t in e)if(Q(e,t)){if(!n&&!r(`,`)||!r(`${JSON.stringify(t)}:`)||!i(e[t]))return!1;n=!1}return r(`}`)};return i(e),n.length>t?`${n.slice(0,t-1)}…`:n}var yd=`No state recorded. Redux Toolkit and Zustand stores (devtools) are recorded automatically; other apps can call tabtape.state().`,bd=`State may be incomplete here: actions came too fast (over 50/s); the next snapshot re-syncs it.`;function xd({items:e,stores:t,time:n,follow:r,query:i,selected:a,onPick:o,onClose:s}){let[c,u]=(0,l.useState)(``),d=(0,l.useRef)(void 0),f=(0,l.useMemo)(()=>d.current=pd(e,d.current),[e]),p=(0,l.useMemo)(()=>new Map(e.map(e=>[e.key,e])),[e]),m=c&&f.has(c)?c:``,h=(0,l.useMemo)(()=>e.filter(e=>e.data.kind!==`snapshot`&&(!m||e.data.store===m)&&(!i||`${hd(e.data)} ${e.data.store}`.toLowerCase().includes(i))),[e,m,i]);if(!e.length)return(0,q.jsx)(`div`,{className:`state-panel`,children:(0,q.jsx)(`div`,{className:`list-empty`,children:yd})});let g=a?p.get(a):void 0,_=g&&(!m||g.data.store===m)?f.get(g.data.store):void 0,v=g&&_?_.indexOf(g.key):-1;return(0,q.jsxs)(`div`,{className:`state-panel`,children:[t.length>1&&(0,q.jsx)(`div`,{className:`state-toolbar`,children:(0,q.jsxs)(`select`,{className:`state-store`,value:m,onChange:e=>u(e.target.value),"aria-label":`Store`,children:[(0,q.jsx)(`option`,{value:``,children:`All stores`}),t.map(e=>(0,q.jsx)(`option`,{value:e,children:e},e))]})}),(0,q.jsx)(Ru,{items:h,time:n,follow:r,selected:a,empty:i?`No matching actions.`:`No actions.`,onPick:o,children:e=>(0,q.jsx)(Sd,{d:e.data})}),(0,q.jsxs)(`div`,{className:`state-view`,children:[_&&v>=0&&(0,q.jsx)(Cd,{history:_,index:v,onClose:s},g.key),(0,q.jsx)(`div`,{className:`state-tree`,children:(m?[m]:t).map(e=>{let t=f.get(e);return t?(0,q.jsx)(Td,{history:t,time:n},e):null})})]})]})}function Sd({d:e}){let t=gd(e);return(0,q.jsxs)(`div`,{className:`row-main`,children:[(0,q.jsx)(`div`,{className:`row-title`,children:hd(e)}),(0,q.jsxs)(`div`,{className:`row-detail`,children:[e.store,` · `,(0,q.jsx)(`span`,{className:t===`burst`?`state-burst`:void 0,children:t})]})]})}function Cd({history:e,index:t,onClose:n}){let r=e.items[t],i=r.data,a=(0,l.useMemo)(()=>e.changesOf(t),[e,t]),o=i.payload&&typeof i.payload==`object`&&Object.keys(i.payload).length?i.payload:void 0;return(0,q.jsxs)(`section`,{className:`state-detail`,children:[(0,q.jsxs)(`header`,{children:[(0,q.jsx)(`span`,{className:`state-action mono`,children:hd(i)}),(0,q.jsxs)(`span`,{className:`muted small`,children:[i.store,` · `,p(r.offset)]}),(0,q.jsx)(`button`,{className:`icon-btn`,onClick:n,title:`Close`,children:`✕`})]}),i.kind===`action`?(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`div`,{className:`state-sub`,children:[`Payload`,i.payloadTruncated&&(0,q.jsx)(`span`,{className:`badge warn`,title:`Shortened to 8 KB`,children:`TRUNCATED`})]}),o?(0,q.jsx)(`pre`,{className:`state-payload`,children:JSON.stringify(o,null,2)}):(0,q.jsx)(`div`,{className:`muted body-note`,children:`No payload.`}),i.burst?(0,q.jsx)(`div`,{className:`state-note`,children:`Recorded during a burst (over 50 actions per second): only the action type is known, not what it changed.`}):(0,q.jsx)(wd,{changes:a})]}):(0,q.jsx)(`div`,{className:`muted body-note`,children:i.kind===`init`?`The store connected: its full state was recorded.`:`A snapshot of the full state${i.reason?` (${i.reason})`:``}.`})]})}function wd({changes:e}){let{rows:t,full:n,more:r,uncertain:i}=e;return(0,q.jsxs)(q.Fragment,{children:[(0,q.jsxs)(`div`,{className:`state-sub`,children:[`Changed fields `,(0,q.jsx)(`span`,{className:`muted`,children:r?`${t.length}+`:t.length})]}),n&&(0,q.jsxs)(`div`,{className:`muted body-note`,children:[`The change was too big to record path by path (over 200 paths or 64 KB), so the full new state was recorded; these are the differences`,r?` (the first 100)`:``,`.`]}),i&&(0,q.jsx)(`div`,{className:`state-note`,children:`Previous values may be incomplete: no full state of this store is known right before this action.`}),t.length?(0,q.jsxs)(`table`,{className:`state-changes`,children:[(0,q.jsx)(`thead`,{children:(0,q.jsxs)(`tr`,{children:[(0,q.jsx)(`th`,{children:`Path`}),(0,q.jsx)(`th`,{children:`Previous → new`})]})}),(0,q.jsx)(`tbody`,{children:t.map((e,t)=>(0,q.jsxs)(`tr`,{children:[(0,q.jsx)(`td`,{className:`state-path mono`,children:e.path||`(whole state)`}),(0,q.jsxs)(`td`,{className:`state-values mono`,children:[e.hadPrev?(0,q.jsx)(`span`,{className:`state-prev`,title:vd(e.prev,2e3),children:vd(e.prev)}):(0,q.jsx)(`span`,{className:`state-added`,children:`(added)`}),(0,q.jsx)(`span`,{className:`state-arrow`,children:` → `}),e.deleted?(0,q.jsx)(`span`,{className:`state-deleted`,children:`(deleted)`}):(0,q.jsx)(`span`,{className:`state-next`,title:vd(e.next,2e3),children:vd(e.next)})]})]},t))})]}):(0,q.jsx)(`div`,{className:`muted body-note`,children:`No state change.`})]})}function Td({history:e,time:t}){let n=e.indexAt(t),r=(0,l.useMemo)(()=>e.at(n),[e,n]),i=n>=0?e.items[n]:void 0,a=r.base>=0?e.items[r.base]:void 0;return i?(0,q.jsxs)(`div`,{className:`state-root`,children:[(0,q.jsxs)(`div`,{className:`state-basis`,children:[`after `,(0,q.jsx)(`span`,{className:`mono`,children:hd(i.data)}),` at `,p(i.offset)]}),r.uncertain&&(0,q.jsx)(`div`,{className:`state-note`,children:bd}),r.base<0&&(0,q.jsx)(`div`,{className:`state-note`,children:`No full state of this store was recorded before this moment: only the changes since are shown.`}),a?.data.truncated&&(0,q.jsx)(`div`,{className:`muted body-note`,children:`Branches over 1 MB were not recorded: they show as notes.`}),(0,q.jsx)(Od,{name:e.store,value:r.state,depth:0})]}):(0,q.jsx)(`div`,{className:`state-root`,children:(0,q.jsxs)(`div`,{className:`state-basis`,children:[(0,q.jsx)(`span`,{className:`mono`,children:e.store}),`: no state yet, its first record is at `,p(e.items[0].offset)]})})}var Ed=200,Dd=1e3,Od=(0,l.memo)(function e({name:t,value:n,depth:r}){let[i,a]=(0,l.useState)(r<2),[o,s]=(0,l.useState)(Ed);if(typeof n!=`object`||!n)return(0,q.jsxs)(`div`,{className:`tree-row`,children:[(0,q.jsx)(`span`,{className:`tree-caret`}),(0,q.jsx)(`span`,{className:`tree-key`,children:t}),`: `,(0,q.jsx)(kd,{value:n})]});let c=Array.isArray(n)?n:null,u=n,d=c?null:Object.keys(u),f=c?c.length:d.length,p=c?f?`Array(${f})`:`[]`:f?`{…} ${f} ${f===1?`key`:`keys`}`:`{}`,m=Math.min(f,o);return(0,q.jsxs)(`div`,{className:`tree-node`,children:[(0,q.jsxs)(`div`,{className:f?`tree-row toggle`:`tree-row`,onClick:f?()=>a(!i):void 0,children:[(0,q.jsx)(`span`,{className:`tree-caret`,children:f?i?`▾`:`▸`:``}),(0,q.jsx)(`span`,{className:`tree-key`,children:t}),`: `,(0,q.jsx)(`span`,{className:`tree-summary`,children:p})]}),i&&f>0&&(0,q.jsxs)(`div`,{className:`tree-children`,children:[c?Array.from({length:m},(t,n)=>(0,q.jsx)(e,{name:String(n),value:c[n],depth:r+1},n)):d.slice(0,m).map(t=>(0,q.jsx)(e,{name:t,value:u[t],depth:r+1},t)),f>m&&(0,q.jsxs)(`button`,{className:`tree-more`,onClick:()=>s(e=>e+Ed),children:[`show `,Math.min(Ed,f-m).toLocaleString(`en-US`),` more (`,(f-m).toLocaleString(`en-US`),` not shown)`]})]})]})});function kd({value:e}){if(typeof e==`string`){if(_d(e))return(0,q.jsx)(`span`,{className:`tree-note`,title:`This branch was over 1 MB and was not recorded`,children:e});let t=e.length>Dd;return(0,q.jsx)(`span`,{className:`tree-str`,title:t?`${e.length.toLocaleString(`en-US`)} characters`:void 0,children:JSON.stringify(t?`${e.slice(0,Dd)}…`:e)})}return typeof e==`number`?(0,q.jsx)(`span`,{className:`tree-num`,children:String(e)}):typeof e==`boolean`?(0,q.jsx)(`span`,{className:`tree-bool`,children:String(e)}):(0,q.jsx)(`span`,{className:`tree-null`,children:e===null?`null`:`undefined`})}var Ad={page:`◰`,click:`◉`,rage:`✸`,change:`✎`,submit:`⏎`,error:`!`,"net-error":`⇄`,marker:`⚑`,custom:`★`,identify:`@`,freeze:`◔`},jd={all:`All`,api:`Fetch/XHR`,doc:`Doc`,other:`Assets`,ws:`WS`,failed:`Failed`},Md=[];function Nd({data:e,time:t,onSeek:n}){let[r,i]=(0,l.useState)(`events`),[a,o]=(0,l.useState)(``),[s,c]=(0,l.useState)(null),[u,d]=(0,l.useState)(!0),[f,p]=(0,l.useState)(`all`),m=a.trim().toLowerCase(),h=(0,l.useMemo)(()=>e.story.filter(e=>!m||`${e.title} ${e.detail??``}`.toLowerCase().includes(m)),[e,m]),g=(0,l.useMemo)(()=>e.network.filter(e=>{let t=e.data;return f===`api`&&t.kind!==`fetch`&&t.kind!==`xhr`&&t.kind!==`beacon`||f===`doc`&&t.kind!==`navigation`||f===`other`&&t.kind!==`resource`||f===`ws`&&t.kind!==`websocket`||f===`failed`&&!El(t)?!1:!m||`${t.method} ${t.url} ${t.status??``} ${t.kind===`websocket`?`ws websocket`:``}`.toLowerCase().includes(m)}),[e,m,f]),_=(0,l.useMemo)(()=>e.console.filter(e=>!m||String(e.data.text??``).toLowerCase().includes(m)),[e,m]),v=(0,l.useMemo)(()=>e.network.filter(e=>El(e.data)).length,[e]),y=(0,l.useMemo)(()=>e.console.filter(e=>e.data.level===`error`).length,[e]),b=(0,l.useMemo)(()=>e.state.filter(e=>e.data.kind===`action`).length,[e]),x=(e,t)=>{c(t),n(e+50)},S=r===`network`?gu(e.network,s):void 0,C=S?.data.kind===`websocket`?S.data.id:void 0;return(0,q.jsxs)(`aside`,{className:`side`,children:[(0,q.jsxs)(`nav`,{className:`tabs`,children:[(0,q.jsx)(Pd,{active:r===`events`,onClick:()=>i(`events`),label:`Events`,count:e.story.length}),(0,q.jsx)(Pd,{active:r===`network`,onClick:()=>i(`network`),label:`Network`,count:e.network.length,alert:v}),(0,q.jsx)(Pd,{active:r===`console`,onClick:()=>i(`console`),label:`Console`,count:e.console.length,alert:y}),(0,q.jsx)(Pd,{active:r===`state`,onClick:()=>i(`state`),label:`State`,count:b})]}),(0,q.jsxs)(`div`,{className:`side-toolbar`,children:[(0,q.jsx)(`input`,{className:`search`,placeholder:`Filter ${r}…`,value:a,onChange:e=>o(e.target.value)}),(0,q.jsxs)(`label`,{className:`follow`,title:`Keep the item at the playhead in view`,children:[(0,q.jsx)(`input`,{type:`checkbox`,checked:u,onChange:e=>d(e.target.checked)}),` Follow`]})]}),r===`network`&&(0,q.jsx)(`div`,{className:`chips`,children:Object.keys(jd).map(e=>(0,q.jsx)(`button`,{className:f===e?`on`:``,onClick:()=>p(e),children:jd[e]},e))}),r===`events`&&(0,q.jsx)(Ru,{items:h,time:t,follow:u,selected:s,empty:`No events recorded.`,onPick:e=>x(e.offset,e.key),children:e=>(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(`span`,{className:`story-icon ${e.kind}`,children:Ad[e.kind]}),(0,q.jsxs)(`div`,{className:`row-main`,children:[(0,q.jsx)(`div`,{className:`row-title`,children:e.title}),e.detail&&(0,q.jsx)(`div`,{className:`row-detail`,children:e.detail}),e.key===s&&e.payload&&Object.keys(e.payload).length>0&&(0,q.jsx)(`pre`,{className:`stack`,children:JSON.stringify(e.payload,null,2)})]})]})}),r===`network`&&(0,q.jsxs)(`div`,{className:`network-split ${S?`with-detail`:``}`,children:[(0,q.jsx)(Ru,{items:g,time:t,follow:u&&!S,selected:S?.key??s,empty:`No requests.`,onPick:e=>x(e.offset,e.key),children:t=>(0,q.jsx)(Fd,{item:t,frames:t.data.kind===`websocket`?e.ws.get(t.data.id):void 0})}),S&&(0,q.jsx)(Uu,{item:S,frames:C===void 0?void 0:e.ws.get(C)??Md,start:e.start,time:t,onSeek:n,onClose:()=>c(null)},C===void 0?S.key:hu(C))]}),r===`console`&&(0,q.jsx)(Ru,{items:_,time:t,follow:u,selected:s,empty:`No console output.`,onPick:e=>x(e.offset,e.key),children:e=>(0,q.jsx)(Id,{item:e,expanded:e.key===s})}),r===`state`&&(0,q.jsx)(xd,{items:e.state,stores:e.stores,time:t,follow:u,query:m,selected:s,onPick:e=>x(e.offset,e.key),onClose:()=>c(null)})]})}function Pd({active:e,onClick:t,label:n,count:r,alert:i}){return(0,q.jsxs)(`button`,{className:e?`on`:``,onClick:t,children:[n,` `,(0,q.jsx)(`span`,{className:`count`,children:r}),!!i&&(0,q.jsx)(`span`,{className:`alert`,children:i})]})}function Fd({item:e,frames:t}){let n=e.data,{host:r,path:i}=v(n.url),a=Tl(n);if(n.kind===`websocket`){let o=n.frames??ql(t??Md),s=!!n.error&&!o.sent&&!o.received;return(0,q.jsxs)(`div`,{className:`row-main`,children:[(0,q.jsxs)(`div`,{className:`row-title net-title`,children:[(0,q.jsx)(`span`,{className:`status ${Ol(n)}`,children:Dl(n)}),(0,q.jsx)(`span`,{className:`method`,children:`WS`}),(0,q.jsx)(`span`,{className:`path`,title:n.url,children:e.placeholder?`WebSocket (open)`:i})]}),(0,q.jsxs)(`div`,{className:`row-detail`,children:[r&&`${r} · `,`websocket`,!s&&` · ${Jl(o)}`,a&&(0,q.jsxs)(`span`,{className:`bad`,title:a,children:[` `,`· `,a]})]})]})}let o=Al(n);return(0,q.jsxs)(`div`,{className:`row-main`,children:[(0,q.jsxs)(`div`,{className:`row-title net-title`,children:[(0,q.jsx)(`span`,{className:`status ${Ol(n)}`,children:Dl(n)}),(0,q.jsx)(`span`,{className:`method`,children:n.method}),(0,q.jsx)(`span`,{className:`path`,title:n.url,children:i})]}),(0,q.jsxs)(`div`,{className:`row-detail`,children:[r,` · `,n.kind===`resource`?n.initiator??`resource`:n.kind,n.duration!==void 0&&` · ${m(n.duration)}`,n.resSize??n.transferSize?` · ${h(n.resSize??n.transferSize)}`:``,o&&` · ${o}`,a&&(0,q.jsxs)(`span`,{className:`bad`,title:a,children:[` `,`· `,a]})]})]})}function Id({item:e,expanded:t}){let n=e.data,r=n.url?`${v(n.url).path}${n.line?`:${n.line}`:``}`:``;return(0,q.jsxs)(`div`,{className:`row-main console-row ${n.level}`,children:[(0,q.jsxs)(`div`,{className:`row-title`,children:[(0,q.jsx)(`span`,{className:`level ${n.level}`,children:n.level}),(0,q.jsx)(`span`,{className:t?`console-text full`:`console-text`,children:n.text})]}),t&&(0,q.jsxs)(q.Fragment,{children:[r&&(0,q.jsx)(`div`,{className:`row-detail mono`,children:r}),n.stack&&(0,q.jsx)(`pre`,{className:`stack`,children:n.stack}),n.args&&n.args.some(e=>typeof e==`object`&&!!e)&&(0,q.jsx)(`pre`,{className:`stack`,children:JSON.stringify(n.args,null,2)})]})]})}var Ld=50,Rd={LCP:`the moment the largest element rendered`,CLS:`the largest layout shift`,INP:`the slowest interaction`},zd={LCP:`LCP was not collected for this page, for example because recording started after the page loaded and the browser had no buffered entry.`,CLS:`CLS was not collected for this page: no layout shift was reported.`,INP:`INP was not collected for this page: no interaction was measured.`};function Bd({data:e,time:t,onSeek:n}){if(!e.vitals.length)return null;let r=ou(e.vitalPages,t);return(0,q.jsx)(`div`,{className:`vitals`,role:`group`,"aria-label":`Web Vitals of this page`,children:ru.map(t=>{let i=r?.metrics[t];if(!i)return(0,q.jsxs)(`span`,{className:`vital missing`,title:zd[t],children:[t,` `,(0,q.jsx)(`b`,{children:`missing`})]},t);let a=du(t,i.data.value),o=[`${uu[t]}: ${a} (${lu[i.data.rating]??i.data.rating})`,...pu(i.data),`Click to jump to ${Rd[t]}.`];return(0,q.jsxs)(`button`,{className:`vital ${i.data.rating}`,title:o.join(`
142
+ `),onClick:()=>n(cu(i)-e.start+Ld),children:[t,` `,(0,q.jsx)(`b`,{children:a})]},t)})})}function Vd({data:e,time:t}){if(!e.vitals.length)return null;let n=ou(e.vitalPages,t);return!n||!su(n,t)?null:(0,q.jsxs)(`div`,{className:`vitals-hint`,children:[`SPA route change: LCP and CLS are not reset without a page load, so the chips still describe the load of`,` `,(0,q.jsx)(`span`,{className:`mono`,children:v(n.url).path}),`.`]})}function Hd({data:e,fallbackUrl:t,initialTime:n=0,range:r,onRangeChange:i,live:a}){let[o,s]=(0,l.useState)(n),c=(0,l.useRef)(null),u=(0,l.useRef)(o);u.current=o;let d=(0,l.useRef)(r);d.current=r;let f=(0,l.useCallback)(e=>c.current?.seek(e),[]),p=(0,l.useRef)(n);(0,l.useEffect)(()=>{p.current!==n&&(p.current=n,c.current?.seek(n))},[n]),(0,l.useEffect)(()=>{let t=t=>{if(t.target.closest(`input, textarea, select, dialog`)||t.metaKey||t.ctrlKey||t.altKey)return;let n=Math.round(u.current),r=d.current;switch(t.key){case` `:t.preventDefault(),c.current?.toggle();break;case`ArrowRight`:c.current?.nudge(5e3);break;case`ArrowLeft`:c.current?.nudge(-5e3);break;case`[`:i({from:n,to:r&&r.to>n?r.to:Math.max(e.duration,n)});break;case`]`:i({from:r&&r.from<n?r.from:0,to:n});break;case`Escape`:r&&i(null)}};return addEventListener(`keydown`,t),()=>removeEventListener(`keydown`,t)},[e,i]);let m=e.pages[Math.max(ku(e.pages,o),0)]?.url??t??``;return(0,q.jsxs)(`div`,{className:`player-body`,children:[(0,q.jsxs)(`div`,{className:`stage-col`,children:[(0,q.jsxs)(`div`,{className:`urlbar`,children:[(0,q.jsx)(`span`,{className:`lock`,children:m.startsWith(`https:`)?`🔒`:`ⓘ`}),(0,q.jsx)(`span`,{className:`mono ellipsis`,children:m}),e.skipped>0&&(0,q.jsx)(`span`,{className:`badge warn`,children:`replay starts at the oldest snapshot still on disk`}),(0,q.jsx)(Bd,{data:e,time:o,onSeek:f})]}),(0,q.jsx)(Vd,{data:e,time:o}),(0,q.jsx)(Iu,{ref:c,data:e,onTime:s,initialTime:n,range:r,onRangeChange:i,live:a})]}),(0,q.jsx)(Nd,{data:e,time:o,onSeek:f})]})}function Ud(){let e=Number(new URLSearchParams(location.hash.slice(1)).get(`t`));return Number.isFinite(e)&&e>0?e:void 0}function Wd({meta:e,lines:t}){let n=(0,l.useMemo)(()=>{let e=[];for(let n of t.split(`
143
+ `))if(n)try{e.push(JSON.parse(n))}catch{}return _u(e)},[t]),[r,i]=(0,l.useState)(null),[a,o]=(0,l.useState)(Ud);(0,l.useEffect)(()=>{let e=()=>o(Ud());return addEventListener(`hashchange`,e),()=>removeEventListener(`hashchange`,e)},[]);let s=[e.redactedHeaders?.length?`headers hidden: ${e.redactedHeaders.join(`, `)}`:``,e.bodiesRemoved?`bodies removed`:``,e.consoleArgsRemoved?`console arguments removed`:``].filter(Boolean);return(0,q.jsxs)(`div`,{className:`player-page`,children:[(0,q.jsxs)(`header`,{className:`topbar`,children:[(0,q.jsxs)(`div`,{className:`brand`,children:[(0,q.jsx)(`span`,{className:`logo`}),` tabtape`]}),(0,q.jsxs)(`div`,{className:`session-title`,children:[(0,q.jsxs)(`div`,{className:`title`,children:[(e.truncated||n.skipped>0)&&(0,q.jsx)(`span`,{className:`badge warn`,title:`The beginning of this recording was deleted by the ring buffer before export`,children:`TRIMMED`}),e.title||e.url||e.id]}),(0,q.jsxs)(`div`,{className:`muted small`,children:[_(e.startedAt),` · `,f(n.duration),` · `,y(e.userAgent),e.range&&` · range ${f(e.range.from)}–${f(e.range.to)} of the recording`]})]}),(0,q.jsxs)(`div`,{className:`export-note muted small`,children:[`Exported from tabtape `,e.version,` on `,_(e.exportedAt),s.length>0&&` · ${s.join(` · `)}`,(0,q.jsx)(`br`,{}),`Images and fonts load from their original URLs, so they may be missing offline.`]})]}),(0,q.jsx)(Hd,{data:n,fallbackUrl:e.url,initialTime:a,range:r,onRangeChange:i})]})}async function Gd(){let e=JSON.parse(document.getElementById(`tabtape-meta`).textContent),t=document.getElementById(`tabtape-data`).textContent.trim(),n=atob(t),r=new Uint8Array(n.length);for(let e=0;e<n.length;e++)r[e]=n.charCodeAt(e);let i=new Blob([r]).stream().pipeThrough(new DecompressionStream(`gzip`));return{meta:e,lines:await new Response(i).text()}}var Kd=(0,u.createRoot)(document.getElementById(`root`));Gd().then(({meta:e,lines:t})=>Kd.render((0,q.jsx)(l.StrictMode,{children:(0,q.jsx)(Wd,{meta:e,lines:t})})),e=>{Kd.render((0,q.jsxs)(`div`,{className:`banner error`,children:[`This export could not be opened: `,e instanceof Error?e.message:String(e)]}))})})();